diff --git a/asset-manifest.json b/asset-manifest.json index 084d4564..d7f60b33 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,24 +1,24 @@ { "files": { "main.css": "./static/css/main.3a366c27.chunk.css", - "main.js": "./static/js/main.4ffcb3e1.chunk.js", - "main.js.map": "./static/js/main.4ffcb3e1.chunk.js.map", + "main.js": "./static/js/main.d3d7786b.chunk.js", + "main.js.map": "./static/js/main.d3d7786b.chunk.js.map", "runtime-main.js": "./static/js/runtime-main.8d319139.js", "runtime-main.js.map": "./static/js/runtime-main.8d319139.js.map", "static/css/2.0cd2b4b7.chunk.css": "./static/css/2.0cd2b4b7.chunk.css", - "static/js/2.bc0d7f20.chunk.js": "./static/js/2.bc0d7f20.chunk.js", - "static/js/2.bc0d7f20.chunk.js.map": "./static/js/2.bc0d7f20.chunk.js.map", + "static/js/2.46b5ae08.chunk.js": "./static/js/2.46b5ae08.chunk.js", + "static/js/2.46b5ae08.chunk.js.map": "./static/js/2.46b5ae08.chunk.js.map", "index.html": "./index.html", "static/css/2.0cd2b4b7.chunk.css.map": "./static/css/2.0cd2b4b7.chunk.css.map", "static/css/main.3a366c27.chunk.css.map": "./static/css/main.3a366c27.chunk.css.map", - "static/js/2.bc0d7f20.chunk.js.LICENSE.txt": "./static/js/2.bc0d7f20.chunk.js.LICENSE.txt", + "static/js/2.46b5ae08.chunk.js.LICENSE.txt": "./static/js/2.46b5ae08.chunk.js.LICENSE.txt", "static/media/app.scss": "./static/media/bg-loading.90dd29f3.png" }, "entrypoints": [ "static/js/runtime-main.8d319139.js", "static/css/2.0cd2b4b7.chunk.css", - "static/js/2.bc0d7f20.chunk.js", + "static/js/2.46b5ae08.chunk.js", "static/css/main.3a366c27.chunk.css", - "static/js/main.4ffcb3e1.chunk.js" + "static/js/main.d3d7786b.chunk.js" ] } \ No newline at end of file diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json index 2be15f4a..51d1236d 100644 --- a/docs/asset-manifest.json +++ b/docs/asset-manifest.json @@ -1,11 +1,11 @@ { "files": { "main.css": "./static/css/main.0f69d4ed.chunk.css", - "main.js": "./build/main.2ed23f0f.js", + "main.js": "./build/main.5239fb83.js", "runtime-main.js": "./build/bundle.791dc2ef.js", "static/css/2.0cd2b4b7.chunk.css": "./static/css/2.0cd2b4b7.chunk.css", - "build/2.a2c7d688.js": "./build/2.a2c7d688.js", - "build/2.a2c7d688.js.LICENSE.txt": "./build/2.a2c7d688.js.LICENSE.txt", + "build/2.68b5b785.js": "./build/2.68b5b785.js", + "build/2.68b5b785.js.LICENSE.txt": "./build/2.68b5b785.js.LICENSE.txt", "index.html": "./index.html", "static/css/2.0cd2b4b7.chunk.css.map": "./static/css/2.0cd2b4b7.chunk.css.map", "static/css/main.0f69d4ed.chunk.css.map": "./static/css/main.0f69d4ed.chunk.css.map" @@ -13,8 +13,8 @@ "entrypoints": [ "build/bundle.791dc2ef.js", "static/css/2.0cd2b4b7.chunk.css", - "build/2.a2c7d688.js", + "build/2.68b5b785.js", "static/css/main.0f69d4ed.chunk.css", - "build/main.2ed23f0f.js" + "build/main.5239fb83.js" ] } \ No newline at end of file diff --git a/docs/build/2.68b5b785.js b/docs/build/2.68b5b785.js new file mode 100644 index 00000000..502e924f --- /dev/null +++ b/docs/build/2.68b5b785.js @@ -0,0 +1,2 @@ +/*! For license information please see 2.68b5b785.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(i,o,s){"use strict";i.exports=s(251)},function(i,o,s){(function(i,v){var _;!function($){var ae=o,pe=(i&&i.exports,"object"==typeof v&&v);pe.global!==pe&&pe.window;var we="A range’s `stop` value must be greater than or equal to the `start` value.",_e="Invalid code point value. Code points range from U+000000 to U+10FFFF.",et=55296,tt=56319,nt=56320,rt=57343,it=/\\x00([^0123456789]|$)/g,ot={},st=ot.hasOwnProperty,forEach=function(i,o){for(var s=-1,v=i.length;++s=s&&os)return i;if(o<=v&&s>=_)i.splice($,2);else{if(o>=v&&s<_)return o==v?(i[$]=s+1,i[$+1]=_+1,i):(i.splice($,2,v,o,s+1,_+1),i);if(o>=v&&o<=_)i[$+1]=o;else if(s>=v&&s<=_)return i[$]=s+1,i;$+=2}}return i},dataAdd=function(i,o){var s,v,_=0,$=null,ae=i.length;if(o<0||o>1114111)throw RangeError(_e);for(;_=s&&oo)return i.splice(null!=$?$+2:0,0,o,o+1),i;if(o==v)return o+1==i[_+2]?(i.splice(_,4,s,i[_+3]),i):(i[_+1]=o+1,i);$=_,_+=2}return i.push(o,o+1),i},dataAddData=function(i,o){for(var s,v,_=0,$=i.slice(),ae=o.length;_1114111||s<0||s>1114111)throw RangeError(_e);for(var v,_,$=0,ae=!1,pe=i.length;$s)return i;v>=o&&v<=s&&(_>o&&_-1<=s?(i.splice($,2),$-=2):(i.splice($-1,2),$-=2))}else{if(v==s+1||v==s)return i[$]=o,i;if(v>s)return i.splice($,0,o,s+1),i;if(o>=v&&o<_&&s+1<=_)return i;o>=v&&o<_||_==o?(i[$+1]=s+1,ae=!0):o<=v&&s+1>=_&&(i[$]=o,i[$+1]=s+1,ae=!0)}$+=2}return ae||i.push(o,s+1),i},dataContains=function(i,o){var s=0,v=i.length,_=i[s],$=i[v-1];if(v>=2&&(o<_||o>$))return!1;for(;s=_&&o<$)return!0;s+=2}return!1},dataIntersection=function(i,o){for(var s,v=0,_=o.length,$=[];v<_;)s=o[v],dataContains(i,s)&&$.push(s),++v;return dataFromCodePoints($)},dataIsEmpty=function(i){return!i.length},dataIsSingleton=function(i){return 2==i.length&&i[0]+1==i[1]},dataToArray=function(i){for(var o,s,v=0,_=[],$=i.length;v<$;){for(o=i[v],s=i[v+1];o=40&&i<=43||46==i||47==i||63==i||i>=91&&i<=94||i>=123&&i<=125?"\\"+ct(i):i>=32&&i<=126?ct(i):i<=255?"\\x"+pad(hex(i),2):"\\u"+pad(hex(i),4)},codePointToStringUnicode=function(i){return i<=65535?codePointToString(i):"\\u{"+i.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(i){var o,s=i.length,v=i.charCodeAt(0);return v>=et&&v<=tt&&s>1?(o=i.charCodeAt(1),1024*(v-et)+o-nt+65536):v},createBMPCharacterClasses=function(i){var o,s,v="",_=0,$=i.length;if(dataIsSingleton(i))return codePointToString(i[0]);for(;_<$;)v+=(o=i[_])==(s=i[_+1]-1)?codePointToString(o):o+1==s?codePointToString(o)+codePointToString(s):codePointToString(o)+"-"+codePointToString(s),_+=2;return"["+v+"]"},createUnicodeCharacterClasses=function(i){var o,s,v="",_=0,$=i.length;if(dataIsSingleton(i))return codePointToStringUnicode(i[0]);for(;_<$;)v+=(o=i[_])==(s=i[_+1]-1)?codePointToStringUnicode(o):o+1==s?codePointToStringUnicode(o)+codePointToStringUnicode(s):codePointToStringUnicode(o)+"-"+codePointToStringUnicode(s),_+=2;return"["+v+"]"},splitAtBMP=function(i){for(var o,s,v=[],_=[],$=[],ae=[],pe=0,we=i.length;pe=et&&s<=tt&&($.push(o,et),v.push(et,s+1)),s>=nt&&s<=rt&&($.push(o,et),v.push(et,56320),_.push(nt,s+1)),s>rt&&($.push(o,et),v.push(et,56320),_.push(nt,57344),s<=65535?$.push(57344,s+1):($.push(57344,65536),ae.push(65536,s+1)))):o>=et&&o<=tt?(s>=et&&s<=tt&&v.push(o,s+1),s>=nt&&s<=rt&&(v.push(o,56320),_.push(nt,s+1)),s>rt&&(v.push(o,56320),_.push(nt,57344),s<=65535?$.push(57344,s+1):($.push(57344,65536),ae.push(65536,s+1)))):o>=nt&&o<=rt?(s>=nt&&s<=rt&&_.push(o,s+1),s>rt&&(_.push(o,57344),s<=65535?$.push(57344,s+1):($.push(57344,65536),ae.push(65536,s+1)))):o>rt&&o<=65535?s<=65535?$.push(o,s+1):($.push(o,65536),ae.push(65536,s+1)):ae.push(o,s+1),pe+=2;return{loneHighSurrogates:v,loneLowSurrogates:_,bmp:$,astral:ae}},optimizeSurrogateMappings=function(i){for(var o,s,v,_,$,ae,pe=[],we=[],_e=!1,et=-1,tt=i.length;++et1&&(i=ut.call(arguments)),this instanceof regenerate?(this.data=[],i?this.add(i):this):(new regenerate).add(i)};regenerate.version="1.4.2";var ht=regenerate.prototype;!function(i,o){var s;for(s in o)st.call(o,s)&&(i[s]=o[s])}(ht,{add:function(i){var o=this;return null==i?o:i instanceof regenerate?(o.data=dataAddData(o.data,i.data),o):(arguments.length>1&&(i=ut.call(arguments)),isArray(i)?(forEach(i,(function(i){o.add(i)})),o):(o.data=dataAdd(o.data,isNumber(i)?i:symbolToCodePoint(i)),o))},remove:function(i){var o=this;return null==i?o:i instanceof regenerate?(o.data=dataRemoveData(o.data,i.data),o):(arguments.length>1&&(i=ut.call(arguments)),isArray(i)?(forEach(i,(function(i){o.remove(i)})),o):(o.data=dataRemove(o.data,isNumber(i)?i:symbolToCodePoint(i)),o))},addRange:function(i,o){var s=this;return s.data=dataAddRange(s.data,isNumber(i)?i:symbolToCodePoint(i),isNumber(o)?o:symbolToCodePoint(o)),s},removeRange:function(i,o){var s=this,v=isNumber(i)?i:symbolToCodePoint(i),_=isNumber(o)?o:symbolToCodePoint(o);return s.data=dataRemoveRange(s.data,v,_),s},intersection:function(i){var o=this,s=i instanceof regenerate?dataToArray(i.data):i;return o.data=dataIntersection(o.data,s),o},contains:function(i){return dataContains(this.data,isNumber(i)?i:symbolToCodePoint(i))},clone:function(){var i=new regenerate;return i.data=this.data.slice(0),i},toString:function(i){var o=createCharacterClassesFromData(this.data,!!i&&i.bmpOnly,!!i&&i.hasUnicodeFlag);return o?o.replace(it,"\\0$1"):"[]"},toRegExp:function(i){var o=this.toString(i&&-1!=i.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(o,i||"")},valueOf:function(){return dataToArray(this.data)}}),ht.toArray=ht.valueOf,void 0===(_=function(){return regenerate}.call(o,s,o,i))||(i.exports=_)}()}).call(this,s(60)(i),s(23))},function(i,o,s){i.exports=s(347)()},function(i,o,s){"use strict";s.d(o,"a",(function(){return Pt})),s.d(o,"b",(function(){return it})),s.d(o,"c",(function(){return ot})),s.d(o,"d",(function(){return Lt})),s.d(o,"e",(function(){return ut})),s.d(o,"f",(function(){return Qt})),s.d(o,"g",(function(){return ct})),s.d(o,"h",(function(){return rt})),s.d(o,"i",(function(){return Rt})),s.d(o,"j",(function(){return $t})),s.d(o,"k",(function(){return qt})),s.d(o,"l",(function(){return Vt})),s.d(o,"m",(function(){return Ft})),s.d(o,"n",(function(){return ft})),s.d(o,"o",(function(){return v})),s.d(o,"p",(function(){return Nt})),s.d(o,"q",(function(){return codePointAt})),s.d(o,"r",(function(){return codePointSize})),s.d(o,"s",(function(){return combineConfig})),s.d(o,"t",(function(){return countColumn})),s.d(o,"u",(function(){return findClusterBreak})),s.d(o,"v",(function(){return findColumn})),s.d(o,"w",(function(){return fromCodePoint}));class v{lineAt(i){if(i<0||i>this.length)throw new RangeError("Invalid position ".concat(i," in document of length ").concat(this.length));return this.lineInner(i,!1,1,0)}line(i){if(i<1||i>this.lines)throw new RangeError("Invalid line number ".concat(i," in ").concat(this.lines,"-line document"));return this.lineInner(i,!0,1,0)}replace(i,o,s){[i,o]=clip(this,i,o);let v=[];return this.decompose(0,i,v,2),s.length&&s.decompose(0,s.length,v,3),this.decompose(o,this.length,v,1),$.from(v,this.length-(o-i)+s.length)}append(i){return this.replace(this.length,this.length,i)}slice(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;[i,o]=clip(this,i,o);let s=[];return this.decompose(i,o,s,0),$.from(s,o-i)}eq(i){if(i==this)return!0;if(i.length!=this.length||i.lines!=this.lines)return!1;let o=this.scanIdentical(i,1),s=this.length-this.scanIdentical(i,-1),v=new ae(this),_=new ae(i);for(let i=o,$=o;;){if(v.next(i),_.next(i),i=0,v.lineBreak!=_.lineBreak||v.done!=_.done||v.value!=_.value)return!1;if($+=v.value.length,v.done||$>=s)return!0}}iter(){return new ae(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}iterRange(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new pe(this,i,o)}iterLines(i,o){let s;if(null==i)s=this.iter();else{null==o&&(o=this.lines+1);let v=this.line(i).from;s=this.iterRange(v,Math.max(v,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new we(s)}toString(){return this.sliceString(0)}toJSON(){let i=[];return this.flatten(i),i}constructor(){}static of(i){if(0==i.length)throw new RangeError("A document must have at least one line");return 1!=i.length||i[0]?i.length<=32?new _(i):$.from(_.split(i,[])):v.empty}}class _ extends v{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:textLength(i);super(),this.text=i,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(i,o,s,v){for(let _=0;;_++){let $=this.text[_],ae=v+$.length;if((o?s:ae)>=i)return new _e(v,ae,s,$);v=ae+1,s++}}decompose(i,o,s,v){let $=i<=0&&o>=this.length?this:new _(sliceText(this.text,i,o),Math.min(o,this.length)-Math.max(0,i));if(1&v){let i=s.pop(),o=appendText($.text,i.text.slice(),0,$.length);if(o.length<=32)s.push(new _(o,i.length+$.length));else{let i=o.length>>1;s.push(new _(o.slice(0,i)),new _(o.slice(i)))}}else s.push($)}replace(i,o,s){if(!(s instanceof _))return super.replace(i,o,s);[i,o]=clip(this,i,o);let v=appendText(this.text,appendText(s.text,sliceText(this.text,0,i)),o),ae=this.length+s.length-(o-i);return v.length<=32?new _(v,ae):$.from(_.split(v,[]),ae)}sliceString(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[i,o]=clip(this,i,o);let v="";for(let _=0,$=0;_<=o&&$i&&$&&(v+=s),i_&&(v+=ae.slice(Math.max(0,i-_),o-_)),_=pe+1}return v}flatten(i){for(let o of this.text)i.push(o)}scanIdentical(){return 0}static split(i,o){let s=[],v=-1;for(let $ of i)s.push($),v+=$.length+1,32==s.length&&(o.push(new _(s,v)),s=[],v=-1);return v>-1&&o.push(new _(s,v)),o}}class $ extends v{constructor(i,o){super(),this.children=i,this.length=o,this.lines=0;for(let o of i)this.lines+=o.lines}lineInner(i,o,s,v){for(let _=0;;_++){let $=this.children[_],ae=v+$.length,pe=s+$.lines-1;if((o?pe:ae)>=i)return $.lineInner(i,o,s,v);v=ae+1,s=pe+1}}decompose(i,o,s,v){for(let _=0,$=0;$<=o&&_=$){let _=v&(($<=i?1:0)|(pe>=o?2:0));$>=i&&pe<=o&&!_?s.push(ae):ae.decompose(i-$,o-$,s,_)}$=pe+1}}replace(i,o,s){if([i,o]=clip(this,i,o),s.lines=_&&o<=pe){let we=ae.replace(i-_,o-_,s),_e=this.lines-ae.lines+we.lines;if(we.lines<_e>>4&&we.lines>_e>>6){let _=this.children.slice();return _[v]=we,new $(_,this.length-(o-i)+s.length)}return super.replace(_,pe,we)}_=pe+1}return super.replace(i,o,s)}sliceString(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[i,o]=clip(this,i,o);let v="";for(let _=0,$=0;_i&&_&&(v+=s),i$&&(v+=ae.sliceString(i-$,o-$,s)),$=pe+1}return v}flatten(i){for(let o of this.children)o.flatten(i)}scanIdentical(i,o){if(!(i instanceof $))return 0;let s=0,[v,_,ae,pe]=o>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1];for(;;v+=o,_+=o){if(v==ae||_==pe)return s;let $=this.children[v],we=i.children[_];if($!=we)return s+$.scanIdentical(we,o);s+=$.length+1}}static from(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(((i,o)=>i+o.length+1),-1),s=0;for(let o of i)s+=o.lines;if(s<32){let s=[];for(let o of i)o.flatten(s);return new _(s,o)}let v=Math.max(32,s>>5),ae=v<<1,pe=v>>1,we=[],_e=0,et=-1,tt=[];function add(i){let o;if(i.lines>ae&&i instanceof $)for(let o of i.children)add(o);else i.lines>pe&&(_e>pe||!_e)?(flush(),we.push(i)):i instanceof _&&_e&&(o=tt[tt.length-1])instanceof _&&i.lines+o.lines<=32?(_e+=i.lines,et+=i.length+1,tt[tt.length-1]=new _(o.text.concat(i.text),o.length+1+i.length)):(_e+i.lines>v&&flush(),_e+=i.lines,et+=i.length+1,tt.push(i))}function flush(){0!=_e&&(we.push(1==tt.length?tt[0]:$.from(tt,et)),et=-1,_e=tt.length=0)}for(let o of i)add(o);return flush(),1==we.length?we[0]:new $(we,o)}}function textLength(i){let o=-1;for(let s of i)o+=s.length+1;return o}function appendText(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9;for(let _=0,$=0,ae=!0;$=s&&(we>v&&(pe=pe.slice(0,v-_)),_1&&void 0!==arguments[1]?arguments[1]:1;this.dir=o,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[i],this.offsets=[o>0?1:(i instanceof _?i.text.length:i.children.length)<<1]}nextInner(i,o){for(this.done=this.lineBreak=!1;;){let s=this.nodes.length-1,v=this.nodes[s],$=this.offsets[s],ae=$>>1,pe=v instanceof _?v.text.length:v.children.length;if(ae==(o>0?pe:0)){if(0==s)return this.done=!0,this.value="",this;o>0&&this.offsets[s-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&$)==(o>0?0:1)){if(this.offsets[s]+=o,0==i)return this.lineBreak=!0,this.value="\n",this;i--}else if(v instanceof _){let _=v.text[ae+(o<0?-1:0)];if(this.offsets[s]+=o,_.length>Math.max(0,i))return this.value=0==i?_:o>0?_.slice(i):_.slice(0,_.length-i),this;i-=_.length}else{let $=v.children[ae+(o<0?-1:0)];i>$.length?(i-=$.length,this.offsets[s]+=o):(o<0&&this.offsets[s]--,this.nodes.push($),this.offsets.push(o>0?1:($ instanceof _?$.text.length:$.children.length)<<1))}}}next(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return i<0&&(this.nextInner(-i,-this.dir),i=this.value.length),this.nextInner(i,this.dir)}}class pe{constructor(i,o,s){this.value="",this.done=!1,this.cursor=new ae(i,o>s?-1:1),this.pos=o>s?i.length:0,this.from=Math.min(o,s),this.to=Math.max(o,s)}nextInner(i,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;i+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let s=o<0?this.pos-this.from:this.to-this.pos;i>s&&(i=s),s-=i;let{value:v}=this.cursor.next(i);return this.pos+=(v.length+i)*o,this.value=v.length<=s?v:o<0?v.slice(v.length-s):v.slice(0,s),this.done=!this.value,this}next(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return i<0?i=Math.max(i,this.from-this.pos):i>0&&(i=Math.min(i,this.to-this.pos)),this.nextInner(i,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class we{constructor(i){this.inner=i,this.afterBreak=!0,this.value="",this.done=!1}next(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{done:o,lineBreak:s,value:v}=this.inner.next(i);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):s?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=v,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(v.prototype[Symbol.iterator]=function(){return this.iter()},ae.prototype[Symbol.iterator]=pe.prototype[Symbol.iterator]=we.prototype[Symbol.iterator]=function(){return this});class _e{constructor(i,o,s,v){this.from=i,this.to=o,this.number=s,this.text=v}get length(){return this.to-this.from}}function clip(i,o,s){return[o=Math.max(0,Math.min(i.length,o)),Math.max(o,Math.min(i.length,s))]}let et="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((i=>i?parseInt(i,36):1));for(let i=1;ii)return et[o-1]<=i;return!1}function isRegionalIndicator(i){return i>=127462&&i<=127487}const tt=8205;function findClusterBreak(i,o){return(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?nextClusterBreak:prevClusterBreak)(i,o,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function nextClusterBreak(i,o,s){if(o==i.length)return o;o&&surrogateLow(i.charCodeAt(o))&&surrogateHigh(i.charCodeAt(o-1))&&o--;let v=codePointAt(i,o);for(o+=codePointSize(v);o=0&&isRegionalIndicator(codePointAt(i,v));)s++,v-=2;if(s%2==0)break;o+=2}}}return o}function prevClusterBreak(i,o,s){for(;o>0;){let v=nextClusterBreak(i,o-2,s);if(v=56320&&i<57344}function surrogateHigh(i){return i>=55296&&i<56320}function codePointAt(i,o){let s=i.charCodeAt(o);if(!surrogateHigh(s)||o+1==i.length)return s;let v=i.charCodeAt(o+1);return surrogateLow(v)?v-56320+(s-55296<<10)+65536:s}function fromCodePoint(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function codePointSize(i){return i<65536?1:2}const nt=/\r\n?|\n/;var rt=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(rt||(rt={}));class it{constructor(i){this.sections=i}get length(){let i=0;for(let o=0;o1&&void 0!==arguments[1]&&arguments[1])}get invertedDesc(){let i=[];for(let o=0;o1&&void 0!==arguments[1]&&arguments[1];return i.empty?this:mapSet(this,i,o)}mapPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt.Simple,v=0,_=0;for(let $=0;$i)return _+(i-v);_+=ae}else{if(s!=rt.Simple&&we>=i&&(s==rt.TrackDel&&vi||s==rt.TrackBefore&&vi))return null;if(we>i||we==i&&o<0&&!ae)return i==v||o<0?_:_+pe;_+=pe}v=we}if(i>v)throw new RangeError("Position ".concat(i," is out of range for changeset of length ").concat(v));return _}touchesRange(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;for(let s=0,v=0;s=0&&v<=o&&_>=i)return!(vo)||"cover";v=_}return!1}toString(){let i="";for(let o=0;o=0?":"+v:"")}return i}toJSON(){return this.sections}static fromJSON(i){if(!Array.isArray(i)||i.length%2||i.some((i=>"number"!=typeof i)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new it(i)}static create(i){return new it(i)}}class ot extends it{constructor(i,o){super(i),this.inserted=o}apply(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return iterChanges(this,((o,s,v,_,$)=>i=i.replace(v,v+(s-o),$)),!1),i}mapDesc(i){return mapSet(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}invert(i){let o=this.sections.slice(),s=[];for(let _=0,$=0;_=0){o[_]=pe,o[_+1]=ae;let we=_>>1;for(;s.length1&&void 0!==arguments[1]&&arguments[1];return i.empty?this:mapSet(this,i,o,!0)}iterChanges(i){iterChanges(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}get desc(){return it.create(this.sections)}filter(i){let o=[],s=[],v=[],_=new st(this);e:for(let $=0,ae=0;;){let pe=$==i.length?1e9:i[$++];for(;ae0&&addInsert(s,o,_.text),_.forward(i),ae+=i}let we=i[$++];for(;ae>1].toJSON()))}return i}static of(i,o,s){let _=[],$=[],ae=0,pe=null;function flush(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&!_.length)return;aewe||pe<0||we>o)throw new RangeError("Invalid change range ".concat(pe," to ").concat(we," (in doc of length ").concat(o,")"));let et=_e?"string"==typeof _e?v.of(_e.split(s||nt)):_e:v.empty,tt=et.length;if(pe==we&&0==tt)return;peae&&addSection(_,pe-ae,-1),addSection(_,we-pe,tt),addInsert($,_,et),ae=we}}(i),flush(!pe),pe}static empty(i){return new ot(i?[i,-1]:[],[])}static fromJSON(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],s=[];for(let _=0;_o&&"string"!=typeof i)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==$.length)o.push($[0],0);else{for(;s.length<_;)s.push(v.empty);s[_]=v.of($.slice(1)),o.push($[0],s[_].length)}}}return new ot(o,s)}static createSet(i,o){return new ot(i,o)}}function addSection(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0==o&&s<=0)return;let _=i.length-2;_>=0&&s<=0&&s==i[_+1]?i[_]+=o:0==o&&0==i[_]?i[_+1]+=s:v?(i[_]+=o,i[_+1]+=s):i.push(o,s)}function addInsert(i,o,s){if(0==s.length)return;let _=o.length-2>>1;if(_>1])),!(s||pe==i.sections.length||i.sections[pe+1]<0);)we=i.sections[pe++],_e=i.sections[pe++];o($,et,ae,tt,nt),$=et,ae=tt}}}function mapSet(i,o,s){let v=[],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,$=new st(i),ae=new st(o);for(let i=-1;;)if(-1==$.ins&&-1==ae.ins){let i=Math.min($.len,ae.len);addSection(v,i,-1),$.forward(i),ae.forward(i)}else if(ae.ins>=0&&($.ins<0||i==$.i||0==$.off&&(ae.len<$.len||ae.len==$.len&&!s))){let o=ae.len;for(addSection(v,ae.ins,-1);o;){let s=Math.min($.len,o);$.ins>=0&&i<$.i&&$.len<=s&&(addSection(v,0,$.ins),_&&addInsert(_,v,$.text),i=$.i),$.forward(s),o-=s}ae.next()}else{if(!($.ins>=0)){if($.done&&ae.done)return _?ot.createSet(v,_):it.create(v);throw new Error("Mismatched change set lengths")}{let o=0,s=$.len;for(;s;)if(-1==ae.ins){let i=Math.min(s,ae.len);o+=i,s-=i,ae.forward(i)}else{if(!(0==ae.ins&&ae.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,_=new st(i),$=new st(o);for(let i=!1;;){if(_.done&&$.done)return v?ot.createSet(s,v):it.create(s);if(0==_.ins)addSection(s,_.len,0,i),_.next();else if(0!=$.len||$.done){if(_.done||$.done)throw new Error("Mismatched change set lengths");{let o=Math.min(_.len2,$.len),ae=s.length;if(-1==_.ins){let _=-1==$.ins?-1:$.off?0:$.ins;addSection(s,o,_,i),v&&_&&addInsert(v,s,$.text)}else-1==$.ins?(addSection(s,_.off?0:_.len,o,i),v&&addInsert(v,s,_.textBit(o))):(addSection(s,_.off?0:_.len,$.off?0:$.ins,i),v&&!$.off&&addInsert(v,s,$.text));i=(_.ins>o||$.ins>=0&&$.len>o)&&(i||s.length>ae),_.forward2(o),$.forward(o)}}else addSection(s,0,$.ins,i),v&&addInsert(v,s,$.text),$.next()}}class st{constructor(i){this.set=i,this.i=0,this.next()}next(){let{sections:i}=this.set;this.i>1;return o>=i.length?v.empty:i[o]}textBit(i){let{inserted:o}=this.set,s=this.i-2>>1;return s>=o.length&&!i?v.empty:o[s].slice(this.off,null==i?void 0:this.off+i)}forward(i){i==this.len?this.next():(this.len-=i,this.off+=i)}forward2(i){-1==this.ins?this.forward(i):i==this.ins?this.next():(this.ins-=i,this.off+=i)}}class dt{constructor(i,o,s){this.from=i,this.to=o,this.flags=s}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let i=7&this.flags;return 7==i?null:i}get goalColumn(){let i=this.flags>>6;return 16777215==i?void 0:i}map(i){let o,s,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?o=s=i.mapPos(this.from,v):(o=i.mapPos(this.from,1),s=i.mapPos(this.to,-1)),o==this.from&&s==this.to?this:new dt(o,s,this.flags)}extend(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i<=this.anchor&&o>=this.anchor)return ut.range(i,o);let s=Math.abs(i-this.anchor)>Math.abs(o-this.anchor)?i:o;return ut.range(this.anchor,s)}eq(i){return this.anchor==i.anchor&&this.head==i.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(i){if(!i||"number"!=typeof i.anchor||"number"!=typeof i.head)throw new RangeError("Invalid JSON representation for SelectionRange");return ut.range(i.anchor,i.head)}static create(i,o,s){return new dt(i,o,s)}}class ut{constructor(i,o){this.ranges=i,this.mainIndex=o}map(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return i.empty?this:ut.create(this.ranges.map((s=>s.map(i,o))),this.mainIndex)}eq(i){if(this.ranges.length!=i.ranges.length||this.mainIndex!=i.mainIndex)return!1;for(let o=0;o1&&void 0!==arguments[1])||arguments[1];return ut.create([i].concat(this.ranges),o?0:this.mainIndex+1)}replaceRange(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,s=this.ranges.slice();return s[o]=i,ut.create(s,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((i=>i.toJSON())),main:this.mainIndex}}static fromJSON(i){if(!i||!Array.isArray(i.ranges)||"number"!=typeof i.main||i.main>=i.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new ut(i.ranges.map((i=>dt.fromJSON(i))),i.main)}static single(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return new ut([ut.range(i,o)],0)}static create(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==i.length)throw new RangeError("A selection needs at least one range");for(let s=0,v=0;v1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0;return dt.create(i,i,(0==o?0:o<0?8:16)|(null==s?7:Math.min(6,s))|(null!=v?v:16777215)<<6)}static range(i,o,s,v){let _=(null!=s?s:16777215)<<6|(null==v?7:Math.min(6,v));return oi?8:0)|_)}static normalized(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=i[o];i.sort(((i,o)=>i.from-o.from)),o=i.indexOf(s);for(let s=1;sv.head?ut.range(ae,$):ut.range($,ae))}}return new ut(i,o)}}function checkSelection(i,o){for(let s of i.ranges)if(s.to>o)throw new RangeError("Selection points outside of document")}let lt=0;class ct{constructor(i,o,s,v,_){this.combine=i,this.compareInput=o,this.compare=s,this.isStatic=v,this.id=lt++,this.default=i([]),this.extensions="function"==typeof _?_(this):_}get reader(){return this}static define(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ct(i.combine||(i=>i),i.compareInput||((i,o)=>i===o),i.compare||(i.combine?(i,o)=>i===o:sameArray),!!i.static,i.enables)}of(i){return new ht([],this,0,i)}compute(i,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new ht(i,this,1,o)}computeN(i,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new ht(i,this,2,o)}from(i,o){return o||(o=i=>i),this.compute([i],(s=>o(s.field(i))))}}function sameArray(i,o){return i==o||i.length==o.length&&i.every(((i,s)=>i===o[s]))}class ht{constructor(i,o,s,v){this.dependencies=i,this.facet=o,this.type=s,this.value=v,this.id=lt++}dynamicSlot(i){var o;let s=this.value,v=this.facet.compareInput,_=this.id,$=i[_]>>1,ae=2==this.type,pe=!1,we=!1,_e=[];for(let s of this.dependencies)"doc"==s?pe=!0:"selection"==s?we=!0:0==(1&(null!==(o=i[s.id])&&void 0!==o?o:1))&&_e.push(i[s.id]);return{create:i=>(i.values[$]=s(i),1),update(i,o){if(pe&&o.docChanged||we&&(o.docChanged||o.selection)||ensureAll(i,_e)){let o=s(i);if(ae?!compareArray(o,i.values[$],v):!v(o,i.values[$]))return i.values[$]=o,1}return 0},reconfigure:(i,o)=>{let pe,we=o.config.address[_];if(null!=we){let _=getAddr(o,we);if(this.dependencies.every((s=>s instanceof ct?o.facet(s)===i.facet(s):!(s instanceof ft)||o.field(s,!1)==i.field(s,!1)))||(ae?compareArray(pe=s(i),_,v):v(pe=s(i),_)))return i.values[$]=_,0}else pe=s(i);return i.values[$]=pe,1}}}}function compareArray(i,o,s){if(i.length!=o.length)return!1;for(let v=0;vi[o.id])),_=s.map((i=>i.type)),$=v.filter((i=>!(1&i))),ae=i[o.id]>>1;function get(i){let s=[];for(let o=0;oi===o),i);return i.provide&&(o.provides=i.provide(o)),o}create(i){let o=i.facet(pt).find((i=>i.field==this));return((null==o?void 0:o.create)||this.createF)(i)}slot(i){let o=i[this.id]>>1;return{create:i=>(i.values[o]=this.create(i),1),update:(i,s)=>{let v=i.values[o],_=this.updateF(v,s);return this.compareF(v,_)?0:(i.values[o]=_,1)},reconfigure:(i,s)=>null!=s.config.address[this.id]?(i.values[o]=s.field(this),0):(i.values[o]=this.create(i),1)}}init(i){return[this,pt.of({field:this,create:i})]}get extension(){return this}}const gt=4,mt=3,yt=2,vt=1;function prec(i){return o=>new bt(o,i)}const Rt={highest:prec(0),high:prec(vt),default:prec(yt),low:prec(mt),lowest:prec(gt)};class bt{constructor(i,o){this.inner=i,this.prec=o}}class Ot{of(i){return new xt(this,i)}reconfigure(i){return Ot.reconfigure.of({compartment:this,extension:i})}get(i){return i.config.compartments.get(this)}}class xt{constructor(i,o){this.compartment=i,this.inner=o}}class wt{constructor(i,o,s,v,_,$){for(this.base=i,this.compartments=o,this.dynamicSlots=s,this.address=v,this.staticValues=_,this.facets=$,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(i,o,s){let v=[],_=Object.create(null),$=new Map;for(let s of flatten(i,o,$))s instanceof ft?v.push(s):(_[s.facet.id]||(_[s.facet.id]=[])).push(s);let ae=Object.create(null),pe=[],we=[];for(let i of v)ae[i.id]=we.length<<1,we.push((o=>i.slot(o)));let _e=null==s?void 0:s.config.facets;for(let i in _){let o=_[i],v=o[0].facet,$=_e&&_e[i]||[];if(o.every((i=>0==i.type)))if(ae[v.id]=pe.length<<1|1,sameArray($,o))pe.push(s.facet(v));else{let i=v.combine(o.map((i=>i.value)));pe.push(s&&v.compare(i,s.facet(v))?s.facet(v):i)}else{for(let i of o)0==i.type?(ae[i.id]=pe.length<<1|1,pe.push(i.value)):(ae[i.id]=we.length<<1,we.push((o=>i.dynamicSlot(o))));ae[v.id]=we.length<<1,we.push((i=>dynamicFacetSlot(i,v,o)))}}let et=we.map((i=>i(ae)));return new wt(i,$,et,ae,pe,_)}}function flatten(i,o,s){let v=[[],[],[],[],[]],_=new Map;return function inner(i,$){let ae=_.get(i);if(null!=ae){if(ae<=$)return;let o=v[ae].indexOf(i);o>-1&&v[ae].splice(o,1),i instanceof xt&&s.delete(i.compartment)}if(_.set(i,$),Array.isArray(i))for(let o of i)inner(o,$);else if(i instanceof xt){if(s.has(i.compartment))throw new RangeError("Duplicate use of compartment in extensions");let v=o.get(i.compartment)||i.inner;s.set(i.compartment,v),inner(v,$)}else if(i instanceof bt)inner(i.inner,i.prec);else if(i instanceof ft)v[$].push(i),i.provides&&inner(i.provides,$);else if(i instanceof ht)v[$].push(i),i.facet.extensions&&inner(i.facet.extensions,yt);else{let o=i.extension;if(!o)throw new Error("Unrecognized extension value in extension set (".concat(i,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));inner(o,$)}}(i,yt),v.reduce(((i,o)=>i.concat(o)))}function ensureAddr(i,o){if(1&o)return 2;let s=o>>1,v=i.status[s];if(4==v)throw new Error("Cyclic dependency between fields and/or facets");if(2&v)return v;i.status[s]=4;let _=i.computeSlot(i,i.config.dynamicSlots[s]);return i.status[s]=2|_}function getAddr(i,o){return 1&o?i.config.staticValues[o>>1]:i.values[o>>1]}const Ct=ct.define(),St=ct.define({combine:i=>i.some((i=>i)),static:!0}),_t=ct.define({combine:i=>i.length?i[0]:void 0,static:!0}),Et=ct.define(),kt=ct.define(),At=ct.define(),Dt=ct.define({combine:i=>!!i.length&&i[0]});class Pt{constructor(i,o){this.type=i,this.value=o}static define(){return new Tt}}class Tt{of(i){return new Pt(this,i)}}class It{constructor(i){this.map=i}of(i){return new Ft(this,i)}}class Ft{constructor(i,o){this.type=i,this.value=o}map(i){let o=this.type.map(this.value,i);return void 0===o?void 0:o==this.value?this:new Ft(this.type,o)}is(i){return this.type==i}static define(){return new It((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||(i=>i))}static mapEffects(i,o){if(!i.length)return i;let s=[];for(let v of i){let i=v.map(o);i&&s.push(i)}return s}}Ft.reconfigure=Ft.define(),Ft.appendConfig=Ft.define();class Nt{constructor(i,o,s,v,_,$){this.startState=i,this.changes=o,this.selection=s,this.effects=v,this.annotations=_,this.scrollIntoView=$,this._doc=null,this._state=null,s&&checkSelection(s,o.newLength),_.some((i=>i.type==Nt.time))||(this.annotations=_.concat(Nt.time.of(Date.now())))}static create(i,o,s,v,_,$){return new Nt(i,o,s,v,_,$)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(i){for(let o of this.annotations)if(o.type==i)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(i){let o=this.annotation(Nt.userEvent);return!(!o||!(o==i||o.length>i.length&&o.slice(0,i.length)==i&&"."==o[i.length]))}}function joinRanges(i,o){let s=[];for(let v=0,_=0;;){let $,ae;if(v=i[v]))$=i[v++],ae=i[v++];else{if(!(_=0;s--){let _=v[s](i);i=_ instanceof Nt?_:Array.isArray(_)&&1==_.length&&_[0]instanceof Nt?_[0]:resolveTransaction(o,asArray(_),!1)}return i}function extendTransaction(i){let o=i.startState,s=o.facet(At),v=i;for(let _=s.length-1;_>=0;_--){let $=s[_](i);$&&Object.keys($).length&&(v=mergeTransaction(v,resolveTransactionInner(o,$,i.changes.newLength),!0))}return v==i?i:Nt.create(o,i.changes,i.selection,v.effects,v.annotations,v.scrollIntoView)}Nt.time=Pt.define(),Nt.userEvent=Pt.define(),Nt.addToHistory=Pt.define(),Nt.remote=Pt.define();const Bt=[];function asArray(i){return null==i?Bt:Array.isArray(i)?i:[i]}var Lt=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(Lt||(Lt={}));const jt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Mt;try{Mt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(i){}function hasWordChar(i){if(Mt)return Mt.test(i);for(let o=0;o"€"&&(s.toUpperCase()!=s.toLowerCase()||jt.test(s)))return!0}return!1}class Qt{constructor(i,o,s,v,_,$){this.config=i,this.doc=o,this.selection=s,this.values=v,this.status=i.statusTemplate.slice(),this.computeSlot=_,$&&($._state=this);for(let i=0;i1&&void 0!==arguments[1])||arguments[1],s=this.config.address[i.id];if(null!=s)return ensureAddr(this,s),getAddr(this,s);if(o)throw new RangeError("Field is not present in this state")}update(){for(var i=arguments.length,o=new Array(i),s=0;s_.set(o,i))),s=null),_.set(o.value.compartment,o.value.extension)):o.is(Ft.reconfigure)?(s=null,v=o.value):o.is(Ft.appendConfig)&&(s=null,v=asArray(v).concat(o.value));if(s)o=i.startState.values.slice();else{s=wt.resolve(v,_,this),o=new Qt(s,this.doc,this.selection,s.dynamicSlots.map((()=>null)),((i,o)=>o.reconfigure(i,this)),null).values}let $=i.startState.facet(St)?i.newSelection:i.newSelection.asSingle();new Qt(s,i.newDoc,$,o,((o,s)=>s.update(o,i)),i)}replaceSelection(i){return"string"==typeof i&&(i=this.toText(i)),this.changeByRange((o=>({changes:{from:o.from,to:o.to,insert:i},range:ut.cursor(o.from+i.length)})))}changeByRange(i){let o=this.selection,s=i(o.ranges[0]),v=this.changes(s.changes),_=[s.range],$=asArray(s.effects);for(let s=1;s0&&void 0!==arguments[0]?arguments[0]:[];return i instanceof ot?i:ot.of(i,this.doc.length,this.facet(Qt.lineSeparator))}toText(i){return v.of(i.split(this.facet(Qt.lineSeparator)||nt))}sliceDoc(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(i,o,this.lineBreak)}facet(i){let o=this.config.address[i.id];return null==o?i.default:(ensureAddr(this,o),getAddr(this,o))}toJSON(i){let o={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(i)for(let s in i){let v=i[s];v instanceof ft&&null!=this.config.address[v.id]&&(o[s]=v.spec.toJSON(this.field(i[s]),this))}return o}static fromJSON(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(!i||"string"!=typeof i.doc)throw new RangeError("Invalid JSON representation for EditorState");let v=[];if(s)for(let o in s)if(Object.prototype.hasOwnProperty.call(i,o)){let _=s[o],$=i[o];v.push(_.init((i=>_.spec.fromJSON($,i))))}return Qt.create({doc:i.doc,selection:ut.fromJSON(i.selection),extensions:o.extensions?v.concat([o.extensions]):v})}static create(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=wt.resolve(i.extensions||[],new Map),s=i.doc instanceof v?i.doc:v.of((i.doc||"").split(o.staticFacet(Qt.lineSeparator)||nt)),_=i.selection?i.selection instanceof ut?i.selection:ut.single(i.selection.anchor,i.selection.head):ut.single(0);return checkSelection(_,s.length),o.staticFacet(St)||(_=_.asSingle()),new Qt(o,s,_,o.dynamicSlots.map((()=>null)),((i,o)=>o.create(i)),null)}get tabSize(){return this.facet(Qt.tabSize)}get lineBreak(){return this.facet(Qt.lineSeparator)||"\n"}get readOnly(){return this.facet(Dt)}phrase(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),v=1;v{if("$"==o)return"$";let v=+(o||1);return!v||v>s.length?i:s[v-1]}))),i}languageDataAt(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,v=[];for(let _ of this.facet(Ct))for(let $ of _(this,o,s))Object.prototype.hasOwnProperty.call($,i)&&v.push($[i]);return v}charCategorizer(i){return o=this.languageDataAt("wordChars",i).join(""),i=>{if(!/\S/.test(i))return Lt.Space;if(hasWordChar(i))return Lt.Word;for(let s=0;s-1)return Lt.Word;return Lt.Other};var o}wordAt(i){let{text:o,from:s,length:v}=this.doc.lineAt(i),_=this.charCategorizer(i),$=i-s,ae=i-s;for(;$>0;){let i=findClusterBreak(o,$,!1);if(_(o.slice(i,$))!=Lt.Word)break;$=i}for(;ae2&&void 0!==arguments[2]?arguments[2]:{},v={};for(let o of i)for(let i of Object.keys(o)){let _=o[i],$=v[i];if(void 0===$)v[i]=_;else if($===_||void 0===_);else{if(!Object.hasOwnProperty.call(s,i))throw new Error("Config merge conflict for field "+i);v[i]=s[i]($,_)}}for(let i in o)void 0===v[i]&&(v[i]=o[i]);return v}Qt.allowMultipleSelections=St,Qt.tabSize=ct.define({combine:i=>i.length?i[0]:4}),Qt.lineSeparator=_t,Qt.readOnly=Dt,Qt.phrases=ct.define({compare(i,o){let s=Object.keys(i),v=Object.keys(o);return s.length==v.length&&s.every((s=>i[s]==o[s]))}}),Qt.languageData=Ct,Qt.changeFilter=Et,Qt.transactionFilter=kt,Qt.transactionExtender=At,Ot.reconfigure=Ft.define();class Vt{eq(i){return this==i}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return Ut.create(i,o,this)}}Vt.prototype.startSide=Vt.prototype.endSide=0,Vt.prototype.point=!1,Vt.prototype.mapMode=rt.TrackDel;class Ut{constructor(i,o,s){this.from=i,this.to=o,this.value=s}static create(i,o,s){return new Ut(i,o,s)}}function cmpRange(i,o){return i.from-o.from||i.value.startSide-o.value.startSide}class Wt{constructor(i,o,s,v){this.from=i,this.to=o,this.value=s,this.maxPoint=v}get length(){return this.to[this.to.length-1]}findIndex(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,_=s?this.to:this.from;for(let $=v,ae=_.length;;){if($==ae)return $;let v=$+ae>>1,pe=_[v]-i||(s?this.value[v].endSide:this.value[v].startSide)-o;if(v==$)return pe>=0?$:ae;pe>=0?ae=v:$=v+1}}between(i,o,s,v){for(let _=this.findIndex(o,-1e9,!0),$=this.findIndex(s,1e9,!1,_);_<$;_++)if(!1===v(this.from[_]+i,this.to[_]+i,this.value[_]))return!1}map(i,o){let s=[],v=[],_=[],$=-1,ae=-1;for(let pe=0;pe_e||we==_e&&et.startSide>0&&et.endSide<=0)continue;(_e-we||et.endSide-et.startSide)<0||($<0&&($=we),et.point&&(ae=Math.max(ae,_e-we)),s.push(et),v.push(we-$),_.push(_e-$))}return{mapped:s.length?new Wt(v,_,s,ae):null,pos:$}}}class $t{constructor(i,o,s,v){this.chunkPos=i,this.chunk=o,this.nextLayer=s,this.maxPoint=v}static create(i,o,s,v){return new $t(i,o,s,v)}get length(){let i=this.chunk.length-1;return i<0?0:Math.max(this.chunkEnd(i),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let i=this.nextLayer.size;for(let o of this.chunk)i+=o.value.length;return i}chunkEnd(i){return this.chunkPos[i]+this.chunk[i].length}update(i){let{add:o=[],sort:s=!1,filterFrom:v=0,filterTo:_=this.length}=i,$=i.filter;if(0==o.length&&!$)return this;if(s&&(o=o.slice().sort(cmpRange)),this.isEmpty)return o.length?$t.of(o):this;let ae=new zt(this,null,-1).goto(0),pe=0,we=[],_e=new qt;for(;ae.value||pe=0){let i=o[pe++];_e.addInner(i.from,i.to,i.value)||we.push(i)}else 1==ae.rangeIndex&&ae.chunkIndexthis.chunkEnd(ae.chunkIndex)||_ae.to||_=_&&i<=_+$.length&&!1===$.between(_,i-_,o-_,s))return}this.nextLayer.between(i,o,s)}}iter(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Zt.from([this]).goto(i)}get isEmpty(){return this.nextLayer==this}static iter(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Zt.from(i).goto(o)}static compare(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,$=i.filter((i=>i.maxPoint>0||!i.isEmpty&&i.maxPoint>=_)),ae=o.filter((i=>i.maxPoint>0||!i.isEmpty&&i.maxPoint>=_)),pe=findSharedChunks($,ae,s),we=new Ht($,pe,_),_e=new Ht(ae,pe,_);s.iterGaps(((i,o,s)=>compare(we,i,_e,o,s,v))),s.empty&&0==s.length&&compare(we,0,_e,0,0,v)}static eq(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3?arguments[3]:void 0;null==v&&(v=999999999);let _=i.filter((i=>!i.isEmpty&&o.indexOf(i)<0)),$=o.filter((o=>!o.isEmpty&&i.indexOf(o)<0));if(_.length!=$.length)return!1;if(!_.length)return!0;let ae=findSharedChunks(_,$),pe=new Ht(_,ae,0).goto(s),we=new Ht($,ae,0).goto(s);for(;;){if(pe.to!=we.to||!sameValues(pe.active,we.active)||pe.point&&(!we.point||!pe.point.eq(we.point)))return!1;if(pe.to>v)return!0;pe.next(),we.next()}}static spans(i,o,s,v){let _=new Ht(i,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(o),$=o,ae=_.openStart;for(;;){let i=Math.min(_.to,s);if(_.point){let s=_.activeForPoint(_.to),pe=_.pointFrom$&&(v.span($,i,_.active,ae),ae=_.openEnd(i));if(_.to>s)return ae+(_.point&&_.to>s?1:0);$=_.to,_.next()}}static of(i){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=new qt;for(let v of i instanceof Ut?[i]:o?lazySort(i):i)s.add(v.from,v.to,v.value);return s.finish()}}function lazySort(i){if(i.length>1)for(let o=i[0],s=1;s0)return i.slice().sort(cmpRange);o=v}return i}$t.empty=new $t([],[],null,-1),$t.empty.nextLayer=$t.empty;class qt{finishChunk(i){this.chunks.push(new Wt(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,i&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(i,o,s){this.addInner(i,o,s)||(this.nextLayer||(this.nextLayer=new qt)).add(i,o,s)}addInner(i,o,s){let v=i-this.lastTo||s.startSide-this.last.endSide;if(v<=0&&(i-this.lastFrom||s.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(v<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=i),this.from.push(i-this.chunkStart),this.to.push(o-this.chunkStart),this.last=s,this.lastFrom=i,this.lastTo=o,this.value.push(s),s.point&&(this.maxPoint=Math.max(this.maxPoint,o-i)),!0)}addChunk(i,o){if((i-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(i);let s=o.value.length-1;return this.last=o.value[s],this.lastFrom=o.from[s]+i,this.lastTo=o.to[s]+i,!0}finish(){return this.finishInner($t.empty)}finishInner(i){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return i;let o=$t.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(i):i,this.setMaxPoint);return this.from=null,o}}function findSharedChunks(i,o,s){let v=new Map;for(let o of i)for(let i=0;i3&&void 0!==arguments[3]?arguments[3]:0;this.layer=i,this.skip=o,this.minPoint=s,this.rank=v}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(i,o,!1),this}gotoInner(i,o,s){for(;this.chunkIndex=this.minPoint)break}}}setRangeIndex(i){if(i==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,v=[];for(let _=0;_=s&&v.push(new zt($,o,s,_));return 1==v.length?v[0]:new Zt(v)}get startSide(){return this.value?this.value.startSide:0}goto(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;for(let s of this.heap)s.goto(i,o);for(let i=this.heap.length>>1;i>=0;i--)heapBubble(this.heap,i);return this.next(),this}forward(i,o){for(let s of this.heap)s.forward(i,o);for(let i=this.heap.length>>1;i>=0;i--)heapBubble(this.heap,i);(this.to-i||this.value.endSide-o)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let i=this.heap[0];this.from=i.from,this.to=i.to,this.value=i.value,this.rank=i.rank,i.value&&i.next(),heapBubble(this.heap,0)}}}function heapBubble(i,o){for(let s=i[o];;){let v=1+(o<<1);if(v>=i.length)break;let _=i[v];if(v+1=0&&(_=i[v+1],v++),s.compare(_)<0)break;i[v]=s,i[o]=_,o=v}}class Ht{constructor(i,o,s){this.minPoint=s,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Zt.from(i,o,s)}goto(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(i,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=i,this.endSide=o,this.openStart=-1,this.next(),this}forward(i,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-i||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(i,o)}removeActive(i){remove(this.active,i),remove(this.activeTo,i),remove(this.activeRank,i),this.minActive=findMinIndex(this.active,this.activeTo)}addActive(i){let o=0,{value:s,to:v,rank:_}=this.cursor;for(;o-1&&(this.activeTo[v]-this.cursor.from||this.active[v].endSide-this.cursor.startSide)<0){if(this.activeTo[v]>i){this.to=this.activeTo[v],this.endSide=this.active[v].endSide;break}this.removeActive(v),s&&remove(s,v)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>i){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let i=this.cursor.value;if(i.point){if(!(o&&this.cursor.to==this.to&&this.cursor.from=0&&s[o]=0&&!(this.activeRank[s]i||this.activeTo[s]==i&&this.active[s].endSide>=this.point.endSide)&&o.push(this.active[s]);return o.reverse()}openEnd(i){let o=0;for(let s=this.activeTo.length-1;s>=0&&this.activeTo[s]>i;s--)o++;return o}}function compare(i,o,s,v,_,$){i.goto(o),s.goto(v);let ae=v+_,pe=v,we=v-o;for(;;){let o=i.to+we-s.to||i.endSide-s.endSide,v=o<0?i.to+we:s.to,_=Math.min(v,ae);if(i.point||s.point?i.point&&s.point&&(i.point==s.point||i.point.eq(s.point))&&sameValues(i.activeForPoint(i.to),s.activeForPoint(s.to))||$.comparePoint(pe,_,i.point,s.point):_>pe&&!sameValues(i.active,s.active)&&$.compareRange(pe,_,i.active,s.active),v>ae)break;pe=v,o<=0&&i.next(),o>=0&&s.next()}}function sameValues(i,o){if(i.length!=o.length)return!1;for(let s=0;s=o;s--)i[s+1]=i[s];i[o]=s}function findMinIndex(i,o){let s=-1,v=1e9;for(let _=0;_2&&void 0!==arguments[2]?arguments[2]:i.length,v=0;for(let _=0;_=o)return v;if(v==i.length)break;_+=9==i.charCodeAt(v)?s-_%s:1,v=findClusterBreak(i,v)}return!0===v?-1:i.length}},function(i,o,s){"use strict";i.exports=s(824)},function(i,o,s){"use strict";(function(i){s.d(o,"a",(function(){return ae})),s.d(o,"b",(function(){return we})),s.d(o,"c",(function(){return et})),s.d(o,"d",(function(){return assert})),s.d(o,"e",(function(){return assertionError})),s.d(o,"f",(function(){return $})),s.d(o,"g",(function(){return base64Encode})),s.d(o,"h",(function(){return contains})),s.d(o,"i",(function(){return createMockUserToken})),s.d(o,"j",(function(){return createSubscribe})),s.d(o,"k",(function(){return deepCopy})),s.d(o,"l",(function(){return deepExtend})),s.d(o,"m",(function(){return errorPrefix})),s.d(o,"n",(function(){return getModularInstance})),s.d(o,"o",(function(){return isAdmin})),s.d(o,"p",(function(){return isBrowser})),s.d(o,"q",(function(){return isEmpty})),s.d(o,"r",(function(){return isMobileCordova})),s.d(o,"s",(function(){return isNode})),s.d(o,"t",(function(){return isNodeSdk})),s.d(o,"u",(function(){return isReactNative})),s.d(o,"v",(function(){return isValidFormat})),s.d(o,"w",(function(){return jsonEval})),s.d(o,"x",(function(){return map})),s.d(o,"y",(function(){return querystring})),s.d(o,"z",(function(){return safeGet})),s.d(o,"A",(function(){return stringLength})),s.d(o,"B",(function(){return stringToByteArray})),s.d(o,"C",(function(){return stringify})),s.d(o,"D",(function(){return validateArgCount})),s.d(o,"E",(function(){return validateCallback})),s.d(o,"F",(function(){return validateContextObject}));var v=s(8),_={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},assert=function(i,o){if(!i)throw assertionError(o)},assertionError=function(i){return new Error("Firebase Database ("+_.SDK_VERSION+") INTERNAL ASSERT FAILED: "+i)},stringToByteArray$1=function(i){for(var o=[],s=0,v=0;v>6|192,o[s++]=63&_|128):55296==(64512&_)&&v+1>18|240,o[s++]=_>>12&63|128,o[s++]=_>>6&63|128,o[s++]=63&_|128):(o[s++]=_>>12|224,o[s++]=_>>6&63|128,o[s++]=63&_|128)}return o},byteArrayToString=function(i){for(var o=[],s=0,v=0;s191&&_<224){var $=i[s++];o[v++]=String.fromCharCode((31&_)<<6|63&$)}else if(_>239&&_<365){var ae=((7&_)<<18|(63&($=i[s++]))<<12|(63&(pe=i[s++]))<<6|63&i[s++])-65536;o[v++]=String.fromCharCode(55296+(ae>>10)),o[v++]=String.fromCharCode(56320+(1023&ae))}else{$=i[s++];var pe=i[s++];o[v++]=String.fromCharCode((15&_)<<12|(63&$)<<6|63&pe)}}return o.join("")},$={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(i,o){if(!Array.isArray(i))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var s=o?this.byteToCharMapWebSafe_:this.byteToCharMap_,v=[],_=0;_>2,tt=(3&$)<<4|pe>>4,nt=(15&pe)<<2|_e>>6,rt=63&_e;we||(rt=64,ae||(nt=64)),v.push(s[et],s[tt],s[nt],s[rt])}return v.join("")},encodeString:function(i,o){return this.HAS_NATIVE_SUPPORT&&!o?btoa(i):this.encodeByteArray(stringToByteArray$1(i),o)},decodeString:function(i,o){return this.HAS_NATIVE_SUPPORT&&!o?atob(i):byteArrayToString(this.decodeStringToByteArray(i,o))},decodeStringToByteArray:function(i,o){this.init_();for(var s=o?this.charToByteMapWebSafe_:this.charToByteMap_,v=[],_=0;_>4;if(v.push(_e),64!==pe){var et=ae<<4&240|pe>>2;if(v.push(et),64!==we){var tt=pe<<6&192|we;v.push(tt)}}}return v},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var i=0;i=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}},base64Encode=function(i){var o=stringToByteArray$1(i);return $.encodeByteArray(o,!0)},base64urlEncodeWithoutPadding=function(i){return base64Encode(i).replace(/\./g,"")},base64Decode=function(i){try{return $.decodeString(i,!0)}catch(i){console.error("base64Decode failed: ",i)}return null};function deepCopy(i){return deepExtend(void 0,i)}function deepExtend(i,o){if(!(o instanceof Object))return o;switch(o.constructor){case Date:return new Date(o.getTime());case Object:void 0===i&&(i={});break;case Array:i=[];break;default:return o}for(var s in o)o.hasOwnProperty(s)&&"__proto__"!==s&&(i[s]=deepExtend(i[s],o[s]));return i}var ae=function(){function Deferred(){var i=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(o,s){i.resolve=o,i.reject=s}))}return Deferred.prototype.wrapCallback=function(i){var o=this;return function(s,v){s?o.reject(s):o.resolve(v),"function"==typeof i&&(o.promise.catch((function(){})),1===i.length?i(s):i(s,v))}},Deferred}();function createMockUserToken(i,o){if(i.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var s=o||"demo-project",_=i.iat||0,$=i.sub||i.user_id;if(!$)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var ae=Object(v.__assign)({iss:"https://securetoken.google.com/"+s,aud:s,iat:_,exp:_+3600,auth_time:_,sub:$,user_id:$,firebase:{sign_in_provider:"custom",identities:{}}},i);return[base64urlEncodeWithoutPadding(JSON.stringify({alg:"none",type:"JWT"})),base64urlEncodeWithoutPadding(JSON.stringify(ae)),""].join(".")}function getUA(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function isMobileCordova(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA())}function isNode(){try{return"[object process]"===Object.prototype.toString.call(i.process)}catch(i){return!1}}function isBrowser(){return"object"==typeof self&&self.self===self}function isReactNative(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function isNodeSdk(){return!0===_.NODE_CLIENT||!0===_.NODE_ADMIN}var pe=function(i){function FirebaseError(o,s,v){var _=i.call(this,s)||this;return _.code=o,_.customData=v,_.name="FirebaseError",Object.setPrototypeOf(_,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(_,we.prototype.create),_}return Object(v.__extends)(FirebaseError,i),FirebaseError}(Error),we=function(){function ErrorFactory(i,o,s){this.service=i,this.serviceName=o,this.errors=s}return ErrorFactory.prototype.create=function(i){for(var o=[],s=1;s"}))}var _e=/\{\$([^}]+)}/g;function jsonEval(i){return JSON.parse(i)}function stringify(i){return JSON.stringify(i)}var decode=function(i){var o={},s={},v={},_="";try{var $=i.split(".");o=jsonEval(base64Decode($[0])||""),s=jsonEval(base64Decode($[1])||""),_=$[2],v=s.d||{},delete s.d}catch(i){}return{header:o,claims:s,data:v,signature:_}},isValidFormat=function(i){var o=decode(i).claims;return!!o&&"object"==typeof o&&o.hasOwnProperty("iat")},isAdmin=function(i){var o=decode(i).claims;return"object"==typeof o&&!0===o.admin};function contains(i,o){return Object.prototype.hasOwnProperty.call(i,o)}function safeGet(i,o){return Object.prototype.hasOwnProperty.call(i,o)?i[o]:void 0}function isEmpty(i){for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o))return!1;return!0}function map(i,o,s){var v={};for(var _ in i)Object.prototype.hasOwnProperty.call(i,_)&&(v[_]=o.call(s,i[_],_,i));return v}function querystring(i){for(var o=[],_loop_1=function(i,s){Array.isArray(s)?s.forEach((function(s){o.push(encodeURIComponent(i)+"="+encodeURIComponent(s))})):o.push(encodeURIComponent(i)+"="+encodeURIComponent(s))},s=0,v=Object.entries(i);s>>31)}var $,ae,pe=this.chain_[0],we=this.chain_[1],_e=this.chain_[2],et=this.chain_[3],tt=this.chain_[4];for(v=0;v<80;v++){v<40?v<20?($=et^we&(_e^et),ae=1518500249):($=we^_e^et,ae=1859775393):v<60?($=we&_e|et&(we|_e),ae=2400959708):($=we^_e^et,ae=3395469782);_=(pe<<5|pe>>>27)+$+tt+ae+s[v]&4294967295;tt=et,et=_e,_e=4294967295&(we<<30|we>>>2),we=pe,pe=_}this.chain_[0]=this.chain_[0]+pe&4294967295,this.chain_[1]=this.chain_[1]+we&4294967295,this.chain_[2]=this.chain_[2]+_e&4294967295,this.chain_[3]=this.chain_[3]+et&4294967295,this.chain_[4]=this.chain_[4]+tt&4294967295},Sha1.prototype.update=function(i,o){if(null!=i){void 0===o&&(o=i.length);for(var s=o-this.blockSize,v=0,_=this.buf_,$=this.inbuf_;v=56;s--)this.buf_[s]=255&o,o/=256;this.compress_(this.buf_);var v=0;for(s=0;s<5;s++)for(var _=24;_>=0;_-=8)i[v]=this.chain_[s]>>_&255,++v;return i},Sha1}();function createSubscribe(i,o){var s=new tt(i,o);return s.subscribe.bind(s)}var tt=function(){function ObserverProxy(i,o){var s=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=o,this.task.then((function(){i(s)})).catch((function(i){s.error(i)}))}return ObserverProxy.prototype.next=function(i){this.forEachObserver((function(o){o.next(i)}))},ObserverProxy.prototype.error=function(i){this.forEachObserver((function(o){o.error(i)})),this.close(i)},ObserverProxy.prototype.complete=function(){this.forEachObserver((function(i){i.complete()})),this.close()},ObserverProxy.prototype.subscribe=function(i,o,s){var v,_=this;if(void 0===i&&void 0===o&&void 0===s)throw new Error("Missing Observer.");void 0===(v=implementsAnyMethods(i,["next","error","complete"])?i:{next:i,error:o,complete:s}).next&&(v.next=noop),void 0===v.error&&(v.error=noop),void 0===v.complete&&(v.complete=noop);var $=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{_.finalError?v.error(_.finalError):v.complete()}catch(i){}})),this.observers.push(v),$},ObserverProxy.prototype.unsubscribeOne=function(i){void 0!==this.observers&&void 0!==this.observers[i]&&(delete this.observers[i],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},ObserverProxy.prototype.forEachObserver=function(i){if(!this.finalized)for(var o=0;os&&(_=0===s?"none":"no more than "+s),_)throw new Error(i+" failed: Was called with "+v+(1===v?" argument.":" arguments.")+" Expects "+_+".")};function errorPrefix(i,o){return i+" failed: "+o+" argument "}function validateCallback(i,o,s,v){if((!v||s)&&"function"!=typeof s)throw new Error(errorPrefix(i,o)+"must be a valid function.")}function validateContextObject(i,o,s,v){if((!v||s)&&("object"!=typeof s||null===s))throw new Error(errorPrefix(i,o)+"must be a valid context object.")}var stringToByteArray=function(i){for(var o=[],s=0,v=0;v=55296&&_<=56319){var $=_-55296;v++,assert(v>6|192,o[s++]=63&_|128):_<65536?(o[s++]=_>>12|224,o[s++]=_>>6&63|128,o[s++]=63&_|128):(o[s++]=_>>18|240,o[s++]=_>>12&63|128,o[s++]=_>>6&63|128,o[s++]=63&_|128)}return o},stringLength=function(i){for(var o=0,s=0;s=55296&&v<=56319?(o+=4,s++):o+=3}return o};function getModularInstance(i){return i&&i._delegate?i._delegate:i}}).call(this,s(23))},function(i,o,s){"use strict";s.d(o,"a",(function(){return highlightTree})),s.d(o,"b",(function(){return styleTags})),s.d(o,"c",(function(){return tagHighlighter})),s.d(o,"d",(function(){return yt}));var v=s(11);let _=0;class ${constructor(i,o,s){this.set=i,this.base=o,this.modified=s,this.id=_++}static define(i){if(null==i?void 0:i.base)throw new Error("Can not derive from a modified tag");let o=new $([],null,[]);if(o.set.push(o),i)for(let s of i.set)o.set.push(s);return o}static defineModifier(){let i=new pe;return o=>o.modified.indexOf(i)>-1?o:pe.get(o.base||o,o.modified.concat(i).sort(((i,o)=>i.id-o.id)))}}let ae=0;class pe{constructor(){this.instances=[],this.id=ae++}static get(i,o){if(!o.length)return i;let s=o[0].instances.find((s=>{return s.base==i&&(v=o,_=s.modified,v.length==_.length&&v.every(((i,o)=>i==_[o])));var v,_}));if(s)return s;let v=[],_=new $(v,i,o);for(let i of o)i.instances.push(_);let ae=powerSet(o);for(let o of i.set)if(!o.modified.length)for(let i of ae)v.push(pe.get(o,i));return _}}function powerSet(i){let o=[[]];for(let s=0;so.length-i.length))}function styleTags(i){let o=Object.create(null);for(let s in i){let v=i[s];Array.isArray(v)||(v=[v]);for(let i of s.split(" "))if(i){let s=[],_=2,$=i;for(let o=0;;){if("..."==$&&o>0&&o+3==i.length){_=1;break}let v=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec($);if(!v)throw new RangeError("Invalid path: "+i);if(s.push("*"==v[0]?"":'"'==v[0][0]?JSON.parse(v[0]):v[0]),o+=v[0].length,o==i.length)break;let ae=i[o++];if(o==i.length&&"!"==ae){_=0;break}if("/"!=ae)throw new RangeError("Invalid path: "+i);$=i.slice(o)}let ae=s.length-1,pe=s[ae];if(!pe)throw new RangeError("Invalid path: "+i);let we=new _e(v,_,ae>0?s.slice(0,ae):null);o[pe]=we.sort(o[pe])}}return we.add(o)}const we=new v.c;class _e{constructor(i,o,s,v){this.tags=i,this.mode=o,this.context=s,this.next=v}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(i){return!i||i.depth{let o=_;for(let v of i)for(let i of v.set){let v=s[i.id];if(v){o=o?o+" "+v:v;break}}return o},scope:v}}function highlightTags(i,o){let s=null;for(let v of i){let i=v.style(o);i&&(s=s?s+" "+i:i)}return s}function highlightTree(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,_=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.length,$=new et(v,Array.isArray(o)?o:[o],s);$.highlightRange(i.cursor(),v,_,"",$.highlighters),$.flush(_)}_e.empty=new _e([],2,null);class et{constructor(i,o,s){this.at=i,this.highlighters=o,this.span=s,this.class=""}startSpan(i,o){o!=this.class&&(this.flush(i),i>this.at&&(this.at=i),this.class=o)}flush(i){i>this.at&&this.class&&this.span(this.at,i,this.class)}highlightRange(i,o,s,_,$){let{type:ae,from:pe,to:we}=i;if(pe>=s||we<=o)return;ae.isTop&&($=this.highlighters.filter((i=>!i.scope||i.scope(ae))));let et=_,tt=getStyleTags(i)||_e.empty,nt=highlightTags($,tt.tags);if(nt&&(et&&(et+=" "),et+=nt,1==tt.mode&&(_+=(_?" ":"")+nt)),this.startSpan(Math.max(o,pe),et),tt.opaque)return;let rt=i.tree&&i.tree.prop(v.c.mounted);if(rt&&rt.overlay){let v=i.node.enter(rt.overlay[0].from+pe,1),ae=this.highlighters.filter((i=>!i.scope||i.scope(rt.tree.type))),_e=i.firstChild();for(let tt=0,nt=pe;;tt++){let it=tt=ot)&&i.nextSibling()););if(!it||ot>s)break;nt=it.to+pe,nt>o&&(this.highlightRange(v.cursor(),Math.max(o,it.from+pe),Math.min(s,nt),"",ae),this.startSpan(Math.min(s,nt),et))}_e&&i.parent()}else if(i.firstChild()){rt&&(_="");do{if(!(i.to<=o)){if(i.from>=s)break;this.highlightRange(i,o,s,_,$),this.startSpan(Math.min(s,i.to),et)}}while(i.nextSibling());i.parent()}}}function getStyleTags(i){let o=i.type.prop(we);for(;o&&o.context&&!i.matchContext(o.context);)o=o.next;return o||null}const tt=$.define,nt=tt(),rt=tt(),it=tt(rt),ot=tt(rt),st=tt(),dt=tt(st),ut=tt(st),lt=tt(),ct=tt(lt),ht=tt(),pt=tt(),ft=tt(),gt=tt(ft),mt=tt(),yt={comment:nt,lineComment:tt(nt),blockComment:tt(nt),docComment:tt(nt),name:rt,variableName:tt(rt),typeName:it,tagName:tt(it),propertyName:ot,attributeName:tt(ot),className:tt(rt),labelName:tt(rt),namespace:tt(rt),macroName:tt(rt),literal:st,string:dt,docString:tt(dt),character:tt(dt),attributeValue:tt(dt),number:ut,integer:tt(ut),float:tt(ut),bool:tt(st),regexp:tt(st),escape:tt(st),color:tt(st),url:tt(st),keyword:ht,self:tt(ht),null:tt(ht),atom:tt(ht),unit:tt(ht),modifier:tt(ht),operatorKeyword:tt(ht),controlKeyword:tt(ht),definitionKeyword:tt(ht),moduleKeyword:tt(ht),operator:pt,derefOperator:tt(pt),arithmeticOperator:tt(pt),logicOperator:tt(pt),bitwiseOperator:tt(pt),compareOperator:tt(pt),updateOperator:tt(pt),definitionOperator:tt(pt),typeOperator:tt(pt),controlOperator:tt(pt),punctuation:ft,separator:tt(ft),bracket:gt,angleBracket:tt(gt),squareBracket:tt(gt),paren:tt(gt),brace:tt(gt),content:lt,heading:ct,heading1:tt(ct),heading2:tt(ct),heading3:tt(ct),heading4:tt(ct),heading5:tt(ct),heading6:tt(ct),contentSeparator:tt(lt),list:tt(lt),quote:tt(lt),emphasis:tt(lt),strong:tt(lt),link:tt(lt),monospace:tt(lt),strikethrough:tt(lt),inserted:tt(),deleted:tt(),changed:tt(),invalid:tt(),meta:mt,documentMeta:tt(mt),annotation:tt(mt),processingInstruction:tt(mt),definition:$.defineModifier(),constant:$.defineModifier(),function:$.defineModifier(),standard:$.defineModifier(),local:$.defineModifier(),special:$.defineModifier()};tagHighlighter([{tag:yt.link,class:"tok-link"},{tag:yt.heading,class:"tok-heading"},{tag:yt.emphasis,class:"tok-emphasis"},{tag:yt.strong,class:"tok-strong"},{tag:yt.keyword,class:"tok-keyword"},{tag:yt.atom,class:"tok-atom"},{tag:yt.bool,class:"tok-bool"},{tag:yt.url,class:"tok-url"},{tag:yt.labelName,class:"tok-labelName"},{tag:yt.inserted,class:"tok-inserted"},{tag:yt.deleted,class:"tok-deleted"},{tag:yt.literal,class:"tok-literal"},{tag:yt.string,class:"tok-string"},{tag:yt.number,class:"tok-number"},{tag:[yt.regexp,yt.escape,yt.special(yt.string)],class:"tok-string2"},{tag:yt.variableName,class:"tok-variableName"},{tag:yt.local(yt.variableName),class:"tok-variableName tok-local"},{tag:yt.definition(yt.variableName),class:"tok-variableName tok-definition"},{tag:yt.special(yt.variableName),class:"tok-variableName2"},{tag:yt.definition(yt.propertyName),class:"tok-propertyName tok-definition"},{tag:yt.typeName,class:"tok-typeName"},{tag:yt.namespace,class:"tok-namespace"},{tag:yt.className,class:"tok-className"},{tag:yt.macroName,class:"tok-macroName"},{tag:yt.propertyName,class:"tok-propertyName"},{tag:yt.operator,class:"tok-operator"},{tag:yt.comment,class:"tok-comment"},{tag:yt.meta,class:"tok-meta"},{tag:yt.invalid,class:"tok-invalid"},{tag:yt.punctuation,class:"tok-punctuation"}])},function(i,o,s){"use strict";s.d(o,"a",(function(){return Dt})),s.d(o,"b",(function(){return ca})),s.d(o,"c",(function(){return _i})),s.d(o,"d",(function(){return xs})),s.d(o,"e",(function(){return Xt})),s.d(o,"f",(function(){return kt})),s.d(o,"g",(function(){return crosshairCursor})),s.d(o,"h",(function(){return drawSelection})),s.d(o,"i",(function(){return dropCursor})),s.d(o,"j",(function(){return getPanel})),s.d(o,"k",(function(){return getTooltip})),s.d(o,"l",(function(){return dist_gutter})),s.d(o,"m",(function(){return highlightActiveLine})),s.d(o,"n",(function(){return highlightActiveLineGutter})),s.d(o,"o",(function(){return highlightSpecialChars})),s.d(o,"p",(function(){return hoverTooltip})),s.d(o,"q",(function(){return oo})),s.d(o,"r",(function(){return lineNumbers})),s.d(o,"s",(function(){return logException})),s.d(o,"t",(function(){return placeholder})),s.d(o,"u",(function(){return rectangularSelection})),s.d(o,"v",(function(){return runScopeHandlers})),s.d(o,"w",(function(){return Os})),s.d(o,"x",(function(){return cs}));for(var v=s(3),_=s(36),$={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ae={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pe="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),we="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),_e=0;_e<10;_e++)$[48+_e]=$[96+_e]=String(_e);for(_e=1;_e<=24;_e++)$[_e+111]="F"+_e;for(_e=65;_e<=90;_e++)$[_e]=String.fromCharCode(_e+32),ae[_e]=String.fromCharCode(_e);for(var et in $)ae.hasOwnProperty(et)||(ae[et]=$[et]);function keyName(i){var o=!(pe&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||we&&i.shiftKey&&i.key&&1==i.key.length||"Unidentified"==i.key)&&i.key||(i.shiftKey?ae:$)[i.keyCode]||i.key||"Unidentified";return"Esc"==o&&(o="Escape"),"Del"==o&&(o="Delete"),"Left"==o&&(o="ArrowLeft"),"Up"==o&&(o="ArrowUp"),"Right"==o&&(o="ArrowRight"),"Down"==o&&(o="ArrowDown"),o}function getSelection(i){let o;return o=11==i.nodeType?i.getSelection?i:i.ownerDocument:i,o.getSelection()}function contains(i,o){return!!o&&(i==o||i.contains(1!=o.nodeType?o.parentNode:o))}function deepActiveElement(i){let o=i.activeElement;for(;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}function hasSelection(i,o){if(!o.anchorNode)return!1;try{return contains(i,o.anchorNode)}catch(i){return!1}}function clientRectsFor(i){return 3==i.nodeType?textRange(i,0,i.nodeValue.length).getClientRects():1==i.nodeType?i.getClientRects():[]}function isEquivalentPosition(i,o,s,v){return!!s&&(scanFor(i,o,s,v,-1)||scanFor(i,o,s,v,1))}function domIndex(i){for(var o=0;;o++)if(!(i=i.previousSibling))return o}function scanFor(i,o,s,v,_){for(;;){if(i==s&&o==v)return!0;if(o==(_<0?0:maxOffset(i))){if("DIV"==i.nodeName)return!1;let s=i.parentNode;if(!s||1!=s.nodeType)return!1;o=domIndex(i)+(_<0?0:1),i=s}else{if(1!=i.nodeType)return!1;if(1==(i=i.childNodes[o+(_<0?-1:0)]).nodeType&&"false"==i.contentEditable)return!1;o=_<0?maxOffset(i):0}}}function maxOffset(i){return 3==i.nodeType?i.nodeValue.length:i.childNodes.length}function flattenRect(i,o){let s=o?i.left:i.right;return{left:s,right:s,top:i.top,bottom:i.bottom}}function windowRect(i){return{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function getScale(i,o){let s=o.width/i.offsetWidth,v=o.height/i.offsetHeight;return(s>.995&&s<1.005||!isFinite(s)||Math.abs(o.width-i.offsetWidth)<1)&&(s=1),(v>.995&&v<1.005||!isFinite(v)||Math.abs(o.height-i.offsetHeight)<1)&&(v=1),{scaleX:s,scaleY:v}}function scrollRectIntoView(i,o,s,v,_,$,ae,pe){let we=i.ownerDocument,_e=we.defaultView||window;for(let et=i,tt=!1;et&&!tt;)if(1==et.nodeType){let i,nt=et==we.body,rt=1,it=1;if(nt)i=windowRect(_e);else{if(/^(fixed|sticky)$/.test(getComputedStyle(et).position)&&(tt=!0),et.scrollHeight<=et.clientHeight&&et.scrollWidth<=et.clientWidth){et=et.assignedSlot||et.parentNode;continue}let o=et.getBoundingClientRect();({scaleX:rt,scaleY:it}=getScale(et,o)),i={left:o.left,right:o.left+et.clientWidth*rt,top:o.top,bottom:o.top+et.clientHeight*it}}let ot=0,st=0;if("nearest"==_)o.top0&&o.bottom>i.bottom+st&&(st=o.bottom-i.bottom+st+ae)):o.bottom>i.bottom&&(st=o.bottom-i.bottom+ae,s<0&&o.top-st0&&o.right>i.right+ot&&(ot=o.right-i.right+ot+$)):o.right>i.right&&(ot=o.right-i.right+$,s<0&&o.lefts.clientHeight||s.scrollWidth>s.clientWidth)return s;s=s.assignedSlot||s.parentNode}else{if(11!=s.nodeType)break;s=s.host}return null}class tt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(i){return this.anchorNode==i.anchorNode&&this.anchorOffset==i.anchorOffset&&this.focusNode==i.focusNode&&this.focusOffset==i.focusOffset}setRange(i){let{anchorNode:o,focusNode:s}=i;this.set(o,Math.min(i.anchorOffset,o?maxOffset(o):0),s,Math.min(i.focusOffset,s?maxOffset(s):0))}set(i,o,s,v){this.anchorNode=i,this.anchorOffset=o,this.focusNode=s,this.focusOffset=v}}let nt,rt=null;function focusPreventScroll(i){if(i.setActive)return i.setActive();if(rt)return i.focus(rt);let o=[];for(let s=i;s&&(o.push(s,s.scrollTop,s.scrollLeft),s!=s.ownerDocument);s=s.parentNode);if(i.focus(null==rt?{get preventScroll(){return rt={preventScroll:!0},!0}}:void 0),!rt){rt=!1;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:o,v=nt||(nt=document.createRange());return v.setEnd(i,s),v.setStart(i,o),v}function dispatchKey(i,o,s){let v={key:o,code:o,keyCode:s,which:s,cancelable:!0},_=new KeyboardEvent("keydown",v);_.synthetic=!0,i.dispatchEvent(_);let $=new KeyboardEvent("keyup",v);return $.synthetic=!0,i.dispatchEvent($),_.defaultPrevented||$.defaultPrevented}function getRoot(i){for(;i;){if(i&&(9==i.nodeType||11==i.nodeType&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}function clearAttributes(i){for(;i.attributes.length;)i.removeAttributeNode(i.attributes[0])}function atElementStart(i,o){let s=o.focusNode,v=o.focusOffset;if(!s||o.anchorNode!=s||o.anchorOffset!=v)return!1;for(v=Math.min(v,maxOffset(s));;)if(v){if(1!=s.nodeType)return!1;let i=s.childNodes[v-1];"false"==i.contentEditable?v--:(s=i,v=maxOffset(s))}else{if(s==i)return!0;v=domIndex(s),s=s.parentNode}}function isScrolledToBottom(i){return i.scrollTop>Math.max(1,i.scrollHeight-i.clientHeight-4)}class it{constructor(i,o){let s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.node=i,this.offset=o,this.precise=s}static before(i,o){return new it(i.parentNode,domIndex(i),o)}static after(i,o){return new it(i.parentNode,domIndex(i)+1,o)}}const ot=[];class st{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(i){let o=this.posAtStart;for(let s of this.children){if(s==i)return o;o+=s.length+s.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(i){return this.posBefore(i)+i.length}sync(i,o){if(2&this.flags){let s,v=this.dom,_=null;for(let $ of this.children){if(7&$.flags){if(!$.dom&&(s=_?_.nextSibling:v.firstChild)){let i=st.get(s);(!i||!i.parent&&i.canReuseDOM($))&&$.reuseDOM(s)}$.sync(i,o),$.flags&=-8}if(s=_?_.nextSibling:v.firstChild,o&&!o.written&&o.node==v&&s!=$.dom&&(o.written=!0),$.dom.parentNode==v)for(;s&&s!=$.dom;)s=rm$1(s);else v.insertBefore($.dom,s);_=$.dom}for(s=_?_.nextSibling:v.firstChild,s&&o&&o.node==v&&(o.written=!0);s;)s=rm$1(s)}else if(1&this.flags)for(let s of this.children)7&s.flags&&(s.sync(i,o),s.flags&=-8)}reuseDOM(i){}localPosFromDOM(i,o){let s;if(i==this.dom)s=this.dom.childNodes[o];else{let v=0==maxOffset(i)?0:0==o?-1:1;for(;;){let o=i.parentNode;if(o==this.dom)break;0==v&&o.firstChild!=o.lastChild&&(v=i==o.firstChild?-1:1),i=o}s=v<0?i:i.nextSibling}if(s==this.dom.firstChild)return 0;for(;s&&!st.get(s);)s=s.nextSibling;if(!s)return this.length;for(let i=0,o=0;;i++){let v=this.children[i];if(v.dom==s)return o;o+=v.length+v.breakAfter}}domBoundsAround(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=-1,_=-1,$=-1,ae=-1;for(let pe=0,we=s,_e=s;peo)return s.domBoundsAround(i,o,we);if(et>=i&&-1==v&&(v=pe,_=we),we>o&&s.dom.parentNode==this.dom){$=pe,ae=_e;break}_e=et,we=et+s.breakAfter}return{from:_,to:ae<0?s+this.length:ae,startDOM:(v?this.children[v-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:$=0?this.children[$].dom:null}}markDirty(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.flags|=2,this.markParentsDirty(i)}markParentsDirty(i){for(let o=this.parent;o;o=o.parent){if(i&&(o.flags|=2),1&o.flags)return;o.flags|=1,i=!1}}setParent(i){this.parent!=i&&(this.parent=i,7&this.flags&&this.markParentsDirty(!0))}setDOM(i){this.dom!=i&&(this.dom&&(this.dom.cmView=null),this.dom=i,i.cmView=this)}get rootView(){for(let i=this;;){let o=i.parent;if(!o)return i;i=o}}replaceChildren(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot;this.markDirty();for(let v=i;v0&&void 0!==arguments[0]?arguments[0]:this.length;return new dt(this.children,i,this.children.length)}childPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(i,o)}toString(){let i=this.constructor.name.replace("View","");return i+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==i?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(i){return i.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(i,o,s,v,_,$){return!1}become(i){return!1}canReuseDOM(i){return i.constructor==this.constructor&&!(8&(this.flags|i.flags))}getSide(){return 0}destroy(){for(let i of this.children)i.parent==this&&i.destroy();this.parent=null}}function rm$1(i){let o=i.nextSibling;return i.parentNode.removeChild(i),o}st.prototype.breakAfter=0;class dt{constructor(i,o,s){this.children=i,this.pos=o,this.i=s,this.off=0}findPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(;;){if(i>this.pos||i==this.pos&&(o>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=i-this.pos,this;let s=this.children[--this.i];this.pos-=s.length+s.breakAfter}}}function replaceRange(i,o,s,v,_,$,ae,pe,we){let{children:_e}=i,et=_e.length?_e[o]:null,tt=$.length?$[$.length-1]:null,nt=tt?tt.breakAfter:ae;if(!(o==v&&et&&!ae&&!nt&&$.length<2&&et.merge(s,_,$.length?tt:null,0==s,pe,we))){if(v<_e.length){let i=_e[v];i&&(_0&&(!ae&&$.length&&et.merge(s,et.length,$[0],!1,pe,0)?et.breakAfter=$.shift().breakAfter:(s2);var bt={mac:Rt||/Mac/.test(ut.platform),windows:/Win/.test(ut.platform),linux:/Linux|X11/.test(ut.platform),ie:ft,ie_version:ht?lt.documentMode||6:pt?+pt[1]:ct?+ct[1]:0,gecko:gt,gecko_version:gt?+(/Firefox\/(\d+)/.exec(ut.userAgent)||[0,0])[1]:0,chrome:!!mt,chrome_version:mt?+mt[1]:0,ios:Rt,android:/Android\b/.test(ut.userAgent),webkit:yt,safari:vt,webkit_version:yt?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=lt.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Ot extends st{constructor(i){super(),this.text=i}get length(){return this.text.length}createDOM(i){this.setDOM(i||document.createTextNode(this.text))}sync(i,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(i){3==i.nodeType&&this.createDOM(i)}merge(i,o,s){return!(8&this.flags||s&&(!(s instanceof Ot)||this.length-(o-i)+s.length>256||8&s.flags))&&(this.text=this.text.slice(0,i)+(s?s.text:"")+this.text.slice(o),this.markDirty(),!0)}split(i){let o=new Ot(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),o.flags|=8&this.flags,o}localPosFromDOM(i,o){return i==this.dom?o:o?this.text.length:0}domAtPos(i){return new it(this.dom,i)}domBoundsAround(i,o,s){return{from:s,to:s+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(i,o){return textCoords(this.dom,i,o)}}class xt extends st{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(),this.mark=i,this.children=o,this.length=s;for(let i of o)i.setParent(this)}setAttrs(i){if(clearAttributes(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)i.setAttribute(o,this.mark.attrs[o]);return i}canReuseDOM(i){return super.canReuseDOM(i)&&!(8&(this.flags|i.flags))}reuseDOM(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.flags|=6)}sync(i,o){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(i,o)}merge(i,o,s,v,_,$){return(!s||!(!(s instanceof xt&&s.mark.eq(this.mark))||i&&_<=0||oi&&o.push(s=i&&(v=_),s=ae,_++}let $=this.length-i;return this.length=i,v>-1&&(this.children.length=v,this.markDirty()),new xt(this.mark,o,$)}domAtPos(i){return inlineDOMAtPos(this,i)}coordsAt(i,o){return coordsInChildren(this,i,o)}}function textCoords(i,o,s){let v=i.nodeValue.length;o>v&&(o=v);let _=o,$=o,ae=0;0==o&&s<0||o==v&&s>=0?bt.chrome||bt.gecko||(o?(_--,ae=1):$=0)?0:pe.length-1];return bt.safari&&!ae&&0==we.width&&(we=Array.prototype.find.call(pe,(i=>i.width))||we),ae?flattenRect(we,ae<0):we||null}class wt extends st{static create(i,o,s){return new wt(i,o,s)}constructor(i,o,s){super(),this.widget=i,this.length=o,this.side=s,this.prevWidget=null}split(i){let o=wt.create(this.widget,this.length-i,this.side);return this.length-=i,o}sync(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}getSide(){return this.side}merge(i,o,s,v,_,$){return!(s&&(!(s instanceof wt&&this.widget.compare(s.widget))||i>0&&_<=0||o0)?it.before(this.dom):it.after(this.dom,i==this.length)}domBoundsAround(){return null}coordsAt(i,o){let s=this.widget.coordsAt(this.dom,i,o);if(s)return s;let v=this.dom.getClientRects(),_=null;if(!v.length)return null;let $=this.side?this.side<0:i>0;for(let o=$?v.length-1:0;_=v[o],!(i>0?0==o:o==v.length-1||_.top<_.bottom);o+=$?-1:1);return flattenRect(_,!$)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Ct extends st{constructor(i){super(),this.side=i}get length(){return 0}merge(){return!1}become(i){return i instanceof Ct&&i.side==this.side}split(){return new Ct(this.side)}sync(){if(!this.dom){let i=document.createElement("img");i.className="cm-widgetBuffer",i.setAttribute("aria-hidden","true"),this.setDOM(i)}}getSide(){return this.side}domAtPos(i){return this.side>0?it.before(this.dom):it.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(i){return this.dom.getBoundingClientRect()}get overrideDOMText(){return v.o.empty}get isHidden(){return!0}}function inlineDOMAtPos(i,o){let s=i.dom,{children:v}=i,_=0;for(let i=0;_i&&o0;i--){let o=v[i-1];if(o.dom.parentNode==s)return o.domAtPos(o.length)}for(let i=_;i0&&o instanceof xt&&_.length&&(v=_[_.length-1])instanceof xt&&v.mark.eq(o.mark)?joinInlineInto(v,o.children[0],s-1):(_.push(o),o.setParent(i)),i.length+=o.length}function coordsInChildren(i,o,s){let v=null,_=-1,$=null,ae=-1;!function scan(i,o){for(let pe=0,we=0;pe=o&&(_e.children.length?scan(_e,o-we):(!$||$.isHidden&&s>0)&&(et>o||we==et&&_e.getSide()>0)?($=_e,ae=o-we):(we-1?1:0)!=_.length-(s&&_.indexOf(s)>-1?1:0))return!1;for(let $ of v)if($!=s&&(-1==_.indexOf($)||i[$]!==o[$]))return!1;return!0}function updateAttrs(i,o,s){let v=!1;if(o)for(let _ in o)s&&_ in s||(v=!0,"style"==_?i.style.cssText="":i.removeAttribute(_));if(s)for(let _ in s)o&&o[_]==s[_]||(v=!0,"style"==_?i.style.cssText=s[_]:i.setAttribute(_,s[_]));return v}function getAttrs(i){let o=Object.create(null);for(let s=0;s0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,o}transferDOM(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(i){attrsEq(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}append(i,o){joinInlineInto(this,i,o)}addLineDeco(i){let o=i.spec.attributes,s=i.spec.class;o&&(this.attrs=combineAttrs(o,this.attrs||{})),s&&(this.attrs=combineAttrs({class:s},this.attrs||{}))}domAtPos(i){return inlineDOMAtPos(this,i)}reuseDOM(i){"DIV"==i.nodeName&&(this.setDOM(i),this.flags|=6)}sync(i,o){var s;this.dom?4&this.flags&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(i,o);let v=this.dom.lastChild;for(;v&&st.get(v)instanceof xt;)v=v.lastChild;if(!(v&&this.length&&("BR"==v.nodeName||0!=(null===(s=st.get(v))||void 0===s?void 0:s.isEditable)||bt.ios&&this.children.some((i=>i instanceof Ot))))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let i,o=0;for(let s of this.children){if(!(s instanceof Ot)||/[^ -~]/.test(s.text))return null;let v=clientRectsFor(s.dom);if(1!=v.length)return null;o+=v[0].width,i=v[0].height}return o?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:o/this.length,textHeight:i}:null}coordsAt(i,o){let s=coordsInChildren(this,i,o);if(!this.children.length&&s&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=s.bottom-s.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight=o){if(_ instanceof _t)return _;if($>o)break}v=$+_.breakAfter}return null}}class Et extends st{constructor(i,o,s){super(),this.widget=i,this.length=o,this.deco=s,this.breakAfter=0,this.prevWidget=null}merge(i,o,s,v,_,$){return!(s&&(!(s instanceof Et&&this.widget.compare(s.widget))||i>0&&_<=0||o0)}}class kt{eq(i){return!1}updateDOM(i,o){return!1}compare(i){return this==i||this.constructor==i.constructor&&this.eq(i)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(i){return!0}coordsAt(i,o,s){return null}get isHidden(){return!1}destroy(i){}}var At=function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i}(At||(At={}));class Dt extends v.l{constructor(i,o,s,v){super(),this.startSide=i,this.endSide=o,this.widget=s,this.spec=v}get heightRelevant(){return!1}static mark(i){return new Pt(i)}static widget(i){let o=Math.max(-1e4,Math.min(1e4,i.side||0)),s=!!i.block;return o+=s&&!i.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new It(i,o,o,s,i.widget||null,!1)}static replace(i){let o,s,v=!!i.block;if(i.isBlockGap)o=-5e8,s=4e8;else{let{start:_,end:$}=getInclusive(i,v);o=(_?v?-3e8:-1:5e8)-1,s=1+($?v?2e8:1:-6e8)}return new It(i,o,s,v,i.widget||null,!0)}static line(i){return new Tt(i)}static set(i){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v.j.of(i,o)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Dt.none=v.j.empty;class Pt extends Dt{constructor(i){let{start:o,end:s}=getInclusive(i);super(o?-1:5e8,s?1:-6e8,null,i),this.tagName=i.tagName||"span",this.class=i.class||"",this.attrs=i.attributes||null}eq(i){var o,s;return this==i||i instanceof Pt&&this.tagName==i.tagName&&(this.class||(null===(o=this.attrs)||void 0===o?void 0:o.class))==(i.class||(null===(s=i.attrs)||void 0===s?void 0:s.class))&&attrsEq(this.attrs,i.attrs,"class")}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=o)throw new RangeError("Mark decorations may not be empty");return super.range(i,o)}}Pt.prototype.point=!1;class Tt extends Dt{constructor(i){super(-2e8,-2e8,null,i)}eq(i){return i instanceof Tt&&this.spec.class==i.spec.class&&attrsEq(this.spec.attributes,i.spec.attributes)}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(o!=i)throw new RangeError("Line decoration ranges must be zero-length");return super.range(i,o)}}Tt.prototype.mapMode=v.h.TrackBefore,Tt.prototype.point=!0;class It extends Dt{constructor(i,o,s,_,$,ae){super(o,s,$,i),this.block=_,this.isReplace=ae,this.mapMode=_?o<=0?v.h.TrackBefore:v.h.TrackAfter:v.h.TrackDel}get type(){return this.startSide!=this.endSide?At.WidgetRange:this.startSide<=0?At.WidgetBefore:At.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(i){return i instanceof It&&(o=this.widget,s=i.widget,o==s||!!(o&&s&&o.compare(s)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var o,s}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>o||i==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(i,o)}}function getInclusive(i){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{inclusiveStart:s,inclusiveEnd:v}=i;return null==s&&(s=i.inclusive),null==v&&(v=i.inclusive),{start:null!=s?s:o,end:null!=v?v:o}}function addRange(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,_=s.length-1;_>=0&&s[_]+v>=i?s[_]=Math.max(s[_],o):s.push(i,o)}It.prototype.point=!0;class Ft{constructor(i,o,s,v){this.doc=i,this.pos=o,this.end=s,this.disallowBlockEffectsFor=v,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=i.iter(),this.skip=o}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let i=this.content[this.content.length-1];return!(i.breakAfter||i instanceof Et&&i.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new _t),this.atCursorPos=!0),this.curLine}flushBuffer(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(wrapMarks(new Ct(-1),i),i.length),this.pendingBuffer=0)}addBlockWidget(i){this.flushBuffer(),this.curLine=null,this.content.push(i)}finish(i){this.pendingBuffer&&i<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||i&&this.content.length&&this.content[this.content.length-1]instanceof Et||this.getLine()}buildText(i,o,s){for(;i>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:s,done:v}=this.cursor.next(this.skip);if(this.skip=0,v)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,i--;continue}this.text=o,this.textOff=0}let v=Math.min(this.text.length-this.textOff,i,512);this.flushBuffer(o.slice(o.length-s)),this.getLine().append(wrapMarks(new Ot(this.text.slice(this.textOff,this.textOff+v)),o),s),this.atCursorPos=!0,this.textOff+=v,i-=v,s=0}}span(i,o,s,v){this.buildText(o-i,s,v),this.pos=o,this.openStart<0&&(this.openStart=v)}point(i,o,s,v,_,$){if(this.disallowBlockEffectsFor[$]&&s instanceof It){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let ae=o-i;if(s instanceof It)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Et(s.widget||new Nt("div"),ae,s));else{let $=wt.create(s.widget||new Nt("span"),ae,ae?0:s.startSide),pe=this.atCursorPos&&!$.isEditable&&_<=v.length&&(i0),we=!$.isEditable&&(iv.length||s.startSide<=0),_e=this.getLine();2!=this.pendingBuffer||pe||$.isEditable||(this.pendingBuffer=0),this.flushBuffer(v),pe&&(_e.append(wrapMarks(new Ct(1),v),_),_=v.length+Math.max(0,_-v.length)),_e.append(wrapMarks($,v),_),this.atCursorPos=we,this.pendingBuffer=we?iv.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=v.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(s);ae&&(this.textOff+ae<=this.text.length?this.textOff+=ae:(this.skip+=ae-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=_)}static build(i,o,s,_,$){let ae=new Ft(i,o,s,$);return ae.openEnd=v.j.spans(_,o,s,ae),ae.openStart<0&&(ae.openStart=ae.openEnd),ae.finish(ae.openEnd),ae}}function wrapMarks(i,o){for(let s of o)i=new xt(s,[i],i.length);return i}class Nt extends kt{constructor(i){super(),this.tag=i}eq(i){return i.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(i){return i.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Bt=v.g.define(),Lt=v.g.define(),jt=v.g.define(),Mt=v.g.define(),Qt=v.g.define(),Vt=v.g.define(),Ut=v.g.define(),Wt=v.g.define({combine:i=>i.some((i=>i))}),$t=v.g.define({combine:i=>i.some((i=>i))});class qt{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,_=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,$=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.range=i,this.y=o,this.x=s,this.yMargin=v,this.xMargin=_,this.isSnapshot=$}map(i){return i.empty?this:new qt(this.range.map(i),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(i){return this.range.to<=i.doc.length?this:new qt(v.e.cursor(i.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const zt=v.m.define({map:(i,o)=>i.map(o)});function logException(i,o,s){let v=i.facet(Mt);v.length?v[0](o):window.onerror?window.onerror(String(o),s,void 0,void 0,o):s?console.error(s+":",o):console.error(o)}const Zt=v.g.define({combine:i=>!i.length||i[0]});let Ht=0;const Gt=v.g.define();class Xt{constructor(i,o,s,v,_){this.id=i,this.create=o,this.domEventHandlers=s,this.domEventObservers=v,this.extension=_(this)}static define(i,o){const{eventHandlers:s,eventObservers:v,provide:_,decorations:$}=o||{};return new Xt(Ht++,i,s,v,(i=>{let o=[Gt.of(i)];return $&&o.push(nn.of((o=>{let s=o.plugin(i);return s?$(s):Dt.none}))),_&&o.push(_(i)),o}))}static fromClass(i,o){return Xt.define((o=>new i(o)),o)}}class Yt{constructor(i){this.spec=i,this.mustUpdate=null,this.value=null}update(i){if(this.value){if(this.mustUpdate){let i=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(i)}catch(o){if(logException(i.state,o,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(i)}catch(o){logException(i.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(i){var o;if(null===(o=this.value)||void 0===o?void 0:o.destroy)try{this.value.destroy()}catch(o){logException(i.state,o,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Kt=v.g.define(),Jt=v.g.define(),nn=v.g.define(),_n=v.g.define(),An=v.g.define();function getIsolatedRanges(i,o,s){let _=i.state.facet(An);if(!_.length)return _;let $=_.map((o=>o instanceof Function?o(i):o)),ae=[];return v.j.spans($,o,s,{point(){},span(i,o,s,v){let _=ae;for(let $=s.length-1;$>=0;$--,v--){let ae,pe=s[$].spec.bidiIsolate;if(null!=pe)if(v>0&&_.length&&(ae=_[_.length-1]).to==i&&ae.direction==pe)ae.to=o,_=ae.inner;else{let s={from:i,to:o,direction:pe,inner:[]};_.push(s),_=s.inner}}}}),ae}const Zn=v.g.define();function getScrollMargins(i){let o=0,s=0,v=0,_=0;for(let $ of i.state.facet(Zn)){let ae=$(i);ae&&(null!=ae.left&&(o=Math.max(o,ae.left)),null!=ae.right&&(s=Math.max(s,ae.right)),null!=ae.top&&(v=Math.max(v,ae.top)),null!=ae.bottom&&(_=Math.max(_,ae.bottom)))}return{left:o,right:s,top:v,bottom:_}}const aa=v.g.define();class ra{constructor(i,o,s,v){this.fromA=i,this.toA=o,this.fromB=s,this.toB=v}join(i){return new ra(Math.min(this.fromA,i.fromA),Math.max(this.toA,i.toA),Math.min(this.fromB,i.fromB),Math.max(this.toB,i.toB))}addToSet(i){let o=i.length,s=this;for(;o>0;o--){let v=i[o-1];if(!(v.fromA>s.toA)){if(v.toA_e)break;_+=2}if(!pe)return s;new ra(pe.fromA,pe.toA,pe.fromB,pe.toB).addToSet(s),$=pe.toA,ae=pe.toB}}}class ia{constructor(i,o,s){this.view=i,this.state=o,this.transactions=s,this.flags=0,this.startState=i.state,this.changes=v.c.empty(this.startState.doc.length);for(let i of s)this.changes=this.changes.compose(i.changes);let _=[];this.changes.iterChangedRanges(((i,o,s,v)=>_.push(new ra(i,o,s,v)))),this.changedRanges=_}static create(i,o,s){return new ia(i,o,s)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((i=>i.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var ca=function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i}(ca||(ca={}));const ha=ca.LTR,ga=ca.RTL;function dec(i){let o=[];for(let s=0;s=o){if(ae.level==s)return $;(_<0||(0!=v?v<0?ae.fromo:i[_].level>ae.level))&&(_=$)}}if(_<0)throw new RangeError("Index out of range");return _}}function isolatesEq(i,o){if(i.length!=o.length)return!1;for(let s=0;s=0;i-=3)if(_a[i+1]==-s){let o=_a[i+2],s=2&o?_:4&o?1&o?$:_:0;s&&(tr[ae]=tr[_a[i]]=s),pe=i;break}}else{if(189==_a.length)break;_a[pe++]=ae,_a[pe++]=o,_a[pe++]=we}else if(2==(v=tr[ae])||1==v){let i=v==_;we=i?0:1;for(let o=pe-3;o>=0;o-=3){let s=_a[o+2];if(2&s)break;if(i)_a[o+2]|=2;else{if(4&s)break;_a[o+2]|=4}}}}}function processNeutrals(i,o,s,v){for(let _=0,$=v;_<=s.length;_++){let ae=_?s[_-1].to:i,pe=_we;)o==$&&(o=s[--v].from,$=v?s[v-1].to:i),tr[--o]=et;we=ae}else $=ae,we++}}}function emitSpans(i,o,s,v,_,$,ae){let pe=v%2?2:1;if(v%2==_%2)for(let we=o,_e=0;wewe&&ae.push(new er(we,it.from,nt)),computeSectionOrder(i,it.direction==ha!=!(nt%2)?v+1:v,_,it.inner,it.from,it.to,ae),we=it.to}rt=it.to}else{if(rt==s||(o?tr[rt]!=pe:tr[rt]==pe))break;rt++}tt?emitSpans(i,we,rt,v+1,_,tt,ae):weo;){let s=!0,et=!1;if(!_e||we>$[_e-1].to){let i=tr[we-1];i!=pe&&(s=!1,et=16==i)}let tt=s||1!=pe?null:[],nt=s?v:v+1,rt=we;e:for(;;)if(_e&&rt==$[_e-1].to){if(et)break e;let it=$[--_e];if(!s)for(let i=it.from,s=_e;;){if(i==o)break e;if(!s||$[s-1].to!=i){if(tr[i-1]==pe)break e;break}i=$[--s].from}if(tt)tt.push(it);else{it.totr.length;)tr[tr.length]=256;let v=[],_=o==ha?0:1;return computeSectionOrder(i,_,_,s,0,i.length,v),v}function trivialOrder(i){return[new er(0,i,0)]}let nr="";function moveVisually(i,o,s,_,$){var ae;let pe=_.head-i.from,we=-1;if(0==pe){if(!$||!i.length)return null;o[0].level!=s&&(pe=o[0].side(!1,s),we=0)}else if(pe==i.length){if($)return null;let i=o[o.length-1];i.level!=s&&(pe=i.side(!0,s),we=o.length-1)}we<0&&(we=er.find(o,pe,null!==(ae=_.bidiLevel)&&void 0!==ae?ae:-1,_.assoc));let _e=o[we];pe==_e.side($,s)&&(_e=o[we+=$?1:-1],pe=_e.side(!$,s));let et=$==(_e.dir==s),tt=Object(v.u)(i.text,pe,et);if(nr=i.text.slice(Math.min(pe,tt),Math.max(pe,tt)),tt>_e.from&&tt<_e.to)return v.e.cursor(tt+i.from,et?-1:1,_e.level);let nt=we==($?o.length-1:0)?null:o[we+($?1:-1)];return nt||_e.level==s?nt&&nt.level<_e.level?v.e.cursor(nt.side(!$,s)+i.from,$?1:-1,nt.level):v.e.cursor(tt+i.from,$?-1:1,_e.level):v.e.cursor($?i.to:i.from,$?-1:1,s)}class ar extends st{get length(){return this.view.state.doc.length}constructor(i){super(),this.view=i,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(i.contentDOM),this.children=[new _t],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ra(0,0,0,i.state.doc.length)],0,null)}update(i){var o;let s=i.changedRanges;this.minWidth>0&&s.length&&(s.every((i=>{let{fromA:o,toA:s}=i;return sthis.minWidthTo}))?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let v=-1;this.view.inputState.composing>=0&&((null===(o=this.domChanged)||void 0===o?void 0:o.newSel)?v=this.domChanged.newSel.head:touchesComposition(i.changes,this.hasComposition)||i.selectionSet||(v=i.state.selection.main.head));let _=v>-1?findCompositionRange(this.view,i.changes,v):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:o,to:v}=this.hasComposition;s=new ra(o,v,i.changes.mapPos(o,-1),i.changes.mapPos(v,1)).addToSet(s.slice())}this.hasComposition=_?{from:_.range.fromB,to:_.range.toB}:null,(bt.ie||bt.chrome)&&!_&&i&&i.state.doc.lines!=i.startState.doc.lines&&(this.forceSelection=!0);let $=findChangedDeco(this.decorations,this.updateDeco(),i.changes);return s=ra.extendWithRanges(s,$),!!(7&this.flags||0!=s.length)&&(this.updateInner(s,i.startState.doc.length,_),i.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(i,o,s){this.view.viewState.mustMeasureContent=!0,this.updateChildren(i,o,s);let{observer:v}=this.view;v.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=bt.chrome||bt.ios?{node:v.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,i),this.flags&=-8,i&&(i.written||v.selectionRange.focusNode!=i.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((i=>i.flags&=-9));let _=[];if(this.view.viewport.from||this.view.viewport.to=0?v[i]:null;if(!o)break;let $,ae,pe,we,{fromA:_e,toA:et,fromB:tt,toB:nt}=o;if(s&&s.range.fromBtt){let i=Ft.build(this.view.state.doc,tt,s.range.fromB,this.decorations,this.dynamicDecorationMap),o=Ft.build(this.view.state.doc,s.range.toB,nt,this.decorations,this.dynamicDecorationMap);ae=i.breakAtStart,pe=i.openStart,we=o.openEnd;let v=this.compositionView(s);o.breakAtStart?v.breakAfter=1:o.content.length&&v.merge(v.length,v.length,o.content[0],!1,o.openStart,0)&&(v.breakAfter=o.content[0].breakAfter,o.content.shift()),i.content.length&&v.merge(0,0,i.content[i.content.length-1],!0,0,i.openEnd)&&i.content.pop(),$=i.content.concat(v).concat(o.content)}else({content:$,breakAtStart:ae,openStart:pe,openEnd:we}=Ft.build(this.view.state.doc,tt,nt,this.decorations,this.dynamicDecorationMap));let{i:rt,off:it}=_.findPos(et,1),{i:ot,off:st}=_.findPos(_e,-1);replaceRange(this,ot,st,rt,it,$,ae,pe,we)}s&&this.fixCompositionDOM(s)}compositionView(i){let o=new Ot(i.text.nodeValue);o.flags|=8;for(let{deco:s}of i.marks)o=new xt(s,[o],o.length);let s=new _t;return s.append(o,0),s}fixCompositionDOM(i){let fix=(i,o)=>{o.flags|=8|(o.children.some((i=>7&i.flags))?1:0),this.markedForComposition.add(o);let s=st.get(i);s&&s!=o&&(s.dom=null),o.setDOM(i)},o=this.childPos(i.range.fromB,1),s=this.children[o.i];fix(i.line,s);for(let v=i.marks.length-1;v>=-1;v--)o=s.childPos(o.off,1),s=s.children[o.i],fix(v>=0?i.marks[v].node:i.text,s)}updateSelection(){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let o=this.view.root.activeElement,s=o==this.dom,v=!s&&hasSelection(this.dom,this.view.observer.selectionRange)&&!(o&&this.dom.contains(o));if(!(s||i||v))return;let _=this.forceSelection;this.forceSelection=!1;let $=this.view.state.selection.main,ae=this.moveToLine(this.domAtPos($.anchor)),pe=$.empty?ae:this.moveToLine(this.domAtPos($.head));if(bt.gecko&&$.empty&&!this.hasComposition&&(1==(we=ae).node.nodeType&&we.node.firstChild&&(0==we.offset||"false"==we.node.childNodes[we.offset-1].contentEditable)&&(we.offset==we.node.childNodes.length||"false"==we.node.childNodes[we.offset].contentEditable))){let i=document.createTextNode("");this.view.observer.ignore((()=>ae.node.insertBefore(i,ae.node.childNodes[ae.offset]||null))),ae=pe=new it(i,0),_=!0}var we;let _e=this.view.observer.selectionRange;!_&&_e.focusNode&&isEquivalentPosition(ae.node,ae.offset,_e.anchorNode,_e.anchorOffset)&&isEquivalentPosition(pe.node,pe.offset,_e.focusNode,_e.focusOffset)||(this.view.observer.ignore((()=>{bt.android&&bt.chrome&&this.dom.contains(_e.focusNode)&&inUneditable(_e.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let i=getSelection(this.view.root);if(i)if($.empty){if(bt.gecko){let i=nextToUneditable(ae.node,ae.offset);if(i&&3!=i){let o=nearbyTextNode(ae.node,ae.offset,1==i?1:-1);o&&(ae=new it(o.node,o.offset))}}i.collapse(ae.node,ae.offset),null!=$.bidiLevel&&void 0!==i.caretBidiLevel&&(i.caretBidiLevel=$.bidiLevel)}else if(i.extend){i.collapse(ae.node,ae.offset);try{i.extend(pe.node,pe.offset)}catch(i){}}else{let o=document.createRange();$.anchor>$.head&&([ae,pe]=[pe,ae]),o.setEnd(pe.node,pe.offset),o.setStart(ae.node,ae.offset),i.removeAllRanges(),i.addRange(o)}else;v&&this.view.root.activeElement==this.dom&&(this.dom.blur(),o&&o.focus())})),this.view.observer.setSelectionRange(ae,pe)),this.impreciseAnchor=ae.precise?null:new it(_e.anchorNode,_e.anchorOffset),this.impreciseHead=pe.precise?null:new it(_e.focusNode,_e.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:i}=this,o=i.state.selection.main,s=getSelection(i.root),{anchorNode:v,anchorOffset:_}=i.observer.selectionRange;if(!(s&&o.empty&&o.assoc&&s.modify))return;let $=_t.find(this,o.head);if(!$)return;let ae=$.posAtStart;if(o.head==ae||o.head==ae+$.length)return;let pe=this.coordsAt(o.head,-1),we=this.coordsAt(o.head,1);if(!pe||!we||pe.bottom>we.top)return;let _e=this.domAtPos(o.head+o.assoc);s.collapse(_e.node,_e.offset),s.modify("move",o.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();let et=i.observer.selectionRange;i.docView.posFromDOM(et.anchorNode,et.anchorOffset)!=o.from&&s.collapse(v,_)}moveToLine(i){let o,s=this.dom;if(i.node!=s)return i;for(let v=i.offset;!o&&v=0;v--){let i=st.get(s.childNodes[v]);i instanceof _t&&(o=i.domAtPos(i.length))}return o?new it(o.node,o.offset,!0):i}nearest(i){for(let o=i;o;){let i=st.get(o);if(i&&i.rootView==this)return i;o=o.parentNode}return null}posFromDOM(i,o){let s=this.nearest(i);if(!s)throw new RangeError("Trying to find position for a DOM position outside of the document");return s.localPosFromDOM(i,o)+s.posAtStart}domAtPos(i){let{i:o,off:s}=this.childCursor().findPos(i,-1);for(;o=0;$--){let ae=this.children[$],pe=_-ae.breakAfter,we=pe-ae.length;if(pei||ae.covers(1))&&(!s||ae instanceof _t&&!(s instanceof _t&&o>=0))&&(s=ae,v=we),_=we}return s?s.coordsAt(i-v,o):null}coordsForChar(i){let{i:o,off:s}=this.childPos(i,1),_=this.children[o];if(!(_ instanceof _t))return null;for(;_.children.length;){let{i:i,off:o}=_.childPos(s,1);for(;;i++){if(i==_.children.length)return null;if((_=_.children[i]).length)break}s=o}if(!(_ instanceof Ot))return null;let $=Object(v.u)(_.text,s);if($==s)return null;let ae=textRange(_.dom,s,$).getClientRects();for(let i=0;iMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,ae=-1,pe=this.view.textDirection==ca.LTR;for(let i=0,we=0;wev)break;if(i>=s){let s=_e.dom.getBoundingClientRect();if(o.push(s.height),$){let o=_e.dom.lastChild,v=o?clientRectsFor(o):[];if(v.length){let o=v[v.length-1],$=pe?o.right-s.left:s.right-o.left;$>ae&&(ae=$,this.minWidth=_,this.minWidthFrom=i,this.minWidthTo=et)}}}i=et+_e.breakAfter}return o}textDirectionAt(i){let{i:o}=this.childPos(i,1);return"rtl"==getComputedStyle(this.children[o].dom).direction?ca.RTL:ca.LTR}measureTextSize(){for(let i of this.children)if(i instanceof _t){let o=i.measureTextSize();if(o)return o}let i,o,s,v=document.createElement("div");return v.className="cm-line",v.style.width="99999px",v.style.position="absolute",v.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(v);let _=clientRectsFor(v.firstChild)[0];i=v.getBoundingClientRect().height,o=_?_.width/27:7,s=_?_.height:i,v.remove()})),{lineHeight:i,charWidth:o,textHeight:s}}childCursor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,o=this.children.length;return o&&(i-=this.children[--o].length),new dt(this.children,i,o)}computeBlockGapDeco(){let i=[],o=this.view.viewState;for(let s=0,v=0;;v++){let _=v==o.viewports.length?null:o.viewports[v],$=_?_.from-1:this.length;if($>s){let v=(o.lineBlockAt($).bottom-o.lineBlockAt(s).top)/this.view.scaleY;i.push(Dt.replace({widget:new rr(v),block:!0,inclusive:!0,isBlockGap:!0}).range(s,$))}if(!_)break;s=_.to+1}return Dt.set(i)}updateDeco(){let i=this.view.state.facet(nn).map(((i,o)=>(this.dynamicDecorationMap[o]="function"==typeof i)?i(this.view):i));for(let o=i.length;os.anchor?-1:1);if(!v)return;!s.empty&&(o=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(v={left:Math.min(v.left,o.left),top:Math.min(v.top,o.top),right:Math.max(v.right,o.right),bottom:Math.max(v.bottom,o.bottom)});let _=getScrollMargins(this.view),$={left:v.left-_.left,top:v.top-_.top,right:v.right+_.right,bottom:v.bottom+_.bottom},{offsetWidth:ae,offsetHeight:pe}=this.view.scrollDOM;scrollRectIntoView(this.view.scrollDOM,$,s.head0))break;s=s.childNodes[v-1],v=maxOffset(s)}if(s>=0)for(let v=i,_=o;;){if(3==v.nodeType)return{node:v,offset:_};if(!(1==v.nodeType&&_=0))break;v=v.childNodes[_],_=0}return null}function nextToUneditable(i,o){return 1!=i.nodeType?0:(o&&"false"==i.childNodes[o-1].contentEditable?1:0)|(o{io.from&&(s=!0)})),s}function groupAt(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,_=i.charCategorizer(o),$=i.doc.lineAt(o),ae=o-$.from;if(0==$.length)return v.e.cursor(o);0==ae?s=1:ae==$.length&&(s=-1);let pe=ae,we=ae;s<0?pe=Object(v.u)($.text,ae,!1):we=Object(v.u)($.text,ae);let _e=_($.text.slice(pe,we));for(;pe>0;){let i=Object(v.u)($.text,pe,!1);if(_($.text.slice(i,pe))!=_e)break;pe=i}for(;we<$.length;){let i=Object(v.u)($.text,we);if(_($.text.slice(we,i))!=_e)break;we=i}return v.e.range(pe+$.from,we+$.from)}function getdx(i,o){return o.left>i?o.left-i:Math.max(0,i-o.right)}function getdy(i,o){return o.top>i?o.top-i:Math.max(0,i-o.bottom)}function yOverlap(i,o){return i.topo.top+1}function upTop(i,o){return oi.bottom?{top:i.top,left:i.left,right:i.right,bottom:o}:i}function domPosAtCoords(i,o,s){let v,_,$,ae,pe,we,_e,et,tt=!1;for(let nt=i.firstChild;nt;nt=nt.nextSibling){let i=clientRectsFor(nt);for(let rt=0;rtst||ae==st&&$>ot){v=nt,_=it,$=ot,ae=st;let pe=st?s0?rt0)}0==ot?s>it.bottom&&(!_e||_e.bottomit.top)&&(we=nt,et=it):_e&&yOverlap(_e,it)?_e=upBot(_e,it.bottom):et&&yOverlap(et,it)&&(et=upTop(et,it.top))}}if(_e&&_e.bottom>=s?(v=pe,_=_e):et&&et.top<=s&&(v=we,_=et),!v)return{node:i,offset:0};let nt=Math.max(_.left,Math.min(_.right,o));return 3==v.nodeType?domPosInText(v,nt,s):tt&&"false"!=v.contentEditable?domPosAtCoords(v,nt,s):{node:i,offset:Array.prototype.indexOf.call(i.childNodes,v)+(o>=(_.left+_.right)/2?1:0)}}function domPosInText(i,o,s){let v=i.nodeValue.length,_=-1,$=1e9,ae=0;for(let pe=0;pes?_e.top-s:s-_e.bottom)-1;if(_e.left-1<=o&&_e.right+1>=o&&et<$){let s=o>=(_e.left+_e.right)/2,v=s;if(bt.chrome||bt.gecko){textRange(i,pe).getBoundingClientRect().left==_e.right&&(v=!s)}if(et<=0)return{node:i,offset:pe+(v?1:0)};_=pe+(v?1:0),$=et}}}return{node:i,offset:_>-1?_:ae>0?i.nodeValue.length:0}}function posAtCoords(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;var _,$;let ae,pe=i.contentDOM.getBoundingClientRect(),we=pe.top+i.viewState.paddingTop,{docHeight:_e}=i.viewState,{x:et,y:tt}=o,nt=tt-we;if(nt<0)return 0;if(nt>_e)return i.state.doc.length;for(let o=i.viewState.heightOracle.textHeight/2,_=!1;ae=i.elementAtHeight(nt),ae.type!=At.Text;)for(;nt=v>0?ae.bottom+o:ae.top-o,!(nt>=0&&nt<=_e);){if(_)return s?null:0;_=!0,v=-v}tt=we+nt;let rt=ae.from;if(rti.viewport.to)return i.viewport.to==i.state.doc.length?i.state.doc.length:s?null:posAtCoordsImprecise(i,pe,ae,et,tt);let it=i.dom.ownerDocument,ot=i.root.elementFromPoint?i.root:it,st=ot.elementFromPoint(et,tt);st&&!i.contentDOM.contains(st)&&(st=null),st||(et=Math.max(pe.left+1,Math.min(pe.right-1,et)),st=ot.elementFromPoint(et,tt),st&&!i.contentDOM.contains(st)&&(st=null));let dt,ut=-1;if(st&&0!=(null===(_=i.docView.nearest(st))||void 0===_?void 0:_.isEditable))if(it.caretPositionFromPoint){let i=it.caretPositionFromPoint(et,tt);i&&({offsetNode:dt,offset:ut}=i)}else if(it.caretRangeFromPoint){let o=it.caretRangeFromPoint(et,tt);o&&(({startContainer:dt,startOffset:ut}=o),(!i.contentDOM.contains(dt)||bt.safari&&isSuspiciousSafariCaretResult(dt,ut,et)||bt.chrome&&isSuspiciousChromeCaretResult(dt,ut,et))&&(dt=void 0))}if(!dt||!i.docView.dom.contains(dt)){let o=_t.find(i.docView,rt);if(!o)return nt>ae.top+ae.height/2?ae.to:ae.from;({node:dt,offset:ut}=domPosAtCoords(o.dom,et,tt))}let lt=i.docView.nearest(dt);if(!lt)return null;if(lt.isWidget&&1==(null===($=lt.dom)||void 0===$?void 0:$.nodeType)){let i=lt.dom.getBoundingClientRect();return o.y1.5*i.defaultLineHeight){let o=i.viewState.heightOracle.textHeight;ae+=Math.floor(($-s.top-.5*(i.defaultLineHeight-o))/o)*i.viewState.heightOracle.lineLength}let pe=i.state.sliceDoc(s.from,s.to);return s.from+Object(v.v)(pe,ae,i.state.tabSize)}function isSuspiciousSafariCaretResult(i,o,s){let v;if(3!=i.nodeType||o!=(v=i.nodeValue.length))return!1;for(let o=i.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return textRange(i,v-1,v).getBoundingClientRect().left>s}function isSuspiciousChromeCaretResult(i,o,s){if(0!=o)return!1;for(let o=i;;){let i=o.parentNode;if(!i||1!=i.nodeType||i.firstChild!=o)return!1;if(i.classList.contains("cm-line"))break;o=i}return s-(1==i.nodeType?i.getBoundingClientRect():textRange(i,0,Math.max(i.nodeValue.length,1)).getBoundingClientRect()).left>5}function blockAt(i,o){let s=i.lineBlockAt(o);if(Array.isArray(s.type))for(let i of s.type)if(i.to>o||i.to==o&&(i.to==s.to||i.type==At.Text))return i;return s}function moveToLineBoundary(i,o,s,_){let $=blockAt(i,o.head),ae=_&&$.type==At.Text&&(i.lineWrapping||$.widgetLineBreaks)?i.coordsAtPos(o.assoc<0&&o.head>$.from?o.head-1:o.head):null;if(ae){let o=i.dom.getBoundingClientRect(),_=i.textDirectionAt($.from),pe=i.posAtCoords({x:s==(_==ca.LTR)?o.right-1:o.left+1,y:(ae.top+ae.bottom)/2});if(null!=pe)return v.e.cursor(pe,s?-1:1)}return v.e.cursor(s?$.to:$.from,s?-1:1)}function moveByChar(i,o,s,_){let $=i.state.doc.lineAt(o.head),ae=i.bidiSpans($),pe=i.textDirectionAt($.from);for(let we=o,_e=null;;){let o=moveVisually($,ae,pe,we,s),et=nr;if(!o){if($.number==(s?i.state.doc.lines:1))return we;et="\n",$=i.state.doc.line($.number+(s?1:-1)),ae=i.bidiSpans($),o=v.e.cursor(s?$.from:$.to)}if(_e){if(!_e(et))return we}else{if(!_)return o;_e=_(et)}we=o}}function byGroup(i,o,s){let _=i.state.charCategorizer(o),$=_(s);return i=>{let o=_(i);return $==v.d.Space&&($=o),$==o}}function moveVertically(i,o,s,_){let $=o.head,ae=s?1:-1;if($==(s?i.state.doc.length:0))return v.e.cursor($,o.assoc);let pe,we=o.goalColumn,_e=i.contentDOM.getBoundingClientRect(),et=i.coordsAtPos($,o.assoc||-1),tt=i.documentTop;if(et)null==we&&(we=et.left-_e.left),pe=ae<0?et.top:et.bottom;else{let o=i.viewState.lineBlockAt($);null==we&&(we=Math.min(_e.right-_e.left,i.defaultCharacterWidth*($-o.from))),pe=(ae<0?o.top:o.bottom)+tt}let nt=_e.left+we,rt=null!=_?_:i.viewState.heightOracle.textHeight>>1;for(let o=0;;o+=10){let s=pe+(rt+o)*ae,_=posAtCoords(i,{x:nt,y:s},!1,ae);if(s<_e.top||s>_e.bottom||(ae<0?_<$:_>$)){let o=i.docView.coordsForChar(_),$=!o||s{if(o>i&&o<_){let $=v||s||(o-i<_-o?-1:1);o=$<0?i:_,v=$}}));if(!v)return o}}function skipAtoms(i,o,s){let _=skipAtomicRanges(i.state.facet(_n).map((o=>o(i))),s.from,o.head>s.from?-1:1);return _==s.from?s:v.e.cursor(_,_null)),bt.gecko&&firefoxCopyCutHack(i.contentDOM.ownerDocument)}handleEvent(i){eventBelongsToEditor(this.view,i)&&!this.ignoreDuringComposition(i)&&("keydown"==i.type&&this.keydown(i)||this.runHandlers(i.type,i))}runHandlers(i,o){let s=this.handlers[i];if(s){for(let i of s.observers)i(this.view,o);for(let i of s.handlers){if(o.defaultPrevented)break;if(i(this.view,o)){o.preventDefault();break}}}}ensureHandlers(i){let o=computeHandlers(i),s=this.handlers,v=this.view.contentDOM;for(let i in o)if("scroll"!=i){let _=!o[i].handlers.length,$=s[i];$&&_!=!$.handlers.length&&(v.removeEventListener(i,this.handleEvent),$=null),$||v.addEventListener(i,this.handleEvent,{passive:_})}for(let i in s)"scroll"==i||o[i]||v.removeEventListener(i,this.handleEvent);this.handlers=o}keydown(i){if(this.lastKeyCode=i.keyCode,this.lastKeyTime=Date.now(),9==i.keyCode&&Date.now()o.keyCode==i.keyCode)))&&!i.ctrlKey||dr.indexOf(i.key)>-1&&i.ctrlKey&&!i.shiftKey)?(229!=i.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=o||i,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let i=this.pendingIOSKey;return!!i&&(this.pendingIOSKey=void 0,dispatchKey(this.view.contentDOM,i.key,i.keyCode))}ignoreDuringComposition(i){return!!/^key/.test(i.type)&&(this.composing>0||!!(bt.safari&&!bt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(i){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=i}update(i){this.mouseSelection&&this.mouseSelection.update(i),this.draggedContent&&i.docChanged&&(this.draggedContent=this.draggedContent.map(i.changes)),i.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function bindHandler(i,o){return(s,v)=>{try{return o.call(i,v,s)}catch(i){logException(s.state,i)}}}function computeHandlers(i){let o=Object.create(null);function record(i){return o[i]||(o[i]={observers:[],handlers:[]})}for(let o of i){let i=o.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let v=i.domEventHandlers[s];v&&record(s).handlers.push(bindHandler(o.value,v))}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let v=i.domEventObservers[s];v&&record(s).observers.push(bindHandler(o.value,v))}}for(let i in cr)record(i).handlers.push(cr[i]);for(let i in hr)record(i).observers.push(hr[i]);return o}const sr=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],dr="dthko",ur=[16,17,18,20,91,92,224,225];function dragScrollSpeed(i){return.7*Math.max(0,i)+8}class lr{constructor(i,o,s,_){this.view=i,this.startEvent=o,this.style=s,this.mustSelect=_,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=scrollableParent(i.contentDOM),this.atoms=i.state.facet(_n).map((o=>o(i)));let $=i.contentDOM.ownerDocument;$.addEventListener("mousemove",this.move=this.move.bind(this)),$.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=i.state.facet(v.f.allowMultipleSelections)&&addsSelectionRange(i,o),this.dragging=!(!isInPrimarySelection(i,o)||1!=getClickType(o))&&null}start(i){!1===this.dragging&&this.select(i)}move(i){var o,s,v;if(0==i.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(s=this.startEvent,v=i,Math.max(Math.abs(s.clientX-v.clientX),Math.abs(s.clientY-v.clientY))<10))return;this.select(this.lastEvent=i);let _=0,$=0,ae=(null===(o=this.scrollParent)||void 0===o?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},pe=getScrollMargins(this.view);i.clientX-pe.left<=ae.left+6?_=-dragScrollSpeed(ae.left-i.clientX):i.clientX+pe.right>=ae.right-6&&(_=dragScrollSpeed(i.clientX-ae.right)),i.clientY-pe.top<=ae.top+6?$=-dragScrollSpeed(ae.top-i.clientY):i.clientY+pe.bottom>=ae.bottom-6&&($=dragScrollSpeed(i.clientY-ae.bottom)),this.setScrollSpeed(_,$)}up(i){null==this.dragging&&this.select(this.lastEvent),this.dragging||i.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let i=this.view.contentDOM.ownerDocument;i.removeEventListener("mousemove",this.move),i.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(i,o){this.scrollSpeed={x:i,y:o},i||o?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(i){let o=null;for(let s=0;sthis.select(this.lastEvent)),20)}}function addsSelectionRange(i,o){let s=i.state.facet(Bt);return s.length?s[0](o):bt.mac?o.metaKey:o.ctrlKey}function dragMovesSelection(i,o){let s=i.state.facet(Lt);return s.length?s[0](o):bt.mac?!o.altKey:!o.ctrlKey}function isInPrimarySelection(i,o){let{main:s}=i.state.selection;if(s.empty)return!1;let v=getSelection(i.root);if(!v||0==v.rangeCount)return!0;let _=v.getRangeAt(0).getClientRects();for(let i=0;i<_.length;i++){let s=_[i];if(s.left<=o.clientX&&s.right>=o.clientX&&s.top<=o.clientY&&s.bottom>=o.clientY)return!0}return!1}function eventBelongsToEditor(i,o){if(!o.bubbles)return!0;if(o.defaultPrevented)return!1;for(let s,v=o.target;v!=i.contentDOM;v=v.parentNode)if(!v||11==v.nodeType||(s=st.get(v))&&s.ignoreEvent(o))return!1;return!0}const cr=Object.create(null),hr=Object.create(null),pr=bt.ie&&bt.ie_version<15||bt.ios&&bt.webkit_version<604;function capturePaste(i){let o=i.dom.parentNode;if(!o)return;let s=o.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.focus(),setTimeout((()=>{i.focus(),s.remove(),doPaste(i,s.value)}),50)}function doPaste(i,o){let s,{state:_}=i,$=1,ae=_.toText(o),pe=ae.lines==_.selection.ranges.length;if(null!=vr&&_.selection.ranges.every((i=>i.empty))&&vr==ae.toString()){let i=-1;s=_.changeByRange((s=>{let we=_.doc.lineAt(s.from);if(we.from==i)return{range:s};i=we.from;let _e=_.toText((pe?ae.line($++).text:o)+_.lineBreak);return{changes:{from:we.from,insert:_e},range:v.e.cursor(s.from+_e.length)}}))}else s=pe?_.changeByRange((i=>{let o=ae.line($++);return{changes:{from:i.from,to:i.to,insert:o.text},range:v.e.cursor(i.from+o.length)}})):_.replaceSelection(ae);i.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function rangeForClick(i,o,s,_){if(1==_)return v.e.cursor(o,s);if(2==_)return groupAt(i.state,o,s);{let s=_t.find(i.docView,o),_=i.state.doc.lineAt(s?s.posAtEnd:o),$=s?s.posAtStart:_.from,ae=s?s.posAtEnd:_.to;return ae{i.inputState.lastScrollTop=i.scrollDOM.scrollTop,i.inputState.lastScrollLeft=i.scrollDOM.scrollLeft},cr.keydown=(i,o)=>(i.inputState.setSelectionOrigin("select"),27==o.keyCode&&(i.inputState.lastEscPress=Date.now()),!1),hr.touchstart=(i,o)=>{i.inputState.lastTouchTime=Date.now(),i.inputState.setSelectionOrigin("select.pointer")},hr.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")},cr.mousedown=(i,o)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let s=null;for(let v of i.state.facet(jt))if(s=v(i,o),s)break;if(s||0!=o.button||(s=basicMouseSelection(i,o)),s){let v=!i.hasFocus;i.inputState.startMouseSelection(new lr(i,o,s,v)),v&&i.observer.ignore((()=>focusPreventScroll(i.contentDOM)));let _=i.inputState.mouseSelection;if(_)return _.start(o),!1===_.dragging}return!1};let insideY=(i,o)=>i>=o.top&&i<=o.bottom,dist_inside=(i,o,s)=>insideY(o,s)&&i>=s.left&&i<=s.right;function findPositionSide(i,o,s,v){let _=_t.find(i.docView,o);if(!_)return 1;let $=o-_.posAtStart;if(0==$)return 1;if($==_.length)return-1;let ae=_.coordsAt($,-1);if(ae&&dist_inside(s,v,ae))return-1;let pe=_.coordsAt($,1);return pe&&dist_inside(s,v,pe)?1:ae&&insideY(v,ae)?-1:1}function queryPos(i,o){let s=i.posAtCoords({x:o.clientX,y:o.clientY},!1);return{pos:s,bias:findPositionSide(i,s,o.clientX,o.clientY)}}const fr=bt.ie&&bt.ie_version<=11;let gr=null,mr=0,yr=0;function getClickType(i){if(!fr)return i.detail;let o=gr,s=yr;return gr=i,yr=Date.now(),mr=!o||s>Date.now()-400&&Math.abs(o.clientX-i.clientX)<2&&Math.abs(o.clientY-i.clientY)<2?(mr+1)%3:1}function basicMouseSelection(i,o){let s=queryPos(i,o),_=getClickType(o),$=i.state.selection;return{update(i){i.docChanged&&(s.pos=i.changes.mapPos(s.pos),$=$.map(i.changes))},get(o,ae,pe){let we,_e=queryPos(i,o),et=rangeForClick(i,_e.pos,_e.bias,_);if(s.pos!=_e.pos&&!ae){let o=rangeForClick(i,s.pos,s.bias,_),$=Math.min(o.from,et.from),ae=Math.max(o.to,et.to);et=$1&&(we=removeRangeAround($,_e.pos))?we:pe?$.addRange(et):v.e.create([et])}}}function removeRangeAround(i,o){for(let s=0;s=o)return v.e.create(i.ranges.slice(0,s).concat(i.ranges.slice(s+1)),i.mainIndex==s?0:i.mainIndex-(i.mainIndex>s?1:0))}return null}function dropText(i,o,s,v){if(!s)return;let _=i.posAtCoords({x:o.clientX,y:o.clientY},!1),{draggedContent:$}=i.inputState,ae=v&&$&&dragMovesSelection(i,o)?{from:$.from,to:$.to}:null,pe={from:_,insert:s},we=i.state.changes(ae?[ae,pe]:pe);i.focus(),i.dispatch({changes:we,selection:{anchor:we.mapPos(_,-1),head:we.mapPos(_,1)},userEvent:ae?"move.drop":"input.drop"}),i.inputState.draggedContent=null}function captureCopy(i,o){let s=i.dom.parentNode;if(!s)return;let v=s.appendChild(document.createElement("textarea"));v.style.cssText="position: fixed; left: -10000px; top: 10px",v.value=o,v.focus(),v.selectionEnd=o.length,v.selectionStart=0,setTimeout((()=>{v.remove(),i.focus()}),50)}function copiedRange(i){let o=[],s=[],v=!1;for(let v of i.selection.ranges)v.empty||(o.push(i.sliceDoc(v.from,v.to)),s.push(v));if(!o.length){let _=-1;for(let{from:v}of i.selection.ranges){let $=i.doc.lineAt(v);$.number>_&&(o.push($.text),s.push({from:$.from,to:Math.min(i.doc.length,$.to+1)})),_=$.number}v=!0}return{text:o.join(i.lineBreak),ranges:s,linewise:v}}cr.dragstart=(i,o)=>{let{selection:{main:s}}=i.state;if(o.target.draggable){let _=i.docView.nearest(o.target);if(_&&_.isWidget){let i=_.posAtStart,o=i+_.length;(i>=s.to||o<=s.from)&&(s=v.e.range(i,o))}}let{inputState:_}=i;return _.mouseSelection&&(_.mouseSelection.dragging=!0),_.draggedContent=s,o.dataTransfer&&(o.dataTransfer.setData("Text",i.state.sliceDoc(s.from,s.to)),o.dataTransfer.effectAllowed="copyMove"),!1},cr.dragend=i=>(i.inputState.draggedContent=null,!1),cr.drop=(i,o)=>{if(!o.dataTransfer)return!1;if(i.state.readOnly)return!0;let s=o.dataTransfer.files;if(s&&s.length){let v=Array(s.length),_=0,finishFile=()=>{++_==s.length&&dropText(i,o,v.filter((i=>null!=i)).join(i.state.lineBreak),!1)};for(let i=0;i{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(v[i]=o.result),finishFile()},o.readAsText(s[i])}return!0}{let s=o.dataTransfer.getData("Text");if(s)return dropText(i,o,s,!0),!0}return!1},cr.paste=(i,o)=>{if(i.state.readOnly)return!0;i.observer.flush();let s=pr?null:o.clipboardData;return s?(doPaste(i,s.getData("text/plain")||s.getData("text/uri-text")),!0):(capturePaste(i),!1)};let vr=null;cr.copy=cr.cut=(i,o)=>{let{text:s,ranges:v,linewise:_}=copiedRange(i.state);if(!s&&!_)return!1;vr=_?s:null,"cut"!=o.type||i.state.readOnly||i.dispatch({changes:v,scrollIntoView:!0,userEvent:"delete.cut"});let $=pr?null:o.clipboardData;return $?($.clearData(),$.setData("text/plain",s),!0):(captureCopy(i,s),!1)};const Rr=v.a.define();function focusChangeTransaction(i,o){let s=[];for(let v of i.facet(Ut)){let _=v(i,o);_&&s.push(_)}return s?i.update({effects:s,annotations:Rr.of(!0)}):null}function updateForFocusChange(i){setTimeout((()=>{let o=i.hasFocus;if(o!=i.inputState.notifiedFocused){let s=focusChangeTransaction(i.state,o);s?i.dispatch(s):i.update([])}}),10)}hr.focus=i=>{i.inputState.lastFocusTime=Date.now(),i.scrollDOM.scrollTop||!i.inputState.lastScrollTop&&!i.inputState.lastScrollLeft||(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),updateForFocusChange(i)},hr.blur=i=>{i.observer.clearSelectionRange(),updateForFocusChange(i)},hr.compositionstart=hr.compositionupdate=i=>{null==i.inputState.compositionFirstChange&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0)},hr.compositionend=i=>{i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,bt.chrome&&bt.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then((()=>i.observer.flush())):setTimeout((()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])}),50)},hr.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()},cr.beforeinput=(i,o)=>{var s;let v;if(bt.chrome&&bt.android&&(v=sr.find((i=>i.inputType==o.inputType)))&&(i.observer.delayAndroidKey(v.key,v.keyCode),"Backspace"==v.key||"Delete"==v.key)){let o=(null===(s=window.visualViewport)||void 0===s?void 0:s.height)||0;setTimeout((()=>{var s;((null===(s=window.visualViewport)||void 0===s?void 0:s.height)||0)>o+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())}),100)}return!1};const br=new Set;function firefoxCopyCutHack(i){br.has(i)||(br.add(i),i.addEventListener("copy",(()=>{})),i.addEventListener("cut",(()=>{})))}const Or=["pre-wrap","normal","pre-line","break-spaces"];class xr{constructor(i){this.lineWrapping=i,this.doc=v.o.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(i,o){let s=this.doc.lineAt(o).number-this.doc.lineAt(i).number+1;return this.lineWrapping&&(s+=Math.max(0,Math.ceil((o-i-s*this.lineLength*.5)/this.lineLength))),this.lineHeight*s}heightForLine(i){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((i-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(i){return this.doc=i,this}mustRefreshForWrapping(i){return Or.indexOf(i)>-1!=this.lineWrapping}mustRefreshForHeights(i){let o=!1;for(let s=0;s-1,pe=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=ae;if(this.lineWrapping=ae,this.lineHeight=o,this.charWidth=s,this.textHeight=v,this.lineLength=_,pe){this.heightSamples={};for(let i=0;i<$.length;i++){let o=$[i];o<0?i++:this.heightSamples[Math.floor(10*o)]=!0}}return pe}}class wr{constructor(i,o){this.from=i,this.heights=o,this.index=0}get more(){return this.index2&&void 0!==arguments[2]?arguments[2]:2;this.length=i,this.height=o,this.flags=s}get outdated(){return(2&this.flags)>0}set outdated(i){this.flags=(i?2:0)|-3&this.flags}setHeight(i,o){this.height!=o&&(Math.abs(this.height-o)>_r&&(i.heightChanged=!0),this.height=o)}replace(i,o,s){return Er.of(s)}decomposeLeft(i,o){o.push(this)}decomposeRight(i,o){o.push(this)}applyChanges(i,o,s,v){let _=this,$=s.doc;for(let ae=v.length-1;ae>=0;ae--){let{fromA:pe,toA:we,fromB:_e,toB:et}=v[ae],tt=_.lineAt(pe,Sr.ByPosNoHeight,s.setDoc(o),0,0),nt=tt.to>=we?tt:_.lineAt(we,Sr.ByPosNoHeight,s,0,0);for(et+=nt.to-we,we=nt.to;ae>0&&tt.from<=v[ae-1].toA;)pe=v[ae-1].fromA,_e=v[ae-1].fromB,ae--,pe2*_){let _=i[o-1];_.break?i.splice(--o,1,_.left,null,_.right):i.splice(--o,1,_.left,_.right),s+=1+_.break,v-=_.size}else{if(!(_>2*v))break;{let o=i[s];o.break?i.splice(s,1,o.left,null,o.right):i.splice(s,1,o.left,o.right),s+=2+o.break,_-=o.size}}else if(v<_){let s=i[o++];s&&(v+=s.size)}else{let o=i[--s];o&&(_+=o.size)}let $=0;return null==i[o-1]?($=1,o--):null==i[o]&&($=1,s++),new Pr(Er.of(i.slice(0,o)),$,Er.of(i.slice(s)))}}Er.prototype.size=1;class kr extends Er{constructor(i,o,s){super(i,o),this.deco=s}blockAt(i,o,s,v){return new Cr(v,this.length,s,this.height,this.deco||0)}lineAt(i,o,s,v,_){return this.blockAt(0,s,v,_)}forEachLine(i,o,s,v,_,$){i<=_+this.length&&o>=_&&$(this.blockAt(0,s,v,_))}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=o&&s.more&&this.setHeight(i,s.heights[s.index++]),this.outdated=!1,this}toString(){return"block(".concat(this.length,")")}}class Ar extends kr{constructor(i,o){super(i,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(i,o,s,v){return new Cr(v,this.length,s,this.height,this.breaks)}replace(i,o,s){let v=s[0];return 1==s.length&&(v instanceof Ar||v instanceof Dr&&4&v.flags)&&Math.abs(this.length-v.length)<10?(v instanceof Dr?v=new Ar(v.length,this.height):v.height=this.height,this.outdated||(v.outdated=!1),v):Er.of(s)}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=arguments.length>3?arguments[3]:void 0;return v&&v.from<=o&&v.more?this.setHeight(i,v.heights[v.index++]):(s||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))+this.breaks*i.lineHeight),this.outdated=!1,this}toString(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}class Dr extends Er{constructor(i){super(i,0)}heightMetrics(i,o){let s,v=i.doc.lineAt(o).number,_=i.doc.lineAt(o+this.length).number,$=_-v+1,ae=0;if(i.lineWrapping){let o=Math.min(this.height,i.lineHeight*$);s=o/$,this.length>$+1&&(ae=(this.height-o)/(this.length-$-1))}else s=this.height/$;return{firstLine:v,lastLine:_,perLine:s,perChar:ae}}blockAt(i,o,s,v){let{firstLine:_,lastLine:$,perLine:ae,perChar:pe}=this.heightMetrics(o,v);if(o.lineWrapping){let _=v+Math.round(Math.max(0,Math.min(1,(i-s)/this.height))*this.length),$=o.doc.lineAt(_),we=ae+$.length*pe,_e=Math.max(s,i-we/2);return new Cr($.from,$.length,_e,we,0)}{let v=Math.max(0,Math.min($-_,Math.floor((i-s)/ae))),{from:pe,length:we}=o.doc.line(_+v);return new Cr(pe,we,s+ae*v,ae,0)}}lineAt(i,o,s,v,_){if(o==Sr.ByHeight)return this.blockAt(i,s,v,_);if(o==Sr.ByPosNoHeight){let{from:o,to:v}=s.doc.lineAt(i);return new Cr(o,v-o,0,0,0)}let{firstLine:$,perLine:ae,perChar:pe}=this.heightMetrics(s,_),we=s.doc.lineAt(i),_e=ae+we.length*pe,et=we.number-$,tt=v+ae*et+pe*(we.from-_-et);return new Cr(we.from,we.length,Math.max(v,Math.min(tt,v+this.height-_e)),_e,0)}forEachLine(i,o,s,v,_,$){i=Math.max(i,_),o=Math.min(o,_+this.length);let{firstLine:ae,perLine:pe,perChar:we}=this.heightMetrics(s,_);for(let _e=i,et=v;_e<=o;){let o=s.doc.lineAt(_e);if(_e==i){let s=o.number-ae;et+=pe*s+we*(i-_-s)}let v=pe+we*o.length;$(new Cr(o.from,o.length,et,v,0)),et+=v,_e=o.to+1}}replace(i,o,s){let v=this.length-o;if(v>0){let i=s[s.length-1];i instanceof Dr?s[s.length-1]=new Dr(i.length+v):s.push(null,new Dr(v-1))}if(i>0){let o=s[0];o instanceof Dr?s[0]=new Dr(i+o.length):s.unshift(new Dr(i-1),null)}return Er.of(s)}decomposeLeft(i,o){o.push(new Dr(i-1),null)}decomposeRight(i,o){o.push(null,new Dr(this.length-i-1))}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=arguments.length>3?arguments[3]:void 0,_=o+this.length;if(v&&v.from<=o+this.length&&v.more){let s=[],$=Math.max(o,v.from),ae=-1;for(v.from>o&&s.push(new Dr(v.from-o-1).updateHeight(i,o));$<=_&&v.more;){let o=i.doc.lineAt($).length;s.length&&s.push(null);let _=v.heights[v.index++];-1==ae?ae=_:Math.abs(_-ae)>=_r&&(ae=-2);let pe=new Ar(o,_);pe.outdated=!1,s.push(pe),$+=o+1}$<=_&&s.push(null,new Dr(_-$).updateHeight(i,$));let pe=Er.of(s);return(ae<0||Math.abs(pe.height-this.height)>=_r||Math.abs(ae-this.heightMetrics(i,o).perLine)>=_r)&&(i.heightChanged=!0),pe}return(s||this.outdated)&&(this.setHeight(i,i.heightForGap(o,o+this.length)),this.outdated=!1),this}toString(){return"gap(".concat(this.length,")")}}class Pr extends Er{constructor(i,o,s){super(i.length+o+s.length,i.height+s.height,o|(i.outdated||s.outdated?2:0)),this.left=i,this.right=s,this.size=i.size+s.size}get break(){return 1&this.flags}blockAt(i,o,s,v){let _=s+this.left.height;return i<_?this.left.blockAt(i,o,s,v):this.right.blockAt(i,o,_,v+this.left.length+this.break)}lineAt(i,o,s,v,_){let $=v+this.left.height,ae=_+this.left.length+this.break,pe=o==Sr.ByHeight?i<$:iae))return we;let _e=o==Sr.ByPosNoHeight?Sr.ByPosNoHeight:Sr.ByPos;return pe?we.join(this.right.lineAt(ae,_e,s,$,ae)):this.left.lineAt(ae,_e,s,v,_).join(we)}forEachLine(i,o,s,v,_,$){let ae=v+this.left.height,pe=_+this.left.length+this.break;if(this.break)i=pe&&this.right.forEachLine(i,o,s,ae,pe,$);else{let we=this.lineAt(pe,Sr.ByPos,s,v,_);i=i&&we.from<=o&&$(we),o>we.to&&this.right.forEachLine(we.to+1,o,s,ae,pe,$)}}replace(i,o,s){let v=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(i-v,o-v,s));let _=[];i>0&&this.decomposeLeft(i,_);let $=_.length;for(let i of s)_.push(i);if(i>0&&mergeGaps(_,$-1),o=s&&o.push(null)),i>s&&this.right.decomposeLeft(i-s,o)}decomposeRight(i,o){let s=this.left.length,v=s+this.break;if(i>=v)return this.right.decomposeRight(i-v,o);i2*o.size||o.size>2*i.size?Er.of(this.break?[i,null,o]:[i,o]):(this.left=i,this.right=o,this.height=i.height+o.height,this.outdated=i.outdated||o.outdated,this.size=i.size+o.size,this.length=i.length+this.break+o.length,this)}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=arguments.length>3?arguments[3]:void 0,{left:_,right:$}=this,ae=o+_.length+this.break,pe=null;return v&&v.from<=o+_.length&&v.more?pe=_=_.updateHeight(i,o,s,v):_.updateHeight(i,o,s),v&&v.from<=ae+$.length&&v.more?pe=$=$.updateHeight(i,ae,s,v):$.updateHeight(i,ae,s),pe?this.balanced(_,$):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mergeGaps(i,o){let s,v;null==i[o]&&(s=i[o-1])instanceof Dr&&(v=i[o+1])instanceof Dr&&i.splice(o-1,3,new Dr(s.length+1+v.length))}class Tr{constructor(i,o){this.pos=i,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=i}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(i,o){if(this.lineStart>-1){let i=Math.min(o,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof Ar?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Ar(i-this.pos,-1)),this.writtenTo=i,o>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(i,o,s){if(i=5)&&this.addLineDeco(v,_,$)}else o>i&&this.span(i,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:i,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=i,this.lineEnd=o,this.writtenToi&&this.nodes.push(new Ar(this.pos-i,-1)),this.writtenTo=this.pos}blankContent(i,o){let s=new Dr(o-i);return this.oracle.doc.lineAt(i).to==o&&(s.flags|=4),s}ensureLine(){this.enterLine();let i=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(i instanceof Ar)return i;let o=new Ar(0,-1);return this.nodes.push(o),o}addBlock(i){this.enterLine();let o=i.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(i),this.writtenTo=this.pos=this.pos+i.length,o&&o.endSide>0&&(this.covering=i)}addLineDeco(i,o,s){let v=this.ensureLine();v.length+=s,v.collapsed+=s,v.widgetHeight=Math.max(v.widgetHeight,i),v.breaks+=o,this.writtenTo=this.pos=this.pos+s}finish(i){let o=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||o instanceof Ar||this.isCovered?(this.writtenTos.clientHeight||s.scrollWidth>s.clientWidth)&&"visible"!=v.overflow){let v=s.getBoundingClientRect();$=Math.max($,v.left),ae=Math.min(ae,v.right),pe=Math.max(pe,v.top),we=o==i.parentNode?v.bottom:Math.min(we,v.bottom)}o="absolute"==v.position||"fixed"==v.position?s.offsetParent:s.parentNode}else{if(11!=o.nodeType)break;o=o.host}return{left:$-s.left,right:Math.max($,ae)-s.left,top:pe-(s.top+o),bottom:Math.max(pe,we)-(s.top+o)}}function fullPixelRange(i,o){let s=i.getBoundingClientRect();return{left:0,right:s.right-s.left,top:o,bottom:s.bottom-(s.top+o)}}class Fr{constructor(i,o,s){this.from=i,this.to=o,this.size=s}static same(i,o){if(i.length!=o.length)return!1;for(let s=0;s"function"!=typeof i&&"cm-lineWrapping"==i.class));this.heightOracle=new xr(o),this.stateDeco=i.facet(nn).filter((i=>"function"!=typeof i)),this.heightMap=Er.empty().applyChanges(this.stateDeco,v.o.empty,this.heightOracle.setDoc(i.doc),[new ra(0,0,0,i.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Dt.set(this.lineGaps.map((i=>i.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let i=[this.viewport],{main:o}=this.state.selection;for(let s=0;s<=1;s++){let v=s?o.head:o.anchor;if(!i.some((i=>{let{from:o,to:s}=i;return v>=o&&v<=s}))){let{from:o,to:s}=this.lineBlockAt(v);i.push(new Lr(o,s))}}this.viewports=i.sort(((i,o)=>i.from-o.from)),this.scaler=this.heightMap.height<=7e6?jr:new Mr(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(i=>{this.viewportLines.push(1==this.scaler.scale?i:scaleBlock(i,this.scaler))}))}update(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=i.state;let s=this.stateDeco;this.stateDeco=this.state.facet(nn).filter((i=>"function"!=typeof i));let _=i.changedRanges,$=ra.extendWithRanges(_,heightRelevantDecoChanges(s,this.stateDeco,i?i.changes:v.c.empty(this.state.doc.length))),ae=this.heightMap.height,pe=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,i.startState.doc,this.heightOracle.setDoc(this.state.doc),$),this.heightMap.height!=ae&&(i.flags|=2),pe?(this.scrollAnchorPos=i.changes.mapPos(pe.from,-1),this.scrollAnchorHeight=pe.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let we=$.length?this.mapViewport(this.viewport,i.changes):this.viewport;(o&&(o.range.headwe.to)||!this.viewportIsAppropriate(we))&&(we=this.getViewport(0,o));let _e=!i.changes.empty||2&i.flags||we.from!=this.viewport.from||we.to!=this.viewport.to;this.viewport=we,this.updateForViewport(),_e&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,i.changes))),i.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&i.selectionSet&&i.view.lineWrapping&&i.state.selection.main.empty&&i.state.selection.main.assoc&&!i.state.facet($t)&&(this.mustEnforceCursorAssoc=!0)}measure(i){let o=i.contentDOM,s=window.getComputedStyle(o),_=this.heightOracle,$=s.whiteSpace;this.defaultTextDirection="rtl"==s.direction?ca.RTL:ca.LTR;let ae=this.heightOracle.mustRefreshForWrapping($),pe=o.getBoundingClientRect(),we=ae||this.mustMeasureContent||this.contentDOMHeight!=pe.height;this.contentDOMHeight=pe.height,this.mustMeasureContent=!1;let _e=0,et=0;if(pe.width&&pe.height){let{scaleX:i,scaleY:s}=getScale(o,pe);this.scaleX==i&&this.scaleY==s||(this.scaleX=i,this.scaleY=s,_e|=8,ae=we=!0)}let tt=(parseInt(s.paddingTop)||0)*this.scaleY,nt=(parseInt(s.paddingBottom)||0)*this.scaleY;this.paddingTop==tt&&this.paddingBottom==nt||(this.paddingTop=tt,this.paddingBottom=nt,_e|=10),this.editorWidth!=i.scrollDOM.clientWidth&&(_.lineWrapping&&(we=!0),this.editorWidth=i.scrollDOM.clientWidth,_e|=8);let rt=i.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=rt&&(this.scrollAnchorHeight=-1,this.scrollTop=rt),this.scrolledToBottom=isScrolledToBottom(i.scrollDOM);let it=(this.printing?fullPixelRange:visiblePixelRange)(o,this.paddingTop),ot=it.top-this.pixelViewport.top,st=it.bottom-this.pixelViewport.bottom;this.pixelViewport=it;let dt=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(dt!=this.inView&&(this.inView=dt,dt&&(we=!0)),!this.inView&&!this.scrollTarget)return 0;let ut=pe.width;if(this.contentDOMWidth==ut&&this.editorHeight==i.scrollDOM.clientHeight||(this.contentDOMWidth=pe.width,this.editorHeight=i.scrollDOM.clientHeight,_e|=8),we){let o=i.docView.measureVisibleLineHeights(this.viewport);if(_.mustRefreshForHeights(o)&&(ae=!0),ae||_.lineWrapping&&Math.abs(ut-this.contentDOMWidth)>_.charWidth){let{lineHeight:s,charWidth:v,textHeight:pe}=i.docView.measureTextSize();ae=s>0&&_.refresh($,s,v,pe,ut/v,o),ae&&(i.docView.minWidth=0,_e|=8)}ot>0&&st>0?et=Math.max(ot,st):ot<0&&st<0&&(et=Math.min(ot,st)),_.heightChanged=!1;for(let s of this.viewports){let $=s.from==this.viewport.from?o:i.docView.measureVisibleLineHeights(s);this.heightMap=(ae?Er.empty().applyChanges(this.stateDeco,v.o.empty,this.heightOracle,[new ra(0,0,0,i.state.doc.length)]):this.heightMap).updateHeight(_,0,ae,new wr(s.from,$))}_.heightChanged&&(_e|=2)}let lt=!this.viewportIsAppropriate(this.viewport,et)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return lt&&(this.viewport=this.getViewport(et,this.scrollTarget)),this.updateForViewport(),(2&_e||lt)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(ae?[]:this.lineGaps,i)),_e|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,i.docView.enforceCursorAssoc()),_e}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(i,o){let s=.5-Math.max(-.5,Math.min(.5,i/1e3/2)),v=this.heightMap,_=this.heightOracle,{visibleTop:$,visibleBottom:ae}=this,pe=new Lr(v.lineAt($-1e3*s,Sr.ByHeight,_,0,0).from,v.lineAt(ae+1e3*(1-s),Sr.ByHeight,_,0,0).to);if(o){let{head:i}=o.range;if(ipe.to){let s,$=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),ae=v.lineAt(i,Sr.ByPos,_,0,0);s="center"==o.y?(ae.top+ae.bottom)/2-$/2:"start"==o.y||"nearest"==o.y&&i1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;let{top:_}=this.heightMap.lineAt(o,Sr.ByPos,this.heightOracle,0,0),{bottom:$}=this.heightMap.lineAt(s,Sr.ByPos,this.heightOracle,0,0),{visibleTop:ae,visibleBottom:pe}=this;return(0==o||_<=ae-Math.max(10,Math.min(-v,250)))&&(s==this.state.doc.length||$>=pe+Math.max(10,Math.min(v,250)))&&_>ae-2e3&&$>1,ae=_<<1;if(this.defaultTextDirection!=ca.LTR&&!s)return[];let pe=[],addGap=(_,ae,we,_e)=>{if(ae-_<$)return;let et=this.state.selection.main,tt=[et.from];et.empty||tt.push(et.to);for(let i of tt)if(i>_&&ii.from>=we.from&&i.to<=we.to&&Math.abs(i.from-_)<$&&Math.abs(i.to-ae)<$&&!tt.some((o=>i.fromo))));if(!nt){if(aei.from<=ae&&i.to>=ae))){let i=o.moveToLineBoundary(v.e.cursor(ae),!1,!0).head;i>_&&(ae=i)}nt=new Fr(_,ae,this.gapSize(we,_,ae,_e))}pe.push(nt)};for(let i of this.viewportLines){if(i.lengthi.from&&addGap(i.from,v,i,o),$i.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let i=this.stateDeco;this.lineGaps.length&&(i=i.concat(this.lineGapDeco));let o=[];v.j.spans(i,this.viewport.from,this.viewport.to,{span(i,s){o.push({from:i,to:s})},point(){}},20);let s=o.length!=this.visibleRanges.length||this.visibleRanges.some(((i,s)=>i.from!=o[s].from||i.to!=o[s].to));return this.visibleRanges=o,s?4:0}lineBlockAt(i){return i>=this.viewport.from&&i<=this.viewport.to&&this.viewportLines.find((o=>o.from<=i&&o.to>=i))||scaleBlock(this.heightMap.lineAt(i,Sr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(i){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(i),Sr.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(i){let o=this.lineBlockAtHeight(i+8);return o.from>=this.viewport.from||this.viewportLines[0].top-i>200?o:this.viewportLines[0]}elementAtHeight(i){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(i),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Lr{constructor(i,o){this.from=i,this.to=o}}function lineStructure(i,o,s){let _=[],$=i,ae=0;return v.j.spans(s,i,o,{span(){},point(i,o){i>$&&(_.push({from:$,to:i}),ae+=i-$),$=o}},20),$=1)return v[v.length-1].to;let _=Math.floor(s*o);for(let i=0;;i++){let{from:o,to:s}=v[i],$=s-o;if(_<=$)return o+_;_-=$}}function findFraction(i,o){let s=0;for(let{from:v,to:_}of i.ranges){if(o<=_){s+=o-v;break}s+=_-v}return s/i.total}function find(i,o){for(let s of i)if(o(s))return s}const jr={toDOM:i=>i,fromDOM:i=>i,scale:1};class Mr{constructor(i,o,s){let v=0,_=0,$=0;this.viewports=s.map((s=>{let{from:_,to:$}=s,ae=o.lineAt(_,Sr.ByPos,i,0,0).top,pe=o.lineAt($,Sr.ByPos,i,0,0).bottom;return v+=pe-ae,{from:_,to:$,top:ae,bottom:pe,domTop:0,domBottom:0}})),this.scale=(7e6-v)/(o.height-v);for(let i of this.viewports)i.domTop=$+(i.top-_)*this.scale,$=i.domBottom=i.domTop+(i.bottom-i.top),_=i.bottom}toDOM(i){for(let o=0,s=0,v=0;;o++){let _=oscaleBlock(i,o))):i._content)}const Qr=v.g.define({combine:i=>i.join(" ")}),Vr=v.g.define({combine:i=>i.indexOf(!0)>-1}),Ur=_.a.newName(),Wr=_.a.newName(),$r=_.a.newName(),qr={"&light":"."+Wr,"&dark":"."+$r};function buildTheme(i,o,s){return new _.a(o,{finish:o=>/&/.test(o)?o.replace(/&\w*/,(o=>{if("&"==o)return i;if(!s||!s[o])throw new RangeError("Unsupported selector: ".concat(o));return s[o]})):i+" "+o})}const zr=buildTheme("."+Ur,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},qr),Zr="￿";class Hr{constructor(i,o){this.points=i,this.text="",this.lineSeparator=o.facet(v.f.lineSeparator)}append(i){this.text+=i}lineBreak(){this.text+=Zr}readRange(i,o){if(!i)return this;let s=i.parentNode;for(let v=i;;){this.findPointBefore(s,v);let i=this.text.length;this.readNode(v);let _=v.nextSibling;if(_==o)break;let $=st.get(v),ae=st.get(_);($&&ae?$.breakAfter:($?$.breakAfter:isBlockElement(v))||isBlockElement(_)&&("BR"!=v.nodeName||v.cmIgnore)&&this.text.length>i)&&this.lineBreak(),v=_}return this.findPointBefore(s,o),this}readTextNode(i){let o=i.nodeValue;for(let s of this.points)s.node==i&&(s.pos=this.text.length+Math.min(s.offset,o.length));for(let s=0,v=this.lineSeparator?null:/\r\n?|\n/g;;){let _,$=-1,ae=1;if(this.lineSeparator?($=o.indexOf(this.lineSeparator,s),ae=this.lineSeparator.length):(_=v.exec(o))&&($=_.index,ae=_[0].length),this.append(o.slice(s,$<0?o.length:$)),$<0)break;if(this.lineBreak(),ae>1)for(let o of this.points)o.node==i&&o.pos>this.text.length&&(o.pos-=ae-1);s=$+ae}}readNode(i){if(i.cmIgnore)return;let o=st.get(i),s=o&&o.overrideDOMText;if(null!=s){this.findPointInside(i,s.length);for(let i=s.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else 3==i.nodeType?this.readTextNode(i):"BR"==i.nodeName?i.nextSibling&&this.lineBreak():1==i.nodeType&&this.readRange(i.firstChild,null)}findPointBefore(i,o){for(let s of this.points)s.node==i&&i.childNodes[s.offset]==o&&(s.pos=this.text.length)}findPointInside(i,o){for(let s of this.points)(3==i.nodeType?s.node==i:i.contains(s.node))&&(s.pos=this.text.length+(isAtEnd(i,s.node,s.offset)?o:0))}}function isAtEnd(i,o,s){for(;;){if(!o||s-1)this.newSel=null;else if(o>-1&&(this.bounds=i.docView.domBoundsAround(o,s,0))){let o=$||ae?[]:selectionPoints(i),s=new Hr(o,i.state);s.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=s.text,this.newSel=selectionFromPoints(o,this.bounds.from)}else{let o=i.observer.selectionRange,s=$&&$.node==o.focusNode&&$.offset==o.focusOffset||!contains(i.contentDOM,o.focusNode)?i.state.selection.main.head:i.docView.posFromDOM(o.focusNode,o.focusOffset),_=ae&&ae.node==o.anchorNode&&ae.offset==o.anchorOffset||!contains(i.contentDOM,o.anchorNode)?i.state.selection.main.anchor:i.docView.posFromDOM(o.anchorNode,o.anchorOffset);this.newSel=v.e.single(_,s)}}}function applyDOMChange(i,o){let s,{newSel:_}=o,$=i.state.selection.main,ae=i.inputState.lastKeyTime>Date.now()-100?i.inputState.lastKeyCode:-1;if(o.bounds){let{from:_,to:pe}=o.bounds,we=$.from,_e=null;(8===ae||bt.android&&o.text.length=$.from&&s.to<=$.to&&(s.from!=$.from||s.to!=$.to)&&$.to-$.from-(s.to-s.from)<=4?s={from:$.from,to:$.to,insert:i.state.doc.slice($.from,s.from).append(s.insert).append(i.state.doc.slice(s.to,$.to))}:(bt.mac||bt.android)&&s&&s.from==s.to&&s.from==$.head-1&&/^\. ?$/.test(s.insert.toString())&&"off"==i.contentDOM.getAttribute("autocorrect")?(_&&2==s.insert.length&&(_=v.e.single(_.main.anchor-1,_.main.head-1)),s={from:$.from,to:$.to,insert:v.o.of([" "])}):bt.chrome&&s&&s.from==s.to&&s.from==$.head&&"\n "==s.insert.toString()&&i.lineWrapping&&(_&&(_=v.e.single(_.main.anchor-1,_.main.head-1)),s={from:$.from,to:$.to,insert:v.o.of([" "])}),s){if(bt.ios&&i.inputState.flushIOSKey())return!0;if(bt.android&&(s.from==$.from&&s.to==$.to&&1==s.insert.length&&2==s.insert.lines&&dispatchKey(i.contentDOM,"Enter",13)||(s.from==$.from-1&&s.to==$.to&&0==s.insert.length||8==ae&&s.insert.length$.head)&&dispatchKey(i.contentDOM,"Backspace",8)||s.from==$.from&&s.to==$.to+1&&0==s.insert.length&&dispatchKey(i.contentDOM,"Delete",46)))return!0;let o,v=s.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let defaultInsert=()=>o||(o=applyDefaultInsert(i,s,_));return i.state.facet(Vt).some((o=>o(i,s.from,s.to,v,defaultInsert)))||i.dispatch(defaultInsert()),!0}if(_&&!_.main.eq($)){let o=!1,s="select";return i.inputState.lastSelectionTime>Date.now()-50&&("select"==i.inputState.lastSelectionOrigin&&(o=!0),s=i.inputState.lastSelectionOrigin),i.dispatch({selection:_,scrollIntoView:o,userEvent:s}),!0}return!1}function applyDefaultInsert(i,o,s){let _,$=i.state,ae=$.selection.main;if(o.from>=ae.from&&o.to<=ae.to&&o.to-o.from>=(ae.to-ae.from)/3&&(!s||s.main.empty&&s.main.from==o.from+o.insert.length)&&i.inputState.composing<0){let s=ae.fromo.to?$.sliceDoc(o.to,ae.to):"";_=$.replaceSelection(i.state.toText(s+o.insert.sliceString(0,void 0,i.state.lineBreak)+v))}else{let pe=$.changes(o),we=s&&s.main.to<=pe.newLength?s.main:void 0;if($.selection.ranges.length>1&&i.inputState.composing>=0&&o.to<=ae.to&&o.to>=ae.to-10){let _e,et=i.state.sliceDoc(o.from,o.to),tt=s&&findCompositionNode(i,s.main.head);if(tt){let i=o.insert.length-(o.to-o.from);_e={from:tt.from,to:tt.to-i}}else _e=i.state.doc.lineAt(ae.head);let nt=ae.to-o.to,rt=ae.to-ae.from;_=$.changeByRange((s=>{if(s.from==ae.from&&s.to==ae.to)return{changes:pe,range:we||s.map(pe)};let _=s.to-nt,tt=_-et.length;if(s.to-s.from!=rt||i.state.sliceDoc(tt,_)!=et||s.to>=_e.from&&s.from<=_e.to)return{range:s};let it=$.changes({from:tt,to:_,insert:o.insert}),ot=s.to-ae.to;return{changes:it,range:we?v.e.range(Math.max(0,we.anchor+ot),Math.max(0,we.head+ot)):s.map(it)}}))}else _={changes:pe,selection:we&&$.selection.replaceRange(we)}}let pe="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,pe+=".compose",i.inputState.compositionFirstChange&&(pe+=".start",i.inputState.compositionFirstChange=!1)),$.update(_,{userEvent:pe,scrollIntoView:!0})}function findDiff(i,o,s,v){let _=Math.min(i.length,o.length),$=0;for(;$<_&&i.charCodeAt($)==o.charCodeAt($);)$++;if($==_&&i.length==o.length)return null;let ae=i.length,pe=o.length;for(;ae>0&&pe>0&&i.charCodeAt(ae-1)==o.charCodeAt(pe-1);)ae--,pe--;if("end"==v){s-=ae+Math.max(0,$-Math.min(ae,pe))-$}if(ae<$&&i.length=ae?$-s:0,pe=$+(pe-ae),ae=$}else if(pe<$){$-=s<=$&&s>=pe?$-s:0,ae=$+(ae-pe),pe=$}return{from:$,toA:ae,toB:pe}}function selectionPoints(i){let o=[];if(i.root.activeElement!=i.contentDOM)return o;let{anchorNode:s,anchorOffset:v,focusNode:_,focusOffset:$}=i.observer.selectionRange;return s&&(o.push(new Gr(s,v)),_==s&&$==v||o.push(new Gr(_,$))),o}function selectionFromPoints(i,o){if(0==i.length)return null;let s=i[0].pos,_=2==i.length?i[1].pos:s;return s>-1&&_>-1?v.e.single(s+o,_+o):null}const Yr={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Kr=bt.ie&&bt.ie_version<=11;class Jr{constructor(i){this.view=i,this.active=!1,this.selectionRange=new tt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=i.contentDOM,this.observer=new MutationObserver((o=>{for(let i of o)this.queue.push(i);(bt.ie&&bt.ie_version<=11||bt.ios&&i.composing)&&o.some((i=>"childList"==i.type&&i.removedNodes.length||"characterData"==i.type&&i.oldValue.length>i.target.nodeValue.length))?this.flushSoon():this.flush()})),Kr&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var i;(null===(i=this.view.docView)||void 0===i?void 0:i.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),i.length>0&&i[i.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((i=>{i.length>0&&i[i.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(i){this.view.inputState.runHandlers("scroll",i),this.intersecting&&this.view.measure()}onScroll(i){this.intersecting&&this.flush(!1),this.onScrollChanged(i)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(i){if(this.gapIntersection&&(i.length!=this.gaps.length||this.gaps.some(((o,s)=>o!=i[s])))){this.gapIntersection.disconnect();for(let o of i)this.gapIntersection.observe(o);this.gaps=i}}onSelectionChange(i){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:s}=this,v=this.selectionRange;if(s.state.facet(Zt)?s.root.activeElement!=this.dom:!hasSelection(s.dom,v))return;let _=v.anchorNode&&s.docView.nearest(v.anchorNode);_&&_.ignoreEvent(i)?o||(this.selectionChanged=!1):(bt.ie&&bt.ie_version<=11||bt.android&&bt.chrome)&&!s.state.selection.main.empty&&v.focusNode&&isEquivalentPosition(v.focusNode,v.focusOffset,v.anchorNode,v.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:i}=this,o=bt.safari&&11==i.root.nodeType&&deepActiveElement(this.dom.ownerDocument)==this.dom&&safariSelectionRangeHack(this.view)||getSelection(i.root);if(!o||this.selectionRange.eq(o))return!1;let s=hasSelection(this.dom,o);return s&&!this.selectionChanged&&i.inputState.lastFocusTime>Date.now()-200&&i.inputState.lastTouchTime{let i=this.delayedAndroidKey;if(i){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&dispatchKey(this.dom,i.key,i.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(flush)}this.delayedAndroidKey&&"Enter"!=i||(this.delayedAndroidKey={key:i,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let i of this.observer.takeRecords())this.queue.push(i);return this.queue}processRecords(){let i=this.pendingRecords();i.length&&(this.queue=[]);let o=-1,s=-1,v=!1;for(let _ of i){let i=this.readMutation(_);i&&(i.typeOver&&(v=!0),-1==o?({from:o,to:s}=i):(o=Math.min(i.from,o),s=Math.max(i.to,s)))}return{from:o,to:s,typeOver:v}}readChange(){let{from:i,to:o,typeOver:s}=this.processRecords(),v=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(i<0&&!v)return null;i>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let _=new Xr(this.view,i,o,s);return this.view.docView.domChanged={newSel:_.newSel?_.newSel.main:null},_}flush(){let i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;i&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let s=this.view.state,v=applyDOMChange(this.view,o);return this.view.state==s&&this.view.update([]),v}readMutation(i){let o=this.view.docView.nearest(i.target);if(!o||o.ignoreMutation(i))return null;if(o.markDirty("attributes"==i.type),"attributes"==i.type&&(o.flags|=4),"childList"==i.type){let s=findChild(o,i.previousSibling||i.target.previousSibling,-1),v=findChild(o,i.nextSibling||i.target.nextSibling,1);return{from:s?o.posAfter(s):o.posAtStart,to:v?o.posBefore(v):o.posAtEnd,typeOver:!1}}return"characterData"==i.type?{from:o.posAtStart,to:o.posAtEnd,typeOver:i.target.nodeValue==i.oldValue}:null}setWindow(i){i!=this.win&&(this.removeWindowListeners(this.win),this.win=i,this.addWindowListeners(this.win))}addWindowListeners(i){i.addEventListener("resize",this.onResize),i.addEventListener("beforeprint",this.onPrint),i.addEventListener("scroll",this.onScroll),i.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(i){i.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onResize),i.removeEventListener("beforeprint",this.onPrint),i.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var i,o,s;this.stop(),null===(i=this.intersection)||void 0===i||i.disconnect(),null===(o=this.gapIntersection)||void 0===o||o.disconnect(),null===(s=this.resizeScroll)||void 0===s||s.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function findChild(i,o,s){for(;o;){let v=st.get(o);if(v&&v.parent==i)return v;let _=o.parentNode;o=_!=i.dom?_:s>0?o.nextSibling:o.previousSibling}return null}function safariSelectionRangeHack(i){let o=null;function read(i){i.preventDefault(),i.stopImmediatePropagation(),o=i.getTargetRanges()[0]}if(i.contentDOM.addEventListener("beforeinput",read,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",read,!0),!o)return null;let s=o.startContainer,v=o.startOffset,_=o.endContainer,$=o.endOffset,ae=i.docView.domAtPos(i.state.selection.main.anchor);return isEquivalentPosition(ae.node,ae.offset,_,$)&&([s,v,_,$]=[_,$,s,v]),{anchorNode:s,anchorOffset:v,focusNode:_,focusOffset:$}}class _i{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),i.parent&&i.parent.appendChild(this.dom);let{dispatch:o}=i;this.dispatchTransactions=i.dispatchTransactions||o&&(i=>i.forEach((i=>o(i,this))))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=i.root||getRoot(i.parent)||document,this.viewState=new Br(i.state||v.f.create(i)),i.scrollTo&&i.scrollTo.is(zt)&&(this.viewState.scrollTarget=i.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Gt).map((i=>new Yt(i)));for(let i of this.plugins)i.update(this);this.observer=new Jr(this),this.inputState=new or(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ar(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(){for(var i=arguments.length,o=new Array(i),s=0;si.annotation(Rr)))?(this.inputState.notifiedFocused=ae,pe=1):ae!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=ae,we=focusChangeTransaction($,ae),we||(pe=1));let _e=this.observer.delayedAndroidKey,et=null;if(_e?(this.observer.clearDelayedAndroidKey(),et=this.observer.readChange(),(et&&!this.state.doc.eq($.doc)||!this.state.selection.eq($.selection))&&(et=null)):this.observer.clear(),$.facet(v.f.phrases)!=this.state.facet(v.f.phrases))return this.setState($);o=ia.create(this,$,i),o.flags|=pe;let tt=this.viewState.scrollTarget;try{this.updateState=2;for(let o of i){if(tt&&(tt=tt.map(o.changes)),o.scrollIntoView){let{main:i}=o.state.selection;tt=new qt(i.empty?i:v.e.cursor(i.head,i.head>i.anchor?-1:1))}for(let i of o.effects)i.is(zt)&&(tt=i.value.clip(this.state))}this.viewState.update(o,tt),this.bidiCache=Ji.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),s=this.docView.update(o),this.state.facet(aa)!=this.styleModules&&this.mountStyles(),_=this.updateAttrs(),this.showAnnouncements(i),this.docView.updateSelection(s,i.some((i=>i.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(o.startState.facet(Qr)!=o.state.facet(Qr)&&(this.viewState.mustMeasureContent=!0),(s||_||tt||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let i of this.state.facet(Qt))try{i(o)}catch(i){logException(this.state,i,"update listener")}(we||et)&&Promise.resolve().then((()=>{we&&this.state==we.startState&&this.dispatch(we),et&&!applyDOMChange(this,et)&&_e.force&&dispatchKey(this.contentDOM,_e.key,_e.keyCode)}))}setState(i){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=i);this.updateState=2;let o=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new Br(i),this.plugins=i.facet(Gt).map((i=>new Yt(i))),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new ar(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(i){let o=i.startState.facet(Gt),s=i.state.facet(Gt);if(o!=s){let v=[];for(let _ of s){let s=o.indexOf(_);if(s<0)v.push(new Yt(_));else{let o=this.plugins[s];o.mustUpdate=i,v.push(o)}}for(let o of this.plugins)o.mustUpdate!=i&&o.destroy(this);this.plugins=v,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=i;for(let i=0;i0&&void 0!==arguments[0])||arguments[0];if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,i&&this.observer.forceFlush();let o=null,s=this.scrollDOM,v=s.scrollTop*this.scaleY,{scrollAnchorPos:_,scrollAnchorHeight:$}=this.viewState;Math.abs(v-this.viewState.scrollTop)>1&&($=-1),this.viewState.scrollAnchorHeight=-1;try{for(let i=0;;i++){if($<0)if(isScrolledToBottom(s))_=-1,$=this.viewState.heightMap.height;else{let i=this.viewState.scrollAnchorAt(v);_=i.from,$=i.top}this.updateState=1;let ae=this.viewState.measure(this);if(!ae&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(i>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let pe=[];4&ae||([this.measureRequests,pe]=[pe,this.measureRequests]);let we=pe.map((i=>{try{return i.read(this)}catch(i){return logException(this.state,i),Ui}})),_e=ia.create(this,this.state,[]),et=!1;_e.flags|=ae,o?o.flags|=ae:o=_e,this.updateState=2,_e.empty||(this.updatePlugins(_e),this.inputState.update(_e),this.updateAttrs(),et=this.docView.update(_e));for(let i=0;i1||i<-1){v+=i,s.scrollTop=v/this.scaleY,$=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let i of this.state.facet(Qt))i(o)}get themeClasses(){return Ur+" "+(this.state.facet(Vr)?$r:Wr)+" "+this.state.facet(Qr)}updateAttrs(){let i=attrsFromFacet(this,Kt,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Zt)?"true":"false",class:"cm-content",style:"".concat(bt.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),attrsFromFacet(this,Jt,o);let s=this.observer.ignore((()=>{let s=updateAttrs(this.contentDOM,this.contentAttrs,o),v=updateAttrs(this.dom,this.editorAttrs,i);return s||v}));return this.editorAttrs=i,this.contentAttrs=o,s}showAnnouncements(i){let o=!0;for(let s of i)for(let i of s.effects)if(i.is(_i.announce)){o&&(this.announceDOM.textContent=""),o=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(aa);let i=this.state.facet(_i.cspNonce);_.a.mount(this.root,this.styleModules.concat(zr).reverse(),i?{nonce:i}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(i){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),i){if(this.measureRequests.indexOf(i)>-1)return;if(null!=i.key)for(let o=0;oo.spec==i))||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(i){return this.readMeasured(),this.viewState.elementAtHeight(i)}lineBlockAtHeight(i){return this.readMeasured(),this.viewState.lineBlockAtHeight(i)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(i){return this.viewState.lineBlockAt(i)}get contentHeight(){return this.viewState.contentHeight}moveByChar(i,o,s){return skipAtoms(this,i,moveByChar(this,i,o,s))}moveByGroup(i,o){return skipAtoms(this,i,moveByChar(this,i,o,(o=>byGroup(this,i.head,o))))}moveToLineBoundary(i,o){return moveToLineBoundary(this,i,o,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}moveVertically(i,o,s){return skipAtoms(this,i,moveVertically(this,i,o,s))}domAtPos(i){return this.docView.domAtPos(i)}posAtDOM(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(i,o)}posAtCoords(i){let o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),posAtCoords(this,i,o)}coordsAtPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();let s=this.docView.coordsAt(i,o);if(!s||s.left==s.right)return s;let v=this.state.doc.lineAt(i),_=this.bidiSpans(v);return flattenRect(s,_[er.find(_,i-v.from,-1,o)].dir==ca.LTR==o>0)}coordsForChar(i){return this.readMeasured(),this.docView.coordsForChar(i)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(i){return!this.state.facet(Wt)||ithis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(i))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(i){if(i.length>Ei)return trivialOrder(i.length);let o,s=this.textDirectionAt(i.from);for(let v of this.bidiCache)if(v.from==i.from&&v.dir==s&&(v.fresh||isolatesEq(v.isolates,o=getIsolatedRanges(this,i.from,i.to))))return v.order;o||(o=getIsolatedRanges(this,i.from,i.to));let v=computeOrder(i.text,s,o);return this.bidiCache.push(new Ji(i.from,i.to,s,o,!0,v)),v}get hasFocus(){var i;return(this.dom.ownerDocument.hasFocus()||bt.safari&&(null===(i=this.inputState)||void 0===i?void 0:i.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()}))}setRoot(i){this._root!=i&&(this._root=i,this.observer.setWindow((9==i.nodeType?i:i.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let i of this.plugins)i.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zt.of(new qt("number"==typeof i?v.e.cursor(i):i,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:i,scrollLeft:o}=this.scrollDOM,s=this.viewState.scrollAnchorAt(i);return zt.of(new qt(v.e.cursor(s.from),"start","start",s.top-i,o,!0))}static domEventHandlers(i){return Xt.define((()=>({})),{eventHandlers:i})}static domEventObservers(i){return Xt.define((()=>({})),{eventObservers:i})}static theme(i,o){let s=_.a.newName(),v=[Qr.of(s),aa.of(buildTheme(".".concat(s),i))];return o&&o.dark&&v.push(Vr.of(!0)),v}static baseTheme(i){return v.i.lowest(aa.of(buildTheme("."+Ur,i,qr)))}static findFromDOM(i){var o;let s=i.querySelector(".cm-content"),v=s&&st.get(s)||st.get(i);return(null===(o=null==v?void 0:v.rootView)||void 0===o?void 0:o.view)||null}}_i.styleModule=aa,_i.inputHandler=Vt,_i.focusChangeEffect=Ut,_i.perLineTextDirection=Wt,_i.exceptionSink=Mt,_i.updateListener=Qt,_i.editable=Zt,_i.mouseSelectionStyle=jt,_i.dragMovesSelection=Lt,_i.clickAddsSelectionRange=Bt,_i.decorations=nn,_i.atomicRanges=_n,_i.bidiIsolatedRanges=An,_i.scrollMargins=Zn,_i.darkTheme=Vr,_i.cspNonce=v.g.define({combine:i=>i.length?i[0]:""}),_i.contentAttributes=Jt,_i.editorAttributes=Kt,_i.lineWrapping=_i.contentAttributes.of({class:"cm-lineWrapping"}),_i.announce=v.m.define();const Ei=4096,Ui={};class Ji{constructor(i,o,s,v,_,$){this.from=i,this.to=o,this.dir=s,this.isolates=v,this.fresh=_,this.order=$}static update(i,o){if(o.empty&&!i.some((i=>i.fresh)))return i;let s=[],v=i.length?i[i.length-1].dir:ca.LTR;for(let _=Math.max(0,i.length-10);_=0;_--){let o=v[_],$="function"==typeof o?o(i):o;$&&combineAttrs($,s)}return s}const no=bt.mac?"mac":bt.windows?"win":bt.linux?"linux":"key";function normalizeKeyName(i,o){const s=i.split(/-(?!$)/);let v,_,$,ae,pe=s[s.length-1];"Space"==pe&&(pe=" ");for(let i=0;irunHandlers(getKeymap(o.state),i,o,"editor")})),oo=v.g.define({enables:io}),mo=new WeakMap;function getKeymap(i){let o=i.facet(oo),s=mo.get(o);return s||mo.set(o,s=buildKeymap(o.reduce(((i,o)=>i.concat(o)),[]))),s}function runScopeHandlers(i,o,s){return runHandlers(getKeymap(i.state),o,i,s)}let Ro=null;const Oo=4e3;function buildKeymap(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:no,s=Object.create(null),v=Object.create(null),checkPrefix=(i,o)=>{let s=v[i];if(null==s)v[i]=o;else if(s!=o)throw new Error("Key binding "+i+" is used both as a regular binding and as a multi-stroke prefix")},add=(i,v,_,$,ae)=>{var pe,we;let _e=s[i]||(s[i]=Object.create(null)),et=v.split(/ (?!$)/).map((i=>normalizeKeyName(i,o)));for(let o=1;o{let v=Ro={view:o,prefix:s,scope:i};return setTimeout((()=>{Ro==v&&(Ro=null)}),Oo),!0}]})}let tt=et.join(" ");checkPrefix(tt,!1);let nt=_e[tt]||(_e[tt]={preventDefault:!1,stopPropagation:!1,run:(null===(we=null===(pe=_e._any)||void 0===pe?void 0:pe.run)||void 0===we?void 0:we.slice())||[]});_&&nt.run.push(_),$&&(nt.preventDefault=!0),ae&&(nt.stopPropagation=!0)};for(let v of i){let i=v.scope?v.scope.split(" "):["editor"];if(v.any)for(let o of i){let i=s[o]||(s[o]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let o in i)i[o].run.push(v.any)}let _=v[o]||v.key;if(_)for(let o of i)add(o,_,v.run,v.preventDefault,v.stopPropagation),v.shift&&add(o,"Shift-"+_,v.shift,v.preventDefault,v.stopPropagation)}return s}function runHandlers(i,o,s,_){let pe=keyName(o),we=Object(v.q)(pe,0),_e=Object(v.r)(we)==pe.length&&" "!=pe,et="",tt=!1,nt=!1,rt=!1;Ro&&Ro.view==s&&Ro.scope==_&&(et=Ro.prefix+" ",ur.indexOf(o.keyCode)<0&&(nt=!0,Ro=null));let it,ot,st=new Set,runFor=i=>{if(i){for(let v of i.run)if(!st.has(v)&&(st.add(v),v(s,o)))return i.stopPropagation&&(rt=!0),!0;i.preventDefault&&(i.stopPropagation&&(rt=!0),nt=!0)}return!1},dt=i[_];return dt&&(runFor(dt[et+modifiers(pe,o,!_e)])?tt=!0:_e&&(o.altKey||o.metaKey||o.ctrlKey)&&!(bt.windows&&o.ctrlKey&&o.altKey)&&(it=$[o.keyCode])&&it!=pe?(runFor(dt[et+modifiers(it,o,!0)])||o.shiftKey&&(ot=ae[o.keyCode])!=pe&&ot!=it&&runFor(dt[et+modifiers(ot,o,!1)]))&&(tt=!0):_e&&o.shiftKey&&runFor(dt[et+modifiers(pe,o,!0)])&&(tt=!0),!tt&&runFor(dt._any)&&(tt=!0)),nt&&(tt=!0),tt&&rt&&o.stopPropagation(),tt}class wo{constructor(i,o,s,v,_){this.className=i,this.left=o,this.top=s,this.width=v,this.height=_}draw(){let i=document.createElement("div");return i.className=this.className,this.adjust(i),i}update(i,o){return o.className==this.className&&(this.adjust(i),!0)}adjust(i){i.style.left=this.left+"px",i.style.top=this.top+"px",null!=this.width&&(i.style.width=this.width+"px"),i.style.height=this.height+"px"}eq(i){return this.left==i.left&&this.top==i.top&&this.width==i.width&&this.height==i.height&&this.className==i.className}static forRange(i,o,s){if(s.empty){let v=i.coordsAtPos(s.head,s.assoc||1);if(!v)return[];let _=getBase(i);return[new wo(o,v.left-_.left,v.top-_.top,null,v.bottom-v.top)]}return rectanglesForRange(i,o,s)}}function getBase(i){let o=i.scrollDOM.getBoundingClientRect();return{left:(i.textDirection==ca.LTR?o.left:o.right-i.scrollDOM.clientWidth*i.scaleX)-i.scrollDOM.scrollLeft*i.scaleX,top:o.top-i.scrollDOM.scrollTop*i.scaleY}}function wrappedLine(i,o,s){let _=v.e.cursor(o);return{from:Math.max(s.from,i.moveToLineBoundary(_,!1,!0).from),to:Math.min(s.to,i.moveToLineBoundary(_,!0,!0).from),type:At.Text}}function rectanglesForRange(i,o,s){if(s.to<=i.viewport.from||s.from>=i.viewport.to)return[];let v=Math.max(s.from,i.viewport.from),_=Math.min(s.to,i.viewport.to),$=i.textDirection==ca.LTR,ae=i.contentDOM,pe=ae.getBoundingClientRect(),we=getBase(i),_e=ae.querySelector(".cm-line"),et=_e&&window.getComputedStyle(_e),tt=pe.left+(et?parseInt(et.paddingLeft)+Math.min(0,parseInt(et.textIndent)):0),nt=pe.right-(et?parseInt(et.paddingRight):0),rt=blockAt(i,v),it=blockAt(i,_),ot=rt.type==At.Text?rt:null,st=it.type==At.Text?it:null;if(ot&&(i.lineWrapping||rt.widgetLineBreaks)&&(ot=wrappedLine(i,v,ot)),st&&(i.lineWrapping||it.widgetLineBreaks)&&(st=wrappedLine(i,_,st)),ot&&st&&ot.from==st.from)return pieces(drawForLine(s.from,s.to,ot));{let o=ot?drawForLine(s.from,null,ot):drawForWidget(rt,!1),v=st?drawForLine(null,s.to,st):drawForWidget(it,!0),_=[];return(ot||rt).to<(st||it).from-(ot&&st?1:0)||rt.widgetLineBreaks>1&&o.bottom+i.defaultLineHeight/2we&&v.from<_e)for(let _=Math.max(v.from,we),$=Math.min(v.to,_e);;){let v=i.state.doc.lineAt(_);for(let ae of i.bidiSpans(v)){let i=ae.from+v.from,pe=ae.to+v.from;if(i>=$)break;pe>_&&addSpan(Math.max(i,_),null==o&&i<=we,Math.min(pe,$),null==s&&pe>=_e,ae.dir)}if(_=v.to+1,_>=$)break}return 0==pe.length&&addSpan(we,null==o,_e,null==s,i.textDirection),{top:_,bottom:ae,horizontal:pe}}function drawForWidget(i,o){let s=pe.top+(o?i.top:i.bottom);return{top:s,bottom:s,horizontal:[]}}}class Co{constructor(i,o){this.view=i,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=i.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(i.state),i.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,i)}update(i){i.startState.facet(So)!=i.state.facet(So)&&this.setOrder(i.state),(this.layer.update(i,this.dom)||i.geometryChanged)&&(this.scale(),i.view.requestMeasure(this.measureReq))}setOrder(i){let o=0,s=i.facet(So);for(;o{return s=i,v=this.drawn[o],!(s.constructor==v.constructor&&s.eq(v));var s,v}))){let o=this.dom.firstChild,s=0;for(let v of i)v.update&&o&&v.constructor&&this.drawn[s].constructor&&v.update(o,this.drawn[s])?(o=o.nextSibling,s++):this.dom.insertBefore(v.draw(),o);for(;o;){let i=o.nextSibling;o.remove(),o=i}this.drawn=i}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const So=v.g.define();function dist_layer(i){return[Xt.define((o=>new Co(o,i))),So.of(i)]}const _o=!bt.ios,Eo=v.g.define({combine:i=>Object(v.s)(i,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(i,o)=>Math.min(i,o),drawRangeCursor:(i,o)=>i||o})});function drawSelection(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Eo.of(i),ko,Ao,To,$t.of(!0)]}function configChanged(i){return i.startState.facet(Eo)!=i.state.facet(Eo)}const ko=dist_layer({above:!0,markers(i){let{state:o}=i,s=o.facet(Eo),_=[];for(let $ of o.selection.ranges){let ae=$==o.selection.main;if($.empty?!ae||_o:s.drawRangeCursor){let o=ae?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=$.empty?$:v.e.cursor($.head,$.head>$.anchor?-1:1);for(let v of wo.forRange(i,o,s))_.push(v)}}return _},update(i,o){i.transactions.some((i=>i.selection))&&(o.style.animationName="cm-blink"==o.style.animationName?"cm-blink2":"cm-blink");let s=configChanged(i);return s&&setBlinkRate(i.state,o),i.docChanged||i.selectionSet||s},mount(i,o){setBlinkRate(o.state,i)},class:"cm-cursorLayer"});function setBlinkRate(i,o){o.style.animationDuration=i.facet(Eo).cursorBlinkRate+"ms"}const Ao=dist_layer({above:!1,markers:i=>i.state.selection.ranges.map((o=>o.empty?[]:wo.forRange(i,"cm-selectionBackground",o))).reduce(((i,o)=>i.concat(o))),update:(i,o)=>i.docChanged||i.selectionSet||i.viewportChanged||configChanged(i),class:"cm-selectionLayer"}),Po={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};_o&&(Po[".cm-line"].caretColor="transparent !important",Po[".cm-content"]={caretColor:"transparent !important"});const To=v.i.highest(_i.theme(Po)),Io=v.m.define({map:(i,o)=>null==i?null:o.mapPos(i)}),Fo=v.n.define({create:()=>null,update:(i,o)=>(null!=i&&(i=o.changes.mapPos(i)),o.effects.reduce(((i,o)=>o.is(Io)?o.value:i),i))}),No=Xt.fromClass(class{constructor(i){this.view=i,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(i){var o;let s=i.state.field(Fo);null==s?null!=this.cursor&&(null===(o=this.cursor)||void 0===o||o.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(i.startState.field(Fo)!=s||i.docChanged||i.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:i}=this,o=i.state.field(Fo),s=null!=o&&i.coordsAtPos(o);if(!s)return null;let v=i.scrollDOM.getBoundingClientRect();return{left:s.left-v.left+i.scrollDOM.scrollLeft*i.scaleX,top:s.top-v.top+i.scrollDOM.scrollTop*i.scaleY,height:s.bottom-s.top}}drawCursor(i){if(this.cursor){let{scaleX:o,scaleY:s}=this.view;i?(this.cursor.style.left=i.left/o+"px",this.cursor.style.top=i.top/s+"px",this.cursor.style.height=i.height/s+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(i){this.view.state.field(Fo)!=i&&this.view.dispatch({effects:Io.of(i)})}},{eventObservers:{dragover(i){this.setDropPos(this.view.posAtCoords({x:i.clientX,y:i.clientY}))},dragleave(i){i.target!=this.view.contentDOM&&this.view.contentDOM.contains(i.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[Fo,No]}function iterMatches(i,o,s,v,_){o.lastIndex=0;for(let $,ae=i.iterRange(s,v),pe=s;!ae.next().done;pe+=ae.value.length)if(!ae.lineBreak)for(;$=o.exec(ae.value);)_(pe+$.index,$)}function matchRanges(i,o){let s=i.visibleRanges;if(1==s.length&&s[0].from==i.viewport.from&&s[0].to==i.viewport.to)return s;let v=[];for(let{from:_,to:$}of s)_=Math.max(i.state.doc.lineAt(_).from,_-o),$=Math.min(i.state.doc.lineAt($).to,$+o),v.length&&v[v.length-1].to>=_?v[v.length-1].to=$:v.push({from:_,to:$});return v}class Bo{constructor(i){const{regexp:o,decoration:s,decorate:v,boundary:_,maxLength:$=1e3}=i;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,v)this.addMatch=(i,o,s,_)=>v(_,s,s+i[0].length,i,o);else if("function"==typeof s)this.addMatch=(i,o,v,_)=>{let $=s(i,o,v);$&&_(v,v+i[0].length,$)};else{if(!s)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(i,o,v,_)=>_(v,v+i[0].length,s)}this.boundary=_,this.maxLength=$}createDeco(i){let o=new v.k,s=o.add.bind(o);for(let{from:o,to:v}of matchRanges(i,this.maxLength))iterMatches(i.state.doc,this.regexp,o,v,((o,v)=>this.addMatch(v,i,o,s)));return o.finish()}updateDeco(i,o){let s=1e9,v=-1;return i.docChanged&&i.changes.iterChanges(((o,_,$,ae)=>{ae>i.view.viewport.from&&$1e3?this.createDeco(i.view):v>-1?this.updateRange(i.view,o.map(i.changes),s,v):o}updateRange(i,o,s,v){for(let _ of i.visibleRanges){let $=Math.max(_.from,s),ae=Math.min(_.to,v);if(ae>$){let s=i.state.doc.lineAt($),v=s.tos.from;$--)if(this.boundary.test(s.text[$-1-s.from])){pe=$;break}for(;aeet.push(s.range(i,o));if(s==v)for(this.regexp.lastIndex=pe-s.from;(_e=this.regexp.exec(s.text))&&_e.indexthis.addMatch(s,i,o,add)));o=o.update({filterFrom:pe,filterTo:we,filter:(i,o)=>iwe,add:et})}}return o}}const jo=null!=/x/.unicode?"gu":"g",Mo=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",jo),Qo={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Vo=null;function supportsTabSize(){var i;if(null==Vo&&"undefined"!=typeof document&&document.body){let o=document.body.style;Vo=null!=(null!==(i=o.tabSize)&&void 0!==i?i:o.MozTabSize)}return Vo||!1}const Uo=v.g.define({combine(i){let o=Object(v.s)(i,{render:null,specialChars:Mo,addSpecialChars:null});return(o.replaceTabs=!supportsTabSize())&&(o.specialChars=new RegExp("\t|"+o.specialChars.source,jo)),o.addSpecialChars&&(o.specialChars=new RegExp(o.specialChars.source+"|"+o.addSpecialChars.source,jo)),o}});function highlightSpecialChars(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Uo.of(i),Wo||(Wo=Xt.fromClass(class{constructor(i){this.view=i,this.decorations=Dt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(i.state.facet(Uo)),this.decorations=this.decorator.createDeco(i)}makeDecorator(i){return new Bo({regexp:i.specialChars,decoration:(o,s,_)=>{let{doc:$}=s.state,ae=Object(v.q)(o[0],0);if(9==ae){let i=$.lineAt(_),o=s.state.tabSize,ae=Object(v.t)(i.text,o,_-i.from);return Dt.replace({widget:new qo((o-ae%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[ae]||(this.decorationCache[ae]=Dt.replace({widget:new $o(i,ae)}))},boundary:i.replaceTabs?void 0:/[^]/})}update(i){let o=i.state.facet(Uo);i.startState.facet(Uo)!=o?(this.decorator=this.makeDecorator(o),this.decorations=this.decorator.createDeco(i.view)):this.decorations=this.decorator.updateDeco(i,this.decorations)}},{decorations:i=>i.decorations}))]}let Wo=null;class $o extends kt{constructor(i,o){super(),this.options=i,this.code=o}eq(i){return i.code==this.code}toDOM(i){let o=(s=this.code)>=32?"•":10==s?"␤":String.fromCharCode(9216+s);var s;let v=i.state.phrase("Control character")+" "+(Qo[this.code]||"0x"+this.code.toString(16)),_=this.options.render&&this.options.render(this.code,v,o);if(_)return _;let $=document.createElement("span");return $.textContent=o,$.title=v,$.setAttribute("aria-label",v),$.className="cm-specialChar",$}ignoreEvent(){return!1}}class qo extends kt{constructor(i){super(),this.width=i}eq(i){return i.width==this.width}toDOM(){let i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}ignoreEvent(){return!1}}function highlightActiveLine(){return Xo}const Zo=Dt.line({class:"cm-activeLine"}),Xo=Xt.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let o=-1,s=[];for(let v of i.state.selection.ranges){let _=i.lineBlockAt(v.head);_.from>o&&(s.push(Zo.range(_.from)),o=_.from)}return Dt.set(s)}},{decorations:i=>i.decorations});class Yo extends kt{constructor(i){super(),this.content=i}toDOM(){let i=document.createElement("span");return i.className="cm-placeholder",i.style.pointerEvents="none",i.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?i.setAttribute("aria-label","placeholder "+this.content):i.setAttribute("aria-hidden","true"),i}coordsAt(i){let o=i.firstChild?clientRectsFor(i.firstChild):[];if(!o.length)return null;let s=window.getComputedStyle(i.parentNode),v=flattenRect(o[0],"rtl"!=s.direction),_=parseInt(s.lineHeight);return v.bottom-v.top>1.5*_?{left:v.left,right:v.right,top:v.top,bottom:v.top+_}:v}ignoreEvent(){return!1}}function placeholder(i){return Xt.fromClass(class{constructor(o){this.view=o,this.placeholder=i?Dt.set([Dt.widget({widget:new Yo(i),side:1}).range(0)]):Dt.none}get decorations(){return this.view.state.doc.length?Dt.none:this.placeholder}},{decorations:i=>i.decorations})}const es=2e3;function rectangleFor(i,o,s){let _=Math.min(o.line,s.line),$=Math.max(o.line,s.line),ae=[];if(o.off>es||s.off>es||o.col<0||s.col<0){let pe=Math.min(o.off,s.off),we=Math.max(o.off,s.off);for(let o=_;o<=$;o++){let s=i.doc.line(o);s.length<=we&&ae.push(v.e.range(s.from+pe,s.to+we))}}else{let pe=Math.min(o.col,s.col),we=Math.max(o.col,s.col);for(let o=_;o<=$;o++){let s=i.doc.line(o),_=Object(v.v)(s.text,pe,i.tabSize,!0);if(_<0)ae.push(v.e.cursor(s.to));else{let o=Object(v.v)(s.text,we,i.tabSize);ae.push(v.e.range(s.from+_,s.from+o))}}}return ae}function absoluteColumn(i,o){let s=i.coordsAtPos(i.viewport.from);return s?Math.round(Math.abs((s.left-o)/i.defaultCharacterWidth)):-1}function getPos(i,o){let s=i.posAtCoords({x:o.clientX,y:o.clientY},!1),_=i.state.doc.lineAt(s),$=s-_.from,ae=$>es?-1:$==_.length?absoluteColumn(i,o.clientX):Object(v.t)(_.text,i.state.tabSize,s-_.from);return{line:_.number,col:ae,off:$}}function rectangleSelectionStyle(i,o){let s=getPos(i,o),_=i.state.selection;return s?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(s.line).from),v=i.state.doc.lineAt(o);s={line:v.number,col:s.col,off:Math.min(s.off,v.length)},_=_.map(i.changes)}},get(o,$,ae){let pe=getPos(i,o);if(!pe)return _;let we=rectangleFor(i.state,s,pe);return we.length?ae?v.e.create(we.concat(_.ranges)):v.e.create(we):_}}:null}function rectangularSelection(i){let o=(null==i?void 0:i.eventFilter)||(i=>i.altKey&&0==i.button);return _i.mouseSelectionStyle.of(((i,s)=>o(s)?rectangleSelectionStyle(i,s):null))}const ts={Alt:[18,i=>!!i.altKey],Control:[17,i=>!!i.ctrlKey],Shift:[16,i=>!!i.shiftKey],Meta:[91,i=>!!i.metaKey]},ns={style:"cursor: crosshair"};function crosshairCursor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[o,s]=ts[i.key||"Alt"],v=Xt.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==o||s(i))},keyup(i){i.keyCode!=o&&s(i)||this.set(!1)},mousemove(i){this.set(s(i))}}});return[v,_i.contentAttributes.of((i=>{var o;return(null===(o=i.plugin(v))||void 0===o?void 0:o.isDown)?ns:null}))]}const as="-10000px";class rs{constructor(i,o,s){this.facet=o,this.createTooltipView=s,this.input=i.state.facet(o),this.tooltips=this.input.filter((i=>i)),this.tooltipViews=this.tooltips.map(s)}update(i,o){var s;let v=i.state.facet(this.facet),_=v.filter((i=>i));if(v===this.input){for(let o of this.tooltipViews)o.update&&o.update(i);return!1}let $=[],ae=o?[]:null;for(let s=0;s<_.length;s++){let v=_[s],pe=-1;if(v){for(let i=0;io[s]=i)),o.length=ae.length),this.input=v,this.tooltips=_,this.tooltipViews=$,!0}}function windowSpace(i){let{win:o}=i;return{top:0,left:0,bottom:o.innerHeight,right:o.innerWidth}}const os=v.g.define({combine:i=>{var o,s,v;return{position:bt.ios?"absolute":(null===(o=i.find((i=>i.position)))||void 0===o?void 0:o.position)||"fixed",parent:(null===(s=i.find((i=>i.parent)))||void 0===s?void 0:s.parent)||null,tooltipSpace:(null===(v=i.find((i=>i.tooltipSpace)))||void 0===v?void 0:v.tooltipSpace)||windowSpace}}}),ss=new WeakMap,ds=Xt.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let o=i.state.facet(os);this.position=o.position,this.parent=o.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new rs(i,cs,(i=>this.createTooltip(i))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((i=>{Date.now()>this.lastTransaction-50&&i.length>0&&i[i.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let o=this.manager.update(i,this.above);o&&this.observeIntersection();let s=o||i.geometryChanged,v=i.state.facet(os);if(v.position!=this.position&&!this.madeAbsolute){this.position=v.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;s=!0}if(v.parent!=this.parent){this.parent&&this.container.remove(),this.parent=v.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);s=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);s&&this.maybeMeasure()}createTooltip(i){let o=i.create(this.view);if(o.dom.classList.add("cm-tooltip"),i.arrow&&!o.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",o.dom.appendChild(i)}return o.dom.style.position=this.position,o.dom.style.top=as,o.dom.style.left="0px",this.container.appendChild(o.dom),o.mount&&o.mount(this.view),o}destroy(){var i,o;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),null===(i=o.destroy)||void 0===i||i.call(o);this.parent&&this.container.remove(),null===(o=this.intersectionObserver)||void 0===o||o.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=this.view.dom.getBoundingClientRect(),o=1,s=1,v=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(bt.gecko)v=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==as&&"0px"==i.style.left){let o=i.getBoundingClientRect();v=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(v||"absolute"==this.position)if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(o=i.width/this.parent.offsetWidth,s=i.height/this.parent.offsetHeight)}else({scaleX:o,scaleY:s}=this.view.viewState);return{editor:i,parent:this.parent?this.container.getBoundingClientRect():i,pos:this.manager.tooltips.map(((i,o)=>{let s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)})),size:this.manager.tooltipViews.map((i=>{let{dom:o}=i;return o.getBoundingClientRect()})),space:this.view.state.facet(os).tooltipSpace(this.view),scaleX:o,scaleY:s,makeAbsolute:v}}writeMeasure(i){var o;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let i of this.manager.tooltipViews)i.dom.style.position="absolute"}let{editor:s,space:v,scaleX:_,scaleY:$}=i,ae=[];for(let pe=0;pe=Math.min(s.bottom,v.bottom)||tt.rightMath.min(s.right,v.right)+.1){et.style.top=as;continue}let rt=we.arrow?_e.dom.querySelector(".cm-tooltip-arrow"):null,it=rt?7:0,ot=nt.right-nt.left,st=null!==(o=ss.get(_e))&&void 0!==o?o:nt.bottom-nt.top,dt=_e.offset||ls,ut=this.view.textDirection==ca.LTR,lt=nt.width>v.right-v.left?ut?v.left:v.right-nt.width:ut?Math.min(tt.left-(rt?14:0)+dt.x,v.right-ot):Math.max(v.left,tt.left-ot+(rt?14:0)-dt.x),ct=this.above[pe];!we.strictSide&&(ct?tt.top-(nt.bottom-nt.top)-dt.yv.bottom)&&ct==v.bottom-tt.bottom>tt.top-v.top&&(ct=this.above[pe]=!ct);let ht=(ct?tt.top-v.top:v.bottom-tt.bottom)-it;if(htlt&&i.toppt&&(pt=ct?i.top-st-2-it:i.bottom+it+2);if("absolute"==this.position?(et.style.top=(pt-i.parent.top)/$+"px",et.style.left=(lt-i.parent.left)/_+"px"):(et.style.top=pt/$+"px",et.style.left=lt/_+"px"),rt){let i=tt.left+(ut?dt.x:-dt.x)-(lt+14-7);rt.style.left=i/_+"px"}!0!==_e.overlap&&ae.push({left:lt,top:pt,right:ft,bottom:pt+st}),et.classList.toggle("cm-tooltip-above",ct),et.classList.toggle("cm-tooltip-below",!ct),_e.positioned&&_e.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=as}},{eventObservers:{scroll(){this.maybeMeasure()}}}),us=_i.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ls={x:0,y:0},cs=v.g.define({enables:[ds,us]}),hs=v.g.define();class ps{static create(i){return new ps(i)}constructor(i){this.view=i,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new rs(i,hs,(i=>this.createHostedView(i)))}createHostedView(i){let o=i.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(i){for(let o of this.manager.tooltipViews)o.mount&&o.mount(i);this.mounted=!0}positioned(i){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(i)}update(i){this.manager.update(i)}destroy(){var i;for(let o of this.manager.tooltipViews)null===(i=o.destroy)||void 0===i||i.call(o)}passProp(i){let o;for(let s of this.manager.tooltipViews){let v=s[i];if(void 0!==v)if(void 0===o)o=v;else if(o!==v)return}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const fs=cs.compute([hs],(i=>{let o=i.facet(hs).filter((i=>i));return 0===o.length?null:{pos:Math.min(...o.map((i=>i.pos))),end:Math.max(...o.map((i=>{var o;return null!==(o=i.end)&&void 0!==o?o:i.pos}))),create:ps.create,above:o[0].above,arrow:o.some((i=>i.arrow))}}));class gs{constructor(i,o,s,v,_){this.view=i,this.source=o,this.field=s,this.setHover=v,this.hoverTime=_,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:i.dom,time:0},this.checkHover=this.checkHover.bind(this),i.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),i.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let i=Date.now()-this.lastMove.time;is.bottom||o.xs.right+i.defaultCharacterWidth)return;let $=i.bidiSpans(i.state.doc.lineAt(v)).find((i=>i.from<=v&&i.to>=v)),ae=$&&$.dir==ca.RTL?-1:1;_=o.x{this.pending==o&&(this.pending=null,s&&i.dispatch({effects:this.setHover.of(s)}))}),(o=>logException(i.state,o,"hover tooltip")))}else $&&i.dispatch({effects:this.setHover.of($)})}get tooltip(){let i=this.view.plugin(ds),o=i?i.manager.tooltips.findIndex((i=>i.create==ps.create)):-1;return o>-1?i.manager.tooltipViews[o]:null}mousemove(i){var o;this.lastMove={x:i.clientX,y:i.clientY,target:i.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:v}=this;if(s&&v&&!isInTooltip(v.dom,i)||this.pending){let{pos:v}=s||this.pending,_=null!==(o=null==s?void 0:s.end)&&void 0!==o?o:v;(v==_?this.view.posAtCoords(this.lastMove)==v:isOverRange(this.view,v,_,i.clientX,i.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(i){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:o}=this;o&&o.dom.contains(i.relatedTarget)?this.watchTooltipLeave(o.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(i){let watch=o=>{i.removeEventListener("mouseleave",watch),this.active&&!this.view.dom.contains(o.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};i.addEventListener("mouseleave",watch)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const ms=4;function isInTooltip(i,o){let s=i.getBoundingClientRect();return o.clientX>=s.left-ms&&o.clientX<=s.right+ms&&o.clientY>=s.top-ms&&o.clientY<=s.bottom+ms}function isOverRange(i,o,s,v,_,$){let ae=i.scrollDOM.getBoundingClientRect(),pe=i.documentTop+i.documentPadding.top+i.contentHeight;if(ae.left>v||ae.right_||Math.min(ae.bottom,pe)<_)return!1;let we=i.posAtCoords({x:v,y:_},!1);return we>=o&&we<=s}function hoverTooltip(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=v.m.define(),_=v.n.define({create:()=>null,update(i,_){if(i&&(o.hideOnChange&&(_.docChanged||_.selection)||o.hideOn&&o.hideOn(_,i)))return null;if(i&&_.docChanged){let o=_.changes.mapPos(i.pos,-1,v.h.TrackDel);if(null==o)return null;let s=Object.assign(Object.create(null),i);s.pos=o,null!=i.end&&(s.end=_.changes.mapPos(i.end)),i=s}for(let o of _.effects)o.is(s)&&(i=o.value),o.is(ys)&&(i=null);return i},provide:i=>hs.from(i)});return[_,Xt.define((v=>new gs(v,i,_,s,o.hoverTime||300))),fs]}function getTooltip(i,o){let s=i.plugin(ds);if(!s)return null;let v=s.manager.tooltips.indexOf(o);return v<0?null:s.manager.tooltipViews[v]}const ys=v.m.define();const vs=v.g.define({combine(i){let o,s;for(let v of i)o=o||v.topContainer,s=s||v.bottomContainer;return{topContainer:o,bottomContainer:s}}});function getPanel(i,o){let s=i.plugin(Rs),v=s?s.specs.indexOf(o):-1;return v>-1?s.panels[v]:null}const Rs=Xt.fromClass(class{constructor(i){this.input=i.state.facet(Os),this.specs=this.input.filter((i=>i)),this.panels=this.specs.map((o=>o(i)));let o=i.state.facet(vs);this.top=new bs(i,!0,o.topContainer),this.bottom=new bs(i,!1,o.bottomContainer),this.top.sync(this.panels.filter((i=>i.top))),this.bottom.sync(this.panels.filter((i=>!i.top)));for(let i of this.panels)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(i){let o=i.state.facet(vs);this.top.container!=o.topContainer&&(this.top.sync([]),this.top=new bs(i.view,!0,o.topContainer)),this.bottom.container!=o.bottomContainer&&(this.bottom.sync([]),this.bottom=new bs(i.view,!1,o.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let s=i.state.facet(Os);if(s!=this.input){let o=s.filter((i=>i)),v=[],_=[],$=[],ae=[];for(let s of o){let o,pe=this.specs.indexOf(s);pe<0?(o=s(i.view),ae.push(o)):(o=this.panels[pe],o.update&&o.update(i)),v.push(o),(o.top?_:$).push(o)}this.specs=o,this.panels=v,this.top.sync(_),this.bottom.sync($);for(let i of ae)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}else for(let o of this.panels)o.update&&o.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>_i.scrollMargins.of((o=>{let s=o.plugin(i);return s&&{top:s.top.scrollMargin(),bottom:s.bottom.scrollMargin()}}))});class bs{constructor(i,o,s){this.view=i,this.top=o,this.container=s,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(i){for(let o of this.panels)o.destroy&&i.indexOf(o)<0&&o.destroy();this.panels=i,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let i=this.container||this.view.dom;i.insertBefore(this.dom,this.top?i.firstChild:null)}let i=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;i!=o.dom;)i=rm(i);i=i.nextSibling}else this.dom.insertBefore(o.dom,i);for(;i;)i=rm(i)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let i of this.classes.split(" "))i&&this.container.classList.remove(i);for(let i of(this.classes=this.view.themeClasses).split(" "))i&&this.container.classList.add(i)}}}function rm(i){let o=i.nextSibling;return i.remove(),o}const Os=v.g.define({enables:Rs});class xs extends v.l{compare(i){return this==i||this.constructor==i.constructor&&this.eq(i)}eq(i){return!1}destroy(i){}}xs.prototype.elementClass="",xs.prototype.toDOM=void 0,xs.prototype.mapMode=v.h.TrackBefore,xs.prototype.startSide=xs.prototype.endSide=-1,xs.prototype.point=!0;const ws=v.g.define(),Cs={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>v.j.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Ss=v.g.define();function dist_gutter(i){return[gutters(),Ss.of(Object.assign(Object.assign({},Cs),i))]}const _s=v.g.define({combine:i=>i.some((i=>i))});function gutters(i){let o=[Es];return i&&!1===i.fixed&&o.push(_s.of(!0)),o}const Es=Xt.fromClass(class{constructor(i){this.view=i,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(Ss).map((o=>new As(i,o)));for(let i of this.gutters)this.dom.appendChild(i.dom);this.fixed=!i.state.facet(_s),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}update(i){if(this.updateGutters(i)){let o=this.prevViewport,s=i.view.viewport,v=Math.min(o.to,s.to)-Math.max(o.from,s.from);this.syncGutters(v<.8*(s.to-s.from))}i.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(_s)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=i.view.viewport}syncGutters(i){let o=this.dom.nextSibling;i&&this.dom.remove();let s=v.j.iter(this.view.state.facet(ws),this.view.viewport.from),_=[],$=this.gutters.map((i=>new ks(i,this.view.viewport,-this.view.documentPadding.top)));for(let i of this.view.viewportLineBlocks)if(_.length&&(_=[]),Array.isArray(i.type)){let o=!0;for(let v of i.type)if(v.type==At.Text&&o){advanceCursor(s,_,v.from);for(let i of $)i.line(this.view,v,_);o=!1}else if(v.widget)for(let i of $)i.widget(this.view,v)}else if(i.type==At.Text){advanceCursor(s,_,i.from);for(let o of $)o.line(this.view,i,_)}else if(i.widget)for(let o of $)o.widget(this.view,i);for(let i of $)i.finish();i&&this.view.scrollDOM.insertBefore(this.dom,o)}updateGutters(i){let o=i.startState.facet(Ss),s=i.state.facet(Ss),_=i.docChanged||i.heightChanged||i.viewportChanged||!v.j.eq(i.startState.facet(ws),i.state.facet(ws),i.view.viewport.from,i.view.viewport.to);if(o==s)for(let o of this.gutters)o.update(i)&&(_=!0);else{_=!0;let v=[];for(let _ of s){let s=o.indexOf(_);s<0?v.push(new As(this.view,_)):(this.gutters[s].update(i),v.push(this.gutters[s]))}for(let i of this.gutters)i.dom.remove(),v.indexOf(i)<0&&i.destroy();for(let i of v)this.dom.appendChild(i.dom);this.gutters=v}return _}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove()}},{provide:i=>_i.scrollMargins.of((o=>{let s=o.plugin(i);return s&&0!=s.gutters.length&&s.fixed?o.textDirection==ca.LTR?{left:s.dom.offsetWidth*o.scaleX}:{right:s.dom.offsetWidth*o.scaleX}:null}))});function asArray(i){return Array.isArray(i)?i:[i]}function advanceCursor(i,o,s){for(;i.value&&i.from<=s;)i.from==s&&o.push(i.value),i.next()}class ks{constructor(i,o,s){this.gutter=i,this.height=s,this.i=0,this.cursor=v.j.iter(i.markers,o.from)}addElement(i,o,s){let{gutter:v}=this,_=(o.top-this.height)/i.scaleY,$=o.height/i.scaleY;if(this.i==v.elements.length){let o=new Ds(i,$,_,s);v.elements.push(o),v.dom.appendChild(o.dom)}else v.elements[this.i].update(i,$,_,s);this.height=o.bottom,this.i++}line(i,o,s){let v=[];advanceCursor(this.cursor,v,o.from),s.length&&(v=v.concat(s));let _=this.gutter.config.lineMarker(i,o,v);_&&v.unshift(_);let $=this.gutter;(0!=v.length||$.config.renderEmptyElements)&&this.addElement(i,o,v)}widget(i,o){let s=this.gutter.config.widgetMarker(i,o.widget,o);s&&this.addElement(i,o,[s])}finish(){let i=this.gutter;for(;i.elements.length>this.i;){let o=i.elements.pop();i.dom.removeChild(o.dom),o.destroy()}}}class As{constructor(i,o){this.view=i,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let s in o.domEventHandlers)this.dom.addEventListener(s,(v=>{let _,$=v.target;if($!=this.dom&&this.dom.contains($)){for(;$.parentNode!=this.dom;)$=$.parentNode;let i=$.getBoundingClientRect();_=(i.top+i.bottom)/2}else _=v.clientY;let ae=i.lineBlockAtHeight(_-i.documentTop);o.domEventHandlers[s](i,ae,v)&&v.preventDefault()}));this.markers=asArray(o.markers(i)),o.initialSpacer&&(this.spacer=new Ds(i,0,0,[o.initialSpacer(i)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(i){let o=this.markers;if(this.markers=asArray(this.config.markers(i.view)),this.spacer&&this.config.updateSpacer){let o=this.config.updateSpacer(this.spacer.markers[0],i);o!=this.spacer.markers[0]&&this.spacer.update(i.view,0,0,[o])}let s=i.view.viewport;return!v.j.eq(this.markers,o,s.from,s.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(i)}destroy(){for(let i of this.elements)i.destroy()}}class Ds{constructor(i,o,s,v){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(i,o,s,v)}update(i,o,s,v){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=s&&(this.dom.style.marginTop=(this.above=s)?s+"px":""),sameMarkers(this.markers,v)||this.setMarkers(i,v)}setMarkers(i,o){let s="cm-gutterElement",v=this.dom.firstChild;for(let _=0,$=0;;){let ae=$,pe=_Object(v.s)(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(i,o){let s=Object.assign({},i);for(let i in o){let v=s[i],_=o[i];s[i]=v?(i,o,s)=>v(i,o,s)||_(i,o,s):_}return s}})});class Is extends xs{constructor(i){super(),this.number=i}eq(i){return this.number==i.number}toDOM(){return document.createTextNode(this.number)}}function formatNumber(i,o){return i.state.facet(Ts).formatNumber(o,i.state)}const Fs=Ss.compute([Ts],(i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:i=>i.state.facet(Ps),lineMarker:(i,o,s)=>s.some((i=>i.toDOM))?null:new Is(formatNumber(i,i.state.doc.lineAt(o.from).number)),widgetMarker:()=>null,lineMarkerChange:i=>i.startState.facet(Ts)!=i.state.facet(Ts),initialSpacer:i=>new Is(formatNumber(i,maxLineNumber(i.state.doc.lines))),updateSpacer(i,o){let s=formatNumber(o.view,maxLineNumber(o.view.state.doc.lines));return s==i.number?i:new Is(s)},domEventHandlers:i.facet(Ts).domEventHandlers})));function lineNumbers(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ts.of(i),gutters(),Fs]}function maxLineNumber(i){let o=9;for(;o{let o=[],s=-1;for(let v of i.selection.ranges){let _=i.doc.lineAt(v.head).from;_>s&&(s=_,o.push(Ns.range(_)))}return v.j.of(o)}));function highlightActiveLineGutter(){return Bs}},function(i,o,s){"use strict";s.r(o),s.d(o,"__extends",(function(){return __extends})),s.d(o,"__assign",(function(){return __assign})),s.d(o,"__rest",(function(){return __rest})),s.d(o,"__decorate",(function(){return __decorate})),s.d(o,"__param",(function(){return __param})),s.d(o,"__esDecorate",(function(){return __esDecorate})),s.d(o,"__runInitializers",(function(){return __runInitializers})),s.d(o,"__propKey",(function(){return __propKey})),s.d(o,"__setFunctionName",(function(){return __setFunctionName})),s.d(o,"__metadata",(function(){return __metadata})),s.d(o,"__awaiter",(function(){return __awaiter})),s.d(o,"__generator",(function(){return __generator})),s.d(o,"__createBinding",(function(){return v})),s.d(o,"__exportStar",(function(){return __exportStar})),s.d(o,"__values",(function(){return __values})),s.d(o,"__read",(function(){return __read})),s.d(o,"__spread",(function(){return __spread})),s.d(o,"__spreadArrays",(function(){return __spreadArrays})),s.d(o,"__spreadArray",(function(){return __spreadArray})),s.d(o,"__await",(function(){return __await})),s.d(o,"__asyncGenerator",(function(){return __asyncGenerator})),s.d(o,"__asyncDelegator",(function(){return __asyncDelegator})),s.d(o,"__asyncValues",(function(){return __asyncValues})),s.d(o,"__makeTemplateObject",(function(){return __makeTemplateObject})),s.d(o,"__importStar",(function(){return __importStar})),s.d(o,"__importDefault",(function(){return __importDefault})),s.d(o,"__classPrivateFieldGet",(function(){return __classPrivateFieldGet})),s.d(o,"__classPrivateFieldSet",(function(){return __classPrivateFieldSet})),s.d(o,"__classPrivateFieldIn",(function(){return __classPrivateFieldIn})),s.d(o,"__addDisposableResource",(function(){return __addDisposableResource})),s.d(o,"__disposeResources",(function(){return __disposeResources}));var extendStatics=function(i,o){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},extendStatics(i,o)};function __extends(i,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=i}extendStatics(i,o),i.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(i){for(var o,s=1,v=arguments.length;s=0;pe--)(_=i[pe])&&(ae=($<3?_(ae):$>3?_(o,s,ae):_(o,s))||ae);return $>3&&ae&&Object.defineProperty(o,s,ae),ae}function __param(i,o){return function(s,v){o(s,v,i)}}function __esDecorate(i,o,s,v,_,$){function accept(i){if(void 0!==i&&"function"!=typeof i)throw new TypeError("Function expected");return i}for(var ae,pe=v.kind,we="getter"===pe?"get":"setter"===pe?"set":"value",_e=!o&&i?v.static?i:i.prototype:null,et=o||(_e?Object.getOwnPropertyDescriptor(_e,v.name):{}),tt=!1,nt=s.length-1;nt>=0;nt--){var rt={};for(var it in v)rt[it]="access"===it?{}:v[it];for(var it in v.access)rt.access[it]=v.access[it];rt.addInitializer=function(i){if(tt)throw new TypeError("Cannot add initializers after decoration has completed");$.push(accept(i||null))};var ot=(0,s[nt])("accessor"===pe?{get:et.get,set:et.set}:et[we],rt);if("accessor"===pe){if(void 0===ot)continue;if(null===ot||"object"!=typeof ot)throw new TypeError("Object expected");(ae=accept(ot.get))&&(et.get=ae),(ae=accept(ot.set))&&(et.set=ae),(ae=accept(ot.init))&&_.unshift(ae)}else(ae=accept(ot))&&("field"===pe?_.unshift(ae):et[we]=ae)}_e&&Object.defineProperty(_e,v.name,et),tt=!0}function __runInitializers(i,o,s){for(var v=arguments.length>2,_=0;_0&&_[_.length-1])||6!==pe[0]&&2!==pe[0])){ae=0;continue}if(3===pe[0]&&(!_||pe[1]>_[0]&&pe[1]<_[3])){ae.label=pe[1];break}if(6===pe[0]&&ae.label<_[1]){ae.label=_[1],_=pe;break}if(_&&ae.label<_[2]){ae.label=_[2],ae.ops.push(pe);break}_[2]&&ae.ops.pop(),ae.trys.pop();continue}pe=o.call(i,ae)}catch(i){pe=[6,i],v=0}finally{s=_=0}if(5&pe[0])throw pe[1];return{value:pe[0]?pe[1]:void 0,done:!0}}}var v=Object.create?function(i,o,s,v){void 0===v&&(v=s);var _=Object.getOwnPropertyDescriptor(o,s);_&&!("get"in _?!o.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(i,v,_)}:function(i,o,s,v){void 0===v&&(v=s),i[v]=o[s]};function __exportStar(i,o){for(var s in i)"default"===s||Object.prototype.hasOwnProperty.call(o,s)||v(o,i,s)}function __values(i){var o="function"==typeof Symbol&&Symbol.iterator,s=o&&i[o],v=0;if(s)return s.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&v>=i.length&&(i=void 0),{value:i&&i[v++],done:!i}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(i,o){var s="function"==typeof Symbol&&i[Symbol.iterator];if(!s)return i;var v,_,$=s.call(i),ae=[];try{for(;(void 0===o||o-- >0)&&!(v=$.next()).done;)ae.push(v.value)}catch(i){_={error:i}}finally{try{v&&!v.done&&(s=$.return)&&s.call($)}finally{if(_)throw _.error}}return ae}function __spread(){for(var i=[],o=0;o1||resume(i,o)}))})}function resume(i,o){try{(s=_[i](o)).value instanceof __await?Promise.resolve(s.value.v).then(fulfill,reject):settle($[0][2],s)}catch(i){settle($[0][3],i)}var s}function fulfill(i){resume("next",i)}function reject(i){resume("throw",i)}function settle(i,o){i(o),$.shift(),$.length&&resume($[0][0],$[0][1])}}function __asyncDelegator(i){var o,s;return o={},verb("next"),verb("throw",(function(i){throw i})),verb("return"),o[Symbol.iterator]=function(){return this},o;function verb(v,_){o[v]=i[v]?function(o){return(s=!s)?{value:__await(i[v](o)),done:!1}:_?_(o):o}:_}}function __asyncValues(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,s=i[Symbol.asyncIterator];return s?s.call(i):(i=__values(i),o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o);function verb(s){o[s]=i[s]&&function(o){return new Promise((function(v,_){settle(v,_,(o=i[s](o)).done,o.value)}))}}function settle(i,o,s,v){Promise.resolve(v).then((function(o){i({value:o,done:s})}),o)}}function __makeTemplateObject(i,o){return Object.defineProperty?Object.defineProperty(i,"raw",{value:o}):i.raw=o,i}var _=Object.create?function(i,o){Object.defineProperty(i,"default",{enumerable:!0,value:o})}:function(i,o){i.default=o};function __importStar(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s in i)"default"!==s&&Object.prototype.hasOwnProperty.call(i,s)&&v(o,i,s);return _(o,i),o}function __importDefault(i){return i&&i.__esModule?i:{default:i}}function __classPrivateFieldGet(i,o,s,v){if("a"===s&&!v)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof o?i!==o||!v:!o.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?v:"a"===s?v.call(i):v?v.value:o.get(i)}function __classPrivateFieldSet(i,o,s,v,_){if("m"===v)throw new TypeError("Private method is not writable");if("a"===v&&!_)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof o?i!==o||!_:!o.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===v?_.call(i,s):_?_.value=s:o.set(i,s),s}function __classPrivateFieldIn(i,o){if(null===o||"object"!=typeof o&&"function"!=typeof o)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof i?o===i:i.has(o)}function __addDisposableResource(i,o,s){if(null!=o){if("object"!=typeof o&&"function"!=typeof o)throw new TypeError("Object expected.");var v;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");v=o[Symbol.asyncDispose]}if(void 0===v){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");v=o[Symbol.dispose]}if("function"!=typeof v)throw new TypeError("Object not disposable.");i.stack.push({value:o,dispose:v,async:s})}else s&&i.stack.push({async:!0});return o}var $="function"==typeof SuppressedError?SuppressedError:function(i,o,s){var v=new Error(s);return v.name="SuppressedError",v.error=i,v.suppressed=o,v};function __disposeResources(i){function fail(o){i.error=i.hasError?new $(o,i.error,"An error was suppressed during disposal."):o,i.hasError=!0}return function next(){for(;i.stack.length;){var o=i.stack.pop();try{var s=o.dispose&&o.dispose.call(o.value);if(o.async)return Promise.resolve(s).then(next,(function(i){return fail(i),next()}))}catch(i){fail(i)}}if(i.hasError)throw i.error}()}o.default={__extends:__extends,__assign:__assign,__rest:__rest,__decorate:__decorate,__param:__param,__metadata:__metadata,__awaiter:__awaiter,__generator:__generator,__createBinding:v,__exportStar:__exportStar,__values:__values,__read:__read,__spread:__spread,__spreadArrays:__spreadArrays,__spreadArray:__spreadArray,__await:__await,__asyncGenerator:__asyncGenerator,__asyncDelegator:__asyncDelegator,__asyncValues:__asyncValues,__makeTemplateObject:__makeTemplateObject,__importStar:__importStar,__importDefault:__importDefault,__classPrivateFieldGet:__classPrivateFieldGet,__classPrivateFieldSet:__classPrivateFieldSet,__classPrivateFieldIn:__classPrivateFieldIn,__addDisposableResource:__addDisposableResource,__disposeResources:__disposeResources}},function(i,o,s){"use strict";s.d(o,"a",(function(){return StyleHOC}));s(43);var v=s(0),_=s.n(v),$=s(18),ae=s(153),pe=s.n(ae),we=s(134),_e=s.n(we),et=s(84),tt=s(105),nt=_e()((function(i,o,s,v){var _=pe()({},tt,o.theme),$="function"==typeof o.styles?o.styles(_):o.styles,ae=pe()({},i(_),$&&$[s]);return et.a.createStyleSheet(ae,{meta:s,link:!0})}),(function(i,o,s,v){return s+"_"+v}));function _assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}function StyleHOC(i){return function(o){var s,ae,pe=o.name.replace(/Renderer$/,"");return ae=s=function(s){var v,$;$=s,(v=_class).prototype=Object.create($.prototype),v.prototype.constructor=v,v.__proto__=$;var ae;ae=_class;function _class(o,v){var _;return _defineProperty(_assertThisInitialized(_=s.call(this,o,v)||this),"sheet",void 0),_.sheet=nt(i,v.config||{},pe,v.cssRevision),_.sheet.update(o).attach(),_}var we=_class.prototype;return we.componentDidUpdate=function componentDidUpdate(i){this.sheet.update(i)},we.render=function render(){return _.a.createElement(o,Object.assign({},this.props,{classes:this.sheet.classes}))},_class}(v.Component),_defineProperty(s,"displayName","Styled("+pe+")"),_defineProperty(s,"contextType",$.a),ae}}},function(i,o,s){"use strict";s.d(o,"a",(function(){return Pt})),s.d(o,"b",(function(){return ft})),s.d(o,"c",(function(){return nt})),s.d(o,"d",(function(){return ct})),s.d(o,"e",(function(){return bracketMatching})),s.d(o,"f",(function(){return continuedIndent})),s.d(o,"g",(function(){return Bt})),s.d(o,"h",(function(){return defineLanguageFacet})),s.d(o,"i",(function(){return delimitedIndent})),s.d(o,"j",(function(){return flatIndent})),s.d(o,"k",(function(){return foldGutter})),s.d(o,"l",(function(){return foldInside})),s.d(o,"m",(function(){return wt})),s.d(o,"n",(function(){return Rt})),s.d(o,"o",(function(){return getIndentUnit})),s.d(o,"p",(function(){return getIndentation})),s.d(o,"q",(function(){return gt})),s.d(o,"r",(function(){return indentOnInput})),s.d(o,"s",(function(){return indentString})),s.d(o,"t",(function(){return pt})),s.d(o,"u",(function(){return matchBrackets})),s.d(o,"v",(function(){return et})),s.d(o,"w",(function(){return syntaxHighlighting})),s.d(o,"x",(function(){return syntaxTree}));var v,_=s(11),$=s(3),ae=s(7),pe=s(6),we=s(36);const _e=new _.c;function defineLanguageFacet(i){return $.g.define({combine:i?o=>o.concat(i):void 0})}const et=new _.c;class tt{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.data=i,this.name=v,$.f.prototype.hasOwnProperty("tree")||Object.defineProperty($.f.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=o,this.extension=[lt.of(this),$.f.languageData.of(((i,o,s)=>{let v=topNodeAt(i,o,s),_=v.type.prop(_e);if(!_)return[];let $=i.facet(_),ae=v.type.prop(et);if(ae){let _=v.resolve(o-v.from,s);for(let o of ae)if(o.test(_,i)){let s=i.facet(o.facet);return"replace"==o.type?s:s.concat($)}}return $}))].concat(s)}isActiveAt(i,o){return topNodeAt(i,o,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(_e)==this.data}findRegions(i){let o=i.facet(lt);if((null==o?void 0:o.data)==this.data)return[{from:0,to:i.doc.length}];if(!o||!o.allowsNesting)return[];let s=[],explore=(i,o)=>{if(i.prop(_e)==this.data)return void s.push({from:o,to:o+i.length});let v=i.prop(_.c.mounted);if(v){if(v.tree.prop(_e)==this.data){if(v.overlay)for(let i of v.overlay)s.push({from:i.from+o,to:i.to+o});else s.push({from:o,to:o+i.length});return}if(v.overlay){let i=s.length;if(explore(v.tree,v.overlay[0].from+o),s.length>i)return}}for(let s=0;si.isTop?o:void 0))]}),i.name)}configure(i,o){return new nt(this.data,this.parser.configure(i),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function syntaxTree(i){let o=i.field(tt.state,!1);return o?o.tree:_.h.empty}class rt{constructor(i){this.doc=i,this.cursorPos=0,this.string="",this.cursor=i.iter()}get length(){return this.doc.length}syncTo(i){return this.string=this.cursor.next(i-this.cursorPos).value,this.cursorPos=i+this.string.length,this.cursorPos-this.string.length}chunk(i){return this.syncTo(i),this.string}get lineChunks(){return!0}read(i,o){let s=this.cursorPos-this.string.length;return i=this.cursorPos?this.doc.sliceString(i,o):this.string.slice(i-s,o-s)}}let it=null;class ot{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=arguments.length>3?arguments[3]:void 0,_=arguments.length>4?arguments[4]:void 0,$=arguments.length>5?arguments[5]:void 0,ae=arguments.length>6?arguments[6]:void 0,pe=arguments.length>7?arguments[7]:void 0;this.parser=i,this.state=o,this.fragments=s,this.tree=v,this.treeLen=_,this.viewport=$,this.skipped=ae,this.scheduleOn=pe,this.parse=null,this.tempSkipped=[]}static create(i,o,s){return new ot(i,o,[],_.h.empty,0,s,[],null)}startParse(){return this.parser.startParse(new rt(this.state.doc),this.fragments)}work(i,o){return null!=o&&o>=this.state.doc.length&&(o=void 0),this.tree!=_.h.empty&&this.isDone(null!=o?o:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var s;if("number"==typeof i){let o=Date.now()+i;i=()=>Date.now()>o}for(this.parse||(this.parse=this.startParse()),null!=o&&(null==this.parse.stoppedAt||this.parse.stoppedAt>o)&&o=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>i)&&this.parse.stopAt(i),this.withContext((()=>{for(;!(o=this.parse.advance()););})),this.treeLen=i,this.tree=o,this.fragments=this.withoutTempSkipped(_.i.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(i){let o=it;it=this;try{return i()}finally{it=o}}withoutTempSkipped(i){for(let o;o=this.tempSkipped.pop();)i=cutFragments(i,o.from,o.to);return i}changes(i,o){let{fragments:s,tree:v,treeLen:$,viewport:ae,skipped:pe}=this;if(this.takeTree(),!i.empty){let o=[];if(i.iterChangedRanges(((i,s,v,_)=>o.push({fromA:i,toA:s,fromB:v,toB:_}))),s=_.i.applyChanges(s,o),v=_.h.empty,$=0,ae={from:i.mapPos(ae.from,-1),to:i.mapPos(ae.to,1)},this.skipped.length){pe=[];for(let o of this.skipped){let s=i.mapPos(o.from,1),v=i.mapPos(o.to,-1);si.from&&(this.fragments=cutFragments(this.fragments,s,v),this.skipped.splice(o--,1))}return!(this.skipped.length>=o)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(i,o){this.skipped.push({from:i,to:o})}static getSkippingParser(i){return new class extends _.g{createParse(o,s,v){let $=v[0].from,ae=v[v.length-1].to;return{parsedPos:$,advance(){let o=it;if(o){for(let i of v)o.tempSkipped.push(i);i&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,i]):i)}return this.parsedPos=ae,new _.h(_.e.none,[],[],ae-$)},stoppedAt:null,stopAt(){}}}}}isDone(i){i=Math.min(i,this.state.doc.length);let o=this.fragments;return this.treeLen>=i&&o.length&&0==o[0].from&&o[0].to>=i}static get(){return it}}function cutFragments(i,o,s){return _.i.applyChanges(i,[{fromA:o,toA:s,fromB:o,toB:s}])}class st{constructor(i){this.context=i,this.tree=i.tree}apply(i){if(!i.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(i.changes,i.state),s=this.context.treeLen==i.startState.doc.length?void 0:Math.max(i.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,s)||o.takeTree(),new st(o)}static init(i){let o=Math.min(3e3,i.doc.length),s=ot.create(i.facet(lt).parser,i,{from:0,to:o});return s.work(20,o)||s.takeTree(),new st(s)}}tt.state=$.n.define({create:st.init,update(i,o){for(let i of o.effects)if(i.is(tt.setState))return i.value;return o.startState.facet(lt)!=o.state.facet(lt)?st.init(o.state):i.apply(o)}});let requestIdle=i=>{let o=setTimeout((()=>i()),500);return()=>clearTimeout(o)};"undefined"!=typeof requestIdleCallback&&(requestIdle=i=>{let o=-1,s=setTimeout((()=>{o=requestIdleCallback(i,{timeout:400})}),100);return()=>o<0?clearTimeout(s):cancelIdleCallback(o)});const dt="undefined"!=typeof navigator&&(null===(v=navigator.scheduling)||void 0===v?void 0:v.isInputPending)?()=>navigator.scheduling.isInputPending():null,ut=ae.e.fromClass(class{constructor(i){this.view=i,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(i){let o=this.view.state.field(tt.state).context;(o.updateViewport(i.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(i.docChanged||i.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:i}=this.view,o=i.field(tt.state);o.tree==o.context.tree&&o.context.isDone(i.doc.length)||(this.working=requestIdle(this.work))}work(i){this.working=null;let o=Date.now();if(this.chunkEndv+1e3,pe=_.context.work((()=>dt&&dt()||Date.now()>$),v+(ae?0:1e5));this.chunkBudget-=Date.now()-o,(pe||this.chunkBudget<=0)&&(_.context.takeTree(),this.view.dispatch({effects:tt.setState.of(new st(_.context))})),this.chunkBudget>0&&(!pe||ae)&&this.scheduleWork(),this.checkAsyncSchedule(_.context)}checkAsyncSchedule(i){i.scheduleOn&&(this.workScheduled++,i.scheduleOn.then((()=>this.scheduleWork())).catch((i=>Object(ae.s)(this.view.state,i))).then((()=>this.workScheduled--)),i.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),lt=$.g.define({combine:i=>i.length?i[0]:null,enables:i=>[tt.state,ut,ae.c.contentAttributes.compute([i],(o=>{let s=o.facet(i);return s&&s.name?{"data-language":s.name}:{}}))]});class ct{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.language=i,this.support=o,this.extension=[i,o]}}const ht=$.g.define(),pt=$.g.define({combine:i=>{if(!i.length)return" ";let o=i[0];if(!o||/\S/.test(o)||Array.from(o).some((i=>i!=o[0])))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return o}});function getIndentUnit(i){let o=i.facet(pt);return 9==o.charCodeAt(0)?i.tabSize*o.length:o.length}function indentString(i,o){let s="",v=i.tabSize,_=i.facet(pt)[0];if("\t"==_){for(;o>=v;)s+="\t",o-=v;_=" "}for(let i=0;i=o?syntaxIndentation(i,s,o):null}class ft{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.state=i,this.options=o,this.unit=getIndentUnit(i)}lineAt(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=this.state.doc.lineAt(i),{simulateBreak:v,simulateDoubleBreak:_}=this.options;return null!=v&&v>=s.from&&v<=s.to?_&&v==i?{text:"",from:i}:(o<0?v1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&i==this.options.simulateBreak)return"";let{text:s,from:v}=this.lineAt(i,o);return s.slice(i-v,Math.min(s.length,i+100-v))}column(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:s,from:v}=this.lineAt(i,o),_=this.countColumn(s,i-v),$=this.options.overrideIndentation?this.options.overrideIndentation(v):-1;return $>-1&&(_+=$-this.countColumn(s,s.search(/\S|$/))),_}countColumn(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.length;return Object($.t)(i,this.state.tabSize,o)}lineIndent(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:s,from:v}=this.lineAt(i,o),_=this.options.overrideIndentation;if(_){let i=_(v);if(i>-1)return i}return this.countColumn(s,s.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const gt=new _.c;function syntaxIndentation(i,o,s){let v=o.resolveStack(s),_=v.node.enterUnfinishedNodesBefore(s);if(_!=v.node){let i=[];for(let o=_;o!=v.node;o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)v={node:i[o],next:v}}return indentFor(v,i,s)}function indentFor(i,o,s){for(let v=i;v;v=v.next){let i=indentStrategy(v.node);if(i)return i(mt.create(o,s,v))}return 0}function ignoreClosed(i){return i.pos==i.options.simulateBreak&&i.options.simulateDoubleBreak}function indentStrategy(i){let o=i.type.prop(gt);if(o)return o;let s,v=i.firstChild;if(v&&(s=v.type.prop(_.c.closedBy))){let o=i.lastChild,v=o&&s.indexOf(o.name)>-1;return i=>delimitedStrategy(i,!0,1,void 0,v&&!ignoreClosed(i)?o.from:void 0)}return null==i.parent?topIndent:null}function topIndent(){return 0}class mt extends ft{constructor(i,o,s){super(i.state,i.options),this.base=i,this.pos=o,this.context=s}get node(){return this.context.node}static create(i,o,s){return new mt(i,o,s)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(i){let o=this.state.doc.lineAt(i.from);for(;;){let s=i.resolve(o.from);for(;s.parent&&s.parent.from==s.from;)s=s.parent;if(isParent(s,i))break;o=this.state.doc.lineAt(s.from)}return this.lineIndent(o.from)}continue(){return indentFor(this.context.next,this.base,this.pos)}}function isParent(i,o){for(let s=o;s;s=s.parent)if(i==s)return!0;return!1}function bracketedAligned(i){let o=i.node,s=o.childAfter(o.from),v=o.lastChild;if(!s)return null;let _=i.options.simulateBreak,$=i.state.doc.lineAt(s.from),ae=null==_||_<=$.from?$.to:Math.min($.to,_);for(let i=s.to;;){let _=o.childAfter(i);if(!_||_==v)return null;if(!_.type.isSkipped)return _.fromdelimitedStrategy(i,s,v,o)}function delimitedStrategy(i,o,s,v,_){let $=i.textAfter,ae=$.match(/^\s*/)[0].length,pe=v&&$.slice(ae,ae+v.length)==v||_==i.pos+ae,we=o?bracketedAligned(i):null;return we?pe?i.column(we.from):i.column(we.to):i.baseIndent+(pe?0:i.unit*s)}const flatIndent=i=>i.baseIndent;function continuedIndent(){let{except:i,units:o=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s=>{let v=i&&i.test(s.textAfter);return s.baseIndent+(v?0:o*s.unit)}}const yt=200;function indentOnInput(){return $.f.transactionFilter.of((i=>{if(!i.docChanged||!i.isUserEvent("input.type")&&!i.isUserEvent("input.complete"))return i;let o=i.startState.languageDataAt("indentOnInput",i.startState.selection.main.head);if(!o.length)return i;let s=i.newDoc,{head:v}=i.newSelection.main,_=s.lineAt(v);if(v>_.from+yt)return i;let $=s.sliceString(_.from,v);if(!o.some((i=>i.test($))))return i;let{state:ae}=i,pe=-1,we=[];for(let{head:i}of ae.selection.ranges){let o=ae.doc.lineAt(i);if(o.from==pe)continue;pe=o.from;let s=getIndentation(ae,o.from);if(null==s)continue;let v=/^\s*/.exec(o.text)[0],_=indentString(ae,s);v!=_&&we.push({from:o.from,to:o.from+v.length,insert:_})}return we.length?[i,{changes:we,sequential:!0}]:i}))}const vt=$.g.define(),Rt=new _.c;function foldInside(i){let o=i.firstChild,s=i.lastChild;return o&&o.tos)continue;if(_&&ae.from=o&&v.to>s&&(_=v)}}return _}function isUnfinished(i){let o=i.lastChild;return o&&o.to==i.to&&o.type.isError}function foldable(i,o,s){for(let v of i.facet(vt)){let _=v(i,o,s);if(_)return _}return syntaxFolding(i,o,s)}function mapRange(i,o){let s=o.mapPos(i.from,1),v=o.mapPos(i.to,-1);return s>=v?void 0:{from:s,to:v}}const bt=$.m.define({map:mapRange}),Ot=$.m.define({map:mapRange});function selectedLines(i){let o=[];for(let{head:s}of i.state.selection.ranges)o.some((i=>i.from<=s&&i.to>=s))||o.push(i.lineBlockAt(s));return o}const xt=$.n.define({create:()=>ae.a.none,update(i,o){i=i.map(o.changes);for(let s of o.effects)if(s.is(bt)&&!foldExists(i,s.value.from,s.value.to)){let{preparePlaceholder:v}=o.state.facet(St),_=v?ae.a.replace({widget:new Et(v(o.state,s.value))}):_t;i=i.update({add:[_.range(s.value.from,s.value.to)]})}else s.is(Ot)&&(i=i.update({filter:(i,o)=>s.value.from!=i||s.value.to!=o,filterFrom:s.value.from,filterTo:s.value.to}));if(o.selection){let s=!1,{head:v}=o.selection.main;i.between(v,v,((i,o)=>{iv&&(s=!0)})),s&&(i=i.update({filterFrom:v,filterTo:v,filter:(i,o)=>o<=v||i>=v}))}return i},provide:i=>ae.c.decorations.from(i),toJSON(i,o){let s=[];return i.between(0,o.doc.length,((i,o)=>{s.push(i,o)})),s},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let o=[];for(let s=0;s{(!_||_.from>i)&&(_={from:i,to:o})})),_}function foldExists(i,o,s){let v=!1;return i.between(o,o,((i,_)=>{i==o&&_==s&&(v=!0)})),v}function maybeEnable(i,o){return i.field(xt,!1)?o:o.concat($.m.appendConfig.of(codeFolding()))}function announceFold(i,o){let s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],v=i.state.doc.lineAt(o.from).number,_=i.state.doc.lineAt(o.to).number;return ae.c.announce.of("".concat(i.state.phrase(s?"Folded lines":"Unfolded lines")," ").concat(v," ").concat(i.state.phrase("to")," ").concat(_,"."))}const wt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:i=>{for(let o of selectedLines(i)){let s=foldable(i.state,o.from,o.to);if(s)return i.dispatch({effects:maybeEnable(i.state,[bt.of(s),announceFold(i,s)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:i=>{if(!i.state.field(xt,!1))return!1;let o=[];for(let s of selectedLines(i)){let v=findFold(i.state,s.from,s.to);v&&o.push(Ot.of(v),announceFold(i,v,!1))}return o.length&&i.dispatch({effects:o}),o.length>0}},{key:"Ctrl-Alt-[",run:i=>{let{state:o}=i,s=[];for(let v=0;v{let o=i.state.field(xt,!1);if(!o||!o.size)return!1;let s=[];return o.between(0,i.state.doc.length,((i,o)=>{s.push(Ot.of({from:i,to:o}))})),i.dispatch({effects:s}),!0}}],Ct={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},St=$.g.define({combine:i=>Object($.s)(i,Ct)});function codeFolding(i){let o=[xt,Dt];return i&&o.push(St.of(i)),o}function widgetToDOM(i,o){let{state:s}=i,v=s.facet(St),onclick=o=>{let s=i.lineBlockAt(i.posAtDOM(o.target)),v=findFold(i.state,s.from,s.to);v&&i.dispatch({effects:Ot.of(v)}),o.preventDefault()};if(v.placeholderDOM)return v.placeholderDOM(i,onclick,o);let _=document.createElement("span");return _.textContent=v.placeholderText,_.setAttribute("aria-label",s.phrase("folded code")),_.title=s.phrase("unfold"),_.className="cm-foldPlaceholder",_.onclick=onclick,_}const _t=ae.a.replace({widget:new class extends ae.f{toDOM(i){return widgetToDOM(i,null)}}});class Et extends ae.f{constructor(i){super(),this.value=i}eq(i){return this.value==i.value}toDOM(i){return widgetToDOM(i,this.value)}}const kt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class At extends ae.d{constructor(i,o){super(),this.config=i,this.open=o}eq(i){return this.config==i.config&&this.open==i.open}toDOM(i){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=i.state.phrase(this.open?"Fold line":"Unfold line"),o}}function foldGutter(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=Object.assign(Object.assign({},kt),i),s=new At(o,!0),v=new At(o,!1),_=ae.e.fromClass(class{constructor(i){this.from=i.viewport.from,this.markers=this.buildMarkers(i)}update(i){(i.docChanged||i.viewportChanged||i.startState.facet(lt)!=i.state.facet(lt)||i.startState.field(xt,!1)!=i.state.field(xt,!1)||syntaxTree(i.startState)!=syntaxTree(i.state)||o.foldingChanged(i))&&(this.markers=this.buildMarkers(i.view))}buildMarkers(i){let o=new $.k;for(let _ of i.viewportLineBlocks){let $=findFold(i.state,_.from,_.to)?v:foldable(i.state,_.from,_.to)?s:null;$&&o.add(_.from,_.from,$)}return o.finish()}}),{domEventHandlers:pe}=o;return[_,Object(ae.l)({class:"cm-foldGutter",markers(i){var o;return(null===(o=i.plugin(_))||void 0===o?void 0:o.markers)||$.j.empty},initialSpacer:()=>new At(o,!1),domEventHandlers:Object.assign(Object.assign({},pe),{click:(i,o,s)=>{if(pe.click&&pe.click(i,o,s))return!0;let v=findFold(i.state,o.from,o.to);if(v)return i.dispatch({effects:Ot.of(v)}),!0;let _=foldable(i.state,o.from,o.to);return!!_&&(i.dispatch({effects:bt.of(_)}),!0)}})}),codeFolding()]}const Dt=ae.c.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Pt{constructor(i,o){let s;function def(i){let o=we.a.newName();return(s||(s=Object.create(null)))["."+o]=i,o}this.specs=i;const v="string"==typeof o.all?o.all:o.all?def(o.all):void 0,_=o.scope;this.scope=_ instanceof tt?i=>i.prop(_e)==_.data:_?i=>i==_:void 0,this.style=Object(pe.c)(i.map((i=>({tag:i.tag,class:i.class||def(Object.assign({},i,{tag:null}))}))),{all:v}).style,this.module=s?new we.a(s):null,this.themeType=o.themeType}static define(i,o){return new Pt(i,o||{})}}const Tt=$.g.define(),It=$.g.define({combine:i=>i.length?[i[0]]:null});function getHighlighters(i){let o=i.facet(Tt);return o.length?o:i.facet(It)}function syntaxHighlighting(i,o){let s,v=[Nt];return i instanceof Pt&&(i.module&&v.push(ae.c.styleModule.of(i.module)),s=i.themeType),(null==o?void 0:o.fallback)?v.push(It.of(i)):s?v.push(Tt.computeN([ae.c.darkTheme],(o=>o.facet(ae.c.darkTheme)==("dark"==s)?[i]:[]))):v.push(Tt.of(i)),v}class Ft{constructor(i){this.markCache=Object.create(null),this.tree=syntaxTree(i.state),this.decorations=this.buildDeco(i,getHighlighters(i.state))}update(i){let o=syntaxTree(i.state),s=getHighlighters(i.state),v=s!=getHighlighters(i.startState);o.length{s.add(i,o,this.markCache[v]||(this.markCache[v]=ae.a.mark({class:v})))}),v,_);return s.finish()}}const Nt=$.i.high(ae.e.fromClass(Ft,{decorations:i=>i.decorations})),Bt=Pt.define([{tag:pe.d.meta,color:"#404740"},{tag:pe.d.link,textDecoration:"underline"},{tag:pe.d.heading,textDecoration:"underline",fontWeight:"bold"},{tag:pe.d.emphasis,fontStyle:"italic"},{tag:pe.d.strong,fontWeight:"bold"},{tag:pe.d.strikethrough,textDecoration:"line-through"},{tag:pe.d.keyword,color:"#708"},{tag:[pe.d.atom,pe.d.bool,pe.d.url,pe.d.contentSeparator,pe.d.labelName],color:"#219"},{tag:[pe.d.literal,pe.d.inserted],color:"#164"},{tag:[pe.d.string,pe.d.deleted],color:"#a11"},{tag:[pe.d.regexp,pe.d.escape,pe.d.special(pe.d.string)],color:"#e40"},{tag:pe.d.definition(pe.d.variableName),color:"#00f"},{tag:pe.d.local(pe.d.variableName),color:"#30a"},{tag:[pe.d.typeName,pe.d.namespace],color:"#085"},{tag:pe.d.className,color:"#167"},{tag:[pe.d.special(pe.d.variableName),pe.d.macroName],color:"#256"},{tag:pe.d.definition(pe.d.propertyName),color:"#00c"},{tag:pe.d.comment,color:"#940"},{tag:pe.d.invalid,color:"#f00"}]),Lt=ae.c.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),jt=1e4,Mt="()[]{}",Qt=$.g.define({combine:i=>Object($.s)(i,{afterCursor:!0,brackets:Mt,maxScanDistance:jt,renderMatch:defaultRenderMatch})}),Vt=ae.a.mark({class:"cm-matchingBracket"}),Ut=ae.a.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(i){let o=[],s=i.matched?Vt:Ut;return o.push(s.range(i.start.from,i.start.to)),i.end&&o.push(s.range(i.end.from,i.end.to)),o}const Wt=[$.n.define({create:()=>ae.a.none,update(i,o){if(!o.docChanged&&!o.selection)return i;let s=[],v=o.state.facet(Qt);for(let i of o.state.selection.ranges){if(!i.empty)continue;let _=matchBrackets(o.state,i.head,-1,v)||i.head>0&&matchBrackets(o.state,i.head-1,1,v)||v.afterCursor&&(matchBrackets(o.state,i.head,1,v)||i.headae.c.decorations.from(i)}),Lt];function bracketMatching(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Qt.of(i),Wt]}const $t=new _.c;function matchingNodes(i,o,s){let v=i.prop(o<0?_.c.openedBy:_.c.closedBy);if(v)return v;if(1==i.name.length){let v=s.indexOf(i.name);if(v>-1&&v%2==(o<0?1:0))return[s[v+o]]}return null}function findHandle(i){let o=i.type.prop($t);return o?o(i.node):i}function matchBrackets(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},_=v.maxScanDistance||jt,$=v.brackets||Mt,ae=syntaxTree(i),pe=ae.resolveInner(o,s);for(let v=pe;v;v=v.parent){let _=matchingNodes(v.type,s,$);if(_&&v.from0?o>=ae.from&&oae.from&&o<=ae.to))return matchMarkedBrackets(i,o,s,v,ae,_,$)}}return matchPlainBrackets(i,o,s,ae,pe.type,_,$)}function matchMarkedBrackets(i,o,s,v,_,$,ae){let pe=v.parent,we={from:_.from,to:_.to},_e=0,et=null==pe?void 0:pe.cursor();if(et&&(s<0?et.childBefore(v.from):et.childAfter(v.to)))do{if(s<0?et.to<=v.from:et.from>=v.to){if(0==_e&&$.indexOf(et.type.name)>-1&&et.from0)return null;let _e={from:s<0?o-1:o,to:s>0?o+1:o},et=i.doc.iterRange(o,s>0?i.doc.length:0),tt=0;for(let i=0;!et.next().done&&i<=$;){let $=et.value;s<0&&(i+=$.length);let pe=o+i*s;for(let i=s>0?0:$.length-1,o=s>0?$.length:-1;i!=o;i+=s){let o=ae.indexOf($[i]);if(!(o<0||v.resolveInner(pe+i,1).type!=_))if(o%2==0==s>0)tt++;else{if(1==tt)return{start:_e,end:{from:pe+i,to:pe+i+1},matched:o>>1==we>>1};tt--}}s>0&&(i+=$.length)}return et.done?{start:_e,matched:!1}:null}const qt=Object.create(null),zt=[_.e.none],Zt=[],Ht=Object.create(null),Gt=Object.create(null);for(let[i,o]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Gt[i]=createTokenType(qt,o);function warnForPart(i,o){Zt.indexOf(i)>-1||(Zt.push(i),console.warn(o))}function createTokenType(i,o){let s=[];for(let v of o.split(" ")){let o=[];for(let s of v.split(".")){let v=i[s]||pe.d[s];v?"function"==typeof v?o.length?o=o.map(v):warnForPart(s,"Modifier ".concat(s," used at start of tag")):o.length?warnForPart(s,"Tag ".concat(s," used as modifier")):o=Array.isArray(v)?v:[v]:warnForPart(s,"Unknown highlighting tag ".concat(s))}for(let i of o)s.push(i)}if(!s.length)return 0;let v=o.replace(/ /g,"_"),$=v+" "+s.map((i=>i.id)),ae=Ht[$];if(ae)return ae.id;let we=Ht[$]=_.e.define({id:zt.length,name:v,props:[Object(pe.b)({[v]:s})]});return zt.push(we),we.id}},function(i,o,s){"use strict";s.d(o,"a",(function(){return v})),s.d(o,"b",(function(){return rt})),s.d(o,"c",(function(){return ae})),s.d(o,"d",(function(){return et})),s.d(o,"e",(function(){return _e})),s.d(o,"f",(function(){return gt})),s.d(o,"g",(function(){return yt})),s.d(o,"h",(function(){return it})),s.d(o,"i",(function(){return mt}));const v=1024;let _=0;class ${constructor(i,o){this.from=i,this.to=o}}class ae{constructor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.id=_++,this.perNode=!!i.perNode,this.deserialize=i.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(i){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof i&&(i=_e.match(i)),o=>{let s=i(o);return void 0===s?null:[this,s]}}}ae.closedBy=new ae({deserialize:i=>i.split(" ")}),ae.openedBy=new ae({deserialize:i=>i.split(" ")}),ae.group=new ae({deserialize:i=>i.split(" ")}),ae.contextHash=new ae({perNode:!0}),ae.lookAhead=new ae({perNode:!0}),ae.mounted=new ae({perNode:!0});class pe{constructor(i,o,s){this.tree=i,this.overlay=o,this.parser=s}static get(i){return i&&i.props&&i.props[ae.mounted.id]}}const we=Object.create(null);class _e{constructor(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.name=i,this.props=o,this.id=s,this.flags=v}static define(i){let o=i.props&&i.props.length?Object.create(null):we,s=(i.top?1:0)|(i.skipped?2:0)|(i.error?4:0)|(null==i.name?8:0),v=new _e(i.name||"",o,i.id,s);if(i.props)for(let s of i.props)if(Array.isArray(s)||(s=s(v)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[s[0].id]=s[1]}return v}prop(i){return this.props[i.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(i){if("string"==typeof i){if(this.name==i)return!0;let o=this.prop(ae.group);return!!o&&o.indexOf(i)>-1}return this.id==i}static match(i){let o=Object.create(null);for(let s in i)for(let v of s.split(" "))o[v]=i[s];return i=>{for(let s=i.prop(ae.group),v=-1;v<(s?s.length:0);v++){let _=o[v<0?i.name:s[v]];if(_)return _}}}}_e.none=new _e("",Object.create(null),0,8);class et{constructor(i){this.types=i;for(let o=0;o0&&void 0!==arguments[0]?arguments[0]:0;return new pt(this.topNode,i)}cursorAt(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=tt.get(this)||this.topNode,v=new pt(s);return v.moveTo(i,o),tt.set(this,v._tree),v}get topNode(){return new ut(this,0,0,null)}resolve(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=resolveNode(tt.get(this)||this.topNode,i,o,!1);return tt.set(this,s),s}resolveInner(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=resolveNode(nt.get(this)||this.topNode,i,o,!0);return nt.set(this,s),s}resolveStack(i){return stackIterator(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}iterate(i){let{enter:o,leave:s,from:v=0,to:_=this.length}=i,$=i.mode||0,ae=($&rt.IncludeAnonymous)>0;for(let i=this.cursor($|rt.IncludeAnonymous);;){let $=!1;if(i.from<=_&&i.to>=v&&(!ae&&i.type.isAnonymous||!1!==o(i))){if(i.firstChild())continue;$=!0}for(;$&&s&&(ae||!i.type.isAnonymous)&&s(i),!i.nextSibling();){if(!i.parent())return;$=!0}}}prop(i){return i.perNode?this.props?this.props[i.id]:void 0:this.type.prop(i)}get propValues(){let i=[];if(this.props)for(let o in this.props)i.push([+o,this.props[o]]);return i}balance(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:balanceRange(_e.none,this.children,this.positions,0,this.children.length,0,this.length,((i,o,s)=>new it(this.type,i,o,s,this.propValues)),i.makeTree||((i,o,s)=>new it(_e.none,i,o,s)))}static build(i){return buildTree(i)}}it.empty=new it(_e.none,[],[],0);class ot{constructor(i,o){this.buffer=i,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ot(this.buffer,this.index)}}class st{constructor(i,o,s){this.buffer=i,this.length=o,this.set=s}get type(){return _e.none}toString(){let i=[];for(let o=0;o0));pe=$[pe+3]);return ae}slice(i,o,s){let v=this.buffer,_=new Uint16Array(o-i),$=0;for(let ae=i,pe=0;ae=o&&so;case 1:return s<=o&&v>o;case 2:return v>o;case 4:return!0}}function resolveNode(i,o,s,v){for(var _;i.from==i.to||(s<1?i.from>=o:i.from>o)||(s>-1?i.to<=o:i.to0&&void 0!==arguments[0]?arguments[0]:0)}getChild(i){let o=getChildren(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return o.length?o[0]:null}getChildren(i){return getChildren(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}resolve(i){return resolveNode(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}resolveInner(i){return resolveNode(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}matchContext(i){return matchNodeContext(this,i)}enterUnfinishedNodesBefore(i){let o=this.childBefore(i),s=this;for(;o;){let i=o.lastChild;if(!i||i.to!=o.to)break;i.type.isError&&i.from==i.to?(s=o,o=i.prevSibling):o=i}return s}get node(){return this}get next(){return this.parent}}class ut extends dt{constructor(i,o,s,v){super(),this._tree=i,this.from=o,this.index=s,this._parent=v}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;for(let $=this;;){for(let{children:ae,positions:we}=$._tree,_e=o>0?ae.length:-1;i!=_e;i+=o){let _e=ae[i],et=we[i]+$.from;if(checkSide(v,s,et,et+_e.length))if(_e instanceof st){if(_&rt.ExcludeBuffers)continue;let ae=_e.findChild(0,_e.buffer.length,o,s-et,v);if(ae>-1)return new ct(new lt($,_e,i,et),null,ae)}else if(_&rt.IncludeAnonymous||!_e.type.isAnonymous||hasChild(_e)){let ae;if(!(_&rt.IgnoreMounts)&&(ae=pe.get(_e))&&!ae.overlay)return new ut(ae.tree,et,i,$);let we=new ut(_e,et,i,$);return _&rt.IncludeAnonymous||!we.type.isAnonymous?we:we.nextChild(o<0?_e.children.length-1:0,o,s,v)}}if(_&rt.IncludeAnonymous||!$.type.isAnonymous)return null;if(i=$.index>=0?$.index+o:o<0?-1:$._parent._tree.children.length,$=$._parent,!$)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(i){return this.nextChild(0,1,i,2)}childBefore(i){return this.nextChild(this._tree.children.length-1,-1,i,-2)}enter(i,o){let s,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(v&rt.IgnoreOverlays)&&(s=pe.get(this._tree))&&s.overlay){let v=i-this.from;for(let{from:i,to:_}of s.overlay)if((o>0?i<=v:i=v:_>v))return new ut(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,i,o,v)}nextSignificantParent(){let i=this;for(;i.type.isAnonymous&&i._parent;)i=i._parent;return i}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function getChildren(i,o,s,v){let _=i.cursor(),$=[];if(!_.firstChild())return $;if(null!=s)for(;!_.type.is(s);)if(!_.nextSibling())return $;for(;;){if(null!=v&&_.type.is(v))return $;if(_.type.is(o)&&$.push(_.node),!_.nextSibling())return null==v?$:[]}}function matchNodeContext(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.length-1;for(let v=i.parent;s>=0;v=v.parent){if(!v)return!1;if(!v.type.isAnonymous){if(o[s]&&o[s]!=v.name)return!1;s--}}return!0}class lt{constructor(i,o,s,v){this.parent=i,this.buffer=o,this.index=s,this.start=v}}class ct extends dt{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(i,o,s){super(),this.context=i,this._parent=o,this.index=s,this.type=i.buffer.set.types[i.buffer.buffer[s]]}child(i,o,s){let{buffer:v}=this.context,_=v.findChild(this.index+4,v.buffer[this.index+3],i,o-this.context.start,s);return _<0?null:new ct(this.context,this,_)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(i){return this.child(1,i,2)}childBefore(i){return this.child(-1,i,-2)}enter(i,o){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&rt.ExcludeBuffers)return null;let{buffer:s}=this.context,v=s.findChild(this.index+4,s.buffer[this.index+3],o>0?1:-1,i-this.context.start,o);return v<0?null:new ct(this.context,this,v)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(i){return this._parent?null:this.context.parent.nextChild(this.context.index+i,i,0,4)}get nextSibling(){let{buffer:i}=this.context,o=i.buffer[this.index+3];return o<(this._parent?i.buffer[this._parent.index+3]:i.buffer.length)?new ct(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:i}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new ct(this.context,this._parent,i.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let i=[],o=[],{buffer:s}=this.context,v=this.index+4,_=s.buffer[this.index+3];if(_>v){let $=s.buffer[this.index+1];i.push(s.slice(v,_,$)),o.push(0)}return new it(this.type,i,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function iterStack(i){if(!i.length)return null;let o=0,s=i[0];for(let v=1;vs.from||_.to=o){let ae=new ut($.tree,$.overlay[0].from+i.from,-1,i);(_||(_=[v])).push(resolveNode(ae,o,s,!1))}}return _?iterStack(_):v}class pt{get name(){return this.type.name}constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,i instanceof ut)this.yieldNode(i);else{this._tree=i.context.parent,this.buffer=i.context;for(let o=i._parent;o;o=o._parent)this.stack.unshift(o.index);this.bufferNode=i,this.yieldBuf(i.index)}}yieldNode(i){return!!i&&(this._tree=i,this.type=i.type,this.from=i.from,this.to=i.to,!0)}yieldBuf(i,o){this.index=i;let{start:s,buffer:v}=this.buffer;return this.type=o||v.set.types[v.buffer[i]],this.from=s+v.buffer[i+1],this.to=s+v.buffer[i+2],!0}yield(i){return!!i&&(i instanceof ut?(this.buffer=null,this.yieldNode(i)):(this.buffer=i.context,this.yieldBuf(i.index,i.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(i,o,s){if(!this.buffer)return this.yield(this._tree.nextChild(i<0?this._tree._tree.children.length-1:0,i,o,s,this.mode));let{buffer:v}=this.buffer,_=v.findChild(this.index+4,v.buffer[this.index+3],i,o-this.buffer.start,s);return!(_<0)&&(this.stack.push(this.index),this.yieldBuf(_))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(i){return this.enterChild(1,i,2)}childBefore(i){return this.enterChild(-1,i,-2)}enter(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(s&rt.ExcludeBuffers)&&this.enterChild(1,i,o):this.yield(this._tree.enter(i,o,s))}parent(){if(!this.buffer)return this.yieldNode(this.mode&rt.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let i=this.mode&rt.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(i)}sibling(i){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+i,i,0,4,this.mode));let{buffer:o}=this.buffer,s=this.stack.length-1;if(i<0){let i=s<0?0:this.stack[s]+4;if(this.index!=i)return this.yieldBuf(o.findChild(i,this.index,-1,0,4))}else{let i=o.buffer[this.index+3];if(i<(s<0?o.buffer.length:o.buffer[this.stack[s]+3]))return this.yieldBuf(i)}return s<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+i,i,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(i){let o,s,{buffer:v}=this;if(v){if(i>0){if(this.index-1)for(let v=o+i,_=i<0?-1:s._tree.children.length;v!=_;v+=i){let i=s._tree.children[v];if(this.mode&rt.IncludeAnonymous||i instanceof st||!i.type.isAnonymous||hasChild(i))return!1}return!0}move(i,o){if(o&&this.enterChild(i,0,4))return!0;for(;;){if(this.sibling(i))return!0;if(this.atLastNode(i)||!this.parent())return!1}}next(){let i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(1,i)}prev(){let i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(-1,i)}moveTo(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(;(this.from==this.to||(o<1?this.from>=i:this.from>i)||(o>-1?this.to<=i:this.to=0;){for(let $=i;$;$=$._parent)if($.index==v){if(v==this.index)return $;o=$,s=_+1;break e}v=this.stack[--_]}for(let i=s;i=0;_--){if(_<0)return matchNodeContext(this.node,i,v);let $=s[o.buffer[this.stack[_]]];if(!$.isAnonymous){if(i[v]&&i[v]!=$.name)return!1;v--}}return!0}}function hasChild(i){return i.children.some((i=>i instanceof st||!i.type.isAnonymous||hasChild(i)))}function buildTree(i){var o;let{buffer:s,nodeSet:_,maxBufferLength:$=v,reused:pe=[],minRepeatType:we=_.types.length}=i,_e=Array.isArray(s)?new ot(s,s.length):s,et=_.types,tt=0,nt=0;function takeNode(i,o,s,v,ae,rt){let{id:it,start:ot,end:dt,size:ut}=_e,lt=nt;for(;ut<0;){if(_e.next(),-1==ut){let o=pe[it];return s.push(o),void v.push(ot-i)}if(-3==ut)return void(tt=it);if(-4==ut)return void(nt=it);throw new RangeError("Unrecognized record size: ".concat(ut))}let ct,ht,pt=et[it],ft=ot-i;if(dt-ot<=$&&(ht=findBufferSize(_e.pos-o,ae))){let o=new Uint16Array(ht.size-ht.skip),s=_e.pos-ht.size,v=o.length;for(;_e.pos>s;)v=copyToBuffer(ht.start,o,v);ct=new st(o,dt-ht.start,_),ft=ht.start-i}else{let i=_e.pos-ut;_e.next();let o=[],s=[],v=it>=we?it:-1,_=0,ae=dt;for(;_e.pos>i;)v>=0&&_e.id==v&&_e.size>=0?(_e.end<=ae-$&&(makeRepeatLeaf(o,s,ot,_,_e.end,ae,v,lt),_=o.length,ae=_e.end),_e.next()):rt>2500?takeFlatNode(ot,i,o,s):takeNode(ot,i,o,s,v,rt+1);if(v>=0&&_>0&&_-1&&_>0){let i=makeBalanced(pt);ct=balanceRange(pt,o,s,0,o.length,0,dt-ot,i,i)}else ct=makeTree(pt,o,s,dt-ot,lt-dt)}s.push(ct),v.push(ft)}function takeFlatNode(i,o,s,v){let ae=[],pe=0,we=-1;for(;_e.pos>o;){let{id:i,start:o,end:s,size:v}=_e;if(v>4)_e.next();else{if(we>-1&&o=0;i-=3)o[s++]=ae[i],o[s++]=ae[i+1]-$,o[s++]=ae[i+2]-$,o[s++]=s;s.push(new st(o,ae[2]-$,_)),v.push($-i)}}function makeBalanced(i){return(o,s,v)=>{let _,$,pe=0,we=o.length-1;if(we>=0&&(_=o[we])instanceof it){if(!we&&_.type==i&&_.length==v)return _;($=_.prop(ae.lookAhead))&&(pe=s[we]+_.length+$)}return makeTree(i,o,s,v,pe)}}function makeRepeatLeaf(i,o,s,v,$,ae,pe,we){let _e=[],et=[];for(;i.length>v;)_e.push(i.pop()),et.push(o.pop()+s-$);i.push(makeTree(_.types[pe],_e,et,ae-$,we-ae)),o.push($-s)}function makeTree(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,$=arguments.length>5?arguments[5]:void 0;if(tt){let i=[ae.contextHash,tt];$=$?[i].concat($):[i]}if(_>25){let i=[ae.lookAhead,_];$=$?[i].concat($):[i]}return new it(i,o,s,v,$)}function findBufferSize(i,o){let s=_e.fork(),v=0,_=0,ae=0,pe=s.end-$,et={size:0,start:0,skip:0};e:for(let $=s.pos-i;s.pos>$;){let i=s.size;if(s.id==o&&i>=0){et.size=v,et.start=_,et.skip=ae,ae+=4,v+=4,s.next();continue}let _e=s.pos-i;if(i<0||_e<$||s.start=we?4:0,nt=s.start;for(s.next();s.pos>_e;){if(s.size<0){if(-3!=s.size)break e;tt+=4}else s.id>=we&&(tt+=4);s.next()}_=nt,v+=i,ae+=tt}return(o<0||v==i)&&(et.size=v,et.start=_,et.skip=ae),et.size>4?et:void 0}function copyToBuffer(i,o,s){let{id:v,start:_,end:$,size:ae}=_e;if(_e.next(),ae>=0&&v4){let v=_e.pos-(ae-4);for(;_e.pos>v;)s=copyToBuffer(i,o,s)}o[--s]=pe,o[--s]=$-i,o[--s]=_-i,o[--s]=v}else-3==ae?tt=v:-4==ae&&(nt=v);return s}let rt=[],dt=[];for(;_e.pos>0;)takeNode(i.start||0,i.bufferStart||0,rt,dt,-1,0);let ut=null!==(o=i.length)&&void 0!==o?o:rt.length?dt[0]+rt[0].length:0;return new it(et[i.topID],rt.reverse(),dt.reverse(),ut)}const ft=new WeakMap;function nodeSize(i,o){if(!i.isAnonymous||o instanceof st||o.type!=i)return 1;let s=ft.get(o);if(null==s){s=1;for(let v of o.children){if(v.type!=i||!(v instanceof it)){s=1;break}s+=nodeSize(i,v)}ft.set(o,s)}return s}function balanceRange(i,o,s,v,_,$,ae,pe,we){let _e=0;for(let s=v;s<_;s++)_e+=nodeSize(i,o[s]);let et=Math.ceil(1.5*_e/8),tt=[],nt=[];return function divide(o,s,v,_,ae){for(let pe=v;pe<_;){let v=pe,_e=s[pe],rt=nodeSize(i,o[pe]);for(pe++;pe<_;pe++){let s=nodeSize(i,o[pe]);if(rt+s>=et)break;rt+=s}if(pe==v+1){if(rt>et){let i=o[v];divide(i.children,i.positions,0,i.children.length,s[v]+ae);continue}tt.push(o[v])}else{let _=s[pe-1]+o[pe-1].length-_e;tt.push(balanceRange(i,o,s,v,pe,_e,_,null,we))}nt.push(_e+ae-$)}}(o,s,v,_,0),(pe||we)(tt,nt,ae)}class gt{constructor(){this.map=new WeakMap}setBuffer(i,o,s){let v=this.map.get(i);v||this.map.set(i,v=new Map),v.set(o,s)}getBuffer(i,o){let s=this.map.get(i);return s&&s.get(o)}set(i,o){i instanceof ct?this.setBuffer(i.context.buffer,i.index,o):i instanceof ut&&this.map.set(i.tree,o)}get(i){return i instanceof ct?this.getBuffer(i.context.buffer,i.index):i instanceof ut?this.map.get(i.tree):void 0}cursorSet(i,o){i.buffer?this.setBuffer(i.buffer.buffer,i.index,o):this.map.set(i.tree,o)}cursorGet(i){return i.buffer?this.getBuffer(i.buffer.buffer,i.index):this.map.get(i.tree)}}class mt{constructor(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]&&arguments[4],$=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.from=i,this.to=o,this.tree=s,this.offset=v,this.open=(_?1:0)|($?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=[new mt(0,i.length,i,0,!1,s)];for(let s of o)s.to>i.length&&v.push(s);return v}static applyChanges(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!o.length)return i;let v=[],_=1,$=i.length?i[0]:null;for(let ae=0,pe=0,we=0;;ae++){let _e=ae=s)for(;$&&$.from=o.from||et<=o.to||we){let i=Math.max(o.from,pe)-we,s=Math.min(o.to,et)-we;o=i>=s?null:new mt(i,s,o.tree,o.offset+we,ae>0,!!_e)}if(o&&v.push(o),$.to>et)break;$=_new $(i.from,i.to))):[new $(0,0)]:[new $(0,i.length)],this.createParse(i,o||[],s)}parse(i,o,s){let v=this.startParse(i,o,s);for(;;){let i=v.advance();if(i)return i}}}class vt{constructor(i){this.string=i}get length(){return this.string.length}chunk(i){return this.string.slice(i)}get lineChunks(){return!1}read(i,o){return this.string.slice(i,o)}}new ae({perNode:!0})},function(i,o,s){"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(i){for(var o=1;o=0&&it.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var ct=dt.initializeApp;dt.initializeApp=function(){for(var i=[],o=0;o"string"==typeof i?{label:i}:i)),[s,v]=o.every((i=>/^\w+$/.test(i.label)))?[/\w*$/,/\w+$/]:prefixMatch(o);return i=>{let _=i.matchBefore(v);return _||i.explicit?{from:_?_.from:i.pos,options:o,validFor:s}:null}}function ifNotIn(i,o){return s=>{for(let o=Object($.x)(s.state).resolveInner(s.pos,-1);o;o=o.parent){if(i.indexOf(o.name)>-1)return null;if(o.type.isTop)break}return o(s)}}class pe{constructor(i,o,s,v){this.completion=i,this.source=o,this.match=s,this.score=v}}function cur(i){return i.selection.main.from}function ensureAnchor(i,o){var s;let{source:v}=i,_=o&&"^"!=v[0],$="$"!=v[v.length-1];return _||$?new RegExp("".concat(_?"^":"","(?:").concat(v,")").concat($?"$":""),null!==(s=i.flags)&&void 0!==s?s:i.ignoreCase?"i":""):i}const we=v.a.define();function insertCompletionText(i,o,s,_){let{main:$}=i.selection,ae=s-$.from,pe=_-$.from;return Object.assign(Object.assign({},i.changeByRange((we=>we!=$&&s!=_&&i.sliceDoc(we.from+ae,we.from+pe)!=i.sliceDoc(s,_)?{range:we}:{changes:{from:we.from+ae,to:_==$.from?we.to:we.from+pe,insert:o},range:v.e.cursor(we.from+ae+o.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}const _e=new WeakMap;function asSource(i){if(!Array.isArray(i))return i;let o=_e.get(i);return o||_e.set(i,o=completeFromList(i)),o}const et=v.m.define(),tt=v.m.define();class nt{constructor(i){this.pattern=i,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&_e<=57||_e>=97&&_e<=122?2:_e>=65&&_e<=90?1:0:(lt=Object(v.w)(_e))!=lt.toLowerCase()?1:lt!=lt.toUpperCase()?2:0;(!_||1==ct&&st||0==ut&&0!=ct)&&(o[tt]==_e||s[tt]==_e&&(nt=!0)?ae[tt++]=_:ae.length&&(dt=!1)),ut=ct,_+=Object(v.r)(_e)}return tt==we&&0==ae[0]&&dt?this.result((nt?-200:0)-100,ae,i):rt==we&&0==it?this.ret(-200-i.length+(ot==i.length?0:-100),[0,ot]):pe>-1?this.ret(-700-i.length,[pe,pe+this.pattern.length]):rt==we?this.ret(-900-i.length,[it,ot]):tt==we?this.result((nt?-200:0)-100-700+(dt?0:-1100),ae,i):2!=o.length&&this.result((_[0]?-700:0)-200-1100,_,i)}result(i,o,s){let _=[],$=0;for(let i of o){let o=i+(this.astral?Object(v.r)(Object(v.q)(s,i)):1);$&&_[$-1]==i?_[$-1]=o:(_[$++]=i,_[$++]=o)}return this.ret(i-s.length,_)}}const rt=v.g.define({combine:i=>Object(v.s)(i,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:defaultPositionInfo,compareCompletions:(i,o)=>i.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(i,o)=>i&&o,closeOnBlur:(i,o)=>i&&o,icons:(i,o)=>i&&o,tooltipClass:(i,o)=>s=>joinClass(i(s),o(s)),optionClass:(i,o)=>s=>joinClass(i(s),o(s)),addToOptions:(i,o)=>i.concat(o)})});function joinClass(i,o){return i?o?i+" "+o:i:o}function defaultPositionInfo(i,o,s,v,$,ae){let pe,we,_e=i.textDirection==_.b.RTL,et=_e,tt=!1,nt="top",rt=o.left-$.left,it=$.right-o.right,ot=v.right-v.left,st=v.bottom-v.top;if(et&&rt=st||i>o.top?pe=s.bottom-o.top:(nt="bottom",pe=o.bottom-s.top)}let dt=(o.bottom-o.top)/ae.offsetHeight,ut=(o.right-o.left)/ae.offsetWidth;return{style:"".concat(nt,": ").concat(pe/dt,"px; max-width: ").concat(we/ut,"px"),class:"cm-completionInfo-"+(tt?_e?"left-narrow":"right-narrow":et?"left":"right")}}function optionContent(i){let o=i.addToOptions.slice();return i.icons&&o.push({render(i){let o=document.createElement("div");return o.classList.add("cm-completionIcon"),i.type&&o.classList.add(...i.type.split(/\s+/g).map((i=>"cm-completionIcon-"+i))),o.setAttribute("aria-hidden","true"),o},position:20}),o.push({render(i,o,s,v){let _=document.createElement("span");_.className="cm-completionLabel";let $=i.displayLabel||i.label,ae=0;for(let i=0;iae&&_.appendChild(document.createTextNode($.slice(ae,o)));let pe=_.appendChild(document.createElement("span"));pe.appendChild(document.createTextNode($.slice(o,s))),pe.className="cm-completionMatchedText",ae=s}return ae<$.length&&_.appendChild(document.createTextNode($.slice(ae))),_},position:50},{render(i){if(!i.detail)return null;let o=document.createElement("span");return o.className="cm-completionDetail",o.textContent=i.detail,o},position:80}),o.sort(((i,o)=>i.position-o.position)).map((i=>i.render))}function rangeAroundSelected(i,o,s){if(i<=s)return{from:0,to:i};if(o<0&&(o=0),o<=i>>1){let i=Math.floor(o/s);return{from:i*s,to:(i+1)*s}}let v=Math.floor((i-o)/s);return{from:i-(v+1)*s,to:i-v*s}}class it{constructor(i,o,s){this.view=i,this.stateField=o,this.applyCompletion=s,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:i=>this.placeInfo(i),key:this},this.space=null,this.currentClass="";let v=i.state.field(o),{options:_,selected:$}=v.open,ae=i.state.facet(rt);this.optionContent=optionContent(ae),this.optionClass=ae.optionClass,this.tooltipClass=ae.tooltipClass,this.range=rangeAroundSelected(_.length,$,ae.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(i.state),this.dom.addEventListener("mousedown",(s=>{let{options:v}=i.state.field(o).open;for(let o,_=s.target;_&&_!=this.dom;_=_.parentNode)if("LI"==_.nodeName&&(o=/-(\d+)$/.exec(_.id))&&+o[1]{let s=i.state.field(this.stateField,!1);s&&s.tooltip&&i.state.facet(rt).closeOnBlur&&o.relatedTarget!=i.contentDOM&&i.dispatch({effects:tt.of(null)})})),this.showOptions(_,v.id)}mount(){this.updateSel()}showOptions(i,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i,o,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(i){var o;let s=i.state.field(this.stateField),v=i.startState.field(this.stateField);if(this.updateTooltipClass(i.state),s!=v){let{options:_,selected:$,disabled:ae}=s.open;v.open&&v.open.options==_||(this.range=rangeAroundSelected(_.length,$,i.state.facet(rt).maxRenderedOptions),this.showOptions(_,s.id)),this.updateSel(),ae!=(null===(o=v.open)||void 0===o?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!ae)}}updateTooltipClass(i){let o=this.tooltipClass(i);if(o!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of o.split(" "))i&&this.dom.classList.add(i);this.currentClass=o}}positioned(i){this.space=i,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let i=this.view.state.field(this.stateField),o=i.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=rangeAroundSelected(o.options.length,o.selected,this.view.state.facet(rt).maxRenderedOptions),this.showOptions(o.options,i.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:s}=o.options[o.selected],{info:v}=s;if(!v)return;let $="string"==typeof v?document.createTextNode(v):v(s);if(!$)return;"then"in $?$.then((o=>{o&&this.view.state.field(this.stateField,!1)==i&&this.addInfoPane(o,s)})).catch((i=>Object(_.s)(this.view.state,i,"completion info"))):this.addInfoPane($,s)}}addInfoPane(i,o){this.destroyInfo();let s=this.info=document.createElement("div");if(s.className="cm-tooltip cm-completionInfo",null!=i.nodeType)s.appendChild(i),this.infoDestroy=null;else{let{dom:o,destroy:v}=i;s.appendChild(o),this.infoDestroy=v||null}this.dom.appendChild(s),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(i){let o=null;for(let s=this.list.firstChild,v=this.range.from;s;s=s.nextSibling,v++)"LI"==s.nodeName&&s.id?v==i?s.hasAttribute("aria-selected")||(s.setAttribute("aria-selected","true"),o=s):s.hasAttribute("aria-selected")&&s.removeAttribute("aria-selected"):v--;return o&&scrollIntoView(this.list,o),o}measureInfo(){let i=this.dom.querySelector("[aria-selected]");if(!i||!this.info)return null;let o=this.dom.getBoundingClientRect(),s=this.info.getBoundingClientRect(),v=i.getBoundingClientRect(),_=this.space;if(!_){let i=this.dom.ownerDocument.defaultView||window;_={left:0,top:0,right:i.innerWidth,bottom:i.innerHeight}}return v.top>Math.min(_.bottom,o.bottom)-10||v.bottoms.from||0==s.from))if(_=i,"string"!=typeof we&&we.header)v.appendChild(we.header(we));else{v.appendChild(document.createElement("completion-section")).textContent=i}}const _e=v.appendChild(document.createElement("li"));_e.id=o+"-"+$,_e.setAttribute("role","option");let et=this.optionClass(ae);et&&(_e.className=et);for(let i of this.optionContent){let o=i(ae,this.view.state,this.view,pe);o&&_e.appendChild(o)}}return s.from&&v.classList.add("cm-completionListIncompleteTop"),s.tonew it(s,i,o)}function scrollIntoView(i,o){let s=i.getBoundingClientRect(),v=o.getBoundingClientRect(),_=s.height/i.offsetHeight;v.tops.bottom&&(i.scrollTop+=(v.bottom-s.bottom)/_)}function score(i){return 100*(i.boost||0)+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}function sortOptions(i,o){let s=[],v=null,addOption=i=>{s.push(i);let{section:o}=i.completion;if(o){v||(v=[]);let i="string"==typeof o?o:o.name;v.some((o=>o.name==i))||v.push("string"==typeof o?{name:i}:o)}};for(let v of i)if(v.hasResult()){let i=v.result.getMatch;if(!1===v.result.filter)for(let o of v.result.options)addOption(new pe(o,v.source,i?i(o):[],1e9-s.length));else{let s=new nt(o.sliceDoc(v.from,v.to));for(let o of v.result.options)if(s.match(o.label)){let _=o.displayLabel?i?i(o,s.matched):[]:s.matched;addOption(new pe(o,v.source,_,s.score+(o.boost||0)))}}}if(v){let i=Object.create(null),o=0,cmp=(i,o)=>{var s,v;return(null!==(s=i.rank)&&void 0!==s?s:1e9)-(null!==(v=o.rank)&&void 0!==v?v:1e9)||(i.nameo.score-i.score||ae(i.completion,o.completion)))){let o=i.completion;!$||$.label!=o.label||$.detail!=o.detail||null!=$.type&&null!=o.type&&$.type!=o.type||$.apply!=o.apply||$.boost!=o.boost?_.push(i):score(i.completion)>score($)&&(_[_.length-1]=i),$=i.completion}return _}class ot{constructor(i,o,s,v,_,$){this.options=i,this.attrs=o,this.tooltip=s,this.timestamp=v,this.selected=_,this.disabled=$}setSelected(i,o){return i==this.selected||i>=this.options.length?this:new ot(this.options,makeAttrs(o,i),this.tooltip,this.timestamp,i,this.disabled)}static build(i,o,s,v,_){let $=sortOptions(i,o);if(!$.length)return v&&i.some((i=>1==i.state))?new ot(v.options,v.attrs,v.tooltip,v.timestamp,v.selected,!0):null;let ae=o.facet(rt).selectOnOpen?0:-1;if(v&&v.selected!=ae&&-1!=v.selected){let i=v.options[v.selected].completion;for(let o=0;o<$.length;o++)if($[o].completion==i){ae=o;break}}return new ot($,makeAttrs(s,ae),{pos:i.reduce(((i,o)=>o.hasResult()?Math.min(i,o.from):i),1e8),create:gt,above:_.aboveCursor},v?v.timestamp:Date.now(),ae,!1)}map(i){return new ot(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:i.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class st{constructor(i,o,s){this.active=i,this.id=o,this.open=s}static start(){return new st(ut,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(i){let{state:o}=i,s=o.facet(rt),v=(s.override||o.languageDataAt("autocomplete",cur(o)).map(asSource)).map((o=>(this.active.find((i=>i.source==o))||new lt(o,this.active.some((i=>0!=i.state))?1:0)).update(i,s)));v.length==this.active.length&&v.every(((i,o)=>i==this.active[o]))&&(v=this.active);let _=this.open;_&&i.docChanged&&(_=_.map(i.changes)),i.selection||v.some((o=>o.hasResult()&&i.changes.touchesRange(o.from,o.to)))||!sameResults(v,this.active)?_=ot.build(v,o,this.id,_,s):_&&_.disabled&&!v.some((i=>1==i.state))&&(_=null),!_&&v.every((i=>1!=i.state))&&v.some((i=>i.hasResult()))&&(v=v.map((i=>i.hasResult()?new lt(i.source,0):i)));for(let o of i.effects)o.is(pt)&&(_=_&&_.setSelected(o.value,this.id));return v==this.active&&_==this.open?this:new st(v,this.id,_)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:dt}}function sameResults(i,o){if(i==o)return!0;for(let s=0,v=0;;){for(;s-1&&(s["aria-activedescendant"]=i+"-"+o),s}const ut=[];function getUserEvent(i){return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class lt{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.source=i,this.state=o,this.explicitPos=s}hasResult(){return!1}update(i,o){let s=getUserEvent(i),v=this;s?v=v.handleUserEvent(i,s,o):i.docChanged?v=v.handleChange(i):i.selection&&0!=v.state&&(v=new lt(v.source,0));for(let o of i.effects)if(o.is(et))v=new lt(v.source,1,o.value?cur(i.state):-1);else if(o.is(tt))v=new lt(v.source,0);else if(o.is(ht))for(let i of o.value)i.source==v.source&&(v=i);return v}handleUserEvent(i,o,s){return"delete"!=o&&s.activateOnTyping?new lt(this.source,1):this.map(i.changes)}handleChange(i){return i.changes.touchesRange(cur(i.startState))?new lt(this.source,0):this.map(i.changes)}map(i){return i.empty||this.explicitPos<0?this:new lt(this.source,this.state,i.mapPos(this.explicitPos))}}class ct extends lt{constructor(i,o,s,v,_){super(i,2,o),this.result=s,this.from=v,this.to=_}hasResult(){return!0}handleUserEvent(i,o,s){var v;let _=i.changes.mapPos(this.from),$=i.changes.mapPos(this.to,1),pe=cur(i.state);if((this.explicitPos<0?pe<=_:pe$||"delete"==o&&cur(i.startState)==this.from)return new lt(this.source,"input"==o&&s.activateOnTyping?1:0);let we,_e=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return checkValid(this.result.validFor,i.state,_,$)?new ct(this.source,_e,this.result,_,$):this.result.update&&(we=this.result.update(this.result,_,$,new ae(i.state,pe,_e>=0)))?new ct(this.source,_e,we,we.from,null!==(v=we.to)&&void 0!==v?v:cur(i.state)):new lt(this.source,1,_e)}handleChange(i){return i.changes.touchesRange(this.from,this.to)?new lt(this.source,0):this.map(i.changes)}map(i){return i.empty?this:new ct(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}function checkValid(i,o,s,v){if(!i)return!1;let _=o.sliceDoc(s,v);return"function"==typeof i?i(_,s,v,o):ensureAnchor(i,!0).test(_)}const ht=v.m.define({map:(i,o)=>i.map((i=>i.map(o)))}),pt=v.m.define(),ft=v.n.define({create:()=>st.start(),update:(i,o)=>i.update(o),provide:i=>[_.x.from(i,(i=>i.tooltip)),_.c.contentAttributes.from(i,(i=>i.attrs))]});function applyCompletion(i,o){const s=o.completion.apply||o.completion.label;let v=i.state.field(ft).active.find((i=>i.source==o.source));return v instanceof ct&&("string"==typeof s?i.dispatch(Object.assign(Object.assign({},insertCompletionText(i.state,s,v.from,v.to)),{annotations:we.of(o.completion)})):s(i,o.completion,v.from,v.to),!0)}const gt=completionTooltip(ft,applyCompletion);function moveCompletionSelection(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return s=>{let v=s.state.field(ft,!1);if(!v||!v.open||v.open.disabled||Date.now()-v.open.timestamp-1?v.open.selected+ae*(i?1:-1):i?0:pe-1;return we<0?we="page"==o?0:pe-1:we>=pe&&(we="page"==o?pe-1:0),s.dispatch({effects:pt.of(we)}),!0}}class mt{constructor(i,o){this.active=i,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const yt=_.e.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let o of i.state.field(ft).active)1==o.state&&this.startQuery(o)}update(i){let o=i.state.field(ft);if(!i.selectionSet&&!i.docChanged&&i.startState.field(ft)==o)return;let s=i.transactions.some((i=>(i.selection||i.docChanged)&&!getUserEvent(i)));for(let o=0;o50&&Date.now()-v.time>1e3){for(let i of v.context.abortListeners)try{i()}catch(i){Object(_.s)(this.view.state,i)}v.context.abortListeners=null,this.running.splice(o--,1)}else v.updates.push(...i.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=o.active.some((i=>1==i.state&&!this.running.some((o=>o.active.source==i.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let o of i.transactions)"input"==getUserEvent(o)?this.composing=2:2==this.composing&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:i}=this.view,o=i.field(ft);for(let i of o.active)1!=i.state||this.running.some((o=>o.active.source==i.source))||this.startQuery(i)}startQuery(i){let{state:o}=this.view,s=cur(o),v=new ae(o,s,i.explicitPos==s),$=new mt(i,v);this.running.push($),Promise.resolve(i.source(v)).then((i=>{$.context.aborted||($.done=i||null,this.scheduleAccept())}),(i=>{this.view.dispatch({effects:tt.of(null)}),Object(_.s)(this.view.state,i)}))}scheduleAccept(){this.running.every((i=>void 0!==i.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(rt).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let o=[],s=this.view.state.facet(rt);for(let v=0;vi.source==_.active.source));if($&&1==$.state)if(null==_.done){let i=new lt(_.active.source,0);for(let o of _.updates)i=i.update(o,s);1!=i.state&&o.push(i)}else this.startQuery($)}o.length&&this.view.dispatch({effects:ht.of(o)})}},{eventHandlers:{blur(i){let o=this.view.state.field(ft,!1);if(o&&o.tooltip&&this.view.state.facet(rt).closeOnBlur){let s=o.open&&Object(_.k)(this.view,o.open.tooltip);s&&s.dom.contains(i.relatedTarget)||this.view.dispatch({effects:tt.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:et.of(!1)})),20),this.composing=0}}}),vt=_.c.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"".concat(400,"px"),boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Rt{constructor(i,o,s,v){this.field=i,this.line=o,this.from=s,this.to=v}}class bt{constructor(i,o,s){this.field=i,this.from=o,this.to=s}map(i){let o=i.mapPos(this.from,-1,v.h.TrackDel),s=i.mapPos(this.to,1,v.h.TrackDel);return null==o||null==s?null:new bt(this.field,o,s)}}class Ot{constructor(i,o){this.lines=i,this.fieldPositions=o}instantiate(i,o){let s=[],v=[o],_=i.doc.lineAt(o),ae=/^\s*/.exec(_.text)[0];for(let _ of this.lines){if(s.length){let s=ae,pe=/^\t*/.exec(_)[0].length;for(let o=0;onew bt(i.field,v[i.line]+i.from,v[i.line]+i.to)));return{text:s,ranges:pe}}static parse(i){let o,s=[],v=[],_=[];for(let $ of i.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec($);){let i=o[1]?+o[1]:null,ae=o[2]||o[3]||"",pe=-1;for(let o=0;o=pe&&i.field++}_.push(new Rt(pe,v.length,o.index,o.index+ae.length)),$=$.slice(0,o.index)+ae+$.slice(o.index+o[0].length)}for(let i;i=/\\([{}])/.exec($);){$=$.slice(0,i.index)+i[1]+$.slice(i.index+i[0].length);for(let o of _)o.line==v.length&&o.from>i.index&&(o.from--,o.to--)}v.push($)}return new Ot(v,_)}}let xt=_.a.widget({widget:new class extends _.f{toDOM(){let i=document.createElement("span");return i.className="cm-snippetFieldPosition",i}ignoreEvent(){return!1}}}),wt=_.a.mark({class:"cm-snippetField"});class Ct{constructor(i,o){this.ranges=i,this.active=o,this.deco=_.a.set(i.map((i=>(i.from==i.to?xt:wt).range(i.from,i.to))))}map(i){let o=[];for(let s of this.ranges){let v=s.map(i);if(!v)return null;o.push(v)}return new Ct(o,this.active)}selectionInsideField(i){return i.ranges.every((i=>this.ranges.some((o=>o.field==this.active&&o.from<=i.from&&o.to>=i.to))))}}const St=v.m.define({map:(i,o)=>i&&i.map(o)}),_t=v.m.define(),Et=v.n.define({create:()=>null,update(i,o){for(let s of o.effects){if(s.is(St))return s.value;if(s.is(_t)&&i)return new Ct(i.ranges,s.value)}return i&&o.docChanged&&(i=i.map(o.changes)),i&&o.selection&&!i.selectionInsideField(o.selection)&&(i=null),i},provide:i=>_.c.decorations.from(i,(i=>i?i.deco:_.a.none))});function fieldSelection(i,o){return v.e.create(i.filter((i=>i.field==o)).map((i=>v.e.range(i.from,i.to))))}function snippet(i){let o=Ot.parse(i);return(i,s,_,$)=>{let{text:ae,ranges:pe}=o.instantiate(i.state,_),_e={changes:{from:_,to:$,insert:v.o.of(ae)},scrollIntoView:!0,annotations:s?we.of(s):void 0};if(pe.length&&(_e.selection=fieldSelection(pe,0)),pe.length>1){let o=new Ct(pe,0),s=_e.effects=[St.of(o)];void 0===i.state.field(Et,!1)&&s.push(v.m.appendConfig.of([Et,Dt,Pt,vt]))}i.dispatch(i.state.update(_e))}}function moveField(i){return o=>{let{state:s,dispatch:v}=o,_=s.field(Et,!1);if(!_||i<0&&0==_.active)return!1;let $=_.active+i,ae=i>0&&!_.ranges.some((o=>o.field==$+i));return v(s.update({selection:fieldSelection(_.ranges,$),effects:St.of(ae?null:new Ct(_.ranges,$)),scrollIntoView:!0})),!0}}const kt=[{key:"Tab",run:moveField(1),shift:moveField(-1)},{key:"Escape",run:i=>{let{state:o,dispatch:s}=i;return!!o.field(Et,!1)&&(s(o.update({effects:St.of(null)})),!0)}}],At=v.g.define({combine:i=>i.length?i[0]:kt}),Dt=v.i.highest(_.q.compute([At],(i=>i.facet(At))));function snippetCompletion(i,o){return Object.assign(Object.assign({},o),{apply:snippet(i)})}const Pt=_.c.domEventHandlers({mousedown(i,o){let s,v=o.state.field(Et,!1);if(!v||null==(s=o.posAtCoords({x:i.clientX,y:i.clientY})))return!1;let _=v.ranges.find((i=>i.from<=s&&i.to>=s));return!(!_||_.field==v.active)&&(o.dispatch({selection:fieldSelection(v.ranges,_.field),effects:St.of(v.ranges.some((i=>i.field>_.field))?new Ct(v.ranges,_.field):null),scrollIntoView:!0}),!0)}});const Tt={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},It=v.m.define({map(i,o){let s=o.mapPos(i,-1,v.h.TrackAfter);return null==s?void 0:s}}),Ft=new class extends v.l{};Ft.startSide=1,Ft.endSide=-1;const Nt=v.n.define({create:()=>v.j.empty,update(i,o){if(i=i.map(o.changes),o.selection){let s=o.state.doc.lineAt(o.selection.main.head);i=i.update({filter:i=>i>=s.from&&i<=s.to})}for(let s of o.effects)s.is(It)&&(i=i.update({add:[Ft.range(s.value,s.value+1)]}));return i}});function closeBrackets(){return[jt,Nt]}const Bt="()[]{}<>";function closing(i){for(let o=0;o{if((Lt?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let $=i.state.selection.main;if(_.length>2||2==_.length&&1==Object(v.r)(Object(v.q)(_,0))||o!=$.from||s!=$.to)return!1;let ae=insertBracket(i.state,_);return!!ae&&(i.dispatch(ae),!0)})),Mt=[{key:"Backspace",run:i=>{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let _=config(o,o.selection.main.head).brackets||Tt.brackets,$=null,ae=o.changeByRange((i=>{if(i.empty){let s=prevChar(o.doc,i.head);for(let $ of _)if($==s&&nextChar(o.doc,i.head)==closing(Object(v.q)($,0)))return{changes:{from:i.head-$.length,to:i.head+$.length},range:v.e.cursor(i.head-$.length)}}return{range:$=i}}));return $||s(o.update(ae,{scrollIntoView:!0,userEvent:"delete.backward"})),!$}}];function insertBracket(i,o){let s=config(i,i.selection.main.head),_=s.brackets||Tt.brackets;for(let $ of _){let ae=closing(Object(v.q)($,0));if(o==$)return ae==$?handleSame(i,$,_.indexOf($+$+$)>-1,s):handleOpen(i,$,ae,s.before||Tt.before);if(o==ae&&closedBracketAt(i,i.selection.main.from))return handleClose(i,$,ae)}return null}function closedBracketAt(i,o){let s=!1;return i.field(Nt).between(0,i.doc.length,(i=>{i==o&&(s=!0)})),s}function nextChar(i,o){let s=i.sliceString(o,o+2);return s.slice(0,Object(v.r)(Object(v.q)(s,0)))}function prevChar(i,o){let s=i.sliceString(o-2,o);return Object(v.r)(Object(v.q)(s,0))==s.length?s:s.slice(1)}function handleOpen(i,o,s,_){let $=null,ae=i.changeByRange((ae=>{if(!ae.empty)return{changes:[{insert:o,from:ae.from},{insert:s,from:ae.to}],effects:It.of(ae.to+o.length),range:v.e.range(ae.anchor+o.length,ae.head+o.length)};let pe=nextChar(i.doc,ae.head);return!pe||/\s/.test(pe)||_.indexOf(pe)>-1?{changes:{insert:o+s,from:ae.head},effects:It.of(ae.head+o.length),range:v.e.cursor(ae.head+o.length)}:{range:$=ae}}));return $?null:i.update(ae,{scrollIntoView:!0,userEvent:"input.type"})}function handleClose(i,o,s){let _=null,$=i.changeByRange((o=>o.empty&&nextChar(i.doc,o.head)==s?{changes:{from:o.head,to:o.head+s.length,insert:s},range:v.e.cursor(o.head+s.length)}:_={range:o}));return _?null:i.update($,{scrollIntoView:!0,userEvent:"input.type"})}function handleSame(i,o,s,_){let $=_.stringPrefixes||Tt.stringPrefixes,ae=null,pe=i.changeByRange((_=>{if(!_.empty)return{changes:[{insert:o,from:_.from},{insert:o,from:_.to}],effects:It.of(_.to+o.length),range:v.e.range(_.anchor+o.length,_.head+o.length)};let pe,we=_.head,_e=nextChar(i.doc,we);if(_e==o){if(nodeStart(i,we))return{changes:{insert:o+o,from:we},effects:It.of(we+o.length),range:v.e.cursor(we+o.length)};if(closedBracketAt(i,we)){let _=s&&i.sliceDoc(we,we+3*o.length)==o+o+o?o+o+o:o;return{changes:{from:we,to:we+_.length,insert:_},range:v.e.cursor(we+_.length)}}}else{if(s&&i.sliceDoc(we-2*o.length,we)==o+o&&(pe=canStartStringAt(i,we-2*o.length,$))>-1&&nodeStart(i,pe))return{changes:{insert:o+o+o+o,from:we},effects:It.of(we+o.length),range:v.e.cursor(we+o.length)};if(i.charCategorizer(we)(_e)!=v.d.Word&&canStartStringAt(i,we,$)>-1&&!probablyInString(i,we,o,$))return{changes:{insert:o+o,from:we},effects:It.of(we+o.length),range:v.e.cursor(we+o.length)}}return{range:ae=_}}));return ae?null:i.update(pe,{scrollIntoView:!0,userEvent:"input.type"})}function nodeStart(i,o){let s=Object($.x)(i).resolveInner(o+1);return s.parent&&s.from==o}function probablyInString(i,o,s,v){let _=Object($.x)(i).resolveInner(o,-1),ae=v.reduce(((i,o)=>Math.max(i,o.length)),0);for(let $=0;$<5;$++){let $=i.sliceDoc(_.from,Math.min(_.to,_.from+s.length+ae)),pe=$.indexOf(s);if(!pe||pe>-1&&v.indexOf($.slice(0,pe))>-1){let o=_.firstChild;for(;o&&o.from==_.from&&o.to-o.from>s.length+pe;){if(i.sliceDoc(o.to-s.length,o.to)==s)return!1;o=o.firstChild}return!0}let we=_.to==o&&_.parent;if(!we)break;_=we}return!1}function canStartStringAt(i,o,s){let _=i.charCategorizer(o);if(_(i.sliceDoc(o-1,o))!=v.d.Word)return o;for(let $ of s){let s=o-$.length;if(i.sliceDoc(s,o)==$&&_(i.sliceDoc(s-1,s))!=v.d.Word)return s}return-1}function autocompletion(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[ft,rt.of(i),yt,Vt,vt]}const Qt=[{key:"Ctrl-Space",run:i=>!!i.state.field(ft,!1)&&(i.dispatch({effects:et.of(!0)}),!0)},{key:"Escape",run:i=>{let o=i.state.field(ft,!1);return!(!o||!o.active.some((i=>0!=i.state)))&&(i.dispatch({effects:tt.of(null)}),!0)}},{key:"ArrowDown",run:moveCompletionSelection(!0)},{key:"ArrowUp",run:moveCompletionSelection(!1)},{key:"PageDown",run:moveCompletionSelection(!0,"page")},{key:"PageUp",run:moveCompletionSelection(!1,"page")},{key:"Enter",run:i=>{let o=i.state.field(ft,!1);return!(i.state.readOnly||!o||!o.open||o.open.selected<0||o.open.disabled||Date.now()-o.open.timestampi.facet(rt).defaultKeymap?[Qt]:[])))},,function(i,o,s){"use strict";s.d(o,"a",(function(){return ae})),s.d(o,"b",(function(){return useStyleGuideContext}));var v=s(0),_=s.n(v),$=_.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),ae=$;function useStyleGuideContext(){return _.a.useContext($)}},,function(i,o,s){"use strict";s.d(o,"a",(function(){return mt}));var v=s(0),_=s.n(v),$=_.a.createContext(null);var ae=function defaultNoopBatch(i){i()},pe=function getBatch(){return ae};var we={notify:function notify(){},get:function get(){return[]}};function createSubscription(i,o){var s,v=we;function handleChangeWrapper(){_.onStateChange&&_.onStateChange()}function trySubscribe(){var _,$,ae;s||(s=o?o.addNestedSub(handleChangeWrapper):i.subscribe(handleChangeWrapper),_=pe(),$=null,ae=null,v={clear:function clear(){$=null,ae=null},notify:function notify(){_((function(){for(var i=$;i;)i.callback(),i=i.next}))},get:function get(){for(var i=[],o=$;o;)i.push(o),o=o.next;return i},subscribe:function subscribe(i){var o=!0,s=ae={callback:i,next:null,prev:ae};return s.prev?s.prev.next=s:$=s,function unsubscribe(){o&&null!==$&&(o=!1,s.next?s.next.prev=s.prev:ae=s.prev,s.prev?s.prev.next=s.next:$=s.next)}}})}var _={addNestedSub:function addNestedSub(i){return trySubscribe(),v.subscribe(i)},notifyNestedSubs:function notifyNestedSubs(){v.notify()},handleChangeWrapper:handleChangeWrapper,isSubscribed:function isSubscribed(){return Boolean(s)},trySubscribe:trySubscribe,tryUnsubscribe:function tryUnsubscribe(){s&&(s(),s=void 0,v.clear(),v=we)},getListeners:function getListeners(){return v}};return _}var _e="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v.useLayoutEffect:v.useEffect;var et=s(12),tt=s(29),nt=s(45),rt=s.n(nt),it=s(224),ot=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],st=["reactReduxForwardedRef"],dt=[],ut=[null,null];function storeStateUpdatesReducer(i,o){var s=i[1];return[o.payload,s+1]}function useIsomorphicLayoutEffectWithArgs(i,o,s){_e((function(){return i.apply(void 0,o)}),s)}function captureWrapperProps(i,o,s,v,_,$,ae){i.current=v,o.current=_,s.current=!1,$.current&&($.current=null,ae())}function subscribeUpdates(i,o,s,v,_,$,ae,pe,we,_e){if(i){var et=!1,tt=null,nt=function checkForUpdates(){if(!et){var i,s,nt=o.getState();try{i=v(nt,_.current)}catch(i){s=i,tt=i}s||(tt=null),i===$.current?ae.current||we():($.current=i,pe.current=i,ae.current=!0,_e({type:"STORE_UPDATED",payload:{error:s}}))}};s.onStateChange=nt,s.trySubscribe(),nt();return function unsubscribeWrapper(){if(et=!0,s.tryUnsubscribe(),s.onStateChange=null,tt)throw tt}}}var lt=function initStateUpdates(){return[null,0]};function connectAdvanced(i,o){void 0===o&&(o={});var s=o,ae=s.getDisplayName,pe=void 0===ae?function(i){return"ConnectAdvanced("+i+")"}:ae,we=s.methodName,_e=void 0===we?"connectAdvanced":we,nt=s.renderCountProp,ct=void 0===nt?void 0:nt,ht=s.shouldHandleStateChanges,pt=void 0===ht||ht,ft=s.storeKey,gt=void 0===ft?"store":ft,mt=(s.withRef,s.forwardRef),yt=void 0!==mt&&mt,vt=s.context,Rt=void 0===vt?$:vt,bt=Object(tt.a)(s,ot),Ot=Rt;return function wrapWithConnect(o){var s=o.displayName||o.name||"Component",$=pe(s),ae=Object(et.a)({},bt,{getDisplayName:pe,methodName:_e,renderCountProp:ct,shouldHandleStateChanges:pt,storeKey:gt,displayName:$,wrappedComponentName:s,WrappedComponent:o}),we=bt.pure;function createChildSelector(o){return i(o.dispatch,ae)}var nt=we?v.useMemo:function(i){return i()};function ConnectFunction(i){var s=Object(v.useMemo)((function(){var o=i.reactReduxForwardedRef,s=Object(tt.a)(i,st);return[i.context,o,s]}),[i]),$=s[0],ae=s[1],pe=s[2],we=Object(v.useMemo)((function(){return $&&$.Consumer&&Object(it.isContextConsumer)(_.a.createElement($.Consumer,null))?$:Ot}),[$,Ot]),_e=Object(v.useContext)(we),rt=Boolean(i.store)&&Boolean(i.store.getState)&&Boolean(i.store.dispatch);Boolean(_e)&&Boolean(_e.store);var ot=rt?i.store:_e.store,ct=Object(v.useMemo)((function(){return createChildSelector(ot)}),[ot]),ht=Object(v.useMemo)((function(){if(!pt)return ut;var i=createSubscription(ot,rt?null:_e.subscription),o=i.notifyNestedSubs.bind(i);return[i,o]}),[ot,rt,_e]),ft=ht[0],gt=ht[1],mt=Object(v.useMemo)((function(){return rt?_e:Object(et.a)({},_e,{subscription:ft})}),[rt,_e,ft]),yt=Object(v.useReducer)(storeStateUpdatesReducer,dt,lt),vt=yt[0][0],Rt=yt[1];if(vt&&vt.error)throw vt.error;var bt=Object(v.useRef)(),xt=Object(v.useRef)(pe),wt=Object(v.useRef)(),Ct=Object(v.useRef)(!1),St=nt((function(){return wt.current&&pe===xt.current?wt.current:ct(ot.getState(),pe)}),[ot,vt,pe]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[xt,bt,Ct,pe,St,wt,gt]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[pt,ot,ft,ct,xt,bt,Ct,wt,gt,Rt],[ot,ft,ct]);var _t=Object(v.useMemo)((function(){return _.a.createElement(o,Object(et.a)({},St,{ref:ae}))}),[ae,o,St]);return Object(v.useMemo)((function(){return pt?_.a.createElement(we.Provider,{value:mt},_t):_t}),[we,_t,mt])}var ot=we?_.a.memo(ConnectFunction):ConnectFunction;if(ot.WrappedComponent=o,ot.displayName=ConnectFunction.displayName=$,yt){var ht=_.a.forwardRef((function forwardConnectRef(i,o){return _.a.createElement(ot,Object(et.a)({},i,{reactReduxForwardedRef:o}))}));return ht.displayName=$,ht.WrappedComponent=o,rt()(ht,o)}return rt()(ot,o)}}function is(i,o){return i===o?0!==i||0!==o||1/i==1/o:i!=i&&o!=o}function shallowEqual(i,o){if(is(i,o))return!0;if("object"!=typeof i||null===i||"object"!=typeof o||null===o)return!1;var s=Object.keys(i),v=Object.keys(o);if(s.length!==v.length)return!1;for(var _=0;_=0;v--){var _=o[v](i);if(_)return _}return function(o,v){throw new Error("Invalid value of type "+typeof i+" for "+s+" argument when connecting component "+v.wrappedComponentName+".")}}function strictEqual(i,o){return i===o}function createConnect(i){var o=void 0===i?{}:i,s=o.connectHOC,v=void 0===s?connectAdvanced:s,_=o.mapStateToPropsFactories,$=void 0===_?ht:_,ae=o.mapDispatchToPropsFactories,pe=void 0===ae?ct:ae,we=o.mergePropsFactories,_e=void 0===we?pt:we,nt=o.selectorFactory,rt=void 0===nt?finalPropsSelectorFactory:nt;return function connect(i,o,s,_){void 0===_&&(_={});var ae=_,we=ae.pure,nt=void 0===we||we,it=ae.areStatesEqual,ot=void 0===it?strictEqual:it,st=ae.areOwnPropsEqual,dt=void 0===st?shallowEqual:st,ut=ae.areStatePropsEqual,lt=void 0===ut?shallowEqual:ut,ct=ae.areMergedPropsEqual,ht=void 0===ct?shallowEqual:ct,pt=Object(tt.a)(ae,gt),ft=match(i,$,"mapStateToProps"),mt=match(o,pe,"mapDispatchToProps"),yt=match(s,_e,"mergeProps");return v(rt,Object(et.a)({methodName:"connect",getDisplayName:function getDisplayName(i){return"Connect("+i+")"},shouldHandleStateChanges:Boolean(i),initMapStateToProps:ft,initMapDispatchToProps:mt,initMergeProps:yt,pure:nt,areStatesEqual:ot,areOwnPropsEqual:dt,areStatePropsEqual:lt,areMergedPropsEqual:ht},pt))}}var mt=createConnect();!function setBatch(i){ae=i}(s(28).unstable_batchedUpdates)},,,function(i,o){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch(i){"object"==typeof window&&(s=window)}i.exports=s},,function(i,o,s){var v=s(171),_="object"==typeof self&&self&&self.Object===Object&&self,$=v||_||Function("return this")();i.exports=$},function(i,o,s){"use strict";function requireInRuntime(i,o){if(!(o in i))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+o);return i[o]}s.r(o),s.d(o,"default",(function(){return requireInRuntime}))},function(i,o,s){"use strict";function evalInContext(i,o,s){return new Function("require","state","setState",i+"\n{"+s+"}").bind(null,o)}s.r(o),s.d(o,"default",(function(){return evalInContext}))},function(i,o,s){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(i){console.error(i)}}(),i.exports=s(250)},function(i,o,s){"use strict";function _objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}s.d(o,"a",(function(){return _objectWithoutPropertiesLoose}))},,function(i,o,s){"use strict";function _setPrototypeOf(i,o){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(i,o){return i.__proto__=o,i},_setPrototypeOf(i,o)}function _inheritsLoose(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,_setPrototypeOf(i,o)}s.d(o,"a",(function(){return _inheritsLoose}))},function(i,o){var s=Array.isArray;i.exports=s},function(i,o,s){"use strict";s.d(o,"a",(function(){return et}));var v=s(0),_=s.n(v),$=s(2),ae=s.n($),pe=s(15),we=s(9);function _extends(){return _extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var _e=function TextRenderer(i){var o,s=i.classes,v=i.semantic,$=i.size,ae=i.color,we=i.underlined,_e=i.children,et=_objectWithoutPropertiesLoose(i,["classes","semantic","size","color","underlined","children"]),tt=v||"span",nt=Object(pe.a)(s.text,s[$+"Size"],s[ae+"Color"],((o={})[s[tt]]=!!v,o[s.isUnderlined]=we,o));return _.a.createElement(tt,_extends({},et,{className:nt}),_e)};_e.propTypes={classes:ae.a.objectOf(ae.a.string.isRequired).isRequired,semantic:ae.a.oneOf(["em","strong"]),size:ae.a.oneOf(["inherit","small","base","text"]),color:ae.a.oneOf(["base","light"]),underlined:ae.a.bool,children:ae.a.node.isRequired},_e.defaultProps={size:"inherit",color:"base",underlined:!1};var et=Object(we.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{text:{fontFamily:o.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:s.small},baseSize:{fontSize:s.base},textSize:{fontSize:s.text},baseColor:{color:v.base},lightColor:{color:v.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",v.lightest]]}}}))(_e)},function(i,o,s){(function(o){var check=function(i){return i&&i.Math==Math&&i};i.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof o&&o)||Function("return this")()}).call(this,s(23))},function(i,o){i.exports=function isObject(i){var o=typeof i;return null!=i&&("object"==o||"function"==o)}},function(i,o,s){"use strict";s.d(o,"a",(function(){return ae}));const v="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),_="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class ae{constructor(i,o){this.rules=[];let{finish:s}=o||{};function splitSelector(i){return/^@/.test(i)?[i]:i.split(/,\s*/)}function render(i,o,v,_){let $=[],ae=/^@(\w+)\b/.exec(i[0]),pe=ae&&"keyframes"==ae[1];if(ae&&null==o)return v.push(i[0]+";");for(let s in o){let _=o[s];if(/&/.test(s))render(s.split(/,\s*/).map((o=>i.map((i=>o.replace(/&/,i))))).reduce(((i,o)=>i.concat(o))),_,v);else if(_&&"object"==typeof _){if(!ae)throw new RangeError("The value of a property ("+s+") should be a primitive value.");render(splitSelector(s),_,$,pe)}else null!=_&&$.push(s.replace(/_.*/,"").replace(/[A-Z]/g,(i=>"-"+i.toLowerCase()))+": "+_+";")}($.length||pe)&&v.push((!s||ae||_?i:i.map(s)).join(", ")+" {"+$.join(" ")+"}")}for(let o in i)render(splitSelector(o),i[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let i=$[v]||1;return $[v]=i+1,"ͼ"+i.toString(36)}static mount(i,o,s){let v=i[_],$=s&&s.nonce;v?$&&v.setNonce($):v=new we(i,$),v.mount(Array.isArray(o)?o:[o])}}let pe=new Map;class we{constructor(i,o){let s=i.ownerDocument||i,v=s.defaultView;if(!i.head&&i.adoptedStyleSheets&&v.CSSStyleSheet){let o=pe.get(s);if(o)return i.adoptedStyleSheets=[o.sheet,...i.adoptedStyleSheets],i[_]=o;this.sheet=new v.CSSStyleSheet,i.adoptedStyleSheets=[this.sheet,...i.adoptedStyleSheets],pe.set(s,this)}else{this.styleTag=s.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let v=i.head||i;v.insertBefore(this.styleTag,v.firstChild)}this.modules=[],i[_]=this}mount(i){let o=this.sheet,s=0,v=0;for(let _=0;_-1&&(this.modules.splice(ae,1),v--,ae=-1),-1==ae){if(this.modules.splice(v++,0,$),o)for(let i=0;i<$.rules.length;i++)o.insertRule($.rules[i],s++)}else{for(;v9&&void 0!==arguments[9]?arguments[9]:0,et=arguments.length>10?arguments[10]:void 0;this.p=i,this.stack=o,this.state=s,this.reducePos=v,this.pos=_,this.score=$,this.buffer=ae,this.bufferBase=pe,this.curContext=we,this.lookAhead=_e,this.parent=et}toString(){return"[".concat(this.stack.filter(((i,o)=>o%3==0)).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}static start(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=i.parser.context;return new _(i,[],o,s,s,0,[],0,v?new $(v,v.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(i,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=i}reduce(i){var o;let s=i>>19,v=65535&i,{parser:_}=this.p,$=_.dynamicPrecedence(v);if($&&(this.score+=$),0==s)return this.pushState(_.getGoto(this.state,v,!0),this.reducePos),v<_.minRepeatTerm&&this.storeNode(v,this.reducePos,this.reducePos,4,!0),void this.reduceContext(v,this.reducePos);let ae=this.stack.length-3*(s-1)-(262144&i?6:0),pe=ae?this.stack[ae-2]:this.p.ranges[0].from,we=this.reducePos-pe;we>=2e3&&!(null===(o=this.p.parser.nodeSet.types[v])||void 0===o?void 0:o.isAnonymous)&&(pe==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=we):this.p.lastBigReductionSizeae;)this.stack.pop();this.reduceContext(v,pe)}storeNode(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,_=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==i&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==i.buffer[v-4]&&i.buffer[v-1]>-1){if(o==s)return;if(i.buffer[v-2]>=o)return void(i.buffer[v-2]=s)}}if(_&&this.pos!=s){let _=this.buffer.length;if(_>0&&0!=this.buffer[_-4])for(;_>0&&this.buffer[_-2]>s;)this.buffer[_]=this.buffer[_-4],this.buffer[_+1]=this.buffer[_-3],this.buffer[_+2]=this.buffer[_-2],this.buffer[_+3]=this.buffer[_-1],_-=4,v>4&&(v-=4);this.buffer[_]=i,this.buffer[_+1]=o,this.buffer[_+2]=s,this.buffer[_+3]=v}else this.buffer.push(i,o,s,v)}shift(i,o,s,v){if(131072&i)this.pushState(65535&i,this.pos);else if(0==(262144&i)){let _=i,{parser:$}=this.p;(v>this.pos||o<=$.maxNode)&&(this.pos=v,$.stateFlag(_,1)||(this.reducePos=v)),this.pushState(_,s),this.shiftContext(o,s),o<=$.maxNode&&this.buffer.push(o,s,v,4)}else this.pos=v,this.shiftContext(o,s),o<=this.p.parser.maxNode&&this.buffer.push(o,s,v,4)}apply(i,o,s,v){65536&i?this.reduce(i):this.shift(i,o,s,v)}useNode(i,o){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=i)&&(this.p.reused.push(i),s++);let v=this.pos;this.reducePos=this.pos=v+i.length,this.pushState(o,v),this.buffer.push(s,v,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,i,this,this.p.stream.reset(this.pos-i.length)))}split(){let i=this,o=i.buffer.length;for(;o>0&&i.buffer[o-2]>i.reducePos;)o-=4;let s=i.buffer.slice(o),v=i.bufferBase+o;for(;i&&v==i.bufferBase;)i=i.parent;return new _(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,v,this.curContext,this.lookAhead,i)}recoverByDelete(i,o){let s=i<=this.p.parser.maxNode;s&&this.storeNode(i,this.pos,o,4),this.storeNode(0,this.pos,o,s?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(i){for(let o=new ae(this);;){let s=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,i);if(0==s)return!1;if(0==(65536&s))return!0;o.reduce(s)}}recoverByInsert(i){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let s=[];for(let v,_=0;_1&o&&i==v))||s.push(o[i],v)}o=s}let s=[];for(let i=0;i>19,v=65535&o,_=this.stack.length-3*s;if(_<0||i.getGoto(this.stack[_],v,!1)<0){let i=this.findForcedReduction();if(null==i)return!1;o=i}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:i}=this.p,o=[],explore=(s,v)=>{if(!o.includes(s))return o.push(s),i.allActions(s,(o=>{if(393216&o);else if(65536&o){let s=(o>>19)-v;if(s>1){let v=65535&o,_=this.stack.length-3*s;if(_>=0&&i.getGoto(this.stack[_],v,!1)>=0)return s<<19|65536|v}}else{let i=explore(o,v+1);if(null!=i)return i}}))};return explore(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:i}=this.p;return 65535==i.data[i.stateSlot(this.state,1)]&&!i.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(i){if(this.state!=i.state||this.stack.length!=i.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=i)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class ${constructor(i,o){this.tracker=i,this.context=o,this.hash=i.strict?i.hash(o):0}}class ae{constructor(i){this.start=i,this.state=i.state,this.stack=i.stack,this.base=this.stack.length}reduce(i){let o=65535&i,s=i>>19;0==s?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(s-1);let v=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=v}}class pe{constructor(i,o,s){this.stack=i,this.pos=o,this.index=s,this.buffer=i.buffer,0==this.index&&this.maybeNext()}static create(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.bufferBase+i.buffer.length;return new pe(i,o,o-i.bufferBase)}maybeNext(){let i=this.stack.parent;null!=i&&(this.index=this.stack.bufferBase-i.bufferBase,this.stack=i,this.buffer=i.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new pe(this.stack,this.pos,this.index)}}function decodeArray(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof i)return i;let s=null;for(let v=0,_=0;v=92&&o--,o>=34&&o--;let _=o-32;if(_>=46&&(_-=46,s=!0),$+=_,s)break;$*=46}s?s[_++]=$:s=new o($)}return s}class we{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const _e=new we;class et{constructor(i,o){this.input=i,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=_e,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(i,o){let s=this.range,v=this.rangeIndex,_=this.pos+i;for(;_s.to:_>=s.to;){if(v==this.ranges.length-1)return null;let i=this.ranges[++v];_+=i.from-s.to,s=i}return _}clipPos(i){if(i>=this.range.from&&ii)return Math.max(i,o.from);return this.end}peek(i){let o,s,v=this.chunkOff+i;if(v>=0&&v=this.chunk2Pos&&ov.to&&(this.chunk2=this.chunk2.slice(0,v.to-o)),s=this.chunk2.charCodeAt(0)}}return o>=this.token.lookAhead&&(this.token.lookAhead=o+1),s}acceptToken(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=o?this.resolveOffset(o,-1):this.pos;if(null==s||s=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=i;this.pos+i>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();i-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=i,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(i,o){if(o?(this.token=o,o.start=i,o.lookAhead=i+1,o.value=o.extended=-1):this.token=_e,this.pos!=i){if(this.pos=i,i==this.end)return this.setDone(),this;for(;i=this.range.to;)this.range=this.ranges[++this.rangeIndex];i>=this.chunkPos&&i=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(i-this.chunkPos,o-this.chunkPos);if(i>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(i-this.chunk2Pos,o-this.chunk2Pos);if(i>=this.range.from&&o<=this.range.to)return this.input.read(i,o);let s="";for(let v of this.ranges){if(v.from>=o)break;v.to>i&&(s+=this.input.read(Math.max(v.from,i),Math.min(v.to,o)))}return s}}class tt{constructor(i,o){this.data=i,this.id=o}token(i,o){let{parser:s}=o.p;readToken(this.data,i,o,this.id,s.data,s.tokenPrecTable)}}tt.prototype.contextual=tt.prototype.fallback=tt.prototype.extend=!1;class nt{constructor(i,o,s){this.precTable=o,this.elseToken=s,this.data="string"==typeof i?decodeArray(i):i}token(i,o){let s=i.pos,v=0;for(;;){let s=i.next<0,_=i.resolveOffset(1,1);if(readToken(this.data,i,o,0,this.data,this.precTable),i.token.value>-1)break;if(null==this.elseToken)return;if(s||v++,null==_)break;i.reset(_,i.token)}v&&(i.reset(s,i.token),i.acceptToken(this.elseToken,v))}}nt.prototype.contextual=tt.prototype.fallback=tt.prototype.extend=!1;class rt{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.token=i,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function readToken(i,o,s,v,_,$){let ae=0,pe=1<0){let s=i[v];if(we.allows(s)&&(-1==o.token.value||o.token.value==s||overrides(s,o.token.value,_,$))){o.acceptToken(s);break}}let v=o.next,_e=0,et=i[ae+2];if(!(o.next<0&&et>_e&&65535==i[s+3*et-3])){for(;_e>1,$=s+_+(_<<1),pe=i[$],we=i[$+1]||65536;if(v=we)){ae=i[$+2],o.advance();continue e}_e=_+1}}break}ae=i[s+3*et-1]}}function findOffset(i,o,s){for(let v,_=o;65535!=(v=i[_]);_++)if(v==s)return _-o;return-1}function overrides(i,o,s,v){let _=findOffset(s,v,o);return _<0||findOffset(s,v,i)<_}const it=void 0!==i&&Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'})&&/\bparse\b/.test(Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).LOG);let ot=null;function cutAt(i,o,s){let _=i.cursor(v.b.IncludeAnonymous);for(_.moveTo(o);;)if(!(s<0?_.childBefore(o):_.childAfter(o)))for(;;){if((s<0?_.too)&&!_.type.isError)return s<0?Math.max(0,Math.min(_.to-1,o-25)):Math.min(i.length,Math.max(_.from+1,o+25));if(s<0?_.prevSibling():_.nextSibling())break;if(!_.parent())return s<0?0:i.length}}class st{constructor(i,o){this.fragments=i,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let i=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(i){for(this.safeFrom=i.openStart?cutAt(i.tree,i.from+i.offset,1)-i.offset:i.from,this.safeTo=i.openEnd?cutAt(i.tree,i.to+i.offset,-1)-i.offset:i.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(i.tree),this.start.push(-i.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(i){if(ii)return this.nextStart=ae,null;if($ instanceof v.h){if(ae==i){if(ae=Math.max(this.safeFrom,i)&&(this.trees.push($),this.start.push(ae),this.index.push(0))}else this.index[o]++,this.nextStart=ae+$.length}}}class dt{constructor(i,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=i.tokenizers.map((i=>new we))}getActions(i){let o=0,s=null,{parser:v}=i.p,{tokenizers:_}=v,$=v.stateSlot(i.state,3),ae=i.curContext?i.curContext.hash:0,pe=0;for(let v=0;v<_.length;v++){if(0==(1<_e.end+25&&(pe=Math.max(_e.lookAhead,pe)),0!=_e.value)){let v=o;if(_e.extended>-1&&(o=this.addActions(i,_e.extended,_e.end,o)),o=this.addActions(i,_e.value,_e.end,o),!we.extend&&(s=_e,o>v))break}}for(;this.actions.length>o;)this.actions.pop();return pe&&i.setLookAhead(pe),s||i.pos!=this.stream.end||(s=new we,s.value=i.p.parser.eofTerm,s.start=s.end=i.pos,o=this.addActions(i,s.value,s.end,o)),this.mainToken=s,this.actions}getMainToken(i){if(this.mainToken)return this.mainToken;let o=new we,{pos:s,p:v}=i;return o.start=s,o.end=Math.min(s+1,v.stream.end),o.value=s==v.stream.end?v.parser.eofTerm:0,o}updateCachedToken(i,o,s){let v=this.stream.clipPos(s.pos);if(o.token(this.stream.reset(v,i),s),i.value>-1){let{parser:o}=s.p;for(let v=0;v=0&&s.p.parser.dialect.allows(_>>1)){0==(1&_)?i.value=_>>1:i.extended=_>>1;break}}}else i.value=0,i.end=this.stream.clipPos(v+1)}putAction(i,o,s,v){for(let o=0;o4*i.bufferLength?new st(s,i.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let i,o,s=this.stacks,v=this.minStackPos,_=this.stacks=[];if(this.bigReductionCount>300&&1==s.length){let[i]=s;for(;i.forceReduce()&&i.stack.length&&i.stack[i.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let $=0;$v)_.push(ae);else{if(this.advanceStack(ae,_,s))continue;{i||(i=[],o=[]),i.push(ae);let s=this.tokens.getMainToken(ae);o.push(s.value,s.end)}}break}}if(!_.length){let o=i&&findFinished(i);if(o)return it&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw it&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+v);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=null!=this.stoppedAt&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,_);if(s)return it&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let i=1==this.recovering?1:3*this.recovering;if(_.length>i)for(_.sort(((i,o)=>o.score-i.score));_.length>i;)_.pop();_.some((i=>i.reducePos>v))&&this.recovering--}else if(_.length>1){e:for(let i=0;i<_.length-1;i++){let o=_[i];for(let s=i+1;s<_.length;s++){let v=_[s];if(o.sameState(v)||o.buffer.length>500&&v.buffer.length>500){if(!((o.score-v.score||o.buffer.length-v.buffer.length)>0)){_.splice(i--,1);continue e}_.splice(s--,1)}}}_.length>12&&_.splice(12,_.length-12)}this.minStackPos=_[0].pos;for(let i=1;i<_.length;i++)_[i].pos ":"";if(null!=this.stoppedAt&&_>this.stoppedAt)return i.forceReduce()?i:null;if(this.fragments){let o=i.curContext&&i.curContext.tracker.strict,s=o?i.curContext.hash:0;for(let pe=this.fragments.nodeAt(_);pe;){let _=this.parser.nodeSet.types[pe.type.id]==pe.type?$.getGoto(i.state,pe.type.id):-1;if(_>-1&&pe.length&&(!o||(pe.prop(v.c.contextHash)||0)==s))return i.useNode(pe,_),it&&console.log(ae+this.stackID(i)+" (via reuse of ".concat($.getName(pe.type.id),")")),!0;if(!(pe instanceof v.h)||0==pe.children.length||pe.positions[0]>0)break;let we=pe.children[0];if(!(we instanceof v.h&&0==pe.positions[0]))break;pe=we}}let pe=$.stateSlot(i.state,4);if(pe>0)return i.reduce(pe),it&&console.log(ae+this.stackID(i)+" (via always-reduce ".concat($.getName(65535&pe),")")),!0;if(i.stack.length>=8400)for(;i.stack.length>6e3&&i.forceReduce(););let we=this.tokens.getActions(i);for(let v=0;v_?o.push(nt):s.push(nt)}return!1}advanceFully(i,o){let s=i.pos;for(;;){if(!this.advanceStack(i,null,null))return!1;if(i.pos>s)return pushStackDedup(i,o),!0}}runRecovery(i,o,s){let v=null,_=!1;for(let $=0;$ ":"";if(ae.deadEnd){if(_)continue;if(_=!0,ae.restart(),it&&console.log(_e+this.stackID(ae)+" (restarted)"),this.advanceFully(ae,s))continue}let et=ae.split(),tt=_e;for(let i=0;et.forceReduce()&&i<10;i++){if(it&&console.log(tt+this.stackID(et)+" (via force-reduce)"),this.advanceFully(et,s))break;it&&(tt=this.stackID(et)+" -> ")}for(let i of ae.recoverByInsert(pe))it&&console.log(_e+this.stackID(i)+" (via recover-insert)"),this.advanceFully(i,s);this.stream.end>ae.pos?(we==ae.pos&&(we++,pe=0),ae.recoverByDelete(pe,we),it&&console.log(_e+this.stackID(ae)+" (via recover-delete ".concat(this.parser.getName(pe),")")),pushStackDedup(ae,s)):(!v||v.scorei;class ct{constructor(i){this.start=i.start,this.shift=i.shift||id,this.reduce=i.reduce||id,this.reuse=i.reuse||id,this.hash=i.hash||(()=>0),this.strict=!1!==i.strict}}class ht extends v.g{constructor(i){if(super(),this.wrappers=[],14!=i.version)throw new RangeError("Parser version (".concat(i.version,") doesn't match runtime version (",14,")"));let o=i.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let s=0;si.topRules[o][1])),_=[];for(let i=0;i=0)setProp(v,i,o[s++]);else{let _=o[s+-v];for(let $=-v;$>0;$--)setProp(o[s++],i,_);s++}}}this.nodeSet=new v.d(o.map(((o,$)=>v.e.define({name:$>=this.minRepeatTerm?void 0:o,id:$,props:_[$],top:s.indexOf($)>-1,error:0==$,skipped:i.skippedNodes&&i.skippedNodes.indexOf($)>-1})))),i.propSources&&(this.nodeSet=this.nodeSet.extend(...i.propSources)),this.strict=!1,this.bufferLength=v.a;let $=decodeArray(i.tokenData);this.context=i.context,this.specializerSpecs=i.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let i=0;i"number"==typeof i?new tt($,i):i)),this.topRules=i.topRules,this.dialects=i.dialects||{},this.dynamicPrecedences=i.dynamicPrecedences||null,this.tokenPrecTable=i.tokenPrec,this.termNames=i.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(i,o,s){let v=new ut(this,i,o,s);for(let _ of this.wrappers)v=_(v,i,o,s);return v}getGoto(i,o){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=this.goto;if(o>=v[0])return-1;for(let _=v[o+1];;){let o=v[_++],$=1&o,ae=v[_++];if($&&s)return ae;for(let s=_+(o>>1);_0}validAction(i,o){return!!this.allActions(i,(i=>i==o||null))}allActions(i,o){let s=this.stateSlot(i,4),v=s?o(s):void 0;for(let s=this.stateSlot(i,1);null==v;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=pair(this.data,s+2)}v=o(pair(this.data,s+1))}return v}nextStates(i){let o=[];for(let s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=pair(this.data,s+2)}if(0==(1&this.data[s+2])){let i=this.data[s+1];o.some(((o,s)=>1&s&&o==i))||o.push(this.data[s],i)}}return o}configure(i){let o=Object.assign(Object.create(ht.prototype),this);if(i.props&&(o.nodeSet=this.nodeSet.extend(...i.props)),i.top){let s=this.topRules[i.top];if(!s)throw new RangeError("Invalid top rule name ".concat(i.top));o.top=s}return i.tokenizers&&(o.tokenizers=this.tokenizers.map((o=>{let s=i.tokenizers.find((i=>i.from==o));return s?s.to:o}))),i.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map(((s,v)=>{let _=i.specializers.find((i=>i.from==s.external));if(!_)return s;let $=Object.assign(Object.assign({},s),{external:_.to});return o.specializers[v]=getSpecializer($),$}))),i.contextTracker&&(o.context=i.contextTracker),i.dialect&&(o.dialect=this.parseDialect(i.dialect)),null!=i.strict&&(o.strict=i.strict),i.wrap&&(o.wrappers=o.wrappers.concat(i.wrap)),null!=i.bufferLength&&(o.bufferLength=i.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(i){let o=this.dynamicPrecedences;return null==o?0:o[i]||0}parseDialect(i){let o=Object.keys(this.dialects),s=o.map((()=>!1));if(i)for(let v of i.split(" ")){let i=o.indexOf(v);i>=0&&(s[i]=!0)}let v=null;for(let i=0;ii)&&s.p.parser.stateFlag(s.state,2)&&(!o||o.scorei.external(s,v)<<1|o}return i.get}}).call(this,s(86))},function(i,o,s){"use strict";var v=s(255),_=s(90),$=s(280),ae=s(169),pe=s(91),we=s(88),_e=s(281),et=s(283),tt=Math.max,nt=Math.min,rt=Math.floor,it=/\$([$&'`]|\d\d?|<[^>]*>)/g,ot=/\$([$&'`]|\d\d?)/g;v("replace",2,(function(i,o,s,v){var st=v.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,dt=v.REPLACE_KEEPS_$0,ut=st?"$":"$0";return[function replace(s,v){var _=we(this),$=null==s?void 0:s[i];return void 0!==$?$.call(s,_,v):o.call(String(_),s,v)},function(i,v){if(!st&&dt||"string"==typeof v&&-1===v.indexOf(ut)){var $=s(o,i,this,v);if($.done)return $.value}var we=_(i),rt=String(this),it="function"==typeof v;it||(v=String(v));var ot=we.global;if(ot){var lt=we.unicode;we.lastIndex=0}for(var ct=[];;){var ht=et(we,rt);if(null===ht)break;if(ct.push(ht),!ot)break;""===String(ht[0])&&(we.lastIndex=_e(rt,ae(we.lastIndex),lt))}for(var pt,ft="",gt=0,mt=0;mt=gt&&(ft+=rt.slice(gt,vt)+wt,gt=vt+yt.length)}return ft+rt.slice(gt)}];function getSubstitution(i,s,v,_,ae,pe){var we=v+i.length,_e=_.length,et=ot;return void 0!==ae&&(ae=$(ae),et=it),o.call(pe,et,(function(o,$){var pe;switch($.charAt(0)){case"$":return"$";case"&":return i;case"`":return s.slice(0,v);case"'":return s.slice(we);case"<":pe=ae[$.slice(1,-1)];break;default:var et=+$;if(0===et)return o;if(et>_e){var tt=rt(et/10);return 0===tt?o:tt<=_e?void 0===_[tt-1]?$.charAt(1):_[tt-1]+$.charAt(1):o}pe=_[et-1]}return void 0===pe?"":pe}))}}))},function(i,o,s){var v=s(121),_=s(124);i.exports=function isArrayLike(i){return null!=i&&_(i.length)&&!v(i)}},function(i,o,s){"use strict";var v=s(839),_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pe={};function getStatics(i){return v.isMemo(i)?ae:pe[i.$$typeof]||_}pe[v.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pe[v.Memo]=ae;var we=Object.defineProperty,_e=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,nt=Object.getPrototypeOf,rt=Object.prototype;i.exports=function hoistNonReactStatics(i,o,s){if("string"!=typeof o){if(rt){var v=nt(o);v&&v!==rt&&hoistNonReactStatics(i,v,s)}var _=_e(o);et&&(_=_.concat(et(o)));for(var ae=getStatics(i),pe=getStatics(o),it=0;it<_.length;++it){var ot=_[it];if(!($[ot]||s&&s[ot]||pe&&pe[ot]||ae&&ae[ot])){var st=tt(o,ot);try{we(i,ot,st)}catch(i){}}}}return i}},function(i,o,s){"use strict";s.d(o,"b",(function(){return createMemoryHistory})),s.d(o,"a",(function(){return createLocation})),s.d(o,"d",(function(){return locationsAreEqual})),s.d(o,"c",(function(){return createPath}));var v=s(12);function isAbsolute(i){return"/"===i.charAt(0)}function spliceOne(i,o){for(var s=o,v=s+1,_=i.length;v<_;s+=1,v+=1)i[s]=i[v];i.pop()}var _=function resolvePathname(i,o){void 0===o&&(o="");var s,v=i&&i.split("/")||[],_=o&&o.split("/")||[],$=i&&isAbsolute(i),ae=o&&isAbsolute(o),pe=$||ae;if(i&&isAbsolute(i)?_=v:v.length&&(_.pop(),_=_.concat(v)),!_.length)return"/";if(_.length){var we=_[_.length-1];s="."===we||".."===we||""===we}else s=!1;for(var _e=0,et=_.length;et>=0;et--){var tt=_[et];"."===tt?spliceOne(_,et):".."===tt?(spliceOne(_,et),_e++):_e&&(spliceOne(_,et),_e--)}if(!pe)for(;_e--;_e)_.unshift("..");!pe||""===_[0]||_[0]&&isAbsolute(_[0])||_.unshift("");var nt=_.join("/");return s&&"/"!==nt.substr(-1)&&(nt+="/"),nt};function value_equal_valueOf(i){return i.valueOf?i.valueOf():Object.prototype.valueOf.call(i)}var $=function valueEqual(i,o){if(i===o)return!0;if(null==i||null==o)return!1;if(Array.isArray(i))return Array.isArray(o)&&i.length===o.length&&i.every((function(i,s){return valueEqual(i,o[s])}));if("object"==typeof i||"object"==typeof o){var s=value_equal_valueOf(i),v=value_equal_valueOf(o);return s!==i||v!==o?valueEqual(s,v):Object.keys(Object.assign({},i,o)).every((function(s){return valueEqual(i[s],o[s])}))}return!1};s(38);function parsePath(i){var o=i||"/",s="",v="",_=o.indexOf("#");-1!==_&&(v=o.substr(_),o=o.substr(0,_));var $=o.indexOf("?");return-1!==$&&(s=o.substr($),o=o.substr(0,$)),{pathname:o,search:"?"===s?"":s,hash:"#"===v?"":v}}function createPath(i){var o=i.pathname,s=i.search,v=i.hash,_=o||"/";return s&&"?"!==s&&(_+="?"===s.charAt(0)?s:"?"+s),v&&"#"!==v&&(_+="#"===v.charAt(0)?v:"#"+v),_}function createLocation(i,o,s,$){var ae;"string"==typeof i?(ae=parsePath(i)).state=o:(void 0===(ae=Object(v.a)({},i)).pathname&&(ae.pathname=""),ae.search?"?"!==ae.search.charAt(0)&&(ae.search="?"+ae.search):ae.search="",ae.hash?"#"!==ae.hash.charAt(0)&&(ae.hash="#"+ae.hash):ae.hash="",void 0!==o&&void 0===ae.state&&(ae.state=o));try{ae.pathname=decodeURI(ae.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+ae.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return s&&(ae.key=s),$?ae.pathname?"/"!==ae.pathname.charAt(0)&&(ae.pathname=_(ae.pathname,$.pathname)):ae.pathname=$.pathname:ae.pathname||(ae.pathname="/"),ae}function locationsAreEqual(i,o){return i.pathname===o.pathname&&i.search===o.search&&i.hash===o.hash&&i.key===o.key&&$(i.state,o.state)}function createTransitionManager(){var i=null;var o=[];return{setPrompt:function setPrompt(o){return i=o,function(){i===o&&(i=null)}},confirmTransitionTo:function confirmTransitionTo(o,s,v,_){if(null!=i){var $="function"==typeof i?i(o,s):i;"string"==typeof $?"function"==typeof v?v($,_):_(!0):_(!1!==$)}else _(!0)},appendListener:function appendListener(i){var s=!0;function listener(){s&&i.apply(void 0,arguments)}return o.push(listener),function(){s=!1,o=o.filter((function(i){return i!==listener}))}},notifyListeners:function notifyListeners(){for(var i=arguments.length,s=new Array(i),v=0;vo?s.splice(o,s.length-o,_):s.push(_),setState({action:v,location:_,index:o,entries:s})}}))},replace:function replace(i,o){var v="REPLACE",_=createLocation(i,o,createKey(),it.location);et.confirmTransitionTo(_,v,s,(function(i){i&&(it.entries[it.index]=_,setState({action:v,location:_}))}))},go:go,goBack:function goBack(){go(-1)},goForward:function goForward(){go(1)},canGo:function canGo(i){var o=it.index+i;return o>=0&&o=(null!=v?v:o.logLevel)&&i({level:_[s].toLowerCase(),message:pe,args:$,type:o.name})}},s=0,v=$;s8640000000000001?NaN:ToInteger(i):NaN}function ToObject(i){if(null==i)throw new TypeError("undefined/null cannot be converted to object");return Object(i)}function SameValue(i,o){return Object.is?Object.is(i,o):i===o?0!==i||1/i==1/o:i!=i&&o!=o}function ArrayCreate(i){return new Array(i)}function HasOwnProperty(i,o){return Object.prototype.hasOwnProperty.call(i,o)}function Type(i){return null===i?"Null":void 0===i?"Undefined":"function"==typeof i||"object"==typeof i?"Object":"number"==typeof i?"Number":"boolean"==typeof i?"Boolean":"string"==typeof i?"String":"symbol"==typeof i?"Symbol":"bigint"==typeof i?"BigInt":void 0}s.r(o),s.d(o,"CanonicalizeLocaleList",(function(){return CanonicalizeLocaleList})),s.d(o,"CanonicalizeTimeZoneName",(function(){return CanonicalizeTimeZoneName})),s.d(o,"CoerceOptionsToObject",(function(){return CoerceOptionsToObject})),s.d(o,"GetNumberOption",(function(){return GetNumberOption})),s.d(o,"GetOption",(function(){return GetOption})),s.d(o,"GetOptionsObject",(function(){return GetOptionsObject})),s.d(o,"SANCTIONED_UNITS",(function(){return et})),s.d(o,"removeUnitNamespace",(function(){return removeUnitNamespace})),s.d(o,"SIMPLE_UNITS",(function(){return tt})),s.d(o,"IsSanctionedSimpleUnitIdentifier",(function(){return IsSanctionedSimpleUnitIdentifier})),s.d(o,"IsValidTimeZoneName",(function(){return IsValidTimeZoneName})),s.d(o,"IsWellFormedCurrencyCode",(function(){return IsWellFormedCurrencyCode})),s.d(o,"IsWellFormedUnitIdentifier",(function(){return IsWellFormedUnitIdentifier})),s.d(o,"ComputeExponent",(function(){return ComputeExponent})),s.d(o,"ComputeExponentForMagnitude",(function(){return ComputeExponentForMagnitude})),s.d(o,"CurrencyDigits",(function(){return CurrencyDigits})),s.d(o,"FormatNumericToParts",(function(){return FormatNumericToParts})),s.d(o,"FormatNumericToString",(function(){return FormatNumericToString})),s.d(o,"InitializeNumberFormat",(function(){return InitializeNumberFormat})),s.d(o,"PartitionNumberPattern",(function(){return PartitionNumberPattern})),s.d(o,"SetNumberFormatDigitOptions",(function(){return SetNumberFormatDigitOptions})),s.d(o,"SetNumberFormatUnitOptions",(function(){return SetNumberFormatUnitOptions})),s.d(o,"ToRawFixed",(function(){return ToRawFixed})),s.d(o,"ToRawPrecision",(function(){return ToRawPrecision})),s.d(o,"_formatToParts",(function(){return formatToParts})),s.d(o,"PartitionPattern",(function(){return PartitionPattern})),s.d(o,"SupportedLocales",(function(){return SupportedLocales})),s.d(o,"getInternalSlot",(function(){return getInternalSlot})),s.d(o,"getMultiInternalSlots",(function(){return getMultiInternalSlots})),s.d(o,"isLiteralPart",(function(){return isLiteralPart})),s.d(o,"setInternalSlot",(function(){return setInternalSlot})),s.d(o,"setMultiInternalSlots",(function(){return setMultiInternalSlots})),s.d(o,"getMagnitude",(function(){return getMagnitude})),s.d(o,"defineProperty",(function(){return defineProperty})),s.d(o,"isMissingLocaleDataError",(function(){return isMissingLocaleDataError})),s.d(o,"RangePatternType",(function(){return lt})),s.d(o,"invariant",(function(){return invariant})),s.d(o,"ToString",(function(){return ToString})),s.d(o,"ToNumber",(function(){return ToNumber})),s.d(o,"TimeClip",(function(){return TimeClip})),s.d(o,"ToObject",(function(){return ToObject})),s.d(o,"SameValue",(function(){return SameValue})),s.d(o,"ArrayCreate",(function(){return ArrayCreate})),s.d(o,"HasOwnProperty",(function(){return HasOwnProperty})),s.d(o,"Type",(function(){return Type})),s.d(o,"Day",(function(){return Day})),s.d(o,"WeekDay",(function(){return WeekDay})),s.d(o,"DayFromYear",(function(){return DayFromYear})),s.d(o,"TimeFromYear",(function(){return TimeFromYear})),s.d(o,"YearFromTime",(function(){return YearFromTime})),s.d(o,"DaysInYear",(function(){return DaysInYear})),s.d(o,"DayWithinYear",(function(){return DayWithinYear})),s.d(o,"InLeapYear",(function(){return InLeapYear})),s.d(o,"MonthFromTime",(function(){return MonthFromTime})),s.d(o,"DateFromTime",(function(){return DateFromTime})),s.d(o,"HourFromTime",(function(){return HourFromTime})),s.d(o,"MinFromTime",(function(){return MinFromTime})),s.d(o,"SecFromTime",(function(){return SecFromTime})),s.d(o,"OrdinaryHasInstance",(function(){return OrdinaryHasInstance})),s.d(o,"msFromTime",(function(){return msFromTime}));var v=864e5;function mod(i,o){return i-Math.floor(i/o)*o}function Day(i){return Math.floor(i/v)}function WeekDay(i){return mod(Day(i)+4,7)}function DayFromYear(i){return Date.UTC(i,0)/v}function TimeFromYear(i){return Date.UTC(i,0)}function YearFromTime(i){return new Date(i).getUTCFullYear()}function DaysInYear(i){return i%4!=0?365:i%100!=0?366:i%400!=0?365:366}function DayWithinYear(i){return Day(i)-DayFromYear(YearFromTime(i))}function InLeapYear(i){return 365===DaysInYear(YearFromTime(i))?0:1}function MonthFromTime(i){var o=DayWithinYear(i),s=InLeapYear(i);if(o>=0&&o<31)return 0;if(o<59+s)return 1;if(o<90+s)return 2;if(o<120+s)return 3;if(o<151+s)return 4;if(o<181+s)return 5;if(o<212+s)return 6;if(o<243+s)return 7;if(o<273+s)return 8;if(o<304+s)return 9;if(o<334+s)return 10;if(o<365+s)return 11;throw new Error("Invalid time")}function DateFromTime(i){var o=DayWithinYear(i),s=MonthFromTime(i),v=InLeapYear(i);if(0===s)return o+1;if(1===s)return o-30;if(2===s)return o-58-v;if(3===s)return o-89-v;if(4===s)return o-119-v;if(5===s)return o-150-v;if(6===s)return o-180-v;if(7===s)return o-211-v;if(8===s)return o-242-v;if(9===s)return o-272-v;if(10===s)return o-303-v;if(11===s)return o-333-v;throw new Error("Invalid time")}var _=24,$=60,ae=60,pe=1e3,we=pe*ae,_e=we*$;function HourFromTime(i){return mod(Math.floor(i/_e),_)}function MinFromTime(i){return mod(Math.floor(i/we),$)}function SecFromTime(i){return mod(Math.floor(i/pe),ae)}function OrdinaryHasInstance(i,o,s){if("function"!=typeof i)return!1;if(null==s?void 0:s.boundTargetFunction)return o instanceof(null==s?void 0:s.boundTargetFunction);if("object"!=typeof o)return!1;var v=i.prototype;if("object"!=typeof v)throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(v,o)}function msFromTime(i){return mod(i,pe)}function CoerceOptionsToObject(i){return void 0===i?Object.create(null):ToObject(i)}function DefaultNumberOption(i,o,s,v){if(void 0!==i){if(i=Number(i),isNaN(i)||is)throw new RangeError("".concat(i," is outside of range [").concat(o,", ").concat(s,"]"));return Math.floor(i)}return v}function GetNumberOption(i,o,s,v,_){return DefaultNumberOption(i[o],s,v,_)}function GetOption(i,o,s,v,_){if("object"!=typeof i)throw new TypeError("Options must be an object");var $=i[o];if(void 0!==$){if("boolean"!==s&&"string"!==s)throw new TypeError("invalid type");if("boolean"===s&&($=Boolean($)),"string"===s&&($=ToString($)),void 0!==v&&!v.filter((function(i){return i==$})).length)throw new RangeError("".concat($," is not within ").concat(v.join(", ")));return $}return _}function GetOptionsObject(i){if(void 0===i)return Object.create(null);if("object"==typeof i)return i;throw new TypeError("Options must be an object")}var et=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function removeUnitNamespace(i){return i.slice(i.indexOf("-")+1)}var tt=et.map(removeUnitNamespace);function IsSanctionedSimpleUnitIdentifier(i){return tt.indexOf(i)>-1}function IsValidTimeZoneName(i,o){var s=o.tzData,v=o.uppercaseLinks,_=i.toUpperCase(),$=new Set,ae=new Set;return Object.keys(s).map((function(i){return i.toUpperCase()})).forEach((function(i){return $.add(i)})),Object.keys(v).forEach((function(i){ae.add(i.toUpperCase()),$.add(v[i].toUpperCase())})),$.has(_)||ae.has(_)}var nt=/[^A-Z]/;function IsWellFormedCurrencyCode(i){return 3===(i=i.replace(/([a-z])/g,(function(i,o){return o.toUpperCase()}))).length&&!nt.test(i)}function IsWellFormedUnitIdentifier(i){if(IsSanctionedSimpleUnitIdentifier(i=i.replace(/([A-Z])/g,(function(i,o){return o.toLowerCase()}))))return!0;var o=i.split("-per-");if(2!==o.length)return!1;var s=o[0],v=o[1];return!(!IsSanctionedSimpleUnitIdentifier(s)||!IsSanctionedSimpleUnitIdentifier(v))}function getMagnitude(i){return Math.floor(Math.log(i)*Math.LOG10E)}function repeat(i,o){if("function"==typeof i.repeat)return i.repeat(o);for(var s=new Array(o),v=0;vrt[rt.length-1])return rt[rt.length-1].length-1;var it=rt.indexOf(nt);if(-1===it)return 0;var ot=rt[it];return"0"===et[ot].other?0:ot.length-et[ot].other.match(/0+/)[0].length}}function ToRawPrecision(i,o,s){var v,_,$,ae,pe=s;if(0===i)v=repeat("0",pe),_=0,$=0;else{var we=i.toString(),_e=we.indexOf("e"),et=we.split("e"),tt=et[0],nt=et[1],rt=tt.replace(".","");if(_e>=0&&rt.length<=pe)_=+nt,v=rt+repeat("0",pe-rt.length),$=i;else{var it=(_=getMagnitude(i))-pe+1,ot=Math.round(adjustDecimalPlace(i,it));adjustDecimalPlace(ot,pe-1)>=10&&(_+=1,ot=Math.floor(ot/10)),v=ot.toString(),$=adjustDecimalPlace(ot,pe-1-_)}}if(_>=pe-1?(v+=repeat("0",_-pe+1),ae=_+1):_>=0?(v="".concat(v.slice(0,_+1),".").concat(v.slice(_+1)),ae=_+1):(v="0.".concat(repeat("0",-_-1)).concat(v),ae=1),v.indexOf(".")>=0&&s>o){for(var st=s-o;st>0&&"0"===v[v.length-1];)v=v.slice(0,-1),st--;"."===v[v.length-1]&&(v=v.slice(0,-1))}return{formattedString:v,roundedNumber:$,integerDigitsCount:ae};function adjustDecimalPlace(i,o){return o<0?i*Math.pow(10,-o):i/Math.pow(10,o)}}function ToRawFixed(i,o,s){var v,_,$=s,ae=Math.round(i*Math.pow(10,$)),pe=ae/Math.pow(10,$);if(ae<1e21)v=ae.toString();else{var we=(v=ae.toString()).split("e"),_e=we[0],et=we[1];v=_e.replace(".",""),v+=repeat("0",Math.max(+et-v.length+1,0))}if(0!==$){var tt=v.length;if(tt<=$)v=repeat("0",$+1-tt)+v,tt=$+1;var nt=v.slice(0,tt-$),rt=v.slice(tt-$);v="".concat(nt,".").concat(rt),_=nt.length}else _=v.length;for(var it=s-o;it>0&&"0"===v[v.length-1];)v=v.slice(0,-1),it--;return"."===v[v.length-1]&&(v=v.slice(0,-1)),{formattedString:v,roundedNumber:pe,integerDigitsCount:_}}function FormatNumericToString(i,o){var s,v=o<0||SameValue(o,-0);switch(v&&(o=-o),i.roundingType){case"significantDigits":s=ToRawPrecision(o,i.minimumSignificantDigits,i.maximumSignificantDigits);break;case"fractionDigits":s=ToRawFixed(o,i.minimumFractionDigits,i.maximumFractionDigits);break;default:(s=ToRawPrecision(o,1,2)).integerDigitsCount>1&&(s=ToRawFixed(o,0,0))}o=s.roundedNumber;var _=s.formattedString,$=s.integerDigitsCount,ae=i.minimumIntegerDigits;$\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,ot=new RegExp("^".concat(it.source)),st=new RegExp("".concat(it.source,"$")),dt=/[#0](?:[\.,][#0]+)*/g;function formatToParts(i,o,s,v){var _,$,ae=i.sign,pe=i.exponent,we=i.magnitude,_e=v.notation,et=v.style,tt=v.numberingSystem,nt=o.numbers.nu[0],rt=null;if("compact"===_e&&we&&(rt=getCompactDisplayPattern(i,s,o,et,v.compactDisplay,v.currencyDisplay,tt)),"currency"===et&&"name"!==v.currencyDisplay){var it=o.currencies[v.currency];if(it)switch(v.currencyDisplay){case"code":_=v.currency;break;case"symbol":_=it.symbol;break;default:_=it.narrow}else _=v.currency}if(rt)$=rt;else if("decimal"===et||"unit"===et||"currency"===et&&"name"===v.currencyDisplay)$=getPatternForSign((o.numbers.decimal[tt]||o.numbers.decimal[nt]).standard,ae);else if("currency"===et){$=getPatternForSign((lt=o.numbers.currency[tt]||o.numbers.currency[nt])[v.currencySign],ae)}else{$=getPatternForSign(o.numbers.percent[tt]||o.numbers.percent[nt],ae)}var ut=dt.exec($)[0];if($=$.replace(dt,"{0}").replace(/'(.)'/g,"$1"),"currency"===et&&"name"!==v.currencyDisplay){var lt,ct=(lt=o.numbers.currency[tt]||o.numbers.currency[nt]).currencySpacing.afterInsertBetween;ct&&!st.test(_)&&($=$.replace("¤{0}","¤".concat(ct,"{0}")));var ht=lt.currencySpacing.beforeInsertBetween;ht&&!ot.test(_)&&($=$.replace("{0}¤","{0}".concat(ht,"¤")))}for(var pt=$.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),ft=[],gt=o.numbers.symbols[tt]||o.numbers.symbols[nt],mt=0,yt=pt;mt0?(tt=we.slice(0,it),nt=we.slice(it+1)):tt=we,$&&("compact"!==s||_e>=1e4)){var ot=i.group,st=[],dt=ae.split(".")[0].split(","),ut=3,lt=3;dt.length>1&&(ut=dt[dt.length-1].length),dt.length>2&&(lt=dt[dt.length-2].length);var ct=tt.length-ut;if(ct>0){for(st.push(tt.slice(ct,ct+ut)),ct-=lt;ct>0;ct-=lt)st.push(tt.slice(ct,ct+lt));st.push(tt.slice(0,ct+lt))}else st.push(tt);for(;st.length>0;){var ht=st.pop();pe.push({type:"integer",value:ht}),st.length>0&&pe.push({type:"group",value:ot})}}else pe.push({type:"integer",value:tt});if(void 0!==nt&&pe.push({type:"decimal",value:i.decimal},{type:"fraction",value:nt}),("scientific"===s||"engineering"===s)&&isFinite(_e)){pe.push({type:"exponentSeparator",value:i.exponential}),v<0&&(pe.push({type:"exponentMinusSign",value:i.minusSign}),v=-v);var pt=ToRawFixed(v,0,0);pe.push({type:"exponentInteger",value:pt.formattedString})}return pe}function getPatternForSign(i,o){i.indexOf(";")<0&&(i="".concat(i,";-").concat(i));var s=i.split(";"),v=s[0],_=s[1];switch(o){case 0:return v;case-1:return _;default:return _.indexOf("-")>=0?_.replace(/-/g,"+"):"+".concat(v)}}function getCompactDisplayPattern(i,o,s,v,_,$,ae){var pe,we,_e=i.roundedNumber,et=i.sign,tt=i.magnitude,nt=String(Math.pow(10,tt)),rt=s.numbers.nu[0];if("currency"===v&&"name"!==$){var it=null===(pe=((ot=s.numbers.currency)[ae]||ot[rt]).short)||void 0===pe?void 0:pe[nt];if(!it)return null;we=selectPlural(o,_e,it)}else{var ot,st=((ot=s.numbers.decimal)[ae]||ot[rt])[_][nt];if(!st)return null;we=selectPlural(o,_e,st)}return"0"===we?null:we=getPatternForSign(we,et).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}function selectPlural(i,o,s){return s[i.select(o)]||s.other}function PartitionNumberPattern(i,o,s){var v,_,$,ae=s.getInternalSlots,pe=ae(i),we=pe.pl,_e=pe.dataLocaleData,et=pe.numberingSystem,tt=_e.numbers.symbols[et]||_e.numbers.symbols[_e.numbers.nu[0]],nt=0,rt=0;if(isNaN(o))_=tt.nan;else if(isFinite(o)){"percent"===pe.style&&(o*=100),rt=(v=ComputeExponent(i,o,{getInternalSlots:ae}))[0],nt=v[1];var it=FormatNumericToString(pe,o=rt<0?o*Math.pow(10,-rt):o/Math.pow(10,rt));_=it.formattedString,o=it.roundedNumber}else _=tt.infinity;switch(pe.signDisplay){case"never":$=0;break;case"auto":$=SameValue(o,0)||o>0||isNaN(o)?0:-1;break;case"always":$=SameValue(o,0)||o>0||isNaN(o)?1:-1;break;default:$=0===o||isNaN(o)?0:o>0?1:-1}return formatToParts({roundedNumber:o,formattedString:_,exponent:rt,magnitude:nt,sign:$},pe.dataLocaleData,we,pe)}function FormatNumericToParts(i,o,s){for(var v=PartitionNumberPattern(i,o,s),_=ArrayCreate(0),$=0,ae=v;$-1;)invariant((v=i.indexOf("}",s))>s,"Invalid pattern ".concat(i)),s>_&&o.push({type:"literal",value:i.substring(_,s)}),o.push({type:i.substring(s+1,v),value:void 0}),_=v+1,s=i.indexOf("{",_);return _<$&&o.push({type:"literal",value:i.substring(_,$)}),o}function SupportedLocales(i,o,s){return void 0!==s&&GetOption(s=ToObject(s),"localeMatcher","string",["lookup","best fit"],"best fit"),Object(ut.LookupSupportedLocales)(i,o)}var lt,ct=s(8);!function(i){function MissingLocaleDataError(){var o=null!==i&&i.apply(this,arguments)||this;return o.type="MISSING_LOCALE_DATA",o}Object(ct.__extends)(MissingLocaleDataError,i)}(Error);function isMissingLocaleDataError(i){return"MISSING_LOCALE_DATA"===i.type}!function(i){i.startRange="startRange",i.shared="shared",i.endRange="endRange"}(lt||(lt={}))},,,,,,,,,,,function(i,o,s){(function(i,v){var _;(function(){var $,ae="Expected a function",pe="__lodash_hash_undefined__",we="__lodash_placeholder__",_e=16,et=32,tt=64,nt=128,rt=256,it=1/0,ot=9007199254740991,st=NaN,dt=4294967295,ut=[["ary",nt],["bind",1],["bindKey",2],["curry",8],["curryRight",_e],["flip",512],["partial",et],["partialRight",tt],["rearg",rt]],lt="[object Arguments]",ct="[object Array]",ht="[object Boolean]",pt="[object Date]",ft="[object Error]",gt="[object Function]",mt="[object GeneratorFunction]",yt="[object Map]",vt="[object Number]",Rt="[object Object]",bt="[object Promise]",Ot="[object RegExp]",xt="[object Set]",wt="[object String]",Ct="[object Symbol]",St="[object WeakMap]",_t="[object ArrayBuffer]",Et="[object DataView]",kt="[object Float32Array]",At="[object Float64Array]",Dt="[object Int8Array]",Pt="[object Int16Array]",Tt="[object Int32Array]",It="[object Uint8Array]",Ft="[object Uint8ClampedArray]",Nt="[object Uint16Array]",Bt="[object Uint32Array]",Lt=/\b__p \+= '';/g,jt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Vt=/[&<>"']/g,Ut=RegExp(Qt.source),Wt=RegExp(Vt.source),$t=/<%-([\s\S]+?)%>/g,qt=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,Zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ht=/^\w*$/,Gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xt=/[\\^$.*+?()[\]{}|]/g,Yt=RegExp(Xt.source),Kt=/^\s+/,Jt=/\s/,nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_n=/\{\n\/\* \[wrapped with (.+)\] \*/,An=/,? & /,Zn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,aa=/[()=,{}\[\]\/\s]/,ra=/\\(\\)?/g,ia=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ca=/\w*$/,ha=/^[-+]0x[0-9a-f]+$/i,ga=/^0b[01]+$/i,va=/^\[object .+?Constructor\]$/,Oa=/^0o[0-7]+$/i,xa=/^(?:0|[1-9]\d*)$/,_a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ja=/($^)/,er=/['\n\r\u2028\u2029\\]/g,tr="\\ud800-\\udfff",nr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ar="\\u2700-\\u27bf",rr="a-z\\xdf-\\xf6\\xf8-\\xff",ir="A-Z\\xc0-\\xd6\\xd8-\\xde",or="\\ufe0e\\ufe0f",sr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dr="['’]",ur="["+tr+"]",lr="["+sr+"]",cr="["+nr+"]",hr="\\d+",pr="["+ar+"]",fr="["+rr+"]",gr="[^"+tr+sr+hr+ar+rr+ir+"]",mr="\\ud83c[\\udffb-\\udfff]",yr="[^"+tr+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",Rr="[\\ud800-\\udbff][\\udc00-\\udfff]",br="["+ir+"]",Or="\\u200d",xr="(?:"+fr+"|"+gr+")",wr="(?:"+br+"|"+gr+")",Cr="(?:['’](?:d|ll|m|re|s|t|ve))?",Sr="(?:['’](?:D|LL|M|RE|S|T|VE))?",_r="(?:"+cr+"|"+mr+")"+"?",Er="["+or+"]?",kr=Er+_r+("(?:"+Or+"(?:"+[yr,vr,Rr].join("|")+")"+Er+_r+")*"),Ar="(?:"+[pr,vr,Rr].join("|")+")"+kr,Dr="(?:"+[yr+cr+"?",cr,vr,Rr,ur].join("|")+")",Pr=RegExp(dr,"g"),Tr=RegExp(cr,"g"),Ir=RegExp(mr+"(?="+mr+")|"+Dr+kr,"g"),Fr=RegExp([br+"?"+fr+"+"+Cr+"(?="+[lr,br,"$"].join("|")+")",wr+"+"+Sr+"(?="+[lr,br+xr,"$"].join("|")+")",br+"?"+xr+"+"+Cr,br+"+"+Sr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hr,Ar].join("|"),"g"),Nr=RegExp("["+Or+tr+nr+or+"]"),Br=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jr=-1,Mr={};Mr[kt]=Mr[At]=Mr[Dt]=Mr[Pt]=Mr[Tt]=Mr[It]=Mr[Ft]=Mr[Nt]=Mr[Bt]=!0,Mr[lt]=Mr[ct]=Mr[_t]=Mr[ht]=Mr[Et]=Mr[pt]=Mr[ft]=Mr[gt]=Mr[yt]=Mr[vt]=Mr[Rt]=Mr[Ot]=Mr[xt]=Mr[wt]=Mr[St]=!1;var Qr={};Qr[lt]=Qr[ct]=Qr[_t]=Qr[Et]=Qr[ht]=Qr[pt]=Qr[kt]=Qr[At]=Qr[Dt]=Qr[Pt]=Qr[Tt]=Qr[yt]=Qr[vt]=Qr[Rt]=Qr[Ot]=Qr[xt]=Qr[wt]=Qr[Ct]=Qr[It]=Qr[Ft]=Qr[Nt]=Qr[Bt]=!0,Qr[ft]=Qr[gt]=Qr[St]=!1;var Vr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ur=parseFloat,Wr=parseInt,$r="object"==typeof i&&i&&i.Object===Object&&i,qr="object"==typeof self&&self&&self.Object===Object&&self,zr=$r||qr||Function("return this")(),Zr=o&&!o.nodeType&&o,Hr=Zr&&"object"==typeof v&&v&&!v.nodeType&&v,Gr=Hr&&Hr.exports===Zr,Xr=Gr&&$r.process,Yr=function(){try{var i=Hr&&Hr.require&&Hr.require("util").types;return i||Xr&&Xr.binding&&Xr.binding("util")}catch(i){}}(),Kr=Yr&&Yr.isArrayBuffer,Jr=Yr&&Yr.isDate,_i=Yr&&Yr.isMap,Ei=Yr&&Yr.isRegExp,Ui=Yr&&Yr.isSet,Ji=Yr&&Yr.isTypedArray;function apply(i,o,s){switch(s.length){case 0:return i.call(o);case 1:return i.call(o,s[0]);case 2:return i.call(o,s[0],s[1]);case 3:return i.call(o,s[0],s[1],s[2])}return i.apply(o,s)}function arrayAggregator(i,o,s,v){for(var _=-1,$=null==i?0:i.length;++_<$;){var ae=i[_];o(v,ae,s(ae),i)}return v}function arrayEach(i,o){for(var s=-1,v=null==i?0:i.length;++s-1}function arrayIncludesWith(i,o,s){for(var v=-1,_=null==i?0:i.length;++v<_;)if(s(o,i[v]))return!0;return!1}function arrayMap(i,o){for(var s=-1,v=null==i?0:i.length,_=Array(v);++s-1;);return s}function charsEndIndex(i,o){for(var s=i.length;s--&&baseIndexOf(o,i[s],0)>-1;);return s}function countHolders(i,o){for(var s=i.length,v=0;s--;)i[s]===o&&++v;return v}var io=basePropertyOf({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),oo=basePropertyOf({"&":"&","<":"<",">":">",'"':""","'":"'"});function escapeStringChar(i){return"\\"+Vr[i]}function getValue(i,o){return null==i?$:i[o]}function hasUnicode(i){return Nr.test(i)}function hasUnicodeWord(i){return Br.test(i)}function iteratorToArray(i){for(var o,s=[];!(o=i.next()).done;)s.push(o.value);return s}function mapToArray(i){var o=-1,s=Array(i.size);return i.forEach((function(i,v){s[++o]=[v,i]})),s}function overArg(i,o){return function(s){return i(o(s))}}function replaceHolders(i,o){for(var s=-1,v=i.length,_=0,$=[];++s",""":'"',"'":"'"});function unicodeSize(i){for(var o=Ir.lastIndex=0;Ir.test(i);)++o;return o}function unicodeToArray(i){return i.match(Ir)||[]}function unicodeWords(i){return i.match(Fr)||[]}var Ro=function runInContext(i){var o,s=(i=null==i?zr:Ro.defaults(zr.Object(),i,Ro.pick(zr,Lr))).Array,v=i.Date,_=i.Error,Jt=i.Function,Zn=i.Math,tr=i.Object,nr=i.RegExp,ar=i.String,rr=i.TypeError,ir=s.prototype,or=Jt.prototype,sr=tr.prototype,dr=i["__core-js_shared__"],ur=or.toString,lr=sr.hasOwnProperty,cr=0,hr=(o=/[^.]+$/.exec(dr&&dr.keys&&dr.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",pr=sr.toString,fr=ur.call(tr),gr=zr._,mr=nr("^"+ur.call(lr).replace(Xt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yr=Gr?i.Buffer:$,vr=i.Symbol,Rr=i.Uint8Array,br=yr?yr.allocUnsafe:$,Or=overArg(tr.getPrototypeOf,tr),xr=tr.create,wr=sr.propertyIsEnumerable,Cr=ir.splice,Sr=vr?vr.isConcatSpreadable:$,_r=vr?vr.iterator:$,Er=vr?vr.toStringTag:$,kr=function(){try{var i=getNative(tr,"defineProperty");return i({},"",{}),i}catch(i){}}(),Ar=i.clearTimeout!==zr.clearTimeout&&i.clearTimeout,Dr=v&&v.now!==zr.Date.now&&v.now,Ir=i.setTimeout!==zr.setTimeout&&i.setTimeout,Fr=Zn.ceil,Nr=Zn.floor,Br=tr.getOwnPropertySymbols,Vr=yr?yr.isBuffer:$,$r=i.isFinite,qr=ir.join,Zr=overArg(tr.keys,tr),Hr=Zn.max,Xr=Zn.min,Yr=v.now,no=i.parseInt,Oo=Zn.random,wo=ir.reverse,Co=getNative(i,"DataView"),So=getNative(i,"Map"),_o=getNative(i,"Promise"),Eo=getNative(i,"Set"),ko=getNative(i,"WeakMap"),Ao=getNative(tr,"create"),Po=ko&&new ko,To={},Io=toSource(Co),Fo=toSource(So),No=toSource(_o),Bo=toSource(Eo),jo=toSource(ko),Mo=vr?vr.prototype:$,Qo=Mo?Mo.valueOf:$,Vo=Mo?Mo.toString:$;function lodash(i){if(isObjectLike(i)&&!Ys(i)&&!(i instanceof LazyWrapper)){if(i instanceof LodashWrapper)return i;if(lr.call(i,"__wrapped__"))return wrapperClone(i)}return new LodashWrapper(i)}var Uo=function(){function object(){}return function(i){if(!isObject(i))return{};if(xr)return xr(i);object.prototype=i;var o=new object;return object.prototype=$,o}}();function baseLodash(){}function LodashWrapper(i,o){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=$}function LazyWrapper(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=dt,this.__views__=[]}function Hash(i){var o=-1,s=null==i?0:i.length;for(this.clear();++o=o?i:o)),i}function baseClone(i,o,s,v,_,ae){var pe,we=1&o,_e=2&o,et=4&o;if(s&&(pe=_?s(i,v,_,ae):s(i)),pe!==$)return pe;if(!isObject(i))return i;var tt=Ys(i);if(tt){if(pe=initCloneArray(i),!we)return copyArray(i,pe)}else{var nt=ss(i),rt=nt==gt||nt==mt;if(Js(i))return cloneBuffer(i,we);if(nt==Rt||nt==lt||rt&&!_){if(pe=_e||rt?{}:initCloneObject(i),!we)return _e?copySymbolsIn(i,baseAssignIn(pe,i)):copySymbols(i,baseAssign(pe,i))}else{if(!Qr[nt])return _?i:{};pe=initCloneByTag(i,nt,we)}}ae||(ae=new Stack);var it=ae.get(i);if(it)return it;ae.set(i,pe),cd(i)?i.forEach((function(v){pe.add(baseClone(v,o,s,v,i,ae))})):dd(i)&&i.forEach((function(v,_){pe.set(_,baseClone(v,o,s,_,i,ae))}));var ot=tt?$:(et?_e?getAllKeysIn:getAllKeys:_e?keysIn:keys)(i);return arrayEach(ot||i,(function(v,_){ot&&(v=i[_=v]),assignValue(pe,_,baseClone(v,o,s,_,i,ae))})),pe}function baseConforms(i){var o=keys(i);return function(s){return baseConformsTo(s,i,o)}}function baseConformsTo(i,o,s){var v=s.length;if(null==i)return!v;for(i=tr(i);v--;){var _=s[v],ae=o[_],pe=i[_];if(pe===$&&!(_ in i)||!ae(pe))return!1}return!0}function baseDelay(i,o,s){if("function"!=typeof i)throw new rr(ae);return ls((function(){i.apply($,s)}),o)}function baseDifference(i,o,s,v){var _=-1,$=arrayIncludes,ae=!0,pe=i.length,we=[],_e=o.length;if(!pe)return we;s&&(o=arrayMap(o,baseUnary(s))),v?($=arrayIncludesWith,ae=!1):o.length>=200&&($=cacheHas,ae=!1,o=new SetCache(o));e:for(;++_-1},ListCache.prototype.set=function listCacheSet(i,o){var s=this.__data__,v=assocIndexOf(s,i);return v<0?(++this.size,s.push([i,o])):s[v][1]=o,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(So||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(i){var o=getMapData(this,i).delete(i);return this.size-=o?1:0,o},MapCache.prototype.get=function mapCacheGet(i){return getMapData(this,i).get(i)},MapCache.prototype.has=function mapCacheHas(i){return getMapData(this,i).has(i)},MapCache.prototype.set=function mapCacheSet(i,o){var s=getMapData(this,i),v=s.size;return s.set(i,o),this.size+=s.size==v?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(i){return this.__data__.set(i,pe),this},SetCache.prototype.has=function setCacheHas(i){return this.__data__.has(i)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(i){var o=this.__data__,s=o.delete(i);return this.size=o.size,s},Stack.prototype.get=function stackGet(i){return this.__data__.get(i)},Stack.prototype.has=function stackHas(i){return this.__data__.has(i)},Stack.prototype.set=function stackSet(i,o){var s=this.__data__;if(s instanceof ListCache){var v=s.__data__;if(!So||v.length<199)return v.push([i,o]),this.size=++s.size,this;s=this.__data__=new MapCache(v)}return s.set(i,o),this.size=s.size,this};var Wo=createBaseEach(baseForOwn),$o=createBaseEach(baseForOwnRight,!0);function baseEvery(i,o){var s=!0;return Wo(i,(function(i,v,_){return s=!!o(i,v,_)})),s}function baseExtremum(i,o,s){for(var v=-1,_=i.length;++v<_;){var ae=i[v],pe=o(ae);if(null!=pe&&(we===$?pe==pe&&!isSymbol(pe):s(pe,we)))var we=pe,_e=ae}return _e}function baseFill(i,o,s,v){var _=i.length;for((s=toInteger(s))<0&&(s=-s>_?0:_+s),(v=v===$||v>_?_:toInteger(v))<0&&(v+=_),v=s>v?0:toLength(v);s0&&s(pe)?o>1?baseFlatten(pe,o-1,s,v,_):arrayPush(_,pe):v||(_[_.length]=pe)}return _}var qo=createBaseFor(),Zo=createBaseFor(!0);function baseForOwn(i,o){return i&&qo(i,o,keys)}function baseForOwnRight(i,o){return i&&Zo(i,o,keys)}function baseFunctions(i,o){return arrayFilter(o,(function(o){return isFunction(i[o])}))}function baseGet(i,o){for(var s=0,v=(o=castPath(o,i)).length;null!=i&&so}function baseHas(i,o){return null!=i&&lr.call(i,o)}function baseHasIn(i,o){return null!=i&&o in tr(i)}function baseInRange(i,o,s){return i>=Xr(o,s)&&i=120&&nt.length>=120)?new SetCache(we&&nt):$}nt=i[0];var rt=-1,it=_e[0];e:for(;++rt-1;)pe!==i&&Cr.call(pe,we,1),Cr.call(i,we,1);return i}function basePullAt(i,o){for(var s=i?o.length:0,v=s-1;s--;){var _=o[s];if(s==v||_!==$){var $=_;isIndex(_)?Cr.call(i,_,1):baseUnset(i,_)}}return i}function baseRandom(i,o){return i+Nr(Oo()*(o-i+1))}function baseRange(i,o,v,_){for(var $=-1,ae=Hr(Fr((o-i)/(v||1)),0),pe=s(ae);ae--;)pe[_?ae:++$]=i,i+=v;return pe}function baseRepeat(i,o){var s="";if(!i||o<1||o>ot)return s;do{o%2&&(s+=i),(o=Nr(o/2))&&(i+=i)}while(o);return s}function baseRest(i,o){return cs(overRest(i,o,identity),i+"")}function baseSample(i){return arraySample(values(i))}function baseSampleSize(i,o){var s=values(i);return shuffleSelf(s,baseClamp(o,0,s.length))}function baseSet(i,o,s,v){if(!isObject(i))return i;for(var _=-1,ae=(o=castPath(o,i)).length,pe=ae-1,we=i;null!=we&&++_$?0:$+o),(v=v>$?$:v)<0&&(v+=$),$=o>v?0:v-o>>>0,o>>>=0;for(var ae=s($);++_<$;)ae[_]=i[_+o];return ae}function baseSome(i,o){var s;return Wo(i,(function(i,v,_){return!(s=o(i,v,_))})),!!s}function baseSortedIndex(i,o,s){var v=0,_=null==i?v:i.length;if("number"==typeof o&&o==o&&_<=2147483647){for(;v<_;){var $=v+_>>>1,ae=i[$];null!==ae&&!isSymbol(ae)&&(s?ae<=o:ae=200){var _e=o?null:ns(i);if(_e)return setToArray(_e);ae=!1,_=cacheHas,we=new SetCache}else we=o?[]:pe;e:for(;++v<$;){var et=i[v],tt=o?o(et):et;if(et=s||0!==et?et:0,ae&&tt==tt){for(var nt=we.length;nt--;)if(we[nt]===tt)continue e;o&&we.push(tt),pe.push(et)}else _(we,tt,s)||(we!==pe&&we.push(tt),pe.push(et))}return pe}function baseUnset(i,o){return null==(i=parent(i,o=castPath(o,i)))||delete i[toKey(last(o))]}function baseUpdate(i,o,s,v){return baseSet(i,o,s(baseGet(i,o)),v)}function baseWhile(i,o,s,v){for(var _=i.length,$=v?_:-1;(v?$--:++$<_)&&o(i[$],$,i););return s?baseSlice(i,v?0:$,v?$+1:_):baseSlice(i,v?$+1:0,v?_:$)}function baseWrapperValue(i,o){var s=i;return s instanceof LazyWrapper&&(s=s.value()),arrayReduce(o,(function(i,o){return o.func.apply(o.thisArg,arrayPush([i],o.args))}),s)}function baseXor(i,o,v){var _=i.length;if(_<2)return _?baseUniq(i[0]):[];for(var $=-1,ae=s(_);++$<_;)for(var pe=i[$],we=-1;++we<_;)we!=$&&(ae[$]=baseDifference(ae[$]||pe,i[we],o,v));return baseUniq(baseFlatten(ae,1),o,v)}function baseZipObject(i,o,s){for(var v=-1,_=i.length,ae=o.length,pe={};++v<_;){var we=v=v?i:baseSlice(i,o,s)}var ts=Ar||function(i){return zr.clearTimeout(i)};function cloneBuffer(i,o){if(o)return i.slice();var s=i.length,v=br?br(s):new i.constructor(s);return i.copy(v),v}function cloneArrayBuffer(i){var o=new i.constructor(i.byteLength);return new Rr(o).set(new Rr(i)),o}function cloneDataView(i,o){var s=o?cloneArrayBuffer(i.buffer):i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}function cloneRegExp(i){var o=new i.constructor(i.source,ca.exec(i));return o.lastIndex=i.lastIndex,o}function cloneTypedArray(i,o){var s=o?cloneArrayBuffer(i.buffer):i.buffer;return new i.constructor(s,i.byteOffset,i.length)}function compareAscending(i,o){if(i!==o){var s=i!==$,v=null===i,_=i==i,ae=isSymbol(i),pe=o!==$,we=null===o,_e=o==o,et=isSymbol(o);if(!we&&!et&&!ae&&i>o||ae&&pe&&_e&&!we&&!et||v&&pe&&_e||!s&&_e||!_)return 1;if(!v&&!ae&&!et&&i=pe?we:we*("desc"==s[v]?-1:1)}return i.index-o.index}function composeArgs(i,o,v,_){for(var $=-1,ae=i.length,pe=v.length,we=-1,_e=o.length,et=Hr(ae-pe,0),tt=s(_e+et),nt=!_;++we<_e;)tt[we]=o[we];for(;++$1?s[_-1]:$,pe=_>2?s[2]:$;for(ae=i.length>3&&"function"==typeof ae?(_--,ae):$,pe&&isIterateeCall(s[0],s[1],pe)&&(ae=_<3?$:ae,_=1),o=tr(o);++v<_;){var we=s[v];we&&i(o,we,v,ae)}return o}))}function createBaseEach(i,o){return function(s,v){if(null==s)return s;if(!isArrayLike(s))return i(s,v);for(var _=s.length,$=o?_:-1,ae=tr(s);(o?$--:++$<_)&&!1!==v(ae[$],$,ae););return s}}function createBaseFor(i){return function(o,s,v){for(var _=-1,$=tr(o),ae=v(o),pe=ae.length;pe--;){var we=ae[i?pe:++_];if(!1===s($[we],we,$))break}return o}}function createBind(i,o,s){var v=1&o,_=createCtor(i);return function wrapper(){return(this&&this!==zr&&this instanceof wrapper?_:i).apply(v?s:this,arguments)}}function createCaseFirst(i){return function(o){var s=hasUnicode(o=toString(o))?stringToArray(o):$,v=s?s[0]:o.charAt(0),_=s?castSlice(s,1).join(""):o.slice(1);return v[i]()+_}}function createCompounder(i){return function(o){return arrayReduce(words(deburr(o).replace(Pr,"")),i,"")}}function createCtor(i){return function(){var o=arguments;switch(o.length){case 0:return new i;case 1:return new i(o[0]);case 2:return new i(o[0],o[1]);case 3:return new i(o[0],o[1],o[2]);case 4:return new i(o[0],o[1],o[2],o[3]);case 5:return new i(o[0],o[1],o[2],o[3],o[4]);case 6:return new i(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new i(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var s=Uo(i.prototype),v=i.apply(s,o);return isObject(v)?v:s}}function createCurry(i,o,v){var _=createCtor(i);return function wrapper(){for(var ae=arguments.length,pe=s(ae),we=ae,_e=getHolder(wrapper);we--;)pe[we]=arguments[we];var et=ae<3&&pe[0]!==_e&&pe[ae-1]!==_e?[]:replaceHolders(pe,_e);return(ae-=et.length)-1?_[ae?o[pe]:pe]:$}}function createFlow(i){return flatRest((function(o){var s=o.length,v=s,_=LodashWrapper.prototype.thru;for(i&&o.reverse();v--;){var pe=o[v];if("function"!=typeof pe)throw new rr(ae);if(_&&!we&&"wrapper"==getFuncName(pe))var we=new LodashWrapper([],!0)}for(v=we?v:s;++v1&&nt.reverse(),rt&&et<$&&(nt.length=et),this&&this!==zr&&this instanceof wrapper&&(gt=ut||createCtor(gt)),gt.apply(ft,nt)}}function createInverter(i,o){return function(s,v){return baseInverter(s,i,o(v),{})}}function createMathOperation(i,o){return function(s,v){var _;if(s===$&&v===$)return o;if(s!==$&&(_=s),v!==$){if(_===$)return v;"string"==typeof s||"string"==typeof v?(s=baseToString(s),v=baseToString(v)):(s=baseToNumber(s),v=baseToNumber(v)),_=i(s,v)}return _}}function createOver(i){return flatRest((function(o){return o=arrayMap(o,baseUnary(getIteratee())),baseRest((function(s){var v=this;return i(o,(function(i){return apply(i,v,s)}))}))}))}function createPadding(i,o){var s=(o=o===$?" ":baseToString(o)).length;if(s<2)return s?baseRepeat(o,i):o;var v=baseRepeat(o,Fr(i/stringSize(o)));return hasUnicode(o)?castSlice(stringToArray(v),0,i).join(""):v.slice(0,i)}function createPartial(i,o,v,_){var $=1&o,ae=createCtor(i);return function wrapper(){for(var o=-1,pe=arguments.length,we=-1,_e=_.length,et=s(_e+pe),tt=this&&this!==zr&&this instanceof wrapper?ae:i;++we<_e;)et[we]=_[we];for(;pe--;)et[we++]=arguments[++o];return apply(tt,$?v:this,et)}}function createRange(i){return function(o,s,v){return v&&"number"!=typeof v&&isIterateeCall(o,s,v)&&(s=v=$),o=toFinite(o),s===$?(s=o,o=0):s=toFinite(s),baseRange(o,s,v=v===$?owe))return!1;var et=ae.get(i),tt=ae.get(o);if(et&&tt)return et==o&&tt==i;var nt=-1,rt=!0,it=2&s?new SetCache:$;for(ae.set(i,o),ae.set(o,i);++nt1?"& ":"")+o[v],o=o.join(s>2?", ":" "),i.replace(nn,"{\n/* [wrapped with "+o+"] */\n")}function isFlattenable(i){return Ys(i)||Xs(i)||!!(Sr&&i&&i[Sr])}function isIndex(i,o){var s=typeof i;return!!(o=null==o?ot:o)&&("number"==s||"symbol"!=s&&xa.test(i))&&i>-1&&i%1==0&&i0){if(++o>=800)return arguments[0]}else o=0;return i.apply($,arguments)}}function shuffleSelf(i,o){var s=-1,v=i.length,_=v-1;for(o=o===$?v:o;++s1?i[o-1]:$;return s="function"==typeof s?(i.pop(),s):$,unzipWith(i,s)}));function chain(i){var o=lodash(i);return o.__chain__=!0,o}function thru(i,o){return o(i)}var Ds=flatRest((function(i){var o=i.length,s=o?i[0]:0,v=this.__wrapped__,interceptor=function(o){return baseAt(o,i)};return!(o>1||this.__actions__.length)&&v instanceof LazyWrapper&&isIndex(s)?((v=v.slice(s,+s+(o?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:$}),new LodashWrapper(v,this.__chain__).thru((function(i){return o&&!i.length&&i.push($),i}))):this.thru(interceptor)}));var Ps=createAggregator((function(i,o,s){lr.call(i,s)?++i[s]:baseAssignValue(i,s,1)}));var Ts=createFind(findIndex),Is=createFind(findLastIndex);function forEach(i,o){return(Ys(i)?arrayEach:Wo)(i,getIteratee(o,3))}function forEachRight(i,o){return(Ys(i)?arrayEachRight:$o)(i,getIteratee(o,3))}var Fs=createAggregator((function(i,o,s){lr.call(i,s)?i[s].push(o):baseAssignValue(i,s,[o])}));var Ns=baseRest((function(i,o,v){var _=-1,$="function"==typeof o,ae=isArrayLike(i)?s(i.length):[];return Wo(i,(function(i){ae[++_]=$?apply(o,i,v):baseInvoke(i,o,v)})),ae})),Bs=createAggregator((function(i,o,s){baseAssignValue(i,s,o)}));function map(i,o){return(Ys(i)?arrayMap:baseMap)(i,getIteratee(o,3))}var Ls=createAggregator((function(i,o,s){i[s?0:1].push(o)}),(function(){return[[],[]]}));var js=baseRest((function(i,o){if(null==i)return[];var s=o.length;return s>1&&isIterateeCall(i,o[0],o[1])?o=[]:s>2&&isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),baseOrderBy(i,baseFlatten(o,1),[])})),Ms=Dr||function(){return zr.Date.now()};function ary(i,o,s){return o=s?$:o,o=i&&null==o?i.length:o,createWrap(i,nt,$,$,$,$,o)}function before(i,o){var s;if("function"!=typeof o)throw new rr(ae);return i=toInteger(i),function(){return--i>0&&(s=o.apply(this,arguments)),i<=1&&(o=$),s}}var Qs=baseRest((function(i,o,s){var v=1;if(s.length){var _=replaceHolders(s,getHolder(Qs));v|=et}return createWrap(i,v,o,s,_)})),Vs=baseRest((function(i,o,s){var v=3;if(s.length){var _=replaceHolders(s,getHolder(Vs));v|=et}return createWrap(o,v,i,s,_)}));function debounce(i,o,s){var v,_,pe,we,_e,et,tt=0,nt=!1,rt=!1,it=!0;if("function"!=typeof i)throw new rr(ae);function invokeFunc(o){var s=v,ae=_;return v=_=$,tt=o,we=i.apply(ae,s)}function leadingEdge(i){return tt=i,_e=ls(timerExpired,o),nt?invokeFunc(i):we}function remainingWait(i){var s=o-(i-et);return rt?Xr(s,pe-(i-tt)):s}function shouldInvoke(i){var s=i-et;return et===$||s>=o||s<0||rt&&i-tt>=pe}function timerExpired(){var i=Ms();if(shouldInvoke(i))return trailingEdge(i);_e=ls(timerExpired,remainingWait(i))}function trailingEdge(i){return _e=$,it&&v?invokeFunc(i):(v=_=$,we)}function debounced(){var i=Ms(),s=shouldInvoke(i);if(v=arguments,_=this,et=i,s){if(_e===$)return leadingEdge(et);if(rt)return ts(_e),_e=ls(timerExpired,o),invokeFunc(et)}return _e===$&&(_e=ls(timerExpired,o)),we}return o=toNumber(o)||0,isObject(s)&&(nt=!!s.leading,pe=(rt="maxWait"in s)?Hr(toNumber(s.maxWait)||0,o):pe,it="trailing"in s?!!s.trailing:it),debounced.cancel=function cancel(){_e!==$&&ts(_e),tt=0,v=et=_=_e=$},debounced.flush=function flush(){return _e===$?we:trailingEdge(Ms())},debounced}var Us=baseRest((function(i,o){return baseDelay(i,1,o)})),Ws=baseRest((function(i,o,s){return baseDelay(i,toNumber(o)||0,s)}));function memoize(i,o){if("function"!=typeof i||null!=o&&"function"!=typeof o)throw new rr(ae);var memoized=function(){var s=arguments,v=o?o.apply(this,s):s[0],_=memoized.cache;if(_.has(v))return _.get(v);var $=i.apply(this,s);return memoized.cache=_.set(v,$)||_,$};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(i){if("function"!=typeof i)throw new rr(ae);return function(){var o=arguments;switch(o.length){case 0:return!i.call(this);case 1:return!i.call(this,o[0]);case 2:return!i.call(this,o[0],o[1]);case 3:return!i.call(this,o[0],o[1],o[2])}return!i.apply(this,o)}}memoize.Cache=MapCache;var $s=es((function(i,o){var s=(o=1==o.length&&Ys(o[0])?arrayMap(o[0],baseUnary(getIteratee())):arrayMap(baseFlatten(o,1),baseUnary(getIteratee()))).length;return baseRest((function(v){for(var _=-1,$=Xr(v.length,s);++_<$;)v[_]=o[_].call(this,v[_]);return apply(i,this,v)}))})),qs=baseRest((function(i,o){var s=replaceHolders(o,getHolder(qs));return createWrap(i,et,$,o,s)})),zs=baseRest((function(i,o){var s=replaceHolders(o,getHolder(zs));return createWrap(i,tt,$,o,s)})),Zs=flatRest((function(i,o){return createWrap(i,rt,$,$,$,o)}));function eq(i,o){return i===o||i!=i&&o!=o}var Hs=createRelationalOperation(baseGt),Gs=createRelationalOperation((function(i,o){return i>=o})),Xs=baseIsArguments(function(){return arguments}())?baseIsArguments:function(i){return isObjectLike(i)&&lr.call(i,"callee")&&!wr.call(i,"callee")},Ys=s.isArray,Ks=Kr?baseUnary(Kr):function baseIsArrayBuffer(i){return isObjectLike(i)&&baseGetTag(i)==_t};function isArrayLike(i){return null!=i&&isLength(i.length)&&!isFunction(i)}function isArrayLikeObject(i){return isObjectLike(i)&&isArrayLike(i)}var Js=Vr||stubFalse,ed=Jr?baseUnary(Jr):function baseIsDate(i){return isObjectLike(i)&&baseGetTag(i)==pt};function isError(i){if(!isObjectLike(i))return!1;var o=baseGetTag(i);return o==ft||"[object DOMException]"==o||"string"==typeof i.message&&"string"==typeof i.name&&!isPlainObject(i)}function isFunction(i){if(!isObject(i))return!1;var o=baseGetTag(i);return o==gt||o==mt||"[object AsyncFunction]"==o||"[object Proxy]"==o}function isInteger(i){return"number"==typeof i&&i==toInteger(i)}function isLength(i){return"number"==typeof i&&i>-1&&i%1==0&&i<=ot}function isObject(i){var o=typeof i;return null!=i&&("object"==o||"function"==o)}function isObjectLike(i){return null!=i&&"object"==typeof i}var dd=_i?baseUnary(_i):function baseIsMap(i){return isObjectLike(i)&&ss(i)==yt};function isNumber(i){return"number"==typeof i||isObjectLike(i)&&baseGetTag(i)==vt}function isPlainObject(i){if(!isObjectLike(i)||baseGetTag(i)!=Rt)return!1;var o=Or(i);if(null===o)return!0;var s=lr.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&ur.call(s)==fr}var ld=Ei?baseUnary(Ei):function baseIsRegExp(i){return isObjectLike(i)&&baseGetTag(i)==Ot};var cd=Ui?baseUnary(Ui):function baseIsSet(i){return isObjectLike(i)&&ss(i)==xt};function isString(i){return"string"==typeof i||!Ys(i)&&isObjectLike(i)&&baseGetTag(i)==wt}function isSymbol(i){return"symbol"==typeof i||isObjectLike(i)&&baseGetTag(i)==Ct}var md=Ji?baseUnary(Ji):function baseIsTypedArray(i){return isObjectLike(i)&&isLength(i.length)&&!!Mr[baseGetTag(i)]};var Cd=createRelationalOperation(baseLt),_d=createRelationalOperation((function(i,o){return i<=o}));function toArray(i){if(!i)return[];if(isArrayLike(i))return isString(i)?stringToArray(i):copyArray(i);if(_r&&i[_r])return iteratorToArray(i[_r]());var o=ss(i);return(o==yt?mapToArray:o==xt?setToArray:values)(i)}function toFinite(i){return i?(i=toNumber(i))===it||i===-1/0?17976931348623157e292*(i<0?-1:1):i==i?i:0:0===i?i:0}function toInteger(i){var o=toFinite(i),s=o%1;return o==o?s?o-s:o:0}function toLength(i){return i?baseClamp(toInteger(i),0,dt):0}function toNumber(i){if("number"==typeof i)return i;if(isSymbol(i))return st;if(isObject(i)){var o="function"==typeof i.valueOf?i.valueOf():i;i=isObject(o)?o+"":o}if("string"!=typeof i)return 0===i?i:+i;i=baseTrim(i);var s=ga.test(i);return s||Oa.test(i)?Wr(i.slice(2),s?2:8):ha.test(i)?st:+i}function toPlainObject(i){return copyObject(i,keysIn(i))}function toString(i){return null==i?"":baseToString(i)}var kd=createAssigner((function(i,o){if(isPrototype(o)||isArrayLike(o))copyObject(o,keys(o),i);else for(var s in o)lr.call(o,s)&&assignValue(i,s,o[s])})),Ad=createAssigner((function(i,o){copyObject(o,keysIn(o),i)})),Md=createAssigner((function(i,o,s,v){copyObject(o,keysIn(o),i,v)})),Wd=createAssigner((function(i,o,s,v){copyObject(o,keys(o),i,v)})),Zd=flatRest(baseAt);var Xd=baseRest((function(i,o){i=tr(i);var s=-1,v=o.length,_=v>2?o[2]:$;for(_&&isIterateeCall(o[0],o[1],_)&&(v=1);++s1),o})),copyObject(i,getAllKeysIn(i),s),v&&(s=baseClone(s,7,customOmitClone));for(var _=o.length;_--;)baseUnset(s,o[_]);return s}));var ou=flatRest((function(i,o){return null==i?{}:basePick(i,o)}));function pickBy(i,o){if(null==i)return{};var s=arrayMap(getAllKeysIn(i),(function(i){return[i]}));return o=getIteratee(o),basePickBy(i,s,(function(i,s){return o(i,s[0])}))}var su=createToPairs(keys),du=createToPairs(keysIn);function values(i){return null==i?[]:baseValues(i,keys(i))}var uu=createCompounder((function(i,o,s){return o=o.toLowerCase(),i+(s?capitalize(o):o)}));function capitalize(i){return mu(toString(i).toLowerCase())}function deburr(i){return(i=toString(i))&&i.replace(_a,io).replace(Tr,"")}var lu=createCompounder((function(i,o,s){return i+(s?"-":"")+o.toLowerCase()})),cu=createCompounder((function(i,o,s){return i+(s?" ":"")+o.toLowerCase()})),hu=createCaseFirst("toLowerCase");var pu=createCompounder((function(i,o,s){return i+(s?"_":"")+o.toLowerCase()}));var fu=createCompounder((function(i,o,s){return i+(s?" ":"")+mu(o)}));var gu=createCompounder((function(i,o,s){return i+(s?" ":"")+o.toUpperCase()})),mu=createCaseFirst("toUpperCase");function words(i,o,s){return i=toString(i),(o=s?$:o)===$?hasUnicodeWord(i)?unicodeWords(i):asciiWords(i):i.match(o)||[]}var yu=baseRest((function(i,o){try{return apply(i,$,o)}catch(i){return isError(i)?i:new _(i)}})),vu=flatRest((function(i,o){return arrayEach(o,(function(o){o=toKey(o),baseAssignValue(i,o,Qs(i[o],i))})),i}));function constant(i){return function(){return i}}var Ru=createFlow(),bu=createFlow(!0);function identity(i){return i}function iteratee(i){return baseIteratee("function"==typeof i?i:baseClone(i,1))}var Ou=baseRest((function(i,o){return function(s){return baseInvoke(s,i,o)}})),xu=baseRest((function(i,o){return function(s){return baseInvoke(i,s,o)}}));function mixin(i,o,s){var v=keys(o),_=baseFunctions(o,v);null!=s||isObject(o)&&(_.length||!v.length)||(s=o,o=i,i=this,_=baseFunctions(o,keys(o)));var $=!(isObject(s)&&"chain"in s&&!s.chain),ae=isFunction(i);return arrayEach(_,(function(s){var v=o[s];i[s]=v,ae&&(i.prototype[s]=function(){var o=this.__chain__;if($||o){var s=i(this.__wrapped__);return(s.__actions__=copyArray(this.__actions__)).push({func:v,args:arguments,thisArg:i}),s.__chain__=o,s}return v.apply(i,arrayPush([this.value()],arguments))})})),i}function noop(){}var wu=createOver(arrayMap),Cu=createOver(arrayEvery),Su=createOver(arraySome);function property(i){return isKey(i)?baseProperty(toKey(i)):basePropertyDeep(i)}var _u=createRange(),Eu=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var ku=createMathOperation((function(i,o){return i+o}),0),Au=createRound("ceil"),Du=createMathOperation((function(i,o){return i/o}),1),Pu=createRound("floor");var Tu,Iu=createMathOperation((function(i,o){return i*o}),1),Fu=createRound("round"),Nu=createMathOperation((function(i,o){return i-o}),0);return lodash.after=function after(i,o){if("function"!=typeof o)throw new rr(ae);return i=toInteger(i),function(){if(--i<1)return o.apply(this,arguments)}},lodash.ary=ary,lodash.assign=kd,lodash.assignIn=Ad,lodash.assignInWith=Md,lodash.assignWith=Wd,lodash.at=Zd,lodash.before=before,lodash.bind=Qs,lodash.bindAll=vu,lodash.bindKey=Vs,lodash.castArray=function castArray(){if(!arguments.length)return[];var i=arguments[0];return Ys(i)?i:[i]},lodash.chain=chain,lodash.chunk=function chunk(i,o,v){o=(v?isIterateeCall(i,o,v):o===$)?1:Hr(toInteger(o),0);var _=null==i?0:i.length;if(!_||o<1)return[];for(var ae=0,pe=0,we=s(Fr(_/o));ae<_;)we[pe++]=baseSlice(i,ae,ae+=o);return we},lodash.compact=function compact(i){for(var o=-1,s=null==i?0:i.length,v=0,_=[];++o>>0)?(i=toString(i))&&("string"==typeof o||null!=o&&!ld(o))&&!(o=baseToString(o))&&hasUnicode(i)?castSlice(stringToArray(i),0,s):i.split(o,s):[]},lodash.spread=function spread(i,o){if("function"!=typeof i)throw new rr(ae);return o=null==o?0:Hr(toInteger(o),0),baseRest((function(s){var v=s[o],_=castSlice(s,0,o);return v&&arrayPush(_,v),apply(i,this,_)}))},lodash.tail=function tail(i){var o=null==i?0:i.length;return o?baseSlice(i,1,o):[]},lodash.take=function take(i,o,s){return i&&i.length?baseSlice(i,0,(o=s||o===$?1:toInteger(o))<0?0:o):[]},lodash.takeRight=function takeRight(i,o,s){var v=null==i?0:i.length;return v?baseSlice(i,(o=v-(o=s||o===$?1:toInteger(o)))<0?0:o,v):[]},lodash.takeRightWhile=function takeRightWhile(i,o){return i&&i.length?baseWhile(i,getIteratee(o,3),!1,!0):[]},lodash.takeWhile=function takeWhile(i,o){return i&&i.length?baseWhile(i,getIteratee(o,3)):[]},lodash.tap=function tap(i,o){return o(i),i},lodash.throttle=function throttle(i,o,s){var v=!0,_=!0;if("function"!=typeof i)throw new rr(ae);return isObject(s)&&(v="leading"in s?!!s.leading:v,_="trailing"in s?!!s.trailing:_),debounce(i,o,{leading:v,maxWait:o,trailing:_})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=su,lodash.toPairsIn=du,lodash.toPath=function toPath(i){return Ys(i)?arrayMap(i,toKey):isSymbol(i)?[i]:copyArray(hs(toString(i)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(i,o,s){var v=Ys(i),_=v||Js(i)||md(i);if(o=getIteratee(o,4),null==s){var $=i&&i.constructor;s=_?v?new $:[]:isObject(i)&&isFunction($)?Uo(Or(i)):{}}return(_?arrayEach:baseForOwn)(i,(function(i,v,_){return o(s,i,v,_)})),s},lodash.unary=function unary(i){return ary(i,1)},lodash.union=Os,lodash.unionBy=xs,lodash.unionWith=ws,lodash.uniq=function uniq(i){return i&&i.length?baseUniq(i):[]},lodash.uniqBy=function uniqBy(i,o){return i&&i.length?baseUniq(i,getIteratee(o,2)):[]},lodash.uniqWith=function uniqWith(i,o){return o="function"==typeof o?o:$,i&&i.length?baseUniq(i,$,o):[]},lodash.unset=function unset(i,o){return null==i||baseUnset(i,o)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(i,o,s){return null==i?i:baseUpdate(i,o,castFunction(s))},lodash.updateWith=function updateWith(i,o,s,v){return v="function"==typeof v?v:$,null==i?i:baseUpdate(i,o,castFunction(s),v)},lodash.values=values,lodash.valuesIn=function valuesIn(i){return null==i?[]:baseValues(i,keysIn(i))},lodash.without=Cs,lodash.words=words,lodash.wrap=function wrap(i,o){return qs(castFunction(o),i)},lodash.xor=Ss,lodash.xorBy=_s,lodash.xorWith=Es,lodash.zip=ks,lodash.zipObject=function zipObject(i,o){return baseZipObject(i||[],o||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(i,o){return baseZipObject(i||[],o||[],baseSet)},lodash.zipWith=As,lodash.entries=su,lodash.entriesIn=du,lodash.extend=Ad,lodash.extendWith=Md,mixin(lodash,lodash),lodash.add=ku,lodash.attempt=yu,lodash.camelCase=uu,lodash.capitalize=capitalize,lodash.ceil=Au,lodash.clamp=function clamp(i,o,s){return s===$&&(s=o,o=$),s!==$&&(s=(s=toNumber(s))==s?s:0),o!==$&&(o=(o=toNumber(o))==o?o:0),baseClamp(toNumber(i),o,s)},lodash.clone=function clone(i){return baseClone(i,4)},lodash.cloneDeep=function cloneDeep(i){return baseClone(i,5)},lodash.cloneDeepWith=function cloneDeepWith(i,o){return baseClone(i,5,o="function"==typeof o?o:$)},lodash.cloneWith=function cloneWith(i,o){return baseClone(i,4,o="function"==typeof o?o:$)},lodash.conformsTo=function conformsTo(i,o){return null==o||baseConformsTo(i,o,keys(o))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(i,o){return null==i||i!=i?o:i},lodash.divide=Du,lodash.endsWith=function endsWith(i,o,s){i=toString(i),o=baseToString(o);var v=i.length,_=s=s===$?v:baseClamp(toInteger(s),0,v);return(s-=o.length)>=0&&i.slice(s,_)==o},lodash.eq=eq,lodash.escape=function escape(i){return(i=toString(i))&&Wt.test(i)?i.replace(Vt,oo):i},lodash.escapeRegExp=function escapeRegExp(i){return(i=toString(i))&&Yt.test(i)?i.replace(Xt,"\\$&"):i},lodash.every=function every(i,o,s){var v=Ys(i)?arrayEvery:baseEvery;return s&&isIterateeCall(i,o,s)&&(o=$),v(i,getIteratee(o,3))},lodash.find=Ts,lodash.findIndex=findIndex,lodash.findKey=function findKey(i,o){return baseFindKey(i,getIteratee(o,3),baseForOwn)},lodash.findLast=Is,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(i,o){return baseFindKey(i,getIteratee(o,3),baseForOwnRight)},lodash.floor=Pu,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(i,o){return null==i?i:qo(i,getIteratee(o,3),keysIn)},lodash.forInRight=function forInRight(i,o){return null==i?i:Zo(i,getIteratee(o,3),keysIn)},lodash.forOwn=function forOwn(i,o){return i&&baseForOwn(i,getIteratee(o,3))},lodash.forOwnRight=function forOwnRight(i,o){return i&&baseForOwnRight(i,getIteratee(o,3))},lodash.get=get,lodash.gt=Hs,lodash.gte=Gs,lodash.has=function has(i,o){return null!=i&&hasPath(i,o,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(i,o,s,v){i=isArrayLike(i)?i:values(i),s=s&&!v?toInteger(s):0;var _=i.length;return s<0&&(s=Hr(_+s,0)),isString(i)?s<=_&&i.indexOf(o,s)>-1:!!_&&baseIndexOf(i,o,s)>-1},lodash.indexOf=function indexOf(i,o,s){var v=null==i?0:i.length;if(!v)return-1;var _=null==s?0:toInteger(s);return _<0&&(_=Hr(v+_,0)),baseIndexOf(i,o,_)},lodash.inRange=function inRange(i,o,s){return o=toFinite(o),s===$?(s=o,o=0):s=toFinite(s),baseInRange(i=toNumber(i),o,s)},lodash.invoke=nu,lodash.isArguments=Xs,lodash.isArray=Ys,lodash.isArrayBuffer=Ks,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=function isBoolean(i){return!0===i||!1===i||isObjectLike(i)&&baseGetTag(i)==ht},lodash.isBuffer=Js,lodash.isDate=ed,lodash.isElement=function isElement(i){return isObjectLike(i)&&1===i.nodeType&&!isPlainObject(i)},lodash.isEmpty=function isEmpty(i){if(null==i)return!0;if(isArrayLike(i)&&(Ys(i)||"string"==typeof i||"function"==typeof i.splice||Js(i)||md(i)||Xs(i)))return!i.length;var o=ss(i);if(o==yt||o==xt)return!i.size;if(isPrototype(i))return!baseKeys(i).length;for(var s in i)if(lr.call(i,s))return!1;return!0},lodash.isEqual=function isEqual(i,o){return baseIsEqual(i,o)},lodash.isEqualWith=function isEqualWith(i,o,s){var v=(s="function"==typeof s?s:$)?s(i,o):$;return v===$?baseIsEqual(i,o,$,s):!!v},lodash.isError=isError,lodash.isFinite=function isFinite(i){return"number"==typeof i&&$r(i)},lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=dd,lodash.isMatch=function isMatch(i,o){return i===o||baseIsMatch(i,o,getMatchData(o))},lodash.isMatchWith=function isMatchWith(i,o,s){return s="function"==typeof s?s:$,baseIsMatch(i,o,getMatchData(o),s)},lodash.isNaN=function isNaN(i){return isNumber(i)&&i!=+i},lodash.isNative=function isNative(i){if(ds(i))throw new _("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return baseIsNative(i)},lodash.isNil=function isNil(i){return null==i},lodash.isNull=function isNull(i){return null===i},lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=ld,lodash.isSafeInteger=function isSafeInteger(i){return isInteger(i)&&i>=-9007199254740991&&i<=ot},lodash.isSet=cd,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=md,lodash.isUndefined=function isUndefined(i){return i===$},lodash.isWeakMap=function isWeakMap(i){return isObjectLike(i)&&ss(i)==St},lodash.isWeakSet=function isWeakSet(i){return isObjectLike(i)&&"[object WeakSet]"==baseGetTag(i)},lodash.join=function join(i,o){return null==i?"":qr.call(i,o)},lodash.kebabCase=lu,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(i,o,s){var v=null==i?0:i.length;if(!v)return-1;var _=v;return s!==$&&(_=(_=toInteger(s))<0?Hr(v+_,0):Xr(_,v-1)),o==o?strictLastIndexOf(i,o,_):baseFindIndex(i,baseIsNaN,_,!0)},lodash.lowerCase=cu,lodash.lowerFirst=hu,lodash.lt=Cd,lodash.lte=_d,lodash.max=function max(i){return i&&i.length?baseExtremum(i,identity,baseGt):$},lodash.maxBy=function maxBy(i,o){return i&&i.length?baseExtremum(i,getIteratee(o,2),baseGt):$},lodash.mean=function mean(i){return baseMean(i,identity)},lodash.meanBy=function meanBy(i,o){return baseMean(i,getIteratee(o,2))},lodash.min=function min(i){return i&&i.length?baseExtremum(i,identity,baseLt):$},lodash.minBy=function minBy(i,o){return i&&i.length?baseExtremum(i,getIteratee(o,2),baseLt):$},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=Iu,lodash.nth=function nth(i,o){return i&&i.length?baseNth(i,toInteger(o)):$},lodash.noConflict=function noConflict(){return zr._===this&&(zr._=gr),this},lodash.noop=noop,lodash.now=Ms,lodash.pad=function pad(i,o,s){i=toString(i);var v=(o=toInteger(o))?stringSize(i):0;if(!o||v>=o)return i;var _=(o-v)/2;return createPadding(Nr(_),s)+i+createPadding(Fr(_),s)},lodash.padEnd=function padEnd(i,o,s){i=toString(i);var v=(o=toInteger(o))?stringSize(i):0;return o&&vo){var v=i;i=o,o=v}if(s||i%1||o%1){var _=Oo();return Xr(i+_*(o-i+Ur("1e-"+((_+"").length-1))),o)}return baseRandom(i,o)},lodash.reduce=function reduce(i,o,s){var v=Ys(i)?arrayReduce:baseReduce,_=arguments.length<3;return v(i,getIteratee(o,4),s,_,Wo)},lodash.reduceRight=function reduceRight(i,o,s){var v=Ys(i)?arrayReduceRight:baseReduce,_=arguments.length<3;return v(i,getIteratee(o,4),s,_,$o)},lodash.repeat=function repeat(i,o,s){return o=(s?isIterateeCall(i,o,s):o===$)?1:toInteger(o),baseRepeat(toString(i),o)},lodash.replace=function replace(){var i=arguments,o=toString(i[0]);return i.length<3?o:o.replace(i[1],i[2])},lodash.result=function result(i,o,s){var v=-1,_=(o=castPath(o,i)).length;for(_||(_=1,i=$);++v<_;){var ae=null==i?$:i[toKey(o[v])];ae===$&&(v=_,ae=s),i=isFunction(ae)?ae.call(i):ae}return i},lodash.round=Fu,lodash.runInContext=runInContext,lodash.sample=function sample(i){return(Ys(i)?arraySample:baseSample)(i)},lodash.size=function size(i){if(null==i)return 0;if(isArrayLike(i))return isString(i)?stringSize(i):i.length;var o=ss(i);return o==yt||o==xt?i.size:baseKeys(i).length},lodash.snakeCase=pu,lodash.some=function some(i,o,s){var v=Ys(i)?arraySome:baseSome;return s&&isIterateeCall(i,o,s)&&(o=$),v(i,getIteratee(o,3))},lodash.sortedIndex=function sortedIndex(i,o){return baseSortedIndex(i,o)},lodash.sortedIndexBy=function sortedIndexBy(i,o,s){return baseSortedIndexBy(i,o,getIteratee(s,2))},lodash.sortedIndexOf=function sortedIndexOf(i,o){var s=null==i?0:i.length;if(s){var v=baseSortedIndex(i,o);if(vot)return[];var s=dt,v=Xr(i,dt);o=getIteratee(o),i-=dt;for(var _=baseTimes(v,o);++s=ae)return i;var we=s-stringSize(v);if(we<1)return v;var _e=pe?castSlice(pe,0,we).join(""):i.slice(0,we);if(_===$)return _e+v;if(pe&&(we+=_e.length-we),ld(_)){if(i.slice(we).search(_)){var et,tt=_e;for(_.global||(_=nr(_.source,toString(ca.exec(_))+"g")),_.lastIndex=0;et=_.exec(tt);)var nt=et.index;_e=_e.slice(0,nt===$?we:nt)}}else if(i.indexOf(baseToString(_),we)!=we){var rt=_e.lastIndexOf(_);rt>-1&&(_e=_e.slice(0,rt))}return _e+v},lodash.unescape=function unescape(i){return(i=toString(i))&&Ut.test(i)?i.replace(Qt,mo):i},lodash.uniqueId=function uniqueId(i){var o=++cr;return toString(i)+o},lodash.upperCase=gu,lodash.upperFirst=mu,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(Tu={},baseForOwn(lodash,(function(i,o){lr.call(lodash.prototype,o)||(Tu[o]=i)})),Tu),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(i){lodash[i].placeholder=lodash})),arrayEach(["drop","take"],(function(i,o){LazyWrapper.prototype[i]=function(s){s=s===$?1:Hr(toInteger(s),0);var v=this.__filtered__&&!o?new LazyWrapper(this):this.clone();return v.__filtered__?v.__takeCount__=Xr(s,v.__takeCount__):v.__views__.push({size:Xr(s,dt),type:i+(v.__dir__<0?"Right":"")}),v},LazyWrapper.prototype[i+"Right"]=function(o){return this.reverse()[i](o).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(i,o){var s=o+1,v=1==s||3==s;LazyWrapper.prototype[i]=function(i){var o=this.clone();return o.__iteratees__.push({iteratee:getIteratee(i,3),type:s}),o.__filtered__=o.__filtered__||v,o}})),arrayEach(["head","last"],(function(i,o){var s="take"+(o?"Right":"");LazyWrapper.prototype[i]=function(){return this[s](1).value()[0]}})),arrayEach(["initial","tail"],(function(i,o){var s="drop"+(o?"":"Right");LazyWrapper.prototype[i]=function(){return this.__filtered__?new LazyWrapper(this):this[s](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(i){return this.filter(i).head()},LazyWrapper.prototype.findLast=function(i){return this.reverse().find(i)},LazyWrapper.prototype.invokeMap=baseRest((function(i,o){return"function"==typeof i?new LazyWrapper(this):this.map((function(s){return baseInvoke(s,i,o)}))})),LazyWrapper.prototype.reject=function(i){return this.filter(negate(getIteratee(i)))},LazyWrapper.prototype.slice=function(i,o){i=toInteger(i);var s=this;return s.__filtered__&&(i>0||o<0)?new LazyWrapper(s):(i<0?s=s.takeRight(-i):i&&(s=s.drop(i)),o!==$&&(s=(o=toInteger(o))<0?s.dropRight(-o):s.take(o-i)),s)},LazyWrapper.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(dt)},baseForOwn(LazyWrapper.prototype,(function(i,o){var s=/^(?:filter|find|map|reject)|While$/.test(o),v=/^(?:head|last)$/.test(o),_=lodash[v?"take"+("last"==o?"Right":""):o],ae=v||/^find/.test(o);_&&(lodash.prototype[o]=function(){var o=this.__wrapped__,pe=v?[1]:arguments,we=o instanceof LazyWrapper,_e=pe[0],et=we||Ys(o),interceptor=function(i){var o=_.apply(lodash,arrayPush([i],pe));return v&&tt?o[0]:o};et&&s&&"function"==typeof _e&&1!=_e.length&&(we=et=!1);var tt=this.__chain__,nt=!!this.__actions__.length,rt=ae&&!tt,it=we&&!nt;if(!ae&&et){o=it?o:new LazyWrapper(this);var ot=i.apply(o,pe);return ot.__actions__.push({func:thru,args:[interceptor],thisArg:$}),new LodashWrapper(ot,tt)}return rt&&it?i.apply(this,pe):(ot=this.thru(interceptor),rt?v?ot.value()[0]:ot.value():ot)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(i){var o=ir[i],s=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);lodash.prototype[i]=function(){var i=arguments;if(v&&!this.__chain__){var _=this.value();return o.apply(Ys(_)?_:[],i)}return this[s]((function(s){return o.apply(Ys(s)?s:[],i)}))}})),baseForOwn(LazyWrapper.prototype,(function(i,o){var s=lodash[o];if(s){var v=s.name+"";lr.call(To,v)||(To[v]=[]),To[v].push({name:o,func:s})}})),To[createHybrid($,2).name]=[{name:"wrapper",func:$}],LazyWrapper.prototype.clone=function lazyClone(){var i=new LazyWrapper(this.__wrapped__);return i.__actions__=copyArray(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=copyArray(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=copyArray(this.__views__),i},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var i=new LazyWrapper(this);i.__dir__=-1,i.__filtered__=!0}else(i=this.clone()).__dir__*=-1;return i},LazyWrapper.prototype.value=function lazyValue(){var i=this.__wrapped__.value(),o=this.__dir__,s=Ys(i),v=o<0,_=s?i.length:0,$=getView(0,_,this.__views__),ae=$.start,pe=$.end,we=pe-ae,_e=v?pe:ae-1,et=this.__iteratees__,tt=et.length,nt=0,rt=Xr(we,this.__takeCount__);if(!s||!v&&_==we&&rt==we)return baseWrapperValue(i,this.__actions__);var it=[];e:for(;we--&&nt=this.__values__.length;return{done:i,value:i?$:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(i){for(var o,s=this;s instanceof baseLodash;){var v=wrapperClone(s);v.__index__=0,v.__values__=$,o?_.__wrapped__=v:o=v;var _=v;s=s.__wrapped__}return _.__wrapped__=i,o},lodash.prototype.reverse=function wrapperReverse(){var i=this.__wrapped__;if(i instanceof LazyWrapper){var o=i;return this.__actions__.length&&(o=new LazyWrapper(this)),(o=o.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:$}),new LodashWrapper(o,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,_r&&(lodash.prototype[_r]=function wrapperToIterator(){return this}),lodash}();zr._=Ro,(_=function(){return Ro}.call(o,s,o,v))===$||(v.exports=_)}).call(this)}).call(this,s(23),s(60)(i))},,,function(i,o,s){"use strict";var v=s(12),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$="object"===("undefined"==typeof window?"undefined":_(window))&&"object"===("undefined"==typeof document?"undefined":_(document))&&9===document.nodeType;s(50);function typeof_typeof(i){return typeof_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},typeof_typeof(i)}function toPrimitive(i,o){if("object"!=typeof_typeof(i)||!i)return i;var s=i[Symbol.toPrimitive];if(void 0!==s){var v=s.call(i,o||"default");if("object"!=typeof_typeof(v))return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(i)}function toPropertyKey(i){var o=toPrimitive(i,"string");return"symbol"==typeof_typeof(o)?o:String(o)}function _defineProperties(i,o){for(var s=0;s<+~=|^:(),"'`\s])/g,nt="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(i){return nt?nt(i):i.replace(tt,"\\$1")},rt=function(){function BaseStyleRule(i,o,s){this.type="style",this.isProcessed=!1;var v=s.sheet,_=s.Renderer;this.key=i,this.options=s,this.style=o,v?this.renderer=v.renderer:_&&(this.renderer=new _)}return BaseStyleRule.prototype.prop=function prop(i,o,s){if(void 0===o)return this.style[i];var v=!!s&&s.force;if(!v&&this.style[i]===o)return this;var _=o;s&&!1===s.process||(_=this.options.jss.plugins.onChangeValue(o,i,this));var $=null==_||!1===_,ae=i in this.style;if($&&!ae&&!v)return this;var pe=$&&ae;if(pe?delete this.style[i]:this.style[i]=_,this.renderable&&this.renderer)return pe?this.renderer.removeProperty(this.renderable,i):this.renderer.setProperty(this.renderable,i,_),this;var we=this.options.sheet;return we&&we.attached,this},BaseStyleRule}(),it=function(i){function StyleRule(o,s,v){var _;_=i.call(this,o,s,v)||this;var $=v.selector,ae=v.scoped,pe=v.sheet,we=v.generateId;return $?_.selectorText=$:!1!==ae&&(_.id=we(_assertThisInitialized(_assertThisInitialized(_)),pe),_.selectorText="."+jss_esm_escape(_.id)),_}Object(ae.a)(StyleRule,i);var o=StyleRule.prototype;return o.applyTo=function applyTo(i){var o=this.renderer;if(o){var s=this.toJSON();for(var v in s)o.setProperty(i,v,s[v])}return this},o.toJSON=function toJSON(){var i={};for(var o in this.style){var s=this.style[o];"object"!=typeof s?i[o]=s:Array.isArray(s)&&(i[o]=et(s))}return i},o.toString=function toString(i){var o=this.options.sheet,s=!!o&&o.options.link?Object(v.a)({},i,{allowEmpty:!0}):i;return toCss(this.selectorText,this.style,s)},_createClass(StyleRule,[{key:"selector",set:function set(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,s=this.renderable;if(s&&o)o.setSelector(s,i)||o.replaceRule(s,this)}},get:function get(){return this.selectorText}}]),StyleRule}(rt),ot={onCreateRule:function onCreateRule(i,o,s){return"@"===i[0]||s.parent&&"keyframes"===s.parent.type?null:new it(i,o,s)}},st={indent:1,children:!0},dt=/@([\w-]+)/,ut=function(){function ConditionalRule(i,o,s){this.type="conditional",this.isProcessed=!1,this.key=i;var _=i.match(dt);for(var $ in this.at=_?_[1]:"unknown",this.query=s.name||"@"+this.at,this.options=s,this.rules=new Tt(Object(v.a)({},s,{parent:this})),o)this.rules.add($,o[$]);this.rules.process()}var i=ConditionalRule.prototype;return i.getRule=function getRule(i){return this.rules.get(i)},i.indexOf=function indexOf(i){return this.rules.indexOf(i)},i.addRule=function addRule(i,o,s){var v=this.rules.add(i,o,s);return v?(this.options.jss.plugins.onProcessRule(v),v):null},i.replaceRule=function replaceRule(i,o,s){var v=this.rules.replace(i,o,s);return v&&this.options.jss.plugins.onProcessRule(v),v},i.toString=function toString(i){void 0===i&&(i=st);var o=getWhitespaceSymbols(i).linebreak;if(null==i.indent&&(i.indent=st.indent),null==i.children&&(i.children=st.children),!1===i.children)return this.query+" {}";var s=this.rules.toString(i);return s?this.query+" {"+o+s+o+"}":""},ConditionalRule}(),lt=/@container|@media|@supports\s+/,ct={onCreateRule:function onCreateRule(i,o,s){return lt.test(i)?new ut(i,o,s):null}},ht={indent:1,children:!0},pt=/@keyframes\s+([\w-]+)/,ft=function(){function KeyframesRule(i,o,s){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var _=i.match(pt);_&&_[1]?this.name=_[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=s;var $=s.scoped,ae=s.sheet,pe=s.generateId;for(var we in this.id=!1===$?this.name:jss_esm_escape(pe(this,ae)),this.rules=new Tt(Object(v.a)({},s,{parent:this})),o)this.rules.add(we,o[we],Object(v.a)({},s,{parent:this}));this.rules.process()}return KeyframesRule.prototype.toString=function toString(i){void 0===i&&(i=ht);var o=getWhitespaceSymbols(i).linebreak;if(null==i.indent&&(i.indent=ht.indent),null==i.children&&(i.children=ht.children),!1===i.children)return this.at+" "+this.id+" {}";var s=this.rules.toString(i);return s&&(s=""+o+s+o),this.at+" "+this.id+" {"+s+"}"},KeyframesRule}(),gt=/@keyframes\s+/,mt=/\$([\w-]+)/g,yt=function findReferencedKeyframe(i,o){return"string"==typeof i?i.replace(mt,(function(i,s){return s in o?o[s]:i})):i},vt=function replaceRef(i,o,s){var v=i[o],_=yt(v,s);_!==v&&(i[o]=_)},Rt={onCreateRule:function onCreateRule(i,o,s){return"string"==typeof i&>.test(i)?new ft(i,o,s):null},onProcessStyle:function onProcessStyle(i,o,s){return"style"===o.type&&s?("animation-name"in i&&vt(i,"animation-name",s.keyframes),"animation"in i&&vt(i,"animation",s.keyframes),i):i},onChangeValue:function onChangeValue(i,o,s){var v=s.options.sheet;if(!v)return i;switch(o){case"animation":case"animation-name":return yt(i,v.keyframes);default:return i}}},bt=function(i){function KeyframeRule(){return i.apply(this,arguments)||this}return Object(ae.a)(KeyframeRule,i),KeyframeRule.prototype.toString=function toString(i){var o=this.options.sheet,s=!!o&&o.options.link?Object(v.a)({},i,{allowEmpty:!0}):i;return toCss(this.key,this.style,s)},KeyframeRule}(rt),Ot={onCreateRule:function onCreateRule(i,o,s){return s.parent&&"keyframes"===s.parent.type?new bt(i,o,s):null}},xt=function(){function FontFaceRule(i,o,s){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=i,this.style=o,this.options=s}return FontFaceRule.prototype.toString=function toString(i){var o=getWhitespaceSymbols(i).linebreak;if(Array.isArray(this.style)){for(var s="",v=0;v=this.index)o.push(i);else for(var v=0;vs)return void o.splice(v,0,i)},i.reset=function reset(){this.registry=[]},i.remove=function remove(i){var o=this.registry.indexOf(i);this.registry.splice(o,1)},i.toString=function toString(i){for(var o=void 0===i?{}:i,s=o.attached,v=Object(pe.a)(o,["attached"]),_=getWhitespaceSymbols(v).linebreak,$="",ae=0;ae-1?v.substr(0,_-1):v;i.style.setProperty(o,$,_>-1?"important":"")}}catch(i){return!1}return!0},Wt=function removeProperty(i,o){try{i.attributeStyleMap?i.attributeStyleMap.delete(o):i.style.removeProperty(o)}catch(i){}},$t=function setSelector(i,o){return i.selectorText=o,i.selectorText===o},qt=Qt((function(){return document.querySelector("head")}));function findHigherSheet(i,o){for(var s=0;so.index&&v.options.insertionPoint===o.insertionPoint)return v}return null}function findHighestSheet(i,o){for(var s=i.length-1;s>=0;s--){var v=i[s];if(v.attached&&v.options.insertionPoint===o.insertionPoint)return v}return null}function findCommentNode(i){for(var o=qt(),s=0;s0){var s=findHigherSheet(o,i);if(s&&s.renderer)return{parent:s.renderer.element.parentNode,node:s.renderer.element};if((s=findHighestSheet(o,i))&&s.renderer)return{parent:s.renderer.element.parentNode,node:s.renderer.element.nextSibling}}var v=i.insertionPoint;if(v&&"string"==typeof v){var _=findCommentNode(v);if(_)return{parent:_.parentNode,node:_.nextSibling}}return!1}function insertStyle(i,o){var s=o.insertionPoint,v=findPrevNode(o);if(!1!==v&&v.parent)v.parent.insertBefore(i,v.node);else if(s&&"number"==typeof s.nodeType){var _=s,$=_.parentNode;$&&$.insertBefore(i,_.nextSibling)}else qt().appendChild(i)}var zt=Qt((function(){var i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null})),Zt=function insertRule(i,o,s){try{"insertRule"in i?i.insertRule(o,s):"appendRule"in i&&i.appendRule(o)}catch(i){return!1}return i.cssRules[s]},Ht=function getValidRuleInsertionIndex(i,o){var s=i.cssRules.length;return void 0===o||o>s?s:o},Gt=function createStyle(){var i=document.createElement("style");return i.textContent="\n",i},Xt=function(){function DomRenderer(i){this.getPropertyValue=Vt,this.setProperty=Ut,this.removeProperty=Wt,this.setSelector=$t,this.hasInsertedRules=!1,this.cssRules=[],i&&Nt.add(i),this.sheet=i;var o=this.sheet?this.sheet.options:{},s=o.media,v=o.meta,_=o.element;this.element=_||Gt(),this.element.setAttribute("data-jss",""),s&&this.element.setAttribute("media",s),v&&this.element.setAttribute("data-meta",v);var $=zt();$&&this.element.setAttribute("nonce",$)}var i=DomRenderer.prototype;return i.attach=function attach(){if(!this.element.parentNode&&this.sheet){insertStyle(this.element,this.sheet.options);var i=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&i&&(this.hasInsertedRules=!1,this.deploy())}},i.detach=function detach(){if(this.sheet){var i=this.element.parentNode;i&&i.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},i.deploy=function deploy(){var i=this.sheet;i&&(i.options.link?this.insertRules(i.rules):this.element.textContent="\n"+i.toString()+"\n")},i.insertRules=function insertRules(i,o){for(var s=0;s-1)return registerClass(i,o.split(" "));var v=i.options.parent;if("$"===o[0]){var _=v.getRule(o.substr(1));return!!_&&(_!==i&&(v.classes[i.key]+=" "+v.classes[_.key],!0))}return v.classes[i.key]+=" "+o,!0}var pr=function jssCompose(){return{onProcessStyle:function onProcessStyle(i,o){return"composes"in i?(registerClass(o,i.composes),delete i.composes,i):i}}},fr=Jt({createGenerateId:function createGenerateId(){var i=0;return function(o){return"rsg--"+o.key+"-"+i++}},plugins:[ia(),_a({reset:Object.assign({},{animation:"none 0s ease 0s 1 normal none running","backface-visibility":"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor","border-image":"none","border-radius":"0",bottom:"auto","box-shadow":"none",clear:"none",clip:"auto",columns:"auto","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule":"medium none currentColor","column-span":"1","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",float:"none",height:"auto",hyphens:"none",left:"auto",margin:"0","max-height":"none","max-width":"none","min-height":"0","min-width":"0",opacity:"1",outline:"medium none invert",overflow:"visible","overflow-x":"visible","overflow-y":"visible",padding:"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%",position:"static",right:"auto","table-layout":"auto","text-decoration":"none",top:"auto",transform:"none","transform-origin":"50% 50% 0","transform-style":"flat",transition:"none 0s ease 0s","unicode-bidi":"normal","vertical-align":"baseline",width:"auto","z-index":"auto"},{boxSizing:"border-box",color:"inherit",font:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"})}),nr(),sr(),hr(),pr()]});o.a=fr},function(i,o,s){var v=s(0),_=s(2);function Group(i){var o=v.Children.toArray(i.children).filter(Boolean);if(1===o.length)return o;var s=i.separator,_=v.isValidElement(s),$=[o.shift()];return o.forEach((function(i,o){if(_){var ae="separator-"+(i.key||o);s=v.cloneElement(s,{key:ae})}$.push(s,i)})),$}Group.propTypes={children:_.node,separator:_.node},Group.defaultProps={separator:" "},i.exports=Group},function(i,o){var s,v,_=i.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(i){if(s===setTimeout)return setTimeout(i,0);if((s===defaultSetTimout||!s)&&setTimeout)return s=setTimeout,setTimeout(i,0);try{return s(i,0)}catch(o){try{return s.call(null,i,0)}catch(o){return s.call(this,i,0)}}}function runClearTimeout(i){if(v===clearTimeout)return clearTimeout(i);if((v===defaultClearTimeout||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(i);try{return v(i)}catch(o){try{return v.call(null,i)}catch(o){return v.call(this,i)}}}!function(){try{s="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(i){s=defaultSetTimout}try{v="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(i){v=defaultClearTimeout}}();var $,ae=[],pe=!1,we=-1;function cleanUpNextTick(){pe&&$&&(pe=!1,$.length?ae=$.concat(ae):we=-1,ae.length&&drainQueue())}function drainQueue(){if(!pe){var i=runTimeout(cleanUpNextTick);pe=!0;for(var o=ae.length;o;){for($=ae,ae=[];++we1)for(var s=1;s0?v:s)(i)}},function(i,o,s){var v=s(285),_=s(286),$=s(287),ae=s(288),pe=s(289);function ListCache(i){var o=-1,s=null==i?0:i.length;for(this.clear();++o-1)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_2__.a,null,defaultValueString);if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light",underlined:!0,title:defaultValueString},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light",underlined:!0,title:JSON.stringify(object,null,2)},"Shape")}catch(i){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_2__.a,null,defaultValueString)}return prop.required?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light"},"Required"):""}},function(i,o,s){var v=s(818)(s(819));i.exports=v},function(i,o,s){"use strict";function objectToGetParams(i){var o=Object.entries(i).filter((function(i){var o=i[1];return null!=o})).map((function(i){var o=i[0],s=i[1];return"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(String(s)))}));return o.length>0?"?".concat(o.join("&")):""}s.d(o,"a",(function(){return objectToGetParams}))},function(i,o,s){"use strict";s.d(o,"a",(function(){return createIcon}));var v=s(0),_=s.n(v),__assign=function(){return __assign=Object.assign||function(i){for(var o,s=1,v=arguments.length;s0}));s1)throw new RangeError("integer-width stems only accept a single optional option");$.options[0].replace(rt,(function(i,s,v,_,$,ae){if(s)o.minimumIntegerDigits=v.length;else{if(_&&$)throw new Error("We currently do not support maximum integer digits");if(ae)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(it.test($.stem))o.minimumIntegerDigits=$.stem.length;else if(tt.test($.stem)){if($.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");$.stem.replace(tt,(function(i,s,v,_,$,ae){return"*"===v?o.minimumFractionDigits=s.length:_&&"#"===_[0]?o.maximumFractionDigits=_.length:$&&ae?(o.minimumFractionDigits=$.length,o.maximumFractionDigits=$.length+ae.length):(o.minimumFractionDigits=s.length,o.maximumFractionDigits=s.length),""}));var ae=$.options[0];"w"===ae?o=Object(v.__assign)(Object(v.__assign)({},o),{trailingZeroDisplay:"stripIfInteger"}):ae&&(o=Object(v.__assign)(Object(v.__assign)({},o),parseSignificantPrecision(ae)))}else if(nt.test($.stem))o=Object(v.__assign)(Object(v.__assign)({},o),parseSignificantPrecision($.stem));else{var pe=parseSign($.stem);pe&&(o=Object(v.__assign)(Object(v.__assign)({},o),pe));var we=parseConciseScientificAndEngineeringStem($.stem);we&&(o=Object(v.__assign)(Object(v.__assign)({},o),we))}}return o}var ot,st={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function getBestPattern(i,o){for(var s="",v=0;v>1),we=getDefaultHourSymbolFromLocale(o);for("H"!=we&&"k"!=we||(pe=0);pe-- >0;)s+="a";for(;ae-- >0;)s=we+s}else s+="J"===_?"H":_}return s}function getDefaultHourSymbolFromLocale(i){var o=i.hourCycle;if(void 0===o&&i.hourCycles&&i.hourCycles.length&&(o=i.hourCycles[0]),o)switch(o){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var s,v=i.language;return"root"!==v&&(s=i.maximize().region),(st[s||""]||st[v||""]||st["".concat(v,"-001")]||st["001"])[0]}var dt=new RegExp("^".concat(we.source,"*")),ut=new RegExp("".concat(we.source,"*$"));function createLocation(i,o){return{start:i,end:o}}var lt=!!String.prototype.startsWith&&"_a".startsWith("a",1),ct=!!String.fromCodePoint,ht=!!Object.fromEntries,pt=!!String.prototype.codePointAt,ft=!!String.prototype.trimStart,gt=!!String.prototype.trimEnd,mt=!!Number.isSafeInteger?Number.isSafeInteger:function(i){return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},yt=!0;try{yt="a"===(null===(ot=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ot?void 0:ot[0])}catch(i){yt=!1}var vt,Rt=lt?function startsWith(i,o,s){return i.startsWith(o,s)}:function startsWith(i,o,s){return i.slice(s,s+o.length)===o},bt=ct?String.fromCodePoint:function fromCodePoint(){for(var i=[],o=0;o$;){if((s=i[$++])>1114111)throw RangeError(s+" is not a valid code point");v+=s<65536?String.fromCharCode(s):String.fromCharCode(55296+((s-=65536)>>10),s%1024+56320)}return v},Ot=ht?Object.fromEntries:function fromEntries(i){for(var o={},s=0,v=i;s=s)){var v,_=i.charCodeAt(o);return _<55296||_>56319||o+1===s||(v=i.charCodeAt(o+1))<56320||v>57343?_:v-56320+(_-55296<<10)+65536}},wt=ft?function trimStart(i){return i.trimStart()}:function trimStart(i){return i.replace(dt,"")},Ct=gt?function trimEnd(i){return i.trimEnd()}:function trimEnd(i){return i.replace(ut,"")};function RE(i,o){return new RegExp(i,o)}if(yt){var St=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vt=function matchIdentifierAtIndex(i,o){var s;return St.lastIndex=o,null!==(s=St.exec(i)[1])&&void 0!==s?s:""}}else vt=function matchIdentifierAtIndex(i,o){for(var s=[];;){var v=xt(i,o);if(void 0===v||_isWhiteSpace(v)||_isPatternSyntax(v))break;s.push(v),o+=v>=65536?2:1}return bt.apply(void 0,s)};var _t=function(){function Parser(i,o){void 0===o&&(o={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!o.ignoreTag,this.locale=o.locale,this.requiresOtherClause=!!o.requiresOtherClause,this.shouldParseSkeletons=!!o.shouldParseSkeletons}return Parser.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Parser.prototype.parseMessage=function(i,o,s){for(var v=[];!this.isEOF();){var _=this.char();if(123===_){if((pe=this.parseArgument(i,s)).err)return pe;v.push(pe.val)}else{if(125===_&&i>0)break;if(35!==_||"plural"!==o&&"selectordinal"!==o){if(60===_&&!this.ignoreTag&&47===this.peek()){if(s)break;return this.error($.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}if(60===_&&!this.ignoreTag&&_isAlpha(this.peek()||0)){if((pe=this.parseTag(i,o)).err)return pe;v.push(pe.val)}else{var pe;if((pe=this.parseLiteral(i,o)).err)return pe;v.push(pe.val)}}else{var we=this.clonePosition();this.bump(),v.push({type:ae.pound,location:createLocation(we,this.clonePosition())})}}}return{val:v,err:null}},Parser.prototype.parseTag=function(i,o){var s=this.clonePosition();this.bump();var v=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ae.literal,value:"<".concat(v,"/>"),location:createLocation(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var _=this.parseMessage(i+1,o,!0);if(_.err)return _;var pe=_.val,we=this.clonePosition();if(this.bumpIf("")?{val:{type:ae.tag,value:v,children:pe,location:createLocation(s,this.clonePosition())},err:null}:this.error($.INVALID_TAG,createLocation(we,this.clonePosition())))}return this.error($.UNCLOSED_TAG,createLocation(s,this.clonePosition()))}return this.error($.INVALID_TAG,createLocation(s,this.clonePosition()))},Parser.prototype.parseTagName=function(){var i,o=this.offset();for(this.bump();!this.isEOF()&&(45===(i=this.char())||46===i||i>=48&&i<=57||95===i||i>=97&&i<=122||i>=65&&i<=90||183==i||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8255&&i<=8256||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039);)this.bump();return this.message.slice(o,this.offset())},Parser.prototype.parseLiteral=function(i,o){for(var s=this.clonePosition(),v="";;){var _=this.tryParseQuote(o);if(_)v+=_;else{var $=this.tryParseUnquoted(i,o);if($)v+=$;else{var pe=this.tryParseLeftAngleBracket();if(!pe)break;v+=pe}}}var we=createLocation(s,this.clonePosition());return{val:{type:ae.literal,value:v,location:we},err:null}},Parser.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(_isAlpha(i=this.peek()||0)||47===i)?null:(this.bump(),"<");var i},Parser.prototype.tryParseQuote=function(i){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===i||"selectordinal"===i)break;return null;default:return null}this.bump();var o=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(39===s){if(39!==this.peek()){this.bump();break}o.push(39),this.bump()}else o.push(s);this.bump()}return bt.apply(void 0,o)},Parser.prototype.tryParseUnquoted=function(i,o){if(this.isEOF())return null;var s=this.char();return 60===s||123===s||35===s&&("plural"===o||"selectordinal"===o)||125===s&&i>0?null:(this.bump(),bt(s))},Parser.prototype.parseArgument=function(i,o){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(s,this.clonePosition()));if(125===this.char())return this.bump(),this.error($.EMPTY_ARGUMENT,createLocation(s,this.clonePosition()));var v=this.parseIdentifierIfPossible().value;if(!v)return this.error($.MALFORMED_ARGUMENT,createLocation(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ae.argument,value:v,location:createLocation(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(s,this.clonePosition())):this.parseArgumentOptions(i,o,v,s);default:return this.error($.MALFORMED_ARGUMENT,createLocation(s,this.clonePosition()))}},Parser.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),o=this.offset(),s=vt(this.message,o),v=o+s.length;return this.bumpTo(v),{value:s,location:createLocation(i,this.clonePosition())}},Parser.prototype.parseArgumentOptions=function(i,o,s,_){var we,_e=this.clonePosition(),et=this.parseIdentifierIfPossible().value,tt=this.clonePosition();switch(et){case"":return this.error($.EXPECT_ARGUMENT_TYPE,createLocation(_e,tt));case"number":case"date":case"time":this.bumpSpace();var nt=null;if(this.bumpIf(",")){this.bumpSpace();var rt=this.clonePosition();if((ht=this.parseSimpleArgStyleIfPossible()).err)return ht;if(0===(dt=Ct(ht.val)).length)return this.error($.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));nt={style:dt,styleLocation:createLocation(rt,this.clonePosition())}}if((pt=this.tryParseArgumentClose(_)).err)return pt;var it=createLocation(_,this.clonePosition());if(nt&&Rt(null==nt?void 0:nt.style,"::",0)){var ot=wt(nt.style.slice(2));if("number"===et)return(ht=this.parseNumberSkeletonFromString(ot,nt.styleLocation)).err?ht:{val:{type:ae.number,value:s,location:it,style:ht.val},err:null};if(0===ot.length)return this.error($.EXPECT_DATE_TIME_SKELETON,it);var st=ot;this.locale&&(st=getBestPattern(ot,this.locale));var dt={type:pe.dateTime,pattern:st,location:nt.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(st):{}};return{val:{type:"date"===et?ae.date:ae.time,value:s,location:it,style:dt},err:null}}return{val:{type:"number"===et?ae.number:"date"===et?ae.date:ae.time,value:s,location:it,style:null!==(we=null==nt?void 0:nt.style)&&void 0!==we?we:null},err:null};case"plural":case"selectordinal":case"select":var ut=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(ut,Object(v.__assign)({},ut)));this.bumpSpace();var lt=this.parseIdentifierIfPossible(),ct=0;if("select"!==et&&"offset"===lt.value){if(!this.bumpIf(":"))return this.error($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));var ht;if(this.bumpSpace(),(ht=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return ht;this.bumpSpace(),lt=this.parseIdentifierIfPossible(),ct=ht.val}var pt,ft=this.tryParsePluralOrSelectOptions(i,et,o,lt);if(ft.err)return ft;if((pt=this.tryParseArgumentClose(_)).err)return pt;var gt=createLocation(_,this.clonePosition());return"select"===et?{val:{type:ae.select,value:s,options:Ot(ft.val),location:gt},err:null}:{val:{type:ae.plural,value:s,options:Ot(ft.val),offset:ct,pluralType:"plural"===et?"cardinal":"ordinal",location:gt},err:null};default:return this.error($.INVALID_ARGUMENT_TYPE,createLocation(_e,tt))}},Parser.prototype.tryParseArgumentClose=function(i){return this.isEOF()||125!==this.char()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},Parser.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,o=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error($.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(s,this.clonePosition()));this.bump();break;case 123:i+=1,this.bump();break;case 125:if(!(i>0))return{val:this.message.slice(o.offset,this.offset()),err:null};i-=1;break;default:this.bump()}}return{val:this.message.slice(o.offset,this.offset()),err:null}},Parser.prototype.parseNumberSkeletonFromString=function(i,o){var s=[];try{s=parseNumberSkeletonFromString(i)}catch(i){return this.error($.INVALID_NUMBER_SKELETON,o)}return{val:{type:pe.number,tokens:s,location:o,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(s):{}},err:null}},Parser.prototype.tryParsePluralOrSelectOptions=function(i,o,s,v){for(var _,ae=!1,pe=[],we=new Set,_e=v.value,et=v.location;;){if(0===_e.length){var tt=this.clonePosition();if("select"===o||!this.bumpIf("="))break;var nt=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_SELECTOR,$.INVALID_PLURAL_ARGUMENT_SELECTOR);if(nt.err)return nt;et=createLocation(tt,this.clonePosition()),_e=this.message.slice(tt.offset,this.offset())}if(we.has(_e))return this.error("select"===o?$.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,et);"other"===_e&&(ae=!0),this.bumpSpace();var rt=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===o?$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var it=this.parseMessage(i+1,o,s);if(it.err)return it;var ot=this.tryParseArgumentClose(rt);if(ot.err)return ot;pe.push([_e,{value:it.val,location:createLocation(rt,this.clonePosition())}]),we.add(_e),this.bumpSpace(),_e=(_=this.parseIdentifierIfPossible()).value,et=_.location}return 0===pe.length?this.error("select"===o?$.EXPECT_SELECT_ARGUMENT_SELECTOR:$.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!ae?this.error($.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:pe,err:null}},Parser.prototype.tryParseDecimalInteger=function(i,o){var s=1,v=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var _=!1,$=0;!this.isEOF();){var ae=this.char();if(!(ae>=48&&ae<=57))break;_=!0,$=10*$+(ae-48),this.bump()}var pe=createLocation(v,this.clonePosition());return _?mt($*=s)?{val:$,err:null}:this.error(o,pe):this.error(i,pe)},Parser.prototype.offset=function(){return this.position.offset},Parser.prototype.isEOF=function(){return this.offset()===this.message.length},Parser.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Parser.prototype.char=function(){var i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var o=xt(this.message,i);if(void 0===o)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return o},Parser.prototype.error=function(i,o){return{val:null,err:{kind:i,message:this.message,location:o}}},Parser.prototype.bump=function(){if(!this.isEOF()){var i=this.char();10===i?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=i<65536?1:2)}},Parser.prototype.bumpIf=function(i){if(Rt(this.message,i,this.offset())){for(var o=0;o=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},Parser.prototype.bumpTo=function(i){if(this.offset()>i)throw Error("targetOffset ".concat(i," must be greater than or equal to the current offset ").concat(this.offset()));for(i=Math.min(i,this.message.length);;){var o=this.offset();if(o===i)break;if(o>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},Parser.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},Parser.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),o=this.offset(),s=this.message.charCodeAt(o+(i>=65536?2:1));return null!=s?s:null},Parser}();function _isAlpha(i){return i>=97&&i<=122||i>=65&&i<=90}function _isWhiteSpace(i){return i>=9&&i<=13||32===i||133===i||i>=8206&&i<=8207||8232===i||8233===i}function _isPatternSyntax(i){return i>=33&&i<=35||36===i||i>=37&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||i>=162&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||i>=8208&&i<=8213||i>=8214&&i<=8215||8216===i||8217===i||8218===i||i>=8219&&i<=8220||8221===i||8222===i||8223===i||i>=8224&&i<=8231||i>=8240&&i<=8248||8249===i||8250===i||i>=8251&&i<=8254||i>=8257&&i<=8259||8260===i||8261===i||8262===i||i>=8263&&i<=8273||8274===i||8275===i||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||8608===i||i>=8609&&i<=8610||8611===i||i>=8612&&i<=8613||8614===i||i>=8615&&i<=8621||8622===i||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||8658===i||8659===i||8660===i||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||8968===i||8969===i||8970===i||8971===i||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||9001===i||9002===i||i>=9003&&i<=9083||9084===i||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||9655===i||i>=9656&&i<=9664||9665===i||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||9839===i||i>=9840&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||i>=10132&&i<=10175||i>=10176&&i<=10180||10181===i||10182===i||i>=10183&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||i>=10649&&i<=10711||10712===i||10713===i||10714===i||10715===i||i>=10716&&i<=10747||10748===i||10749===i||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||11158===i||i>=11159&&i<=11263||i>=11776&&i<=11777||11778===i||11779===i||11780===i||11781===i||i>=11782&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||i>=11790&&i<=11798||11799===i||i>=11800&&i<=11801||11802===i||11803===i||11804===i||11805===i||i>=11806&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||i>=11818&&i<=11822||11823===i||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||11840===i||11841===i||11842===i||i>=11843&&i<=11855||i>=11856&&i<=11857||11858===i||i>=11859&&i<=11903||i>=12289&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||i>=12306&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||i>=12318&&i<=12319||12320===i||12336===i||64830===i||64831===i||i>=65093&&i<=65094}function pruneLocation(i){i.forEach((function(i){if(delete i.location,isSelectElement(i)||isPluralElement(i))for(var o in i.options)delete i.options[o].location,pruneLocation(i.options[o].value);else isNumberElement(i)&&isNumberSkeleton(i.style)||(isDateElement(i)||isTimeElement(i))&&isDateTimeSkeleton(i.style)?delete i.style.location:isTagElement(i)&&pruneLocation(i.children)}))}function parse(i,o){void 0===o&&(o={}),o=Object(v.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},o);var s=new _t(i,o).parse();if(s.err){var _=SyntaxError($[s.err.kind]);throw _.location=s.err.location,_.originalMessage=s.err.message,_}return(null==o?void 0:o.captureLocation)||pruneLocation(s.val),s.val}function memoize(i,o){var s=o&&o.cache?o.cache:kt,v=o&&o.serializer?o.serializer:serializerDefault;return(o&&o.strategy?o.strategy:strategyDefault)(i,{cache:s,serializer:v})}function monadic(i,o,s,v){var _,$=null==(_=v)||"number"==typeof _||"boolean"==typeof _?v:s(v),ae=o.get($);return void 0===ae&&(ae=i.call(this,v),o.set($,ae)),ae}function variadic(i,o,s){var v=Array.prototype.slice.call(arguments,3),_=s(v),$=o.get(_);return void 0===$&&($=i.apply(this,v),o.set(_,$)),$}function assemble(i,o,s,v,_){return s.bind(o,i,v,_)}function strategyDefault(i,o){return assemble(i,this,1===i.length?monadic:variadic,o.cache.create(),o.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(i){return this.cache[i]},ObjectWithoutPrototypeCache.prototype.set=function(i,o){this.cache[i]=o};var Et,kt={create:function create(){return new ObjectWithoutPrototypeCache}},At={variadic:function strategyVariadic(i,o){return assemble(i,this,variadic,o.cache.create(),o.serializer)},monadic:function strategyMonadic(i,o){return assemble(i,this,monadic,o.cache.create(),o.serializer)}};!function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"}(Et||(Et={}));var Dt,Pt=function(i){function FormatError(o,s,v){var _=i.call(this,o)||this;return _.code=s,_.originalMessage=v,_}return Object(v.__extends)(FormatError,i),FormatError.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},FormatError}(Error),Tt=function(i){function InvalidValueError(o,s,v,_){return i.call(this,'Invalid values for "'.concat(o,'": "').concat(s,'". Options are "').concat(Object.keys(v).join('", "'),'"'),Et.INVALID_VALUE,_)||this}return Object(v.__extends)(InvalidValueError,i),InvalidValueError}(Pt),It=function(i){function InvalidValueTypeError(o,s,v){return i.call(this,'Value for "'.concat(o,'" must be of type ').concat(s),Et.INVALID_VALUE,v)||this}return Object(v.__extends)(InvalidValueTypeError,i),InvalidValueTypeError}(Pt),Ft=function(i){function MissingValueError(o,s){return i.call(this,'The intl string context variable "'.concat(o,'" was not provided to the string "').concat(s,'"'),Et.MISSING_VALUE,s)||this}return Object(v.__extends)(MissingValueError,i),MissingValueError}(Pt);function mergeLiteral(i){return i.length<2?i:i.reduce((function(i,o){var s=i[i.length-1];return s&&s.type===Dt.literal&&o.type===Dt.literal?s.value+=o.value:i.push(o),i}),[])}function isFormatXMLElementFn(i){return"function"==typeof i}function formatToParts(i,o,s,v,_,$,ae){if(1===i.length&&isLiteralElement(i[0]))return[{type:Dt.literal,value:i[0].value}];for(var pe=[],we=0,_e=i;we<_e.length;we++){var et=_e[we];if(isLiteralElement(et))pe.push({type:Dt.literal,value:et.value});else if(isPoundElement(et))"number"==typeof $&&pe.push({type:Dt.literal,value:s.getNumberFormat(o).format($)});else{var tt=et.value;if(!_||!(tt in _))throw new Ft(tt,ae);var nt=_[tt];if(isArgumentElement(et))nt&&"string"!=typeof nt&&"number"!=typeof nt||(nt="string"==typeof nt||"number"==typeof nt?String(nt):""),pe.push({type:"string"==typeof nt?Dt.literal:Dt.object,value:nt});else if(isDateElement(et)){var rt="string"==typeof et.style?v.date[et.style]:isDateTimeSkeleton(et.style)?et.style.parsedOptions:void 0;pe.push({type:Dt.literal,value:s.getDateTimeFormat(o,rt).format(nt)})}else if(isTimeElement(et)){rt="string"==typeof et.style?v.time[et.style]:isDateTimeSkeleton(et.style)?et.style.parsedOptions:v.time.medium;pe.push({type:Dt.literal,value:s.getDateTimeFormat(o,rt).format(nt)})}else if(isNumberElement(et)){(rt="string"==typeof et.style?v.number[et.style]:isNumberSkeleton(et.style)?et.style.parsedOptions:void 0)&&rt.scale&&(nt*=rt.scale||1),pe.push({type:Dt.literal,value:s.getNumberFormat(o,rt).format(nt)})}else{if(isTagElement(et)){var it=et.children,ot=et.value,st=_[ot];if(!isFormatXMLElementFn(st))throw new It(ot,"function",ae);var dt=st(formatToParts(it,o,s,v,_,$).map((function(i){return i.value})));Array.isArray(dt)||(dt=[dt]),pe.push.apply(pe,dt.map((function(i){return{type:"string"==typeof i?Dt.literal:Dt.object,value:i}})))}if(isSelectElement(et)){if(!(ut=et.options[nt]||et.options.other))throw new Tt(et.value,nt,Object.keys(et.options),ae);pe.push.apply(pe,formatToParts(ut.value,o,s,v,_))}else if(isPluralElement(et)){var ut;if(!(ut=et.options["=".concat(nt)])){if(!Intl.PluralRules)throw new Pt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Et.MISSING_INTL_API,ae);var lt=s.getPluralRules(o,{type:et.pluralType}).select(nt-(et.offset||0));ut=et.options[lt]||et.options.other}if(!ut)throw new Tt(et.value,nt,Object.keys(et.options),ae);pe.push.apply(pe,formatToParts(ut.value,o,s,v,_,nt-(et.offset||0)))}else;}}}return mergeLiteral(pe)}function createFastMemoizeCache(i){return{create:function(){return{get:function(o){return i[o]},set:function(o,s){i[o]=s}}}}}!function(i){i[i.literal=0]="literal",i[i.object=1]="object"}(Dt||(Dt={}));var Nt;!function(){function IntlMessageFormat(i,o,s,_){var $,ae,pe,we=this;if(void 0===o&&(o=IntlMessageFormat.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(i){var o=we.formatToParts(i);if(1===o.length)return o[0].value;var s=o.reduce((function(i,o){return i.length&&o.type===Dt.literal&&"string"==typeof i[i.length-1]?i[i.length-1]+=o.value:i.push(o.value),i}),[]);return s.length<=1?s[0]||"":s},this.formatToParts=function(i){return formatToParts(we.ast,we.locales,we.formatters,we.formats,i,void 0,we.message)},this.resolvedOptions=function(){var i;return{locale:(null===(i=we.resolvedLocale)||void 0===i?void 0:i.toString())||Intl.NumberFormat.supportedLocalesOf(we.locales)[0]}},this.getAst=function(){return we.ast},this.locales=o,this.resolvedLocale=IntlMessageFormat.resolveLocale(o),"string"==typeof i){if(this.message=i,!IntlMessageFormat.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var _e=_||{},et=(_e.formatters,Object(v.__rest)(_e,["formatters"]));this.ast=IntlMessageFormat.__parse(i,Object(v.__assign)(Object(v.__assign)({},et),{locale:this.resolvedLocale}))}else this.ast=i;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=($=IntlMessageFormat.formats,(ae=s)?Object.keys($).reduce((function(i,o){var s,_;return i[o]=(s=$[o],(_=ae[o])?Object(v.__assign)(Object(v.__assign)(Object(v.__assign)({},s||{}),_||{}),Object.keys(s).reduce((function(i,o){return i[o]=Object(v.__assign)(Object(v.__assign)({},s[o]),_[o]||{}),i}),{})):s),i}),Object(v.__assign)({},$)):$),this.formatters=_&&_.formatters||(void 0===(pe=this.formatterCache)&&(pe={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoize((function(){for(var i,o=[],s=0;s0?new Intl.Locale(o[0]):new Intl.Locale("string"==typeof i?i:i[0])}},IntlMessageFormat.__parse=parse,IntlMessageFormat.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}();!function(i){i.FORMAT_ERROR="FORMAT_ERROR",i.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",i.INVALID_CONFIG="INVALID_CONFIG",i.MISSING_DATA="MISSING_DATA",i.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Nt||(Nt={}));var Bt=function(i){function IntlError(o,s,v){var _=this,$=v?v instanceof Error?v:new Error(String(v)):void 0;return(_=i.call(this,"[@formatjs/intl Error ".concat(o,"] ").concat(s,"\n").concat($?"\n".concat($.message,"\n").concat($.stack):""))||this).code=o,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(_,IntlError),_}return Object(v.__extends)(IntlError,i),IntlError}(Error);(function(i){function UnsupportedFormatterError(o,s){return i.call(this,Nt.UNSUPPORTED_FORMATTER,o,s)||this}Object(v.__extends)(UnsupportedFormatterError,i)})(Bt),function(i){function InvalidConfigError(o,s){return i.call(this,Nt.INVALID_CONFIG,o,s)||this}Object(v.__extends)(InvalidConfigError,i)}(Bt),function(i){function MissingDataError(o,s){return i.call(this,Nt.MISSING_DATA,o,s)||this}Object(v.__extends)(MissingDataError,i)}(Bt),function(i){function MessageFormatError(o,s,v,_){var $=i.call(this,"".concat(o,"\nMessageID: ").concat(null==v?void 0:v.id,"\nDefault Message: ").concat(null==v?void 0:v.defaultMessage,"\nDescription: ").concat(null==v?void 0:v.description,"\n"),s,_)||this;return $.descriptor=v,$.locale=s,$}Object(v.__extends)(MessageFormatError,i)}(function(i){function IntlFormatError(o,s,v){var _=i.call(this,Nt.FORMAT_ERROR,"".concat(o,"\nLocale: ").concat(s,"\n"),v)||this;return _.locale=s,_}return Object(v.__extends)(IntlFormatError,i),IntlFormatError}(Bt)),function(i){function MissingTranslationError(o,s){var v=i.call(this,Nt.MISSING_TRANSLATION,'Missing message: "'.concat(o.id,'" for locale "').concat(s,'", using ').concat(o.defaultMessage?"default message (".concat("string"==typeof o.defaultMessage?o.defaultMessage:o.defaultMessage.map((function(i){var o;return null!==(o=i.value)&&void 0!==o?o:JSON.stringify(i)})).join(),")"):"id"," as fallback."))||this;return v.descriptor=o,v}Object(v.__extends)(MissingTranslationError,i)}(Bt);var Lt={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(i){0},onWarn:function(i){0}};function invariantIntlContext(i){invariant(i,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}Object(v.__assign)(Object(v.__assign)({},Lt),{textComponent:_.Fragment})},function(i,o,s){"use strict";var v,_=s(0),$=s.n(_),ae=s(223),pe=s.n(ae),we=(v=function(i,o){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},v(i,o)},function(i,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=i}v(i,o),i.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}),__assign=function(){return __assign=Object.assign||function(i){for(var o,s=1,v=arguments.length;s0&&_[_.length-1])||6!==$[0]&&2!==$[0])){ae=0;continue}if(3===$[0]&&(!_||$[1]>_[0]&&$[1]<_[3])){ae.label=$[1];break}if(6===$[0]&&ae.label<_[1]){ae.label=_[1],_=$;break}if(_&&ae.label<_[2]){ae.label=_[2],ae.ops.push($);break}_[2]&&ae.ops.pop(),ae.trys.pop();continue}$=o.call(i,ae)}catch(i){$=[6,i],v=0}finally{s=_=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}},__rest=function(i,o){var s={};for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&o.indexOf(v)<0&&(s[v]=i[v]);if(null!=i&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(v=Object.getOwnPropertySymbols(i);_0&&(!ae.multiline||ae.multiline&&"\n"!==i[ae.lastIndex-1])&&(it="(?: "+it+")",st=" "+st,ot++),s=new RegExp("^(?:"+it+")",rt)),nt&&(s=new RegExp("^"+it+"$(?!\\s)",rt)),et&&(o=ae.lastIndex),v=pe.call(_e?s:ae,st),_e?v?(v.input=v.input.slice(ot),v[0]=v[0].slice(ot),v.index=ae.lastIndex,ae.lastIndex+=v[0].length):ae.lastIndex=0:et&&v&&(ae.lastIndex=ae.global?v.index+v[0].length:o),nt&&v&&v.length>1&&we.call(v[0],s,(function(){for(_=1;_-1&&i%1==0&&i<=9007199254740991}},function(i,o){var s=/^(?:0|[1-9]\d*)$/;i.exports=function isIndex(i,o){var v=typeof i;return!!(o=null==o?9007199254740991:o)&&("number"==v||"symbol"!=v&&s.test(i))&&i>-1&&i%1==0&&ii)return!1;if((s+=o[v+1])>=i)return!0}}function isIdentifierStart(i,o){return i<65?36===i:i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&_e.test(String.fromCharCode(i)):!1!==o&&isInAstralSet(i,tt)))}function isIdentifierChar(i,o){return i<48?36===i:i<58||!(i<65)&&(i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&et.test(String.fromCharCode(i)):!1!==o&&(isInAstralSet(i,tt)||isInAstralSet(i,nt)))))}var rt=function TokenType(i,o){void 0===o&&(o={}),this.label=i,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop||null,this.updateContext=null};function binop(i,o){return new rt(i,{beforeExpr:!0,binop:o})}var it={beforeExpr:!0},ot={startsExpr:!0},st={};function kw(i,o){return void 0===o&&(o={}),o.keyword=i,st[i]=new rt(i,o)}var dt={num:new rt("num",ot),regexp:new rt("regexp",ot),string:new rt("string",ot),name:new rt("name",ot),eof:new rt("eof"),bracketL:new rt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new rt("]"),braceL:new rt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new rt("}"),parenL:new rt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new rt(")"),comma:new rt(",",it),semi:new rt(";",it),colon:new rt(":",it),dot:new rt("."),question:new rt("?",it),questionDot:new rt("?."),arrow:new rt("=>",it),template:new rt("template"),invalidTemplate:new rt("invalidTemplate"),ellipsis:new rt("...",it),backQuote:new rt("`",ot),dollarBraceL:new rt("${",{beforeExpr:!0,startsExpr:!0}),eq:new rt("=",{beforeExpr:!0,isAssign:!0}),assign:new rt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new rt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new rt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new rt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new rt("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",it),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",it),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",it),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",ot),_if:kw("if"),_return:kw("return",it),_switch:kw("switch"),_throw:kw("throw",it),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",ot),_super:kw("super",ot),_class:kw("class",ot),_extends:kw("extends",it),_export:kw("export"),_import:kw("import",ot),_null:kw("null",ot),_true:kw("true",ot),_false:kw("false",ot),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ut=/\r\n?|\n|\u2028|\u2029/,lt=new RegExp(ut.source,"g");function isNewLine(i,o){return 10===i||13===i||!o&&(8232===i||8233===i)}var ct=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ht=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pt=Object.prototype,ft=pt.hasOwnProperty,gt=pt.toString;function has(i,o){return ft.call(i,o)}var mt=Array.isArray||function(i){return"[object Array]"===gt.call(i)};function wordsRegexp(i){return new RegExp("^(?:"+i.replace(/ /g,"|")+")$")}var yt=function Position(i,o){this.line=i,this.column=o};yt.prototype.offset=function offset(i){return new yt(this.line,this.column+i)};var vt=function SourceLocation(i,o,s){this.start=o,this.end=s,null!==i.sourceFile&&(this.source=i.sourceFile)};function getLineInfo(i,o){for(var s=1,v=0;;){lt.lastIndex=v;var _=lt.exec(i);if(!(_&&_.index=2015&&(o.ecmaVersion-=2009),null==o.allowReserved&&(o.allowReserved=o.ecmaVersion<5),mt(o.onToken)){var v=o.onToken;o.onToken=function(i){return v.push(i)}}return mt(o.onComment)&&(o.onComment=pushComment(o,o.onComment)),o}function pushComment(i,o){return function(s,v,_,$,ae,pe){var we={type:s?"Block":"Line",value:v,start:_,end:$};i.locations&&(we.loc=new vt(this,ae,pe)),i.ranges&&(we.range=[_,$]),o.push(we)}}function functionFlags(i,o){return 2|(i?4:0)|(o?8:0)}var bt=function Parser(i,o,s){this.options=i=getOptions(i),this.sourceFile=i.sourceFile,this.keywords=wordsRegexp($[i.ecmaVersion>=6?6:"module"===i.sourceType?"5module":5]);var _="";if(!0!==i.allowReserved){for(var ae=i.ecmaVersion;!(_=v[ae]);ae--);"module"===i.sourceType&&(_+=" await")}this.reservedWords=wordsRegexp(_);var pe=(_?_+" ":"")+v.strict;this.reservedWordsStrict=wordsRegexp(pe),this.reservedWordsStrictBind=wordsRegexp(pe+" "+v.strictBind),this.input=String(o),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ut).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=dt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===i.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&i.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Ot={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};bt.prototype.parse=function parse(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)},Ot.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ot.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ot.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ot.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Ot.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ot.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},bt.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},bt.extend=function extend(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];for(var s=this,v=0;v=,?^&]/.test(_)||"!"===_&&"="===this.input.charAt(v+1))}i+=o[0].length,ht.lastIndex=i,i+=ht.exec(this.input)[0].length,";"===this.input[i]&&i++}},xt.eat=function(i){return this.type===i&&(this.next(),!0)},xt.isContextual=function(i){return this.type===dt.name&&this.value===i&&!this.containsEsc},xt.eatContextual=function(i){return!!this.isContextual(i)&&(this.next(),!0)},xt.expectContextual=function(i){this.eatContextual(i)||this.unexpected()},xt.canInsertSemicolon=function(){return this.type===dt.eof||this.type===dt.braceR||ut.test(this.input.slice(this.lastTokEnd,this.start))},xt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},xt.semicolon=function(){this.eat(dt.semi)||this.insertSemicolon()||this.unexpected()},xt.afterTrailingComma=function(i,o){if(this.type===i)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),o||this.next(),!0},xt.expect=function(i){this.eat(i)||this.unexpected()},xt.unexpected=function(i){this.raise(null!=i?i:this.start,"Unexpected token")},xt.checkPatternErrors=function(i,o){if(i){i.trailingComma>-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var s=o?i.parenthesizedAssign:i.parenthesizedBind;s>-1&&this.raiseRecoverable(s,"Parenthesized pattern")}},xt.checkExpressionErrors=function(i,o){if(!i)return!1;var s=i.shorthandAssign,v=i.doubleProto;if(!o)return s>=0||v>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},xt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement($,!1,!i);case dt._class:return i&&this.unexpected(),this.parseClass($,!0);case dt._if:return this.parseIfStatement($);case dt._return:return this.parseReturnStatement($);case dt._switch:return this.parseSwitchStatement($);case dt._throw:return this.parseThrowStatement($);case dt._try:return this.parseTryStatement($);case dt._const:case dt._var:return v=v||this.value,i&&"var"!==v&&this.unexpected(),this.parseVarStatement($,v);case dt._while:return this.parseWhileStatement($);case dt._with:return this.parseWithStatement($);case dt.braceL:return this.parseBlock(!0,$);case dt.semi:return this.parseEmptyStatement($);case dt._export:case dt._import:if(this.options.ecmaVersion>10&&_===dt._import){ht.lastIndex=this.pos;var ae=ht.exec(this.input),pe=this.pos+ae[0].length,we=this.input.charCodeAt(pe);if(40===we||46===we)return this.parseExpressionStatement($,this.parseExpression())}return this.options.allowImportExportEverywhere||(o||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===dt._import?this.parseImport($):this.parseExport($,s);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement($,!0,!i);var _e=this.value,et=this.parseExpression();return _===dt.name&&"Identifier"===et.type&&this.eat(dt.colon)?this.parseLabeledStatement($,_e,et,i):this.parseExpressionStatement($,et)}},Ct.parseBreakContinueStatement=function(i,o){var s="break"===o;this.next(),this.eat(dt.semi)||this.insertSemicolon()?i.label=null:this.type!==dt.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var v=0;v=6?this.eat(dt.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},Ct.parseForStatement=function(i){this.next();var o=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(St),this.enterScope(0),this.expect(dt.parenL),this.type===dt.semi)return o>-1&&this.unexpected(o),this.parseFor(i,null);var s=this.isLet();if(this.type===dt._var||this.type===dt._const||s){var v=this.startNode(),_=s?"let":this.value;return this.next(),this.parseVar(v,!0,_),this.finishNode(v,"VariableDeclaration"),(this.type===dt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===v.declarations.length?(this.options.ecmaVersion>=9&&(this.type===dt._in?o>-1&&this.unexpected(o):i.await=o>-1),this.parseForIn(i,v)):(o>-1&&this.unexpected(o),this.parseFor(i,v))}var $=new DestructuringErrors,ae=this.parseExpression(!0,$);return this.type===dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===dt._in?o>-1&&this.unexpected(o):i.await=o>-1),this.toAssignable(ae,!1,$),this.checkLVal(ae),this.parseForIn(i,ae)):(this.checkExpressionErrors($,!0),o>-1&&this.unexpected(o),this.parseFor(i,ae))},Ct.parseFunctionStatement=function(i,o,s){return this.next(),this.parseFunction(i,kt|(s?0:At),!1,o)},Ct.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(dt._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},Ct.parseReturnStatement=function(i){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(dt.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},Ct.parseSwitchStatement=function(i){var o;this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(dt.braceL),this.labels.push(_t),this.enterScope(0);for(var s=!1;this.type!==dt.braceR;)if(this.type===dt._case||this.type===dt._default){var v=this.type===dt._case;o&&this.finishNode(o,"SwitchCase"),i.cases.push(o=this.startNode()),o.consequent=[],this.next(),v?o.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,o.test=null),this.expect(dt.colon)}else o||this.unexpected(),o.consequent.push(this.parseStatement(null));return this.exitScope(),o&&this.finishNode(o,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},Ct.parseThrowStatement=function(i){return this.next(),ut.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var Et=[];Ct.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===dt._catch){var o=this.startNode();if(this.next(),this.eat(dt.parenL)){o.param=this.parseBindingAtom();var s="Identifier"===o.param.type;this.enterScope(s?32:0),this.checkLVal(o.param,s?4:2),this.expect(dt.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),o.param=null,this.enterScope(0);o.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(o,"CatchClause")}return i.finalizer=this.eat(dt._finally)?this.parseBlock():null,i.handler||i.finalizer||this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},Ct.parseVarStatement=function(i,o){return this.next(),this.parseVar(i,!1,o),this.semicolon(),this.finishNode(i,"VariableDeclaration")},Ct.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(St),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},Ct.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},Ct.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},Ct.parseLabeledStatement=function(i,o,s,v){for(var _=0,$=this.labels;_<$.length;_+=1){$[_].name===o&&this.raise(s.start,"Label '"+o+"' is already declared")}for(var ae=this.type.isLoop?"loop":this.type===dt._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var we=this.labels[pe];if(we.statementStart!==i.start)break;we.statementStart=this.start,we.kind=ae}return this.labels.push({name:o,kind:ae,statementStart:this.start}),i.body=this.parseStatement(v?-1===v.indexOf("label")?v+"label":v:"label"),this.labels.pop(),i.label=s,this.finishNode(i,"LabeledStatement")},Ct.parseExpressionStatement=function(i,o){return i.expression=o,this.semicolon(),this.finishNode(i,"ExpressionStatement")},Ct.parseBlock=function(i,o,s){for(void 0===i&&(i=!0),void 0===o&&(o=this.startNode()),o.body=[],this.expect(dt.braceL),i&&this.enterScope(0);this.type!==dt.braceR;){var v=this.parseStatement(null);o.body.push(v)}return s&&(this.strict=!1),this.next(),i&&this.exitScope(),this.finishNode(o,"BlockStatement")},Ct.parseFor=function(i,o){return i.init=o,this.expect(dt.semi),i.test=this.type===dt.semi?null:this.parseExpression(),this.expect(dt.semi),i.update=this.type===dt.parenR?null:this.parseExpression(),this.expect(dt.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},Ct.parseForIn=function(i,o){var s=this.type===dt._in;return this.next(),"VariableDeclaration"===o.type&&null!=o.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==o.kind||"Identifier"!==o.declarations[0].id.type)?this.raise(o.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===o.type&&this.raise(o.start,"Invalid left-hand side in for-loop"),i.left=o,i.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(dt.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,s?"ForInStatement":"ForOfStatement")},Ct.parseVar=function(i,o,s){for(i.declarations=[],i.kind=s;;){var v=this.startNode();if(this.parseVarId(v,s),this.eat(dt.eq)?v.init=this.parseMaybeAssign(o):"const"!==s||this.type===dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===v.id.type||o&&(this.type===dt._in||this.isContextual("of"))?v.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(dt.comma))break}return i},Ct.parseVarId=function(i,o){i.id=this.parseBindingAtom(),this.checkLVal(i.id,"var"===o?1:2,!1)};var kt=1,At=2;Ct.parseFunction=function(i,o,s,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===dt.star&&o&At&&this.unexpected(),i.generator=this.eat(dt.star)),this.options.ecmaVersion>=8&&(i.async=!!v),o&kt&&(i.id=4&o&&this.type!==dt.name?null:this.parseIdent(),!i.id||o&At||this.checkLVal(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?1:2:3));var _=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(i.async,i.generator)),o&kt||(i.id=this.type===dt.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,s,!1),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(i,o&kt?"FunctionDeclaration":"FunctionExpression")},Ct.parseFunctionParams=function(i){this.expect(dt.parenL),i.params=this.parseBindingList(dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ct.parseClass=function(i,o){this.next();var s=this.strict;this.strict=!0,this.parseClassId(i,o),this.parseClassSuper(i);var v=this.startNode(),_=!1;for(v.body=[],this.expect(dt.braceL);this.type!==dt.braceR;){var $=this.parseClassElement(null!==i.superClass);$&&(v.body.push($),"MethodDefinition"===$.type&&"constructor"===$.kind&&(_&&this.raise($.start,"Duplicate constructor in the same class"),_=!0))}return this.strict=s,this.next(),i.body=this.finishNode(v,"ClassBody"),this.finishNode(i,o?"ClassDeclaration":"ClassExpression")},Ct.parseClassElement=function(i){var o=this;if(this.eat(dt.semi))return null;var s=this.startNode(),tryContextual=function(i,v){void 0===v&&(v=!1);var _=o.start,$=o.startLoc;return!!o.eatContextual(i)&&(!(o.type===dt.parenL||v&&o.canInsertSemicolon())||(s.key&&o.unexpected(),s.computed=!1,s.key=o.startNodeAt(_,$),s.key.name=i,o.finishNode(s.key,"Identifier"),!1))};s.kind="method",s.static=tryContextual("static");var v=this.eat(dt.star),_=!1;v||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(_=!0,v=this.options.ecmaVersion>=9&&this.eat(dt.star)):tryContextual("get")?s.kind="get":tryContextual("set")&&(s.kind="set")),s.key||this.parsePropertyName(s);var $=s.key,ae=!1;return s.computed||s.static||!("Identifier"===$.type&&"constructor"===$.name||"Literal"===$.type&&"constructor"===$.value)?s.static&&"Identifier"===$.type&&"prototype"===$.name&&this.raise($.start,"Classes may not have a static property named prototype"):("method"!==s.kind&&this.raise($.start,"Constructor can't have get/set modifier"),v&&this.raise($.start,"Constructor can't be a generator"),_&&this.raise($.start,"Constructor can't be an async method"),s.kind="constructor",ae=i),this.parseClassMethod(s,v,_,ae),"get"===s.kind&&0!==s.value.params.length&&this.raiseRecoverable(s.value.start,"getter should have no params"),"set"===s.kind&&1!==s.value.params.length&&this.raiseRecoverable(s.value.start,"setter should have exactly one param"),"set"===s.kind&&"RestElement"===s.value.params[0].type&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params"),s},Ct.parseClassMethod=function(i,o,s,v){return i.value=this.parseMethod(o,s,v),this.finishNode(i,"MethodDefinition")},Ct.parseClassId=function(i,o){this.type===dt.name?(i.id=this.parseIdent(),o&&this.checkLVal(i.id,2,!1)):(!0===o&&this.unexpected(),i.id=null)},Ct.parseClassSuper=function(i){i.superClass=this.eat(dt._extends)?this.parseExprSubscripts():null},Ct.parseExport=function(i,o){if(this.next(),this.eat(dt.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(i.exported=this.parseIdent(!0),this.checkExport(o,i.exported.name,this.lastTokStart)):i.exported=null),this.expectContextual("from"),this.type!==dt.string&&this.unexpected(),i.source=this.parseExprAtom(),this.semicolon(),this.finishNode(i,"ExportAllDeclaration");if(this.eat(dt._default)){var s;if(this.checkExport(o,"default",this.lastTokStart),this.type===dt._function||(s=this.isAsyncFunction())){var v=this.startNode();this.next(),s&&this.next(),i.declaration=this.parseFunction(v,4|kt,!1,s)}else if(this.type===dt._class){var _=this.startNode();i.declaration=this.parseClass(_,"nullableID")}else i.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(i,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())i.declaration=this.parseStatement(null),"VariableDeclaration"===i.declaration.type?this.checkVariableExport(o,i.declaration.declarations):this.checkExport(o,i.declaration.id.name,i.declaration.id.start),i.specifiers=[],i.source=null;else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(o),this.eatContextual("from"))this.type!==dt.string&&this.unexpected(),i.source=this.parseExprAtom();else{for(var $=0,ae=i.specifiers;$=6&&i)switch(i.type){case"Identifier":this.inAsync&&"await"===i.name&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.toAssignable($,o),"RestElement"!==$.type||"ArrayPattern"!==$.argument.type&&"ObjectPattern"!==$.argument.type||this.raise($.argument.start,"Unexpected token")}break;case"Property":"init"!==i.kind&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,o);break;case"ArrayExpression":i.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(i.elements,o);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,o),"AssignmentPattern"===i.argument.type&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==i.operator&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,o);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(i.expression,o,s);break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!o)break;default:this.raise(i.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return i},Dt.toAssignableList=function(i,o){for(var s=i.length,v=0;v=6)switch(this.type){case dt.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(dt.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case dt.braceL:return this.parseObj(!0)}return this.parseIdent()},Dt.parseBindingList=function(i,o,s){for(var v=[],_=!0;!this.eat(i);)if(_?_=!1:this.expect(dt.comma),o&&this.type===dt.comma)v.push(null);else{if(s&&this.afterTrailingComma(i))break;if(this.type===dt.ellipsis){var $=this.parseRestBinding();this.parseBindingListItem($),v.push($),this.type===dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}var ae=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(ae),v.push(ae)}return v},Dt.parseBindingListItem=function(i){return i},Dt.parseMaybeDefault=function(i,o,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(dt.eq))return s;var v=this.startNodeAt(i,o);return v.left=s,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},Dt.checkLVal=function(i,o,s){switch(void 0===o&&(o=0),i.type){case"Identifier":2===o&&"let"===i.name&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(o?"Binding ":"Assigning to ")+i.name+" in strict mode"),s&&(has(s,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),s[i.name]=!0),0!==o&&5!==o&&this.declareName(i.name,o,i.start);break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":o&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ObjectPattern":for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.checkLVal($,o,s)}break;case"Property":this.checkLVal(i.value,o,s);break;case"ArrayPattern":for(var ae=0,pe=i.elements;ae=9&&"SpreadElement"===i.type||this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var v,_=i.key;switch(_.type){case"Identifier":v=_.name;break;case"Literal":v=String(_.value);break;default:return}var $=i.kind;if(this.options.ecmaVersion>=6)"__proto__"===v&&"init"===$&&(o.proto&&(s?s.doubleProto<0&&(s.doubleProto=_.start):this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),o.proto=!0);else{var ae=o[v="$"+v];if(ae)("init"===$?this.strict&&ae.init||ae.get||ae.set:ae.init||ae[$])&&this.raiseRecoverable(_.start,"Redefinition of property");else ae=o[v]={init:!1,get:!1,set:!1};ae[$]=!0}}},Pt.parseExpression=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeAssign(i,o);if(this.type===dt.comma){var $=this.startNodeAt(s,v);for($.expressions=[_];this.eat(dt.comma);)$.expressions.push(this.parseMaybeAssign(i,o));return this.finishNode($,"SequenceExpression")}return _},Pt.parseMaybeAssign=function(i,o,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var v=!1,_=-1,$=-1;o?(_=o.parenthesizedAssign,$=o.trailingComma,o.parenthesizedAssign=o.trailingComma=-1):(o=new DestructuringErrors,v=!0);var ae=this.start,pe=this.startLoc;this.type!==dt.parenL&&this.type!==dt.name||(this.potentialArrowAt=this.start);var we=this.parseMaybeConditional(i,o);if(s&&(we=s.call(this,we,ae,pe)),this.type.isAssign){var _e=this.startNodeAt(ae,pe);return _e.operator=this.value,_e.left=this.type===dt.eq?this.toAssignable(we,!1,o):we,v||(o.parenthesizedAssign=o.trailingComma=o.doubleProto=-1),o.shorthandAssign>=_e.left.start&&(o.shorthandAssign=-1),this.checkLVal(we),this.next(),_e.right=this.parseMaybeAssign(i),this.finishNode(_e,"AssignmentExpression")}return v&&this.checkExpressionErrors(o,!0),_>-1&&(o.parenthesizedAssign=_),$>-1&&(o.trailingComma=$),we},Pt.parseMaybeConditional=function(i,o){var s=this.start,v=this.startLoc,_=this.parseExprOps(i,o);if(this.checkExpressionErrors(o))return _;if(this.eat(dt.question)){var $=this.startNodeAt(s,v);return $.test=_,$.consequent=this.parseMaybeAssign(),this.expect(dt.colon),$.alternate=this.parseMaybeAssign(i),this.finishNode($,"ConditionalExpression")}return _},Pt.parseExprOps=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeUnary(o,!1);return this.checkExpressionErrors(o)||_.start===s&&"ArrowFunctionExpression"===_.type?_:this.parseExprOp(_,s,v,-1,i)},Pt.parseExprOp=function(i,o,s,v,_){var $=this.type.binop;if(null!=$&&(!_||this.type!==dt._in)&&$>v){var ae=this.type===dt.logicalOR||this.type===dt.logicalAND,pe=this.type===dt.coalesce;pe&&($=dt.logicalAND.binop);var we=this.value;this.next();var _e=this.start,et=this.startLoc,tt=this.parseExprOp(this.parseMaybeUnary(null,!1),_e,et,$,_),nt=this.buildBinary(o,s,i,tt,we,ae||pe);return(ae&&this.type===dt.coalesce||pe&&(this.type===dt.logicalOR||this.type===dt.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(nt,o,s,v,_)}return i},Pt.buildBinary=function(i,o,s,v,_,$){var ae=this.startNodeAt(i,o);return ae.left=s,ae.operator=_,ae.right=v,this.finishNode(ae,$?"LogicalExpression":"BinaryExpression")},Pt.parseMaybeUnary=function(i,o){var s,v=this.start,_=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))s=this.parseAwait(),o=!0;else if(this.type.prefix){var $=this.startNode(),ae=this.type===dt.incDec;$.operator=this.value,$.prefix=!0,this.next(),$.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(i,!0),ae?this.checkLVal($.argument):this.strict&&"delete"===$.operator&&"Identifier"===$.argument.type?this.raiseRecoverable($.start,"Deleting local variable in strict mode"):o=!0,s=this.finishNode($,ae?"UpdateExpression":"UnaryExpression")}else{if(s=this.parseExprSubscripts(i),this.checkExpressionErrors(i))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var pe=this.startNodeAt(v,_);pe.operator=this.value,pe.prefix=!1,pe.argument=s,this.checkLVal(s),this.next(),s=this.finishNode(pe,"UpdateExpression")}}return!o&&this.eat(dt.starstar)?this.buildBinary(v,_,s,this.parseMaybeUnary(null,!1),"**",!1):s},Pt.parseExprSubscripts=function(i){var o=this.start,s=this.startLoc,v=this.parseExprAtom(i);if("ArrowFunctionExpression"===v.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return v;var _=this.parseSubscripts(v,o,s);return i&&"MemberExpression"===_.type&&(i.parenthesizedAssign>=_.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=_.start&&(i.parenthesizedBind=-1)),_},Pt.parseSubscripts=function(i,o,s,v){for(var _=this.options.ecmaVersion>=8&&"Identifier"===i.type&&"async"===i.name&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&i.end-i.start==5&&this.potentialArrowAt===i.start,$=!1;;){var ae=this.parseSubscript(i,o,s,v,_,$);if(ae.optional&&($=!0),ae===i||"ArrowFunctionExpression"===ae.type){if($){var pe=this.startNodeAt(o,s);pe.expression=ae,ae=this.finishNode(pe,"ChainExpression")}return ae}i=ae}},Pt.parseSubscript=function(i,o,s,v,_,$){var ae=this.options.ecmaVersion>=11,pe=ae&&this.eat(dt.questionDot);v&&pe&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var we=this.eat(dt.bracketL);if(we||pe&&this.type!==dt.parenL&&this.type!==dt.backQuote||this.eat(dt.dot)){var _e=this.startNodeAt(o,s);_e.object=i,_e.property=we?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),_e.computed=!!we,we&&this.expect(dt.bracketR),ae&&(_e.optional=pe),i=this.finishNode(_e,"MemberExpression")}else if(!v&&this.eat(dt.parenL)){var et=new DestructuringErrors,tt=this.yieldPos,nt=this.awaitPos,rt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var it=this.parseExprList(dt.parenR,this.options.ecmaVersion>=8,!1,et);if(_&&!pe&&!this.canInsertSemicolon()&&this.eat(dt.arrow))return this.checkPatternErrors(et,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=tt,this.awaitPos=nt,this.awaitIdentPos=rt,this.parseArrowExpression(this.startNodeAt(o,s),it,!0);this.checkExpressionErrors(et,!0),this.yieldPos=tt||this.yieldPos,this.awaitPos=nt||this.awaitPos,this.awaitIdentPos=rt||this.awaitIdentPos;var ot=this.startNodeAt(o,s);ot.callee=i,ot.arguments=it,ae&&(ot.optional=pe),i=this.finishNode(ot,"CallExpression")}else if(this.type===dt.backQuote){(pe||$)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var st=this.startNodeAt(o,s);st.tag=i,st.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(st,"TaggedTemplateExpression")}return i},Pt.parseExprAtom=function(i){this.type===dt.slash&&this.readRegexp();var o,s=this.potentialArrowAt===this.start;switch(this.type){case dt._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),o=this.startNode(),this.next(),this.type!==dt.parenL||this.allowDirectSuper||this.raise(o.start,"super() call outside constructor of a subclass"),this.type!==dt.dot&&this.type!==dt.bracketL&&this.type!==dt.parenL&&this.unexpected(),this.finishNode(o,"Super");case dt._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case dt.name:var v=this.start,_=this.startLoc,$=this.containsEsc,ae=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!$&&"async"===ae.name&&!this.canInsertSemicolon()&&this.eat(dt._function))return this.parseFunction(this.startNodeAt(v,_),0,!1,!0);if(s&&!this.canInsertSemicolon()){if(this.eat(dt.arrow))return this.parseArrowExpression(this.startNodeAt(v,_),[ae],!1);if(this.options.ecmaVersion>=8&&"async"===ae.name&&this.type===dt.name&&!$)return ae=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(dt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,_),[ae],!0)}return ae;case dt.regexp:var pe=this.value;return(o=this.parseLiteral(pe.value)).regex={pattern:pe.pattern,flags:pe.flags},o;case dt.num:case dt.string:return this.parseLiteral(this.value);case dt._null:case dt._true:case dt._false:return(o=this.startNode()).value=this.type===dt._null?null:this.type===dt._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case dt.parenL:var we=this.start,_e=this.parseParenAndDistinguishExpression(s);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_e)&&(i.parenthesizedAssign=we),i.parenthesizedBind<0&&(i.parenthesizedBind=we)),_e;case dt.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(dt.bracketR,!0,!0,i),this.finishNode(o,"ArrayExpression");case dt.braceL:return this.parseObj(!1,i);case dt._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case dt._class:return this.parseClass(this.startNode(),!1);case dt._new:return this.parseNew();case dt.backQuote:return this.parseTemplate();case dt._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Pt.parseExprImport=function(){var i=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var o=this.parseIdent(!0);switch(this.type){case dt.parenL:return this.parseDynamicImport(i);case dt.dot:return i.meta=o,this.parseImportMeta(i);default:this.unexpected()}},Pt.parseDynamicImport=function(i){if(this.next(),i.source=this.parseMaybeAssign(),!this.eat(dt.parenR)){var o=this.start;this.eat(dt.comma)&&this.eat(dt.parenR)?this.raiseRecoverable(o,"Trailing comma is not allowed in import()"):this.unexpected(o)}return this.finishNode(i,"ImportExpression")},Pt.parseImportMeta=function(i){this.next();var o=this.containsEsc;return i.property=this.parseIdent(!0),"meta"!==i.property.name&&this.raiseRecoverable(i.property.start,"The only valid meta property for import is 'import.meta'"),o&&this.raiseRecoverable(i.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(i.start,"Cannot use 'import.meta' outside a module"),this.finishNode(i,"MetaProperty")},Pt.parseLiteral=function(i){var o=this.startNode();return o.value=i,o.raw=this.input.slice(this.start,this.end),110===o.raw.charCodeAt(o.raw.length-1)&&(o.bigint=o.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(o,"Literal")},Pt.parseParenExpression=function(){this.expect(dt.parenL);var i=this.parseExpression();return this.expect(dt.parenR),i},Pt.parseParenAndDistinguishExpression=function(i){var o,s=this.start,v=this.startLoc,_=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $,ae=this.start,pe=this.startLoc,we=[],_e=!0,et=!1,tt=new DestructuringErrors,nt=this.yieldPos,rt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==dt.parenR;){if(_e?_e=!1:this.expect(dt.comma),_&&this.afterTrailingComma(dt.parenR,!0)){et=!0;break}if(this.type===dt.ellipsis){$=this.start,we.push(this.parseParenItem(this.parseRestBinding())),this.type===dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}we.push(this.parseMaybeAssign(!1,tt,this.parseParenItem))}var it=this.start,ot=this.startLoc;if(this.expect(dt.parenR),i&&!this.canInsertSemicolon()&&this.eat(dt.arrow))return this.checkPatternErrors(tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nt,this.awaitPos=rt,this.parseParenArrowList(s,v,we);we.length&&!et||this.unexpected(this.lastTokStart),$&&this.unexpected($),this.checkExpressionErrors(tt,!0),this.yieldPos=nt||this.yieldPos,this.awaitPos=rt||this.awaitPos,we.length>1?((o=this.startNodeAt(ae,pe)).expressions=we,this.finishNodeAt(o,"SequenceExpression",it,ot)):o=we[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var st=this.startNodeAt(s,v);return st.expression=o,this.finishNode(st,"ParenthesizedExpression")}return o},Pt.parseParenItem=function(i){return i},Pt.parseParenArrowList=function(i,o,s){return this.parseArrowExpression(this.startNodeAt(i,o),s)};var Tt=[];Pt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var i=this.startNode(),o=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(dt.dot)){i.meta=o;var s=this.containsEsc;return i.property=this.parseIdent(!0),"target"!==i.property.name&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(i.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(i.start,"'new.target' can only be used in functions"),this.finishNode(i,"MetaProperty")}var v=this.start,_=this.startLoc,$=this.type===dt._import;return i.callee=this.parseSubscripts(this.parseExprAtom(),v,_,!0),$&&"ImportExpression"===i.callee.type&&this.raise(v,"Cannot use new with import()"),this.eat(dt.parenL)?i.arguments=this.parseExprList(dt.parenR,this.options.ecmaVersion>=8,!1):i.arguments=Tt,this.finishNode(i,"NewExpression")},Pt.parseTemplateElement=function(i){var o=i.isTagged,s=this.startNode();return this.type===dt.invalidTemplate?(o||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===dt.backQuote,this.finishNode(s,"TemplateElement")},Pt.parseTemplate=function(i){void 0===i&&(i={});var o=i.isTagged;void 0===o&&(o=!1);var s=this.startNode();this.next(),s.expressions=[];var v=this.parseTemplateElement({isTagged:o});for(s.quasis=[v];!v.tail;)this.type===dt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(dt.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(dt.braceR),s.quasis.push(v=this.parseTemplateElement({isTagged:o}));return this.next(),this.finishNode(s,"TemplateLiteral")},Pt.isAsyncProp=function(i){return!i.computed&&"Identifier"===i.key.type&&"async"===i.key.name&&(this.type===dt.name||this.type===dt.num||this.type===dt.string||this.type===dt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===dt.star)&&!ut.test(this.input.slice(this.lastTokEnd,this.start))},Pt.parseObj=function(i,o){var s=this.startNode(),v=!0,_={};for(s.properties=[],this.next();!this.eat(dt.braceR);){if(v)v=!1;else if(this.expect(dt.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(dt.braceR))break;var $=this.parseProperty(i,o);i||this.checkPropClash($,_,o),s.properties.push($)}return this.finishNode(s,i?"ObjectPattern":"ObjectExpression")},Pt.parseProperty=function(i,o){var s,v,_,$,ae=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(dt.ellipsis))return i?(ae.argument=this.parseIdent(!1),this.type===dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(ae,"RestElement")):(this.type===dt.parenL&&o&&(o.parenthesizedAssign<0&&(o.parenthesizedAssign=this.start),o.parenthesizedBind<0&&(o.parenthesizedBind=this.start)),ae.argument=this.parseMaybeAssign(!1,o),this.type===dt.comma&&o&&o.trailingComma<0&&(o.trailingComma=this.start),this.finishNode(ae,"SpreadElement"));this.options.ecmaVersion>=6&&(ae.method=!1,ae.shorthand=!1,(i||o)&&(_=this.start,$=this.startLoc),i||(s=this.eat(dt.star)));var pe=this.containsEsc;return this.parsePropertyName(ae),!i&&!pe&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(ae)?(v=!0,s=this.options.ecmaVersion>=9&&this.eat(dt.star),this.parsePropertyName(ae,o)):v=!1,this.parsePropertyValue(ae,i,s,v,_,$,o,pe),this.finishNode(ae,"Property")},Pt.parsePropertyValue=function(i,o,s,v,_,$,ae,pe){if((s||v)&&this.type===dt.colon&&this.unexpected(),this.eat(dt.colon))i.value=o?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,ae),i.kind="init";else if(this.options.ecmaVersion>=6&&this.type===dt.parenL)o&&this.unexpected(),i.kind="init",i.method=!0,i.value=this.parseMethod(s,v);else if(o||pe||!(this.options.ecmaVersion>=5)||i.computed||"Identifier"!==i.key.type||"get"!==i.key.name&&"set"!==i.key.name||this.type===dt.comma||this.type===dt.braceR||this.type===dt.eq)this.options.ecmaVersion>=6&&!i.computed&&"Identifier"===i.key.type?((s||v)&&this.unexpected(),this.checkUnreserved(i.key),"await"!==i.key.name||this.awaitIdentPos||(this.awaitIdentPos=_),i.kind="init",o?i.value=this.parseMaybeDefault(_,$,i.key):this.type===dt.eq&&ae?(ae.shorthandAssign<0&&(ae.shorthandAssign=this.start),i.value=this.parseMaybeDefault(_,$,i.key)):i.value=i.key,i.shorthand=!0):this.unexpected();else{(s||v)&&this.unexpected(),i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);var we="get"===i.kind?0:1;if(i.value.params.length!==we){var _e=i.value.start;"get"===i.kind?this.raiseRecoverable(_e,"getter should have no params"):this.raiseRecoverable(_e,"setter should have exactly one param")}else"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}},Pt.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(dt.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(dt.bracketR),i.key;i.computed=!1}return i.key=this.type===dt.num||this.type===dt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Pt.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},Pt.parseMethod=function(i,o,s){var v=this.startNode(),_=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.initFunction(v),this.options.ecmaVersion>=6&&(v.generator=i),this.options.ecmaVersion>=8&&(v.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(o,v.generator)|(s?128:0)),this.expect(dt.parenL),v.params=this.parseBindingList(dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(v,!1,!0),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(v,"FunctionExpression")},Pt.parseArrowExpression=function(i,o,s){var v=this.yieldPos,_=this.awaitPos,$=this.awaitIdentPos;return this.enterScope(16|functionFlags(s,!1)),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(o,!0),this.parseFunctionBody(i,!0,!1),this.yieldPos=v,this.awaitPos=_,this.awaitIdentPos=$,this.finishNode(i,"ArrowFunctionExpression")},Pt.parseFunctionBody=function(i,o,s){var v=o&&this.type!==dt.braceL,_=this.strict,$=!1;if(v)i.body=this.parseMaybeAssign(),i.expression=!0,this.checkParams(i,!1);else{var ae=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);_&&!ae||($=this.strictDirective(this.end))&&ae&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list");var pe=this.labels;this.labels=[],$&&(this.strict=!0),this.checkParams(i,!_&&!$&&!o&&!s&&this.isSimpleParamList(i.params)),this.strict&&i.id&&this.checkLVal(i.id,5),i.body=this.parseBlock(!1,void 0,$&&!_),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=pe}this.exitScope()},Pt.isSimpleParamList=function(i){for(var o=0,s=i;o-1||_.functions.indexOf(i)>-1||_.var.indexOf(i)>-1,_.lexical.push(i),this.inModule&&1&_.flags&&delete this.undefinedExports[i]}else if(4===o){this.currentScope().lexical.push(i)}else if(3===o){var $=this.currentScope();v=this.treatFunctionsAsVar?$.lexical.indexOf(i)>-1:$.lexical.indexOf(i)>-1||$.var.indexOf(i)>-1,$.functions.push(i)}else for(var ae=this.scopeStack.length-1;ae>=0;--ae){var pe=this.scopeStack[ae];if(pe.lexical.indexOf(i)>-1&&!(32&pe.flags&&pe.lexical[0]===i)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(i)>-1){v=!0;break}if(pe.var.push(i),this.inModule&&1&pe.flags&&delete this.undefinedExports[i],3&pe.flags)break}v&&this.raiseRecoverable(s,"Identifier '"+i+"' has already been declared")},Ft.checkLocalExport=function(i){-1===this.scopeStack[0].lexical.indexOf(i.name)&&-1===this.scopeStack[0].var.indexOf(i.name)&&(this.undefinedExports[i.name]=i)},Ft.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ft.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags)return o}},Ft.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags&&!(16&o.flags))return o}};var Bt=function Node(i,o,s){this.type="",this.start=o,this.end=0,i.options.locations&&(this.loc=new vt(i,s)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[o,0])},Lt=bt.prototype;function finishNodeAt(i,o,s,v){return i.type=o,i.end=s,this.options.locations&&(i.loc.end=v),this.options.ranges&&(i.range[1]=s),i}Lt.startNode=function(){return new Bt(this,this.start,this.startLoc)},Lt.startNodeAt=function(i,o){return new Bt(this,i,o)},Lt.finishNode=function(i,o){return finishNodeAt.call(this,i,o,this.lastTokEnd,this.lastTokEndLoc)},Lt.finishNodeAt=function(i,o,s,v){return finishNodeAt.call(this,i,o,s,v)};var jt=function TokContext(i,o,s,v,_){this.token=i,this.isExpr=!!o,this.preserveSpace=!!s,this.override=v,this.generator=!!_},Mt={b_stat:new jt("{",!1),b_expr:new jt("{",!0),b_tmpl:new jt("${",!1),p_stat:new jt("(",!1),p_expr:new jt("(",!0),q_tmpl:new jt("`",!0,!0,(function(i){return i.tryReadTemplateToken()})),f_stat:new jt("function",!1),f_expr:new jt("function",!0),f_expr_gen:new jt("function",!0,!1,null,!0),f_gen:new jt("function",!1,!1,null,!0)},Qt=bt.prototype;Qt.initialContext=function(){return[Mt.b_stat]},Qt.braceIsBlock=function(i){var o=this.curContext();return o===Mt.f_expr||o===Mt.f_stat||(i!==dt.colon||o!==Mt.b_stat&&o!==Mt.b_expr?i===dt._return||i===dt.name&&this.exprAllowed?ut.test(this.input.slice(this.lastTokEnd,this.start)):i===dt._else||i===dt.semi||i===dt.eof||i===dt.parenR||i===dt.arrow||(i===dt.braceL?o===Mt.b_stat:i!==dt._var&&i!==dt._const&&i!==dt.name&&!this.exprAllowed):!o.isExpr)},Qt.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var o=this.context[i];if("function"===o.token)return o.generator}return!1},Qt.updateContext=function(i){var o,s=this.type;s.keyword&&i===dt.dot?this.exprAllowed=!1:(o=s.updateContext)?o.call(this,i):this.exprAllowed=s.beforeExpr},dt.parenR.updateContext=dt.braceR.updateContext=function(){if(1!==this.context.length){var i=this.context.pop();i===Mt.b_stat&&"function"===this.curContext().token&&(i=this.context.pop()),this.exprAllowed=!i.isExpr}else this.exprAllowed=!0},dt.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?Mt.b_stat:Mt.b_expr),this.exprAllowed=!0},dt.dollarBraceL.updateContext=function(){this.context.push(Mt.b_tmpl),this.exprAllowed=!0},dt.parenL.updateContext=function(i){var o=i===dt._if||i===dt._for||i===dt._with||i===dt._while;this.context.push(o?Mt.p_stat:Mt.p_expr),this.exprAllowed=!0},dt.incDec.updateContext=function(){},dt._function.updateContext=dt._class.updateContext=function(i){!i.beforeExpr||i===dt.semi||i===dt._else||i===dt._return&&ut.test(this.input.slice(this.lastTokEnd,this.start))||(i===dt.colon||i===dt.braceL)&&this.curContext()===Mt.b_stat?this.context.push(Mt.f_stat):this.context.push(Mt.f_expr),this.exprAllowed=!1},dt.backQuote.updateContext=function(){this.curContext()===Mt.q_tmpl?this.context.pop():this.context.push(Mt.q_tmpl),this.exprAllowed=!1},dt.star.updateContext=function(i){if(i===dt._function){var o=this.context.length-1;this.context[o]===Mt.f_expr?this.context[o]=Mt.f_expr_gen:this.context[o]=Mt.f_gen}this.exprAllowed=!0},dt.name.updateContext=function(i){var o=!1;this.options.ecmaVersion>=6&&i!==dt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(o=!0),this.exprAllowed=o};var Vt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ut=Vt+" Extended_Pictographic",Wt={9:Vt,10:Ut,11:Ut},$t="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",qt="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",zt=qt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Zt={9:qt,10:zt,11:zt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},Ht={};function buildUnicodeData(i){var o=Ht[i]={binary:wordsRegexp(Wt[i]+" "+$t),nonBinary:{General_Category:wordsRegexp($t),Script:wordsRegexp(Zt[i])}};o.nonBinary.Script_Extensions=o.nonBinary.Script,o.nonBinary.gc=o.nonBinary.General_Category,o.nonBinary.sc=o.nonBinary.Script,o.nonBinary.scx=o.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var Gt=bt.prototype,Xt=function RegExpValidationState(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Ht[i.options.ecmaVersion>=11?11:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function isSyntaxCharacter(i){return 36===i||i>=40&&i<=43||46===i||63===i||i>=91&&i<=94||i>=123&&i<=125}function isRegExpIdentifierStart(i){return isIdentifierStart(i,!0)||36===i||95===i}function isRegExpIdentifierPart(i){return isIdentifierChar(i,!0)||36===i||95===i||8204===i||8205===i}function isControlLetter(i){return i>=65&&i<=90||i>=97&&i<=122}function isCharacterClassEscape(i){return 100===i||68===i||115===i||83===i||119===i||87===i}function isUnicodePropertyNameCharacter(i){return isControlLetter(i)||95===i}function isUnicodePropertyValueCharacter(i){return isUnicodePropertyNameCharacter(i)||isDecimalDigit(i)}function isDecimalDigit(i){return i>=48&&i<=57}function isHexDigit(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function hexToInt(i){return i>=65&&i<=70?i-65+10:i>=97&&i<=102?i-97+10:i-48}function isOctalDigit(i){return i>=48&&i<=55}Xt.prototype.reset=function reset(i,o,s){var v=-1!==s.indexOf("u");this.start=0|i,this.source=o+"",this.flags=s,this.switchU=v&&this.parser.options.ecmaVersion>=6,this.switchN=v&&this.parser.options.ecmaVersion>=9},Xt.prototype.raise=function raise(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)},Xt.prototype.at=function at(i,o){void 0===o&&(o=!1);var s=this.source,v=s.length;if(i>=v)return-1;var _=s.charCodeAt(i);if(!o&&!this.switchU||_<=55295||_>=57344||i+1>=v)return _;var $=s.charCodeAt(i+1);return $>=56320&&$<=57343?(_<<10)+$-56613888:_},Xt.prototype.nextIndex=function nextIndex(i,o){void 0===o&&(o=!1);var s=this.source,v=s.length;if(i>=v)return v;var _,$=s.charCodeAt(i);return!o&&!this.switchU||$<=55295||$>=57344||i+1>=v||(_=s.charCodeAt(i+1))<56320||_>57343?i+1:i+2},Xt.prototype.current=function current(i){return void 0===i&&(i=!1),this.at(this.pos,i)},Xt.prototype.lookahead=function lookahead(i){return void 0===i&&(i=!1),this.at(this.nextIndex(this.pos,i),i)},Xt.prototype.advance=function advance(i){void 0===i&&(i=!1),this.pos=this.nextIndex(this.pos,i)},Xt.prototype.eat=function eat(i,o){return void 0===o&&(o=!1),this.current(o)===i&&(this.advance(o),!0)},Gt.validateRegExpFlags=function(i){for(var o=i.validFlags,s=i.flags,v=0;v-1&&this.raise(i.start,"Duplicate regular expression flag")}},Gt.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&i.groupNames.length>0&&(i.switchN=!0,this.regexp_pattern(i))},Gt.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames.length=0,i.backReferenceNames.length=0,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var o=0,s=i.backReferenceNames;o=9&&(s=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!s,!0}return i.pos=o,!1},Gt.regexp_eatQuantifier=function(i,o){return void 0===o&&(o=!1),!!this.regexp_eatQuantifierPrefix(i,o)&&(i.eat(63),!0)},Gt.regexp_eatQuantifierPrefix=function(i,o){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,o)},Gt.regexp_eatBracedQuantifier=function(i,o){var s=i.pos;if(i.eat(123)){var v=0,_=-1;if(this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(_=i.lastIntValue),i.eat(125)))return-1!==_&&_=9?this.regexp_groupSpecifier(i):63===i.current()&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},Gt.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},Gt.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},Gt.regexp_eatSyntaxCharacter=function(i){var o=i.current();return!!isSyntaxCharacter(o)&&(i.lastIntValue=o,i.advance(),!0)},Gt.regexp_eatPatternCharacters=function(i){for(var o=i.pos,s=0;-1!==(s=i.current())&&!isSyntaxCharacter(s);)i.advance();return i.pos!==o},Gt.regexp_eatExtendedPatternCharacter=function(i){var o=i.current();return!(-1===o||36===o||o>=40&&o<=43||46===o||63===o||91===o||94===o||124===o)&&(i.advance(),!0)},Gt.regexp_groupSpecifier=function(i){if(i.eat(63)){if(this.regexp_eatGroupName(i))return-1!==i.groupNames.indexOf(i.lastStringValue)&&i.raise("Duplicate capture group name"),void i.groupNames.push(i.lastStringValue);i.raise("Invalid group")}},Gt.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},Gt.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=codePointToString(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=codePointToString(i.lastIntValue);return!0}return!1},Gt.regexp_eatRegExpIdentifierStart=function(i){var o=i.pos,s=this.options.ecmaVersion>=11,v=i.current(s);return i.advance(s),92===v&&this.regexp_eatRegExpUnicodeEscapeSequence(i,s)&&(v=i.lastIntValue),isRegExpIdentifierStart(v)?(i.lastIntValue=v,!0):(i.pos=o,!1)},Gt.regexp_eatRegExpIdentifierPart=function(i){var o=i.pos,s=this.options.ecmaVersion>=11,v=i.current(s);return i.advance(s),92===v&&this.regexp_eatRegExpUnicodeEscapeSequence(i,s)&&(v=i.lastIntValue),isRegExpIdentifierPart(v)?(i.lastIntValue=v,!0):(i.pos=o,!1)},Gt.regexp_eatAtomEscape=function(i){return!!(this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i))||(i.switchU&&(99===i.current()&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},Gt.regexp_eatBackReference=function(i){var o=i.pos;if(this.regexp_eatDecimalEscape(i)){var s=i.lastIntValue;if(i.switchU)return s>i.maxBackReference&&(i.maxBackReference=s),!0;if(s<=i.numCapturingParens)return!0;i.pos=o}return!1},Gt.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},Gt.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i,!1)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},Gt.regexp_eatCControlLetter=function(i){var o=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=o}return!1},Gt.regexp_eatZero=function(i){return 48===i.current()&&!isDecimalDigit(i.lookahead())&&(i.lastIntValue=0,i.advance(),!0)},Gt.regexp_eatControlEscape=function(i){var o=i.current();return 116===o?(i.lastIntValue=9,i.advance(),!0):110===o?(i.lastIntValue=10,i.advance(),!0):118===o?(i.lastIntValue=11,i.advance(),!0):102===o?(i.lastIntValue=12,i.advance(),!0):114===o&&(i.lastIntValue=13,i.advance(),!0)},Gt.regexp_eatControlLetter=function(i){var o=i.current();return!!isControlLetter(o)&&(i.lastIntValue=o%32,i.advance(),!0)},Gt.regexp_eatRegExpUnicodeEscapeSequence=function(i,o){void 0===o&&(o=!1);var s,v=i.pos,_=o||i.switchU;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var $=i.lastIntValue;if(_&&$>=55296&&$<=56319){var ae=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var pe=i.lastIntValue;if(pe>=56320&&pe<=57343)return i.lastIntValue=1024*($-55296)+(pe-56320)+65536,!0}i.pos=ae,i.lastIntValue=$}return!0}if(_&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&((s=i.lastIntValue)>=0&&s<=1114111))return!0;_&&i.raise("Invalid unicode escape"),i.pos=v}return!1},Gt.regexp_eatIdentityEscape=function(i){if(i.switchU)return!!this.regexp_eatSyntaxCharacter(i)||!!i.eat(47)&&(i.lastIntValue=47,!0);var o=i.current();return!(99===o||i.switchN&&107===o)&&(i.lastIntValue=o,i.advance(),!0)},Gt.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var o=i.current();if(o>=49&&o<=57){do{i.lastIntValue=10*i.lastIntValue+(o-48),i.advance()}while((o=i.current())>=48&&o<=57);return!0}return!1},Gt.regexp_eatCharacterClassEscape=function(i){var o=i.current();if(isCharacterClassEscape(o))return i.lastIntValue=-1,i.advance(),!0;if(i.switchU&&this.options.ecmaVersion>=9&&(80===o||112===o)){if(i.lastIntValue=-1,i.advance(),i.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(i)&&i.eat(125))return!0;i.raise("Invalid property name")}return!1},Gt.regexp_eatUnicodePropertyValueExpression=function(i){var o=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var s=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,s,v),!0}}if(i.pos=o,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var _=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,_),!0}return!1},Gt.regexp_validateUnicodePropertyNameAndValue=function(i,o,s){has(i.unicodeProperties.nonBinary,o)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[o].test(s)||i.raise("Invalid property value")},Gt.regexp_validateUnicodePropertyNameOrValue=function(i,o){i.unicodeProperties.binary.test(o)||i.raise("Invalid property name")},Gt.regexp_eatUnicodePropertyName=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyNameCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},Gt.regexp_eatUnicodePropertyValue=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyValueCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},Gt.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},Gt.regexp_eatCharacterClass=function(i){if(i.eat(91)){if(i.eat(94),this.regexp_classRanges(i),i.eat(93))return!0;i.raise("Unterminated character class")}return!1},Gt.regexp_classRanges=function(i){for(;this.regexp_eatClassAtom(i);){var o=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var s=i.lastIntValue;!i.switchU||-1!==o&&-1!==s||i.raise("Invalid character class"),-1!==o&&-1!==s&&o>s&&i.raise("Range out of order in character class")}}},Gt.regexp_eatClassAtom=function(i){var o=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var s=i.current();(99===s||isOctalDigit(s))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=o}var v=i.current();return 93!==v&&(i.lastIntValue=v,i.advance(),!0)},Gt.regexp_eatClassEscape=function(i){var o=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=o}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},Gt.regexp_eatClassControlLetter=function(i){var o=i.current();return!(!isDecimalDigit(o)&&95!==o)&&(i.lastIntValue=o%32,i.advance(),!0)},Gt.regexp_eatHexEscapeSequence=function(i){var o=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=o}return!1},Gt.regexp_eatDecimalDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isDecimalDigit(s=i.current());)i.lastIntValue=10*i.lastIntValue+(s-48),i.advance();return i.pos!==o},Gt.regexp_eatHexDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isHexDigit(s=i.current());)i.lastIntValue=16*i.lastIntValue+hexToInt(s),i.advance();return i.pos!==o},Gt.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var o=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var s=i.lastIntValue;o<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=64*o+8*s+i.lastIntValue:i.lastIntValue=8*o+s}else i.lastIntValue=o;return!0}return!1},Gt.regexp_eatOctalDigit=function(i){var o=i.current();return isOctalDigit(o)?(i.lastIntValue=o-48,i.advance(),!0):(i.lastIntValue=0,!1)},Gt.regexp_eatFixedHexDigits=function(i,o){var s=i.pos;i.lastIntValue=0;for(var v=0;v>10),56320+(1023&i)))}Kt.next=function(i){!i&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Yt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Kt.getToken=function(){return this.next(),new Yt(this)},"undefined"!=typeof Symbol&&(Kt[Symbol.iterator]=function(){var i=this;return{next:function(){var o=i.getToken();return{done:o.type===dt.eof,value:o}}}}),Kt.curContext=function(){return this.context[this.context.length-1]},Kt.nextToken=function(){var i=this.curContext();return i&&i.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(dt.eof):i.override?i.override(this):void this.readToken(this.fullCharCodeAtPos())},Kt.readToken=function(i){return isIdentifierStart(i,this.options.ecmaVersion>=6)||92===i?this.readWord():this.getTokenFromCode(i)},Kt.fullCharCodeAtPos=function(){var i=this.input.charCodeAt(this.pos);return i<=55295||i>=57344?i:(i<<10)+this.input.charCodeAt(this.pos+1)-56613888},Kt.skipBlockComment=function(){var i,o=this.options.onComment&&this.curPosition(),s=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(-1===v&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(lt.lastIndex=s;(i=lt.exec(this.input))&&i.index8&&i<14||i>=5760&&ct.test(String.fromCharCode(i))))break e;++this.pos}}},Kt.finishToken=function(i,o){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=i,this.value=o,this.updateContext(s)},Kt.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var o=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===i&&46===o?(this.pos+=3,this.finishToken(dt.ellipsis)):(++this.pos,this.finishToken(dt.dot))},Kt.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===i?this.finishOp(dt.assign,2):this.finishOp(dt.slash,1)},Kt.readToken_mult_modulo_exp=function(i){var o=this.input.charCodeAt(this.pos+1),s=1,v=42===i?dt.star:dt.modulo;return this.options.ecmaVersion>=7&&42===i&&42===o&&(++s,v=dt.starstar,o=this.input.charCodeAt(this.pos+2)),61===o?this.finishOp(dt.assign,s+1):this.finishOp(v,s)},Kt.readToken_pipe_amp=function(i){var o=this.input.charCodeAt(this.pos+1);if(o===i){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(dt.assign,3);return this.finishOp(124===i?dt.logicalOR:dt.logicalAND,2)}return 61===o?this.finishOp(dt.assign,2):this.finishOp(124===i?dt.bitwiseOR:dt.bitwiseAND,1)},Kt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(dt.assign,2):this.finishOp(dt.bitwiseXOR,1)},Kt.readToken_plus_min=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?45!==o||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!ut.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(dt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===o?this.finishOp(dt.assign,2):this.finishOp(dt.plusMin,1)},Kt.readToken_lt_gt=function(i){var o=this.input.charCodeAt(this.pos+1),s=1;return o===i?(s=62===i&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(dt.assign,s+1):this.finishOp(dt.bitShift,s)):33!==o||60!==i||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===o&&(s=2),this.finishOp(dt.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Kt.readToken_eq_excl=function(i){var o=this.input.charCodeAt(this.pos+1);return 61===o?this.finishOp(dt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===i&&62===o&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(dt.arrow)):this.finishOp(61===i?dt.eq:dt.prefix,1)},Kt.readToken_question=function(){var i=this.options.ecmaVersion;if(i>=11){var o=this.input.charCodeAt(this.pos+1);if(46===o){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(dt.questionDot,2)}if(63===o){if(i>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(dt.assign,3);return this.finishOp(dt.coalesce,2)}}return this.finishOp(dt.question,1)},Kt.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(dt.parenL);case 41:return++this.pos,this.finishToken(dt.parenR);case 59:return++this.pos,this.finishToken(dt.semi);case 44:return++this.pos,this.finishToken(dt.comma);case 91:return++this.pos,this.finishToken(dt.bracketL);case 93:return++this.pos,this.finishToken(dt.bracketR);case 123:return++this.pos,this.finishToken(dt.braceL);case 125:return++this.pos,this.finishToken(dt.braceR);case 58:return++this.pos,this.finishToken(dt.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(dt.backQuote);case 48:var o=this.input.charCodeAt(this.pos+1);if(120===o||88===o)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===o||79===o)return this.readRadixNumber(8);if(98===o||66===o)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 63:return this.readToken_question();case 126:return this.finishOp(dt.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(i)+"'")},Kt.finishOp=function(i,o){var s=this.input.slice(this.pos,this.pos+o);return this.pos+=o,this.finishToken(i,s)},Kt.readRegexp=function(){for(var i,o,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var v=this.input.charAt(this.pos);if(ut.test(v)&&this.raise(s,"Unterminated regular expression"),i)i=!1;else{if("["===v)o=!0;else if("]"===v&&o)o=!1;else if("/"===v&&!o)break;i="\\"===v}++this.pos}var _=this.input.slice(s,this.pos);++this.pos;var $=this.pos,ae=this.readWord1();this.containsEsc&&this.unexpected($);var pe=this.regexpState||(this.regexpState=new Xt(this));pe.reset(s,_,ae),this.validateRegExpFlags(pe),this.validateRegExpPattern(pe);var we=null;try{we=new RegExp(_,ae)}catch(i){}return this.finishToken(dt.regexp,{pattern:_,flags:ae,value:we})},Kt.readInt=function(i,o,s){for(var v=this.options.ecmaVersion>=12&&void 0===o,_=s&&48===this.input.charCodeAt(this.pos),$=this.pos,ae=0,pe=0,we=0,_e=null==o?1/0:o;we<_e;++we,++this.pos){var et=this.input.charCodeAt(this.pos),tt=void 0;if(v&&95===et)_&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===pe&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===we&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),pe=et;else{if((tt=et>=97?et-97+10:et>=65?et-65+10:et>=48&&et<=57?et-48:1/0)>=i)break;pe=et,ae=ae*i+tt}}return v&&95===pe&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===$||null!=o&&this.pos-$!==o?null:ae},Kt.readRadixNumber=function(i){var o=this.pos;this.pos+=2;var s=this.readInt(i);return null==s&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=stringToBigInt(this.input.slice(o,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(dt.num,s)},Kt.readNumber=function(i){var o=this.pos;i||null!==this.readInt(10,void 0,!0)||this.raise(o,"Invalid number");var s=this.pos-o>=2&&48===this.input.charCodeAt(o);s&&this.strict&&this.raise(o,"Invalid number");var v=this.input.charCodeAt(this.pos);if(!s&&!i&&this.options.ecmaVersion>=11&&110===v){var _=stringToBigInt(this.input.slice(o,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(dt.num,_)}s&&/[89]/.test(this.input.slice(o,this.pos))&&(s=!1),46!==v||s||(++this.pos,this.readInt(10),v=this.input.charCodeAt(this.pos)),69!==v&&101!==v||s||(43!==(v=this.input.charCodeAt(++this.pos))&&45!==v||++this.pos,null===this.readInt(10)&&this.raise(o,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var $,ae=($=this.input.slice(o,this.pos),s?parseInt($,8):parseFloat($.replace(/_/g,"")));return this.finishToken(dt.num,ae)},Kt.readCodePoint=function(){var i;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(o,"Code point out of bounds")}else i=this.readHexChar(4);return i},Kt.readString=function(i){for(var o="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var v=this.input.charCodeAt(this.pos);if(v===i)break;92===v?(o+=this.input.slice(s,this.pos),o+=this.readEscapedChar(!1),s=this.pos):(isNewLine(v,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return o+=this.input.slice(s,this.pos++),this.finishToken(dt.string,o)};var Jt={};Kt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i!==Jt)throw i;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Kt.invalidStringToken=function(i,o){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Jt;this.raise(i,o)},Kt.readTmplToken=function(){for(var i="",o=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==dt.template&&this.type!==dt.invalidTemplate?(i+=this.input.slice(o,this.pos),this.finishToken(dt.template,i)):36===s?(this.pos+=2,this.finishToken(dt.dollarBraceL)):(++this.pos,this.finishToken(dt.backQuote));if(92===s)i+=this.input.slice(o,this.pos),i+=this.readEscapedChar(!0),o=this.pos;else if(isNewLine(s)){switch(i+=this.input.slice(o,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:i+="\n";break;default:i+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),o=this.pos}else++this.pos}},Kt.readInvalidTemplateToken=function(){for(;this.pos=48&&o<=55){var v=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],_=parseInt(v,8);return _>255&&(v=v.slice(0,-1),_=parseInt(v,8)),this.pos+=v.length-1,o=this.input.charCodeAt(this.pos),"0"===v&&56!==o&&57!==o||!this.strict&&!i||this.invalidStringToken(this.pos-1-v.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(_)}return isNewLine(o)?"":String.fromCharCode(o)}},Kt.readHexChar=function(i){var o=this.pos,s=this.readInt(16,i);return null===s&&this.invalidStringToken(o,"Bad character escape sequence"),s},Kt.readWord1=function(){this.containsEsc=!1;for(var i="",o=!0,s=this.pos,v=this.options.ecmaVersion>=6;this.pos=2&&"-"===s[v-2]&&(v-=2),s=s.slice(0,v)}}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.canUseDOM=o.SafeNodeList=o.SafeHTMLCollection=void 0;var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(883)).default,_=v.canUseDOM?window.HTMLElement:{};o.SafeHTMLCollection=v.canUseDOM?window.HTMLCollection:{},o.SafeNodeList=v.canUseDOM?window.NodeList:{},o.canUseDOM=v.canUseDOM;o.default=_},function(i,o,s){"use strict";function sheetForTag(i){if(i.sheet)return i.sheet;for(var o=0;ope)&&(Ct=(Et=Et.replace(" ",":")).length),0v&&(v=(o=o.trim()).charCodeAt(0)),v){case 38:return o.replace(pe,"$1"+i.trim());case 58:return i.trim()+o.replace(pe,"$1"+i.trim());default:if(0<1*s&&0_e.charCodeAt(8))break;case 115:pe=pe.replace(_e,"-webkit-"+_e)+";"+pe;break;case 207:case 102:pe=pe.replace(_e,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0=4;++v,_-=4)o=1540483477*(65535&(o=255&i.charCodeAt(v)|(255&i.charCodeAt(++v))<<8|(255&i.charCodeAt(++v))<<16|(255&i.charCodeAt(++v))<<24))+(59797*(o>>>16)<<16),s=1540483477*(65535&(o^=o>>>24))+(59797*(o>>>16)<<16)^1540483477*(65535&s)+(59797*(s>>>16)<<16);switch(_){case 3:s^=(255&i.charCodeAt(v+2))<<16;case 2:s^=(255&i.charCodeAt(v+1))<<8;case 1:s=1540483477*(65535&(s^=255&i.charCodeAt(v)))+(59797*(s>>>16)<<16)}return(((s=1540483477*(65535&(s^=s>>>13))+(59797*(s>>>16)<<16))^s>>>15)>>>0).toString(36)},tt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var nt=/[A-Z]|^ms/g,rt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,it=function isCustomProperty(i){return 45===i.charCodeAt(1)},ot=function isProcessableValue(i){return null!=i&&"boolean"!=typeof i},st=function memoize(i){var o={};return function(s){return void 0===o[s]&&(o[s]=i(s)),o[s]}}((function(i){return it(i)?i:i.replace(nt,"-$&").toLowerCase()})),dt=function processStyleValue(i,o){switch(i){case"animation":case"animationName":if("string"==typeof o)return o.replace(rt,(function(i,o,s){return ut={name:o,styles:s,next:ut},o}))}return 1===tt[i]||it(i)||"number"!=typeof o||0===o?o:o+"px"};function handleInterpolation(i,o,s,v){if(null==s)return"";if(void 0!==s.__emotion_styles)return s;switch(typeof s){case"boolean":return"";case"object":if(1===s.anim)return ut={name:s.name,styles:s.styles,next:ut},s.name;if(void 0!==s.styles){var _=s.next;if(void 0!==_)for(;void 0!==_;)ut={name:_.name,styles:_.styles,next:ut},_=_.next;return s.styles+";"}return createStringFromObject(i,o,s);case"function":if(void 0!==i){var $=ut,ae=s(i);return ut=$,handleInterpolation(i,o,ae,v)}}if(null==o)return s;var pe=o[s];return void 0===pe||v?s:pe}function createStringFromObject(i,o,s){var v="";if(Array.isArray(s))for(var _=0;_=ae.reach);ut+=dt.value.length,dt=dt.next){var lt=dt.value;if(o.length>i.length)return;if(!(lt instanceof Token)){var ct,ht=1;if(rt){if(!(ct=matchPattern(st,ut,i,nt))||ct.index>=i.length)break;var pt=ct.index,ft=ct.index+ct[0].length,gt=ut;for(gt+=dt.value.length;pt>=gt;)gt+=(dt=dt.next).value.length;if(ut=gt-=dt.value.length,dt.value instanceof Token)continue;for(var mt=dt;mt!==o.tail&&(gtae.reach&&(ae.reach=bt);var Ot=dt.prev;if(vt&&(Ot=addAfter(o,Ot,vt),ut+=vt.length),removeRange(o,Ot,ht),dt=addAfter(o,Ot,new Token(pe,tt?_.tokenize(yt,tt):yt,it,yt)),Rt&&addAfter(o,dt,Rt),ht>1){var xt={cause:pe+","+_e,reach:bt};matchGrammar(i,o,s,dt.prev,ut,xt),ae&&xt.reach>ae.reach&&(ae.reach=xt.reach)}}}}}}function LinkedList(){var i={value:null,prev:null,next:null},o={value:null,prev:i,next:null};i.next=o,this.head=i,this.tail=o,this.length=0}function addAfter(i,o,s){var v=o.next,_={value:s,prev:o,next:v};return o.next=_,v.prev=_,i.length++,_}function removeRange(i,o,s){for(var v=o.next,_=0;_"+v.content+""},!i.document)return i.addEventListener?(_.disableWorkerMessageHandler||i.addEventListener("message",(function(o){var s=JSON.parse(o.data),v=s.language,$=s.code,ae=s.immediateClose;i.postMessage(_.highlight($,_.languages[v],v)),ae&&i.close()}),!1),_):_;var $=_.util.currentScript();function highlightAutomaticallyCallback(){_.manual||_.highlightAll()}if($&&(_.filename=$.src,$.hasAttribute("data-manual")&&(_.manual=!0)),!_.manual){var ae=document.readyState;"loading"===ae||"interactive"===ae&&$&&$.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return _}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});i.exports&&(i.exports=s),void 0!==o&&(o.Prism=s),s.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},s.languages.markup.tag.inside["attr-value"].inside.entity=s.languages.markup.entity,s.languages.markup.doctype.inside["internal-subset"].inside=s.languages.markup,s.hooks.add("wrap",(function(i){"entity"===i.type&&(i.attributes.title=i.content.replace(/&/,"&"))})),Object.defineProperty(s.languages.markup.tag,"addInlined",{value:function addInlined(i,o){var v={};v["language-"+o]={pattern:/(^$)/i,lookbehind:!0,inside:s.languages[o]},v.cdata=/^$/i;var _={"included-cdata":{pattern://i,inside:v}};_["language-"+o]={pattern:/[\s\S]+/,inside:s.languages[o]};var $={};$[i]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return i})),"i"),lookbehind:!0,greedy:!0,inside:_},s.languages.insertBefore("markup","cdata",$)}}),Object.defineProperty(s.languages.markup.tag,"addAttribute",{value:function(i,o){s.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:s.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),s.languages.html=s.languages.markup,s.languages.mathml=s.languages.markup,s.languages.svg=s.languages.markup,s.languages.xml=s.languages.extend("markup",{}),s.languages.ssml=s.languages.xml,s.languages.atom=s.languages.xml,s.languages.rss=s.languages.xml,function(i){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var s=i.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(s),s.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},s.languages.javascript=s.languages.extend("clike",{"class-name":[s.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),s.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,s.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:s.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:s.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:s.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:s.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:s.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),s.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:s.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),s.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),s.languages.markup&&(s.languages.markup.tag.addInlined("script","javascript"),s.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),s.languages.js=s.languages.javascript,function(){if(void 0!==s&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",v="loading",_="loaded",$="pre[data-src]:not(["+o+'="'+_+'"]):not(['+o+'="'+v+'"])';s.hooks.add("before-highlightall",(function(i){i.selector+=", "+$})),s.hooks.add("before-sanity-check",(function(ae){var pe=ae.element;if(pe.matches($)){ae.code="",pe.setAttribute(o,v);var we=pe.appendChild(document.createElement("CODE"));we.textContent="Loading…";var _e=pe.getAttribute("data-src"),et=ae.language;if("none"===et){var tt=(/\.(\w+)$/.exec(_e)||[,"none"])[1];et=i[tt]||tt}s.util.setLanguage(we,et),s.util.setLanguage(pe,et);var nt=s.plugins.autoloader;nt&&nt.loadLanguages(et),loadFile(_e,(function(i){pe.setAttribute(o,_);var v=parseRange(pe.getAttribute("data-range"));if(v){var $=i.split(/\r\n?|\n/g),ae=v[0],_e=null==v[1]?$.length:v[1];ae<0&&(ae+=$.length),ae=Math.max(0,Math.min(ae-1,$.length)),_e<0&&(_e+=$.length),_e=Math.max(0,Math.min(_e,$.length)),i=$.slice(ae,_e).join("\n"),pe.hasAttribute("data-start")||pe.setAttribute("data-start",String(ae+1))}we.textContent=i,s.highlightElement(we)}),(function(i){pe.setAttribute(o,"failed"),we.textContent=i}))}})),s.plugins.fileHighlight={highlight:function highlight(i){for(var o,v=(i||document).querySelectorAll($),_=0;o=v[_++];)s.highlightElement(o)}};var ae=!1;s.fileHighlight=function(){ae||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),ae=!0),s.plugins.fileHighlight.highlight.apply(this,arguments)}}function loadFile(i,o,s){var v=new XMLHttpRequest;v.open("GET",i,!0),v.onreadystatechange=function(){var i,_;4==v.readyState&&(v.status<400&&v.responseText?o(v.responseText):v.status>=400?s((i=v.status,_=v.statusText,"✖ Error "+i+" while fetching file: "+_)):s("✖ Error: File does not exist or is empty"))},v.send(null)}function parseRange(i){var o=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(i||"");if(o){var s=Number(o[1]),v=o[2],_=o[3];return v?_?[s,Number(_)]:[s,void 0]:[s,s]}}}()}).call(this,s(23))},function(i,o,s){var v=s(893);i.exports=pathToRegexp,i.exports.parse=parse,i.exports.compile=function compile(i,o){return tokensToFunction(parse(i,o),o)},i.exports.tokensToFunction=tokensToFunction,i.exports.tokensToRegExp=tokensToRegExp;var _=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse(i,o){for(var s,v=[],$=0,ae=0,pe="",we=o&&o.delimiter||"/";null!=(s=_.exec(i));){var _e=s[0],et=s[1],tt=s.index;if(pe+=i.slice(ae,tt),ae=tt+_e.length,et)pe+=et[1];else{var nt=i[ae],rt=s[2],it=s[3],ot=s[4],st=s[5],dt=s[6],ut=s[7];pe&&(v.push(pe),pe="");var lt=null!=rt&&null!=nt&&nt!==rt,ct="+"===dt||"*"===dt,ht="?"===dt||"*"===dt,pt=s[2]||we,ft=ot||st;v.push({name:it||$++,prefix:rt||"",delimiter:pt,optional:ht,repeat:ct,partial:lt,asterisk:!!ut,pattern:ft?escapeGroup(ft):ut?".*":"[^"+escapeString(pt)+"]+?"})}}return ae0?_(v(i),9007199254740991):0}},function(i,o,s){var v=s(47);i.exports=!!Object.getOwnPropertySymbols&&!v((function(){return!String(Symbol())}))},function(i,o,s){(function(o){var s="object"==typeof o&&o&&o.Object===Object&&o;i.exports=s}).call(this,s(23))},function(i,o){var s=Function.prototype.toString;i.exports=function toSource(i){if(null!=i){try{return s.call(i)}catch(i){}try{return i+""}catch(i){}}return""}},function(i,o,s){var v=s(123),_=s(68);i.exports=function assignMergeValue(i,o,s){(void 0!==s&&!_(i[o],s)||void 0===s&&!(o in i))&&v(i,o,s)}},function(i,o,s){var v=s(48),_=function(){try{var i=v(Object,"defineProperty");return i({},"",{}),i}catch(i){}}();i.exports=_},function(i,o,s){var v=s(313)();i.exports=v},function(i,o,s){var v=s(25).Uint8Array;i.exports=v},function(i,o,s){var v=s(178)(Object.getPrototypeOf,Object);i.exports=v},function(i,o){i.exports=function overArg(i,o){return function(s){return i(o(s))}}},function(i,o){i.exports=function safeGet(i,o){if(("constructor"!==o||"function"!=typeof i[o])&&"__proto__"!=o)return i[o]}},function(i,o,s){var v=s(181),_=s(332),$=s(44);i.exports=function keysIn(i){return $(i)?v(i,!0):_(i)}},function(i,o,s){var v=s(331),_=s(98),$=s(32),ae=s(99),pe=s(125),we=s(100),_e=Object.prototype.hasOwnProperty;i.exports=function arrayLikeKeys(i,o){var s=$(i),et=!s&&_(i),tt=!s&&!et&&ae(i),nt=!s&&!et&&!tt&&we(i),rt=s||et||tt||nt,it=rt?v(i.length,String):[],ot=it.length;for(var st in i)!o&&!_e.call(i,st)||rt&&("length"==st||tt&&("offset"==st||"parent"==st)||nt&&("buffer"==st||"byteLength"==st||"byteOffset"==st)||pe(st,ot))||it.push(st);return it}},function(i,o,s){!function(){"use strict";o.ast=s(349),o.code=s(183),o.keyword=s(350)}()},function(i,o){!function(){"use strict";var o,s,v,_,$,ae;function fromCodePoint(i){return i<=65535?String.fromCharCode(i):String.fromCharCode(Math.floor((i-65536)/1024)+55296)+String.fromCharCode((i-65536)%1024+56320)}for(s={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},o={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},v=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],_=new Array(128),ae=0;ae<128;++ae)_[ae]=ae>=97&&ae<=122||ae>=65&&ae<=90||36===ae||95===ae;for($=new Array(128),ae=0;ae<128;++ae)$[ae]=ae>=97&&ae<=122||ae>=65&&ae<=90||ae>=48&&ae<=57||36===ae||95===ae;i.exports={isDecimalDigit:function isDecimalDigit(i){return 48<=i&&i<=57},isHexDigit:function isHexDigit(i){return 48<=i&&i<=57||97<=i&&i<=102||65<=i&&i<=70},isOctalDigit:function isOctalDigit(i){return i>=48&&i<=55},isWhiteSpace:function isWhiteSpace(i){return 32===i||9===i||11===i||12===i||160===i||i>=5760&&v.indexOf(i)>=0},isLineTerminator:function isLineTerminator(i){return 10===i||13===i||8232===i||8233===i},isIdentifierStartES5:function isIdentifierStartES5(i){return i<128?_[i]:s.NonAsciiIdentifierStart.test(fromCodePoint(i))},isIdentifierPartES5:function isIdentifierPartES5(i){return i<128?$[i]:s.NonAsciiIdentifierPart.test(fromCodePoint(i))},isIdentifierStartES6:function isIdentifierStartES6(i){return i<128?_[i]:o.NonAsciiIdentifierStart.test(fromCodePoint(i))},isIdentifierPartES6:function isIdentifierPartES6(i){return i<128?$[i]:o.NonAsciiIdentifierPart.test(fromCodePoint(i))}}}()},function(i,o,s){!function(){"use strict";var i,v;function DoctrineError(i){this.name="DoctrineError",this.message=i}i=s(352).version,o.VERSION=i,DoctrineError.prototype=((v=function(){}).prototype=Error.prototype,new v),DoctrineError.prototype.constructor=DoctrineError,o.DoctrineError=DoctrineError,o.throwError=function throwError(i){throw new DoctrineError(i)},o.assert=s(353)}()},function(i,o){i.exports=function arrayMap(i,o){for(var s=-1,v=null==i?0:i.length,_=Array(v);++set))return!1;var nt=we.get(i),rt=we.get(o);if(nt&&rt)return nt==o&&rt==i;var it=-1,ot=!0,st=2&s?new v:void 0;for(we.set(i,o),we.set(o,i);++it2?s-2:0),_=2;_=0||(_[s]=i[s]);return _}var pe="unmounted";o.UNMOUNTED=pe;var we="exited";o.EXITED=we;var _e="entering";o.ENTERING=_e;var et="entered";o.ENTERED=et;var tt="exiting";o.EXITING=tt;var nt=function(i){var o,s;function Transition(o,s){var v;v=i.call(this,o,s)||this;var _,$=s.transitionGroup,ae=$&&!$.isMounting?o.enter:o.appear;return v.appearStatus=null,o.in?ae?(_=we,v.appearStatus=_e):_=et:_=o.unmountOnExit||o.mountOnEnter?pe:we,v.state={status:_},v.nextCallback=null,v}s=i,(o=Transition).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v=Transition.prototype;return v.getChildContext=function getChildContext(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function getDerivedStateFromProps(i,o){return i.in&&o.status===pe?{status:we}:null},v.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},v.componentDidUpdate=function componentDidUpdate(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==_e&&s!==et&&(o=_e):s!==_e&&s!==et||(o=tt)}this.updateStatus(!1,o)},v.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},v.getTimeouts=function getTimeouts(){var i,o,s,v=this.props.timeout;return i=o=s=v,null!=v&&"number"!=typeof v&&(i=v.exit,o=v.enter,s=void 0!==v.appear?v.appear:o),{exit:i,enter:o,appear:s}},v.updateStatus=function updateStatus(i,o){if(void 0===i&&(i=!1),null!==o){this.cancelNextCallback();var s=$.default.findDOMNode(this);o===_e?this.performEnter(s,i):this.performExit(s)}else this.props.unmountOnExit&&this.state.status===we&&this.setState({status:pe})},v.performEnter=function performEnter(i,o){var s=this,v=this.props.enter,_=this.context.transitionGroup?this.context.transitionGroup.isMounting:o,$=this.getTimeouts(),ae=_?$.appear:$.enter;o||v?(this.props.onEnter(i,_),this.safeSetState({status:_e},(function(){s.props.onEntering(i,_),s.onTransitionEnd(i,ae,(function(){s.safeSetState({status:et},(function(){s.props.onEntered(i,_)}))}))}))):this.safeSetState({status:et},(function(){s.props.onEntered(i)}))},v.performExit=function performExit(i){var o=this,s=this.props.exit,v=this.getTimeouts();s?(this.props.onExit(i),this.safeSetState({status:tt},(function(){o.props.onExiting(i),o.onTransitionEnd(i,v.exit,(function(){o.safeSetState({status:we},(function(){o.props.onExited(i)}))}))}))):this.safeSetState({status:we},(function(){o.props.onExited(i)}))},v.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},v.safeSetState=function safeSetState(i,o){o=this.setNextCallback(o),this.setState(i,o)},v.setNextCallback=function setNextCallback(i){var o=this,s=!0;return this.nextCallback=function(v){s&&(s=!1,o.nextCallback=null,i(v))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},v.onTransitionEnd=function onTransitionEnd(i,o,s){this.setNextCallback(s);var v=null==o&&!this.props.addEndListener;i&&!v?(this.props.addEndListener&&this.props.addEndListener(i,this.nextCallback),null!=o&&setTimeout(this.nextCallback,o)):setTimeout(this.nextCallback,0)},v.render=function render(){var i=this.state.status;if(i===pe)return null;var o=this.props,s=o.children,v=_objectWithoutPropertiesLoose(o,["children"]);if(delete v.in,delete v.mountOnEnter,delete v.unmountOnExit,delete v.appear,delete v.enter,delete v.exit,delete v.timeout,delete v.addEndListener,delete v.onEnter,delete v.onEntering,delete v.onEntered,delete v.onExit,delete v.onExiting,delete v.onExited,"function"==typeof s)return s(i,v);var $=_.default.Children.only(s);return _.default.cloneElement($,v)},Transition}(_.default.Component);function noop(){}nt.contextTypes={transitionGroup:v.object},nt.childContextTypes={transitionGroup:function transitionGroup(){}},nt.propTypes={},nt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},nt.UNMOUNTED=0,nt.EXITED=1,nt.ENTERING=2,nt.ENTERED=3,nt.EXITING=4;var rt=(0,ae.polyfill)(nt);o.default=rt},function(i,o,s){"use strict";o.__esModule=!0,o.classNamesShape=o.timeoutsShape=void 0;(function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}})(s(2));o.timeoutsShape=null;o.classNamesShape=null},function(i,o,s){"use strict";o.__esModule=!0,o.default=void 0;var v=_interopRequireDefault(s(2)),_=_interopRequireDefault(s(0)),$=s(130),ae=s(860);function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}function _extends(){return _extends=Object.assign||function(i){for(var o=1;o2){var ft=tt.indexOf("-x-");if(-1===ft)tt+=rt;else{var gt=tt.slice(0,ft),mt=tt.slice(ft,tt.length);tt=gt+rt+mt}tt=Intl.getCanonicalLocales(tt)[0]}return nt.locale=tt,nt}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function findTabbableDescendants(i){var o=[].slice.call(i.querySelectorAll("*"),0).reduce((function(i,o){return i.concat(o.shadowRoot?findTabbableDescendants(o.shadowRoot):[o])}),[]);return o.filter(tabbable)};var v="none",_="contents",$=/input|select|textarea|button|object|iframe/;function isNotOverflowing(i,o){return"visible"!==o.getPropertyValue("overflow")||i.scrollWidth<=0&&i.scrollHeight<=0}function hidesContents(i){var o=i.offsetWidth<=0&&i.offsetHeight<=0;if(o&&!i.innerHTML)return!0;try{var s=window.getComputedStyle(i),$=s.getPropertyValue("display");return o?$!==_&&isNotOverflowing(i,s):$===v}catch(i){return console.warn("Failed to inspect element style"),!1}}function visible(i){for(var o=i,s=i.getRootNode&&i.getRootNode();o&&o!==document.body;){if(s&&o===s&&(o=s.host.parentNode),hidesContents(o))return!1;o=o.parentNode}return!0}function focusable(i,o){var s=i.nodeName.toLowerCase();return($.test(s)&&!i.disabled||"a"===s&&i.href||o)&&visible(i)}function tabbable(i){var o=i.getAttribute("tabindex");null===o&&(o=void 0);var s=isNaN(o);return(s||o>=0)&&focusable(i,!s)}i.exports=o.default},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){$&&($.removeAttribute?$.removeAttribute("aria-hidden"):null!=$.length?$.forEach((function(i){return i.removeAttribute("aria-hidden")})):document.querySelectorAll($).forEach((function(i){return i.removeAttribute("aria-hidden")})));$=null},o.log=function log(){0},o.assertNodeList=assertNodeList,o.setElement=function setElement(i){var o=i;if("string"==typeof o&&_.canUseDOM){var s=document.querySelectorAll(o);assertNodeList(s,o),o=s}return $=o||$},o.validateElement=validateElement,o.hide=function hide(i){var o=!0,s=!1,v=void 0;try{for(var _,$=validateElement(i)[Symbol.iterator]();!(o=(_=$.next()).done);o=!0){_.value.setAttribute("aria-hidden","true")}}catch(i){s=!0,v=i}finally{try{!o&&$.return&&$.return()}finally{if(s)throw v}}},o.show=function show(i){var o=!0,s=!1,v=void 0;try{for(var _,$=validateElement(i)[Symbol.iterator]();!(o=(_=$.next()).done);o=!0){_.value.removeAttribute("aria-hidden")}}catch(i){s=!0,v=i}finally{try{!o&&$.return&&$.return()}finally{if(s)throw v}}},o.documentNotReadyOrSSRTesting=function documentNotReadyOrSSRTesting(){$=null};var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(882)),_=s(132);var $=null;function assertNodeList(i,o){if(!i||!i.length)throw new Error("react-modal: No elements were found for selector "+o+".")}function validateElement(i){var o=i||$;return o?Array.isArray(o)||o instanceof HTMLCollection||o instanceof NodeList?o:[o]:((0,v.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(i,o,s){"use strict";function _classCallCheck(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(o,"__esModule",{value:!0}),o.log=function log(){console.log("portalOpenInstances ----------"),console.log(_.openInstances.length),_.openInstances.forEach((function(i){return console.log(i)})),console.log("end portalOpenInstances ----------")},o.resetState=function resetState(){_=new v};var v=function PortalOpenInstances(){var i=this;_classCallCheck(this,PortalOpenInstances),this.register=function(o){-1===i.openInstances.indexOf(o)&&(i.openInstances.push(o),i.emit("register"))},this.deregister=function(o){var s=i.openInstances.indexOf(o);-1!==s&&(i.openInstances.splice(s,1),i.emit("deregister"))},this.subscribe=function(o){i.subscribers.push(o)},this.emit=function(o){i.subscribers.forEach((function(s){return s(o,i.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},_=new v;o.default=_},function(i,o,s){var v;v=function(){function IntroJs(i){this._targetElement=i,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function _introForElement(i,o){var v=i.querySelectorAll("*[data-intro]"),_=[];if(this._options.steps)_forEach(this._options.steps,function(i){var o=_cloneObject(i);if(o.step=_.length+1,"string"==typeof o.element&&(o.element=document.querySelector(o.element)),void 0===o.element||null===o.element){var s=document.querySelector(".introjsFloatingElement");null===s&&((s=document.createElement("div")).className="introjsFloatingElement",document.body.appendChild(s)),o.element=s,o.position="floating"}o.scrollTo=o.scrollTo||this._options.scrollTo,void 0===o.disableInteraction&&(o.disableInteraction=this._options.disableInteraction),null!==o.element&&_.push(o)}.bind(this));else{var $;if(v.length<1)return!1;_forEach(v,function(i){if((!o||i.getAttribute("data-intro-group")===o)&&"none"!==i.style.display){var s=parseInt(i.getAttribute("data-step"),10);$=void 0!==i.getAttribute("data-disable-interaction")?!!i.getAttribute("data-disable-interaction"):this._options.disableInteraction,s>0&&(_[s-1]={element:i,intro:i.getAttribute("data-intro"),step:parseInt(i.getAttribute("data-step"),10),tooltipClass:i.getAttribute("data-tooltipclass"),highlightClass:i.getAttribute("data-highlightclass"),position:i.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:i.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:$})}}.bind(this));var ae=0;_forEach(v,function(i){if((!o||i.getAttribute("data-intro-group")===o)&&null===i.getAttribute("data-step")){for(;void 0!==_[ae];)ae++;$=void 0!==i.getAttribute("data-disable-interaction")?!!i.getAttribute("data-disable-interaction"):this._options.disableInteraction,_[ae]={element:i,intro:i.getAttribute("data-intro"),step:ae+1,tooltipClass:i.getAttribute("data-tooltipclass"),highlightClass:i.getAttribute("data-highlightclass"),position:i.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:i.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:$}}}.bind(this))}for(var pe=[],we=0;we<_.length;we++)_[we]&&pe.push(_[we]);return(_=pe).sort((function(i,o){return i.step-o.step})),this._introItems=_,_addOverlayLayer.call(this,i)&&(_nextStep.call(this),this._options.keyboardNavigation&&s.on(window,"keydown",_onKeyDown,this,!0),s.on(window,"resize",_onResize,this,!0)),!1}function _onResize(){this.refresh.call(this)}function _onKeyDown(i){var o=null===i.code?i.which:i.code;if(null===o&&(o=null===i.charCode?i.keyCode:i.charCode),"Escape"!==o&&27!==o||!0!==this._options.exitOnEsc){if("ArrowLeft"===o||37===o)_previousStep.call(this);else if("ArrowRight"===o||39===o)_nextStep.call(this);else if("Enter"===o||13===o){var s=i.target||i.srcElement;s&&s.className.match("introjs-prevbutton")?_previousStep.call(this):s&&s.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),_exitIntro.call(this,this._targetElement)):s&&s.getAttribute("data-stepnumber")?s.click():_nextStep.call(this),i.preventDefault?i.preventDefault():i.returnValue=!1}}else _exitIntro.call(this,this._targetElement)}function _cloneObject(i){if(null===i||"object"!=typeof i||void 0!==i.nodeType)return i;var o={};for(var s in i)void 0!==window.jQuery&&i[s]instanceof window.jQuery?o[s]=i[s]:o[s]=_cloneObject(i[s]);return o}function _goToStep(i){this._currentStep=i-2,void 0!==this._introItems&&_nextStep.call(this)}function _goToStepNumber(i){this._currentStepNumber=i,void 0!==this._introItems&&_nextStep.call(this)}function _nextStep(){this._direction="forward",void 0!==this._currentStepNumber&&_forEach(this._introItems,function(i,o){i.step===this._currentStepNumber&&(this._currentStep=o-1,this._currentStepNumber=void 0)}.bind(this)),void 0===this._currentStep?this._currentStep=0:++this._currentStep;var i=this._introItems[this._currentStep],o=!0;return void 0!==this._introBeforeChangeCallback&&(o=this._introBeforeChangeCallback.call(this,i.element)),!1===o?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void _exitIntro.call(this,this._targetElement)):void _showElement.call(this,i)}function _previousStep(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var i=this._introItems[this._currentStep],o=!0;if(void 0!==this._introBeforeChangeCallback&&(o=this._introBeforeChangeCallback.call(this,i.element)),!1===o)return++this._currentStep,!1;_showElement.call(this,i)}function _refresh(){if(_setHelperLayerPosition.call(this,document.querySelector(".introjs-helperLayer")),_setHelperLayerPosition.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),_setHelperLayerPosition.call(this,document.querySelector(".introjs-disableInteraction")),void 0!==this._currentStep&&null!==this._currentStep){var i=document.querySelector(".introjs-helperNumberLayer"),o=document.querySelector(".introjs-arrow"),s=document.querySelector(".introjs-tooltip");_placeTooltip.call(this,this._introItems[this._currentStep].element,s,o,i)}return _reAlignHints.call(this),this}function _exitIntro(i,o){var v=!0;if(void 0!==this._introBeforeExitCallback&&(v=this._introBeforeExitCallback.call(this)),o||!1!==v){var _=i.querySelectorAll(".introjs-overlay");_&&_.length&&_forEach(_,function(i){i.style.opacity=0,window.setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(i),500)}.bind(this));var $=i.querySelector(".introjs-helperLayer");$&&$.parentNode.removeChild($);var ae=i.querySelector(".introjs-tooltipReferenceLayer");ae&&ae.parentNode.removeChild(ae);var pe=i.querySelector(".introjs-disableInteraction");pe&&pe.parentNode.removeChild(pe);var we=document.querySelector(".introjsFloatingElement");we&&we.parentNode.removeChild(we),_removeShowElement(),_forEach(document.querySelectorAll(".introjs-fixParent"),(function(i){_removeClass(i,/introjs-fixParent/g)})),s.off(window,"keydown",_onKeyDown,this,!0),s.off(window,"resize",_onResize,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function _placeTooltip(i,o,s,v,_){var $,ae,pe,we,_e,et="";if(_=_||!1,o.style.top=null,o.style.right=null,o.style.bottom=null,o.style.left=null,o.style.marginLeft=null,o.style.marginTop=null,s.style.display="inherit",null!=v&&(v.style.top=null,v.style.left=null),this._introItems[this._currentStep])switch(et="string"==typeof($=this._introItems[this._currentStep]).tooltipClass?$.tooltipClass:this._options.tooltipClass,o.className=("introjs-tooltip "+et).replace(/^\s+|\s+$/g,""),o.setAttribute("role","dialog"),"floating"!==(_e=this._introItems[this._currentStep].position)&&(_e=_determineAutoPosition.call(this,i,o,_e)),pe=_getOffset(i),ae=_getOffset(o),we=_getWinSize(),_addClass(o,"introjs-"+_e),_e){case"top-right-aligned":s.className="introjs-arrow bottom-right";var tt=0;_checkLeft(pe,tt,ae,o),o.style.bottom=pe.height+20+"px";break;case"top-middle-aligned":s.className="introjs-arrow bottom-middle";var nt=pe.width/2-ae.width/2;_&&(nt+=5),_checkLeft(pe,nt,ae,o)&&(o.style.right=null,_checkRight(pe,nt,ae,we,o)),o.style.bottom=pe.height+20+"px";break;case"top-left-aligned":case"top":s.className="introjs-arrow bottom",_checkRight(pe,_?0:15,ae,we,o),o.style.bottom=pe.height+20+"px";break;case"right":o.style.left=pe.width+20+"px",pe.top+ae.height>we.height?(s.className="introjs-arrow left-bottom",o.style.top="-"+(ae.height-pe.height-20)+"px"):s.className="introjs-arrow left";break;case"left":_||!0!==this._options.showStepNumbers||(o.style.top="15px"),pe.top+ae.height>we.height?(o.style.top="-"+(ae.height-pe.height-20)+"px",s.className="introjs-arrow right-bottom"):s.className="introjs-arrow right",o.style.right=pe.width+20+"px";break;case"floating":s.style.display="none",o.style.left="50%",o.style.top="50%",o.style.marginLeft="-"+ae.width/2+"px",o.style.marginTop="-"+ae.height/2+"px",null!=v&&(v.style.left="-"+(ae.width/2+18)+"px",v.style.top="-"+(ae.height/2+18)+"px");break;case"bottom-right-aligned":s.className="introjs-arrow top-right",_checkLeft(pe,tt=0,ae,o),o.style.top=pe.height+20+"px";break;case"bottom-middle-aligned":s.className="introjs-arrow top-middle",nt=pe.width/2-ae.width/2,_&&(nt+=5),_checkLeft(pe,nt,ae,o)&&(o.style.right=null,_checkRight(pe,nt,ae,we,o)),o.style.top=pe.height+20+"px";break;default:s.className="introjs-arrow top",_checkRight(pe,0,ae,we,o),o.style.top=pe.height+20+"px"}}function _checkRight(i,o,s,v,_){return i.left+o+s.width>v.width?(_.style.left=v.width-s.width-i.left+"px",!1):(_.style.left=o+"px",!0)}function _checkLeft(i,o,s,v){return i.left+i.width-o-s.width<0?(v.style.left=-i.left+"px",!1):(v.style.right=o+"px",!0)}function _determineAutoPosition(i,o,s){var v=this._options.positionPrecedence.slice(),_=_getWinSize(),$=_getOffset(o).height+10,ae=_getOffset(o).width+20,pe=i.getBoundingClientRect(),we="floating";pe.bottom+$+$>_.height&&_removeEntry(v,"bottom"),pe.top-$<0&&_removeEntry(v,"top"),pe.right+ae>_.width&&_removeEntry(v,"right"),pe.left-ae<0&&_removeEntry(v,"left");var _e,et,tt=-1!==(et=(_e=s||"").indexOf("-"))?_e.substr(et):"";return s&&(s=s.split("-")[0]),v.length&&(we="auto"!==s&&v.indexOf(s)>-1?s:v[0]),-1!==["top","bottom"].indexOf(we)&&(we+=_determineAutoAlignment(pe.left,ae,_,tt)),we}function _determineAutoAlignment(i,o,s,v){var _=o/2,$=Math.min(s.width,window.screen.width),ae=["-left-aligned","-middle-aligned","-right-aligned"];return $-i-1&&i.splice(i.indexOf(o),1)}function _setHelperLayerPosition(i){if(i){if(!this._introItems[this._currentStep])return;var o=this._introItems[this._currentStep],s=_getOffset(o.element),v=this._options.helperElementPadding;_isFixed(o.element)?_addClass(i,"introjs-fixedTooltip"):_removeClass(i,"introjs-fixedTooltip"),"floating"===o.position&&(v=0),i.style.cssText="width: "+(s.width+v)+"px; height:"+(s.height+v)+"px; top:"+(s.top-v/2)+"px;left: "+(s.left-v/2)+"px;"}}function _disableInteraction(){var i=document.querySelector(".introjs-disableInteraction");null===i&&((i=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(i)),_setHelperLayerPosition.call(this,i)}function _setAnchorAsButton(i){i.setAttribute("role","button"),i.tabIndex=0}function _showElement(i){void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,i.element);var o,s,v,_,$=this,ae=document.querySelector(".introjs-helperLayer"),pe=document.querySelector(".introjs-tooltipReferenceLayer"),we="introjs-helperLayer";if("string"==typeof i.highlightClass&&(we+=" "+i.highlightClass),"string"==typeof this._options.highlightClass&&(we+=" "+this._options.highlightClass),null!==ae){var _e=pe.querySelector(".introjs-helperNumberLayer"),et=pe.querySelector(".introjs-tooltiptext"),tt=pe.querySelector(".introjs-arrow"),nt=pe.querySelector(".introjs-tooltip");if(v=pe.querySelector(".introjs-skipbutton"),s=pe.querySelector(".introjs-prevbutton"),o=pe.querySelector(".introjs-nextbutton"),ae.className=we,nt.style.opacity=0,nt.style.display="none",null!==_e){var rt=this._introItems[i.step-2>=0?i.step-2:0];(null!==rt&&"forward"===this._direction&&"floating"===rt.position||"backward"===this._direction&&"floating"===i.position)&&(_e.style.opacity=0)}(_=_getScrollParent(i.element))!==document.body&&_scrollParentToElement(_,i.element),_setHelperLayerPosition.call($,ae),_setHelperLayerPosition.call($,pe),_forEach(document.querySelectorAll(".introjs-fixParent"),(function(i){_removeClass(i,/introjs-fixParent/g)})),_removeShowElement(),$._lastShowElementTimer&&window.clearTimeout($._lastShowElementTimer),$._lastShowElementTimer=window.setTimeout((function(){null!==_e&&(_e.innerHTML=i.step),et.innerHTML=i.intro,nt.style.display="block",_placeTooltip.call($,i.element,nt,tt,_e),$._options.showBullets&&(pe.querySelector(".introjs-bullets li > a.active").className="",pe.querySelector('.introjs-bullets li > a[data-stepnumber="'+i.step+'"]').className="active"),pe.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+_getProgress.call($)+"%;",pe.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",_getProgress.call($)),nt.style.opacity=1,_e&&(_e.style.opacity=1),null!=v&&/introjs-donebutton/gi.test(v.className)?v.focus():null!=o&&o.focus(),_scrollTo.call($,i.scrollTo,i,et)}),350)}else{var it=document.createElement("div"),ot=document.createElement("div"),st=document.createElement("div"),dt=document.createElement("div"),ut=document.createElement("div"),lt=document.createElement("div"),ct=document.createElement("div"),ht=document.createElement("div");it.className=we,ot.className="introjs-tooltipReferenceLayer",(_=_getScrollParent(i.element))!==document.body&&_scrollParentToElement(_,i.element),_setHelperLayerPosition.call($,it),_setHelperLayerPosition.call($,ot),this._targetElement.appendChild(it),this._targetElement.appendChild(ot),st.className="introjs-arrow",ut.className="introjs-tooltiptext",ut.innerHTML=i.intro,lt.className="introjs-bullets",!1===this._options.showBullets&&(lt.style.display="none");var pt=document.createElement("ul");pt.setAttribute("role","tablist");var anchorClick=function(){$.goToStep(this.getAttribute("data-stepnumber"))};_forEach(this._introItems,(function(o,s){var v=document.createElement("li"),_=document.createElement("a");v.setAttribute("role","presentation"),_.setAttribute("role","tab"),_.onclick=anchorClick,s===i.step-1&&(_.className="active"),_setAnchorAsButton(_),_.innerHTML=" ",_.setAttribute("data-stepnumber",o.step),v.appendChild(_),pt.appendChild(v)})),lt.appendChild(pt),ct.className="introjs-progress",!1===this._options.showProgress&&(ct.style.display="none");var ft=document.createElement("div");ft.className="introjs-progressbar",ft.setAttribute("role","progress"),ft.setAttribute("aria-valuemin",0),ft.setAttribute("aria-valuemax",100),ft.setAttribute("aria-valuenow",_getProgress.call(this)),ft.style.cssText="width:"+_getProgress.call(this)+"%;",ct.appendChild(ft),ht.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(ht.style.display="none"),dt.className="introjs-tooltip",dt.appendChild(ut),dt.appendChild(lt),dt.appendChild(ct);var gt=document.createElement("span");!0===this._options.showStepNumbers&&(gt.className="introjs-helperNumberLayer",gt.innerHTML=i.step,ot.appendChild(gt)),dt.appendChild(st),ot.appendChild(dt),(o=document.createElement("a")).onclick=function(){$._introItems.length-1!==$._currentStep&&_nextStep.call($)},_setAnchorAsButton(o),o.innerHTML=this._options.nextLabel,(s=document.createElement("a")).onclick=function(){0!==$._currentStep&&_previousStep.call($)},_setAnchorAsButton(s),s.innerHTML=this._options.prevLabel,(v=document.createElement("a")).className=this._options.buttonClass+" introjs-skipbutton ",_setAnchorAsButton(v),v.innerHTML=this._options.skipLabel,v.onclick=function(){$._introItems.length-1===$._currentStep&&"function"==typeof $._introCompleteCallback&&$._introCompleteCallback.call($),$._introItems.length-1!==$._currentStep&&"function"==typeof $._introExitCallback&&$._introExitCallback.call($),"function"==typeof $._introSkipCallback&&$._introSkipCallback.call($),_exitIntro.call($,$._targetElement)},ht.appendChild(v),this._introItems.length>1&&(ht.appendChild(s),ht.appendChild(o)),dt.appendChild(ht),_placeTooltip.call($,i.element,dt,st,gt),_scrollTo.call(this,i.scrollTo,i,dt)}var mt=$._targetElement.querySelector(".introjs-disableInteraction");mt&&mt.parentNode.removeChild(mt),i.disableInteraction&&_disableInteraction.call($),0===this._currentStep&&this._introItems.length>1?(null!=v&&(v.className=this._options.buttonClass+" introjs-skipbutton"),null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?(null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),null!=o&&_addClass(o,"introjs-fullbutton")):null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),null!=v&&(v.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?(null!=v&&(v.innerHTML=this._options.doneLabel,_addClass(v,"introjs-donebutton")),null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?(null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),null!=s&&_addClass(s,"introjs-fullbutton")):null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):(null!=v&&(v.className=this._options.buttonClass+" introjs-skipbutton"),null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton"),null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton"),null!=v&&(v.innerHTML=this._options.skipLabel)),s.setAttribute("role","button"),o.setAttribute("role","button"),v.setAttribute("role","button"),null!=o&&o.focus(),_setShowElement(i),void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,i.element)}function _scrollTo(i,o,s){var v;if("off"!==i&&this._options.scrollToElement&&(v="tooltip"===i?s.getBoundingClientRect():o.element.getBoundingClientRect(),!_elementInViewport(o.element))){var _=_getWinSize().height;v.bottom-(v.bottom-v.top)<0||o.element.clientHeight>_?window.scrollBy(0,v.top-(_/2-v.height/2)-this._options.scrollPadding):window.scrollBy(0,v.top-(_/2-v.height/2)+this._options.scrollPadding)}}function _removeShowElement(){_forEach(document.querySelectorAll(".introjs-showElement"),(function(i){_removeClass(i,/introjs-[a-zA-Z]+/g)}))}function _setShowElement(i){var o;if(i.element instanceof SVGElement)for(o=i.element.parentNode;null!==i.element.parentNode&&o.tagName&&"body"!==o.tagName.toLowerCase();)"svg"===o.tagName.toLowerCase()&&_addClass(o,"introjs-showElement introjs-relativePosition"),o=o.parentNode;_addClass(i.element,"introjs-showElement");var s=_getPropValue(i.element,"position");for("absolute"!==s&&"relative"!==s&&"fixed"!==s&&_addClass(i.element,"introjs-relativePosition"),o=i.element.parentNode;null!==o&&o.tagName&&"body"!==o.tagName.toLowerCase();){var v=_getPropValue(o,"z-index"),_=parseFloat(_getPropValue(o,"opacity")),$=_getPropValue(o,"transform")||_getPropValue(o,"-webkit-transform")||_getPropValue(o,"-moz-transform")||_getPropValue(o,"-ms-transform")||_getPropValue(o,"-o-transform");(/[0-9]+/.test(v)||_<1||"none"!==$&&void 0!==$)&&_addClass(o,"introjs-fixParent"),o=o.parentNode}}function _forEach(i,o,s){if(i)for(var v=0,_=i.length;v<_;v++)o(i[v],v);"function"==typeof s&&s()}var i,o=(i={},function stamp(o,s){return i[s=s||"introjs-stamp"]=i[s]||0,void 0===o[s]&&(o[s]=i[s]++),o[s]}),s=new function s(){var i="introjs_event";this._id=function(i,s,v,_){return s+o(v)+(_?"_"+o(_):"")},this.on=function(o,s,v,_,$){var ae=this._id.apply(this,arguments),handler=function(i){return v.call(_||o,i||window.event)};"addEventListener"in o?o.addEventListener(s,handler,$):"attachEvent"in o&&o.attachEvent("on"+s,handler),o[i]=o[i]||{},o[i][ae]=handler},this.off=function(o,s,v,_,$){var ae=this._id.apply(this,arguments),pe=o[i]&&o[i][ae];pe&&("removeEventListener"in o?o.removeEventListener(s,pe,$):"detachEvent"in o&&o.detachEvent("on"+s,pe),o[i][ae]=null)}};function _addClass(i,o){if(i instanceof SVGElement){var s=i.getAttribute("class")||"";i.setAttribute("class",s+" "+o)}else void 0!==i.classList?_forEach(o.split(" "),(function(o){i.classList.add(o)})):i.className.match(o)||(i.className+=" "+o)}function _removeClass(i,o){if(i instanceof SVGElement){var s=i.getAttribute("class")||"";i.setAttribute("class",s.replace(o,"").replace(/^\s+|\s+$/g,""))}else i.className=i.className.replace(o,"").replace(/^\s+|\s+$/g,"")}function _getPropValue(i,o){var s="";return i.currentStyle?s=i.currentStyle[o]:document.defaultView&&document.defaultView.getComputedStyle&&(s=document.defaultView.getComputedStyle(i,null).getPropertyValue(o)),s&&s.toLowerCase?s.toLowerCase():s}function _isFixed(i){var o=i.parentNode;return!(!o||"HTML"===o.nodeName)&&("fixed"===_getPropValue(i,"position")||_isFixed(o))}function _getWinSize(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var i=document.documentElement;return{width:i.clientWidth,height:i.clientHeight}}function _elementInViewport(i){var o=i.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom+80<=window.innerHeight&&o.right<=window.innerWidth}function _addOverlayLayer(i){var o=document.createElement("div"),s="",v=this;if(o.className="introjs-overlay",i.tagName&&"body"!==i.tagName.toLowerCase()){var _=_getOffset(i);_&&(s+="width: "+_.width+"px; height:"+_.height+"px; top:"+_.top+"px;left: "+_.left+"px;",o.style.cssText=s)}else s+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",o.style.cssText=s;return i.appendChild(o),o.onclick=function(){!0===v._options.exitOnOverlayClick&&_exitIntro.call(v,i)},window.setTimeout((function(){s+="opacity: "+v._options.overlayOpacity.toString()+";",o.style.cssText=s}),10),!0}function _removeHintTooltip(){var i=document.querySelector(".introjs-hintReference");if(i){var o=i.getAttribute("data-step");return i.parentNode.removeChild(i),o}}function _populateHints(i){if(this._introItems=[],this._options.hints)_forEach(this._options.hints,function(i){var o=_cloneObject(i);"string"==typeof o.element&&(o.element=document.querySelector(o.element)),o.hintPosition=o.hintPosition||this._options.hintPosition,o.hintAnimation=o.hintAnimation||this._options.hintAnimation,null!==o.element&&this._introItems.push(o)}.bind(this));else{var o=i.querySelectorAll("*[data-hint]");if(!o||!o.length)return!1;_forEach(o,function(i){var o=i.getAttribute("data-hintanimation");o=o?"true"===o:this._options.hintAnimation,this._introItems.push({element:i,hint:i.getAttribute("data-hint"),hintPosition:i.getAttribute("data-hintposition")||this._options.hintPosition,hintAnimation:o,tooltipClass:i.getAttribute("data-tooltipclass"),position:i.getAttribute("data-position")||this._options.tooltipPosition})}.bind(this))}_addHints.call(this),s.on(document,"click",_removeHintTooltip,this,!1),s.on(window,"resize",_reAlignHints,this,!0)}function _reAlignHints(){_forEach(this._introItems,function(i){void 0!==i.targetElement&&_alignHintPosition.call(this,i.hintPosition,i.element,i.targetElement)}.bind(this))}function _hintQuerySelectorAll(i){var o=document.querySelector(".introjs-hints");return o?o.querySelectorAll(i):[]}function _hideHint(i){var o=_hintQuerySelectorAll('.introjs-hint[data-step="'+i+'"]')[0];_removeHintTooltip.call(this),o&&_addClass(o,"introjs-hidehint"),void 0!==this._hintCloseCallback&&this._hintCloseCallback.call(this,i)}function _hideHints(){_forEach(_hintQuerySelectorAll(".introjs-hint"),function(i){_hideHint.call(this,i.getAttribute("data-step"))}.bind(this))}function _showHints(){var i=_hintQuerySelectorAll(".introjs-hint");i&&i.length?_forEach(i,function(i){_showHint.call(this,i.getAttribute("data-step"))}.bind(this)):_populateHints.call(this,this._targetElement)}function _showHint(i){var o=_hintQuerySelectorAll('.introjs-hint[data-step="'+i+'"]')[0];o&&_removeClass(o,/introjs-hidehint/g)}function _removeHints(){_forEach(_hintQuerySelectorAll(".introjs-hint"),function(i){_removeHint.call(this,i.getAttribute("data-step"))}.bind(this))}function _removeHint(i){var o=_hintQuerySelectorAll('.introjs-hint[data-step="'+i+'"]')[0];o&&o.parentNode.removeChild(o)}function _addHints(){var i=this,o=document.querySelector(".introjs-hints");null===o&&((o=document.createElement("div")).className="introjs-hints");var getHintClick=function(o){return function(s){var v=s||window.event;v.stopPropagation&&v.stopPropagation(),null!==v.cancelBubble&&(v.cancelBubble=!0),_showHintDialog.call(i,o)}};_forEach(this._introItems,function(i,s){if(!document.querySelector('.introjs-hint[data-step="'+s+'"]')){var v=document.createElement("a");_setAnchorAsButton(v),v.onclick=getHintClick(s),v.className="introjs-hint",i.hintAnimation||_addClass(v,"introjs-hint-no-anim"),_isFixed(i.element)&&_addClass(v,"introjs-fixedhint");var _=document.createElement("div");_.className="introjs-hint-dot";var $=document.createElement("div");$.className="introjs-hint-pulse",v.appendChild(_),v.appendChild($),v.setAttribute("data-step",s),i.targetElement=i.element,i.element=v,_alignHintPosition.call(this,i.hintPosition,v,i.targetElement),o.appendChild(v)}}.bind(this)),document.body.appendChild(o),void 0!==this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function _alignHintPosition(i,o,s){var v=_getOffset.call(this,s),_=20,$=20;switch(i){default:case"top-left":o.style.left=v.left+"px",o.style.top=v.top+"px";break;case"top-right":o.style.left=v.left+v.width-_+"px",o.style.top=v.top+"px";break;case"bottom-left":o.style.left=v.left+"px",o.style.top=v.top+v.height-$+"px";break;case"bottom-right":o.style.left=v.left+v.width-_+"px",o.style.top=v.top+v.height-$+"px";break;case"middle-left":o.style.left=v.left+"px",o.style.top=v.top+(v.height-$)/2+"px";break;case"middle-right":o.style.left=v.left+v.width-_+"px",o.style.top=v.top+(v.height-$)/2+"px";break;case"middle-middle":o.style.left=v.left+(v.width-_)/2+"px",o.style.top=v.top+(v.height-$)/2+"px";break;case"bottom-middle":o.style.left=v.left+(v.width-_)/2+"px",o.style.top=v.top+v.height-$+"px";break;case"top-middle":o.style.left=v.left+(v.width-_)/2+"px",o.style.top=v.top+"px"}}function _showHintDialog(i){var o=document.querySelector('.introjs-hint[data-step="'+i+'"]'),s=this._introItems[i];void 0!==this._hintClickCallback&&this._hintClickCallback.call(this,o,s,i);var v=_removeHintTooltip.call(this);if(parseInt(v,10)!==i){var _=document.createElement("div"),$=document.createElement("div"),ae=document.createElement("div"),pe=document.createElement("div");_.className="introjs-tooltip",_.onclick=function(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0},$.className="introjs-tooltiptext";var we=document.createElement("p");we.innerHTML=s.hint;var _e=document.createElement("a");_e.className=this._options.buttonClass,_e.setAttribute("role","button"),_e.innerHTML=this._options.hintButtonLabel,_e.onclick=_hideHint.bind(this,i),$.appendChild(we),$.appendChild(_e),ae.className="introjs-arrow",_.appendChild(ae),_.appendChild($),this._currentStep=o.getAttribute("data-step"),pe.className="introjs-tooltipReferenceLayer introjs-hintReference",pe.setAttribute("data-step",o.getAttribute("data-step")),_setHelperLayerPosition.call(this,pe),pe.appendChild(_),document.body.appendChild(pe),_placeTooltip.call(this,o,_,ae,null,!0)}}function _getOffset(i){var o=document.body,s=document.documentElement,v=window.pageYOffset||s.scrollTop||o.scrollTop,_=window.pageXOffset||s.scrollLeft||o.scrollLeft,$=i.getBoundingClientRect();return{top:$.top+v,width:$.width,height:$.height,left:$.left+_}}function _getScrollParent(i){var o=window.getComputedStyle(i),s="absolute"===o.position,v=/(auto|scroll)/;if("fixed"===o.position)return document.body;for(var _=i;_=_.parentElement;)if(o=window.getComputedStyle(_),(!s||"static"!==o.position)&&v.test(o.overflow+o.overflowY+o.overflowX))return _;return document.body}function _scrollParentToElement(i,o){i.scrollTop=o.offsetTop-i.offsetTop}function _getProgress(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}function _mergeOptions(i,o){var s,v={};for(s in i)v[s]=i[s];for(s in o)v[s]=o[s];return v}var introJs=function(i){var s;if("object"==typeof i)s=new IntroJs(i);else if("string"==typeof i){var v=document.querySelector(i);if(!v)throw new Error("There is no element with given selector.");s=new IntroJs(v)}else s=new IntroJs(document.body);return introJs.instances[o(s,"introjs-instance")]=s,s};return introJs.version="2.9.3",introJs.instances={},introJs.fn=IntroJs.prototype={clone:function(){return new IntroJs(this)},setOption:function(i,o){return this._options[i]=o,this},setOptions:function(i){return this._options=_mergeOptions(this._options,i),this},start:function(i){return _introForElement.call(this,this._targetElement,i),this},goToStep:function(i){return _goToStep.call(this,i),this},addStep:function(i){return this._options.steps||(this._options.steps=[]),this._options.steps.push(i),this},addSteps:function(i){if(i.length){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(i,v)&&(s[v]=i[v]);return s}function _classCallCheck(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?i:o}function _inherits(i,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var ae="navigator"in i&&/Win/i.test(navigator.platform),pe="navigator"in i&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),we="npm__react-simple-code-editor__textarea",_e="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n."+we+":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n ."+we+" {\n color: transparent !important;\n }\n\n ."+we+"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n",et=function(i){function Editor(){var i,o,s;_classCallCheck(this,Editor);for(var _=arguments.length,$=Array(_),we=0;we<_;we++)$[we]=arguments[we];return o=s=_possibleConstructorReturn(this,(i=Editor.__proto__||Object.getPrototypeOf(Editor)).call.apply(i,[this].concat($))),s.state={capture:!0},s._recordCurrentState=function(){var i=s._input;if(i){var o=i.value,v=i.selectionStart,_=i.selectionEnd;s._recordChange({value:o,selectionStart:v,selectionEnd:_})}},s._getLines=function(i,o){return i.substring(0,o).split("\n")},s._recordChange=function(i){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_=s._history,$=_.stack,ae=_.offset;if($.length&&ae>-1){s._history.stack=$.slice(0,ae+1);var pe=s._history.stack.length;if(pe>100){var we=pe-100;s._history.stack=$.slice(we,pe),s._history.offset=Math.max(s._history.offset-we,0)}}var _e=Date.now();if(o){var et=s._history.stack[s._history.offset];if(et&&_e-et.timestamp<3e3){var tt=/[^a-z0-9]([a-z0-9]+)$/i,nt=s._getLines(et.value,et.selectionStart).pop().match(tt),rt=s._getLines(i.value,i.selectionStart).pop().match(tt);if(nt&&rt&&rt[1].startsWith(nt[1]))return void(s._history.stack[s._history.offset]=v({},i,{timestamp:_e}))}}s._history.stack.push(v({},i,{timestamp:_e})),s._history.offset++},s._updateInput=function(i){var o=s._input;o&&(o.value=i.value,o.selectionStart=i.selectionStart,o.selectionEnd=i.selectionEnd,s.props.onValueChange(i.value))},s._applyEdits=function(i){var o=s._input,_=s._history.stack[s._history.offset];_&&o&&(s._history.stack[s._history.offset]=v({},_,{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),s._recordChange(i),s._updateInput(i)},s._undoEdit=function(){var i=s._history,o=i.stack,v=i.offset,_=o[v-1];_&&(s._updateInput(_),s._history.offset=Math.max(v-1,0))},s._redoEdit=function(){var i=s._history,o=i.stack,v=i.offset,_=o[v+1];_&&(s._updateInput(_),s._history.offset=Math.min(v+1,o.length-1))},s._handleKeyDown=function(i){var o=s.props,v=o.tabSize,_=o.insertSpaces,$=o.ignoreTabKey,we=o.onKeyDown;if(!we||(we(i),!i.defaultPrevented)){27===i.keyCode&&i.target.blur();var _e=i.target,et=_e.value,tt=_e.selectionStart,nt=_e.selectionEnd,rt=(_?" ":"\t").repeat(v);if(9===i.keyCode&&!$&&s.state.capture)if(i.preventDefault(),i.shiftKey){var it=s._getLines(et,tt),ot=it.length-1,st=s._getLines(et,nt).length-1,dt=et.split("\n").map((function(i,o){return o>=ot&&o<=st&&i.startsWith(rt)?i.substring(rt.length):i})).join("\n");if(et!==dt){var ut=it[ot];s._applyEdits({value:dt,selectionStart:ut.startsWith(rt)?tt-rt.length:tt,selectionEnd:nt-(et.length-dt.length)})}}else if(tt!==nt){var lt=s._getLines(et,tt),ct=lt.length-1,ht=s._getLines(et,nt).length-1,pt=lt[ct];s._applyEdits({value:et.split("\n").map((function(i,o){return o>=ct&&o<=ht?rt+i:i})).join("\n"),selectionStart:/\S/.test(pt)?tt+rt.length:tt,selectionEnd:nt+rt.length*(ht-ct+1)})}else{var ft=tt+rt.length;s._applyEdits({value:et.substring(0,tt)+rt+et.substring(nt),selectionStart:ft,selectionEnd:ft})}else if(8===i.keyCode){var gt=tt!==nt;if(et.substring(0,tt).endsWith(rt)&&!gt){i.preventDefault();var mt=tt-rt.length;s._applyEdits({value:et.substring(0,tt-rt.length)+et.substring(nt),selectionStart:mt,selectionEnd:mt})}}else if(13===i.keyCode){if(tt===nt){var yt=s._getLines(et,tt).pop().match(/^\s+/);if(yt&&yt[0]){i.preventDefault();var vt="\n"+yt[0],Rt=tt+vt.length;s._applyEdits({value:et.substring(0,tt)+vt+et.substring(nt),selectionStart:Rt,selectionEnd:Rt})}}}else if(57===i.keyCode||219===i.keyCode||222===i.keyCode||192===i.keyCode){var bt=void 0;57===i.keyCode&&i.shiftKey?bt=["(",")"]:219===i.keyCode?bt=i.shiftKey?["{","}"]:["[","]"]:222===i.keyCode?bt=i.shiftKey?['"','"']:["'","'"]:192!==i.keyCode||i.shiftKey||(bt=["`","`"]),tt!==nt&&bt&&(i.preventDefault(),s._applyEdits({value:et.substring(0,tt)+bt[0]+et.substring(tt,nt)+bt[1]+et.substring(nt),selectionStart:tt,selectionEnd:nt+2}))}else!(pe?i.metaKey&&90===i.keyCode:i.ctrlKey&&90===i.keyCode)||i.shiftKey||i.altKey?(pe?i.metaKey&&90===i.keyCode&&i.shiftKey:ae?i.ctrlKey&&89===i.keyCode:i.ctrlKey&&90===i.keyCode&&i.shiftKey)&&!i.altKey?(i.preventDefault(),s._redoEdit()):77!==i.keyCode||!i.ctrlKey||pe&&!i.shiftKey||(i.preventDefault(),s.setState((function(i){return{capture:!i.capture}}))):(i.preventDefault(),s._undoEdit())}},s._handleChange=function(i){var o=i.target,v=o.value,_=o.selectionStart,$=o.selectionEnd;s._recordChange({value:v,selectionStart:_,selectionEnd:$},!0),s.props.onValueChange(v)},s._history={stack:[],offset:-1},_possibleConstructorReturn(s,o)}return _inherits(Editor,i),_(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var i=this,o=this.props,s=o.value,_=o.style,ae=o.padding,pe=o.highlight,et=o.textareaId,nt=o.autoFocus,rt=o.disabled,it=o.form,ot=o.maxLength,st=o.minLength,dt=o.name,ut=o.placeholder,lt=o.readOnly,ct=o.required,ht=o.onClick,pt=o.onFocus,ft=o.onBlur,gt=o.onKeyUp,mt=(o.onKeyDown,o.onValueChange,o.tabSize,o.insertSpaces,o.ignoreTabKey,_objectWithoutProperties(o,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),yt={paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae},vt=pe(s);return $.createElement("div",v({},mt,{style:v({},tt.container,_)}),$.createElement("textarea",{ref:function ref(o){return i._input=o},style:v({},tt.editor,tt.textarea,yt),className:we,id:et,value:s,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:ht,onKeyUp:gt,onFocus:pt,onBlur:ft,disabled:rt,form:it,maxLength:ot,minLength:st,name:dt,placeholder:ut,readOnly:lt,required:ct,autoFocus:nt,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),$.createElement("pre",v({"aria-hidden":"true",style:v({},tt.editor,tt.highlight,yt)},"string"==typeof vt?{dangerouslySetInnerHTML:{__html:vt+"
"}}:{children:vt})),$.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:_e}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(i){this._history=i.history}}]),Editor}($.Component);et.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},o.default=et;var tt={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,s(23))},function(i,o){var s=/[\'\"]/;i.exports=function unquote(i){return i?(s.test(i.charAt(0))&&(i=i.substr(1)),s.test(i.charAt(i.length-1))&&(i=i.substr(0,i.length-1)),i):""}},function(i,o,s){"use strict";i.exports=function stripHtmlComments(i){if("string"!=typeof i)throw new TypeError("strip-html-comments expected a string");return i.replace(/)/g,"")}},function(i,o,s){!function(){"use strict";var i,v,_,$,ae,pe;function sliceSource(i,o,s){return i.slice(o,s)}function isParamTitle(i){return"param"===i||"argument"===i||"arg"===i}function isReturnTitle(i){return"return"===i||"returns"===i}function isProperty(i){return"property"===i||"prop"===i}function isNameParameterRequired(i){return isParamTitle(i)||isProperty(i)||"alias"===i||"this"===i||"mixes"===i||"requires"===i}function isAllowedNested(i){return isProperty(i)||isParamTitle(i)}function isAllowedOptional(i){return isProperty(i)||isParamTitle(i)}function isTypeParameterRequired(i){return isParamTitle(i)||isReturnTitle(i)||"define"===i||"enum"===i||"implements"===i||"this"===i||"type"===i||"typedef"===i||isProperty(i)}$=s(182),i=s(351),v=s(184),pe=Object.prototype.hasOwnProperty,ae=function hasOwnProperty(i,o){return pe.call(i,o)};var we="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",_e="("+we+"*(?:\\*"+we+"?)?)(.+|[\r\n\u2028\u2029])";function unwrapComment(i){return i.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(_e,"g"),"$2").replace(/\s*$/,"")}function convertUnwrappedCommentIndex(i,o){for(var s,v=i.replace(/^\/\*\*?/,""),_=0,$=new RegExp(_e,"g");s=$.exec(v);)if(_+=s[1].length,s.index+s[0].length>o+_)return o+_+i.length-v.length;return i.replace(/\*\/$/,"").replace(/\s*$/,"").length}!function(o){var s,_,pe,we,_e,et,tt,nt,rt;function advance(){var i=_e.charCodeAt(_);return _+=1,!$.code.isLineTerminator(i)||13===i&&10===_e.charCodeAt(_)||(pe+=1),String.fromCharCode(i)}function scanTitle(){var i,o="";for(advance();_=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57);)o+=advance();return o}function seekContent(){var i,o,s=_;for(o=!1;s=i)return null;if(91===_e.charCodeAt(_)){if(!o)return null;v=!0,pe=advance()}if(pe+=scanIdentifier(i),s)for(58!==_e.charCodeAt(_)||"module"!==pe&&"external"!==pe&&"event"!==pe||(pe+=advance(),pe+=scanIdentifier(i)),91===_e.charCodeAt(_)&&93===_e.charCodeAt(_+1)&&(pe+=advance(),pe+=advance());46===_e.charCodeAt(_)||47===_e.charCodeAt(_)||35===_e.charCodeAt(_)||45===_e.charCodeAt(_)||126===_e.charCodeAt(_);)pe+=advance(),pe+=scanIdentifier(i);if(v){if(skipWhiteSpace(i),61===_e.charCodeAt(_)){var we;pe+=advance(),skipWhiteSpace(i);for(var et=1;_=i||93!==_e.charCodeAt(_))return null;pe+=advance()}return pe}function skipToTag(){for(;_=we)&&(v.assert(64===_e.charCodeAt(_)),!0)}function convertIndex(i){return _e===et?i:convertUnwrappedCommentIndex(et,i)}function TagParser(i,o){this._options=i,this._title=o.toLowerCase(),this._tag={title:o,description:null},this._options.lineNumbers&&(this._tag.lineNumber=pe),this._first=_-o.length-1,this._last=0,this._extra={}}function parseTag(i){var o,s;if(!skipToTag())return null;for(s=(o=new TagParser(i,scanTitle())).parse();_1&&(this._tag.default=i.slice(1).join("=")),this._tag.name=i[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!isNameParameterRequired(this._title))return!0;if(isParamTitle(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},TagParser.prototype.parseDescription=function parseDescription(){var i=sliceSource(_e,_,this._last).trim();return i&&(/^-\s+/.test(i)&&(i=i.substring(2)),this._tag.description=i),!0},TagParser.prototype.parseCaption=function parseDescription(){var i=sliceSource(_e,_,this._last).trim(),o="",s="",v=i.indexOf(o),$=i.indexOf(s);return v>=0&&$>=0?(this._tag.caption=i.substring(v+9,$).trim(),this._tag.description=i.substring($+10).trim()):this._tag.description=i,!0},TagParser.prototype.parseKind=function parseKind(){var i,o;return o={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},i=sliceSource(_e,_,this._last).trim(),this._tag.kind=i,!(!ae(o,i)&&!this.addError("Invalid kind name '%0'",i))},TagParser.prototype.parseAccess=function parseAccess(){var i;return i=sliceSource(_e,_,this._last).trim(),this._tag.access=i,!("private"!==i&&"protected"!==i&&"public"!==i&&!this.addError("Invalid access name '%0'",i))},TagParser.prototype.parseThis=function parseThis(){var i=sliceSource(_e,_,this._last).trim();return i&&"{"===i.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},TagParser.prototype.parseVariation=function parseVariation(){var i,o;return o=sliceSource(_e,_,this._last).trim(),i=parseFloat(o,10),this._tag.variation=i,!(isNaN(i)&&!this.addError("Invalid variation '%0'",o))},TagParser.prototype.ensureEnd=function(){var i=sliceSource(_e,_,this._last).trim();return!(i&&!this.addError("Unknown content '%0'",i))},TagParser.prototype.epilogue=function epilogue(){var i;return i=this._tag.description,!(isAllowedOptional(this._title)&&!this._tag.type&&i&&"["===i.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!nt&&!this.addError("Missing or invalid tag name")))},s={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},TagParser.prototype.parse=function parse(){var i,o,v;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=seekContent(this._title),this._options.range&&(this._tag.range=[this._first,_e.slice(0,this._last).replace(/\s*$/,"").length].map(convertIndex)),i=0,o=(v=ae(s,this._title)?s[this._title]:["parseType","parseName","parseDescription","epilogue"]).length;i=o||s<0||st&&i-it>=et}function timerExpired(){var i=_();if(shouldInvoke(i))return trailingEdge(i);nt=setTimeout(timerExpired,remainingWait(i))}function trailingEdge(i){return nt=void 0,dt&&we?invokeFunc(i):(we=_e=void 0,tt)}function debounced(){var i=_(),s=shouldInvoke(i);if(we=arguments,_e=this,rt=i,s){if(void 0===nt)return leadingEdge(rt);if(st)return clearTimeout(nt),nt=setTimeout(timerExpired,o),invokeFunc(rt)}return void 0===nt&&(nt=setTimeout(timerExpired,o)),tt}return o=$(o)||0,v(s)&&(ot=!!s.leading,et=(st="maxWait"in s)?ae($(s.maxWait)||0,o):et,dt="trailing"in s?!!s.trailing:dt),debounced.cancel=function cancel(){void 0!==nt&&clearTimeout(nt),it=0,we=rt=_e=nt=void 0},debounced.flush=function flush(){return void 0===nt?tt:trailingEdge(_())},debounced}},function(i,o,s){"use strict";const v=s(398),_=/^[\da-fA-F]+$/,$=/^\d+$/,ae=new WeakMap;function getJsxTokens(i){i=i.Parser.acorn||i;let o=ae.get(i);if(!o){const s=i.tokTypes,v=i.TokContext,_=i.TokenType,$=new v("...",!0,!0),_e={tc_oTag:$,tc_cTag:pe,tc_expr:we},et={jsxName:new _("jsxName"),jsxText:new _("jsxText",{beforeExpr:!0}),jsxTagStart:new _("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new _("jsxTagEnd")};et.jsxTagStart.updateContext=function(){this.context.push(we),this.context.push($),this.exprAllowed=!1},et.jsxTagEnd.updateContext=function(i){let o=this.context.pop();o===$&&i===s.slash||o===pe?(this.context.pop(),this.exprAllowed=this.curContext()===we):this.exprAllowed=!0},o={tokContexts:_e,tokTypes:et},ae.set(i,o)}return o}function getQualifiedJSXName(i){return i?"JSXIdentifier"===i.type?i.name:"JSXNamespacedName"===i.type?i.namespace.name+":"+i.name.name:"JSXMemberExpression"===i.type?getQualifiedJSXName(i.object)+"."+getQualifiedJSXName(i.property):void 0:i}function plugin(i,o){const ae=o.acorn||s(129),pe=getJsxTokens(ae),we=ae.tokTypes,_e=pe.tokTypes,et=ae.tokContexts,tt=pe.tokContexts.tc_oTag,nt=pe.tokContexts.tc_cTag,rt=pe.tokContexts.tc_expr,it=ae.isNewLine,ot=ae.isIdentifierStart,st=ae.isIdentifierChar;return class extends o{static get acornJsx(){return pe}jsx_readToken(){let i="",o=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let s=this.input.charCodeAt(this.pos);switch(s){case 60:case 123:return this.pos===this.start?60===s&&this.exprAllowed?(++this.pos,this.finishToken(_e.jsxTagStart)):this.getTokenFromCode(s):(i+=this.input.slice(o,this.pos),this.finishToken(_e.jsxText,i));case 38:i+=this.input.slice(o,this.pos),i+=this.jsx_readEntity(),o=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===s?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:it(s)?(i+=this.input.slice(o,this.pos),i+=this.jsx_readNewLine(!0),o=this.pos):++this.pos}}}jsx_readNewLine(i){let o,s=this.input.charCodeAt(this.pos);return++this.pos,13===s&&10===this.input.charCodeAt(this.pos)?(++this.pos,o=i?"\n":"\r\n"):o=String.fromCharCode(s),this.options.locations&&(++this.curLine,this.lineStart=this.pos),o}jsx_readString(i){let o="",s=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let v=this.input.charCodeAt(this.pos);if(v===i)break;38===v?(o+=this.input.slice(s,this.pos),o+=this.jsx_readEntity(),s=this.pos):it(v)?(o+=this.input.slice(s,this.pos),o+=this.jsx_readNewLine(!1),s=this.pos):++this.pos}return o+=this.input.slice(s,this.pos++),this.finishToken(we.string,o)}jsx_readEntity(){let i,o="",s=0,ae=this.input[this.pos];"&"!==ae&&this.raise(this.pos,"Entity must start with an ampersand");let pe=++this.pos;for(;this.pos")}let ae=_.name?"Element":"Fragment";return s["opening"+ae]=_,s["closing"+ae]=$,s.children=v,this.type===we.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(s,"JSX"+ae)}jsx_parseText(){let i=this.parseLiteral(this.value);return i.type="JSXText",i}jsx_parseElement(){let i=this.start,o=this.startLoc;return this.next(),this.jsx_parseElementAt(i,o)}parseExprAtom(i){return this.type===_e.jsxText?this.jsx_parseText():this.type===_e.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(i)}readToken(i){let o=this.curContext();if(o===rt)return this.jsx_readToken();if(o===tt||o===nt){if(ot(i))return this.jsx_readWord();if(62==i)return++this.pos,this.finishToken(_e.jsxTagEnd);if((34===i||39===i)&&o==tt)return this.jsx_readString(i)}return 60===i&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(_e.jsxTagStart)):super.readToken(i)}updateContext(i){if(this.type==we.braceL){var o=this.curContext();o==tt?this.context.push(et.b_expr):o==rt?this.context.push(et.b_tmpl):super.updateContext(i),this.exprAllowed=!0}else{if(this.type!==we.slash||i!==_e.jsxTagStart)return super.updateContext(i);this.context.length-=2,this.context.push(nt),this.exprAllowed=!1}}}}i.exports=function(i){return i=i||{},function(o){return plugin({allowNamespaces:!1!==i.allowNamespaces,allowNamespacedObjects:!!i.allowNamespacedObjects},o)}},Object.defineProperty(i.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(s(129)).tokTypes},configurable:!0,enumerable:!0})},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.DynamicImportKey=void 0;var v=function(){function defineProperties(i,o){for(var s=0;s>5]|=1<<(31&i)},_.prototype.has=function has(i){return!!(this.bits[i>>5]&1<<(31&i))};var $=function Chunk(i,o,s){this.start=i,this.end=o,this.original=s,this.intro="",this.outro="",this.content=s,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};$.prototype.appendLeft=function appendLeft(i){this.outro+=i},$.prototype.appendRight=function appendRight(i){this.intro=this.intro+i},$.prototype.clone=function clone(){var i=new $(this.start,this.end,this.original);return i.intro=this.intro,i.outro=this.outro,i.content=this.content,i.storeName=this.storeName,i.edited=this.edited,i},$.prototype.contains=function contains(i){return this.start=v.length)return"\t";var _=v.reduce((function(i,o){var s=/^ +/.exec(o)[0].length;return Math.min(s,i)}),1/0);return new Array(_+1).join(" ")}function getRelativePath(i,o){var s=i.split(/[/\\]/),v=o.split(/[/\\]/);for(s.pop();s[0]===v[0];)s.shift(),v.shift();if(s.length)for(var _=s.length;_--;)s[_]="..";return s.concat(v).join("/")}ae.prototype.toString=function toString(){return JSON.stringify(this)},ae.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var pe=Object.prototype.toString;function isObject(i){return"[object Object]"===pe.call(i)}function getLocator(i){for(var o=i.split("\n"),s=[],v=0,_=0;v>1;i=0&&_.push(v),this.rawSegments.push(_)}else this.pending&&this.rawSegments.push(this.pending);this.advance(o),this.pending=null},we.prototype.addUneditedChunk=function addUneditedChunk(i,o,s,v,_){for(var $=o.start,ae=!0;$1){for(var s=0;s=i&&s<=o)throw new Error("Cannot move a selection inside itself");this._split(i),this._split(o),this._split(s);var v=this.byStart[i],_=this.byEnd[o],$=v.previous,ae=_.next,pe=this.byStart[s];if(!pe&&_===this.lastChunk)return this;var we=pe?pe.previous:this.lastChunk;return $&&($.next=ae),ae&&(ae.previous=$),we&&(we.next=v),pe&&(pe.previous=_),v.previous||(this.firstChunk=_.next),_.next||(this.lastChunk=v.previous,this.lastChunk.next=null),v.previous=we,_.next=pe||null,we||(this.firstChunk=v),pe||(this.lastChunk=_),this},tt.prototype.overwrite=function overwrite(i,o,s,v){if("string"!=typeof s)throw new TypeError("replacement content must be a string");for(;i<0;)i+=this.original.length;for(;o<0;)o+=this.original.length;if(o>this.original.length)throw new Error("end is out of bounds");if(i===o)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(i),this._split(o),!0===v&&(et.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),et.storeName=!0),v={storeName:!0});var _=void 0!==v&&v.storeName,ae=void 0!==v&&v.contentOnly;if(_){var pe=this.original.slice(i,o);Object.defineProperty(this.storedNames,pe,{writable:!0,value:!0,enumerable:!0})}var we=this.byStart[i],_e=this.byEnd[o];if(we){for(var tt=we;tt!==_e;){if(tt.next!==this.byStart[tt.end])throw new Error("Cannot overwrite across a split point");(tt=tt.next).edit("",!1)}we.edit(s,_,ae)}else{var nt=new $(i,o,"").edit(s,_);_e.next=nt,nt.previous=_e}return this},tt.prototype.prepend=function prepend(i){if("string"!=typeof i)throw new TypeError("outro content must be a string");return this.intro=i+this.intro,this},tt.prototype.prependLeft=function prependLeft(i,o){if("string"!=typeof o)throw new TypeError("inserted content must be a string");this._split(i);var s=this.byEnd[i];return s?s.prependLeft(o):this.intro=o+this.intro,this},tt.prototype.prependRight=function prependRight(i,o){if("string"!=typeof o)throw new TypeError("inserted content must be a string");this._split(i);var s=this.byStart[i];return s?s.prependRight(o):this.outro=o+this.outro,this},tt.prototype.remove=function remove(i,o){for(;i<0;)i+=this.original.length;for(;o<0;)o+=this.original.length;if(i===o)return this;if(i<0||o>this.original.length)throw new Error("Character is out of bounds");if(i>o)throw new Error("end must be greater than start");this._split(i),this._split(o);for(var s=this.byStart[i];s;)s.intro="",s.outro="",s.edit(""),s=o>s.end?this.byStart[s.end]:null;return this},tt.prototype.lastChar=function lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];var i=this.lastChunk;do{if(i.outro.length)return i.outro[i.outro.length-1];if(i.content.length)return i.content[i.content.length-1];if(i.intro.length)return i.intro[i.intro.length-1]}while(i=i.previous);return this.intro.length?this.intro[this.intro.length-1]:""},tt.prototype.lastLine=function lastLine(){var i=this.outro.lastIndexOf(_e);if(-1!==i)return this.outro.substr(i+1);var o=this.outro,s=this.lastChunk;do{if(s.outro.length>0){if(-1!==(i=s.outro.lastIndexOf(_e)))return s.outro.substr(i+1)+o;o=s.outro+o}if(s.content.length>0){if(-1!==(i=s.content.lastIndexOf(_e)))return s.content.substr(i+1)+o;o=s.content+o}if(s.intro.length>0){if(-1!==(i=s.intro.lastIndexOf(_e)))return s.intro.substr(i+1)+o;o=s.intro+o}}while(s=s.previous);return-1!==(i=this.intro.lastIndexOf(_e))?this.intro.substr(i+1)+o:this.intro+o},tt.prototype.slice=function slice(i,o){for(void 0===i&&(i=0),void 0===o&&(o=this.original.length);i<0;)i+=this.original.length;for(;o<0;)o+=this.original.length;for(var s="",v=this.firstChunk;v&&(v.start>i||v.end<=i);){if(v.start=o)return s;v=v.next}if(v&&v.edited&&v.start!==i)throw new Error("Cannot use replaced character "+i+" as slice start anchor.");for(var _=v;v;){!v.intro||_===v&&v.start!==i||(s+=v.intro);var $=v.start=o;if($&&v.edited&&v.end!==o)throw new Error("Cannot use replaced character "+o+" as slice end anchor.");var ae=_===v?i-v.start:0,pe=$?v.content.length+o-v.end:v.content.length;if(s+=v.content.slice(ae,pe),!v.outro||$&&v.end!==o||(s+=v.outro),$)break;v=v.next}return s},tt.prototype.snip=function snip(i,o){var s=this.clone();return s.remove(0,i),s.remove(o,s.original.length),s},tt.prototype._split=function _split(i){if(!this.byStart[i]&&!this.byEnd[i])for(var o=this.lastSearchedChunk,s=i>o.end;o;){if(o.contains(i))return this._splitChunk(o,i);o=s?this.byStart[o.end]:this.byEnd[o.start]}},tt.prototype._splitChunk=function _splitChunk(i,o){if(i.edited&&i.content.length){var s=getLocator(this.original)(o);throw new Error("Cannot split a chunk that has already been edited ("+s.line+":"+s.column+' – "'+i.original+'")')}var v=i.split(o);return this.byEnd[o]=i,this.byStart[o]=v,this.byEnd[v.end]=v,i===this.lastChunk&&(this.lastChunk=v),this.lastSearchedChunk=i,!0},tt.prototype.toString=function toString(){for(var i=this.intro,o=this.firstChunk;o;)i+=o.toString(),o=o.next;return i+this.outro},tt.prototype.isEmpty=function isEmpty(){var i=this.firstChunk;do{if(i.intro.length&&i.intro.trim()||i.content.length&&i.content.trim()||i.outro.length&&i.outro.trim())return!1}while(i=i.next);return!0},tt.prototype.length=function length(){var i=this.firstChunk,length=0;do{length+=i.intro.length+i.content.length+i.outro.length}while(i=i.next);return length},tt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},tt.prototype.trim=function trim(i){return this.trimStart(i).trimEnd(i)},tt.prototype.trimEndAborted=function trimEndAborted(i){var o=new RegExp((i||"\\s")+"+$");if(this.outro=this.outro.replace(o,""),this.outro.length)return!0;var s=this.lastChunk;do{var v=s.end,_=s.trimEnd(o);if(s.end!==v&&(this.lastChunk===s&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),_)return!0;s=s.previous}while(s);return!1},tt.prototype.trimEnd=function trimEnd(i){return this.trimEndAborted(i),this},tt.prototype.trimStartAborted=function trimStartAborted(i){var o=new RegExp("^"+(i||"\\s")+"+");if(this.intro=this.intro.replace(o,""),this.intro.length)return!0;var s=this.firstChunk;do{var v=s.end,_=s.trimStart(o);if(s.end!==v&&(s===this.lastChunk&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),_)return!0;s=s.next}while(s);return!1},tt.prototype.trimStart=function trimStart(i){return this.trimStartAborted(i),this};var nt=Object.prototype.hasOwnProperty,rt=function Bundle(i){void 0===i&&(i={}),this.intro=i.intro||"",this.separator=void 0!==i.separator?i.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};rt.prototype.addSource=function addSource(i){if(i instanceof tt)return this.addSource({content:i,filename:i.filename,separator:this.separator});if(!isObject(i)||!i.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((function(o){nt.call(i,o)||(i[o]=i.content[o])})),void 0===i.separator&&(i.separator=this.separator),i.filename)if(nt.call(this.uniqueSourceIndexByFilename,i.filename)){var o=this.uniqueSources[this.uniqueSourceIndexByFilename[i.filename]];if(i.content.original!==o.content)throw new Error("Illegal source: same filename ("+i.filename+"), different contents")}else this.uniqueSourceIndexByFilename[i.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:i.filename,content:i.content.original});return this.sources.push(i),this},rt.prototype.append=function append(i,o){return this.addSource({content:new tt(i),separator:o&&o.separator||""}),this},rt.prototype.clone=function clone(){var i=new rt({intro:this.intro,separator:this.separator});return this.sources.forEach((function(o){i.addSource({filename:o.filename,content:o.content.clone(),separator:o.separator})})),i},rt.prototype.generateDecodedMap=function generateDecodedMap(i){var o=this;void 0===i&&(i={});var s=[];this.sources.forEach((function(i){Object.keys(i.content.storedNames).forEach((function(i){~s.indexOf(i)||s.push(i)}))}));var v=new we(i.hires);return this.intro&&v.advance(this.intro),this.sources.forEach((function(i,_){_>0&&v.advance(o.separator);var $=i.filename?o.uniqueSourceIndexByFilename[i.filename]:-1,ae=i.content,pe=getLocator(ae.original);ae.intro&&v.advance(ae.intro),ae.firstChunk.eachNext((function(o){var _=pe(o.start);o.intro.length&&v.advance(o.intro),i.filename?o.edited?v.addEdit($,o.content,_,o.storeName?s.indexOf(o.original):-1):v.addUneditedChunk($,o,ae.original,_,ae.sourcemapLocations):v.advance(o.content),o.outro.length&&v.advance(o.outro)})),ae.outro&&v.advance(ae.outro)})),{file:i.file?i.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(o){return i.file?getRelativePath(i.file,o.filename):o.filename})),sourcesContent:this.uniqueSources.map((function(o){return i.includeContent?o.content:null})),names:s,mappings:v.raw}},rt.prototype.generateMap=function generateMap(i){return new ae(this.generateDecodedMap(i))},rt.prototype.getIndentString=function getIndentString(){var i={};return this.sources.forEach((function(o){var s=o.content.indentStr;null!==s&&(i[s]||(i[s]=0),i[s]+=1)})),Object.keys(i).sort((function(o,s){return i[o]-i[s]}))[0]||"\t"},rt.prototype.indent=function indent(i){var o=this;if(arguments.length||(i=this.getIndentString()),""===i)return this;var s=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(v,_){var $=void 0!==v.separator?v.separator:o.separator,ae=s||_>0&&/\r?\n$/.test($);v.content.indent(i,{exclude:v.indentExclusionRanges,indentStart:ae}),s="\n"===v.content.lastChar()})),this.intro&&(this.intro=i+this.intro.replace(/^[^\n]/gm,(function(o,s){return s>0?i+o:o}))),this},rt.prototype.prepend=function prepend(i){return this.intro=i+this.intro,this},rt.prototype.toString=function toString(){var i=this,o=this.sources.map((function(o,s){var v=void 0!==o.separator?o.separator:i.separator;return(s>0?v:"")+o.content.toString()})).join("");return this.intro+o},rt.prototype.isEmpty=function isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((function(i){return!i.content.isEmpty()}))},rt.prototype.length=function length(){return this.sources.reduce((function(i,o){return i+o.content.length()}),this.intro.length)},rt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},rt.prototype.trim=function trim(i){return this.trimStart(i).trimEnd(i)},rt.prototype.trimStart=function trimStart(i){var o=new RegExp("^"+(i||"\\s")+"+");if(this.intro=this.intro.replace(o,""),!this.intro){var s,v=0;do{if(!(s=this.sources[v++]))break}while(!s.content.trimStartAborted(i))}return this},rt.prototype.trimEnd=function trimEnd(i){var o,s=new RegExp((i||"\\s")+"+$"),v=this.sources.length-1;do{if(!(o=this.sources[v--])){this.intro=this.intro.replace(s,"");break}}while(!o.content.trimEndAborted(i));return this}}).call(this,s(399).Buffer)},function(i,o,s){"use strict";s.d(o,"a",(function(){return encode}));for(var v={},_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",$=0;$<_.length;$++)v[_.charCodeAt($)]=$;function encode(i){for(var o=0,s=0,v=0,_=0,$="",ae=0;ae0&&($+=";"),0!==pe.length){for(var we=0,_e=[],et=0,tt=pe;et1&&(rt+=encodeInteger(nt[1]-o)+encodeInteger(nt[2]-s)+encodeInteger(nt[3]-v),o=nt[1],s=nt[2],v=nt[3]),5===nt.length&&(rt+=encodeInteger(nt[4]-_),_=nt[4]),_e.push(rt)}$+=_e.join(",")}}return $}function encodeInteger(i){var o="";i=i<0?-i<<1|1:i<<1;do{var s=31&i;(i>>>=5)>0&&(s|=32),o+=_[s]}while(i>0);return o}},function(i,o,s){"use strict";const v=s(403).generate,_=s(404).parse,$=s(1),ae=s(405),pe=s(408),we=s(410),_e=s(411),et=$().addRange(0,1114111),tt=$().addRange(0,65535),nt=et.clone().remove(10,13,8232,8233),rt=nt.clone().intersection(tt),getCharacterClassEscapeSet=(i,o,s)=>o?s?_e.UNICODE_IGNORE_CASE.get(i):_e.UNICODE.get(i):_e.REGULAR.get(i),getUnicodePropertyValueSet=(i,o)=>{const v=o?"".concat(i,"/").concat(o):"Binary_Property/".concat(i);try{return s(412)("./".concat(v,".js"))}catch(s){throw new Error("Failed to recognize value `".concat(o,"` for property ")+"`".concat(i,"`."))}},handleLoneUnicodePropertyNameOrValue=i=>{try{const o="General_Category",s=pe(o,i);return getUnicodePropertyValueSet(o,s)}catch(i){}const o=ae(i);return getUnicodePropertyValueSet(o)},getUnicodePropertyEscapeSet=(i,o)=>{const s=i.split("="),v=s[0];let _;if(1==s.length)_=handleLoneUnicodePropertyNameOrValue(v);else{const i=ae(v),o=pe(i,s[1]);_=getUnicodePropertyValueSet(i,o)}return o?et.clone().remove(_):_.clone()};$.prototype.iuAddRange=function(i,o){const s=this;do{const o=caseFold(i);o&&s.add(o)}while(++i<=o);return s};const update=(i,o)=>{let s=_(o,it.useUnicodeFlag?"u":"");switch(s.type){case"characterClass":case"group":case"value":break;default:s=wrap(s,o)}Object.assign(i,s)},wrap=(i,o)=>({type:"group",behavior:"ignore",body:[i],raw:"(?:".concat(o,")")}),caseFold=i=>we.get(i)||!1,processCharacterClass=(i,o)=>{let s=$();for(const o of i.body)switch(o.type){case"value":if(s.add(o.codePoint),it.ignoreCase&&it.unicode&&!it.useUnicodeFlag){const i=caseFold(o.codePoint);i&&s.add(i)}break;case"characterClassRange":const i=o.min.codePoint,v=o.max.codePoint;s.addRange(i,v),it.ignoreCase&&it.unicode&&!it.useUnicodeFlag&&s.iuAddRange(i,v);break;case"characterClassEscape":s.add(getCharacterClassEscapeSet(o.value,it.unicode,it.ignoreCase));break;case"unicodePropertyEscape":s.add(getUnicodePropertyEscapeSet(o.value,o.negative));break;default:throw new Error("Unknown term type: ".concat(o.type))}return i.negative&&(s=(it.unicode?et:tt).clone().remove(s)),update(i,s.toString(o)),i},updateNamedReference=(i,o)=>{delete i.name,i.matchIndex=o},assertNoUnmatchedReferences=i=>{const o=Object.keys(i.unmatchedReferences);if(o.length>0)throw new Error("Unknown group names: ".concat(o))},processTerm=(i,o,s)=>{switch(i.type){case"dot":update(i,(v=it.unicode,_=it.dotAll,_?v?et:tt:v?nt:rt).toString(o));break;case"characterClass":i=processCharacterClass(i,o);break;case"unicodePropertyEscape":update(i,getUnicodePropertyEscapeSet(i.value,i.negative).toString(o));break;case"characterClassEscape":update(i,getCharacterClassEscapeSet(i.value,it.unicode,it.ignoreCase).toString(o));break;case"group":if(s.lastIndex++,i.name){const o=i.name.value;if(s.names[o])throw new Error("Multiple groups with the same name (".concat(o,") are not allowed."));const v=s.lastIndex;delete i.name,s.names[o]=v,s.onNamedGroup&&s.onNamedGroup.call(null,o,v),s.unmatchedReferences[o]&&(s.unmatchedReferences[o].forEach((i=>{updateNamedReference(i,v)})),delete s.unmatchedReferences[o])}case"alternative":case"disjunction":case"quantifier":i.body=i.body.map((i=>processTerm(i,o,s)));break;case"value":const ae=i.codePoint,pe=$(ae);if(it.ignoreCase&&it.unicode&&!it.useUnicodeFlag){const i=caseFold(ae);i&&pe.add(i)}update(i,pe.toString(o));break;case"reference":if(i.name){const o=i.name.value,v=s.names[o];if(v){updateNamedReference(i,v);break}s.unmatchedReferences[o]||(s.unmatchedReferences[o]=[]),s.unmatchedReferences[o].push(i)}break;case"anchor":case"empty":case"group":break;default:throw new Error("Unknown term type: ".concat(i.type))}var v,_;return i},it={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};i.exports=(i,o,s)=>{const $={unicodePropertyEscape:s&&s.unicodePropertyEscape,namedGroups:s&&s.namedGroup,lookbehind:s&&s.lookbehind};it.ignoreCase=o&&o.includes("i"),it.unicode=o&&o.includes("u");const ae=s&&s.dotAllFlag;it.dotAll=ae&&o&&o.includes("s"),it.useUnicodeFlag=s&&s.useUnicodeFlag;const pe={hasUnicodeFlag:it.useUnicodeFlag,bmpOnly:!it.unicode},we={onNamedGroup:s&&s.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},_e=_(i,o,$);return processTerm(_e,pe,we),assertNoUnmatchedReferences(we),v(_e)}},function(i,o){i.exports=function clipboardCopy(i){if(navigator.clipboard)return navigator.clipboard.writeText(i).catch((function(i){throw void 0!==i?i:new DOMException("The request is not allowed","NotAllowedError")}));var o=document.createElement("span");o.textContent=i,o.style.whiteSpace="pre",o.style.webkitUserSelect="auto",o.style.userSelect="all",document.body.appendChild(o);var s=window.getSelection(),v=window.document.createRange();s.removeAllRanges(),v.selectNode(o),s.addRange(v);var _=!1;try{_=window.document.execCommand("copy")}catch(i){console.log("error",i)}return s.removeAllRanges(),window.document.body.removeChild(o),_?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}},function(i,o,s){var v=s(25).isFinite;i.exports=function isFinite(i){return"number"==typeof i&&v(i)}},function(i,o,s){var v;!function(){"use strict";var s={}.hasOwnProperty;function classNames(){for(var i=[],o=0;o=0||(_[s]=i[s]);return _},i.exports.__esModule=!0,i.exports.default=i.exports},function(i,o,s){"use strict";s.d(o,"a",(function(){return content}));var v=s(7);function events(i){var{type:o="scroll",events:s}=i;return v.e.fromClass(class{constructor(i){this.dom=void 0,this.view=void 0,this.view=i,this.dom="dom"===o?i.dom:"content"===o?i.contentDOM:i.scrollDOM,Object.keys(s||{}).forEach((i=>{s&&s[i]&&this.dom&&this.dom.addEventListener(i,s[i])}))}destroy(){Object.keys(s||{}).forEach((i=>{s&&s[i]&&this.dom&&this.dom.removeEventListener(i,s[i])}))}})}function content(i){return events({type:"content",events:i})}},function(i,o,s){"use strict";function t(){return t=Object.assign?Object.assign.bind():function(i){for(var o=1;o0&&(i.strPos=i.currentElContent.length-1,i.strings.unshift(i.currentElContent)),i.sequence=[],i.strings)i.sequence[pe]=pe;i.arrayPos=0,i.stopNum=0,i.loop=i.options.loop,i.loopCount=i.options.loopCount,i.curLoop=0,i.shuffle=i.options.shuffle,i.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},i.typingComplete=!1,i.autoInsertCss=i.options.autoInsertCss,i.autoInsertCss&&(this.appendCursorAnimationCss(i),this.appendFadeOutAnimationCss(i))},i.getCurrentElContent=function(i){return i.attr?i.el.getAttribute(i.attr):i.isInput?i.el.value:"html"===i.contentType?i.el.innerHTML:i.el.textContent},i.appendCursorAnimationCss=function(i){var o="data-typed-js-cursor-css";if(i.showCursor&&!document.querySelector("["+o+"]")){var s=document.createElement("style");s.setAttribute(o,"true"),s.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(s)}},i.appendFadeOutAnimationCss=function(i){var o="data-typed-fadeout-js-css";if(i.fadeOut&&!document.querySelector("["+o+"]")){var s=document.createElement("style");s.setAttribute(o,"true"),s.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(s)}},e}()),$=new(function(){function t(){}var i=t.prototype;return i.typeHtmlChars=function(i,o,s){if("html"!==s.contentType)return o;var v=i.substring(o).charAt(0);if("<"===v||"&"===v){var _;for(_="<"===v?">":";";i.substring(o+1).charAt(0)!==_&&!(1+ ++o>i.length););o++}return o},i.backSpaceHtmlChars=function(i,o,s){if("html"!==s.contentType)return o;var v=i.substring(o).charAt(0);if(">"===v||";"===v){var _;for(_=">"===v?"<":"&";i.substring(o-1).charAt(0)!==_&&!(--o<0););o--}return o},t}()),ae=function(){function t(i,o){_.load(this,o,i),this.begin()}var i=t.prototype;return i.toggle=function(){this.pause.status?this.start():this.stop()},i.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},i.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},i.destroy=function(){this.reset(!1),this.options.onDestroy(this)},i.reset=function(i){void 0===i&&(i=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,i&&(this.insertCursor(),this.options.onReset(this),this.begin())},i.begin=function(){var i=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){0===i.strPos?i.typewrite(i.strings[i.sequence[i.arrayPos]],i.strPos):i.backspace(i.strings[i.sequence[i.arrayPos]],i.strPos)}),this.startDelay)},i.typewrite=function(i,o){var s=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var v=this.humanizer(this.typeSpeed),_=1;!0!==this.pause.status?this.timeout=setTimeout((function(){o=$.typeHtmlChars(i,o,s);var v=0,ae=i.substring(o);if("^"===ae.charAt(0)&&/^\^\d+/.test(ae)){var pe=1;pe+=(ae=/\d+/.exec(ae)[0]).length,v=parseInt(ae),s.temporaryPause=!0,s.options.onTypingPaused(s.arrayPos,s),i=i.substring(0,o)+i.substring(o+pe),s.toggleBlinking(!0)}if("`"===ae.charAt(0)){for(;"`"!==i.substring(o+_).charAt(0)&&(_++,!(o+_>i.length)););var we=i.substring(0,o),_e=i.substring(we.length+1,o+_),et=i.substring(o+_+1);i=we+_e+et,_--}s.timeout=setTimeout((function(){s.toggleBlinking(!1),o>=i.length?s.doneTyping(i,o):s.keepTyping(i,o,_),s.temporaryPause&&(s.temporaryPause=!1,s.options.onTypingResumed(s.arrayPos,s))}),v)}),v):this.setPauseStatus(i,o,!0)},i.keepTyping=function(i,o,s){0===o&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var v=i.substring(0,o+=s);this.replaceText(v),this.typewrite(i,o)},i.doneTyping=function(i,o){var s=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){s.backspace(i,o)}),this.backDelay))},i.backspace=function(i,o){var s=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var v=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){o=$.backSpaceHtmlChars(i,o,s);var v=i.substring(0,o);if(s.replaceText(v),s.smartBackspace){var _=s.strings[s.arrayPos+1];s.stopNum=_&&v===_.substring(0,o)?o:0}o>s.stopNum?(o--,s.backspace(i,o)):o<=s.stopNum&&(s.arrayPos++,s.arrayPos===s.strings.length?(s.arrayPos=0,s.options.onLastStringBackspaced(),s.shuffleStringsIfNeeded(),s.begin()):s.typewrite(s.strings[s.sequence[s.arrayPos]],o))}),v)}else this.setPauseStatus(i,o,!1)},i.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},i.setPauseStatus=function(i,o,s){this.pause.typewrite=s,this.pause.curString=i,this.pause.curStrPos=o},i.toggleBlinking=function(i){this.cursor&&(this.pause.status||this.cursorBlinking!==i&&(this.cursorBlinking=i,i?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},i.humanizer=function(i){return Math.round(Math.random()*i/2)+i},i.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))},i.initFadeOut=function(){var i=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){i.arrayPos++,i.replaceText(""),i.strings.length>i.arrayPos?i.typewrite(i.strings[i.sequence[i.arrayPos]],0):(i.typewrite(i.strings[0],0),i.arrayPos=0)}),this.fadeOutDelay)},i.replaceText=function(i){this.attr?this.el.setAttribute(this.attr,i):this.isInput?this.el.value=i:"html"===this.contentType?this.el.innerHTML=i:this.el.textContent=i},i.bindFocusEvents=function(){var i=this;this.isInput&&(this.el.addEventListener("focus",(function(o){i.stop()})),this.el.addEventListener("blur",(function(o){i.el.value&&0!==i.el.value.length||i.start()})))},i.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},t}()},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var v=function _interopRequireWildcard(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var v=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(i,s):{};v.get||v.set?Object.defineProperty(o,s,v):o[s]=i[s]}return o.default=i,o}(s(0)),_=_interopRequireDefault(s(2)),$=s(853),ae=s(133),pe=_interopRequireDefault(s(861)),we=_interopRequireDefault(s(862));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(i){return typeof i}:function _typeof(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}function _toConsumableArray(i){return _arrayWithoutHoles(i)||_iterableToArray(i)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(i){if(Symbol.iterator in Object(i)||"[object Arguments]"===Object.prototype.toString.call(i))return Array.from(i)}function _arrayWithoutHoles(i){if(Array.isArray(i)){for(var o=0,s=new Array(i.length);o1?v-1:0),$=1;${let{state:v,dispatch:_}=s;if(v.readOnly)return!1;let $=i(o,v);return!!$&&(_(v.update($)),!0)}}const nt=command(changeLineComment,0),rt=command(changeBlockComment,0),it=command(((i,o)=>changeBlockComment(i,o,selectedLineRanges(o))),0);function getConfig(i,o){let s=i.languageDataAt("commentTokens",o);return s.length?s[0]:{}}const ot=50;function findBlockComment(i,o,s,v){let _,$,{open:ae,close:pe}=o,we=i.sliceDoc(s-ot,s),_e=i.sliceDoc(v,v+ot),et=/\s*$/.exec(we)[0].length,tt=/^\s*/.exec(_e)[0].length,nt=we.length-et;if(we.slice(nt-ae.length,nt)==ae&&_e.slice(tt,tt+pe.length)==pe)return{open:{pos:s-et,margin:et&&1},close:{pos:v+tt,margin:tt&&1}};v-s<=2*ot?_=$=i.sliceDoc(s,v):(_=i.sliceDoc(s,s+ot),$=i.sliceDoc(v-ot,v));let rt=/^\s*/.exec(_)[0].length,it=/\s*$/.exec($)[0].length,st=$.length-it-pe.length;return _.slice(rt,rt+ae.length)==ae&&$.slice(st,st+pe.length)==pe?{open:{pos:s+rt+ae.length,margin:/\s/.test(_.charAt(rt+ae.length))?1:0},close:{pos:v-it-pe.length,margin:/\s/.test($.charAt(st-1))?1:0}}:null}function selectedLineRanges(i){let o=[];for(let s of i.selection.ranges){let v=i.doc.lineAt(s.from),_=s.to<=v.to?v:i.doc.lineAt(s.to),$=o.length-1;$>=0&&o[$].to>v.from?o[$].to=_.to:o.push({from:v.from+/^\s*/.exec(v.text)[0].length,to:_.to})}return o}function changeBlockComment(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.selection.ranges,v=s.map((i=>getConfig(o,i.from).block));if(!v.every((i=>i)))return null;let _=s.map(((i,s)=>findBlockComment(o,v[s],i.from,i.to)));if(2!=i&&!_.every((i=>i)))return{changes:o.changes(s.map(((i,o)=>_[o]?[]:[{from:i.from,insert:v[o].open+" "},{from:i.to,insert:" "+v[o].close}])))};if(1!=i&&_.some((i=>i))){let i=[];for(let o,s=0;s<_.length;s++)if(o=_[s]){let _=v[s],{open:$,close:ae}=o;i.push({from:$.pos-_.open.length,to:$.pos+$.margin},{from:ae.pos-ae.margin,to:ae.pos+_.close.length})}return{changes:i}}return null}function changeLineComment(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.selection.ranges,v=[],_=-1;for(let{from:i,to:$}of s){let s=v.length,ae=1e9,pe=getConfig(o,i).line;if(pe){for(let s=i;s<=$;){let we=o.doc.lineAt(s);if(we.from>_&&(i==$||$>we.from)){_=we.from;let i=/^\s*/.exec(we.text)[0].length,o=i==we.length,s=we.text.slice(i,i+pe.length)==pe?i:-1;ii.comment<0&&(!i.empty||i.single)))){let i=[];for(let{line:o,token:s,indent:_,empty:$,single:ae}of v)!ae&&$||i.push({from:o.from+_,insert:s+" "});let s=o.changes(i);return{changes:s,selection:o.selection.map(s,1)}}if(1!=i&&v.some((i=>i.comment>=0))){let i=[];for(let{line:o,comment:s,token:_}of v)if(s>=0){let v=o.from+s,$=v+_.length;" "==o.text[$-o.from]&&$++,i.push({from:v,to:$})}return{changes:i}}return null}const st=we.a.define(),dt=we.a.define(),ut=we.g.define(),lt=we.g.define({combine:i=>Object(we.s)(i,{minDepth:100,newGroupDelay:500,joinToEvent:(i,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(i,o)=>(s,v)=>i(s,v)||o(s,v)})}),ct=we.n.define({create:()=>bt.empty,update(i,o){let s=o.state.facet(lt),v=o.annotation(st);if(v){let _=mt.fromTransaction(o,v.selection),$=v.side,ae=0==$?i.undone:i.done;return ae=_?updateBranch(ae,ae.length,s.minDepth,_):addSelection(ae,o.startState.selection),new bt(0==$?v.rest:ae,0==$?ae:v.rest)}let _=o.annotation(dt);if("full"!=_&&"before"!=_||(i=i.isolate()),!1===o.annotation(we.p.addToHistory))return o.changes.empty?i:i.addMapping(o.changes.desc);let $=mt.fromTransaction(o),ae=o.annotation(we.p.time),pe=o.annotation(we.p.userEvent);return $?i=i.addChanges($,ae,pe,s,o):o.selection&&(i=i.addSelection(o.startState.selection,ae,pe,s.newGroupDelay)),"full"!=_&&"after"!=_||(i=i.isolate()),i},toJSON:i=>({done:i.done.map((i=>i.toJSON())),undone:i.undone.map((i=>i.toJSON()))}),fromJSON:i=>new bt(i.done.map(mt.fromJSON),i.undone.map(mt.fromJSON))});function dist_history(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[ct,lt.of(i),_e.c.domEventHandlers({beforeinput(i,o){let s="historyUndo"==i.inputType?ht:"historyRedo"==i.inputType?pt:null;return!!s&&(i.preventDefault(),s(o))}})]}function cmd(i,o){return function(s){let{state:v,dispatch:_}=s;if(!o&&v.readOnly)return!1;let $=v.field(ct,!1);if(!$)return!1;let ae=$.pop(i,v,o);return!!ae&&(_(ae),!0)}}const ht=cmd(0,!1),pt=cmd(1,!1),ft=cmd(0,!0),gt=cmd(1,!0);class mt{constructor(i,o,s,v,_){this.changes=i,this.effects=o,this.mapped=s,this.startSelection=v,this.selectionsAfter=_}setSelAfter(i){return new mt(this.changes,this.effects,this.mapped,this.startSelection,i)}toJSON(){var i,o,s;return{changes:null===(i=this.changes)||void 0===i?void 0:i.toJSON(),mapped:null===(o=this.mapped)||void 0===o?void 0:o.toJSON(),startSelection:null===(s=this.startSelection)||void 0===s?void 0:s.toJSON(),selectionsAfter:this.selectionsAfter.map((i=>i.toJSON()))}}static fromJSON(i){return new mt(i.changes&&we.c.fromJSON(i.changes),[],i.mapped&&we.b.fromJSON(i.mapped),i.startSelection&&we.e.fromJSON(i.startSelection),i.selectionsAfter.map(we.e.fromJSON))}static fromTransaction(i,o){let s=yt;for(let o of i.startState.facet(ut)){let v=o(i);v.length&&(s=s.concat(v))}return!s.length&&i.changes.empty?null:new mt(i.changes.invert(i.startState.doc),s,void 0,o||i.startState.selection,yt)}static selection(i){return new mt(void 0,yt,void 0,void 0,i)}}function updateBranch(i,o,s,v){let _=o+1>s+20?o-s-1:0,$=i.slice(_,o);return $.push(v),$}function isAdjacent(i,o){let s=[],v=!1;return i.iterChangedRanges(((i,o)=>s.push(i,o))),o.iterChangedRanges(((i,o,_,$)=>{for(let i=0;i=o&&_<=ae&&(v=!0)}})),v}function conc(i,o){return i.length?o.length?i.concat(o):i:o}const yt=[],vt=200;function addSelection(i,o){if(i.length){let s=i[i.length-1],v=s.selectionsAfter.slice(Math.max(0,s.selectionsAfter.length-vt));return v.length&&v[v.length-1].eq(o)?i:(v.push(o),updateBranch(i,i.length-1,1e9,s.setSelAfter(v)))}return[mt.selection([o])]}function popSelection(i){let o=i[i.length-1],s=i.slice();return s[i.length-1]=o.setSelAfter(o.selectionsAfter.slice(0,o.selectionsAfter.length-1)),s}function addMappingToBranch(i,o){if(!i.length)return i;let s=i.length,v=yt;for(;s;){let _=mapEvent(i[s-1],o,v);if(_.changes&&!_.changes.empty||_.effects.length){let o=i.slice(0,s);return o[s-1]=_,o}o=_.mapped,s--,v=_.selectionsAfter}return v.length?[mt.selection(v)]:yt}function mapEvent(i,o,s){let v=conc(i.selectionsAfter.length?i.selectionsAfter.map((i=>i.map(o))):yt,s);if(!i.changes)return mt.selection(v);let _=i.changes.map(o),$=o.mapDesc(i.changes,!0),ae=i.mapped?i.mapped.composeDesc($):$;return new mt(_,we.m.mapEffects(i.effects,o),ae,i.startSelection.map($),v)}const Rt=/^(input\.type|delete)($|\.)/;class bt{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=i,this.undone=o,this.prevTime=s,this.prevUserEvent=v}isolate(){return this.prevTime?new bt(this.done,this.undone):this}addChanges(i,o,s,v,_){let $=this.done,ae=$[$.length-1];return $=ae&&ae.changes&&!ae.changes.empty&&i.changes&&(!s||Rt.test(s))&&(!ae.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimei.empty!=ae.ranges[o].empty)).length)?this:new bt(addSelection(this.done,i),this.undone,o,s);var $,ae}addMapping(i){return new bt(addMappingToBranch(this.done,i),addMappingToBranch(this.undone,i),this.prevTime,this.prevUserEvent)}pop(i,o,s){let v=0==i?this.done:this.undone;if(0==v.length)return null;let _=v[v.length-1],$=_.selectionsAfter[0]||o.selection;if(s&&_.selectionsAfter.length)return o.update({selection:_.selectionsAfter[_.selectionsAfter.length-1],annotations:st.of({side:i,rest:popSelection(v),selection:$}),userEvent:0==i?"select.undo":"select.redo",scrollIntoView:!0});if(_.changes){let s=1==v.length?yt:v.slice(0,v.length-1);return _.mapped&&(s=addMappingToBranch(s,_.mapped)),o.update({changes:_.changes,selection:_.startSelection,effects:_.effects,annotations:st.of({side:i,rest:s,selection:$}),filter:!1,userEvent:0==i?"undo":"redo",scrollIntoView:!0})}return null}}bt.empty=new bt(yt,yt);const Ot=[{key:"Mod-z",run:ht,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:pt,preventDefault:!0},{linux:"Ctrl-Shift-z",run:pt,preventDefault:!0},{key:"Mod-u",run:ft,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:gt,preventDefault:!0}];function updateSel(i,o){return we.e.create(i.ranges.map(o),i.mainIndex)}function setSel(i,o){return i.update({selection:o,scrollIntoView:!0,userEvent:"select"})}function moveSel(i,o){let{state:s,dispatch:v}=i,_=updateSel(s.selection,o);return!_.eq(s.selection)&&(v(setSel(s,_)),!0)}function rangeEnd(i,o){return we.e.cursor(o?i.to:i.from)}function cursorByChar(i,o){return moveSel(i,(s=>s.empty?i.moveByChar(s,o):rangeEnd(s,o)))}function ltrAtCursor(i){return i.textDirectionAt(i.state.selection.main.head)==_e.b.LTR}const cursorCharLeft=i=>cursorByChar(i,!ltrAtCursor(i)),cursorCharRight=i=>cursorByChar(i,ltrAtCursor(i));function cursorByGroup(i,o){return moveSel(i,(s=>s.empty?i.moveByGroup(s,o):rangeEnd(s,o)))}"undefined"!=typeof Intl&&Intl.Segmenter;function interestingNode(i,o,s){if(o.type.prop(s))return!0;let v=o.to-o.from;return v&&(v>2||/[^\s,.;:]/.test(i.sliceDoc(o.from,o.to)))||o.firstChild}function moveBySyntax(i,o,s){let v,_,$=Object(et.x)(i).resolveInner(o.head),ae=s?tt.c.closedBy:tt.c.openedBy;for(let v=o.head;;){let o=s?$.childAfter(v):$.childBefore(v);if(!o)break;interestingNode(i,o,ae)?$=o:v=s?o.to:o.from}return _=$.type.prop(ae)&&(v=s?Object(et.u)(i,$.from,1):Object(et.u)(i,$.to,-1))&&v.matched?s?v.end.to:v.end.from:s?$.to:$.from,we.e.cursor(_,s?-1:1)}function cursorByLine(i,o){return moveSel(i,(s=>{if(!s.empty)return rangeEnd(s,o);let v=i.moveVertically(s,o);return v.head!=s.head?v:i.moveToLineBoundary(s,o)}))}const cursorLineUp=i=>cursorByLine(i,!1),cursorLineDown=i=>cursorByLine(i,!0);function pageInfo(i){let o,s=i.scrollDOM.clientHeights.empty?i.moveVertically(s,o,v.height):rangeEnd(s,o)));if($.eq(_.selection))return!1;if(v.selfScroll){let o=i.coordsAtPos(_.selection.main.head),ae=i.scrollDOM.getBoundingClientRect(),pe=ae.top+v.marginTop,we=ae.bottom-v.marginBottom;o&&o.top>pe&&o.bottomcursorByPage(i,!1),cursorPageDown=i=>cursorByPage(i,!0);function moveByLineBoundary(i,o,s){let v=i.lineBlockAt(o.head),_=i.moveToLineBoundary(o,s);if(_.head==o.head&&_.head!=(s?v.to:v.from)&&(_=i.moveToLineBoundary(o,s,!1)),!s&&_.head==v.from&&v.length){let s=/^\s*/.exec(i.state.sliceDoc(v.from,Math.min(v.from+100,v.to)))[0].length;s&&o.head!=v.from+s&&(_=we.e.cursor(v.from+s))}return _}function toMatchingBracket(i,o,s){let v=!1,_=updateSel(i.selection,(o=>{let _=Object(et.u)(i,o.head,-1)||Object(et.u)(i,o.head,1)||o.head>0&&Object(et.u)(i,o.head-1,1)||o.head{let s=o(i);return we.e.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)}));return!s.eq(i.state.selection)&&(i.dispatch(setSel(i.state,s)),!0)}function selectByChar(i,o){return extendSel(i,(s=>i.moveByChar(s,o)))}const selectCharLeft=i=>selectByChar(i,!ltrAtCursor(i)),selectCharRight=i=>selectByChar(i,ltrAtCursor(i));function selectByGroup(i,o){return extendSel(i,(s=>i.moveByGroup(s,o)))}function selectByLine(i,o){return extendSel(i,(s=>i.moveVertically(s,o)))}const selectLineUp=i=>selectByLine(i,!1),selectLineDown=i=>selectByLine(i,!0);function selectByPage(i,o){return extendSel(i,(s=>i.moveVertically(s,o,pageInfo(i).height)))}const selectPageUp=i=>selectByPage(i,!1),selectPageDown=i=>selectByPage(i,!0),cursorDocStart=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:0})),!0},cursorDocEnd=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:o.doc.length})),!0},selectDocStart=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:o.selection.main.anchor,head:0})),!0},selectDocEnd=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:o.selection.main.anchor,head:o.doc.length})),!0};function deleteBy(i,o){if(i.state.readOnly)return!1;let s="delete.selection",{state:v}=i,_=v.changeByRange((v=>{let{from:_,to:$}=v;if(_==$){let ae=o(v);ae<_?(s="delete.backward",ae=skipAtomic(i,ae,!1)):ae>_&&(s="delete.forward",ae=skipAtomic(i,ae,!0)),_=Math.min(_,ae),$=Math.max($,ae)}else _=skipAtomic(i,_,!1),$=skipAtomic(i,$,!0);return _==$?{range:v}:{changes:{from:_,to:$},range:we.e.cursor(_,_o(i))))v.between(o,o,((i,v)=>{io&&(o=s?v:i)}));return o}const deleteByChar=(i,o)=>deleteBy(i,(s=>{let v,_,$=s.from,{state:ae}=i,pe=ae.doc.lineAt($);if(!o&&$>pe.from&&$deleteByChar(i,!1),deleteCharForward=i=>deleteByChar(i,!0),deleteByGroup=(i,o)=>deleteBy(i,(s=>{let v=s.head,{state:_}=i,$=_.doc.lineAt(v),ae=_.charCategorizer(v);for(let i=null;;){if(v==(o?$.to:$.from)){v==s.head&&$.number!=(o?_.doc.lines:1)&&(v+=o?1:-1);break}let pe=Object(we.u)($.text,v-$.from,o)+$.from,_e=$.text.slice(Math.min(v,pe)-$.from,Math.max(v,pe)-$.from),et=ae(_e);if(null!=i&&et!=i)break;" "==_e&&v==s.head||(i=et),v=pe}return v})),deleteGroupBackward=i=>deleteByGroup(i,!1);function selectedLineBlocks(i){let o=[],s=-1;for(let v of i.selection.ranges){let _=i.doc.lineAt(v.from),$=i.doc.lineAt(v.to);if(v.empty||v.to!=$.from||($=i.doc.lineAt(v.to-1)),s>=_.number){let i=o[o.length-1];i.to=$.to,i.ranges.push(v)}else o.push({from:_.from,to:$.to,ranges:[v]});s=$.number+1}return o}function moveLine(i,o,s){if(i.readOnly)return!1;let v=[],_=[];for(let o of selectedLineBlocks(i)){if(s?o.to==i.doc.length:0==o.from)continue;let $=i.doc.lineAt(s?o.to+1:o.from-1),ae=$.length+1;if(s){v.push({from:o.to,to:$.to},{from:o.from,insert:$.text+i.lineBreak});for(let s of o.ranges)_.push(we.e.range(Math.min(i.doc.length,s.anchor+ae),Math.min(i.doc.length,s.head+ae)))}else{v.push({from:$.from,to:o.from},{from:o.to,insert:i.lineBreak+$.text});for(let i of o.ranges)_.push(we.e.range(i.anchor-ae,i.head-ae))}}return!!v.length&&(o(i.update({changes:v,scrollIntoView:!0,selection:we.e.create(_,i.selection.mainIndex),userEvent:"move.line"})),!0)}function copyLine(i,o,s){if(i.readOnly)return!1;let v=[];for(let o of selectedLineBlocks(i))s?v.push({from:o.from,insert:i.doc.slice(o.from,o.to)+i.lineBreak}):v.push({from:o.to,insert:i.lineBreak+i.doc.slice(o.from,o.to)});return o(i.update({changes:v,scrollIntoView:!0,userEvent:"input.copyline"})),!0}function isBetweenBrackets(i,o){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(o-1,o+1)))return{from:o,to:o};let s,v=Object(et.x)(i).resolveInner(o),_=v.childBefore(o),$=v.childAfter(o);return _&&$&&_.to<=o&&$.from>=o&&(s=_.type.prop(tt.c.closedBy))&&s.indexOf($.name)>-1&&i.doc.lineAt(_.to).from==i.doc.lineAt($.from).from&&!/\S/.test(i.sliceDoc(_.to,$.from))?{from:_.to,to:$.from}:null}const xt=newlineAndIndent(!1);function newlineAndIndent(i){return o=>{let{state:s,dispatch:v}=o;if(s.readOnly)return!1;let _=s.changeByRange((o=>{let{from:v,to:_}=o,$=s.doc.lineAt(v),ae=!i&&v==_&&isBetweenBrackets(s,v);i&&(v=_=(_<=$.to?$:s.doc.lineAt(_)).to);let pe=new et.b(s,{simulateBreak:v,simulateDoubleBreak:!!ae}),_e=Object(et.p)(pe,v);for(null==_e&&(_e=Object(we.t)(/^\s*/.exec(s.doc.lineAt(v).text)[0],s.tabSize));_<$.to&&/\s/.test($.text[_-$.from]);)_++;ae?({from:v,to:_}=ae):v>$.from&&v<$.from+100&&!/\S/.test($.text.slice(0,v))&&(v=$.from);let tt=["",Object(et.s)(s,_e)];return ae&&tt.push(Object(et.s)(s,pe.lineIndent($.from,-1))),{changes:{from:v,to:_,insert:we.o.of(tt)},range:we.e.cursor(v+1+tt[1].length)}}));return v(s.update(_,{scrollIntoView:!0,userEvent:"input"})),!0}}function changeBySelectedLine(i,o){let s=-1;return i.changeByRange((v=>{let _=[];for(let $=v.from;$<=v.to;){let ae=i.doc.lineAt($);ae.number>s&&(v.empty||v.to>ae.from)&&(o(ae,_,v),s=ae.number),$=ae.to+1}let $=i.changes(_);return{changes:_,range:we.e.range($.mapPos(v.anchor,1),$.mapPos(v.head,1))}}))}const indentMore=i=>{let{state:o,dispatch:s}=i;return!o.readOnly&&(s(o.update(changeBySelectedLine(o,((i,s)=>{s.push({from:i.from,insert:o.facet(et.t)})})),{userEvent:"input.indent"})),!0)},indentLess=i=>{let{state:o,dispatch:s}=i;return!o.readOnly&&(s(o.update(changeBySelectedLine(o,((i,s)=>{let v=/^\s*/.exec(i.text)[0];if(!v)return;let _=Object(we.t)(v,o.tabSize),$=0,ae=Object(et.s)(o,Math.max(0,_-Object(et.o)(o)));for(;$moveSel(i,(o=>moveBySyntax(i.state,o,!ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveBySyntax(i.state,o,!ltrAtCursor(i))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:i=>moveSel(i,(o=>moveBySyntax(i.state,o,ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveBySyntax(i.state,o,ltrAtCursor(i))))},{key:"Alt-ArrowUp",run:i=>{let{state:o,dispatch:s}=i;return moveLine(o,s,!1)}},{key:"Shift-Alt-ArrowUp",run:i=>{let{state:o,dispatch:s}=i;return copyLine(o,s,!1)}},{key:"Alt-ArrowDown",run:i=>{let{state:o,dispatch:s}=i;return moveLine(o,s,!0)}},{key:"Shift-Alt-ArrowDown",run:i=>{let{state:o,dispatch:s}=i;return copyLine(o,s,!0)}},{key:"Escape",run:i=>{let{state:o,dispatch:s}=i,v=o.selection,_=null;return v.ranges.length>1?_=we.e.create([v.main]):v.main.empty||(_=we.e.create([we.e.cursor(v.main.head)])),!!_&&(s(setSel(o,_)),!0)}},{key:"Mod-Enter",run:newlineAndIndent(!0)},{key:"Alt-l",mac:"Ctrl-l",run:i=>{let{state:o,dispatch:s}=i,v=selectedLineBlocks(o).map((i=>{let{from:s,to:v}=i;return we.e.range(s,Math.min(v+1,o.doc.length))}));return s(o.update({selection:we.e.create(v),userEvent:"select"})),!0}},{key:"Mod-i",run:i=>{let{state:o,dispatch:s}=i,v=updateSel(o.selection,(i=>{var s;for(let v=Object(et.x)(o).resolveStack(i.from,1);v;v=v.next){let{node:o}=v;if((o.from=i.to||o.to>i.to&&o.from<=i.from)&&(null===(s=o.parent)||void 0===s?void 0:s.parent))return we.e.range(o.to,o.from)}return i}));return s(setSel(o,v)),!0},preventDefault:!0},{key:"Mod-[",run:indentLess},{key:"Mod-]",run:indentMore},{key:"Mod-Alt-\\",run:i=>{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let v=Object.create(null),_=new et.b(o,{overrideIndentation:i=>{let o=v[i];return null==o?-1:o}}),$=changeBySelectedLine(o,((i,s,$)=>{let ae=Object(et.p)(_,i.from);if(null==ae)return;/\S/.test(i.text)||(ae=0);let pe=/^\s*/.exec(i.text)[0],we=Object(et.s)(o,ae);(pe!=we||$.from{if(i.state.readOnly)return!1;let{state:o}=i,s=o.changes(selectedLineBlocks(o).map((i=>{let{from:s,to:v}=i;return s>0?s--:vi.moveVertically(o,!0))).map(s);return i.dispatch({changes:s,selection:v,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:i=>{let{state:o,dispatch:s}=i;return toMatchingBracket(o,s,!1)}},{key:"Mod-/",run:i=>{let{state:o}=i,s=o.doc.lineAt(o.selection.main.from),v=getConfig(i.state,s.from);return v.line?nt(i):!!v.block&&it(i)}},{key:"Alt-A",run:rt}].concat([{key:"ArrowLeft",run:cursorCharLeft,shift:selectCharLeft,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:i=>cursorByGroup(i,!ltrAtCursor(i)),shift:i=>selectByGroup(i,!ltrAtCursor(i)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,!ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,!ltrAtCursor(i)))),preventDefault:!0},{key:"ArrowRight",run:cursorCharRight,shift:selectCharRight,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:i=>cursorByGroup(i,ltrAtCursor(i)),shift:i=>selectByGroup(i,ltrAtCursor(i)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,ltrAtCursor(i)))),preventDefault:!0},{key:"ArrowUp",run:cursorLineUp,shift:selectLineUp,preventDefault:!0},{mac:"Cmd-ArrowUp",run:cursorDocStart,shift:selectDocStart},{mac:"Ctrl-ArrowUp",run:cursorPageUp,shift:selectPageUp},{key:"ArrowDown",run:cursorLineDown,shift:selectLineDown,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cursorDocEnd,shift:selectDocEnd},{mac:"Ctrl-ArrowDown",run:cursorPageDown,shift:selectPageDown},{key:"PageUp",run:cursorPageUp,shift:selectPageUp},{key:"PageDown",run:cursorPageDown,shift:selectPageDown},{key:"Home",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,!1))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,!1))),preventDefault:!0},{key:"Mod-Home",run:cursorDocStart,shift:selectDocStart},{key:"End",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,!0))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,!0))),preventDefault:!0},{key:"Mod-End",run:cursorDocEnd,shift:selectDocEnd},{key:"Enter",run:xt},{key:"Mod-a",run:i=>{let{state:o,dispatch:s}=i;return s(o.update({selection:{anchor:0,head:o.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:deleteCharBackward,shift:deleteCharBackward},{key:"Delete",run:deleteCharForward},{key:"Mod-Backspace",mac:"Alt-Backspace",run:deleteGroupBackward},{key:"Mod-Delete",mac:"Alt-Delete",run:i=>deleteByGroup(i,!0)},{mac:"Mod-Backspace",run:i=>deleteBy(i,(o=>{let s=i.moveToLineBoundary(o,!1).head;return o.head>s?s:Math.max(0,o.head-1)}))},{mac:"Mod-Delete",run:i=>deleteBy(i,(o=>{let s=i.moveToLineBoundary(o,!0).head;return o.headmoveSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).from,1))),shift:i=>extendSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).from)))},{key:"Ctrl-e",run:i=>moveSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).to,-1))),shift:i=>extendSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).to)))},{key:"Ctrl-d",run:deleteCharForward},{key:"Ctrl-h",run:deleteCharBackward},{key:"Ctrl-k",run:i=>deleteBy(i,(o=>{let s=i.lineBlockAt(o.head).to;return o.head{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let v=o.changeByRange((i=>({changes:{from:i.from,to:i.to,insert:we.o.of(["",""])},range:we.e.cursor(i.from)})));return s(o.update(v,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:i=>{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let v=o.changeByRange((i=>{if(!i.empty||0==i.from||i.from==o.doc.length)return{range:i};let s=i.from,v=o.doc.lineAt(s),_=s==v.from?s-1:Object(we.u)(v.text,s-v.from,!1)+v.from,$=s==v.to?s+1:Object(we.u)(v.text,s-v.from,!0)+v.from;return{changes:{from:_,to:$,insert:o.doc.slice(s,$).append(o.doc.slice(_,s))},range:we.e.cursor($)}}));return!v.changes.empty&&(s(o.update(v,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:cursorPageDown}].map((i=>({mac:i.key,run:i.run,shift:i.shift}))))),Ct={key:"Tab",run:indentMore,shift:indentLess};function crelt(){var i=arguments[0];"string"==typeof i&&(i=document.createElement(i));var o=1,s=arguments[1];if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){for(var v in s)if(Object.prototype.hasOwnProperty.call(s,v)){var _=s[v];"string"==typeof _?i.setAttribute(v,_):null!=_&&(i[v]=_)}o++}for(;oi.normalize("NFKD"):i=>i;class _t{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.length,_=arguments.length>4?arguments[4]:void 0,$=arguments.length>5?arguments[5]:void 0;this.test=$,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=i.iterRange(s,v),this.bufferStart=s,this.normalize=_?i=>_(St(i)):St,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Object(we.q)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let i=this.peek();if(i<0)return this.done=!0,this;let o=Object(we.w)(i),s=this.bufferStart+this.bufferPos;this.bufferPos+=Object(we.r)(i);let v=this.normalize(o);for(let i=0,_=s;;i++){let $=v.charCodeAt(i),ae=this.match($,_);if(i==v.length-1){if(ae)return this.value=ae,this;break}_==s&&i3&&void 0!==arguments[3]?arguments[3]:0,_=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.length;if(this.text=i,this.to=_,this.curLine="",this.done=!1,this.value=Et,/\\[sWDnr]|\n|\r|\[\^/.test(o))return new Tt(i,o,s,v,_);this.re=new RegExp(o,kt+((null==s?void 0:s.ignoreCase)?"i":"")),this.test=null==s?void 0:s.test,this.iter=i.iter();let $=i.lineAt(v);this.curLineStart=$.from,this.matchPos=toCharEnd(i,v),this.getLine(this.curLineStart)}getLine(i){this.iter.next(i),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let i=this.matchPos-this.curLineStart;;){this.re.lastIndex=i;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let s=this.curLineStart+o.index,v=s+o[0].length;if(this.matchPos=toCharEnd(this.text,v+(s==v?1:0)),s==this.curLineStart+this.curLine.length&&this.nextLine(),(sthis.value.to)&&(!this.test||this.test(s,v,o)))return this.value={from:s,to:v,match:o},this;i=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=s||v.to<=o){let v=new Pt(o,i.sliceString(o,s));return Dt.set(i,v),v}if(v.from==o&&v.to==s)return v;let{text:_,from:$}=v;return $>o&&(_=i.sliceString(o,$)+_,$=o),v.to=this.to?this.to:this.text.lineAt(i).to}next(){for(;;){let i=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==i&&(this.re.lastIndex=i+1,o=this.re.exec(this.flat.text)),o){let i=this.flat.from+o.index,s=i+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,o)))return this.value={from:i,to:s,match:o},this.matchPos=toCharEnd(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Pt.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function validRegExp(i){try{return new RegExp(i,kt),!0}catch(i){return!1}}function toCharEnd(i,o){if(o>=i.length)return o;let s,v=i.lineAt(o);for(;o=56320&&s<57344;)o++;return o}function createLineDialog(i){let o=crelt("input",{class:"cm-textfield",name:"line",value:String(i.state.doc.lineAt(i.state.selection.main.head).number)});function go(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!s)return;let{state:v}=i,_=v.doc.lineAt(v.selection.main.head),[,$,ae,pe,et]=s,tt=pe?+pe.slice(1):0,nt=ae?+ae:_.number;if(ae&&et){let i=nt/100;$&&(i=i*("-"==$?-1:1)+_.number/v.doc.lines),nt=Math.round(v.doc.lines*i)}else ae&&$&&(nt=nt*("-"==$?-1:1)+_.number);let rt=v.doc.line(Math.max(1,Math.min(v.doc.lines,nt))),it=we.e.cursor(rt.from+Math.max(0,Math.min(tt,rt.length)));i.dispatch({effects:[It.of(!1),_e.c.scrollIntoView(it.from,{y:"center"})],selection:it}),i.focus()}return{dom:crelt("form",{class:"cm-gotoLine",onkeydown:o=>{27==o.keyCode?(o.preventDefault(),i.dispatch({effects:It.of(!1)}),i.focus()):13==o.keyCode&&(o.preventDefault(),go())},onsubmit:i=>{i.preventDefault(),go()}},crelt("label",i.state.phrase("Go to line"),": ",o)," ",crelt("button",{class:"cm-button",type:"submit"},i.state.phrase("go")))}}"undefined"!=typeof Symbol&&(At.prototype[Symbol.iterator]=Tt.prototype[Symbol.iterator]=function(){return this});const It=we.m.define(),Ft=we.n.define({create:()=>!0,update(i,o){for(let s of o.effects)s.is(It)&&(i=s.value);return i},provide:i=>_e.w.from(i,(i=>i?createLineDialog:null))}),Nt=_e.c.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Bt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Lt=we.g.define({combine:i=>Object(we.s)(i,Bt,{highlightWordAroundCursor:(i,o)=>i||o,minSelectionLength:Math.min,maxMatches:Math.min})});function highlightSelectionMatches(i){let o=[Vt,Qt];return i&&o.push(Lt.of(i)),o}const jt=_e.a.mark({class:"cm-selectionMatch"}),Mt=_e.a.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function insideWordBoundaries(i,o,s,v){return!(0!=s&&i(o.sliceDoc(s-1,s))==we.d.Word||v!=o.doc.length&&i(o.sliceDoc(v,v+1))==we.d.Word)}function insideWord(i,o,s,v){return i(o.sliceDoc(s,s+1))==we.d.Word&&i(o.sliceDoc(v-1,v))==we.d.Word}const Qt=_e.e.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.selectionSet||i.docChanged||i.viewportChanged)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let o=i.state.facet(Lt),{state:s}=i,v=s.selection;if(v.ranges.length>1)return _e.a.none;let _,$=v.main,ae=null;if($.empty){if(!o.highlightWordAroundCursor)return _e.a.none;let i=s.wordAt($.head);if(!i)return _e.a.none;ae=s.charCategorizer($.head),_=s.sliceDoc(i.from,i.to)}else{let i=$.to-$.from;if(i200)return _e.a.none;if(o.wholeWords){if(_=s.sliceDoc($.from,$.to),ae=s.charCategorizer($.head),!insideWordBoundaries(ae,s,$.from,$.to)||!insideWord(ae,s,$.from,$.to))return _e.a.none}else if(_=s.sliceDoc($.from,$.to).trim(),!_)return _e.a.none}let pe=[];for(let v of i.visibleRanges){let i=new _t(s.doc,_,v.from,v.to);for(;!i.next().done;){let{from:v,to:_}=i.value;if((!ae||insideWordBoundaries(ae,s,v,_))&&($.empty&&v<=$.from&&_>=$.to?pe.push(Mt.range(v,_)):(v>=$.to||_<=$.from)&&pe.push(jt.range(v,_)),pe.length>o.maxMatches))return _e.a.none}}return _e.a.set(pe)}},{decorations:i=>i.decorations}),Vt=_e.c.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),selectWord=i=>{let{state:o,dispatch:s}=i,{selection:v}=o,_=we.e.create(v.ranges.map((i=>o.wordAt(i.head)||we.e.cursor(i.head))),v.mainIndex);return!_.eq(v)&&(s(o.update({selection:_})),!0)};function findNextOccurrence(i,o){let{main:s,ranges:v}=i.selection,_=i.wordAt(s.head),$=_&&_.from==s.from&&_.to==s.to;for(let s=!1,_=new _t(i.doc,o,v[v.length-1].to);;){if(_.next(),!_.done){if(s&&v.some((i=>i.from==_.value.from)))continue;if($){let o=i.wordAt(_.value.from);if(!o||o.from!=_.value.from||o.to!=_.value.to)continue}return _.value}if(s)return null;_=new _t(i.doc,o,0,Math.max(0,v[v.length-1].from-1)),s=!0}}const Ut=we.g.define({combine:i=>Object(we.s)(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:i=>new ia(i),scrollToMatch:i=>_e.c.scrollIntoView(i)})});class Wt{constructor(i){this.search=i.search,this.caseSensitive=!!i.caseSensitive,this.literal=!!i.literal,this.regexp=!!i.regexp,this.replace=i.replace||"",this.valid=!!this.search&&(!this.regexp||validRegExp(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!i.wholeWord}unquote(i){return this.literal?i:i.replace(/\\([nrt\\])/g,((i,o)=>"n"==o?"\n":"r"==o?"\r":"t"==o?"\t":"\\"))}eq(i){return this.search==i.search&&this.replace==i.replace&&this.caseSensitive==i.caseSensitive&&this.regexp==i.regexp&&this.wholeWord==i.wholeWord}create(){return this.regexp?new zt(this):new qt(this)}getCursor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0,v=i.doc?i:we.f.create({doc:i});return null==s&&(s=v.doc.length),this.regexp?regexpCursor(this,v,o,s):stringCursor(this,v,o,s)}}class $t{constructor(i){this.spec=i}}function stringCursor(i,o,s,v){return new _t(o.doc,i.unquoted,s,v,i.caseSensitive?void 0:i=>i.toLowerCase(),i.wholeWord?(_=o.doc,$=o.charCategorizer(o.selection.main.head),(i,o,s,v)=>((v>i||v+s.length=o)return null;v.push(s.value)}return v}highlight(i,o,s,v){let _=stringCursor(this.spec,i,Math.max(0,o-this.spec.unquoted.length),Math.min(s+this.spec.unquoted.length,i.doc.length));for(;!_.next().done;)v(_.value.from,_.value.to)}}function regexpCursor(i,o,s,v){return new At(o.doc,i.search,{ignoreCase:!i.caseSensitive,test:i.wholeWord?(_=o.charCategorizer(o.selection.main.head),(i,o,s)=>!s[0].length||(_(charBefore(s.input,s.index))!=we.d.Word||_(charAfter(s.input,s.index))!=we.d.Word)&&(_(charAfter(s.input,s.index+s[0].length))!=we.d.Word||_(charBefore(s.input,s.index+s[0].length))!=we.d.Word)):void 0},s,v);var _}function charBefore(i,o){return i.slice(Object(we.u)(i,o,!1),o)}function charAfter(i,o){return i.slice(o,Object(we.u)(i,o))}class zt extends $t{nextMatch(i,o,s){let v=regexpCursor(this.spec,i,s,i.doc.length).next();return v.done&&(v=regexpCursor(this.spec,i,0,o).next()),v.done?null:v.value}prevMatchInRange(i,o,s){for(let v=1;;v++){let _=Math.max(o,s-1e4*v),$=regexpCursor(this.spec,i,_,s),ae=null;for(;!$.next().done;)ae=$.value;if(ae&&(_==o||ae.from>_+10))return ae;if(_==o)return null}}prevMatch(i,o,s){return this.prevMatchInRange(i,0,o)||this.prevMatchInRange(i,s,i.doc.length)}getReplacement(i){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((o,s)=>"$"==s?"$":"&"==s?i.match[0]:"0"!=s&&+s=o)return null;v.push(s.value)}return v}highlight(i,o,s,v){let _=regexpCursor(this.spec,i,Math.max(0,o-250),Math.min(s+250,i.doc.length));for(;!_.next().done;)v(_.value.from,_.value.to)}}const Zt=we.m.define(),Ht=we.m.define(),Gt=we.n.define({create:i=>new Xt(defaultQuery(i).create(),null),update(i,o){for(let s of o.effects)s.is(Zt)?i=new Xt(s.value.create(),i.panel):s.is(Ht)&&(i=new Xt(i.query,s.value?createSearchPanel:null));return i},provide:i=>_e.w.from(i,(i=>i.panel))});class Xt{constructor(i,o){this.query=i,this.panel=o}}const Yt=_e.a.mark({class:"cm-searchMatch"}),Kt=_e.a.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Jt=_e.e.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(Gt))}update(i){let o=i.state.field(Gt);(o!=i.startState.field(Gt)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(o))}highlight(i){let{query:o,panel:s}=i;if(!s||!o.spec.valid)return _e.a.none;let{view:v}=this,_=new we.k;for(let i=0,s=v.visibleRanges,$=s.length;i<$;i++){let{from:ae,to:pe}=s[i];for(;i<$-1&&pe>s[i+1].from-500;)pe=s[++i].to;o.highlight(v.state,ae,pe,((i,o)=>{let s=v.state.selection.ranges.some((s=>s.from==i&&s.to==o));_.add(i,o,s?Kt:Yt)}))}return _.finish()}},{decorations:i=>i.decorations});function searchCommand(i){return o=>{let s=o.state.field(Gt,!1);return s&&s.query.spec.valid?i(o,s):openSearchPanel(o)}}const nn=searchCommand(((i,o)=>{let{query:s}=o,{to:v}=i.state.selection.main,_=s.nextMatch(i.state,v,v);if(!_)return!1;let $=we.e.single(_.from,_.to),ae=i.state.facet(Ut);return i.dispatch({selection:$,effects:[announceMatch(i,_),ae.scrollToMatch($.main,i)],userEvent:"select.search"}),selectSearchInput(i),!0})),_n=searchCommand(((i,o)=>{let{query:s}=o,{state:v}=i,{from:_}=v.selection.main,$=s.prevMatch(v,_,_);if(!$)return!1;let ae=we.e.single($.from,$.to),pe=i.state.facet(Ut);return i.dispatch({selection:ae,effects:[announceMatch(i,$),pe.scrollToMatch(ae.main,i)],userEvent:"select.search"}),selectSearchInput(i),!0})),An=searchCommand(((i,o)=>{let{query:s}=o,v=s.matchAll(i.state,1e3);return!(!v||!v.length)&&(i.dispatch({selection:we.e.create(v.map((i=>we.e.range(i.from,i.to)))),userEvent:"select.search.matches"}),!0)})),Zn=searchCommand(((i,o)=>{let{query:s}=o,{state:v}=i,{from:_,to:$}=v.selection.main;if(v.readOnly)return!1;let ae=s.nextMatch(v,_,_);if(!ae)return!1;let pe,et,tt=[],nt=[];if(ae.from==_&&ae.to==$&&(et=v.toText(s.getReplacement(ae)),tt.push({from:ae.from,to:ae.to,insert:et}),ae=s.nextMatch(v,ae.from,ae.to),nt.push(_e.c.announce.of(v.phrase("replaced match on line $",v.doc.lineAt(_).number)+"."))),ae){let o=0==tt.length||tt[0].from>=ae.to?0:ae.to-ae.from-et.length;pe=we.e.single(ae.from-o,ae.to-o),nt.push(announceMatch(i,ae)),nt.push(v.facet(Ut).scrollToMatch(pe.main,i))}return i.dispatch({changes:tt,selection:pe,effects:nt,userEvent:"input.replace"}),!0})),aa=searchCommand(((i,o)=>{let{query:s}=o;if(i.state.readOnly)return!1;let v=s.matchAll(i.state,1e9).map((i=>{let{from:o,to:v}=i;return{from:o,to:v,insert:s.getReplacement(i)}}));if(!v.length)return!1;let _=i.state.phrase("replaced $ matches",v.length)+".";return i.dispatch({changes:v,effects:_e.c.announce.of(_),userEvent:"input.replace.all"}),!0}));function createSearchPanel(i){return i.state.facet(Ut).createPanel(i)}function defaultQuery(i,o){var s,v,_,$,ae;let pe=i.selection.main,we=pe.empty||pe.to>pe.from+100?"":i.sliceDoc(pe.from,pe.to);if(o&&!we)return o;let _e=i.facet(Ut);return new Wt({search:(null!==(s=null==o?void 0:o.literal)&&void 0!==s?s:_e.literal)?we:we.replace(/\n/g,"\\n"),caseSensitive:null!==(v=null==o?void 0:o.caseSensitive)&&void 0!==v?v:_e.caseSensitive,literal:null!==(_=null==o?void 0:o.literal)&&void 0!==_?_:_e.literal,regexp:null!==($=null==o?void 0:o.regexp)&&void 0!==$?$:_e.regexp,wholeWord:null!==(ae=null==o?void 0:o.wholeWord)&&void 0!==ae?ae:_e.wholeWord})}function getSearchInput(i){let o=Object(_e.j)(i,createSearchPanel);return o&&o.dom.querySelector("[main-field]")}function selectSearchInput(i){let o=getSearchInput(i);o&&o==i.root.activeElement&&o.select()}const openSearchPanel=i=>{let o=i.state.field(Gt,!1);if(o&&o.panel){let s=getSearchInput(i);if(s&&s!=i.root.activeElement){let v=defaultQuery(i.state,o.query.spec);v.valid&&i.dispatch({effects:Zt.of(v)}),s.focus(),s.select()}}else i.dispatch({effects:[Ht.of(!0),o?Zt.of(defaultQuery(i.state,o.query.spec)):we.m.appendConfig.of(va)]});return!0},closeSearchPanel=i=>{let o=i.state.field(Gt,!1);if(!o||!o.panel)return!1;let s=Object(_e.j)(i,createSearchPanel);return s&&s.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:Ht.of(!1)}),!0},ra=[{key:"Mod-f",run:openSearchPanel,scope:"editor search-panel"},{key:"F3",run:nn,shift:_n,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:nn,shift:_n,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:closeSearchPanel,scope:"editor search-panel"},{key:"Mod-Shift-l",run:i=>{let{state:o,dispatch:s}=i,v=o.selection;if(v.ranges.length>1||v.main.empty)return!1;let{from:_,to:$}=v.main,ae=[],pe=0;for(let i=new _t(o.doc,o.sliceDoc(_,$));!i.next().done;){if(ae.length>1e3)return!1;i.value.from==_&&(pe=ae.length),ae.push(we.e.range(i.value.from,i.value.to))}return s(o.update({selection:we.e.create(ae,pe),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:i=>{let o=Object(_e.j)(i,createLineDialog);if(!o){let s=[It.of(!0)];null==i.state.field(Ft,!1)&&s.push(we.m.appendConfig.of([Ft,Nt])),i.dispatch({effects:s}),o=Object(_e.j)(i,createLineDialog)}return o&&o.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:i=>{let{state:o,dispatch:s}=i,{ranges:v}=o.selection;if(v.some((i=>i.from===i.to)))return selectWord({state:o,dispatch:s});let _=o.sliceDoc(v[0].from,v[0].to);if(o.selection.ranges.some((i=>o.sliceDoc(i.from,i.to)!=_)))return!1;let $=findNextOccurrence(o,_);return!!$&&(s(o.update({selection:o.selection.addRange(we.e.range($.from,$.to),!1),effects:_e.c.scrollIntoView($.to)})),!0)},preventDefault:!0}];class ia{constructor(i){this.view=i;let o=this.query=i.state.field(Gt).query.spec;function button(i,o,s){return crelt("button",{class:"cm-button",name:i,onclick:o,type:"button"},s)}this.commit=this.commit.bind(this),this.searchField=crelt("input",{value:o.search,placeholder:phrase(i,"Find"),"aria-label":phrase(i,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=crelt("input",{value:o.replace,placeholder:phrase(i,"Replace"),"aria-label":phrase(i,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=crelt("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=crelt("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=crelt("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit}),this.dom=crelt("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,button("next",(()=>nn(i)),[phrase(i,"next")]),button("prev",(()=>_n(i)),[phrase(i,"previous")]),button("select",(()=>An(i)),[phrase(i,"all")]),crelt("label",null,[this.caseField,phrase(i,"match case")]),crelt("label",null,[this.reField,phrase(i,"regexp")]),crelt("label",null,[this.wordField,phrase(i,"by word")]),...i.state.readOnly?[]:[crelt("br"),this.replaceField,button("replace",(()=>Zn(i)),[phrase(i,"replace")]),button("replaceAll",(()=>aa(i)),[phrase(i,"replace all")])],crelt("button",{name:"close",onclick:()=>closeSearchPanel(i),"aria-label":phrase(i,"close"),type:"button"},["×"])])}commit(){let i=new Wt({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});i.eq(this.query)||(this.query=i,this.view.dispatch({effects:Zt.of(i)}))}keydown(i){Object(_e.v)(this.view,i,"search-panel")?i.preventDefault():13==i.keyCode&&i.target==this.searchField?(i.preventDefault(),(i.shiftKey?_n:nn)(this.view)):13==i.keyCode&&i.target==this.replaceField&&(i.preventDefault(),Zn(this.view))}update(i){for(let o of i.transactions)for(let i of o.effects)i.is(Zt)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(i){this.query=i,this.searchField.value=i.search,this.replaceField.value=i.replace,this.caseField.checked=i.caseSensitive,this.reField.checked=i.regexp,this.wordField.checked=i.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Ut).top}}function phrase(i,o){return i.state.phrase(o)}const ca=30,ha=/[\s\.,:;?!]/;function announceMatch(i,o){let{from:s,to:v}=o,_=i.state.doc.lineAt(s),$=i.state.doc.lineAt(v).to,ae=Math.max(_.from,s-ca),pe=Math.min($,v+ca),we=i.state.sliceDoc(ae,pe);if(ae!=_.from)for(let i=0;iwe.length-ca;i--)if(!ha.test(we[i-1])&&ha.test(we[i])){we=we.slice(0,i);break}return _e.c.announce.of("".concat(i.state.phrase("current match"),". ").concat(we," ").concat(i.state.phrase("on line")," ").concat(_.number,"."))}const ga=_e.c.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),va=[Gt,we.i.low(Jt),ga];var Oa=s(16);class xa{constructor(i,o,s){this.from=i,this.to=o,this.diagnostic=s}}class _a{constructor(i,o,s){this.diagnostics=i,this.panel=o,this.selected=s}static init(i,o,s){let v=i,_=s.facet(ir).markerFilter;_&&(v=_(v));let $=_e.a.set(v.map((i=>i.from==i.to||i.from==i.to-1&&s.doc.lineAt(i.from).to==i.from?_e.a.widget({widget:new or(i),diagnostic:i}).range(i.from):_e.a.mark({attributes:{class:"cm-lintRange cm-lintRange-"+i.severity+(i.markClass?" "+i.markClass:"")},diagnostic:i}).range(i.from,i.to))),!0);return new _a($,o,findDiagnostic($))}}function findDiagnostic(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=null;return i.between(s,1e9,((i,s,_)=>{let{spec:$}=_;if(!o||$.diagnostic==o)return v=new xa(i,s,$.diagnostic),!1})),v}function hideTooltip(i,o){let s=i.startState.doc.lineAt(o.pos);return!(!i.effects.some((i=>i.is(ja)))&&!i.changes.touchesRange(s.from,s.to))}function maybeEnableLint(i,o){return i.field(nr,!1)?o:o.concat(we.m.appendConfig.of(lr))}const ja=we.m.define(),er=we.m.define(),tr=we.m.define(),nr=we.n.define({create:()=>new _a(_e.a.none,null,null),update(i,o){if(o.docChanged){let s=i.diagnostics.map(o.changes),v=null;if(i.selected){let _=o.changes.mapPos(i.selected.from,1);v=findDiagnostic(s,i.selected.diagnostic,_)||findDiagnostic(s,null,_)}i=new _a(s,i.panel,v)}for(let s of o.effects)s.is(ja)?i=_a.init(s.value,i.panel,o.state):s.is(er)?i=new _a(i.diagnostics,s.value?dr.open:null,i.selected):s.is(tr)&&(i=new _a(i.diagnostics,i.panel,s.value));return i},provide:i=>[_e.w.from(i,(i=>i.panel)),_e.c.decorations.from(i,(i=>i.diagnostics))]});const ar=_e.a.mark({class:"cm-lintRange cm-lintRange-active"});function lintTooltip(i,o,s){let{diagnostics:v}=i.state.field(nr),_=[],$=2e8,ae=0;v.between(o-(s<0?1:0),o+(s>0?1:0),((i,v,pe)=>{let{spec:we}=pe;o>=i&&o<=v&&(i==v||(o>i||s>0)&&(o({dom:diagnosticsTooltip(i,_)})}:null}function diagnosticsTooltip(i,o){return crelt("ul",{class:"cm-tooltip-lint"},o.map((o=>renderDiagnostic(i,o,!1))))}const closeLintPanel=i=>{let o=i.state.field(nr,!1);return!(!o||!o.panel)&&(i.dispatch({effects:er.of(!1)}),!0)},rr=[{key:"Mod-Shift-m",run:i=>{let o=i.state.field(nr,!1);o&&o.panel||i.dispatch({effects:maybeEnableLint(i.state,[er.of(!0)])});let s=Object(_e.j)(i,dr.open);return s&&s.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:i=>{let o=i.state.field(nr,!1);if(!o)return!1;let s=i.state.selection.main,v=o.diagnostics.iter(s.to+1);return!(!v.value&&(v=o.diagnostics.iter(0),!v.value||v.from==s.from&&v.to==s.to))&&(i.dispatch({selection:{anchor:v.from,head:v.to},scrollIntoView:!0}),!0)}}],ir=we.g.define({combine:i=>Object.assign({sources:i.map((i=>i.source))},Object(we.s)(i.map((i=>i.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(i,o)=>i?o?s=>i(s)||o(s):i:o}))});function assignKeys(i){let o=[];if(i)e:for(let{name:s}of i){for(let i=0;ii.toLowerCase()==v.toLowerCase()))){o.push(v);continue e}}o.push("")}return o}function renderDiagnostic(i,o,s){var v;let _=s?assignKeys(o.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+o.severity},crelt("span",{class:"cm-diagnosticText"},o.renderMessage?o.renderMessage():o.message),null===(v=o.actions)||void 0===v?void 0:v.map(((s,v)=>{let $=!1,click=v=>{if(v.preventDefault(),$)return;$=!0;let _=findDiagnostic(i.state.field(nr).diagnostics,o);_&&s.apply(i,_.from,_.to)},{name:ae}=s,pe=_[v]?ae.indexOf(_[v]):-1,we=pe<0?ae:[ae.slice(0,pe),crelt("u",ae.slice(pe,pe+1)),ae.slice(pe+1)];return crelt("button",{type:"button",class:"cm-diagnosticAction",onclick:click,onmousedown:click,"aria-label":" Action: ".concat(ae).concat(pe<0?"":' (access key "'.concat(_[v],')"'),".")},we)})),o.source&&crelt("div",{class:"cm-diagnosticSource"},o.source))}class or extends _e.f{constructor(i){super(),this.diagnostic=i}eq(i){return i.diagnostic==this.diagnostic}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class sr{constructor(i,o){this.diagnostic=o,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=renderDiagnostic(i,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class dr{constructor(i){this.view=i,this.items=[];this.list=crelt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:o=>{if(27==o.keyCode)closeLintPanel(this.view),this.view.focus();else if(38==o.keyCode||33==o.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==o.keyCode||34==o.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==o.keyCode)this.moveSelection(0);else if(35==o.keyCode)this.moveSelection(this.items.length-1);else if(13==o.keyCode)this.view.focus();else{if(!(o.keyCode>=65&&o.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:s}=this.items[this.selectedIndex],v=assignKeys(s.actions);for(let _=0;_{for(let o=0;ocloseLintPanel(this.view)},"×")),this.update()}get selectedIndex(){let i=this.view.state.field(nr).selected;if(!i)return-1;for(let o=0;o{let pe,{spec:we}=ae,_e=-1;for(let i=s;is&&(this.items.splice(s,_e-s),v=!0)),o&&pe.diagnostic==o.diagnostic?pe.dom.hasAttribute("aria-selected")||(pe.dom.setAttribute("aria-selected","true"),_=pe):pe.dom.hasAttribute("aria-selected")&&pe.dom.removeAttribute("aria-selected"),s++}));s({sel:_.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:i=>{let{sel:o,panel:s}=i,v=s.height/this.list.offsetHeight;o.tops.bottom&&(this.list.scrollTop+=(o.bottom-s.bottom)/v)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),v&&this.sync()}sync(){let i=this.list.firstChild;function rm(){let o=i;i=o.nextSibling,o.remove()}for(let o of this.items)if(o.dom.parentNode==this.list){for(;i!=o.dom;)rm();i=o.dom.nextSibling}else this.list.insertBefore(o.dom,i);for(;i;)rm()}moveSelection(i){if(this.selectedIndex<0)return;let o=findDiagnostic(this.view.state.field(nr).diagnostics,this.items[i].diagnostic);o&&this.view.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:tr.of(o)})}static open(i){return new dr(i)}}function svg(i){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(i),"')")}function underline(i){return svg(''),'width="6" height="3"')}const ur=_e.c.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#d11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});_e.d;const lr=[nr,_e.c.decorations.compute([nr],(i=>{let{selected:o,panel:s}=i.field(nr);return o&&s&&o.from!=o.to?_e.a.set([ar.range(o.from,o.to)]):_e.a.none})),Object(_e.p)(lintTooltip,{hideOn:hideTooltip}),ur];var cr=function basicSetup(i){void 0===i&&(i={});var{crosshairCursor:o=!1}=i,s=[];!1!==i.closeBracketsKeymap&&(s=s.concat(Oa.c)),!1!==i.defaultKeymap&&(s=s.concat(wt)),!1!==i.searchKeymap&&(s=s.concat(ra)),!1!==i.historyKeymap&&(s=s.concat(Ot)),!1!==i.foldKeymap&&(s=s.concat(et.m)),!1!==i.completionKeymap&&(s=s.concat(Oa.e)),!1!==i.lintKeymap&&(s=s.concat(rr));var v=[];return!1!==i.lineNumbers&&v.push(Object(_e.r)()),!1!==i.highlightActiveLineGutter&&v.push(Object(_e.n)()),!1!==i.highlightSpecialChars&&v.push(Object(_e.o)()),!1!==i.history&&v.push(dist_history()),!1!==i.foldGutter&&v.push(Object(et.k)()),!1!==i.drawSelection&&v.push(Object(_e.h)()),!1!==i.dropCursor&&v.push(Object(_e.i)()),!1!==i.allowMultipleSelections&&v.push(we.f.allowMultipleSelections.of(!0)),!1!==i.indentOnInput&&v.push(Object(et.r)()),!1!==i.syntaxHighlighting&&v.push(Object(et.w)(et.g,{fallback:!0})),!1!==i.bracketMatching&&v.push(Object(et.e)()),!1!==i.closeBrackets&&v.push(Object(Oa.b)()),!1!==i.autocompletion&&v.push(Object(Oa.a)()),!1!==i.rectangularSelection&&v.push(Object(_e.u)()),!1!==o&&v.push(Object(_e.g)()),!1!==i.highlightActiveLine&&v.push(Object(_e.m)()),!1!==i.highlightSelectionMatches&&v.push(highlightSelectionMatches()),i.tabSize&&"number"==typeof i.tabSize&&v.push(et.t.of(" ".repeat(i.tabSize))),v.concat([_e.q.of(s.flat())]).filter(Boolean)},hr=s(6);const pr="#e5c07b",fr="#e06c75",gr="#56b6c2",mr="#ffffff",yr="#abb2bf",vr="#7d8799",Rr="#61afef",br="#98c379",Or="#d19a66",xr="#c678dd",wr="#21252b",Cr="#2c313a",Sr="#282c34",_r="#353a42",Er="#3E4451",kr="#528bff",Ar=_e.c.theme({"&":{color:yr,backgroundColor:Sr},".cm-content":{caretColor:kr},".cm-cursor, .cm-dropCursor":{borderLeftColor:kr},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Er},".cm-panels":{backgroundColor:wr,color:yr},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Sr,color:vr,border:"none"},".cm-activeLineGutter":{backgroundColor:Cr},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:_r},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:_r,borderBottomColor:_r},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Cr,color:yr}}},{dark:!0}),Dr=et.a.define([{tag:hr.d.keyword,color:xr},{tag:[hr.d.name,hr.d.deleted,hr.d.character,hr.d.propertyName,hr.d.macroName],color:fr},{tag:[hr.d.function(hr.d.variableName),hr.d.labelName],color:Rr},{tag:[hr.d.color,hr.d.constant(hr.d.name),hr.d.standard(hr.d.name)],color:Or},{tag:[hr.d.definition(hr.d.name),hr.d.separator],color:yr},{tag:[hr.d.typeName,hr.d.className,hr.d.number,hr.d.changed,hr.d.annotation,hr.d.modifier,hr.d.self,hr.d.namespace],color:pr},{tag:[hr.d.operator,hr.d.operatorKeyword,hr.d.url,hr.d.escape,hr.d.regexp,hr.d.link,hr.d.special(hr.d.string)],color:gr},{tag:[hr.d.meta,hr.d.comment],color:vr},{tag:hr.d.strong,fontWeight:"bold"},{tag:hr.d.emphasis,fontStyle:"italic"},{tag:hr.d.strikethrough,textDecoration:"line-through"},{tag:hr.d.link,color:vr,textDecoration:"underline"},{tag:hr.d.heading,fontWeight:"bold",color:fr},{tag:[hr.d.atom,hr.d.bool,hr.d.special(hr.d.variableName)],color:Or},{tag:[hr.d.processingInstruction,hr.d.string,hr.d.inserted],color:br},{tag:hr.d.invalid,color:mr}]),Pr=[Ar,Object(et.w)(Dr)];var Tr=_e.c.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Ir=function getDefaultExtensions(i){void 0===i&&(i={});var{indentWithTab:o=!0,editable:s=!0,readOnly:v=!1,theme:_="light",placeholder:$="",basicSetup:ae=!0}=i,pe=[];switch(o&&pe.unshift(_e.q.of([Ct])),ae&&("boolean"==typeof ae?pe.unshift(cr()):pe.unshift(cr(ae))),$&&pe.unshift(Object(_e.t)($)),_){case"light":pe.push(Tr);break;case"dark":pe.push(Pr);break;case"none":break;default:pe.push(_)}return!1===s&&pe.push(_e.c.editable.of(!1)),v&&pe.push(we.f.readOnly.of(!0)),[...pe]},getStatistics=i=>({line:i.state.doc.lineAt(i.state.selection.main.from),lineCount:i.state.doc.lines,lineBreak:i.state.lineBreak,length:i.state.doc.length,readOnly:i.state.readOnly,tabSize:i.state.tabSize,selection:i.state.selection,selectionAsSingle:i.state.selection.asSingle().main,ranges:i.state.selection.ranges,selectionCode:i.state.sliceDoc(i.state.selection.main.from,i.state.selection.main.to),selections:i.state.selection.ranges.map((o=>i.state.sliceDoc(o.from,o.to))),selectedText:i.state.selection.ranges.some((i=>!i.empty))}),Fr=we.a.define(),Nr=[];function useCodeMirror(i){var{value:o,selection:s,onChange:v,onStatistics:_,onCreateEditor:$,onUpdate:ae,extensions:et=Nr,autoFocus:tt,theme:nt="light",height:rt=null,minHeight:it=null,maxHeight:ot=null,width:st=null,minWidth:dt=null,maxWidth:ut=null,placeholder:lt="",editable:ct=!0,readOnly:ht=!1,indentWithTab:pt=!0,basicSetup:ft=!0,root:gt,initialState:mt}=i,[yt,vt]=Object(pe.useState)(),[Rt,bt]=Object(pe.useState)(),[Ot,xt]=Object(pe.useState)(),wt=_e.c.theme({"&":{height:rt,minHeight:it,maxHeight:ot,width:st,minWidth:dt,maxWidth:ut},"& .cm-scroller":{height:"100% !important"}}),Ct=[_e.c.updateListener.of((i=>{if(i.docChanged&&"function"==typeof v&&!i.transactions.some((i=>i.annotation(Fr)))){var o=i.state.doc.toString();v(o,i)}_&&_(getStatistics(i))})),wt,...Ir({theme:nt,editable:ct,readOnly:ht,placeholder:lt,indentWithTab:pt,basicSetup:ft})];return ae&&"function"==typeof ae&&Ct.push(_e.c.updateListener.of(ae)),Ct=Ct.concat(et),Object(pe.useEffect)((()=>{if(yt&&!Ot){var i={doc:o,selection:s,extensions:Ct},v=mt?we.f.fromJSON(mt.json,i,mt.fields):we.f.create(i);if(xt(v),!Rt){var _=new _e.c({state:v,parent:yt,root:gt});bt(_),$&&$(_,v)}}return()=>{Rt&&(xt(void 0),bt(void 0))}}),[yt,Ot]),Object(pe.useEffect)((()=>vt(i.container)),[i.container]),Object(pe.useEffect)((()=>()=>{Rt&&(Rt.destroy(),bt(void 0))}),[Rt]),Object(pe.useEffect)((()=>{tt&&Rt&&Rt.focus()}),[tt,Rt]),Object(pe.useEffect)((()=>{Rt&&Rt.dispatch({effects:we.m.reconfigure.of(Ct)})}),[nt,et,rt,it,ot,st,dt,ut,lt,ct,ht,pt,ft,v,ae]),Object(pe.useEffect)((()=>{if(void 0!==o){var i=Rt?Rt.state.doc.toString():"";Rt&&o!==i&&Rt.dispatch({changes:{from:0,to:i.length,insert:o||""},annotations:[Fr.of(!0)]})}}),[o,Rt]),{state:Ot,setState:xt,view:Rt,setView:bt,container:yt,setContainer:vt}}var Br=s(4),Lr=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],jr=Object(pe.forwardRef)(((i,o)=>{var{className:s,value:v="",selection:$,extensions:we=[],onChange:_e,onStatistics:et,onCreateEditor:tt,onUpdate:nt,autoFocus:rt,theme:it="light",height:ot,minHeight:st,maxHeight:dt,width:ut,minWidth:lt,maxWidth:ct,basicSetup:ht,placeholder:pt,indentWithTab:ft,editable:gt,readOnly:mt,root:yt,initialState:vt}=i,Rt=ae()(i,Lr),bt=Object(pe.useRef)(null),{state:Ot,view:xt,container:wt}=useCodeMirror({container:bt.current,root:yt,value:v,autoFocus:rt,theme:it,height:ot,minHeight:st,maxHeight:dt,width:ut,minWidth:lt,maxWidth:ct,basicSetup:ht,placeholder:pt,indentWithTab:ft,editable:gt,readOnly:mt,selection:$,onChange:_e,onStatistics:et,onCreateEditor:tt,onUpdate:nt,extensions:we,initialState:vt});if(Object(pe.useImperativeHandle)(o,(()=>({editor:bt.current,state:Ot,view:xt})),[bt,wt,Ot,xt]),"string"!=typeof v)throw new Error("value must be typeof string but got "+typeof v);var Ct="string"==typeof it?"cm-theme-"+it:"cm-theme";return Object(Br.jsx)("div",_()({ref:bt,className:Ct+(s?" "+s:"")},Rt))}));jr.displayName="CodeMirror";o.a=jr},function(i,o,s){"use strict";s.d(o,"a",(function(){return mt}));var v=s(62),_=s.n(v),$=s(6),ae=s(7),pe=s(10),createTheme=i=>{var{theme:o,settings:s={},styles:v=[]}=i,_={".cm-gutters":{}},$={};s.background&&($.backgroundColor=s.background),s.backgroundImage&&($.backgroundImage=s.backgroundImage),s.foreground&&($.color=s.foreground),(s.background||s.foreground)&&(_["&"]=$),s.fontFamily&&(_["&.cm-editor .cm-scroller"]={fontFamily:s.fontFamily}),s.gutterBackground&&(_[".cm-gutters"].backgroundColor=s.gutterBackground),s.gutterForeground&&(_[".cm-gutters"].color=s.gutterForeground),s.gutterBorder&&(_[".cm-gutters"].borderRightColor=s.gutterBorder),s.caret&&(_[".cm-content"]={caretColor:s.caret},_[".cm-cursor, .cm-dropCursor"]={borderLeftColor:s.caret});var we={};s.gutterActiveForeground&&(we.color=s.gutterActiveForeground),s.lineHighlight&&(_[".cm-activeLine"]={backgroundColor:s.lineHighlight},we.backgroundColor=s.lineHighlight),_[".cm-activeLineGutter"]=we,s.selection&&(_["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:s.selection+" !important"}),s.selectionMatch&&(_["& .cm-selectionMatch"]={backgroundColor:s.selectionMatch});var _e=ae.c.theme(_,{dark:"dark"===o}),et=pe.a.define(v);return[_e,Object(pe.w)(et)]},we="#002B36",_e="#839496",et="#004454AA",tt="#859900",nt="#268BD2",rt="#268BD2",it="#2AA198",ot="#CB4B16",st="#859900",dt="#268BD2",ut="#D33682",lt="#586E75",ct="#268BD2",ht="#DC322F",pt="#DC322F",ft="#268BD2",gt={background:we,foreground:_e,caret:"#D30102",selection:et,selectionMatch:et,gutterBackground:we,gutterForeground:_e,gutterBorder:"transparent",lineHighlight:"#00cafe11"},mt=(i=>{var{theme:o="dark",settings:s={},styles:v=[]}=i||{};return createTheme({theme:o,settings:_()({},gt,s),styles:[{tag:$.d.keyword,color:tt},{tag:[$.d.name,$.d.deleted,$.d.character,$.d.macroName],color:nt},{tag:[$.d.propertyName],color:rt},{tag:[$.d.processingInstruction,$.d.string,$.d.inserted,$.d.special($.d.string)],color:it},{tag:[$.d.function($.d.variableName),$.d.labelName],color:rt},{tag:[$.d.color,$.d.constant($.d.name),$.d.standard($.d.name)],color:ot},{tag:[$.d.definition($.d.name),$.d.separator],color:nt},{tag:[$.d.className],color:dt},{tag:[$.d.number,$.d.changed,$.d.annotation,$.d.modifier,$.d.self,$.d.namespace],color:ut},{tag:[$.d.typeName],color:st,fontStyle:st},{tag:[$.d.operator,$.d.operatorKeyword],color:tt},{tag:[$.d.url,$.d.escape,$.d.regexp,$.d.link],color:pt},{tag:[$.d.meta,$.d.comment],color:lt},{tag:$.d.tagName,color:ft},{tag:$.d.strong,fontWeight:"bold"},{tag:$.d.emphasis,fontStyle:"italic"},{tag:$.d.link,textDecoration:"underline"},{tag:$.d.heading,fontWeight:"bold",color:ct},{tag:[$.d.atom,$.d.bool,$.d.special($.d.variableName)],color:nt},{tag:$.d.invalid,color:ht},{tag:$.d.strikethrough,textDecoration:"line-through"},...v]})})(),yt="#FDF6E3",vt="#657B83",Rt="#859900",bt="#268BD2",Ot="#268BD2",xt="#2AA198",wt="#CB4B16",Ct="#859900",St="#268BD2",_t="#D33682",Et="#93A1A1",kt="#268BD2",At="#DC322F",Dt="#DC322F",Pt="#268BD2",Tt={background:yt,foreground:vt,caret:"#657B83",selection:"#EEE8D5",selectionMatch:"#EEE8D5",gutterBackground:yt,gutterForeground:vt,gutterBorder:"transparent",lineHighlight:"#3d392d11"};(i=>{var{theme:o="light",settings:s={},styles:v=[]}=i||{};createTheme({theme:o,settings:_()({},Tt,s),styles:[{tag:$.d.keyword,color:Rt},{tag:[$.d.name,$.d.deleted,$.d.character,$.d.macroName],color:bt},{tag:[$.d.propertyName],color:Ot},{tag:[$.d.processingInstruction,$.d.string,$.d.inserted,$.d.special($.d.string)],color:xt},{tag:[$.d.function($.d.variableName),$.d.labelName],color:Ot},{tag:[$.d.color,$.d.constant($.d.name),$.d.standard($.d.name)],color:wt},{tag:[$.d.definition($.d.name),$.d.separator],color:bt},{tag:[$.d.className],color:St},{tag:[$.d.number,$.d.changed,$.d.annotation,$.d.modifier,$.d.self,$.d.namespace],color:_t},{tag:[$.d.typeName],color:Ct,fontStyle:Ct},{tag:[$.d.operator,$.d.operatorKeyword],color:Rt},{tag:[$.d.url,$.d.escape,$.d.regexp,$.d.link],color:Dt},{tag:[$.d.meta,$.d.comment],color:Et},{tag:$.d.tagName,color:Pt},{tag:$.d.strong,fontWeight:"bold"},{tag:$.d.emphasis,fontStyle:"italic"},{tag:$.d.link,textDecoration:"underline"},{tag:$.d.heading,fontWeight:"bold",color:kt},{tag:[$.d.atom,$.d.bool,$.d.special($.d.variableName)],color:bt},{tag:$.d.invalid,color:At},{tag:$.d.strikethrough,textDecoration:"line-through"},...v]})})()},function(i,o,s){"use strict";s.d(o,"a",(function(){return javascript}));var v=s(42),_=s(6);const $=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ae=new v.a({start:!1,shift:(i,o)=>4==o||5==o||312==o?i:313==o,strict:!1}),pe=new v.b(((i,o)=>{let{next:s}=i;(125==s||-1==s||o.context)&&i.acceptToken(310)}),{contextual:!0,fallback:!0}),we=new v.b(((i,o)=>{let s,{next:v}=i;$.indexOf(v)>-1||(47!=v||47!=(s=i.peek(1))&&42!=s)&&(125==v||59==v||-1==v||o.context||i.acceptToken(309))}),{contextual:!0}),_e=new v.b(((i,o)=>{let{next:s}=i;if((43==s||45==s)&&(i.advance(),s==i.next)){i.advance();let s=!o.context&&o.canShift(1);i.acceptToken(s?1:2)}}),{contextual:!0});function identifierChar(i,o){return i>=65&&i<=90||i>=97&&i<=122||95==i||i>=192||!o&&i>=48&&i<=57}const et=new v.b(((i,o)=>{if(60!=i.next||!o.dialectEnabled(0))return;if(i.advance(),47==i.next)return;let s=0;for(;$.indexOf(i.next)>-1;)i.advance(),s++;if(identifierChar(i.next,!0)){for(i.advance(),s++;identifierChar(i.next,!1);)i.advance(),s++;for(;$.indexOf(i.next)>-1;)i.advance(),s++;if(44==i.next)return;for(let o=0;;o++){if(7==o){if(!identifierChar(i.next,!0))return;break}if(i.next!="extends".charCodeAt(o))break;i.advance(),s++}}i.acceptToken(3,-s)})),tt=Object(_.b)({"get set async static":_.d.modifier,"for while do if else switch try catch finally return throw break continue default case":_.d.controlKeyword,"in of await yield void typeof delete instanceof":_.d.operatorKeyword,"let var const using function class extends":_.d.definitionKeyword,"import export from":_.d.moduleKeyword,"with debugger as new":_.d.keyword,TemplateString:_.d.special(_.d.string),super:_.d.atom,BooleanLiteral:_.d.bool,this:_.d.self,null:_.d.null,Star:_.d.modifier,VariableName:_.d.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":_.d.function(_.d.variableName),VariableDefinition:_.d.definition(_.d.variableName),Label:_.d.labelName,PropertyName:_.d.propertyName,PrivatePropertyName:_.d.special(_.d.propertyName),"CallExpression/MemberExpression/PropertyName":_.d.function(_.d.propertyName),"FunctionDeclaration/VariableDefinition":_.d.function(_.d.definition(_.d.variableName)),"ClassDeclaration/VariableDefinition":_.d.definition(_.d.className),PropertyDefinition:_.d.definition(_.d.propertyName),PrivatePropertyDefinition:_.d.definition(_.d.special(_.d.propertyName)),UpdateOp:_.d.updateOperator,"LineComment Hashbang":_.d.lineComment,BlockComment:_.d.blockComment,Number:_.d.number,String:_.d.string,Escape:_.d.escape,ArithOp:_.d.arithmeticOperator,LogicOp:_.d.logicOperator,BitOp:_.d.bitwiseOperator,CompareOp:_.d.compareOperator,RegExp:_.d.regexp,Equals:_.d.definitionOperator,Arrow:_.d.function(_.d.punctuation),": Spread":_.d.punctuation,"( )":_.d.paren,"[ ]":_.d.squareBracket,"{ }":_.d.brace,"InterpolationStart InterpolationEnd":_.d.special(_.d.brace),".":_.d.derefOperator,", ;":_.d.separator,"@":_.d.meta,TypeName:_.d.typeName,TypeDefinition:_.d.definition(_.d.typeName),"type enum interface implements namespace module declare":_.d.definitionKeyword,"abstract global Privacy readonly override":_.d.modifier,"is keyof unique infer":_.d.operatorKeyword,JSXAttributeValue:_.d.attributeValue,JSXText:_.d.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":_.d.angleBracket,"JSXIdentifier JSXNameSpacedName":_.d.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":_.d.attributeName,"JSXBuiltin/JSXIdentifier":_.d.standard(_.d.tagName)}),nt={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},rt={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},it={__proto__:null,"<":143},ot=v.c.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EpQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-EkQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&gQWO<}AN>}O%[Q^OAN?ZOOQO<eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:ae,nodeProps:[["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[tt],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#nt[i]||-1},{term:334,get:i=>rt[i]||-1},{term:70,get:i=>it[i]||-1}],tokenPrec:14626});var st=s(10),dt=s(3),ut=s(7),lt=s(16),ct=s(11);const ht=[Object(lt.g)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Object(lt.g)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Object(lt.g)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Object(lt.g)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Object(lt.g)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Object(lt.g)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Object(lt.g)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Object(lt.g)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Object(lt.g)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Object(lt.g)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Object(lt.g)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],pt=ht.concat([Object(lt.g)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Object(lt.g)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Object(lt.g)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ft=new ct.f,gt=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function defID(i){return(o,s)=>{let v=o.node.getChild("VariableDefinition");return v&&s(v,i),!0}}const mt=["FunctionDeclaration"],yt={FunctionDeclaration:defID("function"),ClassDeclaration:defID("class"),ClassExpression:()=>!0,EnumDeclaration:defID("constant"),TypeAliasDeclaration:defID("type"),NamespaceDeclaration:defID("namespace"),VariableDefinition(i,o){i.matchContext(mt)||o(i,"variable")},TypeDefinition(i,o){o(i,"type")},__proto__:null};function getScope(i,o){let s=ft.get(o);if(s)return s;let v=[],_=!0;function def(o,s){let _=i.sliceString(o.from,o.to);v.push({label:_,type:s})}return o.cursor(ct.b.IncludeAnonymous).iterate((o=>{if(_)_=!1;else if(o.name){let i=yt[o.name];if(i&&i(o,def)||gt.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of getScope(i,o.node))v.push(s);return!1}})),ft.set(o,v),v}const vt=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Rt=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function localCompletionSource(i){let o=Object(st.x)(i.state).resolveInner(i.pos,-1);if(Rt.indexOf(o.name)>-1)return null;let s="VariableName"==o.name||o.to-o.from<20&&vt.test(i.state.sliceDoc(o.from,o.to));if(!s&&!i.explicit)return null;let v=[];for(let s=o;s;s=s.parent)gt.has(s.name)&&(v=v.concat(getScope(i.state.doc,s)));return{options:v,from:s?o.from:i.pos,validFor:vt}}const bt=st.c.define({name:"javascript",parser:ot.configure({props:[st.q.add({IfStatement:Object(st.f)({except:/^\s*({|else\b)/}),TryStatement:Object(st.f)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:st.j,SwitchBody:i=>{let o=i.textAfter,s=/^\s*\}/.test(o),v=/^\s*(case|default)\b/.test(o);return i.baseIndent+(s?0:v?1:2)*i.unit},Block:Object(st.i)({closing:"}"}),ArrowFunction:i=>i.baseIndent+i.unit,"TemplateString BlockComment":()=>null,"Statement Property":Object(st.f)({except:/^{/}),JSXElement(i){let o=/^\s*<\//.test(i.textAfter);return i.lineIndent(i.node.from)+(o?0:i.unit)},JSXEscape(i){let o=/\s*\}/.test(i.textAfter);return i.lineIndent(i.node.from)+(o?0:i.unit)},"JSXOpenTag JSXSelfClosingTag":i=>i.column(i.node.from)+i.unit}),st.n.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":st.l,BlockComment:i=>({from:i.from+2,to:i.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Ot={test:i=>/^JSX/.test(i.name),facet:Object(st.h)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},xt=bt.configure({dialect:"ts"},"typescript"),wt=bt.configure({dialect:"jsx",props:[st.v.add((i=>i.isTop?[Ot]:void 0))]}),Ct=bt.configure({dialect:"jsx ts",props:[st.v.add((i=>i.isTop?[Ot]:void 0))]},"typescript");let kwCompletion=i=>({label:i,type:"keyword"});const St="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kwCompletion),_t=St.concat(["declare","implements","private","protected","public"].map(kwCompletion));function javascript(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.jsx?i.typescript?Ct:wt:i.typescript?xt:bt,s=i.typescript?pt.concat(_t):ht.concat(St);return new st.d(o,[bt.data.of({autocomplete:Object(lt.f)(Rt,Object(lt.d)(s))}),bt.data.of({autocomplete:localCompletionSource}),i.jsx?kt:[]])}function findOpenTag(i){for(;;){if("JSXOpenTag"==i.name||"JSXSelfClosingTag"==i.name||"JSXFragmentTag"==i.name)return i;if("JSXEscape"==i.name||!i.parent)return null;i=i.parent}}function elementName(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.length;for(let v=null==o?void 0:o.firstChild;v;v=v.nextSibling)if("JSXIdentifier"==v.name||"JSXBuiltin"==v.name||"JSXNamespacedName"==v.name||"JSXMemberExpression"==v.name)return i.sliceString(v.from,Math.min(v.to,s));return""}const Et="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),kt=ut.c.inputHandler.of(((i,o,s,v,_)=>{if((Et?i.composing:i.compositionStarted)||i.state.readOnly||o!=s||">"!=v&&"/"!=v||!bt.isActiveAt(i.state,o,-1))return!1;let $=_(),{state:ae}=$,pe=ae.changeByRange((i=>{var o;let s,{head:_}=i,$=Object(st.x)(ae).resolveInner(_-1,-1);if("JSXStartTag"==$.name&&($=$.parent),ae.doc.sliceString(_-1,_)!=v||"JSXAttributeValue"==$.name&&$.to>_);else{if(">"==v&&"JSXFragmentTag"==$.name)return{range:i,changes:{from:_,insert:""}};if("/"==v&&"JSXStartCloseTag"==$.name){let i=$.parent,v=i.parent;if(v&&i.from==_-2&&((s=elementName(ae.doc,v.firstChild,_))||"JSXFragmentTag"==(null===(o=v.firstChild)||void 0===o?void 0:o.name))){let i="".concat(s,">");return{range:dt.e.cursor(_+i.length,-1),changes:{from:_,insert:i}}}}else if(">"==v){let o=findOpenTag($);if(o&&!/^\/?>|^<\//.test(ae.doc.sliceString(_,_+2))&&(s=elementName(ae.doc,o,_)))return{range:i,changes:{from:_,insert:"")}}}}return{range:i}}));return!pe.changes.empty&&(i.dispatch([$,ae.update(pe,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))},function(i,o,s){"use strict";s.d(o,"a",(function(){return useIntl}));var v=s(0),_=s(56),$=s(113);function useIntl(){var i=v.useContext(_.a);return Object($.a)(i),i}},,,,,,,,,,,function(i,o){!function(){var i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^\(\s\/]*)\s*/;function _name(){var o,s;return this===Function||this===Function.prototype.constructor?s="Function":this!==Function.prototype&&(s=(o=(""+this).match(i))&&o[1]),s||""}var o=!("name"in Function.prototype&&"name"in function x(){}),s="function"==typeof Object.defineProperty&&function(){var i;try{Object.defineProperty(Function.prototype,"_xyz",{get:function(){return"blah"},configurable:!0}),i="blah"===Function.prototype._xyz,delete Function.prototype._xyz}catch(o){i=!1}return i}(),v="function"==typeof Object.prototype.__defineGetter__&&function(){var i;try{Function.prototype.__defineGetter__("_abc",(function(){return"foo"})),i="foo"===Function.prototype._abc,delete Function.prototype._abc}catch(o){i=!1}return i}();Function.prototype._name=_name,o&&(s?Object.defineProperty(Function.prototype,"name",{get:function(){var i=_name.call(this);return this!==Function.prototype&&Object.defineProperty(this,"name",{value:i,configurable:!0}),i},configurable:!0}):v&&Function.prototype.__defineGetter__("name",(function(){var i=_name.call(this);return this!==Function.prototype&&this.__defineGetter__("name",(function(){return i})),i})))}()},function(i,o,s){"use strict";s(247).polyfill()},function(i,o,s){"use strict";function assign(i,o){if(null==i)throw new TypeError("Cannot convert first argument to object");for(var s=Object(i),v=1;vo}return!1}function B(i,o,s,v,_,$,ae){this.acceptsBooleans=2===o||3===o||4===o,this.attributeName=v,this.attributeNamespace=_,this.mustUseProperty=s,this.propertyName=i,this.type=o,this.sanitizeURL=$,this.removeEmptyString=ae}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(i){rt[i]=new B(i,0,!1,i,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(i){var o=i[0];rt[o]=new B(o,1,!1,i[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(i){rt[i]=new B(i,2,!1,i.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(i){rt[i]=new B(i,2,!1,i,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(i){rt[i]=new B(i,3,!1,i.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(i){rt[i]=new B(i,3,!0,i,null,!1,!1)})),["capture","download"].forEach((function(i){rt[i]=new B(i,4,!1,i,null,!1,!1)})),["cols","rows","size","span"].forEach((function(i){rt[i]=new B(i,6,!1,i,null,!1,!1)})),["rowSpan","start"].forEach((function(i){rt[i]=new B(i,5,!1,i.toLowerCase(),null,!1,!1)}));var it=/[\-:]([a-z])/g;function pa(i){return i[1].toUpperCase()}function qa(i,o,s,v){var _=rt.hasOwnProperty(o)?rt[o]:null;(null!==_?0===_.type:!v&&(2--pe||_[ae]!==$[pe])return"\n"+_[ae].replace(" at new "," at ")}while(1<=ae&&0<=pe);break}}}finally{Et=!1,Error.prepareStackTrace=s}return(i=i?i.displayName||i.name:"")?Na(i):""}function Qa(i){switch(i.tag){case 5:return Na(i.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return i=Pa(i.type,!1);case 11:return i=Pa(i.type.render,!1);case 22:return i=Pa(i.type._render,!1);case 1:return i=Pa(i.type,!0);default:return""}}function Ra(i){if(null==i)return null;if("function"==typeof i)return i.displayName||i.name||null;if("string"==typeof i)return i;switch(i){case ut:return"Fragment";case dt:return"Portal";case ct:return"Profiler";case lt:return"StrictMode";case gt:return"Suspense";case mt:return"SuspenseList"}if("object"==typeof i)switch(i.$$typeof){case pt:return(i.displayName||"Context")+".Consumer";case ht:return(i._context.displayName||"Context")+".Provider";case ft:var o=i.render;return o=o.displayName||o.name||"",i.displayName||(""!==o?"ForwardRef("+o+")":"ForwardRef");case yt:return Ra(i.type);case Rt:return Ra(i._render);case vt:o=i._payload,i=i._init;try{return Ra(i(o))}catch(i){}}return null}function Sa(i){switch(typeof i){case"boolean":case"number":case"object":case"string":case"undefined":return i;default:return""}}function Ta(i){var o=i.type;return(i=i.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o||"radio"===o)}function Ua(i){var o=Ta(i)?"checked":"value",s=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),v=""+i[o];if(!i.hasOwnProperty(o)&&void 0!==s&&"function"==typeof s.get&&"function"==typeof s.set){var _=s.get,$=s.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return _.call(this)},set:function(i){v=""+i,$.call(this,i)}}),Object.defineProperty(i,o,{enumerable:s.enumerable}),{getValue:function(){return v},setValue:function(i){v=""+i},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Va(i){i._valueTracker||(i._valueTracker=Ua(i))}function Wa(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var s=o.getValue(),v="";return i&&(v=Ta(i)?i.checked?"true":"false":i.value),(i=v)!==s&&(o.setValue(i),!0)}function Xa(i){if(void 0===(i=i||("undefined"!=typeof document?document:void 0)))return null;try{return i.activeElement||i.body}catch(o){return i.body}}function Ya(i,o){var s=o.checked;return _({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=s?s:i._wrapperState.initialChecked})}function Za(i,o){var s=null==o.defaultValue?"":o.defaultValue,v=null!=o.checked?o.checked:o.defaultChecked;s=Sa(null!=o.value?o.value:s),i._wrapperState={initialChecked:v,initialValue:s,controlled:"checkbox"===o.type||"radio"===o.type?null!=o.checked:null!=o.value}}function $a(i,o){null!=(o=o.checked)&&qa(i,"checked",o,!1)}function ab(i,o){$a(i,o);var s=Sa(o.value),v=o.type;if(null!=s)"number"===v?(0===s&&""===i.value||i.value!=s)&&(i.value=""+s):i.value!==""+s&&(i.value=""+s);else if("submit"===v||"reset"===v)return void i.removeAttribute("value");o.hasOwnProperty("value")?bb(i,o.type,s):o.hasOwnProperty("defaultValue")&&bb(i,o.type,Sa(o.defaultValue)),null==o.checked&&null!=o.defaultChecked&&(i.defaultChecked=!!o.defaultChecked)}function cb(i,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var v=o.type;if(!("submit"!==v&&"reset"!==v||void 0!==o.value&&null!==o.value))return;o=""+i._wrapperState.initialValue,s||o===i.value||(i.value=o),i.defaultValue=o}""!==(s=i.name)&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,""!==s&&(i.name=s)}function bb(i,o,s){"number"===o&&Xa(i.ownerDocument)===i||(null==s?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+s&&(i.defaultValue=""+s))}function db(i){var o="";return v.Children.forEach(i,(function(i){null!=i&&(o+=i)})),o}function eb(i,o){return i=_({children:void 0},o),(o=db(o.children))&&(i.children=o),i}function fb(i,o,s,v){if(i=i.options,o){o={};for(var _=0;_=s.length))throw Error(y(93));s=s[0]}o=s}null==o&&(o=""),s=o}i._wrapperState={initialValue:Sa(s)}}function ib(i,o){var s=Sa(o.value),v=Sa(o.defaultValue);null!=s&&((s=""+s)!==i.value&&(i.value=s),null==o.defaultValue&&i.defaultValue!==s&&(i.defaultValue=s)),null!=v&&(i.defaultValue=""+v)}function jb(i){var o=i.textContent;o===i._wrapperState.initialValue&&""!==o&&null!==o&&(i.value=o)}var kt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lb(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mb(i,o){return null==i||"http://www.w3.org/1999/xhtml"===i?lb(o):"http://www.w3.org/2000/svg"===i&&"foreignObject"===o?"http://www.w3.org/1999/xhtml":i}var At,Dt,Pt=(Dt=function(i,o){if(i.namespaceURI!==kt.svg||"innerHTML"in i)i.innerHTML=o;else{for((At=At||document.createElement("div")).innerHTML=""+o.valueOf().toString()+"",o=At.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(i,o,s,v){MSApp.execUnsafeLocalFunction((function(){return Dt(i,o)}))}:Dt);function pb(i,o){if(o){var s=i.firstChild;if(s&&s===i.lastChild&&3===s.nodeType)return void(s.nodeValue=o)}i.textContent=o}var Tt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},It=["Webkit","ms","Moz","O"];function sb(i,o,s){return null==o||"boolean"==typeof o||""===o?"":s||"number"!=typeof o||0===o||Tt.hasOwnProperty(i)&&Tt[i]?(""+o).trim():o+"px"}function tb(i,o){for(var s in i=i.style,o)if(o.hasOwnProperty(s)){var v=0===s.indexOf("--"),_=sb(s,o[s],v);"float"===s&&(s="cssFloat"),v?i.setProperty(s,_):i[s]=_}}Object.keys(Tt).forEach((function(i){It.forEach((function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),Tt[o]=Tt[i]}))}));var Ft=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vb(i,o){if(o){if(Ft[i]&&(null!=o.children||null!=o.dangerouslySetInnerHTML))throw Error(y(137,i));if(null!=o.dangerouslySetInnerHTML){if(null!=o.children)throw Error(y(60));if("object"!=typeof o.dangerouslySetInnerHTML||!("__html"in o.dangerouslySetInnerHTML))throw Error(y(61))}if(null!=o.style&&"object"!=typeof o.style)throw Error(y(62))}}function wb(i,o){if(-1===i.indexOf("-"))return"string"==typeof o.is;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xb(i){return(i=i.target||i.srcElement||window).correspondingUseElement&&(i=i.correspondingUseElement),3===i.nodeType?i.parentNode:i}var Nt=null,Bt=null,Lt=null;function Bb(i){if(i=Cb(i)){if("function"!=typeof Nt)throw Error(y(280));var o=i.stateNode;o&&(o=Db(o),Nt(i.stateNode,i.type,o))}}function Eb(i){Bt?Lt?Lt.push(i):Lt=[i]:Bt=i}function Fb(){if(Bt){var i=Bt,o=Lt;if(Lt=Bt=null,Bb(i),o)for(i=0;i(v=31-ar(v))?0:1<s;s++)o.push(i);return o}function $c(i,o,s){i.pendingLanes|=o;var v=o-1;i.suspendedLanes&=v,i.pingedLanes&=v,(i=i.eventTimes)[o=31-ar(o)]=s}var ar=Math.clz32?Math.clz32:function ad(i){return 0===i?32:31-(rr(i)/ir|0)|0},rr=Math.log,ir=Math.LN2;var or=$.unstable_UserBlockingPriority,sr=$.unstable_runWithPriority,dr=!0;function gd(i,o,s,v){Mt||Ib();var _=hd,$=Mt;Mt=!0;try{Hb(_,i,o,s,v)}finally{(Mt=$)||Mb()}}function id(i,o,s,v){sr(or,hd.bind(null,i,o,s,v))}function hd(i,o,s,v){var _;if(dr)if((_=0==(4&o))&&0=Mr),Ur=String.fromCharCode(32),Wr=!1;function ge(i,o){switch(i){case"keyup":return-1!==Lr.indexOf(o.keyCode);case"keydown":return 229!==o.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(i){return"object"==typeof(i=i.detail)&&"data"in i?i.data:null}var $r=!1;function je(i,o){switch(i){case"compositionend":return he(o);case"keypress":return 32!==o.which?null:(Wr=!0,Ur);case"textInput":return(i=o.data)===Ur&&Wr?null:i;default:return null}}function ke(i,o){if($r)return"compositionend"===i||!jr&&ge(i,o)?(i=nd(),cr=lr=ur=null,$r=!1,i):null;switch(i){case"paste":default:return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:v,offset:o-i};i=s}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Ke(v)}}function Me(i,o){return!(!i||!o)&&(i===o||(!i||3!==i.nodeType)&&(o&&3===o.nodeType?Me(i,o.parentNode):"contains"in i?i.contains(o):!!i.compareDocumentPosition&&!!(16&i.compareDocumentPosition(o))))}function Ne(){for(var i=window,o=Xa();o instanceof i.HTMLIFrameElement;){try{var s="string"==typeof o.contentWindow.location.href}catch(i){s=!1}if(!s)break;o=Xa((i=o.contentWindow).document)}return o}function Oe(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&("input"===o&&("text"===i.type||"search"===i.type||"tel"===i.type||"url"===i.type||"password"===i.type)||"textarea"===o||"true"===i.contentEditable)}var _i=we&&"documentMode"in document&&11>=document.documentMode,Ei=null,Ui=null,Ji=null,no=!1;function Ue(i,o,s){var v=s.window===s?s.document:9===s.nodeType?s:s.ownerDocument;no||null==Ei||Ei!==Xa(v)||("selectionStart"in(v=Ei)&&Oe(v)?v={start:v.selectionStart,end:v.selectionEnd}:v={anchorNode:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset},Ji&&Je(Ji,v)||(Ji=v,0<(v=oe(Ui,"onSelect")).length&&(o=new mr("onSelect","select",null,o,s),i.push({event:o,listeners:v}),o.target=Ei)))}Pc("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Pc("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Pc(tr,2);for(var io="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),oo=0;ooNo||(i.current=Fo[No],Fo[No]=null,No--)}function I(i,o){No++,Fo[No]=i.current,i.current=o}var Bo={},jo=Bf(Bo),Mo=Bf(!1),Qo=Bo;function Ef(i,o){var s=i.type.contextTypes;if(!s)return Bo;var v=i.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===o)return v.__reactInternalMemoizedMaskedChildContext;var _,$={};for(_ in s)$[_]=o[_];return v&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=$),$}function Ff(i){return null!=(i=i.childContextTypes)}function Gf(){H(Mo),H(jo)}function Hf(i,o,s){if(jo.current!==Bo)throw Error(y(168));I(jo,o),I(Mo,s)}function If(i,o,s){var v=i.stateNode;if(i=o.childContextTypes,"function"!=typeof v.getChildContext)return s;for(var $ in v=v.getChildContext())if(!($ in i))throw Error(y(108,Ra(o)||"Unknown",$));return _({},s,v)}function Jf(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Bo,Qo=jo.current,I(jo,i),I(Mo,Mo.current),!0}function Kf(i,o,s){var v=i.stateNode;if(!v)throw Error(y(169));s?(i=If(i,o,Qo),v.__reactInternalMemoizedMergedChildContext=i,H(Mo),H(jo),I(jo,i)):H(Mo),I(Mo,s)}var Vo=null,Uo=null,Wo=$.unstable_runWithPriority,$o=$.unstable_scheduleCallback,qo=$.unstable_cancelCallback,Zo=$.unstable_shouldYield,Xo=$.unstable_requestPaint,Yo=$.unstable_now,es=$.unstable_getCurrentPriorityLevel,ts=$.unstable_ImmediatePriority,ns=$.unstable_UserBlockingPriority,as=$.unstable_NormalPriority,rs=$.unstable_LowPriority,os=$.unstable_IdlePriority,ss={},ds=void 0!==Xo?Xo:function(){},us=null,ls=null,cs=!1,hs=Yo(),ps=1e4>hs?Yo:function(){return Yo()-hs};function eg(){switch(es()){case ts:return 99;case ns:return 98;case as:return 97;case rs:return 96;case os:return 95;default:throw Error(y(332))}}function fg(i){switch(i){case 99:return ts;case 98:return ns;case 97:return as;case 96:return rs;case 95:return os;default:throw Error(y(332))}}function gg(i,o){return i=fg(i),Wo(i,o)}function hg(i,o,s){return i=fg(i),$o(i,o,s)}function ig(){if(null!==ls){var i=ls;ls=null,qo(i)}jg()}function jg(){if(!cs&&null!==us){cs=!0;var i=0;try{var o=us;gg(99,(function(){for(;iwe?(_e=pe,pe=null):_e=pe.sibling;var et=p(o,pe,v[we],_);if(null===et){null===pe&&(pe=_e);break}i&&pe&&null===et.alternate&&b(o,pe),s=f(et,s,we),null===ae?$=et:ae.sibling=et,ae=et,pe=_e}if(we===v.length)return c(o,pe),$;if(null===pe){for(;wewe?(_e=pe,pe=null):_e=pe.sibling;var tt=p(o,pe,et.value,_);if(null===tt){null===pe&&(pe=_e);break}i&&pe&&null===tt.alternate&&b(o,pe),s=f(tt,s,we),null===ae?$=tt:ae.sibling=tt,ae=tt,pe=_e}if(et.done)return c(o,pe),$;if(null===pe){for(;!et.done;we++,et=v.next())null!==(et=A(o,et.value,_))&&(s=f(et,s,we),null===ae?$=et:ae.sibling=et,ae=et);return $}for(pe=d(o,pe);!et.done;we++,et=v.next())null!==(et=C(pe,o,we,et.value,_))&&(i&&null!==et.alternate&&pe.delete(null===et.key?we:et.key),s=f(et,s,we),null===ae?$=et:ae.sibling=et,ae=et);return i&&pe.forEach((function(i){return b(o,i)})),$}return function(i,o,s,v){var _="object"==typeof s&&null!==s&&s.type===ut&&null===s.key;_&&(s=s.props.children);var $="object"==typeof s&&null!==s;if($)switch(s.$$typeof){case st:e:{for($=s.key,_=o;null!==_;){if(_.key===$){if(7===_.tag){if(s.type===ut){c(i,_.sibling),(o=e(_,s.props.children)).return=i,i=o;break e}}else if(_.elementType===s.type){c(i,_.sibling),(o=e(_,s.props)).ref=Qg(i,_,s),o.return=i,i=o;break e}c(i,_);break}b(i,_),_=_.sibling}s.type===ut?((o=Xg(s.props.children,i.mode,v,s.key)).return=i,i=o):((v=Vg(s.type,s.key,s.props,null,i.mode,v)).ref=Qg(i,o,s),v.return=i,i=v)}return g(i);case dt:e:{for(_=s.key;null!==o;){if(o.key===_){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){c(i,o.sibling),(o=e(o,s.children||[])).return=i,i=o;break e}c(i,o);break}b(i,o),o=o.sibling}(o=Wg(s,i.mode,v)).return=i,i=o}return g(i)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(c(i,o.sibling),(o=e(o,s)).return=i,i=o):(c(i,o),(o=Ug(s,i.mode,v)).return=i,i=o),g(i);if(xs(s))return x(i,o,s,v);if(La(s))return w(i,o,s,v);if($&&Rg(i,s),void 0===s&&!_)switch(i.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y(152,Ra(i.type)||"Component"))}return c(i,o)}}var ws=Sg(!0),Cs=Sg(!1),Ss={},_s=Bf(Ss),Es=Bf(Ss),ks=Bf(Ss);function dh(i){if(i===Ss)throw Error(y(174));return i}function eh(i,o){switch(I(ks,o),I(Es,i),I(_s,Ss),i=o.nodeType){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:mb(null,"");break;default:o=mb(o=(i=8===i?o.parentNode:o).namespaceURI||null,i=i.tagName)}H(_s),I(_s,o)}function fh(){H(_s),H(Es),H(ks)}function gh(i){dh(ks.current);var o=dh(_s.current),s=mb(o,i.type);o!==s&&(I(Es,i),I(_s,s))}function hh(i){Es.current===i&&(H(_s),H(Es))}var As=Bf(0);function ih(i){for(var o=i;null!==o;){if(13===o.tag){var s=o.memoizedState;if(null!==s&&(null===(s=s.dehydrated)||"$?"===s.data||"$!"===s.data))return o}else if(19===o.tag&&void 0!==o.memoizedProps.revealOrder){if(0!=(64&o.flags))return o}else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===i)break;for(;null===o.sibling;){if(null===o.return||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ds=null,Ps=null,Ts=!1;function mh(i,o){var s=nh(5,null,null,0);s.elementType="DELETED",s.type="DELETED",s.stateNode=o,s.return=i,s.flags=8,null!==i.lastEffect?(i.lastEffect.nextEffect=s,i.lastEffect=s):i.firstEffect=i.lastEffect=s}function oh(i,o){switch(i.tag){case 5:var s=i.type;return null!==(o=1!==o.nodeType||s.toLowerCase()!==o.nodeName.toLowerCase()?null:o)&&(i.stateNode=o,!0);case 6:return null!==(o=""===i.pendingProps||3!==o.nodeType?null:o)&&(i.stateNode=o,!0);default:return!1}}function ph(i){if(Ts){var o=Ps;if(o){var s=o;if(!oh(i,o)){if(!(o=rf(s.nextSibling))||!oh(i,o))return i.flags=-1025&i.flags|2,Ts=!1,void(Ds=i);mh(Ds,s)}Ds=i,Ps=rf(o.firstChild)}else i.flags=-1025&i.flags|2,Ts=!1,Ds=i}}function qh(i){for(i=i.return;null!==i&&5!==i.tag&&3!==i.tag&&13!==i.tag;)i=i.return;Ds=i}function rh(i){if(i!==Ds)return!1;if(!Ts)return qh(i),Ts=!0,!1;var o=i.type;if(5!==i.tag||"head"!==o&&"body"!==o&&!nf(o,i.memoizedProps))for(o=Ps;o;)mh(i,o),o=rf(o.nextSibling);if(qh(i),13===i.tag){if(!(i=null!==(i=i.memoizedState)?i.dehydrated:null))throw Error(y(317));e:{for(i=i.nextSibling,o=0;i;){if(8===i.nodeType){var s=i.data;if("/$"===s){if(0===o){Ps=rf(i.nextSibling);break e}o--}else"$"!==s&&"$!"!==s&&"$?"!==s||o++}i=i.nextSibling}Ps=null}}else Ps=Ds?rf(i.stateNode.nextSibling):null;return!0}function sh(){Ps=Ds=null,Ts=!1}var Is=[];function uh(){for(var i=0;i$))throw Error(y(301));$+=1,Ms=js=null,o.updateQueue=null,Fs.current=qs,i=s(v,_)}while(Vs)}if(Fs.current=Us,o=null!==js&&null!==js.next,Bs=0,Ms=js=Ls=null,Qs=!1,o)throw Error(y(300));return i}function Hh(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ms?Ls.memoizedState=Ms=i:Ms=Ms.next=i,Ms}function Ih(){if(null===js){var i=Ls.alternate;i=null!==i?i.memoizedState:null}else i=js.next;var o=null===Ms?Ls.memoizedState:Ms.next;if(null!==o)Ms=o,js=i;else{if(null===i)throw Error(y(310));i={memoizedState:(js=i).memoizedState,baseState:js.baseState,baseQueue:js.baseQueue,queue:js.queue,next:null},null===Ms?Ls.memoizedState=Ms=i:Ms=Ms.next=i}return Ms}function Jh(i,o){return"function"==typeof o?o(i):o}function Kh(i){var o=Ih(),s=o.queue;if(null===s)throw Error(y(311));s.lastRenderedReducer=i;var v=js,_=v.baseQueue,$=s.pending;if(null!==$){if(null!==_){var ae=_.next;_.next=$.next,$.next=ae}v.baseQueue=_=$,s.pending=null}if(null!==_){_=_.next,v=v.baseState;var pe=ae=$=null,we=_;do{var _e=we.lane;if((Bs&_e)===_e)null!==pe&&(pe=pe.next={lane:0,action:we.action,eagerReducer:we.eagerReducer,eagerState:we.eagerState,next:null}),v=we.eagerReducer===i?we.eagerState:i(v,we.action);else{var et={lane:_e,action:we.action,eagerReducer:we.eagerReducer,eagerState:we.eagerState,next:null};null===pe?(ae=pe=et,$=v):pe=pe.next=et,Ls.lanes|=_e,Yd|=_e}we=we.next}while(null!==we&&we!==_);null===pe?$=v:pe.next=ae,Kr(v,o.memoizedState)||(Zs=!0),o.memoizedState=v,o.baseState=$,o.baseQueue=pe,s.lastRenderedState=v}return[o.memoizedState,s.dispatch]}function Lh(i){var o=Ih(),s=o.queue;if(null===s)throw Error(y(311));s.lastRenderedReducer=i;var v=s.dispatch,_=s.pending,$=o.memoizedState;if(null!==_){s.pending=null;var ae=_=_.next;do{$=i($,ae.action),ae=ae.next}while(ae!==_);Kr($,o.memoizedState)||(Zs=!0),o.memoizedState=$,null===o.baseQueue&&(o.baseState=$),s.lastRenderedState=$}return[$,v]}function Mh(i,o,s){var v=o._getVersion;v=v(o._source);var _=o._workInProgressVersionPrimary;if(null!==_?i=_===v:(i=i.mutableReadLanes,(i=(Bs&i)===i)&&(o._workInProgressVersionPrimary=v,Is.push(o))),i)return s(o._source);throw Is.push(o),Error(y(350))}function Nh(i,o,s,v){var _=Cd;if(null===_)throw Error(y(349));var $=o._getVersion,ae=$(o._source),pe=Fs.current,we=pe.useState((function(){return Mh(_,o,s)})),_e=we[1],et=we[0];we=Ms;var tt=i.memoizedState,nt=tt.refs,rt=nt.getSnapshot,it=tt.source;tt=tt.subscribe;var ot=Ls;return i.memoizedState={refs:nt,source:o,subscribe:v},pe.useEffect((function(){nt.getSnapshot=s,nt.setSnapshot=_e;var i=$(o._source);if(!Kr(ae,i)){i=s(o._source),Kr(et,i)||(_e(i),i=Ig(ot),_.mutableReadLanes|=i&_.pendingLanes),i=_.mutableReadLanes,_.entangledLanes|=i;for(var v=_.entanglements,pe=i;0s?98:s,(function(){i(!0)})),gg(97<\/script>",i=i.removeChild(i.firstChild)):"string"==typeof v.is?i=we.createElement(s,{is:v.is}):(i=we.createElement(s),"select"===s&&(we=i,v.multiple?we.multiple=!0:v.size&&(we.size=v.size))):i=we.createElementNS(i,s),i[Ao]=o,i[Po]=v,Hs(i,o,!1,!1),o.stateNode=i,we=wb(s,v),s){case"dialog":G("cancel",i),G("close",i),$=v;break;case"iframe":case"object":case"embed":G("load",i),$=v;break;case"video":case"audio":for($=0;$ru&&(o.flags|=64,ae=!0,Fi(v,!1),o.lanes=33554432)}else{if(!ae)if(null!==(i=ih(we))){if(o.flags|=64,ae=!0,null!==(s=i.updateQueue)&&(o.updateQueue=s,o.flags|=4),Fi(v,!0),null===v.tail&&"hidden"===v.tailMode&&!we.alternate&&!Ts)return null!==(o=o.lastEffect=v.lastEffect)&&(o.nextEffect=null),null}else 2*ps()-v.renderingStartTime>ru&&1073741824!==s&&(o.flags|=64,ae=!0,Fi(v,!1),o.lanes=33554432);v.isBackwards?(we.sibling=o.child,o.child=we):(null!==(s=v.last)?s.sibling=we:o.child=we,v.last=we)}return null!==v.tail?(s=v.tail,v.rendering=s,v.tail=s.sibling,v.lastEffect=o.lastEffect,v.renderingStartTime=ps(),s.sibling=null,o=As.current,I(As,ae?1&o|2:1&o),s):null;case 23:case 24:return Ki(),null!==i&&null!==i.memoizedState!=(null!==o.memoizedState)&&"unstable-defer-without-hiding"!==v.mode&&(o.flags|=4),null}throw Error(y(156,o.tag))}function Li(i){switch(i.tag){case 1:Ff(i.type)&&Gf();var o=i.flags;return 4096&o?(i.flags=-4097&o|64,i):null;case 3:if(fh(),H(Mo),H(jo),uh(),0!=(64&(o=i.flags)))throw Error(y(285));return i.flags=-4097&o|64,i;case 5:return hh(i),null;case 13:return H(As),4096&(o=i.flags)?(i.flags=-4097&o|64,i):null;case 19:return H(As),null;case 4:return fh(),null;case 10:return rg(i),null;case 23:case 24:return Ki(),null;default:return null}}function Mi(i,o){try{var s="",v=o;do{s+=Qa(v),v=v.return}while(v);var _=s}catch(i){_="\nError generating stack: "+i.message+"\n"+i.stack}return{value:i,source:o,stack:_}}function Ni(i,o){try{console.error(o.value)}catch(i){setTimeout((function(){throw i}))}}Hs=function(i,o){for(var s=o.child;null!==s;){if(5===s.tag||6===s.tag)i.appendChild(s.stateNode);else if(4!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===o)break;for(;null===s.sibling;){if(null===s.return||s.return===o)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Gs=function(){},Xs=function(i,o,s,v){var $=i.memoizedProps;if($!==v){i=o.stateNode,dh(_s.current);var ae,we=null;switch(s){case"input":$=Ya(i,$),v=Ya(i,v),we=[];break;case"option":$=eb(i,$),v=eb(i,v),we=[];break;case"select":$=_({},$,{value:void 0}),v=_({},v,{value:void 0}),we=[];break;case"textarea":$=gb(i,$),v=gb(i,v),we=[];break;default:"function"!=typeof $.onClick&&"function"==typeof v.onClick&&(i.onclick=jf)}for(tt in vb(s,v),s=null,$)if(!v.hasOwnProperty(tt)&&$.hasOwnProperty(tt)&&null!=$[tt])if("style"===tt){var _e=$[tt];for(ae in _e)_e.hasOwnProperty(ae)&&(s||(s={}),s[ae]="")}else"dangerouslySetInnerHTML"!==tt&&"children"!==tt&&"suppressContentEditableWarning"!==tt&&"suppressHydrationWarning"!==tt&&"autoFocus"!==tt&&(pe.hasOwnProperty(tt)?we||(we=[]):(we=we||[]).push(tt,null));for(tt in v){var et=v[tt];if(_e=null!=$?$[tt]:void 0,v.hasOwnProperty(tt)&&et!==_e&&(null!=et||null!=_e))if("style"===tt)if(_e){for(ae in _e)!_e.hasOwnProperty(ae)||et&&et.hasOwnProperty(ae)||(s||(s={}),s[ae]="");for(ae in et)et.hasOwnProperty(ae)&&_e[ae]!==et[ae]&&(s||(s={}),s[ae]=et[ae])}else s||(we||(we=[]),we.push(tt,s)),s=et;else"dangerouslySetInnerHTML"===tt?(et=et?et.__html:void 0,_e=_e?_e.__html:void 0,null!=et&&_e!==et&&(we=we||[]).push(tt,et)):"children"===tt?"string"!=typeof et&&"number"!=typeof et||(we=we||[]).push(tt,""+et):"suppressContentEditableWarning"!==tt&&"suppressHydrationWarning"!==tt&&(pe.hasOwnProperty(tt)?(null!=et&&"onScroll"===tt&&G("scroll",i),we||_e===et||(we=[])):"object"==typeof et&&null!==et&&et.$$typeof===bt?et.toString():(we=we||[]).push(tt,et))}s&&(we=we||[]).push("style",s);var tt=we;(o.updateQueue=tt)&&(o.flags|=4)}},Ys=function(i,o,s,v){s!==v&&(o.flags|=4)};var Js="function"==typeof WeakMap?WeakMap:Map;function Pi(i,o,s){(s=zg(-1,s)).tag=3,s.payload={element:null};var v=o.value;return s.callback=function(){su||(su=!0,du=v),Ni(0,o)},s}function Si(i,o,s){(s=zg(-1,s)).tag=3;var v=i.type.getDerivedStateFromError;if("function"==typeof v){var _=o.value;s.payload=function(){return Ni(0,o),v(_)}}var $=i.stateNode;return null!==$&&"function"==typeof $.componentDidCatch&&(s.callback=function(){"function"!=typeof v&&(null===uu?uu=new Set([this]):uu.add(this),Ni(0,o));var i=o.stack;this.componentDidCatch(o.value,{componentStack:null!==i?i:""})}),s}var ed="function"==typeof WeakSet?WeakSet:Set;function Vi(i){var o=i.ref;if(null!==o)if("function"==typeof o)try{o(null)}catch(o){Wi(i,o)}else o.current=null}function Xi(i,o){switch(o.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&o.flags&&null!==i){var s=i.memoizedProps,v=i.memoizedState;o=(i=o.stateNode).getSnapshotBeforeUpdate(o.elementType===o.type?s:lg(o.type,s),v),i.__reactInternalSnapshotBeforeUpdate=o}return;case 3:return void(256&o.flags&&qf(o.stateNode.containerInfo))}throw Error(y(163))}function Yi(i,o,s){switch(s.tag){case 0:case 11:case 15:case 22:if(null!==(o=null!==(o=s.updateQueue)?o.lastEffect:null)){i=o=o.next;do{if(3==(3&i.tag)){var v=i.create;i.destroy=v()}i=i.next}while(i!==o)}if(null!==(o=null!==(o=s.updateQueue)?o.lastEffect:null)){i=o=o.next;do{var _=i;v=_.next,0!=(4&(_=_.tag))&&0!=(1&_)&&(Zi(s,i),$i(s,i)),i=v}while(i!==o)}return;case 1:return i=s.stateNode,4&s.flags&&(null===o?i.componentDidMount():(v=s.elementType===s.type?o.memoizedProps:lg(s.type,o.memoizedProps),i.componentDidUpdate(v,o.memoizedState,i.__reactInternalSnapshotBeforeUpdate))),void(null!==(o=s.updateQueue)&&Eg(s,o,i));case 3:if(null!==(o=s.updateQueue)){if(i=null,null!==s.child)switch(s.child.tag){case 5:case 1:i=s.child.stateNode}Eg(s,o,i)}return;case 5:return i=s.stateNode,void(null===o&&4&s.flags&&mf(s.type,s.memoizedProps)&&i.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===s.memoizedState&&(s=s.alternate,null!==s&&(s=s.memoizedState,null!==s&&(s=s.dehydrated,null!==s&&Cc(s)))))}throw Error(y(163))}function aj(i,o){for(var s=i;;){if(5===s.tag){var v=s.stateNode;if(o)"function"==typeof(v=v.style).setProperty?v.setProperty("display","none","important"):v.display="none";else{v=s.stateNode;var _=s.memoizedProps.style;_=null!=_&&_.hasOwnProperty("display")?_.display:null,v.style.display=sb("display",_)}}else if(6===s.tag)s.stateNode.nodeValue=o?"":s.memoizedProps;else if((23!==s.tag&&24!==s.tag||null===s.memoizedState||s===i)&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===i)break;for(;null===s.sibling;){if(null===s.return||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}}function bj(i,o){if(Uo&&"function"==typeof Uo.onCommitFiberUnmount)try{Uo.onCommitFiberUnmount(Vo,o)}catch(i){}switch(o.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(i=o.updateQueue)&&null!==(i=i.lastEffect)){var s=i=i.next;do{var v=s,_=v.destroy;if(v=v.tag,void 0!==_)if(0!=(4&v))Zi(o,s);else{v=o;try{_()}catch(i){Wi(v,i)}}s=s.next}while(s!==i)}break;case 1:if(Vi(o),"function"==typeof(i=o.stateNode).componentWillUnmount)try{i.props=o.memoizedProps,i.state=o.memoizedState,i.componentWillUnmount()}catch(i){Wi(o,i)}break;case 5:Vi(o);break;case 4:cj(i,o)}}function dj(i){i.alternate=null,i.child=null,i.dependencies=null,i.firstEffect=null,i.lastEffect=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.return=null,i.updateQueue=null}function ej(i){return 5===i.tag||3===i.tag||4===i.tag}function fj(i){e:{for(var o=i.return;null!==o;){if(ej(o))break e;o=o.return}throw Error(y(160))}var s=o;switch(o=s.stateNode,s.tag){case 5:var v=!1;break;case 3:case 4:o=o.containerInfo,v=!0;break;default:throw Error(y(161))}16&s.flags&&(pb(o,""),s.flags&=-17);e:t:for(s=i;;){for(;null===s.sibling;){if(null===s.return||ej(s.return)){s=null;break e}s=s.return}for(s.sibling.return=s.return,s=s.sibling;5!==s.tag&&6!==s.tag&&18!==s.tag;){if(2&s.flags)continue t;if(null===s.child||4===s.tag)continue t;s.child.return=s,s=s.child}if(!(2&s.flags)){s=s.stateNode;break e}}v?gj(i,s,o):hj(i,s,o)}function gj(i,o,s){var v=i.tag,_=5===v||6===v;if(_)i=_?i.stateNode:i.stateNode.instance,o?8===s.nodeType?s.parentNode.insertBefore(i,o):s.insertBefore(i,o):(8===s.nodeType?(o=s.parentNode).insertBefore(i,s):(o=s).appendChild(i),null!=(s=s._reactRootContainer)||null!==o.onclick||(o.onclick=jf));else if(4!==v&&null!==(i=i.child))for(gj(i,o,s),i=i.sibling;null!==i;)gj(i,o,s),i=i.sibling}function hj(i,o,s){var v=i.tag,_=5===v||6===v;if(_)i=_?i.stateNode:i.stateNode.instance,o?s.insertBefore(i,o):s.appendChild(i);else if(4!==v&&null!==(i=i.child))for(hj(i,o,s),i=i.sibling;null!==i;)hj(i,o,s),i=i.sibling}function cj(i,o){for(var s,v,_=o,$=!1;;){if(!$){$=_.return;e:for(;;){if(null===$)throw Error(y(160));switch(s=$.stateNode,$.tag){case 5:v=!1;break e;case 3:case 4:s=s.containerInfo,v=!0;break e}$=$.return}$=!0}if(5===_.tag||6===_.tag){e:for(var ae=i,pe=_,we=pe;;)if(bj(ae,we),null!==we.child&&4!==we.tag)we.child.return=we,we=we.child;else{if(we===pe)break e;for(;null===we.sibling;){if(null===we.return||we.return===pe)break e;we=we.return}we.sibling.return=we.return,we=we.sibling}v?(ae=s,pe=_.stateNode,8===ae.nodeType?ae.parentNode.removeChild(pe):ae.removeChild(pe)):s.removeChild(_.stateNode)}else if(4===_.tag){if(null!==_.child){s=_.stateNode.containerInfo,v=!0,_.child.return=_,_=_.child;continue}}else if(bj(i,_),null!==_.child){_.child.return=_,_=_.child;continue}if(_===o)break;for(;null===_.sibling;){if(null===_.return||_.return===o)return;4===(_=_.return).tag&&($=!1)}_.sibling.return=_.return,_=_.sibling}}function ij(i,o){switch(o.tag){case 0:case 11:case 14:case 15:case 22:var s=o.updateQueue;if(null!==(s=null!==s?s.lastEffect:null)){var v=s=s.next;do{3==(3&v.tag)&&(i=v.destroy,v.destroy=void 0,void 0!==i&&i()),v=v.next}while(v!==s)}return;case 1:case 12:case 17:return;case 5:if(null!=(s=o.stateNode)){v=o.memoizedProps;var _=null!==i?i.memoizedProps:v;i=o.type;var $=o.updateQueue;if(o.updateQueue=null,null!==$){for(s[Po]=v,"input"===i&&"radio"===v.type&&null!=v.name&&$a(s,v),wb(i,_),o=wb(i,v),_=0;_<$.length;_+=2){var ae=$[_],pe=$[_+1];"style"===ae?tb(s,pe):"dangerouslySetInnerHTML"===ae?Pt(s,pe):"children"===ae?pb(s,pe):qa(s,ae,pe,o)}switch(i){case"input":ab(s,v);break;case"textarea":ib(s,v);break;case"select":i=s._wrapperState.wasMultiple,s._wrapperState.wasMultiple=!!v.multiple,null!=($=v.value)?fb(s,!!v.multiple,$,!1):i!==!!v.multiple&&(null!=v.defaultValue?fb(s,!!v.multiple,v.defaultValue,!0):fb(s,!!v.multiple,v.multiple?[]:"",!1))}}}return;case 6:if(null===o.stateNode)throw Error(y(162));return void(o.stateNode.nodeValue=o.memoizedProps);case 3:return void((s=o.stateNode).hydrate&&(s.hydrate=!1,Cc(s.containerInfo)));case 13:return null!==o.memoizedState&&(au=ps(),aj(o.child,!0)),void kj(o);case 19:return void kj(o);case 23:case 24:return void aj(o,null!==o.memoizedState)}throw Error(y(163))}function kj(i){var o=i.updateQueue;if(null!==o){i.updateQueue=null;var s=i.stateNode;null===s&&(s=i.stateNode=new ed),o.forEach((function(o){var v=lj.bind(null,i,o);s.has(o)||(s.add(o),o.then(v,v))}))}}function mj(i,o){return null!==i&&(null===(i=i.memoizedState)||null!==i.dehydrated)&&(null!==(o=o.memoizedState)&&null===o.dehydrated)}var dd=Math.ceil,ld=ot.ReactCurrentDispatcher,cd=ot.ReactCurrentOwner,md=0,Cd=null,_d=null,kd=0,Ad=0,Md=Bf(0),Wd=0,Zd=null,Xd=0,Yd=0,eu=0,tu=0,nu=null,au=0,ru=1/0;function wj(){ru=ps()+500}var iu,ou=null,su=!1,du=null,uu=null,lu=!1,cu=null,hu=90,pu=[],fu=[],gu=null,mu=0,yu=null,vu=-1,Ru=0,bu=0,Ou=null,xu=!1;function Hg(){return 0!=(48&md)?ps():-1!==vu?vu:vu=ps()}function Ig(i){if(0==(2&(i=i.mode)))return 1;if(0==(4&i))return 99===eg()?1:2;if(0===Ru&&(Ru=Xd),0!==fs.transition){0!==bu&&(bu=null!==nu?nu.pendingLanes:0),i=Ru;var o=4186112&~bu;return 0===(o&=-o)&&(0===(o=(i=4186112&~i)&-i)&&(o=8192)),o}return i=eg(),0!=(4&md)&&98===i?i=Xc(12,Ru):i=Xc(i=Sc(i),Ru),i}function Jg(i,o,s){if(50_&&(_=ae),s&=~$}if(s=_,10<(s=(120>(s=ps()-s)?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*dd(s/1960))-s)){i.timeoutHandle=So(Uj.bind(null,i),s);break}Uj(i);break;default:throw Error(y(329))}}return Mj(i,ps()),i.callbackNode===o?Nj.bind(null,i):null}function Ii(i,o){for(o&=~tu,o&=~eu,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Wd&&(Wd=2),we=Mi(we,pe),nt=ae;do{switch(nt.tag){case 3:$=we,nt.flags|=4096,o&=-o,nt.lanes|=o,Bg(nt,Pi(0,$,o));break e;case 1:$=we;var ht=nt.type,pt=nt.stateNode;if(0==(64&nt.flags)&&("function"==typeof ht.getDerivedStateFromError||null!==pt&&"function"==typeof pt.componentDidCatch&&(null===uu||!uu.has(pt)))){nt.flags|=4096,o&=-o,nt.lanes|=o,Bg(nt,Si(nt,$,o));break e}}nt=nt.return}while(null!==nt)}Zj(s)}catch(i){o=i,_d===s&&null!==s&&(_d=s=s.return);continue}break}}function Pj(){var i=ld.current;return ld.current=Us,null===i?Us:i}function Tj(i,o){var s=md;md|=16;var v=Pj();for(Cd===i&&kd===o||Qj(i,o);;)try{ak();break}catch(o){Sj(i,o)}if(qg(),md=s,ld.current=v,null!==_d)throw Error(y(261));return Cd=null,kd=0,Wd}function ak(){for(;null!==_d;)bk(_d)}function Rj(){for(;null!==_d&&!Zo();)bk(_d)}function bk(i){var o=iu(i.alternate,i,Ad);i.memoizedProps=i.pendingProps,null===o?Zj(i):_d=o,cd.current=null}function Zj(i){var o=i;do{var s=o.alternate;if(i=o.return,0==(2048&o.flags)){if(null!==(s=Gi(s,o,Ad)))return void(_d=s);if(24!==(s=o).tag&&23!==s.tag||null===s.memoizedState||0!=(1073741824&Ad)||0==(4&s.mode)){for(var v=0,_=s.child;null!==_;)v|=_.lanes|_.childLanes,_=_.sibling;s.childLanes=v}null!==i&&0==(2048&i.flags)&&(null===i.firstEffect&&(i.firstEffect=o.firstEffect),null!==o.lastEffect&&(null!==i.lastEffect&&(i.lastEffect.nextEffect=o.firstEffect),i.lastEffect=o.lastEffect),1ae&&(pe=ae,ae=ht,ht=pe),pe=Le(ut,ht),$=Le(ut,ae),pe&&$&&(1!==ct.rangeCount||ct.anchorNode!==pe.node||ct.anchorOffset!==pe.offset||ct.focusNode!==$.node||ct.focusOffset!==$.offset)&&((lt=lt.createRange()).setStart(pe.node,pe.offset),ct.removeAllRanges(),ht>ae?(ct.addRange(lt),ct.extend($.node,$.offset)):(lt.setEnd($.node,$.offset),ct.addRange(lt))))),lt=[];for(ct=ut;ct=ct.parentNode;)1===ct.nodeType&<.push({element:ct,left:ct.scrollLeft,top:ct.scrollTop});for("function"==typeof ut.focus&&ut.focus(),ut=0;utps()-au?Qj(i,0):tu|=s),Mj(i,o)}function lj(i,o){var s=i.stateNode;null!==s&&s.delete(o),0===(o=0)&&(0==(2&(o=i.mode))?o=1:0==(4&o)?o=99===eg()?1:2:(0===Ru&&(Ru=Xd),0===(o=Yc(62914560&~Ru))&&(o=4194304))),s=Hg(),null!==(i=Kj(i,o))&&($c(i,o,s),Mj(i,s))}function ik(i,o,s,v){this.tag=i,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function nh(i,o,s,v){return new ik(i,o,s,v)}function ji(i){return!(!(i=i.prototype)||!i.isReactComponent)}function hk(i){if("function"==typeof i)return ji(i)?1:0;if(null!=i){if((i=i.$$typeof)===ft)return 11;if(i===yt)return 14}return 2}function Tg(i,o){var s=i.alternate;return null===s?((s=nh(i.tag,o,i.key,i.mode)).elementType=i.elementType,s.type=i.type,s.stateNode=i.stateNode,s.alternate=i,i.alternate=s):(s.pendingProps=o,s.type=i.type,s.flags=0,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null),s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,o=i.dependencies,s.dependencies=null===o?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=i.sibling,s.index=i.index,s.ref=i.ref,s}function Vg(i,o,s,v,_,$){var ae=2;if(v=i,"function"==typeof i)ji(i)&&(ae=1);else if("string"==typeof i)ae=5;else e:switch(i){case ut:return Xg(s.children,_,$,o);case Ot:ae=8,_|=16;break;case lt:ae=8,_|=1;break;case ct:return(i=nh(12,s,o,8|_)).elementType=ct,i.type=ct,i.lanes=$,i;case gt:return(i=nh(13,s,o,_)).type=gt,i.elementType=gt,i.lanes=$,i;case mt:return(i=nh(19,s,o,_)).elementType=mt,i.lanes=$,i;case xt:return vi(s,_,$,o);case wt:return(i=nh(24,s,o,_)).elementType=wt,i.lanes=$,i;default:if("object"==typeof i&&null!==i)switch(i.$$typeof){case ht:ae=10;break e;case pt:ae=9;break e;case ft:ae=11;break e;case yt:ae=14;break e;case vt:ae=16,v=null;break e;case Rt:ae=22;break e}throw Error(y(130,null==i?i:typeof i,""))}return(o=nh(ae,s,o,_)).elementType=i,o.type=v,o.lanes=$,o}function Xg(i,o,s,v){return(i=nh(7,i,v,o)).lanes=s,i}function vi(i,o,s,v){return(i=nh(23,i,v,o)).elementType=xt,i.lanes=s,i}function Ug(i,o,s){return(i=nh(6,i,null,o)).lanes=s,i}function Wg(i,o,s){return(o=nh(4,null!==i.children?i.children:[],i.key,o)).lanes=s,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function jk(i,o,s){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=s,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Zc(0),this.expirationTimes=Zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc(0),this.mutableSourceEagerHydrationData=null}function kk(i,o,s){var v=3=lt},ae=function(){},o.unstable_forceFrameRate=function(i){0>i||125>>1,_=i[v];if(!(void 0!==_&&0I(ae,s))void 0!==we&&0>I(we,ae)?(i[v]=we,i[pe]=s,v=pe):(i[v]=ae,i[$]=s,v=$);else{if(!(void 0!==we&&0>I(we,s)))break e;i[v]=we,i[pe]=s,v=pe}}}return o}return null}function I(i,o){var s=i.sortIndex-o.sortIndex;return 0!==s?s:i.id-o.id}var pt=[],ft=[],gt=1,mt=null,yt=3,vt=!1,Rt=!1,bt=!1;function T(i){for(var o=J(ft);null!==o;){if(null===o.callback)K(ft);else{if(!(o.startTime<=i))break;K(ft),o.sortIndex=o.expirationTime,H(pt,o)}o=J(ft)}}function U(i){if(bt=!1,T(i),!Rt)if(null!==J(pt))Rt=!0,v(V);else{var o=J(ft);null!==o&&_(U,o.startTime-i)}}function V(i,s){Rt=!1,bt&&(bt=!1,$()),vt=!0;var v=yt;try{for(T(s),mt=J(pt);null!==mt&&(!(mt.expirationTime>s)||i&&!o.unstable_shouldYield());){var ae=mt.callback;if("function"==typeof ae){mt.callback=null,yt=mt.priorityLevel;var pe=ae(mt.expirationTime<=s);s=o.unstable_now(),"function"==typeof pe?mt.callback=pe:mt===J(pt)&&K(pt),T(s)}else K(pt);mt=J(pt)}if(null!==mt)var we=!0;else{var _e=J(ft);null!==_e&&_(U,_e.startTime-s),we=!1}return we}finally{mt=null,yt=v,vt=!1}}var Ot=ae;o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(i){i.callback=null},o.unstable_continueExecution=function(){Rt||vt||(Rt=!0,v(V))},o.unstable_getCurrentPriorityLevel=function(){return yt},o.unstable_getFirstCallbackNode=function(){return J(pt)},o.unstable_next=function(i){switch(yt){case 1:case 2:case 3:var o=3;break;default:o=yt}var s=yt;yt=o;try{return i()}finally{yt=s}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=Ot,o.unstable_runWithPriority=function(i,o){switch(i){case 1:case 2:case 3:case 4:case 5:break;default:i=3}var s=yt;yt=i;try{return o()}finally{yt=s}},o.unstable_scheduleCallback=function(i,s,ae){var pe=o.unstable_now();switch("object"==typeof ae&&null!==ae?ae="number"==typeof(ae=ae.delay)&&0pe?(i.sortIndex=ae,H(ft,i),null===J(pt)&&i===J(ft)&&(bt?$():bt=!0,_(U,ae-pe))):(i.sortIndex=we,H(pt,i),Rt||vt||(Rt=!0,v(V))),i},o.unstable_wrapCallback=function(i){var o=yt;return function(){var s=yt;yt=o;try{return i.apply(this,arguments)}finally{yt=s}}}},function(i,o,s){"use strict";function pad(i,o){for(;i.length")})),et="$0"==="a".replace(/./,"$0"),tt=$("replace"),nt=!!/./[tt]&&""===/./[tt]("a","$0"),rt=!_((function(){var i=/(?:)/,o=i.exec;i.exec=function(){return o.apply(this,arguments)};var s="ab".split(i);return 2!==s.length||"a"!==s[0]||"b"!==s[1]}));i.exports=function(i,o,s,tt){var it=$(i),ot=!_((function(){var o={};return o[it]=function(){return 7},7!=""[i](o)})),st=ot&&!_((function(){var o=!1,s=/a/;return"split"===i&&((s={}).constructor={},s.constructor[we]=function(){return s},s.flags="",s[it]=/./[it]),s.exec=function(){return o=!0,null},s[it](""),!o}));if(!ot||!st||"replace"===i&&(!_e||!et||nt)||"split"===i&&!rt){var dt=/./[it],ut=s(it,""[i],(function(i,o,s,v,_){return o.exec===ae?ot&&!_?{done:!0,value:dt.call(o,s,v)}:{done:!0,value:i.call(s,o,v)}:{done:!1}}),{REPLACE_KEEPS_$0:et,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:nt}),lt=ut[0],ct=ut[1];v(String.prototype,i,lt),v(RegExp.prototype,it,2==o?function(i,o){return ct.call(i,this,o)}:function(i){return ct.call(i,this)})}tt&&pe(RegExp.prototype[it],"sham",!0)}},function(i,o,s){"use strict";var v=s(257),_=s(118);v({target:"RegExp",proto:!0,forced:/./.exec!==_},{exec:_})},function(i,o,s){var v=s(34),_=s(157).f,$=s(67),ae=s(163),pe=s(117),we=s(265),_e=s(275);i.exports=function(i,o){var s,et,tt,nt,rt,it=i.target,ot=i.global,st=i.stat;if(s=ot?v:st?v[it]||pe(it,{}):(v[it]||{}).prototype)for(et in o){if(nt=o[et],tt=i.noTargetGet?(rt=_(s,et))&&rt.value:s[et],!_e(ot?et:it+(st?".":"#")+et,i.forced)&&void 0!==tt){if(typeof nt==typeof tt)continue;we(nt,tt)}(i.sham||tt&&tt.sham)&&$(nt,"sham",!0),ae(s,et,nt,i)}}},function(i,o,s){"use strict";var v={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,$=_&&!v.call({1:2},1);o.f=$?function propertyIsEnumerable(i){var o=_(this,i);return!!o&&o.enumerable}:v},function(i,o,s){var v=s(47),_=s(159),$="".split;i.exports=v((function(){return!Object("z").propertyIsEnumerable(0)}))?function(i){return"String"==_(i)?$.call(i,""):Object(i)}:Object},function(i,o,s){var v=s(34),_=s(89),$=v.document,ae=_($)&&_($.createElement);i.exports=function(i){return ae?$.createElement(i):{}}},function(i,o,s){var v,_,$,ae=s(262),pe=s(34),we=s(89),_e=s(67),et=s(58),tt=s(263),nt=s(168),rt=pe.WeakMap;if(ae){var it=new rt,ot=it.get,st=it.has,dt=it.set;v=function(i,o){return dt.call(it,i,o),o},_=function(i){return ot.call(it,i)||{}},$=function(i){return st.call(it,i)}}else{var ut=tt("state");nt[ut]=!0,v=function(i,o){return _e(i,ut,o),o},_=function(i){return et(i,ut)?i[ut]:{}},$=function(i){return et(i,ut)}}i.exports={set:v,get:_,has:$,enforce:function(i){return $(i)?_(i):v(i,{})},getterFor:function(i){return function(o){var s;if(!we(o)||(s=_(o)).type!==i)throw TypeError("Incompatible receiver, "+i+" required");return s}}}},function(i,o,s){var v=s(34),_=s(164),$=v.WeakMap;i.exports="function"==typeof $&&/native code/.test(_($))},function(i,o,s){var v=s(166),_=s(167),$=v("keys");i.exports=function(i){return $[i]||($[i]=_(i))}},function(i,o){i.exports=!1},function(i,o,s){var v=s(58),_=s(266),$=s(157),ae=s(162);i.exports=function(i,o){for(var s=_(o),pe=ae.f,we=$.f,_e=0;_ewe;)v(pe,s=o[we++])&&(~$(_e,s)||_e.push(s));return _e}},function(i,o,s){var v=s(116),_=s(169),$=s(272),createMethod=function(i){return function(o,s,ae){var pe,we=v(o),_e=_(we.length),et=$(ae,_e);if(i&&s!=s){for(;_e>et;)if((pe=we[et++])!=pe)return!0}else for(;_e>et;et++)if((i||et in we)&&we[et]===s)return i||et||0;return!i&&-1}};i.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},function(i,o,s){var v=s(91),_=Math.max,$=Math.min;i.exports=function(i,o){var s=v(i);return s<0?_(s+o,0):$(s,o)}},function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(i,o){o.f=Object.getOwnPropertySymbols},function(i,o,s){var v=s(47),_=/#|\.prototype\./,isForced=function(i,o){var s=ae[$(i)];return s==we||s!=pe&&("function"==typeof o?v(o):!!o)},$=isForced.normalize=function(i){return String(i).replace(_,".").toLowerCase()},ae=isForced.data={},pe=isForced.NATIVE="N",we=isForced.POLYFILL="P";i.exports=isForced},function(i,o,s){"use strict";var v=s(90);i.exports=function(){var i=v(this),o="";return i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.sticky&&(o+="y"),o}},function(i,o,s){"use strict";var v=s(47);function RE(i,o){return RegExp(i,o)}o.UNSUPPORTED_Y=v((function(){var i=RE("a","y");return i.lastIndex=2,null!=i.exec("abcd")})),o.BROKEN_CARET=v((function(){var i=RE("^r","gy");return i.lastIndex=2,null!=i.exec("str")}))},function(i,o,s){var v=s(34),_=s(166),$=s(58),ae=s(167),pe=s(170),we=s(279),_e=_("wks"),et=v.Symbol,tt=we?et:et&&et.withoutSetter||ae;i.exports=function(i){return $(_e,i)||(pe&&$(et,i)?_e[i]=et[i]:_e[i]=tt("Symbol."+i)),_e[i]}},function(i,o,s){var v=s(170);i.exports=v&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(i,o,s){var v=s(88);i.exports=function(i){return Object(v(i))}},function(i,o,s){"use strict";var v=s(282).charAt;i.exports=function(i,o,s){return o+(s?v(i,o).length:1)}},function(i,o,s){var v=s(91),_=s(88),createMethod=function(i){return function(o,s){var $,ae,pe=String(_(o)),we=v(s),_e=pe.length;return we<0||we>=_e?i?"":void 0:($=pe.charCodeAt(we))<55296||$>56319||we+1===_e||(ae=pe.charCodeAt(we+1))<56320||ae>57343?i?pe.charAt(we):$:i?pe.slice(we,we+2):ae-56320+($-55296<<10)+65536}};i.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},function(i,o,s){var v=s(159),_=s(118);i.exports=function(i,o){var s=i.exec;if("function"==typeof s){var $=s.call(i,o);if("object"!=typeof $)throw TypeError("RegExp exec method returned something other than an Object or null");return $}if("RegExp"!==v(i))throw TypeError("RegExp#exec called on incompatible receiver");return _.call(i,o)}},function(i,o,s){var v=s(119),_=s(173),$=s(175),ae=s(314),pe=s(35),we=s(180),_e=s(179);i.exports=function baseMerge(i,o,s,et,tt){i!==o&&$(o,(function($,we){if(tt||(tt=new v),pe($))ae(i,o,we,s,baseMerge,et,tt);else{var nt=et?et(_e(i,we),$,we+"",i,o,tt):void 0;void 0===nt&&(nt=$),_(i,we,nt)}}),we)}},function(i,o){i.exports=function listCacheClear(){this.__data__=[],this.size=0}},function(i,o,s){var v=s(93),_=Array.prototype.splice;i.exports=function listCacheDelete(i){var o=this.__data__,s=v(o,i);return!(s<0)&&(s==o.length-1?o.pop():_.call(o,s,1),--this.size,!0)}},function(i,o,s){var v=s(93);i.exports=function listCacheGet(i){var o=this.__data__,s=v(o,i);return s<0?void 0:o[s][1]}},function(i,o,s){var v=s(93);i.exports=function listCacheHas(i){return v(this.__data__,i)>-1}},function(i,o,s){var v=s(93);i.exports=function listCacheSet(i,o){var s=this.__data__,_=v(s,i);return _<0?(++this.size,s.push([i,o])):s[_][1]=o,this}},function(i,o,s){var v=s(92);i.exports=function stackClear(){this.__data__=new v,this.size=0}},function(i,o){i.exports=function stackDelete(i){var o=this.__data__,s=o.delete(i);return this.size=o.size,s}},function(i,o){i.exports=function stackGet(i){return this.__data__.get(i)}},function(i,o){i.exports=function stackHas(i){return this.__data__.has(i)}},function(i,o,s){var v=s(92),_=s(120),$=s(122);i.exports=function stackSet(i,o){var s=this.__data__;if(s instanceof v){var ae=s.__data__;if(!_||ae.length<199)return ae.push([i,o]),this.size=++s.size,this;s=this.__data__=new $(ae)}return s.set(i,o),this.size=s.size,this}},function(i,o,s){var v=s(121),_=s(298),$=s(35),ae=s(172),pe=/^\[object .+?Constructor\]$/,we=Function.prototype,_e=Object.prototype,et=we.toString,tt=_e.hasOwnProperty,nt=RegExp("^"+et.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");i.exports=function baseIsNative(i){return!(!$(i)||_(i))&&(v(i)?nt:pe).test(ae(i))}},function(i,o,s){var v=s(94),_=Object.prototype,$=_.hasOwnProperty,ae=_.toString,pe=v?v.toStringTag:void 0;i.exports=function getRawTag(i){var o=$.call(i,pe),s=i[pe];try{i[pe]=void 0;var v=!0}catch(i){}var _=ae.call(i);return v&&(o?i[pe]=s:delete i[pe]),_}},function(i,o){var s=Object.prototype.toString;i.exports=function objectToString(i){return s.call(i)}},function(i,o,s){var v,_=s(299),$=(v=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"";i.exports=function isMasked(i){return!!$&&$ in i}},function(i,o,s){var v=s(25)["__core-js_shared__"];i.exports=v},function(i,o){i.exports=function getValue(i,o){return null==i?void 0:i[o]}},function(i,o,s){var v=s(302),_=s(92),$=s(120);i.exports=function mapCacheClear(){this.size=0,this.__data__={hash:new v,map:new($||_),string:new v}}},function(i,o,s){var v=s(303),_=s(304),$=s(305),ae=s(306),pe=s(307);function Hash(i){var o=-1,s=null==i?0:i.length;for(this.clear();++o1?s[$-1]:void 0,pe=$>2?s[2]:void 0;for(ae=i.length>3&&"function"==typeof ae?($--,ae):void 0,pe&&_(s[0],s[1],pe)&&(ae=$<3?void 0:ae,$=1),o=Object(o);++v<$;){var we=s[v];we&&i(o,we,v,ae)}return o}))}},function(i,o,s){var v=s(126),_=s(336),$=s(338);i.exports=function baseRest(i,o){return $(_(i,o,v),i+"")}},function(i,o,s){var v=s(337),_=Math.max;i.exports=function overRest(i,o,s){return o=_(void 0===o?i.length-1:o,0),function(){for(var $=arguments,ae=-1,pe=_($.length-o,0),we=Array(pe);++ae0){if(++o>=800)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}},function(i,o,s){var v=s(68),_=s(44),$=s(125),ae=s(35);i.exports=function isIterateeCall(i,o,s){if(!ae(s))return!1;var pe=typeof o;return!!("number"==pe?_(s)&&$(o,s.length):"string"==pe&&o in s)&&v(s[o],i)}},function(i,o){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},function(i,o){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(i){"entity"===i.type&&(i.attributes.title=i.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function addInlined(i,o){var s={};s["language-"+o]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[o]},s.cdata=/^$/i;var v={"included-cdata":{pattern://i,inside:s}};v["language-"+o]={pattern:/[\s\S]+/,inside:Prism.languages[o]};var _={};_[i]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return i})),"i"),lookbehind:!0,greedy:!0,inside:v},Prism.languages.insertBefore("markup","cdata",_)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(i,o){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:Prism.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},function(i,o){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},function(i,o){!function(i){var o=i.util.clone(i.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,v=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,_=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re(i,o){return i=i.replace(//g,(function(){return s})).replace(//g,(function(){return v})).replace(//g,(function(){return _})),RegExp(i,o)}_=re(_).source,i.languages.jsx=i.languages.extend("markup",o),i.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),i.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,i.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,i.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,i.languages.jsx.tag.inside.comment=o.comment,i.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:i.languages.jsx}},i.languages.jsx.tag),i.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:i.languages.jsx}}},i.languages.jsx.tag);var stringifyToken=function(i){return i?"string"==typeof i?i:"string"==typeof i.content?i.content:i.content.map(stringifyToken).join(""):""},walkTokens=function(o){for(var s=[],v=0;v0&&s[s.length-1].tagName===stringifyToken(_.content[0].content[1])&&s.pop():"/>"===_.content[_.content.length-1].content||s.push({tagName:stringifyToken(_.content[0].content[1]),openedBraces:0}):s.length>0&&"punctuation"===_.type&&"{"===_.content?s[s.length-1].openedBraces++:s.length>0&&s[s.length-1].openedBraces>0&&"punctuation"===_.type&&"}"===_.content?s[s.length-1].openedBraces--:$=!0),($||"string"==typeof _)&&s.length>0&&0===s[s.length-1].openedBraces){var ae=stringifyToken(_);v0&&("string"==typeof o[v-1]||"plain-text"===o[v-1].type)&&(ae=stringifyToken(o[v-1])+ae,o.splice(v-1,1),v--),o[v]=new i.Token("plain-text",ae,null,ae)}_.content&&"string"!=typeof _.content&&walkTokens(_.content)}};i.hooks.add("after-tokenize",(function(i){"jsx"!==i.language&&"tsx"!==i.language||walkTokens(i.tokens)}))}(Prism)},function(i,o,s){"use strict";var v=s(348);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,i.exports=function(){function shim(i,o,s,_,$,ae){if(ae!==v){var pe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw pe.name="Invariant Violation",pe}}function getShim(){return shim}shim.isRequired=shim;var i={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return i.PropTypes=i,i}},function(i,o,s){"use strict";i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(i,o){!function(){"use strict";function isStatement(i){if(null==i)return!1;switch(i.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function trailingStatement(i){switch(i.type){case"IfStatement":return null!=i.alternate?i.alternate:i.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return i.body}return null}i.exports={isExpression:function isExpression(i){if(null==i)return!1;switch(i.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:isStatement,isIterationStatement:function isIterationStatement(i){if(null==i)return!1;switch(i.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(i){return isStatement(i)||null!=i&&"FunctionDeclaration"===i.type},isProblematicIfStatement:function isProblematicIfStatement(i){var o;if("IfStatement"!==i.type)return!1;if(null==i.alternate)return!1;o=i.consequent;do{if("IfStatement"===o.type&&null==o.alternate)return!0;o=trailingStatement(o)}while(o);return!1},trailingStatement:trailingStatement}}()},function(i,o,s){!function(){"use strict";var o=s(183);function isStrictModeReservedWordES6(i){switch(i){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function isKeywordES5(i,o){return!(!o&&"yield"===i)&&isKeywordES6(i,o)}function isKeywordES6(i,o){if(o&&isStrictModeReservedWordES6(i))return!0;switch(i.length){case 2:return"if"===i||"in"===i||"do"===i;case 3:return"var"===i||"for"===i||"new"===i||"try"===i;case 4:return"this"===i||"else"===i||"case"===i||"void"===i||"with"===i||"enum"===i;case 5:return"while"===i||"break"===i||"catch"===i||"throw"===i||"const"===i||"yield"===i||"class"===i||"super"===i;case 6:return"return"===i||"typeof"===i||"delete"===i||"switch"===i||"export"===i||"import"===i;case 7:return"default"===i||"finally"===i||"extends"===i;case 8:return"function"===i||"continue"===i||"debugger"===i;case 10:return"instanceof"===i;default:return!1}}function isReservedWordES5(i,o){return"null"===i||"true"===i||"false"===i||isKeywordES5(i,o)}function isReservedWordES6(i,o){return"null"===i||"true"===i||"false"===i||isKeywordES6(i,o)}function isIdentifierNameES5(i){var s,v,_;if(0===i.length)return!1;if(_=i.charCodeAt(0),!o.isIdentifierStartES5(_))return!1;for(s=1,v=i.length;s=v)return!1;if(!(56320<=($=i.charCodeAt(s))&&$<=57343))return!1;_=1024*(_-55296)+($-56320)+65536}if(!ae(_))return!1;ae=o.isIdentifierPartES6}return!0}i.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:function isRestrictedWord(i){return"eval"===i||"arguments"===i},isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:function isIdentifierES5(i,o){return isIdentifierNameES5(i)&&!isReservedWordES5(i,o)},isIdentifierES6:function isIdentifierES6(i,o){return isIdentifierNameES6(i)&&!isReservedWordES6(i,o)}}}()},function(i,o,s){!function(){"use strict";var i,v,_,$,ae,pe,we,_e,et,tt,nt,rt;function isTypeName(i){return-1==="><(){}[],:*|?!=".indexOf(String.fromCharCode(i))&&!et.code.isWhiteSpace(i)&&!et.code.isLineTerminator(i)}function Context(i,o,s,v){this._previous=i,this._index=o,this._token=s,this._value=v}function maybeAddRange(i,o){return rt&&(i.range=[o[0]+nt,o[1]+nt]),i}function advance(){var i=_.charAt(ae);return ae+=1,i}function scanHexEscape(i){var o,s,v,pe=0;for(s="u"===i?4:2,o=0;o=0&&ae<$&&et.code.isOctalDigit(_.charCodeAt(ae))&&(s=8*s+"01234567".indexOf(advance()))),nt+=String.fromCharCode(s)):nt+=o}else{if(et.code.isLineTerminator(o.charCodeAt(0)))break;nt+=o}}return""!==i&&tt.throwError("unexpected quote"),_e=nt,v.STRING}function scanNumber(){var i,o;if(i="",46!==(o=_.charCodeAt(ae))){if(i=advance(),o=_.charCodeAt(ae),"0"===i){if(120===o||88===o){for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isHexDigit(o));)i+=advance();return i.length<=2&&tt.throwError("unexpected token"),ae<$&&(o=_.charCodeAt(ae),et.code.isIdentifierStartES5(o)&&tt.throwError("unexpected token")),_e=parseInt(i,16),v.NUMBER}if(et.code.isOctalDigit(o)){for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isOctalDigit(o));)i+=advance();return ae<$&&(o=_.charCodeAt(ae),(et.code.isIdentifierStartES5(o)||et.code.isDecimalDigit(o))&&tt.throwError("unexpected token")),_e=parseInt(i,8),v.NUMBER}et.code.isDecimalDigit(o)&&tt.throwError("unexpected token")}for(;ae<$&&(o=_.charCodeAt(ae),et.code.isDecimalDigit(o));)i+=advance()}if(46===o)for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isDecimalDigit(o));)i+=advance();if(101===o||69===o)if(i+=advance(),43!==(o=_.charCodeAt(ae))&&45!==o||(i+=advance()),o=_.charCodeAt(ae),et.code.isDecimalDigit(o))for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isDecimalDigit(o));)i+=advance();else tt.throwError("unexpected token");return ae<$&&(o=_.charCodeAt(ae),et.code.isIdentifierStartES5(o)&&tt.throwError("unexpected token")),_e=parseFloat(i),v.NUMBER}function scanTypeName(){for(_e=advance();ae<$&&isTypeName(_.charCodeAt(ae));){if(46===_.charCodeAt(ae)){if(ae+1>=$)return v.ILLEGAL;if(60===_.charCodeAt(ae+1))break}_e+=advance()}return v.NAME}function next(){var i;for(pe=ae;ae<$&&et.code.isWhiteSpace(_.charCodeAt(ae));)advance();if(ae>=$)return we=v.EOF;switch(i=_.charCodeAt(ae)){case 39:case 34:return we=scanString();case 58:return advance(),we=v.COLON;case 44:return advance(),we=v.COMMA;case 40:return advance(),we=v.LPAREN;case 41:return advance(),we=v.RPAREN;case 91:return advance(),we=v.LBRACK;case 93:return advance(),we=v.RBRACK;case 123:return advance(),we=v.LBRACE;case 125:return advance(),we=v.RBRACE;case 46:if(ae+1<$){if(60===(i=_.charCodeAt(ae+1)))return advance(),advance(),we=v.DOT_LT;if(46===i&&ae+2<$&&46===_.charCodeAt(ae+2))return advance(),advance(),advance(),we=v.REST;if(et.code.isDecimalDigit(i))return we=scanNumber()}return we=v.ILLEGAL;case 60:return advance(),we=v.LT;case 62:return advance(),we=v.GT;case 42:return advance(),we=v.STAR;case 124:return advance(),we=v.PIPE;case 63:return advance(),we=v.QUESTION;case 33:return advance(),we=v.BANG;case 61:return advance(),we=v.EQUAL;case 45:return we=scanNumber();default:return et.code.isDecimalDigit(i)?we=scanNumber():(tt.assert(isTypeName(i)),we=scanTypeName())}}function consume(i,o){tt.assert(we===i,o||"consumed token not matched"),next()}function expect(i,o){we!==i&&tt.throwError(o||"unexpected token"),next()}function parseUnionType(){var o,s=ae-1;if(consume(v.LPAREN,"UnionType should start with ("),o=[],we!==v.RPAREN)for(;o.push(parseTypeExpression()),we!==v.RPAREN;)expect(v.PIPE);return consume(v.RPAREN,"UnionType should end with )"),maybeAddRange({type:i.UnionType,elements:o},[s,pe])}function parseArrayType(){var o,s,_=ae-1;for(consume(v.LBRACK,"ArrayType should start with ["),o=[];we!==v.RBRACK;){if(we===v.REST){s=ae-3,consume(v.REST),o.push(maybeAddRange({type:i.RestType,expression:parseTypeExpression()},[s,pe]));break}o.push(parseTypeExpression()),we!==v.RBRACK&&expect(v.COMMA)}return expect(v.RBRACK),maybeAddRange({type:i.ArrayType,elements:o},[_,pe])}function parseFieldType(){var o,s,_=pe;return s=_e,o=we===v.NAME||we===v.STRING?(next(),s):we===v.NUMBER?(consume(v.NUMBER),String(s)):void tt.throwError("unexpected token"),we===v.COLON?(consume(v.COLON),maybeAddRange({type:i.FieldType,key:o,value:parseTypeExpression()},[_,pe])):maybeAddRange({type:i.FieldType,key:o,value:null},[_,pe])}function parseRecordType(){var o,s,_=ae-1;if(consume(v.LBRACE,"RecordType should start with {"),o=[],we===v.COMMA)consume(v.COMMA);else for(;we!==v.RBRACE;)o.push(parseFieldType()),we!==v.RBRACE&&expect(v.COMMA);return s=ae,expect(v.RBRACE),maybeAddRange({type:i.RecordType,fields:o},[_,s])}function parseTypeExpressionList(){var i=[];for(i.push(parseTop());we===v.COMMA;)consume(v.COMMA),i.push(parseTop());return i}function parseTypeName(){var o,s,_,$,et=ae-_e.length;return $=ae-(_=_e).length,expect(v.NAME),we!==v.COLON||"module"!==_&&"external"!==_&&"event"!==_||(consume(v.COLON),_+=":"+_e,expect(v.NAME)),o=maybeAddRange({type:i.NameExpression,name:_},[$,pe]),we===v.DOT_LT||we===v.LT?(next(),s=parseTypeExpressionList(),expect(v.GT),maybeAddRange({type:i.TypeApplication,expression:o,applications:s},[et,pe])):o}function parseParametersType(){for(var o,s,_,$=[],_e=!1,et=!1,nt=ae-3;we!==v.RPAREN;)we===v.REST&&(consume(v.REST),et=!0),s=pe,(o=parseTypeExpression()).type===i.NameExpression&&we===v.COLON&&(_=pe-o.name.length,consume(v.COLON),o=maybeAddRange({type:i.ParameterType,name:o.name,expression:parseTypeExpression()},[_,pe])),we===v.EQUAL?(consume(v.EQUAL),o=maybeAddRange({type:i.OptionalType,expression:o},[s,pe]),_e=!0):_e&&tt.throwError("unexpected token"),et&&(o=maybeAddRange({type:i.RestType,expression:o},[nt,pe])),$.push(o),we!==v.RPAREN&&expect(v.COMMA);return $}function parseFunctionType(){var o,s,_,$,et,nt=ae-_e.length;return tt.assert(we===v.NAME&&"function"===_e,"FunctionType should start with 'function'"),consume(v.NAME),expect(v.LPAREN),o=!1,_=[],s=null,we!==v.RPAREN&&(we!==v.NAME||"this"!==_e&&"new"!==_e?_=parseParametersType():(o="new"===_e,consume(v.NAME),expect(v.COLON),s=parseTypeName(),we===v.COMMA&&(consume(v.COMMA),_=parseParametersType()))),expect(v.RPAREN),$=null,we===v.COLON&&(consume(v.COLON,"ResultType should start with :"),$=we===v.NAME&&"void"===_e?(consume(v.NAME),{type:i.VoidLiteral}):parseTypeExpression()),et=maybeAddRange({type:i.FunctionType,params:_,result:$},[nt,pe]),s&&(et.this=s,o&&(et.new=!0)),et}function parseBasicTypeExpression(){var o,s;switch(we){case v.STAR:return consume(v.STAR),maybeAddRange({type:i.AllLiteral},[pe-1,pe]);case v.LPAREN:return parseUnionType();case v.LBRACK:return parseArrayType();case v.LBRACE:return parseRecordType();case v.NAME:if(s=ae-_e.length,"null"===_e)return consume(v.NAME),maybeAddRange({type:i.NullLiteral},[s,pe]);if("undefined"===_e)return consume(v.NAME),maybeAddRange({type:i.UndefinedLiteral},[s,pe]);if("true"===_e||"false"===_e)return consume(v.NAME),maybeAddRange({type:i.BooleanLiteralType,value:"true"===_e},[s,pe]);if(o=Context.save(),"function"===_e)try{return parseFunctionType()}catch(i){o.restore()}return parseTypeName();case v.STRING:return next(),maybeAddRange({type:i.StringLiteralType,value:_e},[pe-_e.length-2,pe]);case v.NUMBER:return next(),maybeAddRange({type:i.NumericLiteralType,value:_e},[pe-String(_e).length,pe]);default:tt.throwError("unexpected token")}}function parseTypeExpression(){var o,s;return we===v.QUESTION?(s=ae-1,consume(v.QUESTION),we===v.COMMA||we===v.EQUAL||we===v.RBRACE||we===v.RPAREN||we===v.PIPE||we===v.EOF||we===v.RBRACK||we===v.GT?maybeAddRange({type:i.NullableLiteral},[s,pe]):maybeAddRange({type:i.NullableType,expression:parseBasicTypeExpression(),prefix:!0},[s,pe])):we===v.BANG?(s=ae-1,consume(v.BANG),maybeAddRange({type:i.NonNullableType,expression:parseBasicTypeExpression(),prefix:!0},[s,pe])):(s=pe,o=parseBasicTypeExpression(),we===v.BANG?(consume(v.BANG),maybeAddRange({type:i.NonNullableType,expression:o,prefix:!1},[s,pe])):we===v.QUESTION?(consume(v.QUESTION),maybeAddRange({type:i.NullableType,expression:o,prefix:!1},[s,pe])):we===v.LBRACK?(consume(v.LBRACK),expect(v.RBRACK,"expected an array-style type declaration ("+_e+"[])"),maybeAddRange({type:i.TypeApplication,expression:maybeAddRange({type:i.NameExpression,name:"Array"},[s,pe]),applications:[o]},[s,pe])):o)}function parseTop(){var o,s;if(o=parseTypeExpression(),we!==v.PIPE)return o;for(s=[o],consume(v.PIPE);s.push(parseTypeExpression()),we===v.PIPE;)consume(v.PIPE);return maybeAddRange({type:i.UnionType,elements:s},[0,ae])}function parseTopParamType(){var o;return we===v.REST?(consume(v.REST),maybeAddRange({type:i.RestType,expression:parseTop()},[0,ae])):(o=parseTop(),we===v.EQUAL?(consume(v.EQUAL),maybeAddRange({type:i.OptionalType,expression:o},[0,ae])):o)}function stringifyImpl(o,s,v){var _,$,ae;switch(o.type){case i.NullableLiteral:_="?";break;case i.AllLiteral:_="*";break;case i.NullLiteral:_="null";break;case i.UndefinedLiteral:_="undefined";break;case i.VoidLiteral:_="void";break;case i.UnionType:for(_=v?"":"(",$=0,ae=o.elements.length;$=6.0.0"},"directories":{"lib":"./lib"},"files":["lib"],"maintainers":[{"name":"Nicholas C. Zakas","email":"nicholas+npm@nczconsulting.com","web":"https://www.nczonline.net"},{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","web":"https://github.com/Constellation"}],"repository":"eslint/doctrine","devDependencies":{"coveralls":"^3.0.1","dateformat":"^1.0.11","eslint":"^1.10.3","eslint-release":"^1.0.0","linefix":"^0.1.1","mocha":"^3.4.2","npm-license":"^0.3.1","nyc":"^10.3.2","semver":"^5.0.3","shelljs":"^0.5.3","shelljs-nodecli":"^0.1.1","should":"^5.0.1"},"license":"Apache-2.0","scripts":{"pretest":"npm run lint","test":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","lint":"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},"dependencies":{"esutils":"^2.0.2"}}')},function(i,o,s){"use strict";(function(o){var v=s(66);function compare(i,o){if(i===o)return 0;for(var s=i.length,v=o.length,_=0,$=Math.min(s,v);_<$;++_)if(i[_]!==o[_]){s=i[_],v=o[_];break}return s=0;_e--)if(tt[_e]!==nt[_e])return!1;for(_e=tt.length-1;_e>=0;_e--)if(!_deepEqual(i[we=tt[_e]],o[we],s,v))return!1;return!0}function expectedException(i,o){if(!i||!o)return!1;if("[object RegExp]"==Object.prototype.toString.call(o))return o.test(i);try{if(i instanceof o)return!0}catch(i){}return!Error.isPrototypeOf(o)&&!0===o.call({},i)}function _tryBlock(i){var o;try{i()}catch(i){o=i}return o}function _throws(i,o,s,v){var $;if("function"!=typeof o)throw new TypeError('"block" argument must be a function');"string"==typeof s&&(v=s,s=null),$=_tryBlock(o),v=(s&&s.name?" ("+s.name+").":".")+(v?" "+v:"."),i&&!$&&fail($,s,"Missing expected exception"+v);var ae="string"==typeof v,pe=!i&&$&&!s;if((!i&&_.isError($)&&ae&&expectedException($,s)||pe)&&fail($,s,"Got unwanted exception"+v),i&&$&&s&&!expectedException($,s)||!i&&$)throw $}we.AssertionError=function AssertionError(i){this.name="AssertionError",this.actual=i.actual,this.expected=i.expected,this.operator=i.operator,i.message?(this.message=i.message,this.generatedMessage=!1):(this.message=getMessage(this),this.generatedMessage=!0);var o=i.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,o);else{var s=new Error;if(s.stack){var v=s.stack,_=getName(o),$=v.indexOf("\n"+_);if($>=0){var ae=v.indexOf("\n",$+1);v=v.substring(ae+1)}this.stack=v}}},_.inherits(we.AssertionError,Error),we.fail=fail,we.ok=ok,we.equal=function equal(i,o,s){i!=o&&fail(i,o,s,"==",we.equal)},we.notEqual=function notEqual(i,o,s){i==o&&fail(i,o,s,"!=",we.notEqual)},we.deepEqual=function deepEqual(i,o,s){_deepEqual(i,o,!1)||fail(i,o,s,"deepEqual",we.deepEqual)},we.deepStrictEqual=function deepStrictEqual(i,o,s){_deepEqual(i,o,!0)||fail(i,o,s,"deepStrictEqual",we.deepStrictEqual)},we.notDeepEqual=function notDeepEqual(i,o,s){_deepEqual(i,o,!1)&&fail(i,o,s,"notDeepEqual",we.notDeepEqual)},we.notDeepStrictEqual=function notDeepStrictEqual(i,o,s){_deepEqual(i,o,!0)&&fail(i,o,s,"notDeepStrictEqual",notDeepStrictEqual)},we.strictEqual=function strictEqual(i,o,s){i!==o&&fail(i,o,s,"===",we.strictEqual)},we.notStrictEqual=function notStrictEqual(i,o,s){i===o&&fail(i,o,s,"!==",we.notStrictEqual)},we.throws=function(i,o,s){_throws(!0,i,o,s)},we.doesNotThrow=function(i,o,s){_throws(!1,i,o,s)},we.ifError=function(i){if(i)throw i},we.strict=v((function strict(i,o){i||fail(i,!0,o,"==",strict)}),we,{equal:we.strictEqual,deepEqual:we.deepStrictEqual,notEqual:we.notStrictEqual,notDeepEqual:we.notDeepStrictEqual}),we.strict.strict=we.strict;var et=Object.keys||function(i){var o=[];for(var s in i)$.call(i,s)&&o.push(s);return o}}).call(this,s(23))},function(i,o,s){(function(i){var v=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(i){for(var o=Object.keys(i),s={},v=0;v=$)return i;switch(i){case"%s":return String(v[s++]);case"%d":return Number(v[s++]);case"%j":try{return JSON.stringify(v[s++])}catch(i){return"[Circular]"}default:return i}})),pe=v[s];s<$;pe=v[++s])isNull(pe)||!isObject(pe)?ae+=" "+pe:ae+=" "+inspect(pe);return ae},o.deprecate=function(s,v){if(void 0!==i&&!0===i.noDeprecation)return s;if(void 0===i)return function(){return o.deprecate(s,v).apply(this,arguments)};var _=!1;return function deprecated(){if(!_){if(i.throwDeprecation)throw new Error(v);i.traceDeprecation?console.trace(v):console.error(v),_=!0}return s.apply(this,arguments)}};var $,ae={};function inspect(i,s){var v={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(v.depth=arguments[2]),arguments.length>=4&&(v.colors=arguments[3]),isBoolean(s)?v.showHidden=s:s&&o._extend(v,s),isUndefined(v.showHidden)&&(v.showHidden=!1),isUndefined(v.depth)&&(v.depth=2),isUndefined(v.colors)&&(v.colors=!1),isUndefined(v.customInspect)&&(v.customInspect=!0),v.colors&&(v.stylize=stylizeWithColor),formatValue(v,i,v.depth)}function stylizeWithColor(i,o){var s=inspect.styles[o];return s?"["+inspect.colors[s][0]+"m"+i+"["+inspect.colors[s][1]+"m":i}function stylizeNoColor(i,o){return i}function arrayToHash(i){var o={};return i.forEach((function(i,s){o[i]=!0})),o}function formatValue(i,s,v){if(i.customInspect&&s&&isFunction(s.inspect)&&s.inspect!==o.inspect&&(!s.constructor||s.constructor.prototype!==s)){var _=s.inspect(v,i);return isString(_)||(_=formatValue(i,_,v)),_}var $=formatPrimitive(i,s);if($)return $;var ae=Object.keys(s),pe=arrayToHash(ae);if(i.showHidden&&(ae=Object.getOwnPropertyNames(s)),isError(s)&&(ae.indexOf("message")>=0||ae.indexOf("description")>=0))return formatError(s);if(0===ae.length){if(isFunction(s)){var we=s.name?": "+s.name:"";return i.stylize("[Function"+we+"]","special")}if(isRegExp(s))return i.stylize(RegExp.prototype.toString.call(s),"regexp");if(isDate(s))return i.stylize(Date.prototype.toString.call(s),"date");if(isError(s))return formatError(s)}var _e,et="",tt=!1,nt=["{","}"];(isArray(s)&&(tt=!0,nt=["[","]"]),isFunction(s))&&(et=" [Function"+(s.name?": "+s.name:"")+"]");return isRegExp(s)&&(et=" "+RegExp.prototype.toString.call(s)),isDate(s)&&(et=" "+Date.prototype.toUTCString.call(s)),isError(s)&&(et=" "+formatError(s)),0!==ae.length||tt&&0!=s.length?v<0?isRegExp(s)?i.stylize(RegExp.prototype.toString.call(s),"regexp"):i.stylize("[Object]","special"):(i.seen.push(s),_e=tt?formatArray(i,s,v,pe,ae):ae.map((function(o){return formatProperty(i,s,v,pe,o,tt)})),i.seen.pop(),reduceToSingleString(_e,et,nt)):nt[0]+et+nt[1]}function formatPrimitive(i,o){if(isUndefined(o))return i.stylize("undefined","undefined");if(isString(o)){var s="'"+JSON.stringify(o).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(s,"string")}return isNumber(o)?i.stylize(""+o,"number"):isBoolean(o)?i.stylize(""+o,"boolean"):isNull(o)?i.stylize("null","null"):void 0}function formatError(i){return"["+Error.prototype.toString.call(i)+"]"}function formatArray(i,o,s,v,_){for(var $=[],ae=0,pe=o.length;ae-1&&(pe=$?pe.split("\n").map((function(i){return" "+i})).join("\n").substr(2):"\n"+pe.split("\n").map((function(i){return" "+i})).join("\n")):pe=i.stylize("[Circular]","special")),isUndefined(ae)){if($&&_.match(/^\d+$/))return pe;(ae=JSON.stringify(""+_)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=i.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=i.stylize(ae,"string"))}return ae+": "+pe}function reduceToSingleString(i,o,s){return i.reduce((function(i,o){return o.indexOf("\n")>=0&&0,i+o.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?s[0]+(""===o?"":o+"\n ")+" "+i.join(",\n ")+" "+s[1]:s[0]+o+" "+i.join(", ")+" "+s[1]}function isArray(i){return Array.isArray(i)}function isBoolean(i){return"boolean"==typeof i}function isNull(i){return null===i}function isNumber(i){return"number"==typeof i}function isString(i){return"string"==typeof i}function isUndefined(i){return void 0===i}function isRegExp(i){return isObject(i)&&"[object RegExp]"===objectToString(i)}function isObject(i){return"object"==typeof i&&null!==i}function isDate(i){return isObject(i)&&"[object Date]"===objectToString(i)}function isError(i){return isObject(i)&&("[object Error]"===objectToString(i)||i instanceof Error)}function isFunction(i){return"function"==typeof i}function objectToString(i){return Object.prototype.toString.call(i)}function pad(i){return i<10?"0"+i.toString(10):i.toString(10)}o.debuglog=function(s){if(isUndefined($)&&($=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).NODE_DEBUG||""),s=s.toUpperCase(),!ae[s])if(new RegExp("\\b"+s+"\\b","i").test($)){var v=i.pid;ae[s]=function(){var i=o.format.apply(o,arguments);console.error("%s %d: %s",s,v,i)}}else ae[s]=function(){};return ae[s]},o.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.isArray=isArray,o.isBoolean=isBoolean,o.isNull=isNull,o.isNullOrUndefined=function isNullOrUndefined(i){return null==i},o.isNumber=isNumber,o.isString=isString,o.isSymbol=function isSymbol(i){return"symbol"==typeof i},o.isUndefined=isUndefined,o.isRegExp=isRegExp,o.isObject=isObject,o.isDate=isDate,o.isError=isError,o.isFunction=isFunction,o.isPrimitive=function isPrimitive(i){return null===i||"boolean"==typeof i||"number"==typeof i||"string"==typeof i||"symbol"==typeof i||void 0===i},o.isBuffer=s(355);var pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(i,o){return Object.prototype.hasOwnProperty.call(i,o)}o.log=function(){var i,s;console.log("%s - %s",(i=new Date,s=[pad(i.getHours()),pad(i.getMinutes()),pad(i.getSeconds())].join(":"),[i.getDate(),pe[i.getMonth()],s].join(" ")),o.format.apply(o,arguments))},o.inherits=s(356),o._extend=function(i,o){if(!o||!isObject(o))return i;for(var s=Object.keys(o),v=s.length;v--;)i[s[v]]=o[s[v]];return i};var we="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(i,o){if(!i){var s=new Error("Promise was rejected with a falsy value");s.reason=i,i=s}return o(i)}o.promisify=function promisify(i){if("function"!=typeof i)throw new TypeError('The "original" argument must be of type Function');if(we&&i[we]){var o;if("function"!=typeof(o=i[we]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(o,we,{value:o,enumerable:!1,writable:!1,configurable:!0}),o}function o(){for(var o,s,v=new Promise((function(i,v){o=i,s=v})),_=[],$=0;$",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},function(i,o,s){"use strict";(function(i){var v=s(400),_=s(401),$=s(402);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(i,o){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|i}function byteLength(i,o){if(Buffer.isBuffer(i))return i.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(i)||i instanceof ArrayBuffer))return i.byteLength;"string"!=typeof i&&(i=""+i);var s=i.length;if(0===s)return 0;for(var v=!1;;)switch(o){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return utf8ToBytes(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*s;case"hex":return s>>>1;case"base64":return base64ToBytes(i).length;default:if(v)return utf8ToBytes(i).length;o=(""+o).toLowerCase(),v=!0}}function slowToString(i,o,s){var v=!1;if((void 0===o||o<0)&&(o=0),o>this.length)return"";if((void 0===s||s>this.length)&&(s=this.length),s<=0)return"";if((s>>>=0)<=(o>>>=0))return"";for(i||(i="utf8");;)switch(i){case"hex":return hexSlice(this,o,s);case"utf8":case"utf-8":return utf8Slice(this,o,s);case"ascii":return asciiSlice(this,o,s);case"latin1":case"binary":return latin1Slice(this,o,s);case"base64":return base64Slice(this,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,o,s);default:if(v)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),v=!0}}function swap(i,o,s){var v=i[o];i[o]=i[s],i[s]=v}function bidirectionalIndexOf(i,o,s,v,_){if(0===i.length)return-1;if("string"==typeof s?(v=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,isNaN(s)&&(s=_?0:i.length-1),s<0&&(s=i.length+s),s>=i.length){if(_)return-1;s=i.length-1}else if(s<0){if(!_)return-1;s=0}if("string"==typeof o&&(o=Buffer.from(o,v)),Buffer.isBuffer(o))return 0===o.length?-1:arrayIndexOf(i,o,s,v,_);if("number"==typeof o)return o&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?_?Uint8Array.prototype.indexOf.call(i,o,s):Uint8Array.prototype.lastIndexOf.call(i,o,s):arrayIndexOf(i,[o],s,v,_);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(i,o,s,v,_){var $,ae=1,pe=i.length,we=o.length;if(void 0!==v&&("ucs2"===(v=String(v).toLowerCase())||"ucs-2"===v||"utf16le"===v||"utf-16le"===v)){if(i.length<2||o.length<2)return-1;ae=2,pe/=2,we/=2,s/=2}function read(i,o){return 1===ae?i[o]:i.readUInt16BE(o*ae)}if(_){var _e=-1;for($=s;$pe&&(s=pe-we),$=s;$>=0;$--){for(var et=!0,tt=0;tt_&&(v=_):v=_;var $=o.length;if($%2!=0)throw new TypeError("Invalid hex string");v>$/2&&(v=$/2);for(var ae=0;ae239?4:_e>223?3:_e>191?2:1;if(_+tt<=s)switch(tt){case 1:_e<128&&(et=_e);break;case 2:128==(192&($=i[_+1]))&&(we=(31&_e)<<6|63&$)>127&&(et=we);break;case 3:$=i[_+1],ae=i[_+2],128==(192&$)&&128==(192&ae)&&(we=(15&_e)<<12|(63&$)<<6|63&ae)>2047&&(we<55296||we>57343)&&(et=we);break;case 4:$=i[_+1],ae=i[_+2],pe=i[_+3],128==(192&$)&&128==(192&ae)&&128==(192&pe)&&(we=(15&_e)<<18|(63&$)<<12|(63&ae)<<6|63&pe)>65535&&we<1114112&&(et=we)}null===et?(et=65533,tt=1):et>65535&&(et-=65536,v.push(et>>>10&1023|55296),et=56320|1023&et),v.push(et),_+=tt}return decodeCodePointsArray(v)}o.Buffer=Buffer,o.SlowBuffer=function SlowBuffer(i){+i!=i&&(i=0);return Buffer.alloc(+i)},o.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==i.TYPED_ARRAY_SUPPORT?i.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var i=new Uint8Array(1);return i.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===i.foo()&&"function"==typeof i.subarray&&0===i.subarray(1,1).byteLength}catch(i){return!1}}(),o.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(i){return i.__proto__=Buffer.prototype,i},Buffer.from=function(i,o,s){return from(null,i,o,s)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(i,o,s){return alloc(null,i,o,s)},Buffer.allocUnsafe=function(i){return allocUnsafe(null,i)},Buffer.allocUnsafeSlow=function(i){return allocUnsafe(null,i)},Buffer.isBuffer=function isBuffer(i){return!(null==i||!i._isBuffer)},Buffer.compare=function compare(i,o){if(!Buffer.isBuffer(i)||!Buffer.isBuffer(o))throw new TypeError("Arguments must be Buffers");if(i===o)return 0;for(var s=i.length,v=o.length,_=0,$=Math.min(s,v);_<$;++_)if(i[_]!==o[_]){s=i[_],v=o[_];break}return s0&&(i=this.toString("hex",0,s).match(/.{2}/g).join(" "),this.length>s&&(i+=" ... ")),""},Buffer.prototype.compare=function compare(i,o,s,v,_){if(!Buffer.isBuffer(i))throw new TypeError("Argument must be a Buffer");if(void 0===o&&(o=0),void 0===s&&(s=i?i.length:0),void 0===v&&(v=0),void 0===_&&(_=this.length),o<0||s>i.length||v<0||_>this.length)throw new RangeError("out of range index");if(v>=_&&o>=s)return 0;if(v>=_)return-1;if(o>=s)return 1;if(this===i)return 0;for(var $=(_>>>=0)-(v>>>=0),ae=(s>>>=0)-(o>>>=0),pe=Math.min($,ae),we=this.slice(v,_),_e=i.slice(o,s),et=0;et_)&&(s=_),i.length>0&&(s<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var $=!1;;)switch(v){case"hex":return hexWrite(this,i,o,s);case"utf8":case"utf-8":return utf8Write(this,i,o,s);case"ascii":return asciiWrite(this,i,o,s);case"latin1":case"binary":return latin1Write(this,i,o,s);case"base64":return base64Write(this,i,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,i,o,s);default:if($)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),$=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ae=4096;function decodeCodePointsArray(i){var o=i.length;if(o<=ae)return String.fromCharCode.apply(String,i);for(var s="",v=0;vv)&&(s=v);for(var _="",$=o;$s)throw new RangeError("Trying to access beyond buffer length")}function checkInt(i,o,s,v,_,$){if(!Buffer.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>_||o<$)throw new RangeError('"value" argument is out of bounds');if(s+v>i.length)throw new RangeError("Index out of range")}function objectWriteUInt16(i,o,s,v){o<0&&(o=65535+o+1);for(var _=0,$=Math.min(i.length-s,2);_<$;++_)i[s+_]=(o&255<<8*(v?_:1-_))>>>8*(v?_:1-_)}function objectWriteUInt32(i,o,s,v){o<0&&(o=4294967295+o+1);for(var _=0,$=Math.min(i.length-s,4);_<$;++_)i[s+_]=o>>>8*(v?_:3-_)&255}function checkIEEE754(i,o,s,v,_,$){if(s+v>i.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function writeFloat(i,o,s,v,$){return $||checkIEEE754(i,0,s,4),_.write(i,o,s,v,23,4),s+4}function writeDouble(i,o,s,v,$){return $||checkIEEE754(i,0,s,8),_.write(i,o,s,v,52,8),s+8}Buffer.prototype.slice=function slice(i,o){var s,v=this.length;if((i=~~i)<0?(i+=v)<0&&(i=0):i>v&&(i=v),(o=void 0===o?v:~~o)<0?(o+=v)<0&&(o=0):o>v&&(o=v),o0&&(_*=256);)v+=this[i+--o]*_;return v},Buffer.prototype.readUInt8=function readUInt8(i,o){return o||checkOffset(i,1,this.length),this[i]},Buffer.prototype.readUInt16LE=function readUInt16LE(i,o){return o||checkOffset(i,2,this.length),this[i]|this[i+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(i,o){return o||checkOffset(i,2,this.length),this[i]<<8|this[i+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(i,o){return o||checkOffset(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+16777216*this[i+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(i,o){return o||checkOffset(i,4,this.length),16777216*this[i]+(this[i+1]<<16|this[i+2]<<8|this[i+3])},Buffer.prototype.readIntLE=function readIntLE(i,o,s){i|=0,o|=0,s||checkOffset(i,o,this.length);for(var v=this[i],_=1,$=0;++$=(_*=128)&&(v-=Math.pow(2,8*o)),v},Buffer.prototype.readIntBE=function readIntBE(i,o,s){i|=0,o|=0,s||checkOffset(i,o,this.length);for(var v=o,_=1,$=this[i+--v];v>0&&(_*=256);)$+=this[i+--v]*_;return $>=(_*=128)&&($-=Math.pow(2,8*o)),$},Buffer.prototype.readInt8=function readInt8(i,o){return o||checkOffset(i,1,this.length),128&this[i]?-1*(255-this[i]+1):this[i]},Buffer.prototype.readInt16LE=function readInt16LE(i,o){o||checkOffset(i,2,this.length);var s=this[i]|this[i+1]<<8;return 32768&s?4294901760|s:s},Buffer.prototype.readInt16BE=function readInt16BE(i,o){o||checkOffset(i,2,this.length);var s=this[i+1]|this[i]<<8;return 32768&s?4294901760|s:s},Buffer.prototype.readInt32LE=function readInt32LE(i,o){return o||checkOffset(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(i,o){return o||checkOffset(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},Buffer.prototype.readFloatLE=function readFloatLE(i,o){return o||checkOffset(i,4,this.length),_.read(this,i,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(i,o){return o||checkOffset(i,4,this.length),_.read(this,i,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(i,o){return o||checkOffset(i,8,this.length),_.read(this,i,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(i,o){return o||checkOffset(i,8,this.length),_.read(this,i,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(i,o,s,v){(i=+i,o|=0,s|=0,v)||checkInt(this,i,o,s,Math.pow(2,8*s)-1,0);var _=1,$=0;for(this[o]=255&i;++$=0&&($*=256);)this[o+_]=i/$&255;return o+s},Buffer.prototype.writeUInt8=function writeUInt8(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(i=Math.floor(i)),this[o]=255&i,o+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=255&i,this[o+1]=i>>>8):objectWriteUInt16(this,i,o,!0),o+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>8,this[o+1]=255&i):objectWriteUInt16(this,i,o,!1),o+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o+3]=i>>>24,this[o+2]=i>>>16,this[o+1]=i>>>8,this[o]=255&i):objectWriteUInt32(this,i,o,!0),o+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>24,this[o+1]=i>>>16,this[o+2]=i>>>8,this[o+3]=255&i):objectWriteUInt32(this,i,o,!1),o+4},Buffer.prototype.writeIntLE=function writeIntLE(i,o,s,v){if(i=+i,o|=0,!v){var _=Math.pow(2,8*s-1);checkInt(this,i,o,s,_-1,-_)}var $=0,ae=1,pe=0;for(this[o]=255&i;++$>0)-pe&255;return o+s},Buffer.prototype.writeIntBE=function writeIntBE(i,o,s,v){if(i=+i,o|=0,!v){var _=Math.pow(2,8*s-1);checkInt(this,i,o,s,_-1,-_)}var $=s-1,ae=1,pe=0;for(this[o+$]=255&i;--$>=0&&(ae*=256);)i<0&&0===pe&&0!==this[o+$+1]&&(pe=1),this[o+$]=(i/ae>>0)-pe&255;return o+s},Buffer.prototype.writeInt8=function writeInt8(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(i=Math.floor(i)),i<0&&(i=255+i+1),this[o]=255&i,o+1},Buffer.prototype.writeInt16LE=function writeInt16LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=255&i,this[o+1]=i>>>8):objectWriteUInt16(this,i,o,!0),o+2},Buffer.prototype.writeInt16BE=function writeInt16BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>8,this[o+1]=255&i):objectWriteUInt16(this,i,o,!1),o+2},Buffer.prototype.writeInt32LE=function writeInt32LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=255&i,this[o+1]=i>>>8,this[o+2]=i>>>16,this[o+3]=i>>>24):objectWriteUInt32(this,i,o,!0),o+4},Buffer.prototype.writeInt32BE=function writeInt32BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>24,this[o+1]=i>>>16,this[o+2]=i>>>8,this[o+3]=255&i):objectWriteUInt32(this,i,o,!1),o+4},Buffer.prototype.writeFloatLE=function writeFloatLE(i,o,s){return writeFloat(this,i,o,!0,s)},Buffer.prototype.writeFloatBE=function writeFloatBE(i,o,s){return writeFloat(this,i,o,!1,s)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(i,o,s){return writeDouble(this,i,o,!0,s)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(i,o,s){return writeDouble(this,i,o,!1,s)},Buffer.prototype.copy=function copy(i,o,s,v){if(s||(s=0),v||0===v||(v=this.length),o>=i.length&&(o=i.length),o||(o=0),v>0&&v=this.length)throw new RangeError("sourceStart out of bounds");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),i.length-o=0;--_)i[_+o]=this[_+s];else if($<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(_=0;_<$;++_)i[_+o]=this[_+s];else Uint8Array.prototype.set.call(i,this.subarray(s,s+$),o);return $},Buffer.prototype.fill=function fill(i,o,s,v){if("string"==typeof i){if("string"==typeof o?(v=o,o=0,s=this.length):"string"==typeof s&&(v=s,s=this.length),1===i.length){var _=i.charCodeAt(0);_<256&&(i=_)}if(void 0!==v&&"string"!=typeof v)throw new TypeError("encoding must be a string");if("string"==typeof v&&!Buffer.isEncoding(v))throw new TypeError("Unknown encoding: "+v)}else"number"==typeof i&&(i&=255);if(o<0||this.length>>=0,s=void 0===s?this.length:s>>>0,i||(i=0),"number"==typeof i)for($=o;$55295&&s<57344){if(!_){if(s>56319){(o-=3)>-1&&$.push(239,191,189);continue}if(ae+1===v){(o-=3)>-1&&$.push(239,191,189);continue}_=s;continue}if(s<56320){(o-=3)>-1&&$.push(239,191,189),_=s;continue}s=65536+(_-55296<<10|s-56320)}else _&&(o-=3)>-1&&$.push(239,191,189);if(_=null,s<128){if((o-=1)<0)break;$.push(s)}else if(s<2048){if((o-=2)<0)break;$.push(s>>6|192,63&s|128)}else if(s<65536){if((o-=3)<0)break;$.push(s>>12|224,s>>6&63|128,63&s|128)}else{if(!(s<1114112))throw new Error("Invalid code point");if((o-=4)<0)break;$.push(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}}return $}function asciiToBytes(i){for(var o=[],s=0;s>8,_=s%256,$.push(_),$.push(v);return $}function base64ToBytes(i){return v.toByteArray(base64clean(i))}function blitBuffer(i,o,s,v){for(var _=0;_=o.length||_>=i.length);++_)o[_+s]=i[_];return _}}).call(this,s(23))},function(i,o,s){"use strict";o.byteLength=function byteLength(i){var o=getLens(i),s=o[0],v=o[1];return 3*(s+v)/4-v},o.toByteArray=function toByteArray(i){var o,s,v=getLens(i),ae=v[0],pe=v[1],we=new $(_byteLength(i,ae,pe)),_e=0,et=pe>0?ae-4:ae;for(s=0;s>16&255,we[_e++]=o>>8&255,we[_e++]=255&o;2===pe&&(o=_[i.charCodeAt(s)]<<2|_[i.charCodeAt(s+1)]>>4,we[_e++]=255&o);1===pe&&(o=_[i.charCodeAt(s)]<<10|_[i.charCodeAt(s+1)]<<4|_[i.charCodeAt(s+2)]>>2,we[_e++]=o>>8&255,we[_e++]=255&o);return we},o.fromByteArray=function fromByteArray(i){for(var o,s=i.length,_=s%3,$=[],ae=16383,pe=0,we=s-_;pewe?we:pe+ae));1===_?(o=i[s-1],$.push(v[o>>2]+v[o<<4&63]+"==")):2===_&&(o=(i[s-2]<<8)+i[s-1],$.push(v[o>>10]+v[o>>4&63]+v[o<<2&63]+"="));return $.join("")};for(var v=[],_=[],$="undefined"!=typeof Uint8Array?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pe=0;pe<64;++pe)v[pe]=ae[pe],_[ae.charCodeAt(pe)]=pe;function getLens(i){var o=i.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=i.indexOf("=");return-1===s&&(s=o),[s,s===o?0:4-s%4]}function _byteLength(i,o,s){return 3*(o+s)/4-s}function encodeChunk(i,o,s){for(var _,$,ae=[],pe=o;pe>18&63]+v[$>>12&63]+v[$>>6&63]+v[63&$]);return ae.join("")}_["-".charCodeAt(0)]=62,_["_".charCodeAt(0)]=63},function(i,o){o.read=function(i,o,s,v,_){var $,ae,pe=8*_-v-1,we=(1<>1,et=-7,tt=s?_-1:0,nt=s?-1:1,rt=i[o+tt];for(tt+=nt,$=rt&(1<<-et)-1,rt>>=-et,et+=pe;et>0;$=256*$+i[o+tt],tt+=nt,et-=8);for(ae=$&(1<<-et)-1,$>>=-et,et+=v;et>0;ae=256*ae+i[o+tt],tt+=nt,et-=8);if(0===$)$=1-_e;else{if($===we)return ae?NaN:1/0*(rt?-1:1);ae+=Math.pow(2,v),$-=_e}return(rt?-1:1)*ae*Math.pow(2,$-v)},o.write=function(i,o,s,v,_,$){var ae,pe,we,_e=8*$-_-1,et=(1<<_e)-1,tt=et>>1,nt=23===_?Math.pow(2,-24)-Math.pow(2,-77):0,rt=v?0:$-1,it=v?1:-1,ot=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(pe=isNaN(o)?1:0,ae=et):(ae=Math.floor(Math.log(o)/Math.LN2),o*(we=Math.pow(2,-ae))<1&&(ae--,we*=2),(o+=ae+tt>=1?nt/we:nt*Math.pow(2,1-tt))*we>=2&&(ae++,we/=2),ae+tt>=et?(pe=0,ae=et):ae+tt>=1?(pe=(o*we-1)*Math.pow(2,_),ae+=tt):(pe=o*Math.pow(2,tt-1)*Math.pow(2,_),ae=0));_>=8;i[s+rt]=255&pe,rt+=it,pe/=256,_-=8);for(ae=ae<<_|pe,_e+=_;_e>0;i[s+rt]=255&ae,rt+=it,ae/=256,_e-=8);i[s+rt-it]|=128*ot}},function(i,o){var s={}.toString;i.exports=Array.isArray||function(i){return"[object Array]"==s.call(i)}},function(i,o,s){(function(i,v){var _;(function(){"use strict";var $={function:!0,object:!0},ae=$[typeof window]&&window||this,pe=$[typeof o]&&o&&!o.nodeType&&o,we=$[typeof i]&&i&&!i.nodeType,_e=pe&&we&&"object"==typeof v&&v;!_e||_e.global!==_e&&_e.window!==_e&&_e.self!==_e||(ae=_e);var et=Object.prototype.hasOwnProperty;function fromCodePoint(){var i=Number(arguments[0]);if(!isFinite(i)||i<0||i>1114111||Math.floor(i)!=i)throw RangeError("Invalid code point: "+i);if(i<=65535)return String.fromCharCode(i);var o=55296+((i-=65536)>>10),s=i%1024+56320;return String.fromCharCode(o,s)}var tt={};function assertType(i,o){if(-1==o.indexOf("|")){if(i==o)return;throw Error("Invalid node type: "+i+"; expected type: "+o)}if(!(o=et.call(tt,o)?tt[o]:tt[o]=RegExp("^(?:"+o+")$")).test(i))throw Error("Invalid node type: "+i+"; expected types: "+o)}function generate(i){var o=i.type;if(et.call(nt,o))return nt[o](i);throw Error("Invalid node type: "+o)}function generateSequence(i,o){for(var s,v=-1,_=o.length,$="";++v<_;)s=o[v],v+1<_&&"value"==o[v].type&&"null"==o[v].kind&&"value"==o[v+1].type&&"symbol"==o[v+1].kind&&o[v+1].codePoint>=48&&o[v+1].codePoint<=57?$+="\\000":$+=i(s);return $}function generateAtom(i){return assertType(i.type,"anchor|characterClass|characterClassEscape|dot|group|reference|value"),generate(i)}function generateClassAtom(i){return assertType(i.type,"anchor|characterClassEscape|characterClassRange|dot|value"),generate(i)}function generateIdentifier(i){return assertType(i.type,"identifier"),i.value}function generateTerm(i){return assertType(i.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value|dot"),generate(i)}var nt={alternative:function generateAlternative(i){return assertType(i.type,"alternative"),generateSequence(generateTerm,i.body)},anchor:function generateAnchor(i){switch(assertType(i.type,"anchor"),i.kind){case"start":return"^";case"end":return"$";case"boundary":return"\\b";case"not-boundary":return"\\B";default:throw Error("Invalid assertion")}},characterClass:function generateCharacterClass(i){return assertType(i.type,"characterClass"),"["+(i.negative?"^":"")+generateSequence(generateClassAtom,i.body)+"]"},characterClassEscape:function generateCharacterClassEscape(i){return assertType(i.type,"characterClassEscape"),"\\"+i.value},characterClassRange:function generateCharacterClassRange(i){assertType(i.type,"characterClassRange");var o=i.min,s=i.max;if("characterClassRange"==o.type||"characterClassRange"==s.type)throw Error("Invalid character class range");return generateClassAtom(o)+"-"+generateClassAtom(s)},disjunction:function generateDisjunction(i){assertType(i.type,"disjunction");for(var o=i.body,s=-1,v=o.length,_="";++s");break;case"ignore":o+="?:";break;case"lookahead":o+="?=";break;case"negativeLookahead":o+="?!";break;case"lookbehind":o+="?<=";break;case"negativeLookbehind":o+="?";throw new Error("Unknown reference type")},unicodePropertyEscape:function generateUnicodePropertyEscape(i){return assertType(i.type,"unicodePropertyEscape"),"\\"+(i.negative?"P":"p")+"{"+i.value+"}"},value:function generateValue(i){assertType(i.type,"value");var o=i.kind,s=i.codePoint;if("number"!=typeof s)throw new Error("Invalid code point: "+s);switch(o){case"controlLetter":return"\\c"+fromCodePoint(s+64);case"hexadecimalEscape":return"\\x"+("00"+s.toString(16).toUpperCase()).slice(-2);case"identifier":return"\\"+fromCodePoint(s);case"null":return"\\"+s;case"octal":return"\\"+("000"+s.toString(8)).slice(-3);case"singleEscape":switch(s){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r";case 45:return"\\-";default:throw Error("Invalid code point: "+s)}case"symbol":return fromCodePoint(s);case"unicodeEscape":return"\\u"+("0000"+s.toString(16).toUpperCase()).slice(-4);case"unicodeCodePointEscape":return"\\u{"+s.toString(16).toUpperCase()+"}";default:throw Error("Unsupported node kind: "+o)}}},rt={generate:generate};void 0===(_=function(){return rt}.call(o,s,o,i))||(i.exports=_),ae.regjsgen=rt}).call(this)}).call(this,s(60)(i),s(23))},function(i,o,s){var v,_,$,ae;$=String.fromCodePoint||(v=String.fromCharCode,_=Math.floor,function fromCodePoint(){var i,o,s=[],$=-1,ae=arguments.length;if(!ae)return"";for(var pe="";++$1114111||_(we)!=we)throw RangeError("Invalid code point: "+we);we<=65535?s.push(we):(i=55296+((we-=65536)>>10),o=we%1024+56320,s.push(i,o)),($+1==ae||s.length>16384)&&(pe+=v.apply(null,s),s.length=0)}return pe}),ae={parse:function parse(i,o,s){function addRaw(o){return o.raw=i.substring(o.range[0],o.range[1]),o}function updateRawStart(i,o){return i.range[0]=o,addRaw(i)}function createAnchor(i,o){return addRaw({type:"anchor",kind:i,range:[we-o,we]})}function createValue(i,o,s,v){return addRaw({type:"value",kind:i,codePoint:o,range:[s,v]})}function createEscaped(i,o,s,v){return v=v||0,createValue(i,o,we-(s.length+v),we)}function createCharacter(i){var o,s=i[0],v=s.charCodeAt(0);return pe&&1===s.length&&v>=55296&&v<=56319&&(o=lookahead().charCodeAt(0))>=56320&&o<=57343?createValue("symbol",1024*(v-55296)+o-56320+65536,++we-2,we):createValue("symbol",v,we-1,we)}function createDisjunction(i,o,s){return addRaw({type:"disjunction",body:i,range:[o,s]})}function createNamedReference(i){return addRaw({type:"reference",name:i,range:[i.range[0]-3,we]})}function createGroup(i,o,s,v){return addRaw({type:"group",behavior:i,body:o,range:[s,v]})}function createQuantifier(i,o,s,v){return null==v&&(s=we-1,v=we),addRaw({type:"quantifier",min:i,max:o,greedy:!0,body:null,range:[s,v]})}function createAlternative(i,o,s){return addRaw({type:"alternative",body:i,range:[o,s]})}function createCharacterClass(i,o,s,v){return addRaw({type:"characterClass",body:i,negative:o,range:[s,v]})}function createClassRange(i,o,s,v){return i.codePoint>o.codePoint&&bail("invalid range in character class",i.raw+"-"+o.raw,s,v),addRaw({type:"characterClassRange",min:i,max:o,range:[s,v]})}function flattenBody(i){return"alternative"===i.type?i.body:[i]}function incr(o){o=o||1;var s=i.substring(we,we+o);return we+=o||1,s}function skip(i){match(i)||bail("character",i)}function match(o){if(i.indexOf(o,we)===we)return incr(o.length)}function lookahead(){return i[we]}function current(o){return i.indexOf(o,we)===we}function next(o){return i[we+1]===o}function matchReg(o){var s=i.substring(we).match(o);return s&&(s.range=[],s.range[0]=we,incr(s[0].length),s.range[1]=we),s}function parseDisjunction(){var i=[],o=we;for(i.push(parseAlternative());match("|");)i.push(parseAlternative());return 1===i.length?i[0]:createDisjunction(i,o,we)}function parseAlternative(){for(var i,o=[],s=we;i=parseTerm();)o.push(i);return 1===o.length?o[0]:createAlternative(o,s,we)}function parseTerm(){if(we>=i.length||current("|")||current(")"))return null;var o=match("^")?createAnchor("start",1):match("$")?createAnchor("end",1):match("\\b")?createAnchor("boundary",2):match("\\B")?createAnchor("not-boundary",2):parseGroup("(?=","lookahead","(?!","negativeLookahead");if(o)return o;var s,v=parseAtomAndExtendedAtom();return v||(pos_backup=we,(s=parseQuantifier()||!1)&&(we=pos_backup,bail("Expected atom")),!pe&&(res=matchReg(/^{/))?v=createCharacter(res):bail("Expected atom")),(s=parseQuantifier()||!1)?(s.body=flattenBody(v),updateRawStart(s,v.range[0]),s):v}function parseGroup(i,o,s,v){var _=null,$=we;if(match(i))_=o;else{if(!match(s))return!1;_=v}return finishGroup(_,$)}function finishGroup(i,o){var s=parseDisjunction();s||bail("Expected disjunction"),skip(")");var v=createGroup(i,flattenBody(s),o,we);return"normal"==i&&ae&&_++,v}function parseQuantifier(){var i,o,s,v,_=we;return match("*")?o=createQuantifier(0):match("+")?o=createQuantifier(1):match("?")?o=createQuantifier(0,1):(i=matchReg(/^\{([0-9]+)\}/))?o=createQuantifier(s=parseInt(i[1],10),s,i.range[0],i.range[1]):(i=matchReg(/^\{([0-9]+),\}/))?o=createQuantifier(s=parseInt(i[1],10),void 0,i.range[0],i.range[1]):(i=matchReg(/^\{([0-9]+),([0-9]+)\}/))&&((s=parseInt(i[1],10))>(v=parseInt(i[2],10))&&bail("numbers out of order in {} quantifier","",_,we),o=createQuantifier(s,v,i.range[0],i.range[1])),o&&match("?")&&(o.greedy=!1,o.range[1]+=1),o}function parseAtomAndExtendedAtom(){var i;if(i=matchReg(/^[^^$\\.*+?()[\]{}|]/))return createCharacter(i);if(!pe&&(i=matchReg(/^(?:]|})/)))return createCharacter(i);if(match("."))return addRaw({type:"dot",range:[we-1,we]});if(match("\\")){if(!(i=parseAtomEscape())){if(!pe&&"c"==lookahead())return createValue("symbol",92,we-1,we);bail("atomEscape")}return i}if(i=parseCharacterClass())return i;if(s.lookbehind&&(i=parseGroup("(?<=","lookbehind","(?");var v=finishGroup("normal",o.range[0]-3);return v.name=o,v}return parseGroup("(?:","ignore","(","normal")}function parseUnicodeSurrogatePairEscape(i){var o,s;if(pe&&"unicodeEscape"==i.kind&&(o=i.codePoint)>=55296&&o<=56319&¤t("\\")&&next("u")){var v=we;we++;var _=parseClassEscape();"unicodeEscape"==_.kind&&(s=_.codePoint)>=56320&&s<=57343?(i.range[1]=_.range[1],i.codePoint=1024*(o-55296)+s-56320+65536,i.type="value",i.kind="unicodeCodePointEscape",addRaw(i)):we=v}return i}function parseClassEscape(){return parseAtomEscape(!0)}function parseAtomEscape(i){var o,s=we;if(o=parseDecimalEscape()||parseNamedReference())return o;if(i){if(match("b"))return createEscaped("singleEscape",8,"\\b");if(match("B"))bail("\\B not possible inside of CharacterClass","",s);else{if(!pe&&(o=matchReg(/^c([0-9])/)))return createEscaped("controlLetter",o[1]+16,o[1],2);if(!pe&&(o=matchReg(/^c_/)))return createEscaped("controlLetter",31,"_",2)}if(pe&&match("-"))return createEscaped("singleEscape",45,"\\-")}return o=parseCharacterEscape()}function parseDecimalEscape(){var i,o,s;if(i=matchReg(/^(?!0)\d+/)){o=i[0];var $=parseInt(i[0],10);return $<=_?(s=i[0],addRaw({type:"reference",matchIndex:parseInt(s,10),range:[we-1-s.length,we]})):(v.push($),incr(-i[0].length),(i=matchReg(/^[0-7]{1,3}/))?createEscaped("octal",parseInt(i[0],8),i[0],1):updateRawStart(i=createCharacter(matchReg(/^[89]/)),i.range[0]-1))}return(i=matchReg(/^[0-7]{1,3}/))?(o=i[0],/^0{1,3}$/.test(o)?createEscaped("null",0,"0",o.length):createEscaped("octal",parseInt(o,8),o,1)):!!(i=matchReg(/^[dDsSwW]/))&&addRaw({type:"characterClassEscape",value:i[0],range:[we-2,we]})}function parseNamedReference(){if(s.namedGroups&&matchReg(/^k<(?=.*?>)/)){var i=parseIdentifier();return skip(">"),createNamedReference(i)}}function parseRegExpUnicodeEscapeSequence(){var i;return(i=matchReg(/^u([0-9a-fA-F]{4})/))?parseUnicodeSurrogatePairEscape(createEscaped("unicodeEscape",parseInt(i[1],16),i[1],2)):pe&&(i=matchReg(/^u\{([0-9a-fA-F]+)\}/))?createEscaped("unicodeCodePointEscape",parseInt(i[1],16),i[1],4):void 0}function parseCharacterEscape(){var i,o,v,_=we;if(i=matchReg(/^[fnrtv]/)){var $=0;switch(i[0]){case"t":$=9;break;case"n":$=10;break;case"v":$=11;break;case"f":$=12;break;case"r":$=13}return createEscaped("singleEscape",$,"\\"+i[0])}return(i=matchReg(/^c([a-zA-Z])/))?createEscaped("controlLetter",i[1].charCodeAt(0)%32,i[1],2):(i=matchReg(/^x([0-9a-fA-F]{2})/))?createEscaped("hexadecimalEscape",parseInt(i[1],16),i[1],2):(i=parseRegExpUnicodeEscapeSequence())?((!i||i.codePoint>1114111)&&bail("Invalid escape sequence",null,_,we),i):s.unicodePropertyEscape&&pe&&(i=matchReg(/^([pP])\{([^\}]+)\}/))?addRaw({type:"unicodePropertyEscape",negative:"P"===i[1],value:i[2],range:[i.range[0]-1,i.range[1]],raw:i[0]}):(v=lookahead(),pe&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(v)||!pe&&"c"!==v?"k"===v&&s.lookbehind?null:createEscaped("identifier",(o=incr()).charCodeAt(0),o,1):null)}function parseIdentifierAtom(o){var s=lookahead(),v=we;if("\\"===s){incr();var _=parseRegExpUnicodeEscapeSequence();return _&&o(_.codePoint)||bail("Invalid escape sequence",null,v,we),$(_.codePoint)}var ae=s.charCodeAt(0);if(ae>=55296&&ae<=56319){var pe=(s+=i[we+1]).charCodeAt(1);pe>=56320&&pe<=57343&&(ae=1024*(ae-55296)+pe-56320+65536)}if(o(ae))return incr(),ae>65535&&incr(),s}function parseIdentifier(){var i,o=we,s=parseIdentifierAtom(isIdentifierStart);for(s||bail("Invalid identifier");i=parseIdentifierAtom(isIdentifierPart);)s+=i;return addRaw({type:"identifier",value:s,range:[o,we]})}function isIdentifierStart(i){return 36===i||95===i||i>=65&&i<=90||i>=97&&i<=122||i>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test($(i))}function isIdentifierPart(i){return isIdentifierStart(i)||i>=48&&i<=57||i>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test($(i))}function parseCharacterClass(){var i,o=we;return(i=matchReg(/^\[\^/))?(i=parseClassRanges(),skip("]"),createCharacterClass(i,!0,o,we)):match("[")?(i=parseClassRanges(),skip("]"),createCharacterClass(i,!1,o,we)):null}function parseClassRanges(){var i,o;return current("]")?[]:((o=parseClassAtom())||bail("classAtom"),(i=current("]")?[o]:parseHelperClassRanges(o))||bail("nonEmptyClassRanges"),i)}function parseHelperClassRanges(i){var o,s,v,_,$;if(current("-")&&!next("]")){o=i.range[0],$=createCharacter(match("-")),(_=parseClassAtom())||bail("classAtom"),s=we;var ae=parseClassRanges();return ae||bail("classRanges"),"codePoint"in i&&"codePoint"in _?v=[createClassRange(i,_,o,s)]:pe?bail("invalid character class"):v=[i,$,_],"empty"===ae.type?v:v.concat(ae)}return(v=parseNonemptyClassRangesNoDash())||bail("nonEmptyClassRangesNoDash"),[i].concat(v)}function parseNonemptyClassRangesNoDash(){var i=parseClassAtom();return i||bail("classAtom"),current("]")?i:parseHelperClassRanges(i)}function parseClassAtom(){return match("-")?createCharacter("-"):parseClassAtomNoDash()}function parseClassAtomNoDash(){var i;return(i=matchReg(/^[^\\\]-]/))?createCharacter(i[0]):match("\\")?((i=parseClassEscape())||bail("classEscape"),parseUnicodeSurrogatePairEscape(i)):void 0}function bail(o,s,v,_){v=null==v?we:v,_=null==_?v:_;var $=Math.max(0,v-10),ae=Math.min(_+10,i.length),pe=" "+i.substring($,ae),_e=" "+new Array(v-$+1).join(" ")+"^";throw SyntaxError(o+" at position "+v+(s?": "+s:"")+"\n"+pe+"\n"+_e)}s||(s={});var v=[],_=0,ae=!0,pe=-1!==(o||"").indexOf("u"),we=0;""===(i=String(i))&&(i="(?:)");var _e=parseDisjunction();_e.range[1]!==i.length&&bail("Could not parse entire input - got stuck","",_e.range[1]);for(var et=0;et-1?pe[we?o[_e]:_e]:void 0}}},function(i,o,s){var v=s(820),_=s(127),$=s(821),ae=Math.max;i.exports=function findIndex(i,o,s){var pe=null==i?0:i.length;if(!pe)return-1;var we=null==s?0:$(s);return we<0&&(we=ae(pe+we,0)),v(i,_(o,3),we)}},function(i,o){i.exports=function baseFindIndex(i,o,s,v){for(var _=i.length,$=s+(v?1:-1);v?$--:++$<_;)if(o(i[$],$,i))return $;return-1}},function(i,o,s){var v=s(822);i.exports=function toInteger(i){var o=v(i),s=o%1;return o==o?s?o-s:o:0}},function(i,o,s){var v=s(195),_=1/0;i.exports=function toFinite(i){return i?(i=v(i))===_||i===-1/0?17976931348623157e292*(i<0?-1:1):i==i?i:0:0===i?i:0}},function(i,o,s){i.exports={config:{compilerConfig:{objectAssign:"Object.assign",target:{ie:11},transforms:{modules:!1,dangerousTaggedTemplateString:!0,asyncAwait:!1}},tocMode:"expand",mountPointId:"rsg-root",pagePerSection:!1,previewDelay:500,ribbon:void 0,showSidebar:!0,styles:{},theme:{},title:"Testable Webapp Style Guide",version:void 0},welcomeScreen:!1,patterns:void 0,sections:[{name:"User Interface",components:[{filepath:"src/components/ui/interface/achievement/AchievementContainer.tsx",slug:"achievementcontainer",pathLine:"src/components/ui/interface/achievement/AchievementContainer.tsx",module:s(71),props:s(832),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/achievement/AchievementItem.tsx",slug:"achievementitem",pathLine:"src/components/ui/interface/achievement/AchievementItem.tsx",module:s(73),props:s(834),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/achievement/AchievementList.tsx",slug:"achievementlist",pathLine:"src/components/ui/interface/achievement/AchievementList.tsx",module:s(72),props:s(836),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/background/Background.tsx",slug:"background",pathLine:"src/components/ui/interface/background/Background.tsx",module:s(838),props:s(843),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/editor-manager/EditorManager.tsx",slug:"editormanager",pathLine:"src/components/ui/interface/editor-manager/EditorManager.tsx",module:s(74),props:s(846),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/editor/Editor.tsx",slug:"editor",pathLine:"src/components/ui/interface/editor/Editor.tsx",module:s(104),props:s(848),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/guide/Guide.tsx",slug:"guide",pathLine:"src/components/ui/interface/guide/Guide.tsx",module:s(150),props:s(852),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/header/Header.tsx",slug:"header",pathLine:"src/components/ui/interface/header/Header.tsx",module:s(139),props:s(902),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/intro/Intro.tsx",slug:"intro",pathLine:"src/components/ui/interface/intro/Intro.tsx",module:s(145),props:s(907),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/language-selector/LanguageSelector.tsx",slug:"languageselector",pathLine:"src/components/ui/interface/language-selector/LanguageSelector.tsx",module:s(152),props:s(908),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/level/Level.tsx",slug:"level",pathLine:"src/components/ui/interface/level/Level.tsx",module:s(77),props:s(909),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/loading/Loading.tsx",slug:"loading",pathLine:"src/components/ui/interface/loading/Loading.tsx",module:s(83),props:s(911),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/modal/Modal.tsx",slug:"modal",pathLine:"src/components/ui/interface/modal/Modal.tsx",module:s(63),props:s(912),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/profile/container/Profile.tsx",slug:"profile",pathLine:"src/components/ui/interface/profile/container/Profile.tsx",module:s(75),props:s(913),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/profile/options/Options.tsx",slug:"options",pathLine:"src/components/ui/interface/profile/options/Options.tsx",module:s(151),props:s(915),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/ranking/Ranking.tsx",slug:"ranking",pathLine:"src/components/ui/interface/ranking/Ranking.tsx",module:s(142),props:s(916),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/rocket/Rocket.tsx",slug:"rocket",pathLine:"src/components/ui/interface/rocket/Rocket.tsx",module:s(955),props:s(918),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/scene-manager/Scene.tsx",slug:"scene",pathLine:"src/components/ui/interface/scene-manager/Scene.tsx",module:s(146),props:s(920),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/scene-manager/SceneContentManager.tsx",slug:"scenecontentmanager",pathLine:"src/components/ui/interface/scene-manager/SceneContentManager.tsx",module:s(921),props:s(922),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/scene-manager/SceneManager.tsx",slug:"scenemanager",pathLine:"src/components/ui/interface/scene-manager/SceneManager.tsx",module:s(147),props:s(923),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/sidebar/Sidebar.tsx",slug:"sidebar",pathLine:"src/components/ui/interface/sidebar/Sidebar.tsx",module:s(956),props:s(927),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/survey/index.tsx",slug:"survey",pathLine:"src/components/ui/interface/survey/index.tsx",module:s(143),props:s(928),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/survey/Survey.tsx",slug:"survey-1",pathLine:"src/components/ui/interface/survey/Survey.tsx",module:s(144),props:s(929),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/test-execution-animation/TestExecutionAnimation.tsx",slug:"testexecutionanimation",pathLine:"src/components/ui/interface/test-execution-animation/TestExecutionAnimation.tsx",module:s(930),props:s(932),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/text-keyboard-animation/AnimatedText.tsx",slug:"animatedtext",pathLine:"src/components/ui/interface/text-keyboard-animation/AnimatedText.tsx",module:s(82),props:s(933),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/text-keyboard-animation/TypedText.tsx",slug:"typedtext",pathLine:"src/components/ui/interface/text-keyboard-animation/TypedText.tsx",module:s(137),props:s(934),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/title/Title.tsx",slug:"title",pathLine:"src/components/ui/interface/title/Title.tsx",module:s(51),props:s(935),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/user-menu/UserMenu.tsx",slug:"usermenu",pathLine:"src/components/ui/interface/user-menu/UserMenu.tsx",module:s(140),props:s(937),hasExamples:!1,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-user-interface",sections:[],href:void 0,content:void 0},{name:"Icons",components:[{filepath:"src/components/ui/icons/Achievement.tsx",slug:"achievement",pathLine:"src/components/ui/icons/Achievement.tsx",module:s(79),props:s(938),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/Check.tsx",slug:"check",pathLine:"src/components/ui/icons/Check.tsx",module:s(149),props:s(939),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/Close.tsx",slug:"close",pathLine:"src/components/ui/icons/Close.tsx",module:s(80),props:s(940),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/Cup.tsx",slug:"cup",pathLine:"src/components/ui/icons/Cup.tsx",module:s(112),props:s(941),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/load/Load.tsx",slug:"load",pathLine:"src/components/ui/icons/load/Load.tsx",module:s(76),props:s(942),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/icons/Next.tsx",slug:"next",pathLine:"src/components/ui/icons/Next.tsx",module:s(138),props:s(944),hasExamples:!1,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-icons",sections:[],href:void 0,content:void 0},{name:"Images",components:[{filepath:"src/components/ui/images/alien/AlienSvg.tsx",slug:"aliensvg",pathLine:"src/components/ui/images/alien/AlienSvg.tsx",module:s(78),props:s(945),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/images/buggy/Buggy.tsx",slug:"buggy",pathLine:"src/components/ui/images/buggy/Buggy.tsx",module:s(30),props:s(947),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/images/logo/Logo.tsx",slug:"logo",pathLine:"src/components/ui/images/logo/Logo.tsx",module:s(148),props:s(948),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/images/profile/PlaceholderImage.tsx",slug:"placeholderimage",pathLine:"src/components/ui/images/profile/PlaceholderImage.tsx",module:s(141),props:s(949),hasExamples:!1,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-images",sections:[],href:void 0,content:void 0},{name:"Buttons",components:[{filepath:"src/components/ui/buttons/debug/Debug.tsx",slug:"debug",pathLine:"src/components/ui/buttons/debug/Debug.tsx",module:s(21),props:s(950),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/buttons/primary/Primary.tsx",slug:"primary",pathLine:"src/components/ui/buttons/primary/Primary.tsx",module:s(40),props:s(952),hasExamples:!0,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-buttons",sections:[],href:void 0,content:void 0}]}},function(i,o,s){"use strict";s(66);var v=s(0),_=60103;if(o.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var $=Symbol.for;_=$("react.element"),o.Fragment=$("react.fragment")}var ae=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pe=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0};function q(i,o,s){var v,$={},_e=null,et=null;for(v in void 0!==s&&(_e=""+s),void 0!==o.key&&(_e=""+o.key),void 0!==o.ref&&(et=o.ref),o)pe.call(o,v)&&!we.hasOwnProperty(v)&&($[v]=o[v]);if(i&&i.defaultProps)for(v in o=i.defaultProps)void 0===$[v]&&($[v]=o[v]);return{$$typeof:_,type:i,key:_e,ref:et,props:$,_owner:ae.current}}o.jsx=q,o.jsxs=q},function(i,o,s){var v={EventEmitter:s(826),EmitterSubscription:s(196)};i.exports=v},function(i,o,s){"use strict";var v=s(196),_=s(828),$=s(197),ae=s(829),pe=function(){function BaseEventEmitter(){this._subscriber=new _,this._currentSubscription=null}var i=BaseEventEmitter.prototype;return i.addListener=function addListener(i,o,s){return this._subscriber.addSubscription(i,new v(this._subscriber,o,s))},i.once=function once(i,o,s){var v=this;return this.addListener(i,(function(){v.removeCurrentListener(),o.apply(s,arguments)}))},i.removeAllListeners=function removeAllListeners(i){this._subscriber.removeAllSubscriptions(i)},i.removeCurrentListener=function removeCurrentListener(){this._currentSubscription||$(!1),this._subscriber.removeSubscription(this._currentSubscription)},i.listeners=function listeners(i){var o=this._subscriber.getSubscriptionsForType(i);return o?o.filter(ae.thatReturnsTrue).map((function(i){return i.listener})):[]},i.emit=function emit(i){var o=this._subscriber.getSubscriptionsForType(i);if(o){for(var s=Object.keys(o),v=0;v(v.default.isString(i)&&(i={min:i}),v.default.isArray(i)||(i=[i]),(0,v.default)(i).filter((i=>v.default.has(i,"min")||v.default.has(i,"min-width"))).map((i=>v.default.get(i,"min-width",i.min))).value()))));var pe;const we=v.default.map(ae,(i=>({["@media (min-width: ".concat(i,")")]:{".container":{"max-width":i}}})));s([{".container":Object.assign({width:"100%"},v.default.get(i,"center",!1)?{marginRight:"auto",marginLeft:"auto"}:{},v.default.has(i,"padding")?{paddingRight:i.padding,paddingLeft:i.padding}:{})},...we])}}},,,,,,,,function(i,o,s){"use strict";i.exports=s(840)},function(i,o,s){"use strict";var v="function"==typeof Symbol&&Symbol.for,_=v?Symbol.for("react.element"):60103,$=v?Symbol.for("react.portal"):60106,ae=v?Symbol.for("react.fragment"):60107,pe=v?Symbol.for("react.strict_mode"):60108,we=v?Symbol.for("react.profiler"):60114,_e=v?Symbol.for("react.provider"):60109,et=v?Symbol.for("react.context"):60110,tt=v?Symbol.for("react.async_mode"):60111,nt=v?Symbol.for("react.concurrent_mode"):60111,rt=v?Symbol.for("react.forward_ref"):60112,it=v?Symbol.for("react.suspense"):60113,ot=v?Symbol.for("react.suspense_list"):60120,st=v?Symbol.for("react.memo"):60115,dt=v?Symbol.for("react.lazy"):60116,ut=v?Symbol.for("react.block"):60121,lt=v?Symbol.for("react.fundamental"):60117,ct=v?Symbol.for("react.responder"):60118,ht=v?Symbol.for("react.scope"):60119;function z(i){if("object"==typeof i&&null!==i){var o=i.$$typeof;switch(o){case _:switch(i=i.type){case tt:case nt:case ae:case we:case pe:case it:return i;default:switch(i=i&&i.$$typeof){case et:case rt:case dt:case st:case _e:return i;default:return o}}case $:return o}}}function A(i){return z(i)===nt}o.AsyncMode=tt,o.ConcurrentMode=nt,o.ContextConsumer=et,o.ContextProvider=_e,o.Element=_,o.ForwardRef=rt,o.Fragment=ae,o.Lazy=dt,o.Memo=st,o.Portal=$,o.Profiler=we,o.StrictMode=pe,o.Suspense=it,o.isAsyncMode=function(i){return A(i)||z(i)===tt},o.isConcurrentMode=A,o.isContextConsumer=function(i){return z(i)===et},o.isContextProvider=function(i){return z(i)===_e},o.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===_},o.isForwardRef=function(i){return z(i)===rt},o.isFragment=function(i){return z(i)===ae},o.isLazy=function(i){return z(i)===dt},o.isMemo=function(i){return z(i)===st},o.isPortal=function(i){return z(i)===$},o.isProfiler=function(i){return z(i)===we},o.isStrictMode=function(i){return z(i)===pe},o.isSuspense=function(i){return z(i)===it},o.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===ae||i===nt||i===we||i===pe||i===it||i===ot||"object"==typeof i&&null!==i&&(i.$$typeof===dt||i.$$typeof===st||i.$$typeof===_e||i.$$typeof===et||i.$$typeof===rt||i.$$typeof===lt||i.$$typeof===ct||i.$$typeof===ht||i.$$typeof===ut)},o.typeOf=z},function(i,o,s){"use strict";var v=60103,_=60106,$=60107,ae=60108,pe=60114,we=60109,_e=60110,et=60112,tt=60113,nt=60120,rt=60115,it=60116,ot=60121,st=60122,dt=60117,ut=60129,lt=60131;if("function"==typeof Symbol&&Symbol.for){var ct=Symbol.for;v=ct("react.element"),_=ct("react.portal"),$=ct("react.fragment"),ae=ct("react.strict_mode"),pe=ct("react.profiler"),we=ct("react.provider"),_e=ct("react.context"),et=ct("react.forward_ref"),tt=ct("react.suspense"),nt=ct("react.suspense_list"),rt=ct("react.memo"),it=ct("react.lazy"),ot=ct("react.block"),st=ct("react.server.block"),dt=ct("react.fundamental"),ut=ct("react.debug_trace_mode"),lt=ct("react.legacy_hidden")}function y(i){if("object"==typeof i&&null!==i){var o=i.$$typeof;switch(o){case v:switch(i=i.type){case $:case pe:case ae:case tt:case nt:return i;default:switch(i=i&&i.$$typeof){case _e:case et:case it:case rt:case we:return i;default:return o}}case _:return o}}}var ht=we,pt=v,ft=et,gt=$,mt=it,yt=rt,vt=_,Rt=pe,bt=ae,Ot=tt;o.ContextConsumer=_e,o.ContextProvider=ht,o.Element=pt,o.ForwardRef=ft,o.Fragment=gt,o.Lazy=mt,o.Memo=yt,o.Portal=vt,o.Profiler=Rt,o.StrictMode=bt,o.Suspense=Ot,o.isAsyncMode=function(){return!1},o.isConcurrentMode=function(){return!1},o.isContextConsumer=function(i){return y(i)===_e},o.isContextProvider=function(i){return y(i)===we},o.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===v},o.isForwardRef=function(i){return y(i)===et},o.isFragment=function(i){return y(i)===$},o.isLazy=function(i){return y(i)===it},o.isMemo=function(i){return y(i)===rt},o.isPortal=function(i){return y(i)===_},o.isProfiler=function(i){return y(i)===pe},o.isStrictMode=function(i){return y(i)===ae},o.isSuspense=function(i){return y(i)===tt},o.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===$||i===pe||i===ut||i===ae||i===tt||i===nt||i===lt||"object"==typeof i&&null!==i&&(i.$$typeof===it||i.$$typeof===rt||i.$$typeof===we||i.$$typeof===_e||i.$$typeof===et||i.$$typeof===dt||i.$$typeof===ot||i[0]===st)},o.typeOf=y},,,,,,,,,function(i,o,s){"use strict";var v=s(66),_=s(0);function p(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,s=1;smt;mt++)gt[mt]=mt+1;gt[15]=0;var yt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vt=Object.prototype.hasOwnProperty,Rt={},bt={};function sa(i){return!!vt.call(bt,i)||!vt.call(Rt,i)&&(yt.test(i)?bt[i]=!0:(Rt[i]=!0,!1))}function ta(i,o,s,v){if(null!==s&&0===s.type)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return!v&&(null!==s?!s.acceptsBooleans:"data-"!==(i=i.toLowerCase().slice(0,5))&&"aria-"!==i);default:return!1}}function ua(i,o,s,v){if(null==o||ta(i,o,s,v))return!0;if(v)return!1;if(null!==s)switch(s.type){case 3:return!o;case 4:return!1===o;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function M(i,o,s,v,_,$,ae){this.acceptsBooleans=2===o||3===o||4===o,this.attributeName=v,this.attributeNamespace=_,this.mustUseProperty=s,this.propertyName=i,this.type=o,this.sanitizeURL=$,this.removeEmptyString=ae}var Ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(i){Ot[i]=new M(i,0,!1,i,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(i){var o=i[0];Ot[o]=new M(o,1,!1,i[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(i){Ot[i]=new M(i,2,!1,i.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(i){Ot[i]=new M(i,2,!1,i,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(i){Ot[i]=new M(i,3,!1,i.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(i){Ot[i]=new M(i,3,!0,i,null,!1,!1)})),["capture","download"].forEach((function(i){Ot[i]=new M(i,4,!1,i,null,!1,!1)})),["cols","rows","size","span"].forEach((function(i){Ot[i]=new M(i,6,!1,i,null,!1,!1)})),["rowSpan","start"].forEach((function(i){Ot[i]=new M(i,5,!1,i.toLowerCase(),null,!1,!1)}));var xt=/[\-:]([a-z])/g;function wa(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(i){var o=i.replace(xt,wa);Ot[o]=new M(o,1,!1,i,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(i){var o=i.replace(xt,wa);Ot[o]=new M(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(i){var o=i.replace(xt,wa);Ot[o]=new M(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(i){Ot[i]=new M(i,1,!1,i.toLowerCase(),null,!1,!1)})),Ot.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(i){Ot[i]=new M(i,1,!1,i.toLowerCase(),null,!0,!0)}));var wt=/["'&<>]/;function O(i){if("boolean"==typeof i||"number"==typeof i)return""+i;i=""+i;var o=wt.exec(i);if(o){var s,v="",_=0;for(s=o.index;sPt))throw Error(p(301));if(i===St)if(At=!0,i={action:s,next:null},null===Dt&&(Dt=new Map),void 0===(s=Dt.get(o)))Dt.set(o,i);else{for(o=s;null!==o.next;)o=o.next;o.next=i}}function Ja(){}var Tt=null,It={readContext:function(i){var o=Tt.threadID;return I(i,o),i[o]},useContext:function(i){W();var o=Tt.threadID;return I(i,o),i[o]},useMemo:Ia,useReducer:Ga,useRef:function(i){St=W();var o=(Et=Ca()).memoizedState;return null===o?(i={current:i},Et.memoizedState=i):o},useState:function(i){return Ga(Fa,i)},useLayoutEffect:function(){},useCallback:function(i,o){return Ia((function(){return i}),o)},useImperativeHandle:Ja,useEffect:Ja,useDebugValue:Ja,useDeferredValue:function(i){return W(),i},useTransition:function(){return W(),[function(i){i()},!1]},useOpaqueIdentifier:function(){return(Tt.identifierPrefix||"")+"R:"+(Tt.uniqueID++).toString(36)},useMutableSource:function(i,o){return W(),o(i._source)}},Ft="http://www.w3.org/1999/xhtml";function Ma(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Nt={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Bt=v({menuitem:!0},Nt),Lt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jt=["Webkit","ms","Moz","O"];Object.keys(Lt).forEach((function(i){jt.forEach((function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),Lt[o]=Lt[i]}))}));var Mt=/([A-Z])/g,Qt=/^ms-/,Vt=_.Children.toArray,Ut=pt.ReactCurrentDispatcher,Wt={listing:!0,pre:!0,textarea:!0},$t=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,qt={},zt={};function Xa(i){if(null==i)return i;var o="";return _.Children.forEach(i,(function(i){null!=i&&(o+=i)})),o}var Zt=Object.prototype.hasOwnProperty,Ht={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function $a(i,o){if(void 0===i)throw Error(p(152,F(o)||"Component"))}function ab(i,o,s){function d(_,$){var ae=$.prototype&&$.prototype.isReactComponent,pe=na($,o,s,ae),we=[],_e=!1,et={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===we)return null},enqueueReplaceState:function(i,o){_e=!0,we=[o]},enqueueSetState:function(i,o){if(null===we)return null;we.push(o)}};if(ae){if(ae=new $(_.props,pe,et),"function"==typeof $.getDerivedStateFromProps){var tt=$.getDerivedStateFromProps.call(null,_.props,ae.state);null!=tt&&(ae.state=v({},ae.state,tt))}}else if(St={},ae=$(_.props,pe,et),null==(ae=Da($,_.props,ae,pe))||null==ae.render)return void $a(i=ae,$);if(ae.props=_.props,ae.context=pe,ae.updater=et,void 0===(et=ae.state)&&(ae.state=et=null),"function"==typeof ae.UNSAFE_componentWillMount||"function"==typeof ae.componentWillMount)if("function"==typeof ae.componentWillMount&&"function"!=typeof $.getDerivedStateFromProps&&ae.componentWillMount(),"function"==typeof ae.UNSAFE_componentWillMount&&"function"!=typeof $.getDerivedStateFromProps&&ae.UNSAFE_componentWillMount(),we.length){et=we;var nt=_e;if(we=null,_e=!1,nt&&1===et.length)ae.state=et[0];else{tt=nt?et[0]:ae.state;var rt=!0;for(nt=nt?1:0;nt=pe))throw Error(p(304));var we=new Uint16Array(pe);for(we.set($),(gt=we)[0]=v+1,$=v;$=ae.children.length){var pe=ae.footer;if(""!==pe&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===ae.type)this.currentSelectValue=null;else if(null!=ae.type&&null!=ae.type.type&&ae.type.type.$$typeof===_e)this.popProvider(ae.type);else if(ae.type===nt){this.suspenseDepth--;var we=v.pop();if(_){_=!1;var et=ae.fallbackFrame;if(!et)throw Error(p(303));this.stack.push(et),v[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}v[this.suspenseDepth]+=we}v[this.suspenseDepth]+=pe}else{var tt=ae.children[ae.childIndex++],rt="";try{rt+=this.render(tt,ae.context,ae.domNamespace)}catch(i){if(null!=i&&"function"==typeof i.then)throw Error(p(294));throw i}v.length<=this.suspenseDepth&&v.push(""),v[this.suspenseDepth]+=rt}}return v[0]}finally{Ut.current=s,Tt=o,Ea()}},i.render=function(i,o,s){if("string"==typeof i||"number"==typeof i)return""===(s=""+i)?"":this.makeStaticMarkup?O(s):this.previousWasTextNode?"\x3c!-- --\x3e"+O(s):(this.previousWasTextNode=!0,O(s));if(i=(o=ab(i,o,this.threadID)).child,o=o.context,null===i||!1===i)return"";if(!_.isValidElement(i)){if(null!=i&&null!=i.$$typeof){if((s=i.$$typeof)===$)throw Error(p(257));throw Error(p(258,s.toString()))}return i=Vt(i),this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),""}var st=i.type;if("string"==typeof st)return this.renderDOM(i,o,s);switch(st){case ct:case lt:case pe:case we:case rt:case ae:return i=Vt(i.props.children),this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),"";case nt:throw Error(p(294));case ut:throw Error(p(343))}if("object"==typeof st&&null!==st)switch(st.$$typeof){case tt:St={};var ht=st.render(i.props,i.ref);return ht=Da(st.render,i.props,ht,i.ref),ht=Vt(ht),this.stack.push({type:null,domNamespace:s,children:ht,childIndex:0,context:o,footer:""}),"";case it:return i=[_.createElement(st.type,v({ref:i.ref},i.props))],this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),"";case _e:return s={type:i,domNamespace:s,children:st=Vt(i.props.children),childIndex:0,context:o,footer:""},this.pushProvider(i),this.stack.push(s),"";case et:st=i.type,ht=i.props;var pt=this.threadID;return I(st,pt),st=Vt(ht.children(st[pt])),this.stack.push({type:i,domNamespace:s,children:st,childIndex:0,context:o,footer:""}),"";case dt:throw Error(p(338));case ot:return st=(ht=(st=i.type)._init)(st._payload),i=[_.createElement(st,v({ref:i.ref},i.props))],this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),""}throw Error(p(130,null==st?st:typeof st,""))},i.renderDOM=function(i,o,s){var _=i.type.toLowerCase();if(s===Ft&&Ma(_),!qt.hasOwnProperty(_)){if(!$t.test(_))throw Error(p(65,_));qt[_]=!0}var $=i.props;if("input"===_)$=v({type:void 0},$,{defaultChecked:void 0,defaultValue:void 0,value:null!=$.value?$.value:$.defaultValue,checked:null!=$.checked?$.checked:$.defaultChecked});else if("textarea"===_){var ae=$.value;if(null==ae){ae=$.defaultValue;var pe=$.children;if(null!=pe){if(null!=ae)throw Error(p(92));if(Array.isArray(pe)){if(!(1>=pe.length))throw Error(p(93));pe=pe[0]}ae=""+pe}null==ae&&(ae="")}$=v({},$,{value:void 0,children:""+ae})}else if("select"===_)this.currentSelectValue=null!=$.value?$.value:$.defaultValue,$=v({},$,{value:void 0});else if("option"===_){pe=this.currentSelectValue;var we=Xa($.children);if(null!=pe){var _e=null!=$.value?$.value+"":we;if(ae=!1,Array.isArray(pe)){for(var et=0;et":(lt+=">",ae="");e:{if(null!=(pe=$.dangerouslySetInnerHTML)){if(null!=pe.__html){pe=pe.__html;break e}}else if("string"==typeof(pe=$.children)||"number"==typeof pe){pe=O(pe);break e}pe=null}return null!=pe?($=[],Wt.hasOwnProperty(_)&&"\n"===pe.charAt(0)&&(lt+="\n"),lt+=pe):$=Vt($.children),i=i.type,s=null==s||"http://www.w3.org/1999/xhtml"===s?Ma(i):"http://www.w3.org/2000/svg"===s&&"foreignObject"===i?"http://www.w3.org/1999/xhtml":s,this.stack.push({domNamespace:s,type:_,children:$,childIndex:0,context:o,footer:ae}),this.previousWasTextNode=!1,lt},a}();o.renderToNodeStream=function(){throw Error(p(207))},o.renderToStaticMarkup=function(i,o){i=new Gt(i,!0,o);try{return i.read(1/0)}finally{i.destroy()}},o.renderToStaticNodeStream=function(){throw Error(p(208))},o.renderToString=function(i,o){i=new Gt(i,!1,o);try{return i.read(1/0)}finally{i.destroy()}},o.version="17.0.2"},,,function(i,o,s){"use strict";var v=_interopRequireDefault(s(854)),_=_interopRequireDefault(s(859)),$=_interopRequireDefault(s(200)),ae=_interopRequireDefault(s(198));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}i.exports={Transition:ae.default,TransitionGroup:$.default,ReplaceTransition:_.default,CSSTransition:v.default}},function(i,o,s){"use strict";o.__esModule=!0,o.default=void 0;(function _interopRequireWildcard(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var v=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(i,s):{};v.get||v.set?Object.defineProperty(o,s,v):o[s]=i[s]}return o.default=i,o})(s(2));var v=_interopRequireDefault(s(855)),_=_interopRequireDefault(s(858)),$=_interopRequireDefault(s(0)),ae=_interopRequireDefault(s(198));s(199);function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _extends(){return _extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var ae=function(i){var o,s;function ReplaceTransition(){for(var o,s=arguments.length,v=new Array(s),_=0;_0&&0===(ut-=1)&&et.show(s),o.props.shouldFocusAfterRender&&(o.props.shouldReturnFocusAfterClose?(we.returnFocus(o.props.preventScroll),we.teardownScopedFocus()):we.popWithoutFocus()),o.props.onAfterClose&&o.props.onAfterClose(),it.default.deregister(o)},o.open=function(){o.beforeOpen(),o.state.afterOpen&&o.state.beforeClose?(clearTimeout(o.closeTimer),o.setState({beforeClose:!1})):(o.props.shouldFocusAfterRender&&(we.setupScopedFocus(o.node),we.markForFocusLater()),o.setState({isOpen:!0},(function(){o.openAnimationFrame=requestAnimationFrame((function(){o.setState({afterOpen:!0}),o.props.isOpen&&o.props.onAfterOpen&&o.props.onAfterOpen({overlayEl:o.overlay,contentEl:o.content})}))})))},o.close=function(){o.props.closeTimeoutMS>0?o.closeWithTimeout():o.closeWithoutTimeout()},o.focusContent=function(){return o.content&&!o.contentHasFocus()&&o.content.focus({preventScroll:!0})},o.closeWithTimeout=function(){var i=Date.now()+o.props.closeTimeoutMS;o.setState({beforeClose:!0,closesAt:i},(function(){o.closeTimer=setTimeout(o.closeWithoutTimeout,o.state.closesAt-Date.now())}))},o.closeWithoutTimeout=function(){o.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},o.afterClose)},o.handleKeyDown=function(i){st(i)&&(0,_e.default)(o.content,i),o.props.shouldCloseOnEsc&&dt(i)&&(i.stopPropagation(),o.requestClose(i))},o.handleOverlayOnClick=function(i){null===o.shouldClose&&(o.shouldClose=!0),o.shouldClose&&o.props.shouldCloseOnOverlayClick&&(o.ownerHandlesClose()?o.requestClose(i):o.focusContent()),o.shouldClose=null},o.handleContentOnMouseUp=function(){o.shouldClose=!1},o.handleOverlayOnMouseDown=function(i){o.props.shouldCloseOnOverlayClick||i.target!=o.overlay||i.preventDefault()},o.handleContentOnClick=function(){o.shouldClose=!1},o.handleContentOnMouseDown=function(){o.shouldClose=!1},o.requestClose=function(i){return o.ownerHandlesClose()&&o.props.onRequestClose(i)},o.ownerHandlesClose=function(){return o.props.onRequestClose},o.shouldBeClosed=function(){return!o.state.isOpen&&!o.state.beforeClose},o.contentHasFocus=function(){return document.activeElement===o.content||o.content.contains(document.activeElement)},o.buildClassName=function(i,s){var v="object"===(void 0===s?"undefined":_(s))?s:{base:ot[i],afterOpen:ot[i]+"--after-open",beforeClose:ot[i]+"--before-close"},$=v.base;return o.state.afterOpen&&($=$+" "+v.afterOpen),o.state.beforeClose&&($=$+" "+v.beforeClose),"string"==typeof s&&s?$+" "+s:$},o.attributesFromObject=function(i,o){return Object.keys(o).reduce((function(s,v){return s[i+"-"+v]=o[v],s}),{})},o.state={afterOpen:!1,beforeClose:!1},o.shouldClose=null,o.moveFromContentToOverlay=null,o}return _inherits(ModalPortal,i),$(ModalPortal,[{key:"componentDidMount",value:function componentDidMount(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function componentDidUpdate(i,o){this.props.isOpen&&!i.isOpen?this.open():!this.props.isOpen&&i.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!o.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function beforeOpen(){var i=this.props,o=i.appElement,s=i.ariaHideApp,v=i.htmlOpenClassName,_=i.bodyOpenClassName,$=i.parentSelector,ae=$&&$().ownerDocument||document;_&&tt.add(ae.body,_),v&&tt.add(ae.getElementsByTagName("html")[0],v),s&&(ut+=1,et.hide(o)),it.default.register(this)}},{key:"render",value:function render(){var i=this.props,o=i.id,s=i.className,_=i.overlayClassName,$=i.defaultStyles,ae=i.children,pe=s?{}:$.content,we=_?{}:$.overlay;if(this.shouldBeClosed())return null;var _e={ref:this.setOverlayRef,className:this.buildClassName("overlay",_),style:v({},we,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},et=v({id:o,ref:this.setContentRef,style:v({},pe,this.props.style.content),className:this.buildClassName("content",s),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",v({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),tt=this.props.contentElement(et,ae);return this.props.overlayElement(_e,tt)}}]),ModalPortal}(ae.Component);lt.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},lt.propTypes={isOpen:pe.default.bool.isRequired,defaultStyles:pe.default.shape({content:pe.default.object,overlay:pe.default.object}),style:pe.default.shape({content:pe.default.object,overlay:pe.default.object}),className:pe.default.oneOfType([pe.default.string,pe.default.object]),overlayClassName:pe.default.oneOfType([pe.default.string,pe.default.object]),parentSelector:pe.default.func,bodyOpenClassName:pe.default.string,htmlOpenClassName:pe.default.string,ariaHideApp:pe.default.bool,appElement:pe.default.oneOfType([pe.default.instanceOf(rt.default),pe.default.instanceOf(nt.SafeHTMLCollection),pe.default.instanceOf(nt.SafeNodeList),pe.default.arrayOf(pe.default.instanceOf(rt.default))]),onAfterOpen:pe.default.func,onAfterClose:pe.default.func,onRequestClose:pe.default.func,closeTimeoutMS:pe.default.number,shouldFocusAfterRender:pe.default.bool,shouldCloseOnOverlayClick:pe.default.bool,shouldReturnFocusAfterClose:pe.default.bool,preventScroll:pe.default.bool,role:pe.default.string,contentLabel:pe.default.string,aria:pe.default.object,data:pe.default.object,children:pe.default.node,shouldCloseOnEsc:pe.default.bool,overlayRef:pe.default.func,contentRef:pe.default.func,id:pe.default.string,overlayElement:pe.default.func,contentElement:pe.default.func,testId:pe.default.string},o.default=lt,i.exports=o.default},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){_=[]},o.log=function log(){0},o.handleBlur=handleBlur,o.handleFocus=handleFocus,o.markForFocusLater=function markForFocusLater(){_.push(document.activeElement)},o.returnFocus=function returnFocus(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=null;try{return void(0!==_.length&&(o=_.pop()).focus({preventScroll:i}))}catch(i){console.warn(["You tried to return focus to",o,"but it is not in the DOM anymore"].join(" "))}},o.popWithoutFocus=function popWithoutFocus(){_.length>0&&_.pop()},o.setupScopedFocus=function setupScopedFocus(i){$=i,window.addEventListener?(window.addEventListener("blur",handleBlur,!1),document.addEventListener("focus",handleFocus,!0)):(window.attachEvent("onBlur",handleBlur),document.attachEvent("onFocus",handleFocus))},o.teardownScopedFocus=function teardownScopedFocus(){$=null,window.addEventListener?(window.removeEventListener("blur",handleBlur),document.removeEventListener("focus",handleFocus)):(window.detachEvent("onBlur",handleBlur),document.detachEvent("onFocus",handleFocus))};var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(202));var _=[],$=null,ae=!1;function handleBlur(){ae=!0}function handleFocus(){if(ae){if(ae=!1,!$)return;setTimeout((function(){$.contains(document.activeElement)||((0,v.default)($)[0]||$).focus()}),0)}}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function scopeTab(i,o){var s=(0,v.default)(i);if(!s.length)return void o.preventDefault();var _=void 0,$=o.shiftKey,ae=s[0],pe=s[s.length-1],we=getActiveElement();if(i===we){if(!$)return;_=pe}pe!==we||$||(_=ae);ae===we&&$&&(_=pe);if(_)return o.preventDefault(),void _.focus();var _e=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==_e||"Chrome"==_e[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var et=s.indexOf(we);et>-1&&(et+=$?-1:1);if(void 0===(_=s[et]))return o.preventDefault(),void(_=$?pe:ae).focus();o.preventDefault(),_.focus()};var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(202));function getActiveElement(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return i.activeElement.shadowRoot?getActiveElement(i.activeElement.shadowRoot):i.activeElement}i.exports=o.default},function(i,o,s){"use strict";var warning=function(){};i.exports=warning},function(i,o,s){var v;!function(){"use strict";var _=!("undefined"==typeof window||!window.document||!window.document.createElement),$={canUseDOM:_,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:_&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:_&&!!window.screen};void 0===(v=function(){return $}.call(o,s,o,i))||(i.exports=v)}()},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){var i=document.getElementsByTagName("html")[0];for(var o in v)removeClass(i,v[o]);var s=document.body;for(var $ in _)removeClass(s,_[$]);v={},_={}},o.log=function log(){0};var v={},_={};function removeClass(i,o){i.classList.remove(o)}var $=function incrementReference(i,o){return i[o]||(i[o]=0),i[o]+=1,o},ae=function decrementReference(i,o){return i[o]&&(i[o]-=1),o},pe=function trackClass(i,o,s){s.forEach((function(s){$(o,s),i.add(s)}))},we=function untrackClass(i,o,s){s.forEach((function(s){ae(o,s),0===o[s]&&i.remove(s)}))};o.add=function add(i,o){return pe(i.classList,"html"==i.nodeName.toLowerCase()?v:_,o.split(" "))},o.remove=function remove(i,o){return we(i.classList,"html"==i.nodeName.toLowerCase()?v:_,o.split(" "))}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){for(var i=[_,$],o=0;o0?(document.body.firstChild!==_&&document.body.insertBefore(_,document.body.firstChild),document.body.lastChild!==$&&document.body.appendChild($)):(_.parentElement&&_.parentElement.removeChild(_),$.parentElement&&$.parentElement.removeChild($))}))},,function(i,o,s){"use strict";s.r(o);s(888)},function(i,o,s){"use strict";(function(i){var o=s(13);(function(){var s,v="function"==typeof Object.defineProperties?Object.defineProperty:function(i,o,s){i!=Array.prototype&&i!=Object.prototype&&(i[o]=s.value)};var _=function ba(o){o=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof i&&i,o];for(var s=0;s>>0),et=0;function sa(i,o,s){return i.call.apply(i.bind,arguments)}function ta(i,o,s){if(!i)throw Error();if(2i.b&&(i.b++,o.next=i.a,i.a=o)}function Ja(){this.b=this.a=null}nt=Ca("__EID__")?"__EID__":void 0,r(u,Error),u.prototype.name="CustomError",r(Fa,u),Fa.prototype.name="AssertionError",Ha.prototype.get=function(){if(0o?null:"string"==typeof i?i.charAt(o):i[o]}function Va(i,o){return 0<=dt(i,o)}function Wa(i,o){var s;return(s=0<=(o=dt(i,o)))&&Array.prototype.splice.call(i,o,1),s}function Xa(i,o){Pa(i,(function(s,v){o.call(void 0,s,v,i)&&1==Array.prototype.splice.call(i,v,1).length&&0}))}function Ya(i){return Array.prototype.concat.apply([],arguments)}function Za(i){var o=i.length;if(0/g,vt=/"/g,Rt=/'/g,bt=/\x00/g,Ot=/[\x00&<>"']/;function x(i,o){return-1!=i.indexOf(o)}function hb(i,o){return io?1:0}e:{var xt=ae.navigator;if(xt){var wt=xt.userAgent;if(wt){pt=wt;break e}}pt=""}function y(i){return x(pt,i)}function lb(i,o){for(var s in i)o.call(void 0,i[s],s,i)}function mb(i){for(var o in i)return!1;return!0}function nb(i){var o,s={};for(o in i)s[o]=i[o];return s}var Ct="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function z(i,o){for(var s,v,_=1;_"}else $=void 0===i?"undefined":null===i?"null":typeof i;Ga("Argument is not a %s (or a non-Element, non-Location mock); got: %s",o,$)}}function qb(i,o){this.a=i===Et&&o||"",this.b=_t}function tb(i){return i instanceof qb&&i.constructor===qb&&i.b===_t?i.a:(Ga("expected object of type Const, got '"+i+"'"),"type_error:Const")}qb.prototype.ta=!0,qb.prototype.sa=function(){return this.a},qb.prototype.toString=function(){return"Const{"+this.a+"}"};var St,_t={},Et={};function vb(){if(void 0===St){var i=null,o=ae.trustedTypes;if(o&&o.createPolicy){try{i=o.createPolicy("goog#html",{createHTML:wa,createScript:wa,createScriptURL:wa})}catch(i){ae.console&&ae.console.error(i.message)}St=i}else St=i}return St}function wb(i,o){this.a=o===Dt?i:""}function yb(i){return i instanceof wb&&i.constructor===wb?i.a:(Ga("expected object of type TrustedResourceUrl, got '"+i+"' of type "+ma(i)),"type_error:TrustedResourceUrl")}function zb(i,o){var s=tb(i);if(!At.test(s))throw Error("Invalid TrustedResourceUrl format: "+s);return Cb(i=s.replace(kt,(function(i,v){if(!Object.prototype.hasOwnProperty.call(o,v))throw Error('Found marker, "'+v+'", in format string, "'+s+'", but no valid label mapping found in args: '+JSON.stringify(o));return(i=o[v])instanceof qb?tb(i):encodeURIComponent(String(i))})))}wb.prototype.ta=!0,wb.prototype.sa=function(){return this.a.toString()},wb.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var kt=/%{(\w+)}/g,At=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Dt={};function Cb(i){var o=vb();return new wb(i=o?o.createScriptURL(i):i,Dt)}function C(i,o){this.a=o===Ft?i:""}function Eb(i){return i instanceof C&&i.constructor===C?i.a:(Ga("expected object of type SafeUrl, got '"+i+"' of type "+ma(i)),"type_error:SafeUrl")}C.prototype.ta=!0,C.prototype.sa=function(){return this.a.toString()},C.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Pt=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Tt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,It=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ib(i){if(i instanceof C)return i;if(i="object"==typeof i&&i.ta?i.sa():String(i),It.test(i))i=new C(i,Ft);else{var o=(i=(i=String(i)).replace(/(%0A|%0D)/g,"")).match(Tt);i=o&&Pt.test(o[1])?new C(i,Ft):null}return i}function Jb(i){return i instanceof C?i:(i="object"==typeof i&&i.ta?i.sa():String(i),It.test(i)||(i="about:invalid#zClosurez"),new C(i,Ft))}var Ft={},Nt=new C("about:invalid#zClosurez",Ft);function Lb(i,o,s){this.a=s===Bt?i:""}function Nb(i){return i instanceof Lb&&i.constructor===Lb?i.a:(Ga("expected object of type SafeHtml, got '"+i+"' of type "+ma(i)),"type_error:SafeHtml")}Lb.prototype.ta=!0,Lb.prototype.sa=function(){return this.a.toString()},Lb.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Bt={};function Ob(i,o){pb(i,"HTMLScriptElement"),i.src=yb(o),(o=i.ownerDocument&&i.ownerDocument.defaultView)&&o!=ae?o=ka(o.document):(null===we&&(we=ka(ae.document)),o=we),o&&i.setAttribute("nonce",o)}function Pb(i,o,s,v){return i=i instanceof C?i:Jb(i),o=o||ae,s=s instanceof qb?tb(s):s||"",o.open(Eb(i),s,v,void 0)}function Qb(i,o){for(var s=i.split("%s"),v="",_=Array.prototype.slice.call(arguments,1);_.length&&1")&&(i=i.replace(yt,">")),-1!=i.indexOf('"')&&(i=i.replace(vt,""")),-1!=i.indexOf("'")&&(i=i.replace(Rt,"'")),-1!=i.indexOf("\0")&&(i=i.replace(bt,"�"))),i}function Sb(i){return Sb[" "](i),i}function Tb(i,o){var s=Gt;return Object.prototype.hasOwnProperty.call(s,i)?s[i]:s[i]=o(i)}Sb[" "]=la;var Lt,jt,Mt=y("Opera"),Qt=y("Trident")||y("MSIE"),Vt=y("Edge"),Ut=Vt||Qt,Wt=y("Gecko")&&!(x(pt.toLowerCase(),"webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),$t=x(pt.toLowerCase(),"webkit")&&!y("Edge");function ac(){var i=ae.document;return i?i.documentMode:void 0}e:{var qt="",zt=(jt=pt,Wt?/rv:([^\);]+)(\)|;)/.exec(jt):Vt?/Edge\/([\d\.]+)/.exec(jt):Qt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(jt):$t?/WebKit\/(\S+)/.exec(jt):Mt?/(?:Version)[ \/]?(\S+)/.exec(jt):void 0);if(zt&&(qt=zt?zt[1]:""),Qt){var Zt=ac();if(null!=Zt&&Zt>parseFloat(qt)){Lt=String(Zt);break e}}Lt=qt}var Ht,Gt={};function fc(i){return Tb(i,(function(){for(var o=0,s=ft(String(Lt)).split("."),v=ft(String(i)).split("."),_=Math.max(s.length,v.length),$=0;0==o&&$<_;$++){var ae=s[$]||"",pe=v[$]||"";do{if(ae=/(\d*)(\D*)(.*)/.exec(ae)||["","","",""],pe=/(\d*)(\D*)(.*)/.exec(pe)||["","","",""],0==ae[0].length&&0==pe[0].length)break;o=hb(0==ae[1].length?0:parseInt(ae[1],10),0==pe[1].length?0:parseInt(pe[1],10))||hb(0==ae[2].length,0==pe[2].length)||hb(ae[2],pe[2]),ae=ae[3],pe=pe[3]}while(0==o)}return 0<=o}))}if(ae.document&&Qt){var Xt=ac();Ht=Xt||(parseInt(Lt,10)||void 0)}else Ht=void 0;var Yt=Ht;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(jt){}var Kt=!Qt||9<=Number(Yt);function kc(i){var o=document;return"string"==typeof i?o.getElementById(i):i}function lc(i,o){lb(o,(function(o,s){o&&"object"==typeof o&&o.ta&&(o=o.sa()),"style"==s?i.style.cssText=o:"class"==s?i.className=o:"for"==s?i.htmlFor=o:_n.hasOwnProperty(s)?i.setAttribute(_n[s],o):0==s.lastIndexOf("aria-",0)||0==s.lastIndexOf("data-",0)?i.setAttribute(s,o):i[s]=o}))}var Jt,nn,_n={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function nc(i,o,s){var v=arguments,_=document,$=String(v[0]),ae=v[1];if(!Kt&&ae&&(ae.name||ae.type)){if($=["<",$],ae.name&&$.push(' name="',Rb(ae.name),'"'),ae.type){$.push(' type="',Rb(ae.type),'"');var pe={};z(pe,ae),delete pe.type,ae=pe}$.push(">"),$=$.join("")}return $=oc(_,$),ae&&("string"==typeof ae?$.className=ae:Array.isArray(ae)?$.className=ae.join(" "):lc($,ae)),2=i.keyCode)&&(i.keyCode=-1)}catch(i){}},bd.prototype.g=function(){return this.a};var tr="closure_listenable_"+(1e6*Math.random()|0),nr=0;function fd(i,o,s,v,_){this.listener=i,this.proxy=null,this.src=o,this.type=s,this.capture=!!v,this.Wa=_,this.key=++nr,this.wa=this.Qa=!1}function gd(i){i.wa=!0,i.listener=null,i.proxy=null,i.src=null,i.Wa=null}function hd(i){this.src=i,this.a={},this.b=0}function jd(i,o){var s=o.type;s in i.a&&Wa(i.a[s],o)&&(gd(o),0==i.a[s].length&&(delete i.a[s],i.b--))}function id(i,o,s,v){for(var _=0;_v.keyCode||null!=v.returnValue)){e:{var _=!1;if(0==v.keyCode)try{v.keyCode=-1;break e}catch(i){_=!0}(_||null==v.returnValue)&&(v.returnValue=!0)}for(v=[],_=o.b;_;_=_.parentNode)v.push(_);for(i=i.type,_=v.length-1;0<=_;_--){o.b=v[_];var $=zd(v[_],i,!0,o);s=s&&$}for(_=0;_>>0);function pd(i){return oa(i)?i:(i[ir]||(i[ir]=function(o){return i.handleEvent(o)}),i[ir])}function H(){Uc.call(this),this.v=new hd(this),this.bc=this,this.hb=null}function qd(i,o,s,v,_){i.v.add(String(o),s,!1,v,_)}function wd(i,o,s,v,_){i.v.add(String(o),s,!0,v,_)}function Dd(i,o,s,v){if(!(o=i.v.a[String(o)]))return!0;o=o.concat();for(var _=!0,$=0;$o)throw Error("Bad port number "+o);i.g=o}else i.g=null}function Rd(i,o,s){o instanceof Ud?(i.b=o,$d(i.b,i.i)):(s||(o=Vd(o,lr)),i.b=new Ud(o,i.i))}function I(i,o,s){i.b.set(o,s)}function be(i,o){return i.b.get(o)}function J(i){return i instanceof Od?new Od(i):new Od(i,void 0)}function ce(i,o,s,v){var _=new Od(null,void 0);return i&&Pd(_,i),o&&(_.a=o),s&&Qd(_,s),v&&(_.f=v),_}function Td(i,o){return i?o?decodeURI(i.replace(/%25/g,"%2525")):decodeURIComponent(i):""}function Vd(i,o,s){return"string"==typeof i?(i=encodeURI(i).replace(o,de),s&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function de(i){return"%"+((i=i.charCodeAt(0))>>4&15).toString(16)+(15&i).toString(16)}Od.prototype.toString=function(){var i=[],o=this.c;o&&i.push(Vd(o,sr,!0),":");var s=this.a;return(s||"file"==o)&&(i.push("//"),(o=this.l)&&i.push(Vd(o,sr,!0),"@"),i.push(encodeURIComponent(String(s)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(s=this.g)&&i.push(":",String(s))),(s=this.f)&&(this.a&&"/"!=s.charAt(0)&&i.push("/"),i.push(Vd(s,"/"==s.charAt(0)?ur:dr,!0))),(s=this.b.toString())&&i.push("?",s),(s=this.h)&&i.push("#",Vd(s,cr)),i.join("")},Od.prototype.resolve=function(i){var o=new Od(this),s=!!i.c;s?Pd(o,i.c):s=!!i.l,s?o.l=i.l:s=!!i.a,s?o.a=i.a:s=null!=i.g;var v=i.f;if(s)Qd(o,i.g);else if(s=!!i.f){if("/"!=v.charAt(0))if(this.a&&!this.f)v="/"+v;else{var _=o.f.lastIndexOf("/");-1!=_&&(v=o.f.substr(0,_+1)+v)}if(".."==(_=v)||"."==_)v="";else if(x(_,"./")||x(_,"/.")){v=0==_.lastIndexOf("/",0),_=_.split("/");for(var $=[],ae=0;ae<_.length;){var pe=_[ae++];"."==pe?v&&ae==_.length&&$.push(""):".."==pe?((1<$.length||1==$.length&&""!=$[0])&&$.pop(),v&&ae==_.length&&$.push("")):($.push(pe),v=!0)}v=$.join("/")}else v=_}return s?o.f=v:s=""!==i.b.toString(),s?Rd(o,Sd(i.b)):s=!!i.h,s&&(o.h=i.h),o};var sr=/[#\/\?@]/g,dr=/[#\?:]/g,ur=/[#\?]/g,lr=/[#\?@]/g,cr=/#/g;function Ud(i,o){this.b=this.a=null,this.c=i||null,this.f=!!o}function ee(i){i.a||(i.a=new Jd,i.b=0,i.c&&Nd(i.c,(function(o,s){i.add(decodeURIComponent(o.replace(/\+/g," ")),s)})))}function fe(i){var o=Hd(i);if(void 0===o)throw Error("Keys are undefined");var s=new Ud(null,void 0);i=Gd(i);for(var v=0;v2*i.c&&Kd(i)))}function je(i,o){return ee(i),o=he(i,o),Ld(i.a.b,o)}function ge(i,o,s){ie(i,o),0i)&&(!Qt||!Yt||9',i=new Lb(i=(v=vb())?v.createHTML(i):i,null,Bt),v=ae.document)&&(v.write(Nb(i)),v.close())):(ae=Pb(o,v,s,ae))&&i.noopener&&(ae.opener=null),ae)try{ae.focus()}catch(i){}return ae}function Be(i){return new D((function(o){return function c(){Fd(2e3).then((function(){if(i&&!i.closed)return c();o()}))}()}))}var fr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,gr=/^[^@]+@[^@]+$/;function Ee(){var i=null;return new D((function(o){"complete"==ae.document.readyState?o():(i=function(){o()},od(window,"load",i))})).o((function(o){throw xd(window,"load",i),o}))}function Ge(i){return i=i||K(),!("file:"!==He()&&"ionic:"!==He()||!i.toLowerCase().match(/iphone|ipad|ipod|android/))}function Ie(){var i=ae.window;try{return!(!i||i==i.top)}catch(i){return!1}}function Je(){return void 0!==ae.WorkerGlobalScope&&"function"==typeof ae.importScripts}function Ke(){return o.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":o.a.INTERNAL.hasOwnProperty("node")?"Node":Je()?"Worker":"Browser"}function Le(){var i=Ke();return"ReactNative"===i||"Node"===i}function Me(){for(var i=50,o=[];0o)throw Error("Short delay should be less than long delay!");this.a=i,this.c=o,i=K(),o=Ke(),this.b=xe(i)||"ReactNative"===o}function $e(){var i=ae.document;return!i||void 0===i.visibilityState||"visible"==i.visibilityState}function af(){var i=ae.document,o=null;return $e()||!i?E():new D((function(s){o=function(){$e()&&(i.removeEventListener("visibilitychange",o,!1),s())},i.addEventListener("visibilitychange",o,!1)})).o((function(s){throw i.removeEventListener("visibilitychange",o,!1),s}))}function bf(i){try{var o=new Date(parseInt(i,10));if(!isNaN(o.getTime())&&!/[^0-9]/.test(i))return o.toUTCString()}catch(i){}return null}function cf(){return!(!L("fireauth.oauthhelper",ae)&&!L("fireauth.iframe",ae))}function df(){var i=ae.navigator;return i&&i.serviceWorker&&i.serviceWorker.controller||null}function ef(){var i=ae.navigator;return i&&i.serviceWorker?E().then((function(){return i.serviceWorker.ready})).then((function(i){return i.active||null})).o((function(){return null})):E(null)}Ze.prototype.get=function(){var i=ae.navigator;return!i||"boolean"!=typeof i.onLine||!Se()&&"chrome-extension:"!==He()&&void 0===i.connection||i.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Rr,br={};function gf(i){br[i]||(br[i]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(i))}try{var Or={};Object.defineProperty(Or,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Or,"abcd",{configurable:!0,enumerable:!0,value:2}),Rr=2==Or.abcd}catch(jt){Rr=!1}function M(i,o,s){Rr?Object.defineProperty(i,o,{configurable:!0,enumerable:!0,value:s}):i[o]=s}function N(i,o){if(o)for(var s in o)o.hasOwnProperty(s)&&M(i,s,o[s])}function kf(i){var o={};return N(o,i),o}function lf(i){var o,s={};for(o in i)i.hasOwnProperty(o)&&(s[o]=i[o]);return s}function mf(i,o){if(!o||!o.length)return!0;if(!i)return!1;for(var s=0;s>4),64!=$&&(o(_<<4&240|$>>2),64!=ae&&o($<<6&192|ae))}}function gg(){if(!Ei){Ei={};for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),o=["+/=","+/","-_=","-_.","-_"],s=0;5>s;s++)for(var v=i.concat(o[s].split("")),_=0;_this.a?this.a:i),this.b=o.provider_id||o.firebase&&o.firebase.sign_in_provider||null,this.f=o.firebase&&o.firebase.tenant||null,this.c=!!o.is_anonymous||"anonymous"==this.b}function jg(i){try{return new hg(i)}catch(i){return null}}function ig(i){if(!i)return null;if(3!=(i=i.split(".")).length)return null;for(var o=(4-(i=i[1]).length%4)%4,s=0;s_)i[s++]=String.fromCharCode(_);else if(191<_&&224>_){var $=v[o++];i[s++]=String.fromCharCode((31&_)<<6|63&$)}else if(239<_&&365>_){$=v[o++];var ae=v[o++],pe=((7&_)<<18|(63&$)<<12|(63&ae)<<6|63&v[o++])-65536;i[s++]=String.fromCharCode(55296+(pe>>10)),i[s++]=String.fromCharCode(56320+(1023&pe))}else $=v[o++],ae=v[o++],i[s++]=String.fromCharCode((15&_)<<12|(63&$)<<6|63&ae)}return JSON.parse(i.join(""))}catch(i){}return null}hg.prototype.T=function(){return this.f},hg.prototype.l=function(){return this.c},hg.prototype.toString=function(){return this.h};var Ui="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Ji=["client_id","response_type","scope","redirect_uri","state"],no={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:Ji},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:Ji},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:Ji},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:Ui},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function ng(i){for(var o in no)if(no[o].fa==i)return no[o];return null}function og(i){var o={};o["facebook.com"]=pg,o["google.com"]=qg,o["github.com"]=rg,o["twitter.com"]=sg;var s=i&&i[oo];try{if(s)return o[s]?new o[s](i):new ug(i);if(void 0!==i[io])return new wg(i)}catch(i){}return null}var io="idToken",oo="providerId";function wg(i){var o=i[oo];if(!o&&i[io]){var s=jg(i[io]);s&&s.b&&(o=s.b)}if(!o)throw Error("Invalid additional user info!");"anonymous"!=o&&"custom"!=o||(o=null),s=!1,void 0!==i.isNewUser?s=!!i.isNewUser:"identitytoolkit#SignupNewUserResponse"===i.kind&&(s=!0),M(this,"providerId",o),M(this,"isNewUser",s)}function ug(i){wg.call(this,i),M(this,"profile",nf((i=We(i.rawUserInfo||"{}"))||{}))}function pg(i){if(ug.call(this,i),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function rg(i){if(ug.call(this,i),"github.com"!=this.providerId)throw Error("Invalid provider ID!");M(this,"username",this.profile&&this.profile.login||null)}function qg(i){if(ug.call(this,i),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function sg(i){if(ug.call(this,i),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");M(this,"username",i.screenName||null)}function xg(i){var o=J(i),s=be(o,"link"),v=be(J(s),"link");return o=be(o,"deep_link_id"),be(J(o),"link")||o||v||s||i}function yg(i,o){if(!i&&!o)throw new t("internal-error","Internal assert: no raw session string available");if(i&&o)throw new t("internal-error","Internal assert: unable to determine the session type");this.a=i||null,this.b=o||null,this.type=this.a?mo:Ro}r(ug,wg),r(pg,ug),r(rg,ug),r(qg,ug),r(sg,ug);var mo="enroll",Ro="signin";function Bg(){}function Cg(i,o){return i.then((function(i){if(i[Qo]){var s=jg(i[Qo]);if(!s||o!=s.i)throw new t("user-mismatch");return i}throw new t("user-mismatch")})).o((function(i){throw i&&i.code&&i.code==rt+"user-not-found"?new t("user-mismatch"):i}))}function Eg(i,o){if(!o)throw new t("internal-error","failed to construct a credential");this.a=o,M(this,"providerId",i),M(this,"signInMethod",i)}function Gg(i){return{pendingToken:i.a,requestUri:"http://localhost"}}function Jg(i){if(i&&i.providerId&&i.signInMethod&&0==i.providerId.indexOf("saml.")&&i.pendingToken)try{return new Eg(i.providerId,i.pendingToken)}catch(i){}return null}function Kg(i,o,s){if(this.a=null,o.idToken||o.accessToken)o.idToken&&M(this,"idToken",o.idToken),o.accessToken&&M(this,"accessToken",o.accessToken),o.nonce&&!o.pendingToken&&M(this,"nonce",o.nonce),o.pendingToken&&(this.a=o.pendingToken);else{if(!o.oauthToken||!o.oauthTokenSecret)throw new t("internal-error","failed to construct a credential");M(this,"accessToken",o.oauthToken),M(this,"secret",o.oauthTokenSecret)}M(this,"providerId",i),M(this,"signInMethod",s)}function Lg(i){var o={};return i.idToken&&(o.id_token=i.idToken),i.accessToken&&(o.access_token=i.accessToken),i.secret&&(o.oauth_token_secret=i.secret),o.providerId=i.providerId,i.nonce&&!i.a&&(o.nonce=i.nonce),o={postBody:fe(o).toString(),requestUri:"http://localhost"},i.a&&(delete o.postBody,o.pendingToken=i.a),o}function Mg(i){if(i&&i.providerId&&i.signInMethod){var o={idToken:i.oauthIdToken,accessToken:i.oauthTokenSecret?null:i.oauthAccessToken,oauthTokenSecret:i.oauthTokenSecret,oauthToken:i.oauthTokenSecret&&i.oauthAccessToken,nonce:i.nonce,pendingToken:i.pendingToken};try{return new Kg(i.providerId,o,i.signInMethod)}catch(i){}}return null}function Ng(i,o){this.Qc=o||[],N(this,{providerId:i,isOAuthProvider:!0}),this.Jb={},this.qb=(ng(i)||{}).Ja||null,this.pb=null}function Og(i){if("string"!=typeof i||0!=i.indexOf("saml."))throw new t("argument-error",'SAML provider IDs must be prefixed with "saml."');Ng.call(this,i,[])}function Pg(i){Ng.call(this,i,Ji),this.a=[]}function Qg(){Pg.call(this,"facebook.com")}function Rg(i){if(!i)throw new t("argument-error","credential failed: expected 1 argument (the OAuth access token).");var o=i;return n(i)&&(o=i.accessToken),(new Qg).credential({accessToken:o})}function Sg(){Pg.call(this,"github.com")}function Tg(i){if(!i)throw new t("argument-error","credential failed: expected 1 argument (the OAuth access token).");var o=i;return n(i)&&(o=i.accessToken),(new Sg).credential({accessToken:o})}function Ug(){Pg.call(this,"google.com"),this.Ca("profile")}function Vg(i,o){var s=i;return n(i)&&(s=i.idToken,o=i.accessToken),(new Ug).credential({idToken:s,accessToken:o})}function Wg(){Ng.call(this,"twitter.com",Ui)}function Xg(i,o){var s=i;if(n(s)||(s={oauthToken:i,oauthTokenSecret:o}),!s.oauthToken||!s.oauthTokenSecret)throw new t("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Kg("twitter.com",s,"twitter.com")}function Yg(i,o,s){this.a=i,this.f=o,M(this,"providerId","password"),M(this,"signInMethod",s===Zg.EMAIL_LINK_SIGN_IN_METHOD?Zg.EMAIL_LINK_SIGN_IN_METHOD:Zg.EMAIL_PASSWORD_SIGN_IN_METHOD)}function dh(i){return i&&i.email&&i.password?new Yg(i.email,i.password,i.signInMethod):null}function Zg(){N(this,{providerId:"password",isOAuthProvider:!1})}function eh(i,o){if(!(o=fh(o)))throw new t("argument-error","Invalid email link!");return new Yg(i,o.code,Zg.EMAIL_LINK_SIGN_IN_METHOD)}function fh(i){return(i=Rf(i=xg(i)))&&i.operation===Er?i:null}function gh(i){if(!(i.fb&&i.eb||i.La&&i.ea))throw new t("internal-error");this.a=i,M(this,"providerId","phone"),this.fa="phone",M(this,"signInMethod","phone")}function kh(i){if(i&&"phone"===i.providerId&&(i.verificationId&&i.verificationCode||i.temporaryProof&&i.phoneNumber)){var o={};return ut(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(s){i[s]&&(o[s]=i[s])})),new gh(o)}return null}function hh(i){return i.a.La&&i.a.ea?{temporaryProof:i.a.La,phoneNumber:i.a.ea}:{sessionInfo:i.a.fb,code:i.a.eb}}function lh(i){try{this.a=i||o.a.auth()}catch(i){throw new t("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}N(this,{providerId:"phone",isOAuthProvider:!1})}function ph(i,o){if(!i)throw new t("missing-verification-id");if(!o)throw new t("missing-verification-code");return new gh({fb:i,eb:o})}function qh(i){if(i.temporaryProof&&i.phoneNumber)return new gh({La:i.temporaryProof,ea:i.phoneNumber});var o=i&&i.providerId;if(!o||"password"===o)return null;var s=i&&i.oauthAccessToken,v=i&&i.oauthTokenSecret,_=i&&i.nonce,$=i&&i.oauthIdToken,ae=i&&i.pendingToken;try{switch(o){case"google.com":return Vg($,s);case"facebook.com":return Rg(s);case"github.com":return Tg(s);case"twitter.com":return Xg(s,v);default:return s||v||$||ae?ae?0==o.indexOf("saml.")?new Eg(o,ae):new Kg(o,{pendingToken:ae,idToken:i.oauthIdToken,accessToken:i.oauthAccessToken},o):new Pg(o).credential({idToken:$,accessToken:s,rawNonce:_}):null}}catch(i){return null}}function rh(i){if(!i.isOAuthProvider)throw new t("invalid-oauth-provider")}function sh(i,o,s,v,_,$,ae){if(this.c=i,this.b=o||null,this.g=s||null,this.f=v||null,this.i=$||null,this.h=ae||null,this.a=_||null,!this.g&&!this.a)throw new t("invalid-auth-event");if(this.g&&this.a)throw new t("invalid-auth-event");if(this.g&&!this.f)throw new t("invalid-auth-event")}function th(i){return(i=i||{}).type?new sh(i.type,i.eventId,i.urlResponse,i.sessionId,i.error&&Aa(i.error),i.postBody,i.tenantId):null}function uh(){this.b=null,this.a=[]}yg.prototype.Ha=function(){return this.a?E(this.a):E(this.b)},yg.prototype.w=function(){return this.type==mo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},Bg.prototype.ka=function(){},Bg.prototype.b=function(){},Bg.prototype.c=function(){},Bg.prototype.w=function(){},Eg.prototype.ka=function(i){return Fg(i,Gg(this))},Eg.prototype.b=function(i,o){var s=Gg(this);return s.idToken=o,Hg(i,s)},Eg.prototype.c=function(i,o){return Cg(Ig(i,Gg(this)),o)},Eg.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},Kg.prototype.ka=function(i){return Fg(i,Lg(this))},Kg.prototype.b=function(i,o){var s=Lg(this);return s.idToken=o,Hg(i,s)},Kg.prototype.c=function(i,o){return Cg(Ig(i,Lg(this)),o)},Kg.prototype.w=function(){var i={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(i.oauthIdToken=this.idToken),this.accessToken&&(i.oauthAccessToken=this.accessToken),this.secret&&(i.oauthTokenSecret=this.secret),this.nonce&&(i.nonce=this.nonce),this.a&&(i.pendingToken=this.a),i},Ng.prototype.Ka=function(i){return this.Jb=nb(i),this},r(Og,Ng),r(Pg,Ng),Pg.prototype.Ca=function(i){return Va(this.a,i)||this.a.push(i),this},Pg.prototype.Rb=function(){return Za(this.a)},Pg.prototype.credential=function(i,o){var s;if(!(s=n(i)?{idToken:i.idToken||null,accessToken:i.accessToken||null,nonce:i.rawNonce||null}:{idToken:i||null,accessToken:o||null}).idToken&&!s.accessToken)throw new t("argument-error","credential failed: must provide the ID token and/or the access token.");return new Kg(this.providerId,s,this.providerId)},r(Qg,Pg),M(Qg,"PROVIDER_ID","facebook.com"),M(Qg,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),r(Sg,Pg),M(Sg,"PROVIDER_ID","github.com"),M(Sg,"GITHUB_SIGN_IN_METHOD","github.com"),r(Ug,Pg),M(Ug,"PROVIDER_ID","google.com"),M(Ug,"GOOGLE_SIGN_IN_METHOD","google.com"),r(Wg,Ng),M(Wg,"PROVIDER_ID","twitter.com"),M(Wg,"TWITTER_SIGN_IN_METHOD","twitter.com"),Yg.prototype.ka=function(i){return this.signInMethod==Zg.EMAIL_LINK_SIGN_IN_METHOD?O(i,os,{email:this.a,oobCode:this.f}):O(i,ks,{email:this.a,password:this.f})},Yg.prototype.b=function(i,o){return this.signInMethod==Zg.EMAIL_LINK_SIGN_IN_METHOD?O(i,ss,{idToken:o,email:this.a,oobCode:this.f}):O(i,bs,{idToken:o,email:this.a,password:this.f})},Yg.prototype.c=function(i,o){return Cg(this.ka(i),o)},Yg.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},N(Zg,{PROVIDER_ID:"password"}),N(Zg,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),N(Zg,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),gh.prototype.ka=function(i){return i.gb(hh(this))},gh.prototype.b=function(i,o){var s=hh(this);return s.idToken=o,O(i,Ds,s)},gh.prototype.c=function(i,o){var s=hh(this);return s.operation="REAUTH",Cg(i=O(i,Ps,s),o)},gh.prototype.w=function(){var i={providerId:"phone"};return this.a.fb&&(i.verificationId=this.a.fb),this.a.eb&&(i.verificationCode=this.a.eb),this.a.La&&(i.temporaryProof=this.a.La),this.a.ea&&(i.phoneNumber=this.a.ea),i},lh.prototype.gb=function(i,o){var s=this.a.a;return E(o.verify()).then((function(v){if("string"!=typeof v)throw new t("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===o.type){var _=n(i)?i.session:null,$=n(i)?i.phoneNumber:i;return(_&&_.type==mo?_.Ha().then((function(i){return mh(s,{idToken:i,phoneEnrollmentInfo:{phoneNumber:$,recaptchaToken:v}})})):_&&_.type==Ro?_.Ha().then((function(o){return nh(s,{mfaPendingCredential:o,mfaEnrollmentId:i.multiFactorHint&&i.multiFactorHint.uid||i.multiFactorUid,phoneSignInInfo:{recaptchaToken:v}})})):oh(s,{phoneNumber:$,recaptchaToken:v})).then((function(i){return"function"==typeof o.reset&&o.reset(),i}),(function(i){throw"function"==typeof o.reset&&o.reset(),i}))}throw new t("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}))},N(lh,{PROVIDER_ID:"phone"}),N(lh,{PHONE_SIGN_IN_METHOD:"phone"}),sh.prototype.getUid=function(){var i=[];return i.push(this.c),this.b&&i.push(this.b),this.f&&i.push(this.f),this.h&&i.push(this.h),i.join("-")},sh.prototype.T=function(){return this.h},sh.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Oo,wo=null;function wh(i){var o=wo;o.a.push(i),o.b||(o.b=function(i){for(var s=0;s Auth section -> Sign in method tab.",i):"http"==v||"https"==v?s=Qb("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",i):o="operation-not-supported-in-this-environment",t.call(this,o,s)}function yh(i,o,s){t.call(this,i,s),(i=o||{}).Kb&&M(this,"email",i.Kb),i.ea&&M(this,"phoneNumber",i.ea),i.credential&&M(this,"credential",i.credential),i.$b&&M(this,"tenantId",i.$b)}function zh(i){if(i.code){var o=i.code||"";0==o.indexOf(rt)&&(o=o.substring(rt.length));var s={credential:qh(i),$b:i.tenantId};if(i.email)s.Kb=i.email;else if(i.phoneNumber)s.ea=i.phoneNumber;else if(!s.credential)return new t(o,i.message||void 0);return new yh(o,s,i.message)}return null}function Ah(){}function Bh(i){return i.c||(i.c=i.b())}function Dh(){}function Eh(i){if(!i.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var o=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],s=0;s=Qh(this).value)for(oa(o)&&(o=o()),i=new Ih(i,String(o),this.f),s&&(i.a=s),s=this;s;)s=s.a};var ko={},Ao=null;function Th(i){var o;if(Ao||(Ao=new Kh(""),ko[""]=Ao,Ao.c=_o),!(o=ko[i])){o=new Kh(i);var s=i.lastIndexOf("."),v=i.substr(s+1);(s=Th(i.substr(0,s))).b||(s.b={}),s.b[v]=o,o.a=s,ko[i]=o}return o}function Uh(i,o){i&&i.log(Eo,o,void 0)}function Vh(i){this.f=i}function Wh(i){H.call(this),this.u=i,this.h=void 0,this.readyState=Po,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=Th("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}r(Vh,Ah),Vh.prototype.a=function(){return new Wh(this.f)},Vh.prototype.b=function(i){return function(){return i}}({}),r(Wh,H);var Po=0;function $h(i){i.c.read().then(i.pc.bind(i)).catch(i.Va.bind(i))}function Zh(i){i.readyState=4,i.g=null,i.c=null,i.m=null,Yh(i)}function Yh(i){i.onreadystatechange&&i.onreadystatechange.call(i)}function ai(i){H.call(this),this.headers=new Jd,this.D=i||null,this.c=!1,this.C=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.J=!1,this.g=0,this.s=null,this.m=To,this.u=this.S=!1}(s=Wh.prototype).open=function(i,o){if(this.readyState!=Po)throw this.abort(),Error("Error reopening a connection");this.s=i,this.f=o,this.readyState=1,Yh(this)},s.send=function(i){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var o={headers:this.l,method:this.s,credentials:this.h,cache:void 0};i&&(o.body=i),this.u.fetch(new Request(this.f,o)).then(this.uc.bind(this),this.Va.bind(this))},s.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Zh(this)),this.readyState=Po},s.uc=function(i){this.a&&(this.g=i,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=i.headers,this.readyState=2,Yh(this)),this.a&&(this.readyState=3,Yh(this),this.a&&("arraybuffer"===this.responseType?i.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==ae.ReadableStream&&"body"in i?(this.response=this.responseText="",this.c=i.body.getReader(),this.m=new TextDecoder,$h(this)):i.text().then(this.tc.bind(this),this.Va.bind(this)))))},s.pc=function(i){if(this.a){var o=this.m.decode(i.value?i.value:new Uint8Array(0),{stream:!i.done});o&&(this.response=this.responseText+=o),i.done?Zh(this):Yh(this),3==this.readyState&&$h(this)}},s.tc=function(i){this.a&&(this.response=this.responseText=i,Zh(this))},s.sc=function(i){this.a&&(this.response=i,Zh(this))},s.Va=function(i){var o=this.i;o&&o.log(So,"Failed to fetch url "+this.f,i instanceof Error?i:Error(i)),this.a&&Zh(this)},s.setRequestHeader=function(i,o){this.l.append(i,o)},s.getResponseHeader=function(i){return this.b?this.b.get(i.toLowerCase())||"":((i=this.i)&&i.log(So,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},s.getAllResponseHeaders=function(){if(!this.b){var i=this.i;return i&&i.log(So,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}i=[];for(var o=this.b.entries(),s=o.next();!s.done;)s=s.value,i.push(s[0]+": "+s[1]),s=o.next();return i.join("\r\n")},Object.defineProperty(Wh.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(i){this.h=i?"include":"same-origin"}}),r(ai,H);var To="";ai.prototype.b=Th("goog.net.XhrIo");var Io=/^https?$/i,Fo=["POST","PUT"];function ei(i,o,s,v,_){if(i.a)throw Error("[goog.net.XhrIo] Object is active with another request="+i.l+"; newUri="+o);s=s?s.toUpperCase():"GET",i.l=o,i.h="",i.P=s,i.J=!1,i.c=!0,i.a=i.D?i.D.a():Oo.a(),i.C=i.D?Bh(i.D):Bh(Oo),i.a.onreadystatechange=q(i.Wb,i);try{Uh(i.b,fi(i,"Opening Xhr")),i.N=!0,i.a.open(s,String(o),!0),i.N=!1}catch(o){return Uh(i.b,fi(i,"Error opening Xhr: "+o.message)),void gi(i,o)}o=v||"";var $=new Jd(i.headers);_&&Id(_,(function(i,o){$.set(o,i)})),_=Ta($.Y()),v=ae.FormData&&o instanceof ae.FormData,!Va(Fo,s)||_||v||$.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),$.forEach((function(i,o){this.a.setRequestHeader(o,i)}),i),i.m&&(i.a.responseType=i.m),"withCredentials"in i.a&&i.a.withCredentials!==i.S&&(i.a.withCredentials=i.S);try{hi(i),0=o.l&&o.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(i=new ri(this),si(this),ti(this,!1,i))}},pi.prototype.m=function(i,o){this.i=!1,ti(this,i,o)},pi.prototype.then=function(i,o,s){var v,_,$=new D((function(i,o){v=i,_=o}));return xi(this,v,(function(i){i instanceof ri?$.cancel():_(i)})),$.then(i,o,s)},pi.prototype.$goog_Thenable=!0,r(vi,u),vi.prototype.message="Deferred has already fired",vi.prototype.name="AlreadyCalledError",r(ri,u),ri.prototype.message="Deferred was canceled",ri.prototype.name="CanceledError",Ai.prototype.c=function(){throw delete No[this.a],this.b};var No={};function Bi(i){var o={},s=o.document||document,v=yb(i).toString(),_=oc(document,"SCRIPT"),$={Xb:_,Ma:void 0},ae=new pi($),pe=null,we=null!=o.timeout?o.timeout:5e3;return 0o;o++){_=0|s[o-15],v=0|s[o-2];var $=(0|s[o-16])+((_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3)|0,ae=(0|s[o-7])+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)|0;s[o]=$+ae|0}v=0|i.a[0],_=0|i.a[1];var pe=0|i.a[2],we=0|i.a[3],_e=0|i.a[4],et=0|i.a[5],tt=0|i.a[6];for($=0|i.a[7],o=0;64>o;o++){var nt=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&_^v&pe^_&pe)|0;ae=($=$+((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))|0)+((ae=(ae=_e&et^~_e&tt)+(0|zs[o])|0)+(0|s[o])|0)|0,$=tt,tt=et,et=_e,_e=we+ae|0,we=pe,pe=_,_=v,v=ae+nt|0}i.a[0]=i.a[0]+v|0,i.a[1]=i.a[1]+_|0,i.a[2]=i.a[2]+pe|0,i.a[3]=i.a[3]+we|0,i.a[4]=i.a[4]+_e|0,i.a[5]=i.a[5]+et|0,i.a[6]=i.a[6]+tt|0,i.a[7]=i.a[7]+$|0}function pl(i,o,s){void 0===s&&(s=o.length);var v=0,_=i.c;if("string"==typeof o)for(;v=$&&$==(0|$)))throw Error("message must be a byte array");i.f[_++]=$,_==i.b&&(ol(i),_=0)}}i.c=_,i.g+=s}gl.prototype.reset=function(){this.g=this.c=0,this.a=ae.Int32Array?new Int32Array(this.h):Za(this.h)};var Js=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ql(){gl.call(this,8,ed)}r(ql,gl);var ed=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function sl(i,o,s,v,_,$){this.v=i,this.i=o,this.l=s,this.m=v||null,this.u=_||null,this.s=$,this.h=o+":"+s,this.C=new el,this.g=new bl(this.h),this.f=null,this.b=[],this.a=this.c=null}function tl(i){return new t("invalid-cordova-configuration",i)}function ul(){for(var i=20,o=[];0o.c?pl(o,Ks,56-o.c):pl(o,Ks,o.b-(o.c-56));for(var v=63;56<=v;v--)o.f[v]=255&s,s/=256;for(ol(o),v=s=0;v>_&255;return cg(i)}function xl(i,o,s,v,_){var $=ul(),pe=new sh(o,v,null,$,new t("no-auth-event"),null,_),we=L("BuildInfo.packageName",ae);if("string"!=typeof we)throw new t("invalid-cordova-configuration");var _e=L("BuildInfo.displayName",ae),et={};if(K().toLowerCase().match(/iphone|ipad|ipod/))et.ibi=we;else{if(!K().toLowerCase().match(/android/))return F(new t("operation-not-supported-in-this-environment"));et.apn=we}_e&&(et.appDisplayName=_e),$=vl($),et.sessionId=$;var tt=ek(i.v,i.i,i.l,o,s,null,v,i.m,et,i.u,_,i.s);return i.ma().then((function(){var o=i.h;return i.C.a.set(Zs,pe.w(),o)})).then((function(){var o=L("cordova.plugins.browsertab.isAvailable",ae);if("function"!=typeof o)throw new t("invalid-cordova-configuration");var s=null;o((function(o){if(o){if("function"!=typeof(s=L("cordova.plugins.browsertab.openUrl",ae)))throw new t("invalid-cordova-configuration");s(tt)}else{if("function"!=typeof(s=L("cordova.InAppBrowser.open",ae)))throw new t("invalid-cordova-configuration");o=K(),i.a=s(tt,o.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||o.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}function zl(i,o){for(var s=0;si.f&&(i.a=i.f),o)}function ym(i,o){i.stop(),i.b=Fd(zm(i,o)).then((function(){return af()})).then((function(){return i.h()})).then((function(){ym(i,!0)})).o((function(o){i.i(o)&&ym(i,!1)}))}function Am(i){this.f=i,this.b=this.a=null,this.c=Date.now()}function Bm(i,o){void 0===o&&(i.b?o=(o=i.b).a-o.g:o=0),i.c=Date.now()+1e3*o}function Cm(i,o){i.b=jg(o[Qo]||""),i.a=o.refreshToken,Bm(i,void 0!==(o=o.expiresIn)?Number(o):void 0)}function Dm(i,o){i.b=o.b,i.a=o.a,i.c=o.c}function Em(i,o){return Wi(i.f,o).then((function(o){return i.b=jg(o.access_token),i.a=o.refresh_token,Bm(i,o.expires_in),{accessToken:i.b.toString(),refreshToken:i.a}})).o((function(o){throw"auth/user-token-expired"==o.code&&(i.a=null),o}))}function Fm(i,o){this.a=i||null,this.b=o||null,N(this,{lastSignInTime:bf(o||null),creationTime:bf(i||null)})}function Gm(i){return new Fm(i.a,i.b)}function Hm(i,o,s,v,_,$){N(this,{uid:i,displayName:v||null,photoURL:_||null,email:s||null,phoneNumber:$||null,providerId:o})}function Im(i,s,v){this.N=[],this.l=i.apiKey,this.m=i.appName,this.s=i.authDomain||null;var _=o.a.SDK_VERSION?Oe(o.a.SDK_VERSION):null;this.a=new Ii(this.l,Ca(nt),_),(this.u=i.emulatorConfig||null)&&Pi(this.a,this.u),this.h=new Am(this.a),Jm(this,s[Qo]),Cm(this.h,s),M(this,"refreshToken",this.h.a),Km(this,v||{}),H.call(this),this.P=!1,this.s&&Re()&&(this.b=Xl(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=Lm(this),this.ba=q(this.ib,this);var $=this;this.za=null,this.Pa=function(i){$.xa(i.h)},this.qa=null,this.Ba=function(i){Mm($,i.c)},this.$=null,this.aa=[],this.Oa=function(i){Nm($,i.f)},this.ja=null,this.S=new tm(this,v),M(this,"multiFactor",this.S)}function Mm(i,o){i.u=o,Pi(i.a,o),i.b&&(o=i.b,i.b=Xl(i.s,i.l,i.m,i.u),i.P&&(Ql(o,i),Pl(i.b,i)))}function Om(i,o){i.qa&&xd(i.qa,"languageCodeChanged",i.Pa),(i.qa=o)&&nd(o,"languageCodeChanged",i.Pa)}function Pm(i,o){i.$&&xd(i.$,"emulatorConfigChanged",i.Ba),(i.$=o)&&nd(o,"emulatorConfigChanged",i.Ba)}function Nm(i,s){i.aa=s,Ri(i.a,o.a.SDK_VERSION?Oe(o.a.SDK_VERSION,i.aa):null)}function Qm(i,o){i.ja&&xd(i.ja,"frameworkChanged",i.Oa),(i.ja=o)&&nd(o,"frameworkChanged",i.Oa)}function Rm(i){try{return o.a.app(i.m).auth()}catch(o){throw new t("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+i.m+"'!")}}function Lm(i){return new xm((function(){return i.I(!0)}),(function(i){return!(!i||"auth/network-request-failed"!=i.code)}),(function(){var o=i.h.c-Date.now()-3e5;return 0this.c-3e4?this.a?Em(this,{grant_type:"refresh_token",refresh_token:this.a}):E(null):E({accessToken:this.b.toString(),refreshToken:this.a})},Fm.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},r(Im,H),Im.prototype.xa=function(i){this.za=i,Oi(this.a,i)},Im.prototype.la=function(){return this.za},Im.prototype.Ga=function(){return Za(this.aa)},Im.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},M(Im.prototype,"providerId","firebase"),(s=Im.prototype).reload=function(){var i=this;return R(this,Ym(this).then((function(){return dn(i).then((function(){return Vm(i)})).then(Xm)})))},s.oc=function(i){return this.I(i).then((function(i){return new hm(i)}))},s.I=function(i){var o=this;return R(this,Ym(this).then((function(){return o.h.getToken(i)})).then((function(i){if(!i)throw new t("internal-error");return i.accessToken!=o.Aa&&(Jm(o,i.accessToken),o.dispatchEvent(new sm("tokenChanged"))),bn(o,"refreshToken",i.refreshToken),i.accessToken})))},s.Kc=function(i){if(!(i=i.users)||!i.length)throw new t("internal-error");Km(this,{uid:(i=i[0]).localId,displayName:i.displayName,photoURL:i.photoUrl,email:i.email,emailVerified:!!i.emailVerified,phoneNumber:i.phoneNumber,lastLoginAt:i.lastLoginAt,createdAt:i.createdAt,tenantId:i.tenantId});for(var o=fn(i),s=0;sthis.u&&(this.u=0),0==this.u&&U(this)&&Tm(U(this)),this.removeAuthTokenListener(i)},s.addAuthTokenListener=function(i){var o=this;this.s.push(i),T(this,this.h.then((function(){o.l||Va(o.s,i)&&i(Wn(o))})))},s.removeAuthTokenListener=function(i){Xa(this.s,(function(o){return o==i}))},s.delete=function(){this.l=!0;for(var i=0;i_||_>=ru.length)throw new t("internal-error","Argument validator received an unsupported number of arguments.");s=ru[_],v=(v?"":s+" argument ")+(o.name?'"'+o.name+'" ':"")+"must be "+o.K+".";break e}v=null}}if(v)throw new t("argument-error",i+" failed: "+v)}(s=lo.prototype).Ia=function(){var i=this;return this.f?this.f:this.f=so(this,E().then((function(){if(Se()&&!Je())return Ee();throw new t("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return i.m.g(i.u())})).then((function(o){return i.g=o,O(i.s,ms,{})})).then((function(o){i.a[nu]=o.recaptchaSiteKey})).o((function(o){throw i.f=null,o})))},s.render=function(){to(this);var i=this;return so(this,this.Ia().then((function(){if(null===i.c){var o=i.v;if(!i.i){var s=kc(o);o=nc("DIV"),s.appendChild(o)}i.c=i.g.render(o,i.a)}return i.c})))},s.verify=function(){to(this);var i=this;return so(this,this.render().then((function(o){return new D((function(s){var v=i.g.getResponse(o);if(v)s(v);else{var e=function(o){o&&(ro(i,e),s(o))};i.l.push(e),i.i&&i.g.execute(i.c)}}))})))},s.reset=function(){to(this),null!==this.c&&this.g.reset(this.c)},s.clear=function(){to(this),this.J=!0,this.m.c();for(var i=0;is?v.push(i.substring(_,s)):v.push(i.substring(_,_+o));return v};function each(i,o){for(var s in i)i.hasOwnProperty(s)&&o(s,i[s])}var doubleToIEEE754String=function(i){Object($.d)(!isInvalidJSONNumber(i),"Invalid JSON number");var o,s,v,_,ae,pe=1023;0===i?(s=0,v=0,o=1/i==-1/0?1:0):(o=i<0,(i=Math.abs(i))>=Math.pow(2,-1022)?(s=(_=Math.min(Math.floor(Math.log(i)/Math.LN2),pe))+pe,v=Math.round(i*Math.pow(2,52-_)-Math.pow(2,52))):(s=0,v=Math.round(i/Math.pow(2,-1074))));var we=[];for(ae=52;ae;ae-=1)we.push(v%2?1:0),v=Math.floor(v/2);for(ae=11;ae;ae-=1)we.push(s%2?1:0),s=Math.floor(s/2);we.push(o?1:0),we.reverse();var _e=we.join(""),et="";for(ae=0;ae<64;ae+=8){var tt=parseInt(_e.substr(ae,8),2).toString(16);1===tt.length&&(tt="0"+tt),et+=tt}return et.toLowerCase()};function errorForServerCode(i,o){var s="Unknown Error";"too_big"===i?s="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===i?s="Client doesn't have permission to access the desired data.":"unavailable"===i&&(s="The service is unavailable");var v=new Error(i+" at "+o._path.toString()+": "+s);return v.code=i.toUpperCase(),v}var ct=new RegExp("^-?(0*)\\d{1,10}$"),ht=-2147483648,pt=2147483647,tryParseInt=function(i){if(ct.test(i)){var o=Number(i);if(o>=ht&&o<=pt)return o}return null},exceptionGuard=function(i){try{i()}catch(i){setTimeout((function(){var o=i.stack||"";throw warn("Exception was thrown by user callback.",o),i}),Math.floor(0))}},setTimeoutNonBlocking=function(i,o){var s=setTimeout(i,o);return"object"==typeof s&&s.unref&&s.unref(),s},ft=function(){function AppCheckTokenProvider(i,o){var s=this;this.appName_=i,this.appCheckProvider=o,this.appCheck=null==o?void 0:o.getImmediate({optional:!0}),this.appCheck||null==o||o.get().then((function(i){return s.appCheck=i}))}return AppCheckTokenProvider.prototype.getToken=function(i){var o=this;return this.appCheck?this.appCheck.getToken(i):new Promise((function(s,v){setTimeout((function(){o.appCheck?o.getToken(i).then(s,v):s(null)}),0)}))},AppCheckTokenProvider.prototype.addTokenChangeListener=function(i){var o;null===(o=this.appCheckProvider)||void 0===o||o.get().then((function(o){return o.addTokenListener(i)}))},AppCheckTokenProvider.prototype.notifyForInvalidToken=function(){warn('Provided AppCheck credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly.')},AppCheckTokenProvider}(),gt=function(){function FirebaseAuthTokenProvider(i,o,s){var v=this;this.appName_=i,this.firebaseOptions_=o,this.authProvider_=s,this.auth_=null,this.auth_=s.getImmediate({optional:!0}),this.auth_||s.onInit((function(i){return v.auth_=i}))}return FirebaseAuthTokenProvider.prototype.getToken=function(i){var o=this;return this.auth_?this.auth_.getToken(i).catch((function(i){return i&&"auth/token-not-initialized"===i.code?(log("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(i)})):new Promise((function(s,v){setTimeout((function(){o.auth_?o.getToken(i).then(s,v):s(null)}),0)}))},FirebaseAuthTokenProvider.prototype.addTokenChangeListener=function(i){this.auth_?this.auth_.addAuthTokenListener(i):this.authProvider_.get().then((function(o){return o.addAuthTokenListener(i)}))},FirebaseAuthTokenProvider.prototype.removeTokenChangeListener=function(i){this.authProvider_.get().then((function(o){return o.removeAuthTokenListener(i)}))},FirebaseAuthTokenProvider.prototype.notifyForInvalidToken=function(){var i='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?i+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?i+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':i+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',warn(i)},FirebaseAuthTokenProvider}(),mt=function(){function EmulatorTokenProvider(i){this.accessToken=i}return EmulatorTokenProvider.prototype.getToken=function(i){return Promise.resolve({accessToken:this.accessToken})},EmulatorTokenProvider.prototype.addTokenChangeListener=function(i){i(this.accessToken)},EmulatorTokenProvider.prototype.removeTokenChangeListener=function(i){},EmulatorTokenProvider.prototype.notifyForInvalidToken=function(){},EmulatorTokenProvider.OWNER="owner",EmulatorTokenProvider}(),yt="5",vt=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Rt="ac",bt="websocket",Ot="long_polling",xt=function(){function RepoInfo(i,o,s,v,_,$,ae){void 0===_&&(_=!1),void 0===$&&($=""),void 0===ae&&(ae=!1),this.secure=o,this.namespace=s,this.webSocketOnly=v,this.nodeAdmin=_,this.persistenceKey=$,this.includeNamespaceInQueryParams=ae,this._host=i.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=nt.get("host:"+i)||this._host}return RepoInfo.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},RepoInfo.prototype.isCustomHost=function(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain},Object.defineProperty(RepoInfo.prototype,"host",{get:function(){return this._host},set:function(i){i!==this.internalHost&&(this.internalHost=i,this.isCacheableHost()&&nt.set("host:"+this._host,this.internalHost))},enumerable:!1,configurable:!0}),RepoInfo.prototype.toString=function(){var i=this.toURLString();return this.persistenceKey&&(i+="<"+this.persistenceKey+">"),i},RepoInfo.prototype.toURLString=function(){var i=this.secure?"https://":"http://",o=this.includeNamespaceInQueryParams?"?ns="+this.namespace:"";return""+i+this.host+"/"+o},RepoInfo}();function repoInfoNeedsQueryParam(i){return i.host!==i.internalHost||i.isCustomHost()||i.includeNamespaceInQueryParams}function repoInfoConnectionURL(i,o,s){var v;if(Object($.d)("string"==typeof o,"typeof type must == string"),Object($.d)("object"==typeof s,"typeof params must == object"),o===bt)v=(i.secure?"wss://":"ws://")+i.internalHost+"/.ws?";else{if(o!==Ot)throw new Error("Unknown connection type: "+o);v=(i.secure?"https://":"http://")+i.internalHost+"/.lp?"}repoInfoNeedsQueryParam(i)&&(s.ns=i.namespace);var _=[];return each(s,(function(i,o){_.push(i+"="+o)})),v+_.join("&")}var wt=function(){function StatsCollection(){this.counters_={}}return StatsCollection.prototype.incrementCounter=function(i,o){void 0===o&&(o=1),Object($.h)(this.counters_,i)||(this.counters_[i]=0),this.counters_[i]+=o},StatsCollection.prototype.get=function(){return Object($.k)(this.counters_)},StatsCollection}(),Ct={},St={};function statsManagerGetCollection(i){var o=i.toString();return Ct[o]||(Ct[o]=new wt),Ct[o]}var _t=function(){function PacketReceiver(i){this.onMessage_=i,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return PacketReceiver.prototype.closeAfter=function(i,o){this.closeAfterResponse=i,this.onClose=o,this.closeAfterResponsedocument.domain="'+document.domain+'";<\/script>';var ae=""+_+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(ae),this.myIFrame.doc.close()}catch(i){log("frame writing exception"),i.stack&&log(i.stack),log(i)}}}return FirebaseIFrameScriptHolder.createIFrame_=function(){var i=document.createElement("iframe");if(i.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(i);try{i.contentWindow.document||log("No IE domain setting required")}catch(s){var o=document.domain;i.src="javascript:void((function(){document.open();document.domain='"+o+"';document.close();})())"}return i.contentDocument?i.doc=i.contentDocument:i.contentWindow?i.doc=i.contentWindow.document:i.document&&(i.doc=i.document),i},FirebaseIFrameScriptHolder.prototype.close=function(){var i=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==i.myIFrame&&(document.body.removeChild(i.myIFrame),i.myIFrame=null)}),Math.floor(0)));var o=this.onDisconnect;o&&(this.onDisconnect=null,o())},FirebaseIFrameScriptHolder.prototype.startLongPoll=function(i,o){for(this.myID=i,this.myPW=o,this.alive=!0;this.newRequest_(););},FirebaseIFrameScriptHolder.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var i={};i.id=this.myID,i.pw=this.myPW,i.ser=this.currentSerial;for(var o=this.urlFn(i),s="",v=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+s.length<=1870))break;var _=this.pendingSegs.shift();s=s+"&seg"+v+"="+_.seg+"&ts"+v+"="+_.ts+"&d"+v+"="+_.d,v++}return o+=s,this.addLongPollTag_(o,this.currentSerial),!0}return!1},FirebaseIFrameScriptHolder.prototype.enqueueSegment=function(i,o,s){this.pendingSegs.push({seg:i,ts:o,d:s}),this.alive&&this.newRequest_()},FirebaseIFrameScriptHolder.prototype.addLongPollTag_=function(i,o){var s=this;this.outstandingRequests.add(o);var doNewRequest=function(){s.outstandingRequests.delete(o),s.newRequest_()},v=setTimeout(doNewRequest,Math.floor(25e3));this.addTag(i,(function(){clearTimeout(v),doNewRequest()}))},FirebaseIFrameScriptHolder.prototype.addTag=function(i,o){var s=this;Object($.t)()?this.doNodeLongPoll(i,o):setTimeout((function(){try{if(!s.sendNewPolls)return;var v=s.myIFrame.doc.createElement("script");v.type="text/javascript",v.async=!0,v.src=i,v.onload=v.onreadystatechange=function(){var i=v.readyState;i&&"loaded"!==i&&"complete"!==i||(v.onload=v.onreadystatechange=null,v.parentNode&&v.parentNode.removeChild(v),o())},v.onerror=function(){log("Long-poll script failed to load: "+i),s.sendNewPolls=!1,s.close()},s.myIFrame.doc.body.appendChild(v)}catch(i){}}),Math.floor(1))},FirebaseIFrameScriptHolder}(),Dt=null;"undefined"!=typeof MozWebSocket?Dt=MozWebSocket:"undefined"!=typeof WebSocket&&(Dt=WebSocket);var Pt=function(){function WebSocketConnection(i,o,s,v,_,$,ae){this.connId=i,this.applicationId=s,this.appCheckToken=v,this.authToken=_,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=logWrapper(this.connId),this.stats_=statsManagerGetCollection(o),this.connURL=WebSocketConnection.connectionURL_(o,$,ae,v),this.nodeAdmin=o.nodeAdmin}return WebSocketConnection.connectionURL_=function(i,o,s,v){var _={};return _.v=yt,!Object($.t)()&&"undefined"!=typeof location&&location.hostname&&vt.test(location.hostname)&&(_.r="f"),o&&(_.s=o),s&&(_.ls=s),v&&(_[Rt]=v),repoInfoConnectionURL(i,bt,_)},WebSocketConnection.prototype.open=function(o,s){var v=this;this.onDisconnect=s,this.onMessage=o,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,nt.set("previous_websocket_failure",!0);try{if(Object($.t)()){var _=this.nodeAdmin?"AdminNode":"Node",ae={headers:{"User-Agent":"Firebase/5/"+we+"/"+i.platform+"/"+_,"X-Firebase-GMPID":this.applicationId||""}};this.authToken&&(ae.headers.Authorization="Bearer "+this.authToken),this.appCheckToken&&(ae.headers["X-Firebase-AppCheck"]=this.appCheckToken);var pe=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}),_e=0===this.connURL.indexOf("wss://")?pe.HTTPS_PROXY||pe.https_proxy:pe.HTTP_PROXY||pe.http_proxy;_e&&(ae.proxy={origin:_e}),this.mySock=new Dt(this.connURL,[],ae)}else{ae={headers:{"X-Firebase-GMPID":this.applicationId||"","X-Firebase-AppCheck":this.appCheckToken||""}};this.mySock=new Dt(this.connURL,[],ae)}}catch(i){this.log_("Error instantiating WebSocket.");var et=i.message||i.data;return et&&this.log_(et),void this.onClosed_()}this.mySock.onopen=function(){v.log_("Websocket connected."),v.everConnected_=!0},this.mySock.onclose=function(){v.log_("Websocket connection was disconnected."),v.mySock=null,v.onClosed_()},this.mySock.onmessage=function(i){v.handleIncomingFrame(i)},this.mySock.onerror=function(i){v.log_("WebSocket error. Closing connection.");var o=i.message||i.data;o&&v.log_(o),v.onClosed_()}},WebSocketConnection.prototype.start=function(){},WebSocketConnection.forceDisallow=function(){WebSocketConnection.forceDisallow_=!0},WebSocketConnection.isAvailable=function(){var i=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var o=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);o&&o.length>1&&parseFloat(o[1])<4.4&&(i=!0)}return!i&&null!==Dt&&!WebSocketConnection.forceDisallow_},WebSocketConnection.previouslyFailed=function(){return nt.isInMemoryStorage||!0===nt.get("previous_websocket_failure")},WebSocketConnection.prototype.markConnectionHealthy=function(){nt.remove("previous_websocket_failure")},WebSocketConnection.prototype.appendFrame_=function(i){if(this.frames.push(i),this.frames.length===this.totalFrames){var o=this.frames.join("");this.frames=null;var s=Object($.w)(o);this.onMessage(s)}},WebSocketConnection.prototype.handleNewFrameCount_=function(i){this.totalFrames=i,this.frames=[]},WebSocketConnection.prototype.extractFrameCount_=function(i){if(Object($.d)(null===this.frames,"We already have a frame buffer"),i.length<=6){var o=Number(i);if(!isNaN(o))return this.handleNewFrameCount_(o),null}return this.handleNewFrameCount_(1),i},WebSocketConnection.prototype.handleIncomingFrame=function(i){if(null!==this.mySock){var o=i.data;if(this.bytesReceived+=o.length,this.stats_.incrementCounter("bytes_received",o.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(o);else{var s=this.extractFrameCount_(o);null!==s&&this.appendFrame_(s)}}},WebSocketConnection.prototype.send=function(i){this.resetKeepAlive();var o=Object($.C)(i);this.bytesSent+=o.length,this.stats_.incrementCounter("bytes_sent",o.length);var s=splitStringBySize(o,16384);s.length>1&&this.sendString_(String(s.length));for(var v=0;v0)return this.transports_[0];throw new Error("No transports available")},TransportManager.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},TransportManager}(),It=function(){function Connection(i,o,s,v,_,$,ae,pe,we,_e){this.id=i,this.repoInfo_=o,this.applicationId_=s,this.appCheckToken_=v,this.authToken_=_,this.onMessage_=$,this.onReady_=ae,this.onDisconnect_=pe,this.onKill_=we,this.lastSessionId=_e,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=logWrapper("c:"+this.id+":"),this.transportManager_=new Tt(o),this.log_("Connection created"),this.start_()}return Connection.prototype.start_=function(){var i=this,o=this.transportManager_.initialTransport();this.conn_=new o(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=o.responsesRequiredToBeHealthy||0;var s=this.connReceiver_(this.conn_),v=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){i.conn_&&i.conn_.open(s,v)}),Math.floor(0));var _=o.healthyTimeout||0;_>0&&(this.healthyTimeout_=setTimeoutNonBlocking((function(){i.healthyTimeout_=null,i.isHealthy_||(i.conn_&&i.conn_.bytesReceived>102400?(i.log_("Connection exceeded healthy timeout but has received "+i.conn_.bytesReceived+" bytes. Marking connection healthy."),i.isHealthy_=!0,i.conn_.markConnectionHealthy()):i.conn_&&i.conn_.bytesSent>10240?i.log_("Connection exceeded healthy timeout but has sent "+i.conn_.bytesSent+" bytes. Leaving connection alive."):(i.log_("Closing unhealthy connection after timeout."),i.close()))}),Math.floor(_)))},Connection.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},Connection.prototype.disconnReceiver_=function(i){var o=this;return function(s){i===o.conn_?o.onConnectionLost_(s):i===o.secondaryConn_?(o.log_("Secondary connection lost."),o.onSecondaryConnectionLost_()):o.log_("closing an old connection")}},Connection.prototype.connReceiver_=function(i){var o=this;return function(s){2!==o.state_&&(i===o.rx_?o.onPrimaryMessageReceived_(s):i===o.secondaryConn_?o.onSecondaryMessageReceived_(s):o.log_("message on old connection"))}},Connection.prototype.sendRequest=function(i){var o={t:"d",d:i};this.sendData_(o)},Connection.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},Connection.prototype.onSecondaryControl_=function(i){if("t"in i){var o=i.t;"a"===o?this.upgradeIfSecondaryHealthy_():"r"===o?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===o&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},Connection.prototype.onSecondaryMessageReceived_=function(i){var o=requireKey("t",i),s=requireKey("d",i);if("c"===o)this.onSecondaryControl_(s);else{if("d"!==o)throw new Error("Unknown protocol layer: "+o);this.pendingDataMessages.push(s)}},Connection.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},Connection.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},Connection.prototype.onPrimaryMessageReceived_=function(i){var o=requireKey("t",i),s=requireKey("d",i);"c"===o?this.onControl_(s):"d"===o&&this.onDataMessage_(s)},Connection.prototype.onDataMessage_=function(i){this.onPrimaryResponse_(),this.onMessage_(i)},Connection.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},Connection.prototype.onControl_=function(i){var o=requireKey("t",i);if("d"in i){var s=i.d;if("h"===o)this.onHandshake_(s);else if("n"===o){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var v=0;v0,"Requires a non-empty array")}return EventEmitter.prototype.trigger=function(i){for(var o=[],s=1;s0&&(this.pieces_[s]=this.pieces_[v],s++);this.pieces_.length=s,this.pieceNum_=0}else this.pieces_=i,this.pieceNum_=o}return Path.prototype.toString=function(){for(var i="",o=this.pieceNum_;o=i.pieces_.length?null:i.pieces_[i.pieceNum_]}function pathGetLength(i){return i.pieces_.length-i.pieceNum_}function pathPopFront(i){var o=i.pieceNum_;return o=i.pieces_.length)return null;for(var o=[],s=i.pieceNum_;s0&&s.push(_[v])}return new Mt(s,0)}function pathIsEmpty(i){return i.pieceNum_>=i.pieces_.length}function newRelativePath(i,o){var s=pathGetFront(i),v=pathGetFront(o);if(null===s)return o;if(s===v)return newRelativePath(pathPopFront(i),pathPopFront(o));throw new Error("INTERNAL ERROR: innerPath ("+o+") is not within outerPath ("+i+")")}function pathCompare(i,o){for(var s=pathSlice(i,0),v=pathSlice(o,0),_=0;_pathGetLength(o))return!1;for(;s0&&(i.byteLength_+=1),i.parts_.push(o),i.byteLength_+=Object($.A)(o),validationPathCheckValid(i)}function validationPathCheckValid(i){if(i.byteLength_>jt)throw new Error(i.errorPrefix_+"has a key path longer than "+jt+" bytes ("+i.byteLength_+").");if(i.parts_.length>Lt)throw new Error(i.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+Lt+") or object contains a cycle "+validationPathToErrorString(i))}function validationPathToErrorString(i){return 0===i.parts_.length?"":"in property '"+i.parts_.join(".")+"'"}var Vt,Ut,Wt=function(i){function VisibilityMonitor(){var o,s,v=i.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(s="visibilitychange",o="hidden"):void 0!==document.mozHidden?(s="mozvisibilitychange",o="mozHidden"):void 0!==document.msHidden?(s="msvisibilitychange",o="msHidden"):void 0!==document.webkitHidden&&(s="webkitvisibilitychange",o="webkitHidden")),v.visible_=!0,s&&document.addEventListener(s,(function(){var i=!document[o];i!==v.visible_&&(v.visible_=i,v.trigger("visible",i))}),!1),v}return Object(ae.__extends)(VisibilityMonitor,i),VisibilityMonitor.getInstance=function(){return new VisibilityMonitor},VisibilityMonitor.prototype.getInitialEvent=function(i){return Object($.d)("visible"===i,"Unknown event type: "+i),[this.visible_]},VisibilityMonitor}(Nt),$t=1e3,qt=function(i){function PersistentConnection(o,s,v,_,ae,pe,we,_e){var et=i.call(this)||this;if(et.repoInfo_=o,et.applicationId_=s,et.onDataUpdate_=v,et.onConnectStatus_=_,et.onServerInfoUpdate_=ae,et.authTokenProvider_=pe,et.appCheckTokenProvider_=we,et.authOverride_=_e,et.id=PersistentConnection.nextPersistentConnectionId_++,et.log_=logWrapper("p:"+et.id+":"),et.interruptReasons_={},et.listens=new Map,et.outstandingPuts_=[],et.outstandingGets_=[],et.outstandingPutCount_=0,et.outstandingGetCount_=0,et.onDisconnectRequestQueue_=[],et.connected_=!1,et.reconnectDelay_=$t,et.maxReconnectDelay_=3e5,et.securityDebugCallback_=null,et.lastSessionId=null,et.establishConnectionTimer_=null,et.visible_=!1,et.requestCBHash_={},et.requestNumber_=0,et.realtime_=null,et.authToken_=null,et.appCheckToken_=null,et.forceTokenRefresh_=!1,et.invalidAuthTokenCount_=0,et.invalidAppCheckTokenCount_=0,et.firstConnection_=!0,et.lastConnectionAttemptTime_=null,et.lastConnectionEstablishedTime_=null,_e&&!Object($.t)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return Wt.getInstance().on("visible",et.onVisible_,et),-1===o.host.indexOf("fblocal")&&Bt.getInstance().on("online",et.onOnline_,et),et}return Object(ae.__extends)(PersistentConnection,i),PersistentConnection.prototype.sendRequest=function(i,o,s){var v=++this.requestNumber_,_={r:v,a:i,b:o};this.log_(Object($.C)(_)),Object($.d)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(_),s&&(this.requestCBHash_[v]=s)},PersistentConnection.prototype.get=function(i){var o=this;this.initConnection_();var s=new $.a,v={p:i._path.toString(),q:i._queryObject},_={action:"g",request:v,onComplete:function(i){var _=i.d;"ok"===i.s?(o.onDataUpdate_(v.p,_,!1,null),s.resolve(_)):s.reject(_)}};this.outstandingGets_.push(_),this.outstandingGetCount_++;var ae=this.outstandingGets_.length-1;return this.connected_||setTimeout((function(){var i=o.outstandingGets_[ae];void 0!==i&&_===i&&(delete o.outstandingGets_[ae],o.outstandingGetCount_--,0===o.outstandingGetCount_&&(o.outstandingGets_=[]),o.log_("get "+ae+" timed out on connection"),s.reject(new Error("Client is offline.")))}),3e3),this.connected_&&this.sendGet_(ae),s.promise},PersistentConnection.prototype.listen=function(i,o,s,v){this.initConnection_();var _=i._queryIdentifier,ae=i._path.toString();this.log_("Listen called for "+ae+" "+_),this.listens.has(ae)||this.listens.set(ae,new Map),Object($.d)(i._queryParams.isDefault()||!i._queryParams.loadsAllData(),"listen() called for non-default but complete query"),Object($.d)(!this.listens.get(ae).has(_),"listen() called twice for same path/queryId.");var pe={onComplete:v,hashFn:o,query:i,tag:s};this.listens.get(ae).set(_,pe),this.connected_&&this.sendListen_(pe)},PersistentConnection.prototype.sendGet_=function(i){var o=this,s=this.outstandingGets_[i];this.sendRequest("g",s.request,(function(v){delete o.outstandingGets_[i],o.outstandingGetCount_--,0===o.outstandingGetCount_&&(o.outstandingGets_=[]),s.onComplete&&s.onComplete(v)}))},PersistentConnection.prototype.sendListen_=function(i){var o=this,s=i.query,v=s._path.toString(),_=s._queryIdentifier;this.log_("Listen on "+v+" for "+_);var $={p:v};i.tag&&($.q=s._queryObject,$.t=i.tag),$.h=i.hashFn(),this.sendRequest("q",$,(function($){var ae=$.d,pe=$.s;PersistentConnection.warnOnListenWarnings_(ae,s),(o.listens.get(v)&&o.listens.get(v).get(_))===i&&(o.log_("listen response",$),"ok"!==pe&&o.removeListen_(v,_),i.onComplete&&i.onComplete(pe,ae))}))},PersistentConnection.warnOnListenWarnings_=function(i,o){if(i&&"object"==typeof i&&Object($.h)(i,"w")){var s=Object($.z)(i,"w");if(Array.isArray(s)&&~s.indexOf("no_index")){var v='".indexOn": "'+o._queryParams.getIndex().toString()+'"',_=o._path.toString();warn("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+v+" at "+_+" to your security rules for better performance.")}}},PersistentConnection.prototype.refreshAuthToken=function(i){this.authToken_=i,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(i)},PersistentConnection.prototype.reduceReconnectDelayIfAdminCredential_=function(i){(i&&40===i.length||Object($.o)(i))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},PersistentConnection.prototype.refreshAppCheckToken=function(i){this.appCheckToken_=i,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(function(){}))},PersistentConnection.prototype.tryAuth=function(){var i=this;if(this.connected_&&this.authToken_){var o=this.authToken_,s=Object($.v)(o)?"auth":"gauth",v={cred:o};null===this.authOverride_?v.noauth=!0:"object"==typeof this.authOverride_&&(v.authvar=this.authOverride_),this.sendRequest(s,v,(function(s){var v=s.s,_=s.d||"error";i.authToken_===o&&("ok"===v?i.invalidAuthTokenCount_=0:i.onAuthRevoked_(v,_))}))}},PersistentConnection.prototype.tryAppCheck=function(){var i=this;this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(function(o){var s=o.s,v=o.d||"error";"ok"===s?i.invalidAppCheckTokenCount_=0:i.onAppCheckRevoked_(s,v)}))},PersistentConnection.prototype.unlisten=function(i,o){var s=i._path.toString(),v=i._queryIdentifier;this.log_("Unlisten called for "+s+" "+v),Object($.d)(i._queryParams.isDefault()||!i._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(s,v)&&this.connected_&&this.sendUnlisten_(s,v,i._queryObject,o)},PersistentConnection.prototype.sendUnlisten_=function(i,o,s,v){this.log_("Unlisten on "+i+" for "+o);var _={p:i};v&&(_.q=s,_.t=v),this.sendRequest("n",_)},PersistentConnection.prototype.onDisconnectPut=function(i,o,s){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",i,o,s):this.onDisconnectRequestQueue_.push({pathString:i,action:"o",data:o,onComplete:s})},PersistentConnection.prototype.onDisconnectMerge=function(i,o,s){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",i,o,s):this.onDisconnectRequestQueue_.push({pathString:i,action:"om",data:o,onComplete:s})},PersistentConnection.prototype.onDisconnectCancel=function(i,o){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",i,null,o):this.onDisconnectRequestQueue_.push({pathString:i,action:"oc",data:null,onComplete:o})},PersistentConnection.prototype.sendOnDisconnect_=function(i,o,s,v){var _={p:o,d:s};this.log_("onDisconnect "+i,_),this.sendRequest(i,_,(function(i){v&&setTimeout((function(){v(i.s,i.d)}),Math.floor(0))}))},PersistentConnection.prototype.put=function(i,o,s,v){this.putInternal("p",i,o,s,v)},PersistentConnection.prototype.merge=function(i,o,s,v){this.putInternal("m",i,o,s,v)},PersistentConnection.prototype.putInternal=function(i,o,s,v,_){this.initConnection_();var $={p:o,d:s};void 0!==_&&($.h=_),this.outstandingPuts_.push({action:i,request:$,onComplete:v}),this.outstandingPutCount_++;var ae=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(ae):this.log_("Buffering put: "+o)},PersistentConnection.prototype.sendPut_=function(i){var o=this,s=this.outstandingPuts_[i].action,v=this.outstandingPuts_[i].request,_=this.outstandingPuts_[i].onComplete;this.outstandingPuts_[i].queued=this.connected_,this.sendRequest(s,v,(function(v){o.log_(s+" response",v),delete o.outstandingPuts_[i],o.outstandingPutCount_--,0===o.outstandingPutCount_&&(o.outstandingPuts_=[]),_&&_(v.s,v.d)}))},PersistentConnection.prototype.reportStats=function(i){var o=this;if(this.connected_){var s={c:i};this.log_("reportStats",s),this.sendRequest("s",s,(function(i){if("ok"!==i.s){var s=i.d;o.log_("reportStats","Error sending stats: "+s)}}))}},PersistentConnection.prototype.onDataMessage_=function(i){if("r"in i){this.log_("from server: "+Object($.C)(i));var o=i.r,s=this.requestCBHash_[o];s&&(delete this.requestCBHash_[o],s(i.b))}else{if("error"in i)throw"A server-side error has occurred: "+i.error;"a"in i&&this.onDataPush_(i.a,i.b)}},PersistentConnection.prototype.onDataPush_=function(i,o){this.log_("handleServerMessage",i,o),"d"===i?this.onDataUpdate_(o.p,o.d,!1,o.t):"m"===i?this.onDataUpdate_(o.p,o.d,!0,o.t):"c"===i?this.onListenRevoked_(o.p,o.q):"ac"===i?this.onAuthRevoked_(o.s,o.d):"apc"===i?this.onAppCheckRevoked_(o.s,o.d):"sd"===i?this.onSecurityDebugPacket_(o):error("Unrecognized action received from server: "+Object($.C)(i)+"\nAre you using the latest client?")},PersistentConnection.prototype.onReady_=function(i,o){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(i),this.lastSessionId=o,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},PersistentConnection.prototype.scheduleConnect_=function(i){var o=this;Object($.d)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){o.establishConnectionTimer_=null,o.establishConnection_()}),Math.floor(i))},PersistentConnection.prototype.initConnection_=function(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)},PersistentConnection.prototype.onVisible_=function(i){i&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0)),this.visible_=i},PersistentConnection.prototype.onOnline_=function(i){i?(this.log_("Browser went online."),this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},PersistentConnection.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=$t),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var i=(new Date).getTime()-this.lastConnectionAttemptTime_,o=Math.max(0,this.reconnectDelay_-i);o=Math.random()*o,this.log_("Trying to reconnect in "+o+"ms"),this.scheduleConnect_(o),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},PersistentConnection.prototype.establishConnection_=function(){return Object(ae.__awaiter)(this,void 0,void 0,(function(){var i,o,s,v,_,pe,we,_e,et,tt,nt,rt,it,ot,st=this;return Object(ae.__generator)(this,(function(dt){switch(dt.label){case 0:if(!this.shouldReconnect_())return[3,4];this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null,i=this.onDataMessage_.bind(this),o=this.onReady_.bind(this),s=this.onRealtimeDisconnect_.bind(this),v=this.id+":"+PersistentConnection.nextConnectionId_++,_=this.lastSessionId,pe=!1,we=null,_e=function(){we?we.close():(pe=!0,s())},et=function(i){Object($.d)(we,"sendRequest call when we're not connected not allowed."),we.sendRequest(i)},this.realtime_={close:_e,sendRequest:et},tt=this.forceTokenRefresh_,this.forceTokenRefresh_=!1,dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,Promise.all([this.authTokenProvider_.getToken(tt),this.appCheckTokenProvider_.getToken(tt)])];case 2:return nt=ae.__read.apply(void 0,[dt.sent(),2]),rt=nt[0],it=nt[1],pe?log("getToken() completed but was canceled"):(log("getToken() completed. Creating connection."),this.authToken_=rt&&rt.accessToken,this.appCheckToken_=it&&it.token,we=new It(v,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,i,o,s,(function(i){warn(i+" ("+st.repoInfo_.toString()+")"),st.interrupt("server_kill")}),_)),[3,4];case 3:return ot=dt.sent(),this.log_("Failed to get token: "+ot),pe||(this.repoInfo_.nodeAdmin&&warn(ot),_e()),[3,4];case 4:return[2]}}))}))},PersistentConnection.prototype.interrupt=function(i){log("Interrupting connection for reason: "+i),this.interruptReasons_[i]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},PersistentConnection.prototype.resume=function(i){log("Resuming connection for reason: "+i),delete this.interruptReasons_[i],Object($.q)(this.interruptReasons_)&&(this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0))},PersistentConnection.prototype.handleTimestamp_=function(i){var o=i-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:o})},PersistentConnection.prototype.cancelSentTransactions_=function(){for(var i=0;i=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},PersistentConnection.prototype.onAppCheckRevoked_=function(i,o){log("App check token revoked: "+i+"/"+o),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==i&&"permission_denied"!==i||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())},PersistentConnection.prototype.onSecurityDebugPacket_=function(i){this.securityDebugCallback_?this.securityDebugCallback_(i):"msg"in i&&console.log("FIREBASE: "+i.msg.replace("\n","\nFIREBASE: "))},PersistentConnection.prototype.restoreState_=function(){var i,o,s,v;this.tryAuth(),this.tryAppCheck();try{for(var _=Object(ae.__values)(this.listens.values()),$=_.next();!$.done;$=_.next()){var pe=$.value;try{for(var we=(s=void 0,Object(ae.__values)(pe.values())),_e=we.next();!_e.done;_e=we.next()){var et=_e.value;this.sendListen_(et)}}catch(i){s={error:i}}finally{try{_e&&!_e.done&&(v=we.return)&&v.call(we)}finally{if(s)throw s.error}}}}catch(o){i={error:o}}finally{try{$&&!$.done&&(o=_.return)&&o.call(_)}finally{if(i)throw i.error}}for(var tt=0;tt0},SortedMapIterator.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var i=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(i.key,i.value):{key:i.key,value:i.value}},SortedMapIterator}(),Yt=function(){function LLRBNode(i,o,s,v,_){this.key=i,this.value=o,this.color=null!=s?s:LLRBNode.RED,this.left=null!=v?v:Jt.EMPTY_NODE,this.right=null!=_?_:Jt.EMPTY_NODE}return LLRBNode.prototype.copy=function(i,o,s,v,_){return new LLRBNode(null!=i?i:this.key,null!=o?o:this.value,null!=s?s:this.color,null!=v?v:this.left,null!=_?_:this.right)},LLRBNode.prototype.count=function(){return this.left.count()+1+this.right.count()},LLRBNode.prototype.isEmpty=function(){return!1},LLRBNode.prototype.inorderTraversal=function(i){return this.left.inorderTraversal(i)||!!i(this.key,this.value)||this.right.inorderTraversal(i)},LLRBNode.prototype.reverseTraversal=function(i){return this.right.reverseTraversal(i)||i(this.key,this.value)||this.left.reverseTraversal(i)},LLRBNode.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},LLRBNode.prototype.minKey=function(){return this.min_().key},LLRBNode.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},LLRBNode.prototype.insert=function(i,o,s){var v=this,_=s(i,v.key);return(v=_<0?v.copy(null,null,null,v.left.insert(i,o,s),null):0===_?v.copy(null,o,null,null,null):v.copy(null,null,null,null,v.right.insert(i,o,s))).fixUp_()},LLRBNode.prototype.removeMin_=function(){if(this.left.isEmpty())return Jt.EMPTY_NODE;var i=this;return i.left.isRed_()||i.left.left.isRed_()||(i=i.moveRedLeft_()),(i=i.copy(null,null,null,i.left.removeMin_(),null)).fixUp_()},LLRBNode.prototype.remove=function(i,o){var s,v;if(o(i,(s=this).key)<0)s.left.isEmpty()||s.left.isRed_()||s.left.left.isRed_()||(s=s.moveRedLeft_()),s=s.copy(null,null,null,s.left.remove(i,o),null);else{if(s.left.isRed_()&&(s=s.rotateRight_()),s.right.isEmpty()||s.right.isRed_()||s.right.left.isRed_()||(s=s.moveRedRight_()),0===o(i,s.key)){if(s.right.isEmpty())return Jt.EMPTY_NODE;v=s.right.min_(),s=s.copy(v.key,v.value,null,null,s.right.removeMin_())}s=s.copy(null,null,null,null,s.right.remove(i,o))}return s.fixUp_()},LLRBNode.prototype.isRed_=function(){return this.color},LLRBNode.prototype.fixUp_=function(){var i=this;return i.right.isRed_()&&!i.left.isRed_()&&(i=i.rotateLeft_()),i.left.isRed_()&&i.left.left.isRed_()&&(i=i.rotateRight_()),i.left.isRed_()&&i.right.isRed_()&&(i=i.colorFlip_()),i},LLRBNode.prototype.moveRedLeft_=function(){var i=this.colorFlip_();return i.right.left.isRed_()&&(i=(i=(i=i.copy(null,null,null,null,i.right.rotateRight_())).rotateLeft_()).colorFlip_()),i},LLRBNode.prototype.moveRedRight_=function(){var i=this.colorFlip_();return i.left.left.isRed_()&&(i=(i=i.rotateRight_()).colorFlip_()),i},LLRBNode.prototype.rotateLeft_=function(){var i=this.copy(null,null,LLRBNode.RED,null,this.right.left);return this.right.copy(null,null,this.color,i,null)},LLRBNode.prototype.rotateRight_=function(){var i=this.copy(null,null,LLRBNode.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,i)},LLRBNode.prototype.colorFlip_=function(){var i=this.left.copy(null,null,!this.left.color,null,null),o=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,i,o)},LLRBNode.prototype.checkMaxDepth_=function(){var i=this.check_();return Math.pow(2,i)<=this.count()+1},LLRBNode.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var i=this.left.check_();if(i!==this.right.check_())throw new Error("Black depths differ");return i+(this.isRed_()?0:1)},LLRBNode.RED=!0,LLRBNode.BLACK=!1,LLRBNode}(),Kt=function(){function LLRBEmptyNode(){}return LLRBEmptyNode.prototype.copy=function(i,o,s,v,_){return this},LLRBEmptyNode.prototype.insert=function(i,o,s){return new Yt(i,o,null)},LLRBEmptyNode.prototype.remove=function(i,o){return this},LLRBEmptyNode.prototype.count=function(){return 0},LLRBEmptyNode.prototype.isEmpty=function(){return!0},LLRBEmptyNode.prototype.inorderTraversal=function(i){return!1},LLRBEmptyNode.prototype.reverseTraversal=function(i){return!1},LLRBEmptyNode.prototype.minKey=function(){return null},LLRBEmptyNode.prototype.maxKey=function(){return null},LLRBEmptyNode.prototype.check_=function(){return 0},LLRBEmptyNode.prototype.isRed_=function(){return!1},LLRBEmptyNode}(),Jt=function(){function SortedMap(i,o){void 0===o&&(o=SortedMap.EMPTY_NODE),this.comparator_=i,this.root_=o}return SortedMap.prototype.insert=function(i,o){return new SortedMap(this.comparator_,this.root_.insert(i,o,this.comparator_).copy(null,null,Yt.BLACK,null,null))},SortedMap.prototype.remove=function(i){return new SortedMap(this.comparator_,this.root_.remove(i,this.comparator_).copy(null,null,Yt.BLACK,null,null))},SortedMap.prototype.get=function(i){for(var o,s=this.root_;!s.isEmpty();){if(0===(o=this.comparator_(i,s.key)))return s.value;o<0?s=s.left:o>0&&(s=s.right)}return null},SortedMap.prototype.getPredecessorKey=function(i){for(var o,s=this.root_,v=null;!s.isEmpty();){if(0===(o=this.comparator_(i,s.key))){if(s.left.isEmpty())return v?v.key:null;for(s=s.left;!s.right.isEmpty();)s=s.right;return s.key}o<0?s=s.left:o>0&&(v=s,s=s.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},SortedMap.prototype.isEmpty=function(){return this.root_.isEmpty()},SortedMap.prototype.count=function(){return this.root_.count()},SortedMap.prototype.minKey=function(){return this.root_.minKey()},SortedMap.prototype.maxKey=function(){return this.root_.maxKey()},SortedMap.prototype.inorderTraversal=function(i){return this.root_.inorderTraversal(i)},SortedMap.prototype.reverseTraversal=function(i){return this.root_.reverseTraversal(i)},SortedMap.prototype.getIterator=function(i){return new Xt(this.root_,null,this.comparator_,!1,i)},SortedMap.prototype.getIteratorFrom=function(i,o){return new Xt(this.root_,i,this.comparator_,!1,o)},SortedMap.prototype.getReverseIteratorFrom=function(i,o){return new Xt(this.root_,i,this.comparator_,!0,o)},SortedMap.prototype.getReverseIterator=function(i){return new Xt(this.root_,null,this.comparator_,!0,i)},SortedMap.EMPTY_NODE=new Kt,SortedMap}();function NAME_ONLY_COMPARATOR(i,o){return nameCompare(i.name,o.name)}function NAME_COMPARATOR(i,o){return nameCompare(i,o)}var nn,_n,An,priorityHashText=function(i){return"number"==typeof i?"number:"+doubleToIEEE754String(i):"string:"+i},validatePriorityNode=function(i){if(i.isLeafNode()){var o=i.val();Object($.d)("string"==typeof o||"number"==typeof o||"object"==typeof o&&Object($.h)(o,".sv"),"Priority must be a string or number.")}else Object($.d)(i===Ut||i.isEmpty(),"priority of unexpected type.");Object($.d)(i===Ut||i.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Zn=function(){function LeafNode(i,o){void 0===o&&(o=LeafNode.__childrenNodeConstructor.EMPTY_NODE),this.value_=i,this.priorityNode_=o,this.lazyHash_=null,Object($.d)(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),validatePriorityNode(this.priorityNode_)}return Object.defineProperty(LeafNode,"__childrenNodeConstructor",{get:function(){return nn},set:function(i){nn=i},enumerable:!1,configurable:!0}),LeafNode.prototype.isLeafNode=function(){return!0},LeafNode.prototype.getPriority=function(){return this.priorityNode_},LeafNode.prototype.updatePriority=function(i){return new LeafNode(this.value_,i)},LeafNode.prototype.getImmediateChild=function(i){return".priority"===i?this.priorityNode_:LeafNode.__childrenNodeConstructor.EMPTY_NODE},LeafNode.prototype.getChild=function(i){return pathIsEmpty(i)?this:".priority"===pathGetFront(i)?this.priorityNode_:LeafNode.__childrenNodeConstructor.EMPTY_NODE},LeafNode.prototype.hasChild=function(){return!1},LeafNode.prototype.getPredecessorChildName=function(i,o){return null},LeafNode.prototype.updateImmediateChild=function(i,o){return".priority"===i?this.updatePriority(o):o.isEmpty()&&".priority"!==i?this:LeafNode.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(i,o).updatePriority(this.priorityNode_)},LeafNode.prototype.updateChild=function(i,o){var s=pathGetFront(i);return null===s?o:o.isEmpty()&&".priority"!==s?this:(Object($.d)(".priority"!==s||1===pathGetLength(i),".priority must be the last token in a path"),this.updateImmediateChild(s,LeafNode.__childrenNodeConstructor.EMPTY_NODE.updateChild(pathPopFront(i),o)))},LeafNode.prototype.isEmpty=function(){return!1},LeafNode.prototype.numChildren=function(){return 0},LeafNode.prototype.forEachChild=function(i,o){return!1},LeafNode.prototype.val=function(i){return i&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},LeafNode.prototype.hash=function(){if(null===this.lazyHash_){var i="";this.priorityNode_.isEmpty()||(i+="priority:"+priorityHashText(this.priorityNode_.val())+":");var o=typeof this.value_;i+=o+":",i+="number"===o?doubleToIEEE754String(this.value_):this.value_,this.lazyHash_=sha1(i)}return this.lazyHash_},LeafNode.prototype.getValue=function(){return this.value_},LeafNode.prototype.compareTo=function(i){return i===LeafNode.__childrenNodeConstructor.EMPTY_NODE?1:i instanceof LeafNode.__childrenNodeConstructor?-1:(Object($.d)(i.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(i))},LeafNode.prototype.compareToLeafNode_=function(i){var o=typeof i.value_,s=typeof this.value_,v=LeafNode.VALUE_TYPE_ORDER.indexOf(o),_=LeafNode.VALUE_TYPE_ORDER.indexOf(s);return Object($.d)(v>=0,"Unknown leaf type: "+o),Object($.d)(_>=0,"Unknown leaf type: "+s),v===_?"object"===s?0:this.value_0;)v.getNext(),_=v.peek();return v},ChildrenNode.prototype.compareTo=function(i){return this.isEmpty()?i.isEmpty()?0:-1:i.isLeafNode()||i.isEmpty()?1:i===_a?-1:0},ChildrenNode.prototype.withIndex=function(i){if(i===Gt||this.indexMap_.hasIndex(i))return this;var o=this.indexMap_.addIndex(i,this.children_);return new ChildrenNode(this.children_,this.priorityNode_,o)},ChildrenNode.prototype.isIndexed=function(i){return i===Gt||this.indexMap_.hasIndex(i)},ChildrenNode.prototype.equals=function(i){if(i===this)return!0;if(i.isLeafNode())return!1;var o=i;if(this.getPriority().equals(o.getPriority())){if(this.children_.count()===o.children_.count()){for(var s=this.getIterator(ca),v=o.getIterator(ca),_=s.getNext(),$=v.getNext();_&&$;){if(_.name!==$.name||!_.node.equals($.node))return!1;_=s.getNext(),$=v.getNext()}return null===_&&null===$}return!1}return!1},ChildrenNode.prototype.resolveIndex_=function(i){return i===Gt?null:this.indexMap_.get(i.toString())},ChildrenNode.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,ChildrenNode}(),_a=new(function(i){function MaxNode(){return i.call(this,new Jt(NAME_COMPARATOR),xa.EMPTY_NODE,Oa.Default)||this}return Object(ae.__extends)(MaxNode,i),MaxNode.prototype.compareTo=function(i){return i===this?0:1},MaxNode.prototype.equals=function(i){return i===this},MaxNode.prototype.getPriority=function(){return this},MaxNode.prototype.getImmediateChild=function(i){return xa.EMPTY_NODE},MaxNode.prototype.isEmpty=function(){return!1},MaxNode}(xa));Object.defineProperties(zt,{MIN:{value:new zt(ut,xa.EMPTY_NODE)},MAX:{value:new zt(lt,_a)}}),Ht.__EMPTY_NODE=xa.EMPTY_NODE,Zn.__childrenNodeConstructor=xa,function setMaxNode$1(i){Ut=i}(_a),function setMaxNode(i){An=i}(_a);var ja=!0;function nodeFromJSON(i,o){if(void 0===o&&(o=null),null===i)return xa.EMPTY_NODE;if("object"==typeof i&&".priority"in i&&(o=i[".priority"]),Object($.d)(null===o||"string"==typeof o||"number"==typeof o||"object"==typeof o&&".sv"in o,"Invalid priority type found: "+typeof o),"object"==typeof i&&".value"in i&&null!==i[".value"]&&(i=i[".value"]),"object"!=typeof i||".sv"in i)return new Zn(i,nodeFromJSON(o));if(i instanceof Array||!ja){var s=xa.EMPTY_NODE;return each(i,(function(o,v){if(Object($.h)(i,o)&&"."!==o.substring(0,1)){var _=nodeFromJSON(v);!_.isLeafNode()&&_.isEmpty()||(s=s.updateImmediateChild(o,_))}})),s.updatePriority(nodeFromJSON(o))}var v=[],_=!1;if(each(i,(function(i,o){if("."!==i.substring(0,1)){var s=nodeFromJSON(o);s.isEmpty()||(_=_||!s.getPriority().isEmpty(),v.push(new zt(i,s)))}})),0===v.length)return xa.EMPTY_NODE;var ae=buildChildSet(v,NAME_ONLY_COMPARATOR,(function(i){return i.name}),NAME_COMPARATOR);if(_){var pe=buildChildSet(v,ca.getCompare());return new xa(ae,nodeFromJSON(o),new Oa({".priority":pe},{".priority":ca}))}return new xa(ae,nodeFromJSON(o),Oa.Default)}!function setNodeFromJSON(i){_n=i}(nodeFromJSON);var er,tr,nr=function(i){function PathIndex(o){var s=i.call(this)||this;return s.indexPath_=o,Object($.d)(!pathIsEmpty(o)&&".priority"!==pathGetFront(o),"Can't create PathIndex with empty path or .priority key"),s}return Object(ae.__extends)(PathIndex,i),PathIndex.prototype.extractChild=function(i){return i.getChild(this.indexPath_)},PathIndex.prototype.isDefinedOn=function(i){return!i.getChild(this.indexPath_).isEmpty()},PathIndex.prototype.compare=function(i,o){var s=this.extractChild(i.node),v=this.extractChild(o.node),_=s.compareTo(v);return 0===_?nameCompare(i.name,o.name):_},PathIndex.prototype.makePost=function(i,o){var s=nodeFromJSON(i),v=xa.EMPTY_NODE.updateChild(this.indexPath_,s);return new zt(o,v)},PathIndex.prototype.maxPost=function(){var i=xa.EMPTY_NODE.updateChild(this.indexPath_,_a);return new zt(lt,i)},PathIndex.prototype.toString=function(){return pathSlice(this.indexPath_,0).join("/")},PathIndex}(Zt),ar=function(i){function ValueIndex(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(ValueIndex,i),ValueIndex.prototype.compare=function(i,o){var s=i.node.compareTo(o.node);return 0===s?nameCompare(i.name,o.name):s},ValueIndex.prototype.isDefinedOn=function(i){return!0},ValueIndex.prototype.indexedValueChanged=function(i,o){return!i.equals(o)},ValueIndex.prototype.minPost=function(){return zt.MIN},ValueIndex.prototype.maxPost=function(){return zt.MAX},ValueIndex.prototype.makePost=function(i,o){var s=nodeFromJSON(i);return new zt(o,s)},ValueIndex.prototype.toString=function(){return".value"},ValueIndex}(Zt),rr=new ar,ir="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",or=(er=0,tr=[],function(i){var o,s=i===er;er=i;var v=new Array(8);for(o=7;o>=0;o--)v[o]=ir.charAt(i%64),i=Math.floor(i/64);Object($.d)(0===i,"Cannot push at time == 0");var _=v.join("");if(s){for(o=11;o>=0&&63===tr[o];o--)tr[o]=0;tr[o]++}else for(o=0;o<12;o++)tr[o]=Math.floor(64*Math.random());for(o=0;o<12;o++)_+=ir.charAt(tr[o]);return Object($.d)(20===_.length,"nextPushId: Length should be 20."),_}),successor=function(i){if(i===""+pt)return"-";var o=tryParseInt(i);if(null!=o)return""+(o+1);for(var s=new Array(i.length),v=0;v=0&&"z"===s[_];)_--;if(-1===_)return lt;var $=s[_],ae=ir.charAt(ir.indexOf($)+1);return s[_]=ae,s.slice(0,_+1).join("")},predecessor=function(i){if(i===""+ht)return ut;var o=tryParseInt(i);if(null!=o)return""+(o-1);for(var s=new Array(i.length),v=0;v=0)return null!=_&&_.trackChildChange(changeChildChanged(o,s,nt)),we.updateImmediateChild(o,s);null!=_&&_.trackChildChange(changeChildRemoved(o,nt));var ot=we.updateImmediateChild(o,xa.EMPTY_NODE);return null!=rt&&this.rangedFilter_.matches(rt)?(null!=_&&_.trackChildChange(changeChildAdded(rt.name,rt.node)),ot.updateImmediateChild(rt.name,rt.node)):ot}return s.isEmpty()?i:tt&&ae(et,_e)>=0?(null!=_&&(_.trackChildChange(changeChildRemoved(et.name,et.node)),_.trackChildChange(changeChildAdded(o,s))),we.updateImmediateChild(o,s).updateImmediateChild(et.name,xa.EMPTY_NODE)):i},LimitedFilter}(),lr=function(){function QueryParams(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=ca}return QueryParams.prototype.hasStart=function(){return this.startSet_},QueryParams.prototype.hasStartAfter=function(){return this.startAfterSet_},QueryParams.prototype.hasEndBefore=function(){return this.endBeforeSet_},QueryParams.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_},QueryParams.prototype.getIndexStartValue=function(){return Object($.d)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},QueryParams.prototype.getIndexStartName=function(){return Object($.d)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:ut},QueryParams.prototype.hasEnd=function(){return this.endSet_},QueryParams.prototype.getIndexEndValue=function(){return Object($.d)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},QueryParams.prototype.getIndexEndName=function(){return Object($.d)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:lt},QueryParams.prototype.hasLimit=function(){return this.limitSet_},QueryParams.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},QueryParams.prototype.getLimit=function(){return Object($.d)(this.limitSet_,"Only valid if limit has been set"),this.limit_},QueryParams.prototype.getIndex=function(){return this.index_},QueryParams.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},QueryParams.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===ca},QueryParams.prototype.copy=function(){var i=new QueryParams;return i.limitSet_=this.limitSet_,i.limit_=this.limit_,i.startSet_=this.startSet_,i.indexStartValue_=this.indexStartValue_,i.startNameSet_=this.startNameSet_,i.indexStartName_=this.indexStartName_,i.endSet_=this.endSet_,i.indexEndValue_=this.indexEndValue_,i.endNameSet_=this.endNameSet_,i.indexEndName_=this.indexEndName_,i.index_=this.index_,i.viewFrom_=this.viewFrom_,i},QueryParams}();function queryParamsStartAt(i,o,s){var v=i.copy();return v.startSet_=!0,void 0===o&&(o=null),v.indexStartValue_=o,null!=s?(v.startNameSet_=!0,v.indexStartName_=s):(v.startNameSet_=!1,v.indexStartName_=""),v}function queryParamsStartAfter(i,o,s){var v;if(i.index_===Gt)"string"==typeof o&&(o=successor(o)),v=queryParamsStartAt(i,o,s);else{v=queryParamsStartAt(i,o,null==s?lt:successor(s))}return v.startAfterSet_=!0,v}function queryParamsEndAt(i,o,s){var v=i.copy();return v.endSet_=!0,void 0===o&&(o=null),v.indexEndValue_=o,void 0!==s?(v.endNameSet_=!0,v.indexEndName_=s):(v.endNameSet_=!1,v.indexEndName_=""),v}function queryParamsOrderBy(i,o){var s=i.copy();return s.index_=o,s}function queryParamsToRestQueryStringParameters(i){var o,s={};return i.isDefault()||(i.index_===ca?o="$priority":i.index_===rr?o="$value":i.index_===Gt?o="$key":(Object($.d)(i.index_ instanceof nr,"Unrecognized index type!"),o=i.index_.toString()),s.orderBy=Object($.C)(o),i.startSet_&&(s.startAt=Object($.C)(i.indexStartValue_),i.startNameSet_&&(s.startAt+=","+Object($.C)(i.indexStartName_))),i.endSet_&&(s.endAt=Object($.C)(i.indexEndValue_),i.endNameSet_&&(s.endAt+=","+Object($.C)(i.indexEndName_))),i.limitSet_&&(i.isViewFromLeft()?s.limitToFirst=i.limit_:s.limitToLast=i.limit_)),s}function queryParamsGetQueryObject(i){var o={};if(i.startSet_&&(o.sp=i.indexStartValue_,i.startNameSet_&&(o.sn=i.indexStartName_)),i.endSet_&&(o.ep=i.indexEndValue_,i.endNameSet_&&(o.en=i.indexEndName_)),i.limitSet_){o.l=i.limit_;var s=i.viewFrom_;""===s&&(s=i.isViewFromLeft()?"l":"r"),o.vf=s}return i.index_!==ca&&(o.i=i.index_.toString()),o}var cr=function(i){function ReadonlyRestClient(o,s,v,_){var $=i.call(this)||this;return $.repoInfo_=o,$.onDataUpdate_=s,$.authTokenProvider_=v,$.appCheckTokenProvider_=_,$.log_=logWrapper("p:rest:"),$.listens_={},$}return Object(ae.__extends)(ReadonlyRestClient,i),ReadonlyRestClient.prototype.reportStats=function(i){throw new Error("Method not implemented.")},ReadonlyRestClient.getListenId_=function(i,o){return void 0!==o?"tag$"+o:(Object($.d)(i._queryParams.isDefault(),"should have a tag if it's not a default query."),i._path.toString())},ReadonlyRestClient.prototype.listen=function(i,o,s,v){var _=this,ae=i._path.toString();this.log_("Listen called for "+ae+" "+i._queryIdentifier);var pe=ReadonlyRestClient.getListenId_(i,s),we={};this.listens_[pe]=we;var _e=queryParamsToRestQueryStringParameters(i._queryParams);this.restRequest_(ae+".json",_e,(function(i,o){var _e=o;(404===i&&(_e=null,i=null),null===i&&_.onDataUpdate_(ae,_e,!1,s),Object($.z)(_.listens_,pe)===we)&&v(i?401===i?"permission_denied":"rest_error:"+i:"ok",null)}))},ReadonlyRestClient.prototype.unlisten=function(i,o){var s=ReadonlyRestClient.getListenId_(i,o);delete this.listens_[s]},ReadonlyRestClient.prototype.get=function(i){var o=this,s=queryParamsToRestQueryStringParameters(i._queryParams),v=i._path.toString(),_=new $.a;return this.restRequest_(v+".json",s,(function(i,s){var $=s;404===i&&($=null,i=null),null===i?(o.onDataUpdate_(v,$,!1,null),_.resolve($)):_.reject(new Error($))})),_.promise},ReadonlyRestClient.prototype.refreshAuthToken=function(i){},ReadonlyRestClient.prototype.restRequest_=function(i,o,s){var v=this;return void 0===o&&(o={}),o.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((function(_){var pe=Object(ae.__read)(_,2),we=pe[0],_e=pe[1];we&&we.accessToken&&(o.auth=we.accessToken),_e&&_e.token&&(o.ac=_e.token);var et=(v.repoInfo_.secure?"https://":"http://")+v.repoInfo_.host+i+"?ns="+v.repoInfo_.namespace+Object($.y)(o);v.log_("Sending REST request for "+et);var tt=new XMLHttpRequest;tt.onreadystatechange=function(){if(s&&4===tt.readyState){v.log_("REST Response for "+et+" received. status:",tt.status,"response:",tt.responseText);var i=null;if(tt.status>=200&&tt.status<300){try{i=Object($.w)(tt.responseText)}catch(i){warn("Failed to parse JSON response for "+et+": "+tt.responseText)}s(null,i)}else 401!==tt.status&&404!==tt.status&&warn("Got unsuccessful REST response for "+et+" Status: "+tt.status),s(tt.status);s=null}},tt.open("GET",et,!0),tt.send()}))},ReadonlyRestClient}(Ft),hr=function(){function SnapshotHolder(){this.rootNode_=xa.EMPTY_NODE}return SnapshotHolder.prototype.getNode=function(i){return this.rootNode_.getChild(i)},SnapshotHolder.prototype.updateSnapshot=function(i,o){this.rootNode_=this.rootNode_.updateChild(i,o)},SnapshotHolder}();function newSparseSnapshotTree(){return{value:null,children:new Map}}function sparseSnapshotTreeRemember(i,o,s){if(pathIsEmpty(o))i.value=s,i.children.clear();else if(null!==i.value)i.value=i.value.updateChild(o,s);else{var v=pathGetFront(o);i.children.has(v)||i.children.set(v,newSparseSnapshotTree()),sparseSnapshotTreeRemember(i.children.get(v),o=pathPopFront(o),s)}}function sparseSnapshotTreeForget(i,o){if(pathIsEmpty(o))return i.value=null,i.children.clear(),!0;if(null!==i.value){if(i.value.isLeafNode())return!1;var s=i.value;return i.value=null,s.forEachChild(ca,(function(o,s){sparseSnapshotTreeRemember(i,new Mt(o),s)})),sparseSnapshotTreeForget(i,o)}if(i.children.size>0){var v=pathGetFront(o);if(o=pathPopFront(o),i.children.has(v))sparseSnapshotTreeForget(i.children.get(v),o)&&i.children.delete(v);return 0===i.children.size}return!0}function sparseSnapshotTreeForEachTree(i,o,s){null!==i.value?s(o,i.value):sparseSnapshotTreeForEachChild(i,(function(i,v){sparseSnapshotTreeForEachTree(v,new Mt(o.toString()+"/"+i),s)}))}function sparseSnapshotTreeForEachChild(i,o){i.children.forEach((function(i,s){o(s,i)}))}var pr,fr=function(){function StatsListener(i){this.collection_=i,this.last_=null}return StatsListener.prototype.get=function(){var i=this.collection_.get(),o=Object(ae.__assign)({},i);return this.last_&&each(this.last_,(function(i,s){o[i]=o[i]-s})),this.last_=i,o},StatsListener}(),gr=function(){function StatsReporter(i,o){this.server_=o,this.statsToReport_={},this.statsListener_=new fr(i);var s=1e4+2e4*Math.random();setTimeoutNonBlocking(this.reportStats_.bind(this),Math.floor(s))}return StatsReporter.prototype.reportStats_=function(){var i=this,o=this.statsListener_.get(),s={},v=!1;each(o,(function(o,_){_>0&&Object($.h)(i.statsToReport_,o)&&(s[o]=_,v=!0)})),v&&this.server_.reportStats(s),setTimeoutNonBlocking(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},StatsReporter}();function newOperationSourceServerTaggedQuery(i){return{fromUser:!1,fromServer:!0,queryId:i,tagged:!0}}!function(i){i[i.OVERWRITE=0]="OVERWRITE",i[i.MERGE=1]="MERGE",i[i.ACK_USER_WRITE=2]="ACK_USER_WRITE",i[i.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(pr||(pr={}));var mr,yr=function(){function AckUserWrite(i,o,s){this.path=i,this.affectedTree=o,this.revert=s,this.type=pr.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}return AckUserWrite.prototype.operationForChild=function(i){if(pathIsEmpty(this.path)){if(null!=this.affectedTree.value)return Object($.d)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var o=this.affectedTree.subtree(new Mt(i));return new AckUserWrite(newEmptyPath(),o,this.revert)}return Object($.d)(pathGetFront(this.path)===i,"operationForChild called for unrelated child."),new AckUserWrite(pathPopFront(this.path),this.affectedTree,this.revert)},AckUserWrite}(),vr=function(){function ListenComplete(i,o){this.source=i,this.path=o,this.type=pr.LISTEN_COMPLETE}return ListenComplete.prototype.operationForChild=function(i){return pathIsEmpty(this.path)?new ListenComplete(this.source,newEmptyPath()):new ListenComplete(this.source,pathPopFront(this.path))},ListenComplete}(),Rr=function(){function Overwrite(i,o,s){this.source=i,this.path=o,this.snap=s,this.type=pr.OVERWRITE}return Overwrite.prototype.operationForChild=function(i){return pathIsEmpty(this.path)?new Overwrite(this.source,newEmptyPath(),this.snap.getImmediateChild(i)):new Overwrite(this.source,pathPopFront(this.path),this.snap)},Overwrite}(),br=function(){function Merge(i,o,s){this.source=i,this.path=o,this.children=s,this.type=pr.MERGE}return Merge.prototype.operationForChild=function(i){if(pathIsEmpty(this.path)){var o=this.children.subtree(new Mt(i));return o.isEmpty()?null:o.value?new Rr(this.source,newEmptyPath(),o.value):new Merge(this.source,newEmptyPath(),o)}return Object($.d)(pathGetFront(this.path)===i,"Can't get a merge for a child not on the path of the operation"),new Merge(this.source,pathPopFront(this.path),this.children)},Merge.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},Merge}(),Or=function(){function CacheNode(i,o,s){this.node_=i,this.fullyInitialized_=o,this.filtered_=s}return CacheNode.prototype.isFullyInitialized=function(){return this.fullyInitialized_},CacheNode.prototype.isFiltered=function(){return this.filtered_},CacheNode.prototype.isCompleteForPath=function(i){if(pathIsEmpty(i))return this.isFullyInitialized()&&!this.filtered_;var o=pathGetFront(i);return this.isCompleteForChild(o)},CacheNode.prototype.isCompleteForChild=function(i){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(i)},CacheNode.prototype.getNode=function(){return this.node_},CacheNode}(),xr=function xr(i){this.query_=i,this.index_=this.query_._queryParams.getIndex()};function eventGeneratorGenerateEventsForChanges(i,o,s,v){var _=[],$=[];return o.forEach((function(o){var s;"child_changed"===o.type&&i.index_.indexedValueChanged(o.oldSnap,o.snapshotNode)&&$.push((s=o.childName,{type:"child_moved",snapshotNode:o.snapshotNode,childName:s}))})),eventGeneratorGenerateEventsForType(i,_,"child_removed",o,v,s),eventGeneratorGenerateEventsForType(i,_,"child_added",o,v,s),eventGeneratorGenerateEventsForType(i,_,"child_moved",$,v,s),eventGeneratorGenerateEventsForType(i,_,"child_changed",o,v,s),eventGeneratorGenerateEventsForType(i,_,"value",o,v,s),_}function eventGeneratorGenerateEventsForType(i,o,s,v,_,$){var ae=v.filter((function(i){return i.type===s}));ae.sort((function(o,s){return eventGeneratorCompareChanges(i,o,s)})),ae.forEach((function(s){var v=eventGeneratorMaterializeSingleChange(i,s,$);_.forEach((function(_){_.respondsTo(s.type)&&o.push(_.createEvent(v,i.query_))}))}))}function eventGeneratorMaterializeSingleChange(i,o,s){return"value"===o.type||"child_removed"===o.type||(o.prevName=s.getPredecessorChildName(o.childName,o.snapshotNode,i.index_)),o}function eventGeneratorCompareChanges(i,o,s){if(null==o.childName||null==s.childName)throw Object($.e)("Should only compare child_ events.");var v=new zt(o.childName,o.snapshotNode),_=new zt(s.childName,s.snapshotNode);return i.index_.compare(v,_)}function newViewCache(i,o){return{eventCache:i,serverCache:o}}function viewCacheUpdateEventSnap(i,o,s,v){return newViewCache(new Or(o,s,v),i.serverCache)}function viewCacheUpdateServerSnap(i,o,s,v){return newViewCache(i.eventCache,new Or(o,s,v))}function viewCacheGetCompleteEventSnap(i){return i.eventCache.isFullyInitialized()?i.eventCache.getNode():null}function viewCacheGetCompleteServerSnap(i){return i.serverCache.isFullyInitialized()?i.serverCache.getNode():null}var wr=function(){function ImmutableTree(i,o){void 0===o&&(mr||(mr=new Jt(stringCompare)),o=mr),this.value=i,this.children=o}return ImmutableTree.fromObject=function(i){var o=new ImmutableTree(null);return each(i,(function(i,s){o=o.set(new Mt(i),s)})),o},ImmutableTree.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},ImmutableTree.prototype.findRootMostMatchingPathAndValue=function(i,o){if(null!=this.value&&o(this.value))return{path:newEmptyPath(),value:this.value};if(pathIsEmpty(i))return null;var s=pathGetFront(i),v=this.children.get(s);if(null!==v){var _=v.findRootMostMatchingPathAndValue(pathPopFront(i),o);return null!=_?{path:pathChild(new Mt(s),_.path),value:_.value}:null}return null},ImmutableTree.prototype.findRootMostValueAndPath=function(i){return this.findRootMostMatchingPathAndValue(i,(function(){return!0}))},ImmutableTree.prototype.subtree=function(i){if(pathIsEmpty(i))return this;var o=pathGetFront(i),s=this.children.get(o);return null!==s?s.subtree(pathPopFront(i)):new ImmutableTree(null)},ImmutableTree.prototype.set=function(i,o){if(pathIsEmpty(i))return new ImmutableTree(o,this.children);var s=pathGetFront(i),v=(this.children.get(s)||new ImmutableTree(null)).set(pathPopFront(i),o),_=this.children.insert(s,v);return new ImmutableTree(this.value,_)},ImmutableTree.prototype.remove=function(i){if(pathIsEmpty(i))return this.children.isEmpty()?new ImmutableTree(null):new ImmutableTree(null,this.children);var o=pathGetFront(i),s=this.children.get(o);if(s){var v=s.remove(pathPopFront(i)),_=void 0;return _=v.isEmpty()?this.children.remove(o):this.children.insert(o,v),null===this.value&&_.isEmpty()?new ImmutableTree(null):new ImmutableTree(this.value,_)}return this},ImmutableTree.prototype.get=function(i){if(pathIsEmpty(i))return this.value;var o=pathGetFront(i),s=this.children.get(o);return s?s.get(pathPopFront(i)):null},ImmutableTree.prototype.setTree=function(i,o){if(pathIsEmpty(i))return o;var s=pathGetFront(i),v=(this.children.get(s)||new ImmutableTree(null)).setTree(pathPopFront(i),o),_=void 0;return _=v.isEmpty()?this.children.remove(s):this.children.insert(s,v),new ImmutableTree(this.value,_)},ImmutableTree.prototype.fold=function(i){return this.fold_(newEmptyPath(),i)},ImmutableTree.prototype.fold_=function(i,o){var s={};return this.children.inorderTraversal((function(v,_){s[v]=_.fold_(pathChild(i,v),o)})),o(i,this.value,s)},ImmutableTree.prototype.findOnPath=function(i,o){return this.findOnPath_(i,newEmptyPath(),o)},ImmutableTree.prototype.findOnPath_=function(i,o,s){var v=!!this.value&&s(o,this.value);if(v)return v;if(pathIsEmpty(i))return null;var _=pathGetFront(i),$=this.children.get(_);return $?$.findOnPath_(pathPopFront(i),pathChild(o,_),s):null},ImmutableTree.prototype.foreachOnPath=function(i,o){return this.foreachOnPath_(i,newEmptyPath(),o)},ImmutableTree.prototype.foreachOnPath_=function(i,o,s){if(pathIsEmpty(i))return this;this.value&&s(o,this.value);var v=pathGetFront(i),_=this.children.get(v);return _?_.foreachOnPath_(pathPopFront(i),pathChild(o,v),s):new ImmutableTree(null)},ImmutableTree.prototype.foreach=function(i){this.foreach_(newEmptyPath(),i)},ImmutableTree.prototype.foreach_=function(i,o){this.children.inorderTraversal((function(s,v){v.foreach_(pathChild(i,s),o)})),this.value&&o(i,this.value)},ImmutableTree.prototype.foreachChild=function(i){this.children.inorderTraversal((function(o,s){s.value&&i(o,s.value)}))},ImmutableTree}(),Cr=function(){function CompoundWrite(i){this.writeTree_=i}return CompoundWrite.empty=function(){return new CompoundWrite(new wr(null))},CompoundWrite}();function compoundWriteAddWrite(i,o,s){if(pathIsEmpty(o))return new Cr(new wr(s));var v=i.writeTree_.findRootMostValueAndPath(o);if(null!=v){var _=v.path,$=v.value,ae=newRelativePath(_,o);return $=$.updateChild(ae,s),new Cr(i.writeTree_.set(_,$))}var pe=new wr(s),we=i.writeTree_.setTree(o,pe);return new Cr(we)}function compoundWriteAddWrites(i,o,s){var v=i;return each(s,(function(i,s){v=compoundWriteAddWrite(v,pathChild(o,i),s)})),v}function compoundWriteRemoveWrite(i,o){if(pathIsEmpty(o))return Cr.empty();var s=i.writeTree_.setTree(o,new wr(null));return new Cr(s)}function compoundWriteHasCompleteWrite(i,o){return null!=compoundWriteGetCompleteNode(i,o)}function compoundWriteGetCompleteNode(i,o){var s=i.writeTree_.findRootMostValueAndPath(o);return null!=s?i.writeTree_.get(s.path).getChild(newRelativePath(s.path,o)):null}function compoundWriteGetCompleteChildren(i){var o=[],s=i.writeTree_.value;return null!=s?s.isLeafNode()||s.forEachChild(ca,(function(i,s){o.push(new zt(i,s))})):i.writeTree_.children.inorderTraversal((function(i,s){null!=s.value&&o.push(new zt(i,s.value))})),o}function compoundWriteChildCompoundWrite(i,o){if(pathIsEmpty(o))return i;var s=compoundWriteGetCompleteNode(i,o);return new Cr(null!=s?new wr(s):i.writeTree_.subtree(o))}function compoundWriteIsEmpty(i){return i.writeTree_.isEmpty()}function compoundWriteApply(i,o){return applySubtreeWrite(newEmptyPath(),i.writeTree_,o)}function applySubtreeWrite(i,o,s){if(null!=o.value)return s.updateChild(i,o.value);var v=null;return o.children.inorderTraversal((function(o,_){".priority"===o?(Object($.d)(null!==_.value,"Priority writes must always be leaf nodes"),v=_.value):s=applySubtreeWrite(pathChild(i,o),_,s)})),s.getChild(i).isEmpty()||null===v||(s=s.updateChild(pathChild(i,".priority"),v)),s}function writeTreeChildWrites(i,o){return newWriteTreeRef(o,i)}function writeTreeAddOverwrite(i,o,s,v,_){Object($.d)(v>i.lastWriteId,"Stacking an older write on top of newer ones"),void 0===_&&(_=!0),i.allWrites.push({path:o,snap:s,writeId:v,visible:_}),_&&(i.visibleWrites=compoundWriteAddWrite(i.visibleWrites,o,s)),i.lastWriteId=v}function writeTreeAddMerge(i,o,s,v){Object($.d)(v>i.lastWriteId,"Stacking an older merge on top of newer ones"),i.allWrites.push({path:o,children:s,writeId:v,visible:!0}),i.visibleWrites=compoundWriteAddWrites(i.visibleWrites,o,s),i.lastWriteId=v}function writeTreeGetWrite(i,o){for(var s=0;s=0,"removeWrite called with nonexistent writeId.");var v=i.allWrites[s];i.allWrites.splice(s,1);for(var _=v.visible,ae=!1,pe=i.allWrites.length-1;_&&pe>=0;){var we=i.allWrites[pe];we.visible&&(pe>=s&&writeTreeRecordContainsPath_(we,v.path)?_=!1:pathContains(v.path,we.path)&&(ae=!0)),pe--}if(_){if(ae)return writeTreeResetTree_(i),!0;v.snap?i.visibleWrites=compoundWriteRemoveWrite(i.visibleWrites,v.path):each(v.children,(function(o){i.visibleWrites=compoundWriteRemoveWrite(i.visibleWrites,pathChild(v.path,o))}));return!0}return!1}function writeTreeRecordContainsPath_(i,o){if(i.snap)return pathContains(i.path,o);for(var s in i.children)if(i.children.hasOwnProperty(s)&&pathContains(pathChild(i.path,s),o))return!0;return!1}function writeTreeResetTree_(i){i.visibleWrites=writeTreeLayerTree_(i.allWrites,writeTreeDefaultFilter_,newEmptyPath()),i.allWrites.length>0?i.lastWriteId=i.allWrites[i.allWrites.length-1].writeId:i.lastWriteId=-1}function writeTreeDefaultFilter_(i){return i.visible}function writeTreeLayerTree_(i,o,s){for(var v=Cr.empty(),_=0;_0||!i.eventCache.isFullyInitialized()||_&&!v.getNode().equals($)||!v.getNode().getPriority().equals($.getPriority()))&&s.push(changeValue(viewCacheGetCompleteEventSnap(o)))}}function viewProcessorGenerateEventCacheAfterServerEvent(i,o,s,v,_,ae){var pe=o.eventCache;if(null!=writeTreeRefShadowingWrite(v,s))return o;var we=void 0,_e=void 0;if(pathIsEmpty(s))if(Object($.d)(o.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),o.serverCache.isFiltered()){var et=viewCacheGetCompleteServerSnap(o),tt=writeTreeRefCalcCompleteEventChildren(v,et instanceof xa?et:xa.EMPTY_NODE);we=i.filter.updateFullNode(o.eventCache.getNode(),tt,ae)}else{var nt=writeTreeRefCalcCompleteEventCache(v,viewCacheGetCompleteServerSnap(o));we=i.filter.updateFullNode(o.eventCache.getNode(),nt,ae)}else{var rt=pathGetFront(s);if(".priority"===rt){Object($.d)(1===pathGetLength(s),"Can't have a priority with additional path components");var it=pe.getNode(),ot=writeTreeRefCalcEventCacheAfterServerOverwrite(v,s,it,_e=o.serverCache.getNode());we=null!=ot?i.filter.updatePriority(it,ot):pe.getNode()}else{var st=pathPopFront(s),dt=void 0;if(pe.isCompleteForChild(rt)){_e=o.serverCache.getNode();var ut=writeTreeRefCalcEventCacheAfterServerOverwrite(v,s,pe.getNode(),_e);dt=null!=ut?pe.getNode().getImmediateChild(rt).updateChild(st,ut):pe.getNode().getImmediateChild(rt)}else dt=writeTreeRefCalcCompleteChild(v,rt,o.serverCache);we=null!=dt?i.filter.updateChild(pe.getNode(),rt,dt,st,_,ae):pe.getNode()}}return viewCacheUpdateEventSnap(o,we,pe.isFullyInitialized()||pathIsEmpty(s),i.filter.filtersNodes())}function viewProcessorApplyServerOverwrite(i,o,s,v,_,$,ae,pe){var we,_e=o.serverCache,et=ae?i.filter:i.filter.getIndexedFilter();if(pathIsEmpty(s))we=et.updateFullNode(_e.getNode(),v,null);else if(et.filtersNodes()&&!_e.isFiltered()){var tt=_e.getNode().updateChild(s,v);we=et.updateFullNode(_e.getNode(),tt,null)}else{var nt=pathGetFront(s);if(!_e.isCompleteForPath(s)&&pathGetLength(s)>1)return o;var rt=pathPopFront(s),it=_e.getNode().getImmediateChild(nt).updateChild(rt,v);we=".priority"===nt?et.updatePriority(_e.getNode(),it):et.updateChild(_e.getNode(),nt,it,rt,_r,null)}var ot=viewCacheUpdateServerSnap(o,we,_e.isFullyInitialized()||pathIsEmpty(s),et.filtersNodes());return viewProcessorGenerateEventCacheAfterServerEvent(i,ot,s,_,new Er(_,ot,$),pe)}function viewProcessorApplyUserOverwrite(i,o,s,v,_,$,ae){var pe,we,_e=o.eventCache,et=new Er(_,o,$);if(pathIsEmpty(s))we=i.filter.updateFullNode(o.eventCache.getNode(),v,ae),pe=viewCacheUpdateEventSnap(o,we,!0,i.filter.filtersNodes());else{var tt=pathGetFront(s);if(".priority"===tt)we=i.filter.updatePriority(o.eventCache.getNode(),v),pe=viewCacheUpdateEventSnap(o,we,_e.isFullyInitialized(),_e.isFiltered());else{var nt=pathPopFront(s),rt=_e.getNode().getImmediateChild(tt),it=void 0;if(pathIsEmpty(nt))it=v;else{var ot=et.getCompleteChild(tt);it=null!=ot?".priority"===pathGetBack(nt)&&ot.getChild(pathParent(nt)).isEmpty()?ot:ot.updateChild(nt,v):xa.EMPTY_NODE}if(rt.equals(it))pe=o;else pe=viewCacheUpdateEventSnap(o,i.filter.updateChild(_e.getNode(),tt,it,nt,et,ae),_e.isFullyInitialized(),i.filter.filtersNodes())}}return pe}function viewProcessorCacheHasChild(i,o){return i.eventCache.isCompleteForChild(o)}function viewProcessorApplyUserMerge(i,o,s,v,_,$,ae){var pe=o;return v.foreach((function(v,we){var _e=pathChild(s,v);viewProcessorCacheHasChild(o,pathGetFront(_e))&&(pe=viewProcessorApplyUserOverwrite(i,pe,_e,we,_,$,ae))})),v.foreach((function(v,we){var _e=pathChild(s,v);viewProcessorCacheHasChild(o,pathGetFront(_e))||(pe=viewProcessorApplyUserOverwrite(i,pe,_e,we,_,$,ae))})),pe}function viewProcessorApplyMerge(i,o,s){return s.foreach((function(i,s){o=o.updateChild(i,s)})),o}function viewProcessorApplyServerMerge(i,o,s,v,_,$,ae,pe){if(o.serverCache.getNode().isEmpty()&&!o.serverCache.isFullyInitialized())return o;var we,_e=o;we=pathIsEmpty(s)?v:new wr(null).setTree(s,v);var et=o.serverCache.getNode();return we.children.inorderTraversal((function(s,v){if(et.hasChild(s)){var we=viewProcessorApplyMerge(0,o.serverCache.getNode().getImmediateChild(s),v);_e=viewProcessorApplyServerOverwrite(i,_e,new Mt(s),we,_,$,ae,pe)}})),we.children.inorderTraversal((function(s,v){var we=!o.serverCache.isCompleteForChild(s)&&void 0===v.value;if(!et.hasChild(s)&&!we){var tt=viewProcessorApplyMerge(0,o.serverCache.getNode().getImmediateChild(s),v);_e=viewProcessorApplyServerOverwrite(i,_e,new Mt(s),tt,_,$,ae,pe)}})),_e}function viewProcessorAckUserWrite(i,o,s,v,_,$,ae){if(null!=writeTreeRefShadowingWrite(_,s))return o;var pe=o.serverCache.isFiltered(),we=o.serverCache;if(null!=v.value){if(pathIsEmpty(s)&&we.isFullyInitialized()||we.isCompleteForPath(s))return viewProcessorApplyServerOverwrite(i,o,s,we.getNode().getChild(s),_,$,pe,ae);if(pathIsEmpty(s)){var _e=new wr(null);return we.getNode().forEachChild(Gt,(function(i,o){_e=_e.set(new Mt(i),o)})),viewProcessorApplyServerMerge(i,o,s,_e,_,$,pe,ae)}return o}var et=new wr(null);return v.foreach((function(i,o){var v=pathChild(s,i);we.isCompleteForPath(v)&&(et=et.set(i,we.getNode().getChild(v)))})),viewProcessorApplyServerMerge(i,o,s,et,_,$,pe,ae)}function viewProcessorListenComplete(i,o,s,v,_){var $=o.serverCache;return viewProcessorGenerateEventCacheAfterServerEvent(i,viewCacheUpdateServerSnap(o,$.getNode(),$.isFullyInitialized()||pathIsEmpty(s),$.isFiltered()),s,v,_r,_)}function viewProcessorRevertUserWrite(i,o,s,v,_,ae){var pe;if(null!=writeTreeRefShadowingWrite(v,s))return o;var we=new Er(v,o,_),_e=o.eventCache.getNode(),et=void 0;if(pathIsEmpty(s)||".priority"===pathGetFront(s)){var tt=void 0;if(o.serverCache.isFullyInitialized())tt=writeTreeRefCalcCompleteEventCache(v,viewCacheGetCompleteServerSnap(o));else{var nt=o.serverCache.getNode();Object($.d)(nt instanceof xa,"serverChildren would be complete if leaf node"),tt=writeTreeRefCalcCompleteEventChildren(v,nt)}et=i.filter.updateFullNode(_e,tt,ae)}else{var rt=pathGetFront(s),it=writeTreeRefCalcCompleteChild(v,rt,o.serverCache);null==it&&o.serverCache.isCompleteForChild(rt)&&(it=_e.getImmediateChild(rt)),(et=null!=it?i.filter.updateChild(_e,rt,it,pathPopFront(s),we,ae):o.eventCache.getNode().hasChild(rt)?i.filter.updateChild(_e,rt,xa.EMPTY_NODE,pathPopFront(s),we,ae):_e).isEmpty()&&o.serverCache.isFullyInitialized()&&(pe=writeTreeRefCalcCompleteEventCache(v,viewCacheGetCompleteServerSnap(o))).isLeafNode()&&(et=i.filter.updateFullNode(et,pe,ae))}return pe=o.serverCache.isFullyInitialized()||null!=writeTreeRefShadowingWrite(v,newEmptyPath()),viewCacheUpdateEventSnap(o,et,pe,i.filter.filtersNodes())}var kr,Ar=function(){function View(i,o){this.query_=i,this.eventRegistrations_=[];var s,v=this.query_._queryParams,_=new sr(v.getIndex()),$=(s=v).loadsAllData()?new sr(s.getIndex()):s.hasLimit()?new ur(s):new dr(s);this.processor_=newViewProcessor($);var ae=o.serverCache,pe=o.eventCache,we=_.updateFullNode(xa.EMPTY_NODE,ae.getNode(),null),_e=$.updateFullNode(xa.EMPTY_NODE,pe.getNode(),null),et=new Or(we,ae.isFullyInitialized(),_.filtersNodes()),tt=new Or(_e,pe.isFullyInitialized(),$.filtersNodes());this.viewCache_=newViewCache(tt,et),this.eventGenerator_=new xr(this.query_)}return Object.defineProperty(View.prototype,"query",{get:function(){return this.query_},enumerable:!1,configurable:!0}),View}();function viewGetServerCache(i){return i.viewCache_.serverCache.getNode()}function viewGetCompleteNode(i){return viewCacheGetCompleteEventSnap(i.viewCache_)}function viewGetCompleteServerCache(i,o){var s=viewCacheGetCompleteServerSnap(i.viewCache_);return s&&(i.query._queryParams.loadsAllData()||!pathIsEmpty(o)&&!s.getImmediateChild(pathGetFront(o)).isEmpty())?s.getChild(o):null}function viewIsEmpty(i){return 0===i.eventRegistrations_.length}function viewAddEventRegistration(i,o){i.eventRegistrations_.push(o)}function viewRemoveEventRegistration(i,o,s){var v=[];if(s){Object($.d)(null==o,"A cancel should cancel all event registrations.");var _=i.query._path;i.eventRegistrations_.forEach((function(i){var o=i.createCancelEvent(s,_);o&&v.push(o)}))}if(o){for(var ae=[],pe=0;pe0&&!v)if(_e){i.listenProvider_.stopListening(syncTreeQueryForListening_(o),null)}else we.forEach((function(o){var s=i.queryToTagMap.get(syncTreeMakeQueryKey_(o));i.listenProvider_.stopListening(syncTreeQueryForListening_(o),s)}));syncTreeRemoveTags_(i,we)}return ae}function syncTreeApplyTaggedQueryOverwrite(i,o,s,v){var _=syncTreeQueryKeyForTag_(i,v);if(null!=_){var $=syncTreeParseQueryKey_(_),ae=$.path,pe=$.queryId,we=newRelativePath(ae,o);return syncTreeApplyTaggedOperation_(i,ae,new Rr(newOperationSourceServerTaggedQuery(pe),we,s))}return[]}function syncTreeApplyTaggedQueryMerge(i,o,s,v){var _=syncTreeQueryKeyForTag_(i,v);if(_){var $=syncTreeParseQueryKey_(_),ae=$.path,pe=$.queryId,we=newRelativePath(ae,o),_e=wr.fromObject(s);return syncTreeApplyTaggedOperation_(i,ae,new br(newOperationSourceServerTaggedQuery(pe),we,_e))}return[]}function syncTreeAddEventRegistration(i,o,s){var v=o._path,_=null,ae=!1;i.syncPointTree_.foreachOnPath(v,(function(i,o){var s=newRelativePath(i,v);_=_||syncPointGetCompleteServerCache(o,s),ae=ae||syncPointHasCompleteView(o)}));var pe,we=i.syncPointTree_.get(v);(we?(ae=ae||syncPointHasCompleteView(we),_=_||syncPointGetCompleteServerCache(we,newEmptyPath())):(we=new Pr,i.syncPointTree_=i.syncPointTree_.set(v,we)),null!=_)?pe=!0:(pe=!1,_=xa.EMPTY_NODE,i.syncPointTree_.subtree(v).foreachChild((function(i,o){var s=syncPointGetCompleteServerCache(o,newEmptyPath());s&&(_=_.updateImmediateChild(i,s))})));var _e=syncPointViewExistsForQuery(we,o);if(!_e&&!o._queryParams.loadsAllData()){var et=syncTreeMakeQueryKey_(o);Object($.d)(!i.queryToTagMap.has(et),"View does not exist, but we have a tag");var tt=Tr++;i.queryToTagMap.set(et,tt),i.tagToQueryMap.set(tt,et)}var nt=syncPointAddEventRegistration(we,o,s,writeTreeChildWrites(i.pendingWriteTree_,v),_,pe);if(!_e&&!ae){var rt=syncPointViewForQuery(we,o);nt=nt.concat(syncTreeSetupListener_(i,o,rt))}return nt}function syncTreeCalcCompleteEventCache(i,o,s){var v=i.pendingWriteTree_,_=i.syncPointTree_.findOnPath(o,(function(i,s){var v=syncPointGetCompleteServerCache(s,newRelativePath(i,o));if(v)return v}));return writeTreeCalcCompleteEventCache(v,o,_,s,!0)}function syncTreeGetServerValue(i,o){var s=o._path,v=null;i.syncPointTree_.foreachOnPath(s,(function(i,o){var _=newRelativePath(i,s);v=v||syncPointGetCompleteServerCache(o,_)}));var _=i.syncPointTree_.get(s);_?v=v||syncPointGetCompleteServerCache(_,newEmptyPath()):(_=new Pr,i.syncPointTree_=i.syncPointTree_.set(s,_));var $=null!=v,ae=$?new Or(v,!0,!1):null;return viewGetCompleteNode(syncPointGetView(_,o,writeTreeChildWrites(i.pendingWriteTree_,o._path),$?ae.getNode():xa.EMPTY_NODE,$))}function syncTreeApplyOperationToSyncPoints_(i,o){return syncTreeApplyOperationHelper_(o,i.syncPointTree_,null,writeTreeChildWrites(i.pendingWriteTree_,newEmptyPath()))}function syncTreeApplyOperationHelper_(i,o,s,v){if(pathIsEmpty(i.path))return syncTreeApplyOperationDescendantsHelper_(i,o,s,v);var _=o.get(newEmptyPath());null==s&&null!=_&&(s=syncPointGetCompleteServerCache(_,newEmptyPath()));var $=[],ae=pathGetFront(i.path),pe=i.operationForChild(ae),we=o.children.get(ae);if(we&&pe){var _e=s?s.getImmediateChild(ae):null,et=writeTreeRefChild(v,ae);$=$.concat(syncTreeApplyOperationHelper_(pe,we,_e,et))}return _&&($=$.concat(syncPointApplyOperation(_,i,v,s))),$}function syncTreeApplyOperationDescendantsHelper_(i,o,s,v){var _=o.get(newEmptyPath());null==s&&null!=_&&(s=syncPointGetCompleteServerCache(_,newEmptyPath()));var $=[];return o.children.inorderTraversal((function(o,_){var ae=s?s.getImmediateChild(o):null,pe=writeTreeRefChild(v,o),we=i.operationForChild(o);we&&($=$.concat(syncTreeApplyOperationDescendantsHelper_(we,_,ae,pe)))})),_&&($=$.concat(syncPointApplyOperation(_,i,v,s))),$}function syncTreeCreateListenerForView_(i,o){var s=o.query,v=syncTreeTagForQuery_(i,s);return{hashFn:function(){return(viewGetServerCache(o)||xa.EMPTY_NODE).hash()},onComplete:function(o){if("ok"===o)return v?syncTreeApplyTaggedListenComplete(i,s._path,v):syncTreeApplyListenComplete(i,s._path);var _=errorForServerCode(o,s);return syncTreeRemoveEventRegistration(i,s,null,_)}}}function syncTreeTagForQuery_(i,o){var s=syncTreeMakeQueryKey_(o);return i.queryToTagMap.get(s)}function syncTreeMakeQueryKey_(i){return i._path.toString()+"$"+i._queryIdentifier}function syncTreeQueryKeyForTag_(i,o){return i.tagToQueryMap.get(o)}function syncTreeParseQueryKey_(i){var o=i.indexOf("$");return Object($.d)(-1!==o&&o0}function treeIsEmpty(i){return void 0===treeGetValue(i)&&!treeHasChildren(i)}function treeForEachChild(i,o){each(i.node.children,(function(s,v){o(new Br(s,i,v))}))}function treeForEachDescendant(i,o,s,v){s&&!v&&o(i),treeForEachChild(i,(function(i){treeForEachDescendant(i,o,!0,v)})),s&&v&&o(i)}function treeForEachAncestor(i,o,s){for(var v=s?i:i.parent;null!==v;){if(o(v))return!0;v=v.parent}return!1}function treeGetPath(i){return new Mt(null===i.parent?i.name:treeGetPath(i.parent)+"/"+i.name)}function treeUpdateParents(i){null!==i.parent&&treeUpdateChild(i.parent,i.name,i)}function treeUpdateChild(i,o,s){var v=treeIsEmpty(s),_=Object($.h)(i.node.children,o);v&&_?(delete i.node.children[o],i.node.childCount--,treeUpdateParents(i)):v||_||(i.node.children[o]=s.node,i.node.childCount++,treeUpdateParents(i))}var Lr=/[\[\].#$\/\u0000-\u001F\u007F]/,jr=/[\[\].#$\u0000-\u001F\u007F]/,Mr=10485760,isValidKey=function(i){return"string"==typeof i&&0!==i.length&&!Lr.test(i)},isValidPathString=function(i){return"string"==typeof i&&0!==i.length&&!jr.test(i)},isValidRootPathString=function(i){return i&&(i=i.replace(/^\/*\.info(\/|$)/,"/")),isValidPathString(i)},isValidPriority=function(i){return null===i||"string"==typeof i||"number"==typeof i&&!isInvalidJSONNumber(i)||i&&"object"==typeof i&&Object($.h)(i,".sv")},validateFirebaseDataArg=function(i,o,s,v){v&&void 0===o||validateFirebaseData(Object($.m)(i,"value"),o,s)},validateFirebaseData=function(i,o,s){var v=s instanceof Mt?new Qt(s,i):s;if(void 0===o)throw new Error(i+"contains undefined "+validationPathToErrorString(v));if("function"==typeof o)throw new Error(i+"contains a function "+validationPathToErrorString(v)+" with contents = "+o.toString());if(isInvalidJSONNumber(o))throw new Error(i+"contains "+o.toString()+" "+validationPathToErrorString(v));if("string"==typeof o&&o.length>Mr/3&&Object($.A)(o)>Mr)throw new Error(i+"contains a string greater than "+Mr+" utf8 bytes "+validationPathToErrorString(v)+" ('"+o.substring(0,50)+"...')");if(o&&"object"==typeof o){var _=!1,ae=!1;if(each(o,(function(o,s){if(".value"===o)_=!0;else if(".priority"!==o&&".sv"!==o&&(ae=!0,!isValidKey(o)))throw new Error(i+" contains an invalid key ("+o+") "+validationPathToErrorString(v)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');var pe,we;validationPathPush(v,o),validateFirebaseData(i,s,v),we=(pe=v).parts_.pop(),pe.byteLength_-=Object($.A)(we),pe.parts_.length>0&&(pe.byteLength_-=1)})),_&&ae)throw new Error(i+' contains ".value" child '+validationPathToErrorString(v)+" in addition to actual children.")}},validateFirebaseMergePaths=function(i,o){var s,v;for(s=0;s=0)i.server_=new cr(i.repoInfo_,(function(o,s,v,_){repoOnDataUpdate(i,o,s,v,_)}),i.authTokenProvider_,i.appCheckProvider_),setTimeout((function(){return repoOnConnectStatus(i,!0)}),0);else{if(null!=s){if("object"!=typeof s)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Object($.C)(s)}catch(i){throw new Error("Invalid authOverride provided: "+i)}}i.persistentConnection_=new qt(i.repoInfo_,o,(function(o,s,v,_){repoOnDataUpdate(i,o,s,v,_)}),(function(o){repoOnConnectStatus(i,o)}),(function(o){repoOnServerInfoUpdate(i,o)}),i.authTokenProvider_,i.appCheckProvider_,s),i.server_=i.persistentConnection_}var v,_,ae;i.authTokenProvider_.addTokenChangeListener((function(o){i.server_.refreshAuthToken(o)})),i.appCheckProvider_.addTokenChangeListener((function(o){i.server_.refreshAppCheckToken(o.token)})),i.statsReporter_=(v=i.repoInfo_,_=function(){return new gr(i.stats_,i.server_)},ae=v.toString(),St[ae]||(St[ae]=_()),St[ae]),i.infoData_=new hr,i.infoSyncTree_=new Ir({startListening:function(o,s,v,_){var $=[],ae=i.infoData_.getNode(o._path);return ae.isEmpty()||($=syncTreeApplyServerOverwrite(i.infoSyncTree_,o._path,ae),setTimeout((function(){_("ok")}),0)),$},stopListening:function(){}}),repoUpdateInfo(i,"connected",!1),i.serverSyncTree_=new Ir({startListening:function(o,s,v,_){return i.server_.listen(o,v,s,(function(s,v){var $=_(s,v);eventQueueRaiseEventsForChangedPath(i.eventQueue_,o._path,$)})),[]},stopListening:function(o,s){i.server_.unlisten(o,s)}})}function repoServerTime(i){var o=i.infoData_.getNode(new Mt(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+o}function repoGenerateServerValues(i){return generateWithValues({timestamp:repoServerTime(i)})}function repoOnDataUpdate(i,o,s,v,_){i.dataUpdateCount++;var ae=new Mt(o);s=i.interceptServerDataCallback_?i.interceptServerDataCallback_(o,s):s;var pe=[];if(_)if(v){var we=Object($.x)(s,(function(i){return nodeFromJSON(i)}));pe=syncTreeApplyTaggedQueryMerge(i.serverSyncTree_,ae,we,_)}else{var _e=nodeFromJSON(s);pe=syncTreeApplyTaggedQueryOverwrite(i.serverSyncTree_,ae,_e,_)}else if(v){var et=Object($.x)(s,(function(i){return nodeFromJSON(i)}));pe=syncTreeApplyServerMerge(i.serverSyncTree_,ae,et)}else{var tt=nodeFromJSON(s);pe=syncTreeApplyServerOverwrite(i.serverSyncTree_,ae,tt)}var nt=ae;pe.length>0&&(nt=repoRerunTransactions(i,ae)),eventQueueRaiseEventsForChangedPath(i.eventQueue_,nt,pe)}function repoInterceptServerData(i,o){i.interceptServerDataCallback_=o}function repoOnConnectStatus(i,o){repoUpdateInfo(i,"connected",o),!1===o&&repoRunOnDisconnectEvents(i)}function repoOnServerInfoUpdate(i,o){each(o,(function(o,s){repoUpdateInfo(i,o,s)}))}function repoUpdateInfo(i,o,s){var v=new Mt("/.info/"+o),_=nodeFromJSON(s);i.infoData_.updateSnapshot(v,_);var $=syncTreeApplyServerOverwrite(i.infoSyncTree_,v,_);eventQueueRaiseEventsForChangedPath(i.eventQueue_,v,$)}function repoGetNextWriteId(i){return i.nextWriteId_++}function repoGetValue(i,o){var s=syncTreeGetServerValue(i.serverSyncTree_,o);return null!=s?Promise.resolve(s):i.server_.get(o).then((function(s){var v=nodeFromJSON(s).withIndex(o._queryParams.getIndex()),_=syncTreeApplyServerOverwrite(i.serverSyncTree_,o._path,v);return eventQueueRaiseEventsAtPath(i.eventQueue_,o._path,_),Promise.resolve(v)}),(function(s){return repoLog(i,"get for query "+Object($.C)(o)+" failed: "+s),Promise.reject(new Error(s))}))}function repoSetWithPriority(i,o,s,v,_){repoLog(i,"set",{path:o.toString(),value:s,priority:v});var $=repoGenerateServerValues(i),ae=nodeFromJSON(s,v),pe=syncTreeCalcCompleteEventCache(i.serverSyncTree_,o),we=resolveDeferredValueSnapshot(ae,pe,$),_e=repoGetNextWriteId(i),et=syncTreeApplyUserOverwrite(i.serverSyncTree_,o,we,_e,!0);eventQueueQueueEvents(i.eventQueue_,et),i.server_.put(o.toString(),ae.val(!0),(function(s,v){var $="ok"===s;$||warn("set at "+o+" failed: "+s);var ae=syncTreeAckUserWrite(i.serverSyncTree_,_e,!$);eventQueueRaiseEventsForChangedPath(i.eventQueue_,o,ae),repoCallOnCompleteCallback(i,_,s,v)}));var tt=repoAbortTransactions(i,o);repoRerunTransactions(i,tt),eventQueueRaiseEventsForChangedPath(i.eventQueue_,tt,[])}function repoUpdate(i,o,s,v){repoLog(i,"update",{path:o.toString(),value:s});var _=!0,$=repoGenerateServerValues(i),ae={};if(each(s,(function(s,v){_=!1,ae[s]=resolveDeferredValueTree(pathChild(o,s),nodeFromJSON(v),i.serverSyncTree_,$)})),_)log("update() called with empty data. Don't do anything."),repoCallOnCompleteCallback(i,v,"ok",void 0);else{var pe=repoGetNextWriteId(i),we=syncTreeApplyUserMerge(i.serverSyncTree_,o,ae,pe);eventQueueQueueEvents(i.eventQueue_,we),i.server_.merge(o.toString(),s,(function(s,_){var $="ok"===s;$||warn("update at "+o+" failed: "+s);var ae=syncTreeAckUserWrite(i.serverSyncTree_,pe,!$),we=ae.length>0?repoRerunTransactions(i,o):o;eventQueueRaiseEventsForChangedPath(i.eventQueue_,we,ae),repoCallOnCompleteCallback(i,v,s,_)})),each(s,(function(s){var v=repoAbortTransactions(i,pathChild(o,s));repoRerunTransactions(i,v)})),eventQueueRaiseEventsForChangedPath(i.eventQueue_,o,[])}}function repoRunOnDisconnectEvents(i){repoLog(i,"onDisconnectEvents");var o=repoGenerateServerValues(i),s=newSparseSnapshotTree();sparseSnapshotTreeForEachTree(i.onDisconnect_,newEmptyPath(),(function(v,_){var $=resolveDeferredValueTree(v,_,i.serverSyncTree_,o);sparseSnapshotTreeRemember(s,v,$)}));var v=[];sparseSnapshotTreeForEachTree(s,newEmptyPath(),(function(o,s){v=v.concat(syncTreeApplyServerOverwrite(i.serverSyncTree_,o,s));var _=repoAbortTransactions(i,o);repoRerunTransactions(i,_)})),i.onDisconnect_=newSparseSnapshotTree(),eventQueueRaiseEventsForChangedPath(i.eventQueue_,newEmptyPath(),v)}function repoOnDisconnectSet(i,o,s,v){var _=nodeFromJSON(s);i.server_.onDisconnectPut(o.toString(),_.val(!0),(function(s,$){"ok"===s&&sparseSnapshotTreeRemember(i.onDisconnect_,o,_),repoCallOnCompleteCallback(i,v,s,$)}))}function repoOnDisconnectSetWithPriority(i,o,s,v,_){var $=nodeFromJSON(s,v);i.server_.onDisconnectPut(o.toString(),$.val(!0),(function(s,v){"ok"===s&&sparseSnapshotTreeRemember(i.onDisconnect_,o,$),repoCallOnCompleteCallback(i,_,s,v)}))}function repoOnDisconnectUpdate(i,o,s,v){if(Object($.q)(s))return log("onDisconnect().update() called with empty data. Don't do anything."),void repoCallOnCompleteCallback(i,v,"ok",void 0);i.server_.onDisconnectMerge(o.toString(),s,(function(_,$){"ok"===_&&each(s,(function(s,v){var _=nodeFromJSON(v);sparseSnapshotTreeRemember(i.onDisconnect_,pathChild(o,s),_)})),repoCallOnCompleteCallback(i,v,_,$)}))}function repoAddEventCallbackForQuery(i,o,s){var v;v=".info"===pathGetFront(o._path)?syncTreeAddEventRegistration(i.infoSyncTree_,o,s):syncTreeAddEventRegistration(i.serverSyncTree_,o,s),eventQueueRaiseEventsAtPath(i.eventQueue_,o._path,v)}function repoRemoveEventCallbackForQuery(i,o,s){var v;v=".info"===pathGetFront(o._path)?syncTreeRemoveEventRegistration(i.infoSyncTree_,o,s):syncTreeRemoveEventRegistration(i.serverSyncTree_,o,s),eventQueueRaiseEventsAtPath(i.eventQueue_,o._path,v)}function repoInterrupt(i){i.persistentConnection_&&i.persistentConnection_.interrupt(Vr)}function repoStats(i,o){if(void 0===o&&(o=!1),"undefined"!=typeof console){var s;o?(i.statsListener_||(i.statsListener_=new fr(i.stats_)),s=i.statsListener_.get()):s=i.stats_.get();var v=Object.keys(s).reduce((function(i,o){return Math.max(o.length,i)}),0);each(s,(function(i,o){for(var s=i,_=i.length;_0,"Sending zero length transaction queue"),s.every((function(i){return 0===i.status}))&&repoSendTransactionQueue(i,treeGetPath(o),s)}else treeHasChildren(o)&&treeForEachChild(o,(function(o){repoSendReadyTransactions(i,o)}))}function repoSendTransactionQueue(i,o,s){for(var v=s.map((function(i){return i.currentWriteId})),_=repoGetLatestState(i,o,v),ae=_,pe=_.hash(),we=0;we=Ur)nt=!0,we="maxretry",_=_.concat(syncTreeAckUserWrite(i.serverSyncTree_,et.currentWriteId,!0));else{var rt=repoGetLatestState(i,et.path,ae);et.currentInputSnapshot=rt;var it=o[pe].update(rt.val());if(void 0!==it){validateFirebaseData("transaction failed: Data returned ",it,et.path);var ot=nodeFromJSON(it);"object"==typeof it&&null!=it&&Object($.h)(it,".priority")||(ot=ot.updatePriority(rt.getPriority()));var st=et.currentWriteId,dt=repoGenerateServerValues(i),ut=resolveDeferredValueSnapshot(ot,rt,dt);et.currentOutputSnapshotRaw=ot,et.currentOutputSnapshotResolved=ut,et.currentWriteId=repoGetNextWriteId(i),ae.splice(ae.indexOf(st),1),_=(_=_.concat(syncTreeApplyUserOverwrite(i.serverSyncTree_,et.path,ut,et.currentWriteId,et.applyLocally))).concat(syncTreeAckUserWrite(i.serverSyncTree_,st,!0))}else nt=!0,we="nodata",_=_.concat(syncTreeAckUserWrite(i.serverSyncTree_,et.currentWriteId,!0))}eventQueueRaiseEventsForChangedPath(i.eventQueue_,s,_),_=[],nt&&(o[pe].status=2,_e=o[pe].unwatcher,setTimeout(_e,Math.floor(0)),o[pe].onComplete&&("nodata"===we?v.push((function(){return o[pe].onComplete(null,!1,o[pe].currentInputSnapshot)})):v.push((function(){return o[pe].onComplete(new Error(we),!1,null)}))))},pe=0;pe0?s:void 0)}treeForEachChild(o,(function(o){repoPruneCompletedTransactionsBelowNode(i,o)}))}function repoAbortTransactions(i,o){var s=treeGetPath(repoGetAncestorTransactionNode(i,o)),v=treeSubTree(i.transactionQueueTree_,o);return treeForEachAncestor(v,(function(o){repoAbortTransactionsOnNode(i,o)})),repoAbortTransactionsOnNode(i,v),treeForEachDescendant(v,(function(o){repoAbortTransactionsOnNode(i,o)})),s}function repoAbortTransactionsOnNode(i,o){var s=treeGetValue(o);if(s){for(var v=[],_=[],ae=-1,pe=0;pe0){var _=s[v];try{_=decodeURIComponent(_.replace(/\+/g," "))}catch(i){}o+="/"+_}return o}function decodeQuery(i){var o,s,v={};"?"===i.charAt(0)&&(i=i.substring(1));try{for(var _=Object(ae.__values)(i.split("&")),$=_.next();!$.done;$=_.next()){var pe=$.value;if(0!==pe.length){var we=pe.split("=");2===we.length?v[decodeURIComponent(we[0])]=decodeURIComponent(we[1]):warn("Invalid query segment '"+pe+"' in query '"+i+"'")}}}catch(i){o={error:i}}finally{try{$&&!$.done&&(s=_.return)&&s.call(_)}finally{if(o)throw o.error}}return v}var parseRepoInfo=function(i,o){var s=parseDatabaseURL(i),v=s.namespace;"firebase.com"===s.domain&&fatal(s.host+" is no longer supported. Please use .firebaseio.com instead"),v&&"undefined"!==v||"localhost"===s.domain||fatal("Cannot parse Firebase url. Please use https://.firebaseio.com"),s.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&warn("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var _="ws"===s.scheme||"wss"===s.scheme;return{repoInfo:new xt(s.host,s.secure,v,o,_,"",v!==s.subdomain),path:new Mt(s.pathString)}},parseDatabaseURL=function(i){var o="",s="",v="",_="",$="",ae=!0,pe="https",we=443;if("string"==typeof i){var _e=i.indexOf("//");_e>=0&&(pe=i.substring(0,_e-1),i=i.substring(_e+2));var et=i.indexOf("/");-1===et&&(et=i.length);var tt=i.indexOf("?");-1===tt&&(tt=i.length),o=i.substring(0,Math.min(et,tt)),et=0?(ae="https"===pe||"wss"===pe,we=parseInt(o.substring(_e+1),10)):_e=o.length;var rt=o.slice(0,_e);if("localhost"===rt.toLowerCase())s="localhost";else if(rt.split(".").length<=2)s=rt;else{var it=o.indexOf(".");v=o.substring(0,it).toLowerCase(),s=o.substring(it+1),$=v}"ns"in nt&&($=nt.ns)}return{host:o,port:we,domain:s,subdomain:v,secure:ae,scheme:pe,pathString:_,namespace:$}},$r=function(){function DataEvent(i,o,s,v){this.eventType=i,this.eventRegistration=o,this.snapshot=s,this.prevName=v}return DataEvent.prototype.getPath=function(){var i=this.snapshot.ref;return"value"===this.eventType?i._path:i.parent._path},DataEvent.prototype.getEventType=function(){return this.eventType},DataEvent.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},DataEvent.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+Object($.C)(this.snapshot.exportVal())},DataEvent}(),qr=function(){function CancelEvent(i,o,s){this.eventRegistration=i,this.error=o,this.path=s}return CancelEvent.prototype.getPath=function(){return this.path},CancelEvent.prototype.getEventType=function(){return"cancel"},CancelEvent.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},CancelEvent.prototype.toString=function(){return this.path.toString()+":cancel"},CancelEvent}(),zr=function(){function CallbackContext(i,o){this.snapshotCallback=i,this.cancelCallback=o}return CallbackContext.prototype.onValue=function(i,o){this.snapshotCallback.call(null,i,o)},CallbackContext.prototype.onCancel=function(i){return Object($.d)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,i)},Object.defineProperty(CallbackContext.prototype,"hasCancelCallback",{get:function(){return!!this.cancelCallback},enumerable:!1,configurable:!0}),CallbackContext.prototype.matches=function(i){return this.snapshotCallback===i.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===i.snapshotCallback.userCallback&&this.snapshotCallback.context===i.snapshotCallback.context},CallbackContext}(),Zr=function(){function OnDisconnect(i,o){this._repo=i,this._path=o}return OnDisconnect.prototype.cancel=function(){var i,o,s,v=new $.a;return i=this._repo,o=this._path,s=v.wrapCallback((function(){})),i.server_.onDisconnectCancel(o.toString(),(function(v,_){"ok"===v&&sparseSnapshotTreeForget(i.onDisconnect_,o),repoCallOnCompleteCallback(0,s,v,_)})),v.promise},OnDisconnect.prototype.remove=function(){validateWritablePath("OnDisconnect.remove",this._path);var i=new $.a;return repoOnDisconnectSet(this._repo,this._path,null,i.wrapCallback((function(){}))),i.promise},OnDisconnect.prototype.set=function(i){validateWritablePath("OnDisconnect.set",this._path),validateFirebaseDataArg("OnDisconnect.set",i,this._path,!1);var o=new $.a;return repoOnDisconnectSet(this._repo,this._path,i,o.wrapCallback((function(){}))),o.promise},OnDisconnect.prototype.setWithPriority=function(i,o){validateWritablePath("OnDisconnect.setWithPriority",this._path),validateFirebaseDataArg("OnDisconnect.setWithPriority",i,this._path,!1),validatePriority("OnDisconnect.setWithPriority",o,!1);var s=new $.a;return repoOnDisconnectSetWithPriority(this._repo,this._path,i,o,s.wrapCallback((function(){}))),s.promise},OnDisconnect.prototype.update=function(i){validateWritablePath("OnDisconnect.update",this._path),validateFirebaseMergeDataArg("OnDisconnect.update",i,this._path,!1);var o=new $.a;return repoOnDisconnectUpdate(this._repo,this._path,i,o.wrapCallback((function(){}))),o.promise},OnDisconnect}(),Hr=function(){function QueryImpl(i,o,s,v){this._repo=i,this._path=o,this._queryParams=s,this._orderByCalled=v}return Object.defineProperty(QueryImpl.prototype,"key",{get:function(){return pathIsEmpty(this._path)?null:pathGetBack(this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(QueryImpl.prototype,"ref",{get:function(){return new Gr(this._repo,this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(QueryImpl.prototype,"_queryIdentifier",{get:function(){var i=queryParamsGetQueryObject(this._queryParams),o=ObjectToUniqueKey(i);return"{}"===o?"default":o},enumerable:!1,configurable:!0}),Object.defineProperty(QueryImpl.prototype,"_queryObject",{get:function(){return queryParamsGetQueryObject(this._queryParams)},enumerable:!1,configurable:!0}),QueryImpl.prototype.isEqual=function(i){if(!((i=Object($.n)(i))instanceof QueryImpl))return!1;var o=this._repo===i._repo,s=pathEquals(this._path,i._path),v=this._queryIdentifier===i._queryIdentifier;return o&&s&&v},QueryImpl.prototype.toJSON=function(){return this.toString()},QueryImpl.prototype.toString=function(){return this._repo.toString()+pathToUrlEncodedString(this._path)},QueryImpl}();function validateNoPreviousOrderByCall(i,o){if(!0===i._orderByCalled)throw new Error(o+": You can't combine multiple orderBy calls.")}function validateQueryEndpoints(i){var o=null,s=null;if(i.hasStart()&&(o=i.getIndexStartValue()),i.hasEnd()&&(s=i.getIndexEndValue()),i.getIndex()===Gt){var v="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",_="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(i.hasStart()){if(i.getIndexStartName()!==ut)throw new Error(v);if("string"!=typeof o)throw new Error(_)}if(i.hasEnd()){if(i.getIndexEndName()!==lt)throw new Error(v);if("string"!=typeof s)throw new Error(_)}}else if(i.getIndex()===ca){if(null!=o&&!isValidPriority(o)||null!=s&&!isValidPriority(s))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(Object($.d)(i.getIndex()instanceof nr||i.getIndex()===rr,"unknown index type."),null!=o&&"object"==typeof o||null!=s&&"object"==typeof s)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function validateLimit(i){if(i.hasStart()&&i.hasEnd()&&i.hasLimit()&&!i.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}var Gr=function(i){function ReferenceImpl(o,s){return i.call(this,o,s,new lr,!1)||this}return Object(ae.__extends)(ReferenceImpl,i),Object.defineProperty(ReferenceImpl.prototype,"parent",{get:function(){var i=pathParent(this._path);return null===i?null:new ReferenceImpl(this._repo,i)},enumerable:!1,configurable:!0}),Object.defineProperty(ReferenceImpl.prototype,"root",{get:function(){for(var i=this;null!==i.parent;)i=i.parent;return i},enumerable:!1,configurable:!0}),ReferenceImpl}(Hr),Xr=function(){function DataSnapshot(i,o,s){this._node=i,this.ref=o,this._index=s}return Object.defineProperty(DataSnapshot.prototype,"priority",{get:function(){return this._node.getPriority().val()},enumerable:!1,configurable:!0}),Object.defineProperty(DataSnapshot.prototype,"key",{get:function(){return this.ref.key},enumerable:!1,configurable:!0}),Object.defineProperty(DataSnapshot.prototype,"size",{get:function(){return this._node.numChildren()},enumerable:!1,configurable:!0}),DataSnapshot.prototype.child=function(i){var o=new Mt(i),s=child(this.ref,i);return new DataSnapshot(this._node.getChild(o),s,ca)},DataSnapshot.prototype.exists=function(){return!this._node.isEmpty()},DataSnapshot.prototype.exportVal=function(){return this._node.val(!0)},DataSnapshot.prototype.forEach=function(i){var o=this;return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(function(s,v){return i(new DataSnapshot(v,child(o.ref,s),ca))}))},DataSnapshot.prototype.hasChild=function(i){var o=new Mt(i);return!this._node.getChild(o).isEmpty()},DataSnapshot.prototype.hasChildren=function(){return!this._node.isLeafNode()&&!this._node.isEmpty()},DataSnapshot.prototype.toJSON=function(){return this.exportVal()},DataSnapshot.prototype.val=function(){return this._node.val()},DataSnapshot}();function ref(i,o){return(i=Object($.n)(i))._checkNotDeleted("ref"),void 0!==o?child(i._root,o):i._root}function refFromURL(i,o){(i=Object($.n)(i))._checkNotDeleted("refFromURL");var s=parseRepoInfo(o,i._repo.repoInfo_.nodeAdmin);validateUrl("refFromURL",s);var v=s.repoInfo;return i._repo.repoInfo_.isCustomHost()||v.host===i._repo.repoInfo_.host||fatal("refFromURL: Host name does not match the current database: (found "+v.host+" but expected "+i._repo.repoInfo_.host+")"),ref(i,s.path.toString())}function child(i,o){return null===pathGetFront((i=Object($.n)(i))._path)?validateRootPathString("child","path",o,!1):validatePathString("child","path",o,!1),new Gr(i._repo,pathChild(i._path,o))}function push(i,o){i=Object($.n)(i),validateWritablePath("push",i._path),validateFirebaseDataArg("push",o,i._path,!0);var s,v=repoServerTime(i._repo),_=or(v),ae=child(i,_),pe=child(i,_);return s=null!=o?set(pe,o).then((function(){return pe})):Promise.resolve(pe),ae.then=s.then.bind(s),ae.catch=s.then.bind(s,void 0),ae}function remove(i){return validateWritablePath("remove",i._path),set(i,null)}function set(i,o){i=Object($.n)(i),validateWritablePath("set",i._path),validateFirebaseDataArg("set",o,i._path,!1);var s=new $.a;return repoSetWithPriority(i._repo,i._path,o,null,s.wrapCallback((function(){}))),s.promise}function setPriority(i,o){i=Object($.n)(i),validateWritablePath("setPriority",i._path),validatePriority("setPriority",o,!1);var s=new $.a;return repoSetWithPriority(i._repo,pathChild(i._path,".priority"),o,null,s.wrapCallback((function(){}))),s.promise}function setWithPriority(i,o,s){if(validateWritablePath("setWithPriority",i._path),validateFirebaseDataArg("setWithPriority",o,i._path,!1),validatePriority("setWithPriority",s,!1),".length"===i.key||".keys"===i.key)throw"setWithPriority failed: "+i.key+" is a read-only object.";var v=new $.a;return repoSetWithPriority(i._repo,i._path,o,s,v.wrapCallback((function(){}))),v.promise}function update(i,o){validateFirebaseMergeDataArg("update",o,i._path,!1);var s=new $.a;return repoUpdate(i._repo,i._path,o,s.wrapCallback((function(){}))),s.promise}function get(i){return repoGetValue((i=Object($.n)(i))._repo,i).then((function(o){return new Xr(o,new Gr(i._repo,i._path),i._queryParams.getIndex())}))}var Yr=function(){function ValueEventRegistration(i){this.callbackContext=i}return ValueEventRegistration.prototype.respondsTo=function(i){return"value"===i},ValueEventRegistration.prototype.createEvent=function(i,o){var s=o._queryParams.getIndex();return new $r("value",this,new Xr(i.snapshotNode,new Gr(o._repo,o._path),s))},ValueEventRegistration.prototype.getEventRunner=function(i){var o=this;return"cancel"===i.getEventType()?function(){return o.callbackContext.onCancel(i.error)}:function(){return o.callbackContext.onValue(i.snapshot,null)}},ValueEventRegistration.prototype.createCancelEvent=function(i,o){return this.callbackContext.hasCancelCallback?new qr(this,i,o):null},ValueEventRegistration.prototype.matches=function(i){return i instanceof ValueEventRegistration&&(!i.callbackContext||!this.callbackContext||i.callbackContext.matches(this.callbackContext))},ValueEventRegistration.prototype.hasAnyCallback=function(){return null!==this.callbackContext},ValueEventRegistration}(),Kr=function(){function ChildEventRegistration(i,o){this.eventType=i,this.callbackContext=o}return ChildEventRegistration.prototype.respondsTo=function(i){var o="children_added"===i?"child_added":i;return o="children_removed"===o?"child_removed":o,this.eventType===o},ChildEventRegistration.prototype.createCancelEvent=function(i,o){return this.callbackContext.hasCancelCallback?new qr(this,i,o):null},ChildEventRegistration.prototype.createEvent=function(i,o){Object($.d)(null!=i.childName,"Child events should have a childName.");var s=child(new Gr(o._repo,o._path),i.childName),v=o._queryParams.getIndex();return new $r(i.type,this,new Xr(i.snapshotNode,s,v),i.prevName)},ChildEventRegistration.prototype.getEventRunner=function(i){var o=this;return"cancel"===i.getEventType()?function(){return o.callbackContext.onCancel(i.error)}:function(){return o.callbackContext.onValue(i.snapshot,i.prevName)}},ChildEventRegistration.prototype.matches=function(i){return i instanceof ChildEventRegistration&&(this.eventType===i.eventType&&(!this.callbackContext||!i.callbackContext||this.callbackContext.matches(i.callbackContext)))},ChildEventRegistration.prototype.hasAnyCallback=function(){return!!this.callbackContext},ChildEventRegistration}();function addEventListener(i,o,s,v,_){var $;if("object"==typeof v&&($=void 0,_=v),"function"==typeof v&&($=v),_&&_.onlyOnce){var ae=s,onceCallback=function(o,s){repoRemoveEventCallbackForQuery(i._repo,i,we),ae(o,s)};onceCallback.userCallback=s.userCallback,onceCallback.context=s.context,s=onceCallback}var pe=new zr(s,$||void 0),we="value"===o?new Yr(pe):new Kr(o,pe);return repoAddEventCallbackForQuery(i._repo,i,we),function(){return repoRemoveEventCallbackForQuery(i._repo,i,we)}}function onValue(i,o,s,v){return addEventListener(i,"value",o,s,v)}function onChildAdded(i,o,s,v){return addEventListener(i,"child_added",o,s,v)}function onChildChanged(i,o,s,v){return addEventListener(i,"child_changed",o,s,v)}function onChildMoved(i,o,s,v){return addEventListener(i,"child_moved",o,s,v)}function onChildRemoved(i,o,s,v){return addEventListener(i,"child_removed",o,s,v)}function off(i,o,s){var v=null,_=s?new zr(s):null;"value"===o?v=new Yr(_):o&&(v=new Kr(o,_)),repoRemoveEventCallbackForQuery(i._repo,i,v)}var Jr=function Jr(){},_i=function(i){function QueryEndAtConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryEndAtConstraint,i),QueryEndAtConstraint.prototype._apply=function(i){validateFirebaseDataArg("endAt",this._value,i._path,!0);var o=queryParamsEndAt(i._queryParams,this._value,this._key);if(validateLimit(o),validateQueryEndpoints(o),i._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Hr(i._repo,i._path,o,i._orderByCalled)},QueryEndAtConstraint}(Jr);function endAt(i,o){return validateKey("endAt","key",o,!0),new _i(i,o)}var Ei=function(i){function QueryEndBeforeConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryEndBeforeConstraint,i),QueryEndBeforeConstraint.prototype._apply=function(i){validateFirebaseDataArg("endBefore",this._value,i._path,!1);var o,s,v,_,$=(o=i._queryParams,s=this._value,v=this._key,o.index_===Gt?("string"==typeof s&&(s=predecessor(s)),_=queryParamsEndAt(o,s,v)):_=queryParamsEndAt(o,s,null==v?ut:predecessor(v)),_.endBeforeSet_=!0,_);if(validateLimit($),validateQueryEndpoints($),i._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Hr(i._repo,i._path,$,i._orderByCalled)},QueryEndBeforeConstraint}(Jr);function endBefore(i,o){return validateKey("endBefore","key",o,!0),new Ei(i,o)}var Ui=function(i){function QueryStartAtConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryStartAtConstraint,i),QueryStartAtConstraint.prototype._apply=function(i){validateFirebaseDataArg("startAt",this._value,i._path,!0);var o=queryParamsStartAt(i._queryParams,this._value,this._key);if(validateLimit(o),validateQueryEndpoints(o),i._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new Hr(i._repo,i._path,o,i._orderByCalled)},QueryStartAtConstraint}(Jr);function startAt(i,o){return void 0===i&&(i=null),validateKey("startAt","key",o,!0),new Ui(i,o)}var Ji=function(i){function QueryStartAfterConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryStartAfterConstraint,i),QueryStartAfterConstraint.prototype._apply=function(i){validateFirebaseDataArg("startAfter",this._value,i._path,!1);var o=queryParamsStartAfter(i._queryParams,this._value,this._key);if(validateLimit(o),validateQueryEndpoints(o),i._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new Hr(i._repo,i._path,o,i._orderByCalled)},QueryStartAfterConstraint}(Jr);function startAfter(i,o){return validateKey("startAfter","key",o,!0),new Ji(i,o)}var no=function(i){function QueryLimitToFirstConstraint(o){var s=i.call(this)||this;return s._limit=o,s}return Object(ae.__extends)(QueryLimitToFirstConstraint,i),QueryLimitToFirstConstraint.prototype._apply=function(i){if(i._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new Hr(i._repo,i._path,(o=i._queryParams,s=this._limit,(v=o.copy()).limitSet_=!0,v.limit_=s,v.viewFrom_="l",v),i._orderByCalled);var o,s,v},QueryLimitToFirstConstraint}(Jr);function limitToFirst(i){if("number"!=typeof i||Math.floor(i)!==i||i<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new no(i)}var io=function(i){function QueryLimitToLastConstraint(o){var s=i.call(this)||this;return s._limit=o,s}return Object(ae.__extends)(QueryLimitToLastConstraint,i),QueryLimitToLastConstraint.prototype._apply=function(i){if(i._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new Hr(i._repo,i._path,(o=i._queryParams,s=this._limit,(v=o.copy()).limitSet_=!0,v.limit_=s,v.viewFrom_="r",v),i._orderByCalled);var o,s,v},QueryLimitToLastConstraint}(Jr);function limitToLast(i){if("number"!=typeof i||Math.floor(i)!==i||i<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new io(i)}var oo=function(i){function QueryOrderByChildConstraint(o){var s=i.call(this)||this;return s._path=o,s}return Object(ae.__extends)(QueryOrderByChildConstraint,i),QueryOrderByChildConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByChild");var o=new Mt(this._path);if(pathIsEmpty(o))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");var s=new nr(o),v=queryParamsOrderBy(i._queryParams,s);return validateQueryEndpoints(v),new Hr(i._repo,i._path,v,!0)},QueryOrderByChildConstraint}(Jr);function orderByChild(i){if("$key"===i)throw new Error('orderByChild: "$key" is invalid. Use orderByKey() instead.');if("$priority"===i)throw new Error('orderByChild: "$priority" is invalid. Use orderByPriority() instead.');if("$value"===i)throw new Error('orderByChild: "$value" is invalid. Use orderByValue() instead.');return validatePathString("orderByChild","path",i,!1),new oo(i)}var mo=function(i){function QueryOrderByKeyConstraint(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(QueryOrderByKeyConstraint,i),QueryOrderByKeyConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByKey");var o=queryParamsOrderBy(i._queryParams,Gt);return validateQueryEndpoints(o),new Hr(i._repo,i._path,o,!0)},QueryOrderByKeyConstraint}(Jr);var Ro=function(i){function QueryOrderByPriorityConstraint(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(QueryOrderByPriorityConstraint,i),QueryOrderByPriorityConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByPriority");var o=queryParamsOrderBy(i._queryParams,ca);return validateQueryEndpoints(o),new Hr(i._repo,i._path,o,!0)},QueryOrderByPriorityConstraint}(Jr);var Oo=function(i){function QueryOrderByValueConstraint(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(QueryOrderByValueConstraint,i),QueryOrderByValueConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByValue");var o=queryParamsOrderBy(i._queryParams,rr);return validateQueryEndpoints(o),new Hr(i._repo,i._path,o,!0)},QueryOrderByValueConstraint}(Jr);var wo=function(i){function QueryEqualToValueConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryEqualToValueConstraint,i),QueryEqualToValueConstraint.prototype._apply=function(i){if(validateFirebaseDataArg("equalTo",this._value,i._path,!1),i._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(i._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new _i(this._value,this._key)._apply(new Ui(this._value,this._key)._apply(i))},QueryEqualToValueConstraint}(Jr);function equalTo(i,o){return validateKey("equalTo","key",o,!0),new wo(i,o)}function query(i){for(var o,s,v=[],_=1;_0&&!this.isVisible?(this.introJs.start(),this.isVisible=!0,this.introJs.goToStepNumber(s+1),_&&_(this.introJs._currentStep)):!o&&this.isVisible&&(this.isVisible=!1,this.introJs.exit())}},{key:"render",value:function render(){return null}}])&&_defineProperties(_.prototype,pe),we&&_defineProperties(_,we),Steps}($.Component);o.default=et,_defineProperty(et,"propTypes",{enabled:_.default.bool,initialStep:_.default.number.isRequired,steps:_.default.arrayOf(_.default.shape({element:_.default.oneOfType([_.default.string,"undefined"==typeof Element?_.default.any:_.default.instanceOf(Element)]),intro:_.default.node.isRequired,position:pe.tooltipPosition,tooltipClass:_.default.string,highlightClass:_.default.string})).isRequired,onStart:_.default.func,onExit:_.default.func.isRequired,onBeforeExit:_.default.func,onBeforeChange:_.default.func,onAfterChange:_.default.func,onChange:_.default.func,onPreventChange:_.default.func,onComplete:_.default.func,options:pe.options}),_defineProperty(et,"defaultProps",{enabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:we.options})},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var v=_interopRequireDefault(s(205)),_=_interopRequireDefault(s(2)),$=s(0),ae=_interopRequireWildcard(s(206)),pe=_interopRequireWildcard(s(207)),we=s(208);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var i=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return i},i}function _interopRequireWildcard(i){if(i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var o=_getRequireWildcardCache();if(o&&o.has(i))return o.get(i);var s={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in i)if(Object.prototype.hasOwnProperty.call(i,_)){var $=v?Object.getOwnPropertyDescriptor(i,_):null;$&&($.get||$.set)?Object.defineProperty(s,_,$):s[_]=i[_]}return s.default=i,o&&o.set(i,s),s}function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(i){return typeof i}:function _typeof(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}function ownKeys(i,o){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(i);o&&(v=v.filter((function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable}))),s.push.apply(s,v)}return s}function _objectSpread(i){for(var o=1;o0?this.introJs.showHints():o||this.introJs.hideHints()}},{key:"render",value:function render(){return null}}])&&_defineProperties(_.prototype,$),ae&&_defineProperties(_,ae),Hints}($.Component);o.default=_e,_defineProperty(_e,"propTypes",{enabled:_.default.bool,hints:_.default.arrayOf(_.default.shape({element:_.default.string.isRequired,hint:_.default.string.isRequired,hintPosition:ae.hintPosition})).isRequired,onClick:_.default.func,onClose:_.default.func,options:ae.options}),_defineProperty(_e,"defaultProps",{enabled:!1,onClick:null,onClose:null,options:pe.options})},function(i,o,s){},,,,,,,,,,,,function(i,o,s){!function webpackUniversalModuleDefinition(o,s){i.exports=s()}(0,(function(){return function(i){var o={};function __webpack_require__(s){if(o[s])return o[s].exports;var v=o[s]={exports:{},id:s,loaded:!1};return i[s].call(v.exports,v,v.exports,__webpack_require__),v.loaded=!0,v.exports}return __webpack_require__.m=i,__webpack_require__.c=o,__webpack_require__.p="",__webpack_require__(0)}([function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(1),_=s(3),$=s(8),ae=s(15);function parse(i,o,s){var ae=null,proxyDelegate=function(i,o){s&&s(i,o),ae&&ae.visit(i,o)},pe="function"==typeof s?proxyDelegate:null,we=!1;if(o){we="boolean"==typeof o.comment&&o.comment;var _e="boolean"==typeof o.attachComment&&o.attachComment;(we||_e)&&((ae=new v.CommentHandler).attach=_e,o.comment=!0,pe=proxyDelegate)}var et,tt=!1;o&&"string"==typeof o.sourceType&&(tt="module"===o.sourceType),et=o&&"boolean"==typeof o.jsx&&o.jsx?new _.JSXParser(i,o,pe):new $.Parser(i,o,pe);var nt=tt?et.parseModule():et.parseScript();return we&&ae&&(nt.comments=ae.comments),et.config.tokens&&(nt.tokens=et.tokens),et.config.tolerant&&(nt.errors=et.errorHandler.errors),nt}o.parse=parse,o.parseModule=function parseModule(i,o,s){var v=o||{};return v.sourceType="module",parse(i,v,s)},o.parseScript=function parseScript(i,o,s){var v=o||{};return v.sourceType="script",parse(i,v,s)},o.tokenize=function tokenize(i,o,s){var v,_=new ae.Tokenizer(i,o);v=[];try{for(;;){var $=_.getNextToken();if(!$)break;s&&($=s($)),v.push($)}}catch(i){_.errorHandler.tolerate(i)}return _.errorHandler.tolerant&&(v.errors=_.errors()),v};var pe=s(2);o.Syntax=pe.Syntax,o.version="4.0.1"},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(2),_=function(){function CommentHandler(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return CommentHandler.prototype.insertInnerComments=function(i,o){if(i.type===v.Syntax.BlockStatement&&0===i.body.length){for(var s=[],_=this.leading.length-1;_>=0;--_){var $=this.leading[_];o.end.offset>=$.start&&(s.unshift($.comment),this.leading.splice(_,1),this.trailing.splice(_,1))}s.length&&(i.innerComments=s)}},CommentHandler.prototype.findTrailingComments=function(i){var o=[];if(this.trailing.length>0){for(var s=this.trailing.length-1;s>=0;--s){var v=this.trailing[s];v.start>=i.end.offset&&o.unshift(v.comment)}return this.trailing.length=0,o}var _=this.stack[this.stack.length-1];if(_&&_.node.trailingComments){var $=_.node.trailingComments[0];$&&$.range[0]>=i.end.offset&&(o=_.node.trailingComments,delete _.node.trailingComments)}return o},CommentHandler.prototype.findLeadingComments=function(i){for(var o,s=[];this.stack.length>0;){if(!(($=this.stack[this.stack.length-1])&&$.start>=i.start.offset))break;o=$.node,this.stack.pop()}if(o){for(var v=(o.leadingComments?o.leadingComments.length:0)-1;v>=0;--v){var _=o.leadingComments[v];_.range[1]<=i.start.offset&&(s.unshift(_),o.leadingComments.splice(v,1))}return o.leadingComments&&0===o.leadingComments.length&&delete o.leadingComments,s}for(v=this.leading.length-1;v>=0;--v){var $;($=this.leading[v]).start<=i.start.offset&&(s.unshift($.comment),this.leading.splice(v,1))}return s},CommentHandler.prototype.visitNode=function(i,o){if(!(i.type===v.Syntax.Program&&i.body.length>0)){this.insertInnerComments(i,o);var s=this.findTrailingComments(o),_=this.findLeadingComments(o);_.length>0&&(i.leadingComments=_),s.length>0&&(i.trailingComments=s),this.stack.push({node:i,start:o.start.offset})}},CommentHandler.prototype.visitComment=function(i,o){var s="L"===i.type[0]?"Line":"Block",v={type:s,value:i.value};if(i.range&&(v.range=i.range),i.loc&&(v.loc=i.loc),this.comments.push(v),this.attach){var _={comment:{type:s,value:i.value,range:[o.start.offset,o.end.offset]},start:o.start.offset};i.loc&&(_.comment.loc=i.loc),i.type=s,this.leading.push(_),this.trailing.push(_)}},CommentHandler.prototype.visit=function(i,o){"LineComment"===i.type||"BlockComment"===i.type?this.visitComment(i,o):this.attach&&this.visitNode(i,o)},CommentHandler}();o.CommentHandler=_},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(i,o,s){"use strict";var v,_=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])},function(i,o){function __(){this.constructor=i}v(i,o),i.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)});Object.defineProperty(o,"__esModule",{value:!0});var $=s(4),ae=s(5),pe=s(6),we=s(7),_e=s(8),et=s(13),tt=s(14);function getQualifiedElementName(i){var o;switch(i.type){case pe.JSXSyntax.JSXIdentifier:o=i.name;break;case pe.JSXSyntax.JSXNamespacedName:var s=i;o=getQualifiedElementName(s.namespace)+":"+getQualifiedElementName(s.name);break;case pe.JSXSyntax.JSXMemberExpression:var v=i;o=getQualifiedElementName(v.object)+"."+getQualifiedElementName(v.property)}return o}et.TokenName[100]="JSXIdentifier",et.TokenName[101]="JSXText";var nt=function(i){function JSXParser(o,s,v){return i.call(this,o,s,v)||this}return _(JSXParser,i),JSXParser.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():i.prototype.parsePrimaryExpression.call(this)},JSXParser.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},JSXParser.prototype.finishJSX=function(){this.nextToken()},JSXParser.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},JSXParser.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser.prototype.scanXHTMLEntity=function(i){for(var o="&",s=!0,v=!1,_=!1,ae=!1;!this.scanner.eof()&&s&&!v;){var pe=this.scanner.source[this.scanner.index];if(pe===i)break;if(v=";"===pe,o+=pe,++this.scanner.index,!v)switch(o.length){case 2:_="#"===pe;break;case 3:_&&(s=(ae="x"===pe)||$.Character.isDecimalDigit(pe.charCodeAt(0)),_=_&&!ae);break;default:s=(s=s&&!(_&&!$.Character.isDecimalDigit(pe.charCodeAt(0))))&&!(ae&&!$.Character.isHexDigit(pe.charCodeAt(0)))}}if(s&&v&&o.length>2){var we=o.substr(1,o.length-2);_&&we.length>1?o=String.fromCharCode(parseInt(we.substr(1),10)):ae&&we.length>2?o=String.fromCharCode(parseInt("0"+we.substr(1),16)):_||ae||!tt.XHTMLEntities[we]||(o=tt.XHTMLEntities[we])}return o},JSXParser.prototype.lexJSX=function(){var i=this.scanner.source.charCodeAt(this.scanner.index);if(60===i||62===i||47===i||58===i||61===i||123===i||125===i)return{type:7,value:pe=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===i||39===i){for(var o=this.scanner.index,s=this.scanner.source[this.scanner.index++],v="";!this.scanner.eof();){if((we=this.scanner.source[this.scanner.index++])===s)break;v+="&"===we?this.scanXHTMLEntity(s):we}return{type:8,value:v,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:o,end:this.scanner.index}}if(46===i){var _=this.scanner.source.charCodeAt(this.scanner.index+1),ae=this.scanner.source.charCodeAt(this.scanner.index+2),pe=46===_&&46===ae?"...":".";o=this.scanner.index;return this.scanner.index+=pe.length,{type:7,value:pe,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:o,end:this.scanner.index}}if(96===i)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if($.Character.isIdentifierStart(i)&&92!==i){o=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var we=this.scanner.source.charCodeAt(this.scanner.index);if($.Character.isIdentifierPart(we)&&92!==we)++this.scanner.index;else{if(45!==we)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(o,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:o,end:this.scanner.index}}return this.scanner.lex()},JSXParser.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var i=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(i)),i},JSXParser.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var i=this.scanner.index,o="";!this.scanner.eof();){var s=this.scanner.source[this.scanner.index];if("{"===s||"<"===s)break;++this.scanner.index,o+=s,$.Character.isLineTerminator(s.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===s&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var v={type:101,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:i,end:this.scanner.index};return o.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(v)),v},JSXParser.prototype.peekJSXToken=function(){var i=this.scanner.saveState();this.scanner.scanComments();var o=this.lexJSX();return this.scanner.restoreState(i),o},JSXParser.prototype.expectJSX=function(i){var o=this.nextJSXToken();7===o.type&&o.value===i||this.throwUnexpectedToken(o)},JSXParser.prototype.matchJSX=function(i){var o=this.peekJSXToken();return 7===o.type&&o.value===i},JSXParser.prototype.parseJSXIdentifier=function(){var i=this.createJSXNode(),o=this.nextJSXToken();return 100!==o.type&&this.throwUnexpectedToken(o),this.finalize(i,new ae.JSXIdentifier(o.value))},JSXParser.prototype.parseJSXElementName=function(){var i=this.createJSXNode(),o=this.parseJSXIdentifier();if(this.matchJSX(":")){var s=o;this.expectJSX(":");var v=this.parseJSXIdentifier();o=this.finalize(i,new ae.JSXNamespacedName(s,v))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var _=o;this.expectJSX(".");var $=this.parseJSXIdentifier();o=this.finalize(i,new ae.JSXMemberExpression(_,$))}return o},JSXParser.prototype.parseJSXAttributeName=function(){var i,o=this.createJSXNode(),s=this.parseJSXIdentifier();if(this.matchJSX(":")){var v=s;this.expectJSX(":");var _=this.parseJSXIdentifier();i=this.finalize(o,new ae.JSXNamespacedName(v,_))}else i=s;return i},JSXParser.prototype.parseJSXStringLiteralAttribute=function(){var i=this.createJSXNode(),o=this.nextJSXToken();8!==o.type&&this.throwUnexpectedToken(o);var s=this.getTokenRaw(o);return this.finalize(i,new we.Literal(o.value,s))},JSXParser.prototype.parseJSXExpressionAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var o=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new ae.JSXExpressionContainer(o))},JSXParser.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},JSXParser.prototype.parseJSXNameValueAttribute=function(){var i=this.createJSXNode(),o=this.parseJSXAttributeName(),s=null;return this.matchJSX("=")&&(this.expectJSX("="),s=this.parseJSXAttributeValue()),this.finalize(i,new ae.JSXAttribute(o,s))},JSXParser.prototype.parseJSXSpreadAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var o=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new ae.JSXSpreadAttribute(o))},JSXParser.prototype.parseJSXAttributes=function(){for(var i=[];!this.matchJSX("/")&&!this.matchJSX(">");){var o=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();i.push(o)}return i},JSXParser.prototype.parseJSXOpeningElement=function(){var i=this.createJSXNode();this.expectJSX("<");var o=this.parseJSXElementName(),s=this.parseJSXAttributes(),v=this.matchJSX("/");return v&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new ae.JSXOpeningElement(o,v,s))},JSXParser.prototype.parseJSXBoundaryElement=function(){var i=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var o=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(i,new ae.JSXClosingElement(o))}var s=this.parseJSXElementName(),v=this.parseJSXAttributes(),_=this.matchJSX("/");return _&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new ae.JSXOpeningElement(s,_,v))},JSXParser.prototype.parseJSXEmptyExpression=function(){var i=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(i,new ae.JSXEmptyExpression)},JSXParser.prototype.parseJSXExpressionContainer=function(){var i,o=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(i=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),i=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(o,new ae.JSXExpressionContainer(i))},JSXParser.prototype.parseJSXChildren=function(){for(var i=[];!this.scanner.eof();){var o=this.createJSXChildNode(),s=this.nextJSXText();if(s.start0))break;$=this.finalize(i.node,new ae.JSXElement(i.opening,i.children,i.closing));(i=o[o.length-1]).children.push($),o.pop()}}return i},JSXParser.prototype.parseJSXElement=function(){var i=this.createJSXNode(),o=this.parseJSXOpeningElement(),s=[],v=null;if(!o.selfClosing){var _=this.parseComplexJSXElement({node:i,opening:o,closing:v,children:s});s=_.children,v=_.closing}return this.finalize(i,new ae.JSXElement(o,s,v))},JSXParser.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var i=this.parseJSXElement();return this.finishJSX(),i},JSXParser.prototype.isStartOfExpression=function(){return i.prototype.isStartOfExpression.call(this)||this.match("<")},JSXParser}(_e.Parser);o.JSXParser=nt},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};o.Character={fromCodePoint:function(i){return i<65536?String.fromCharCode(i):String.fromCharCode(55296+(i-65536>>10))+String.fromCharCode(56320+(i-65536&1023))},isWhiteSpace:function(i){return 32===i||9===i||11===i||12===i||160===i||i>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(i)>=0},isLineTerminator:function(i){return 10===i||13===i||8232===i||8233===i},isIdentifierStart:function(i){return 36===i||95===i||i>=65&&i<=90||i>=97&&i<=122||92===i||i>=128&&s.NonAsciiIdentifierStart.test(o.Character.fromCodePoint(i))},isIdentifierPart:function(i){return 36===i||95===i||i>=65&&i<=90||i>=97&&i<=122||i>=48&&i<=57||92===i||i>=128&&s.NonAsciiIdentifierPart.test(o.Character.fromCodePoint(i))},isDecimalDigit:function(i){return i>=48&&i<=57},isHexDigit:function(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102},isOctalDigit:function(i){return i>=48&&i<=55}}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(6),_=function _(i){this.type=v.JSXSyntax.JSXClosingElement,this.name=i};o.JSXClosingElement=_;var $=function $(i,o,s){this.type=v.JSXSyntax.JSXElement,this.openingElement=i,this.children=o,this.closingElement=s};o.JSXElement=$;var ae=function ae(){this.type=v.JSXSyntax.JSXEmptyExpression};o.JSXEmptyExpression=ae;var pe=function pe(i){this.type=v.JSXSyntax.JSXExpressionContainer,this.expression=i};o.JSXExpressionContainer=pe;var we=function we(i){this.type=v.JSXSyntax.JSXIdentifier,this.name=i};o.JSXIdentifier=we;var _e=function _e(i,o){this.type=v.JSXSyntax.JSXMemberExpression,this.object=i,this.property=o};o.JSXMemberExpression=_e;var et=function et(i,o){this.type=v.JSXSyntax.JSXAttribute,this.name=i,this.value=o};o.JSXAttribute=et;var tt=function tt(i,o){this.type=v.JSXSyntax.JSXNamespacedName,this.namespace=i,this.name=o};o.JSXNamespacedName=tt;var nt=function nt(i,o,s){this.type=v.JSXSyntax.JSXOpeningElement,this.name=i,this.selfClosing=o,this.attributes=s};o.JSXOpeningElement=nt;var rt=function rt(i){this.type=v.JSXSyntax.JSXSpreadAttribute,this.argument=i};o.JSXSpreadAttribute=rt;var it=function it(i,o){this.type=v.JSXSyntax.JSXText,this.value=i,this.raw=o};o.JSXText=it},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(2),_=function _(i){this.type=v.Syntax.ArrayExpression,this.elements=i};o.ArrayExpression=_;var $=function $(i){this.type=v.Syntax.ArrayPattern,this.elements=i};o.ArrayPattern=$;var ae=function ae(i,o,s){this.type=v.Syntax.ArrowFunctionExpression,this.id=null,this.params=i,this.body=o,this.generator=!1,this.expression=s,this.async=!1};o.ArrowFunctionExpression=ae;var pe=function pe(i,o,s){this.type=v.Syntax.AssignmentExpression,this.operator=i,this.left=o,this.right=s};o.AssignmentExpression=pe;var we=function we(i,o){this.type=v.Syntax.AssignmentPattern,this.left=i,this.right=o};o.AssignmentPattern=we;var _e=function _e(i,o,s){this.type=v.Syntax.ArrowFunctionExpression,this.id=null,this.params=i,this.body=o,this.generator=!1,this.expression=s,this.async=!0};o.AsyncArrowFunctionExpression=_e;var et=function et(i,o,s){this.type=v.Syntax.FunctionDeclaration,this.id=i,this.params=o,this.body=s,this.generator=!1,this.expression=!1,this.async=!0};o.AsyncFunctionDeclaration=et;var tt=function tt(i,o,s){this.type=v.Syntax.FunctionExpression,this.id=i,this.params=o,this.body=s,this.generator=!1,this.expression=!1,this.async=!0};o.AsyncFunctionExpression=tt;var nt=function nt(i){this.type=v.Syntax.AwaitExpression,this.argument=i};o.AwaitExpression=nt;var rt=function rt(i,o,s){var _="||"===i||"&&"===i;this.type=_?v.Syntax.LogicalExpression:v.Syntax.BinaryExpression,this.operator=i,this.left=o,this.right=s};o.BinaryExpression=rt;var it=function it(i){this.type=v.Syntax.BlockStatement,this.body=i};o.BlockStatement=it;var ot=function ot(i){this.type=v.Syntax.BreakStatement,this.label=i};o.BreakStatement=ot;var st=function st(i,o){this.type=v.Syntax.CallExpression,this.callee=i,this.arguments=o};o.CallExpression=st;var dt=function dt(i,o){this.type=v.Syntax.CatchClause,this.param=i,this.body=o};o.CatchClause=dt;var ut=function ut(i){this.type=v.Syntax.ClassBody,this.body=i};o.ClassBody=ut;var lt=function lt(i,o,s){this.type=v.Syntax.ClassDeclaration,this.id=i,this.superClass=o,this.body=s};o.ClassDeclaration=lt;var ct=function ct(i,o,s){this.type=v.Syntax.ClassExpression,this.id=i,this.superClass=o,this.body=s};o.ClassExpression=ct;var ht=function ht(i,o){this.type=v.Syntax.MemberExpression,this.computed=!0,this.object=i,this.property=o};o.ComputedMemberExpression=ht;var pt=function pt(i,o,s){this.type=v.Syntax.ConditionalExpression,this.test=i,this.consequent=o,this.alternate=s};o.ConditionalExpression=pt;var ft=function ft(i){this.type=v.Syntax.ContinueStatement,this.label=i};o.ContinueStatement=ft;var gt=function gt(){this.type=v.Syntax.DebuggerStatement};o.DebuggerStatement=gt;var mt=function mt(i,o){this.type=v.Syntax.ExpressionStatement,this.expression=i,this.directive=o};o.Directive=mt;var yt=function yt(i,o){this.type=v.Syntax.DoWhileStatement,this.body=i,this.test=o};o.DoWhileStatement=yt;var vt=function vt(){this.type=v.Syntax.EmptyStatement};o.EmptyStatement=vt;var Rt=function Rt(i){this.type=v.Syntax.ExportAllDeclaration,this.source=i};o.ExportAllDeclaration=Rt;var bt=function bt(i){this.type=v.Syntax.ExportDefaultDeclaration,this.declaration=i};o.ExportDefaultDeclaration=bt;var Ot=function Ot(i,o,s){this.type=v.Syntax.ExportNamedDeclaration,this.declaration=i,this.specifiers=o,this.source=s};o.ExportNamedDeclaration=Ot;var xt=function xt(i,o){this.type=v.Syntax.ExportSpecifier,this.exported=o,this.local=i};o.ExportSpecifier=xt;var wt=function wt(i){this.type=v.Syntax.ExpressionStatement,this.expression=i};o.ExpressionStatement=wt;var Ct=function Ct(i,o,s){this.type=v.Syntax.ForInStatement,this.left=i,this.right=o,this.body=s,this.each=!1};o.ForInStatement=Ct;var St=function St(i,o,s){this.type=v.Syntax.ForOfStatement,this.left=i,this.right=o,this.body=s};o.ForOfStatement=St;var _t=function _t(i,o,s,_){this.type=v.Syntax.ForStatement,this.init=i,this.test=o,this.update=s,this.body=_};o.ForStatement=_t;var Et=function Et(i,o,s,_){this.type=v.Syntax.FunctionDeclaration,this.id=i,this.params=o,this.body=s,this.generator=_,this.expression=!1,this.async=!1};o.FunctionDeclaration=Et;var kt=function kt(i,o,s,_){this.type=v.Syntax.FunctionExpression,this.id=i,this.params=o,this.body=s,this.generator=_,this.expression=!1,this.async=!1};o.FunctionExpression=kt;var At=function At(i){this.type=v.Syntax.Identifier,this.name=i};o.Identifier=At;var Dt=function Dt(i,o,s){this.type=v.Syntax.IfStatement,this.test=i,this.consequent=o,this.alternate=s};o.IfStatement=Dt;var Pt=function Pt(i,o){this.type=v.Syntax.ImportDeclaration,this.specifiers=i,this.source=o};o.ImportDeclaration=Pt;var Tt=function Tt(i){this.type=v.Syntax.ImportDefaultSpecifier,this.local=i};o.ImportDefaultSpecifier=Tt;var It=function It(i){this.type=v.Syntax.ImportNamespaceSpecifier,this.local=i};o.ImportNamespaceSpecifier=It;var Ft=function Ft(i,o){this.type=v.Syntax.ImportSpecifier,this.local=i,this.imported=o};o.ImportSpecifier=Ft;var Nt=function Nt(i,o){this.type=v.Syntax.LabeledStatement,this.label=i,this.body=o};o.LabeledStatement=Nt;var Bt=function Bt(i,o){this.type=v.Syntax.Literal,this.value=i,this.raw=o};o.Literal=Bt;var Lt=function Lt(i,o){this.type=v.Syntax.MetaProperty,this.meta=i,this.property=o};o.MetaProperty=Lt;var jt=function jt(i,o,s,_,$){this.type=v.Syntax.MethodDefinition,this.key=i,this.computed=o,this.value=s,this.kind=_,this.static=$};o.MethodDefinition=jt;var Mt=function Mt(i){this.type=v.Syntax.Program,this.body=i,this.sourceType="module"};o.Module=Mt;var Qt=function Qt(i,o){this.type=v.Syntax.NewExpression,this.callee=i,this.arguments=o};o.NewExpression=Qt;var Vt=function Vt(i){this.type=v.Syntax.ObjectExpression,this.properties=i};o.ObjectExpression=Vt;var Ut=function Ut(i){this.type=v.Syntax.ObjectPattern,this.properties=i};o.ObjectPattern=Ut;var Wt=function Wt(i,o,s,_,$,ae){this.type=v.Syntax.Property,this.key=o,this.computed=s,this.value=_,this.kind=i,this.method=$,this.shorthand=ae};o.Property=Wt;var $t=function $t(i,o,s,_){this.type=v.Syntax.Literal,this.value=i,this.raw=o,this.regex={pattern:s,flags:_}};o.RegexLiteral=$t;var qt=function qt(i){this.type=v.Syntax.RestElement,this.argument=i};o.RestElement=qt;var zt=function zt(i){this.type=v.Syntax.ReturnStatement,this.argument=i};o.ReturnStatement=zt;var Zt=function Zt(i){this.type=v.Syntax.Program,this.body=i,this.sourceType="script"};o.Script=Zt;var Ht=function Ht(i){this.type=v.Syntax.SequenceExpression,this.expressions=i};o.SequenceExpression=Ht;var Gt=function Gt(i){this.type=v.Syntax.SpreadElement,this.argument=i};o.SpreadElement=Gt;var Xt=function Xt(i,o){this.type=v.Syntax.MemberExpression,this.computed=!1,this.object=i,this.property=o};o.StaticMemberExpression=Xt;var Yt=function Yt(){this.type=v.Syntax.Super};o.Super=Yt;var Kt=function Kt(i,o){this.type=v.Syntax.SwitchCase,this.test=i,this.consequent=o};o.SwitchCase=Kt;var Jt=function Jt(i,o){this.type=v.Syntax.SwitchStatement,this.discriminant=i,this.cases=o};o.SwitchStatement=Jt;var nn=function nn(i,o){this.type=v.Syntax.TaggedTemplateExpression,this.tag=i,this.quasi=o};o.TaggedTemplateExpression=nn;var _n=function _n(i,o){this.type=v.Syntax.TemplateElement,this.value=i,this.tail=o};o.TemplateElement=_n;var An=function An(i,o){this.type=v.Syntax.TemplateLiteral,this.quasis=i,this.expressions=o};o.TemplateLiteral=An;var Zn=function Zn(){this.type=v.Syntax.ThisExpression};o.ThisExpression=Zn;var aa=function aa(i){this.type=v.Syntax.ThrowStatement,this.argument=i};o.ThrowStatement=aa;var ra=function ra(i,o,s){this.type=v.Syntax.TryStatement,this.block=i,this.handler=o,this.finalizer=s};o.TryStatement=ra;var ia=function ia(i,o){this.type=v.Syntax.UnaryExpression,this.operator=i,this.argument=o,this.prefix=!0};o.UnaryExpression=ia;var ca=function ca(i,o,s){this.type=v.Syntax.UpdateExpression,this.operator=i,this.argument=o,this.prefix=s};o.UpdateExpression=ca;var ha=function ha(i,o){this.type=v.Syntax.VariableDeclaration,this.declarations=i,this.kind=o};o.VariableDeclaration=ha;var ga=function ga(i,o){this.type=v.Syntax.VariableDeclarator,this.id=i,this.init=o};o.VariableDeclarator=ga;var va=function va(i,o){this.type=v.Syntax.WhileStatement,this.test=i,this.body=o};o.WhileStatement=va;var Oa=function Oa(i,o){this.type=v.Syntax.WithStatement,this.object=i,this.body=o};o.WithStatement=Oa;var xa=function xa(i,o){this.type=v.Syntax.YieldExpression,this.argument=i,this.delegate=o};o.YieldExpression=xa},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(9),_=s(10),$=s(11),ae=s(7),pe=s(12),we=s(2),_e=s(13),et="ArrowParameterPlaceHolder",tt=function(){function Parser(i,o,s){void 0===o&&(o={}),this.config={range:"boolean"==typeof o.range&&o.range,loc:"boolean"==typeof o.loc&&o.loc,source:null,tokens:"boolean"==typeof o.tokens&&o.tokens,comment:"boolean"==typeof o.comment&&o.comment,tolerant:"boolean"==typeof o.tolerant&&o.tolerant},this.config.loc&&o.source&&null!==o.source&&(this.config.source=String(o.source)),this.delegate=s,this.errorHandler=new _.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new pe.Scanner(i,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return Parser.prototype.throwError=function(i){for(var o=[],s=1;s0&&this.delegate)for(var o=0;o>="===i||">>>="===i||"&="===i||"^="===i||"|="===i},Parser.prototype.isolateCoverGrammar=function(i){var o=this.context.isBindingElement,s=this.context.isAssignmentTarget,v=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var _=i.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=o,this.context.isAssignmentTarget=s,this.context.firstCoverInitializedNameError=v,_},Parser.prototype.inheritCoverGrammar=function(i){var o=this.context.isBindingElement,s=this.context.isAssignmentTarget,v=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var _=i.call(this);return this.context.isBindingElement=this.context.isBindingElement&&o,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&s,this.context.firstCoverInitializedNameError=v||this.context.firstCoverInitializedNameError,_},Parser.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},Parser.prototype.parsePrimaryExpression=function(){var i,o,s,v=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),i=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(v,new ae.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,$.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,o=this.nextToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.Literal(o.value,s));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,o=this.nextToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.Literal("true"===o.value,s));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,o=this.nextToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.Literal(null,s));break;case 10:i=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,i=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":i=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":i=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,o=this.nextRegexToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.RegexLiteral(o.regex,s,o.pattern,o.flags));break;default:i=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?i=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?i=this.finalize(v,new ae.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?i=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),i=this.finalize(v,new ae.ThisExpression)):i=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:i=this.throwUnexpectedToken(this.nextToken())}return i},Parser.prototype.parseSpreadElement=function(){var i=this.createNode();this.expect("...");var o=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(i,new ae.SpreadElement(o))},Parser.prototype.parseArrayInitializer=function(){var i=this.createNode(),o=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),o.push(null);else if(this.match("...")){var s=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),o.push(s)}else o.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(i,new ae.ArrayExpression(o))},Parser.prototype.parsePropertyMethod=function(i){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var o=this.context.strict,s=this.context.allowStrictDirective;this.context.allowStrictDirective=i.simple;var v=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&i.firstRestricted&&this.tolerateUnexpectedToken(i.firstRestricted,i.message),this.context.strict&&i.stricted&&this.tolerateUnexpectedToken(i.stricted,i.message),this.context.strict=o,this.context.allowStrictDirective=s,v},Parser.prototype.parsePropertyMethodFunction=function(){var i=this.createNode(),o=this.context.allowYield;this.context.allowYield=!0;var s=this.parseFormalParameters(),v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,!1))},Parser.prototype.parsePropertyMethodAsyncFunction=function(){var i=this.createNode(),o=this.context.allowYield,s=this.context.await;this.context.allowYield=!1,this.context.await=!0;var v=this.parseFormalParameters(),_=this.parsePropertyMethod(v);return this.context.allowYield=o,this.context.await=s,this.finalize(i,new ae.AsyncFunctionExpression(null,v.params,_))},Parser.prototype.parseObjectPropertyKey=function(){var i,o=this.createNode(),s=this.nextToken();switch(s.type){case 8:case 6:this.context.strict&&s.octal&&this.tolerateUnexpectedToken(s,$.Messages.StrictOctalLiteral);var v=this.getTokenRaw(s);i=this.finalize(o,new ae.Literal(s.value,v));break;case 3:case 1:case 5:case 4:i=this.finalize(o,new ae.Identifier(s.value));break;case 7:"["===s.value?(i=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):i=this.throwUnexpectedToken(s);break;default:i=this.throwUnexpectedToken(s)}return i},Parser.prototype.isPropertyKey=function(i,o){return i.type===we.Syntax.Identifier&&i.name===o||i.type===we.Syntax.Literal&&i.value===o},Parser.prototype.parseObjectProperty=function(i){var o,s=this.createNode(),v=this.lookahead,_=null,pe=null,we=!1,_e=!1,et=!1,tt=!1;if(3===v.type){var nt=v.value;this.nextToken(),we=this.match("["),_=(tt=!(this.hasLineTerminator||"async"!==nt||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(s,new ae.Identifier(nt))}else this.match("*")?this.nextToken():(we=this.match("["),_=this.parseObjectPropertyKey());var rt=this.qualifiedPropertyName(this.lookahead);if(3===v.type&&!tt&&"get"===v.value&&rt)o="get",we=this.match("["),_=this.parseObjectPropertyKey(),this.context.allowYield=!1,pe=this.parseGetterMethod();else if(3===v.type&&!tt&&"set"===v.value&&rt)o="set",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseSetterMethod();else if(7===v.type&&"*"===v.value&&rt)o="init",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseGeneratorMethod(),_e=!0;else if(_||this.throwUnexpectedToken(this.lookahead),o="init",this.match(":")&&!tt)!we&&this.isPropertyKey(_,"__proto__")&&(i.value&&this.tolerateError($.Messages.DuplicateProtoProperty),i.value=!0),this.nextToken(),pe=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))pe=tt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),_e=!0;else if(3===v.type){nt=this.finalize(s,new ae.Identifier(v.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),et=!0;var it=this.isolateCoverGrammar(this.parseAssignmentExpression);pe=this.finalize(s,new ae.AssignmentPattern(nt,it))}else et=!0,pe=nt}else this.throwUnexpectedToken(this.nextToken());return this.finalize(s,new ae.Property(o,_,we,pe,_e,et))},Parser.prototype.parseObjectInitializer=function(){var i=this.createNode();this.expect("{");for(var o=[],s={value:!1};!this.match("}");)o.push(this.parseObjectProperty(s)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(i,new ae.ObjectExpression(o))},Parser.prototype.parseTemplateHead=function(){v.assert(this.lookahead.head,"Template literal must start with a template head");var i=this.createNode(),o=this.nextToken(),s=o.value,_=o.cooked;return this.finalize(i,new ae.TemplateElement({raw:s,cooked:_},o.tail))},Parser.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var i=this.createNode(),o=this.nextToken(),s=o.value,v=o.cooked;return this.finalize(i,new ae.TemplateElement({raw:s,cooked:v},o.tail))},Parser.prototype.parseTemplateLiteral=function(){var i=this.createNode(),o=[],s=[],v=this.parseTemplateHead();for(s.push(v);!v.tail;)o.push(this.parseExpression()),v=this.parseTemplateElement(),s.push(v);return this.finalize(i,new ae.TemplateLiteral(s,o))},Parser.prototype.reinterpretExpressionAsPattern=function(i){switch(i.type){case we.Syntax.Identifier:case we.Syntax.MemberExpression:case we.Syntax.RestElement:case we.Syntax.AssignmentPattern:break;case we.Syntax.SpreadElement:i.type=we.Syntax.RestElement,this.reinterpretExpressionAsPattern(i.argument);break;case we.Syntax.ArrayExpression:i.type=we.Syntax.ArrayPattern;for(var o=0;o")||this.expect("=>"),i={type:et,params:[],async:!1};else{var o=this.lookahead,s=[];if(this.match("..."))i=this.parseRestElement(s),this.expect(")"),this.match("=>")||this.expect("=>"),i={type:et,params:[i],async:!1};else{var v=!1;if(this.context.isBindingElement=!0,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var _=[];for(this.context.isAssignmentTarget=!1,_.push(i);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var $=0;$<_.length;$++)this.reinterpretExpressionAsPattern(_[$]);v=!0,i={type:et,params:_,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),_.push(this.parseRestElement(s)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for($=0;$<_.length;$++)this.reinterpretExpressionAsPattern(_[$]);v=!0,i={type:et,params:_,async:!1}}else _.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(v)break}v||(i=this.finalize(this.startNode(o),new ae.SequenceExpression(_)))}if(!v){if(this.expect(")"),this.match("=>")&&(i.type===we.Syntax.Identifier&&"yield"===i.name&&(v=!0,i={type:et,params:[i],async:!1}),!v)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.type===we.Syntax.SequenceExpression)for($=0;$")){for(var we=0;we0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var _=[i,this.lookahead],$=o,pe=this.isolateCoverGrammar(this.parseExponentiationExpression),we=[$,s.value,pe],_e=[v];!((v=this.binaryPrecedence(this.lookahead))<=0);){for(;we.length>2&&v<=_e[_e.length-1];){pe=we.pop();var et=we.pop();_e.pop(),$=we.pop(),_.pop();var tt=this.startNode(_[_.length-1]);we.push(this.finalize(tt,new ae.BinaryExpression(et,$,pe)))}we.push(this.nextToken().value),_e.push(v),_.push(this.lookahead),we.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var nt=we.length-1;o=we[nt];for(var rt=_.pop();nt>1;){var it=_.pop(),ot=rt&&rt.lineStart;tt=this.startNode(it,ot),et=we[nt-1];o=this.finalize(tt,new ae.BinaryExpression(et,we[nt-2],o)),nt-=2,rt=it}}return o},Parser.prototype.parseConditionalExpression=function(){var i=this.lookahead,o=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var s=this.context.allowIn;this.context.allowIn=!0;var v=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=s,this.expect(":");var _=this.isolateCoverGrammar(this.parseAssignmentExpression);o=this.finalize(this.startNode(i),new ae.ConditionalExpression(o,v,_)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return o},Parser.prototype.checkPatternParam=function(i,o){switch(o.type){case we.Syntax.Identifier:this.validateParam(i,o,o.name);break;case we.Syntax.RestElement:this.checkPatternParam(i,o.argument);break;case we.Syntax.AssignmentPattern:this.checkPatternParam(i,o.left);break;case we.Syntax.ArrayPattern:for(var s=0;s")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var _=i.async,pe=this.reinterpretAsCoverFormalsList(i);if(pe){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var _e=this.context.strict,tt=this.context.allowStrictDirective;this.context.allowStrictDirective=pe.simple;var nt=this.context.allowYield,rt=this.context.await;this.context.allowYield=!0,this.context.await=_;var it=this.startNode(o);this.expect("=>");var ot=void 0;if(this.match("{")){var st=this.context.allowIn;this.context.allowIn=!0,ot=this.parseFunctionSourceElements(),this.context.allowIn=st}else ot=this.isolateCoverGrammar(this.parseAssignmentExpression);var dt=ot.type!==we.Syntax.BlockStatement;this.context.strict&&pe.firstRestricted&&this.throwUnexpectedToken(pe.firstRestricted,pe.message),this.context.strict&&pe.stricted&&this.tolerateUnexpectedToken(pe.stricted,pe.message),i=_?this.finalize(it,new ae.AsyncArrowFunctionExpression(pe.params,ot,dt)):this.finalize(it,new ae.ArrowFunctionExpression(pe.params,ot,dt)),this.context.strict=_e,this.context.allowStrictDirective=tt,this.context.allowYield=nt,this.context.await=rt}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError($.Messages.InvalidLHSInAssignment),this.context.strict&&i.type===we.Syntax.Identifier){var ut=i;this.scanner.isRestrictedWord(ut.name)&&this.tolerateUnexpectedToken(s,$.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(ut.name)&&this.tolerateUnexpectedToken(s,$.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(i):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var lt=(s=this.nextToken()).value,ct=this.isolateCoverGrammar(this.parseAssignmentExpression);i=this.finalize(this.startNode(o),new ae.AssignmentExpression(lt,i,ct)),this.context.firstCoverInitializedNameError=null}}return i},Parser.prototype.parseExpression=function(){var i=this.lookahead,o=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var s=[];for(s.push(o);2!==this.lookahead.type&&this.match(",");)this.nextToken(),s.push(this.isolateCoverGrammar(this.parseAssignmentExpression));o=this.finalize(this.startNode(i),new ae.SequenceExpression(s))}return o},Parser.prototype.parseStatementListItem=function(){var i;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,$.Messages.IllegalExportDeclaration),i=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,$.Messages.IllegalImportDeclaration),i=this.parseImportDeclaration();break;case"const":i=this.parseLexicalDeclaration({inFor:!1});break;case"function":i=this.parseFunctionDeclaration();break;case"class":i=this.parseClassDeclaration();break;case"let":i=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:i=this.parseStatement()}else i=this.parseStatement();return i},Parser.prototype.parseBlock=function(){var i=this.createNode();this.expect("{");for(var o=[];!this.match("}");)o.push(this.parseStatementListItem());return this.expect("}"),this.finalize(i,new ae.BlockStatement(o))},Parser.prototype.parseLexicalBinding=function(i,o){var s=this.createNode(),v=this.parsePattern([],i);this.context.strict&&v.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(v.name)&&this.tolerateError($.Messages.StrictVarName);var _=null;return"const"===i?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),_=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError($.Messages.DeclarationMissingInitializer,"const")):(!o.inFor&&v.type!==we.Syntax.Identifier||this.match("="))&&(this.expect("="),_=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(s,new ae.VariableDeclarator(v,_))},Parser.prototype.parseBindingList=function(i,o){for(var s=[this.parseLexicalBinding(i,o)];this.match(",");)this.nextToken(),s.push(this.parseLexicalBinding(i,o));return s},Parser.prototype.isLexicalDeclaration=function(){var i=this.scanner.saveState();this.scanner.scanComments();var o=this.scanner.lex();return this.scanner.restoreState(i),3===o.type||7===o.type&&"["===o.value||7===o.type&&"{"===o.value||4===o.type&&"let"===o.value||4===o.type&&"yield"===o.value},Parser.prototype.parseLexicalDeclaration=function(i){var o=this.createNode(),s=this.nextToken().value;v.assert("let"===s||"const"===s,"Lexical declaration must be either let or const");var _=this.parseBindingList(s,i);return this.consumeSemicolon(),this.finalize(o,new ae.VariableDeclaration(_,s))},Parser.prototype.parseBindingRestElement=function(i,o){var s=this.createNode();this.expect("...");var v=this.parsePattern(i,o);return this.finalize(s,new ae.RestElement(v))},Parser.prototype.parseArrayPattern=function(i,o){var s=this.createNode();this.expect("[");for(var v=[];!this.match("]");)if(this.match(","))this.nextToken(),v.push(null);else{if(this.match("...")){v.push(this.parseBindingRestElement(i,o));break}v.push(this.parsePatternWithDefault(i,o)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(s,new ae.ArrayPattern(v))},Parser.prototype.parsePropertyPattern=function(i,o){var s,v,_=this.createNode(),$=!1,pe=!1;if(3===this.lookahead.type){var we=this.lookahead;s=this.parseVariableIdentifier();var _e=this.finalize(_,new ae.Identifier(we.value));if(this.match("=")){i.push(we),pe=!0,this.nextToken();var et=this.parseAssignmentExpression();v=this.finalize(this.startNode(we),new ae.AssignmentPattern(_e,et))}else this.match(":")?(this.expect(":"),v=this.parsePatternWithDefault(i,o)):(i.push(we),pe=!0,v=_e)}else $=this.match("["),s=this.parseObjectPropertyKey(),this.expect(":"),v=this.parsePatternWithDefault(i,o);return this.finalize(_,new ae.Property("init",s,$,v,!1,pe))},Parser.prototype.parseObjectPattern=function(i,o){var s=this.createNode(),v=[];for(this.expect("{");!this.match("}");)v.push(this.parsePropertyPattern(i,o)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(s,new ae.ObjectPattern(v))},Parser.prototype.parsePattern=function(i,o){var s;return this.match("[")?s=this.parseArrayPattern(i,o):this.match("{")?s=this.parseObjectPattern(i,o):(!this.matchKeyword("let")||"const"!==o&&"let"!==o||this.tolerateUnexpectedToken(this.lookahead,$.Messages.LetInLexicalBinding),i.push(this.lookahead),s=this.parseVariableIdentifier(o)),s},Parser.prototype.parsePatternWithDefault=function(i,o){var s=this.lookahead,v=this.parsePattern(i,o);if(this.match("=")){this.nextToken();var _=this.context.allowYield;this.context.allowYield=!0;var $=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=_,v=this.finalize(this.startNode(s),new ae.AssignmentPattern(v,$))}return v},Parser.prototype.parseVariableIdentifier=function(i){var o=this.createNode(),s=this.nextToken();return 4===s.type&&"yield"===s.value?this.context.strict?this.tolerateUnexpectedToken(s,$.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(s):3!==s.type?this.context.strict&&4===s.type&&this.scanner.isStrictModeReservedWord(s.value)?this.tolerateUnexpectedToken(s,$.Messages.StrictReservedWord):(this.context.strict||"let"!==s.value||"var"!==i)&&this.throwUnexpectedToken(s):(this.context.isModule||this.context.await)&&3===s.type&&"await"===s.value&&this.tolerateUnexpectedToken(s),this.finalize(o,new ae.Identifier(s.value))},Parser.prototype.parseVariableDeclaration=function(i){var o=this.createNode(),s=this.parsePattern([],"var");this.context.strict&&s.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(s.name)&&this.tolerateError($.Messages.StrictVarName);var v=null;return this.match("=")?(this.nextToken(),v=this.isolateCoverGrammar(this.parseAssignmentExpression)):s.type===we.Syntax.Identifier||i.inFor||this.expect("="),this.finalize(o,new ae.VariableDeclarator(s,v))},Parser.prototype.parseVariableDeclarationList=function(i){var o={inFor:i.inFor},s=[];for(s.push(this.parseVariableDeclaration(o));this.match(",");)this.nextToken(),s.push(this.parseVariableDeclaration(o));return s},Parser.prototype.parseVariableStatement=function(){var i=this.createNode();this.expectKeyword("var");var o=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(i,new ae.VariableDeclaration(o,"var"))},Parser.prototype.parseEmptyStatement=function(){var i=this.createNode();return this.expect(";"),this.finalize(i,new ae.EmptyStatement)},Parser.prototype.parseExpressionStatement=function(){var i=this.createNode(),o=this.parseExpression();return this.consumeSemicolon(),this.finalize(i,new ae.ExpressionStatement(o))},Parser.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError($.Messages.StrictFunction),this.parseStatement()},Parser.prototype.parseIfStatement=function(){var i,o=this.createNode(),s=null;this.expectKeyword("if"),this.expect("(");var v=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),i=this.finalize(this.createNode(),new ae.EmptyStatement)):(this.expect(")"),i=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),s=this.parseIfClause())),this.finalize(o,new ae.IfStatement(v,i,s))},Parser.prototype.parseDoWhileStatement=function(){var i=this.createNode();this.expectKeyword("do");var o=this.context.inIteration;this.context.inIteration=!0;var s=this.parseStatement();this.context.inIteration=o,this.expectKeyword("while"),this.expect("(");var v=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(i,new ae.DoWhileStatement(s,v))},Parser.prototype.parseWhileStatement=function(){var i,o=this.createNode();this.expectKeyword("while"),this.expect("(");var s=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),i=this.finalize(this.createNode(),new ae.EmptyStatement);else{this.expect(")");var v=this.context.inIteration;this.context.inIteration=!0,i=this.parseStatement(),this.context.inIteration=v}return this.finalize(o,new ae.WhileStatement(s,i))},Parser.prototype.parseForStatement=function(){var i,o,s,v=null,_=null,pe=null,_e=!0,et=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){v=this.createNode(),this.nextToken();var tt=this.context.allowIn;this.context.allowIn=!1;var nt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=tt,1===nt.length&&this.matchKeyword("in")){var rt=nt[0];rt.init&&(rt.id.type===we.Syntax.ArrayPattern||rt.id.type===we.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError($.Messages.ForInOfLoopInitializer,"for-in"),v=this.finalize(v,new ae.VariableDeclaration(nt,"var")),this.nextToken(),i=v,o=this.parseExpression(),v=null}else 1===nt.length&&null===nt[0].init&&this.matchContextualKeyword("of")?(v=this.finalize(v,new ae.VariableDeclaration(nt,"var")),this.nextToken(),i=v,o=this.parseAssignmentExpression(),v=null,_e=!1):(v=this.finalize(v,new ae.VariableDeclaration(nt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){v=this.createNode();var it=this.nextToken().value;if(this.context.strict||"in"!==this.lookahead.value){tt=this.context.allowIn;this.context.allowIn=!1;nt=this.parseBindingList(it,{inFor:!0});this.context.allowIn=tt,1===nt.length&&null===nt[0].init&&this.matchKeyword("in")?(v=this.finalize(v,new ae.VariableDeclaration(nt,it)),this.nextToken(),i=v,o=this.parseExpression(),v=null):1===nt.length&&null===nt[0].init&&this.matchContextualKeyword("of")?(v=this.finalize(v,new ae.VariableDeclaration(nt,it)),this.nextToken(),i=v,o=this.parseAssignmentExpression(),v=null,_e=!1):(this.consumeSemicolon(),v=this.finalize(v,new ae.VariableDeclaration(nt,it)))}else v=this.finalize(v,new ae.Identifier(it)),this.nextToken(),i=v,o=this.parseExpression(),v=null}else{var ot=this.lookahead;tt=this.context.allowIn;if(this.context.allowIn=!1,v=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=tt,this.matchKeyword("in"))this.context.isAssignmentTarget&&v.type!==we.Syntax.AssignmentExpression||this.tolerateError($.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(v),i=v,o=this.parseExpression(),v=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&v.type!==we.Syntax.AssignmentExpression||this.tolerateError($.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(v),i=v,o=this.parseAssignmentExpression(),v=null,_e=!1;else{if(this.match(",")){for(var st=[v];this.match(",");)this.nextToken(),st.push(this.isolateCoverGrammar(this.parseAssignmentExpression));v=this.finalize(this.startNode(ot),new ae.SequenceExpression(st))}this.expect(";")}}if(void 0===i&&(this.match(";")||(_=this.parseExpression()),this.expect(";"),this.match(")")||(pe=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new ae.EmptyStatement);else{this.expect(")");var dt=this.context.inIteration;this.context.inIteration=!0,s=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=dt}return void 0===i?this.finalize(et,new ae.ForStatement(v,_,pe,s)):_e?this.finalize(et,new ae.ForInStatement(i,o,s)):this.finalize(et,new ae.ForOfStatement(i,o,s))},Parser.prototype.parseContinueStatement=function(){var i=this.createNode();this.expectKeyword("continue");var o=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var s=this.parseVariableIdentifier();o=s;var v="$"+s.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,v)||this.throwError($.Messages.UnknownLabel,s.name)}return this.consumeSemicolon(),null!==o||this.context.inIteration||this.throwError($.Messages.IllegalContinue),this.finalize(i,new ae.ContinueStatement(o))},Parser.prototype.parseBreakStatement=function(){var i=this.createNode();this.expectKeyword("break");var o=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var s=this.parseVariableIdentifier(),v="$"+s.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,v)||this.throwError($.Messages.UnknownLabel,s.name),o=s}return this.consumeSemicolon(),null!==o||this.context.inIteration||this.context.inSwitch||this.throwError($.Messages.IllegalBreak),this.finalize(i,new ae.BreakStatement(o))},Parser.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError($.Messages.IllegalReturn);var i=this.createNode();this.expectKeyword("return");var o=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&2!==this.lookahead.type||8===this.lookahead.type||10===this.lookahead.type?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(i,new ae.ReturnStatement(o))},Parser.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError($.Messages.StrictModeWith);var i,o=this.createNode();this.expectKeyword("with"),this.expect("(");var s=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),i=this.finalize(this.createNode(),new ae.EmptyStatement)):(this.expect(")"),i=this.parseStatement()),this.finalize(o,new ae.WithStatement(s,i))},Parser.prototype.parseSwitchCase=function(){var i,o=this.createNode();this.matchKeyword("default")?(this.nextToken(),i=null):(this.expectKeyword("case"),i=this.parseExpression()),this.expect(":");for(var s=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)s.push(this.parseStatementListItem());return this.finalize(o,new ae.SwitchCase(i,s))},Parser.prototype.parseSwitchStatement=function(){var i=this.createNode();this.expectKeyword("switch"),this.expect("(");var o=this.parseExpression();this.expect(")");var s=this.context.inSwitch;this.context.inSwitch=!0;var v=[],_=!1;for(this.expect("{");!this.match("}");){var pe=this.parseSwitchCase();null===pe.test&&(_&&this.throwError($.Messages.MultipleDefaultsInSwitch),_=!0),v.push(pe)}return this.expect("}"),this.context.inSwitch=s,this.finalize(i,new ae.SwitchStatement(o,v))},Parser.prototype.parseLabelledStatement=function(){var i,o=this.createNode(),s=this.parseExpression();if(s.type===we.Syntax.Identifier&&this.match(":")){this.nextToken();var v=s,_="$"+v.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,_)&&this.throwError($.Messages.Redeclaration,"Label",v.name),this.context.labelSet[_]=!0;var pe=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),pe=this.parseClassDeclaration();else if(this.matchKeyword("function")){var _e=this.lookahead,et=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(_e,$.Messages.StrictFunction):et.generator&&this.tolerateUnexpectedToken(_e,$.Messages.GeneratorInLegacyContext),pe=et}else pe=this.parseStatement();delete this.context.labelSet[_],i=new ae.LabeledStatement(v,pe)}else this.consumeSemicolon(),i=new ae.ExpressionStatement(s);return this.finalize(o,i)},Parser.prototype.parseThrowStatement=function(){var i=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError($.Messages.NewlineAfterThrow);var o=this.parseExpression();return this.consumeSemicolon(),this.finalize(i,new ae.ThrowStatement(o))},Parser.prototype.parseCatchClause=function(){var i=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var o=[],s=this.parsePattern(o),v={},_=0;_0&&this.tolerateError($.Messages.BadGetterArity);var v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,false))},Parser.prototype.parseSetterMethod=function(){var i=this.createNode(),o=this.context.allowYield;this.context.allowYield=!0;var s=this.parseFormalParameters();1!==s.params.length?this.tolerateError($.Messages.BadSetterArity):s.params[0]instanceof ae.RestElement&&this.tolerateError($.Messages.BadSetterRestParameter);var v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,false))},Parser.prototype.parseGeneratorMethod=function(){var i=this.createNode(),o=this.context.allowYield;this.context.allowYield=!0;var s=this.parseFormalParameters();this.context.allowYield=!1;var v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,!0))},Parser.prototype.isStartOfExpression=function(){var i=!0,o=this.lookahead.value;switch(this.lookahead.type){case 7:i="["===o||"("===o||"{"===o||"+"===o||"-"===o||"!"===o||"~"===o||"++"===o||"--"===o||"/"===o||"/="===o;break;case 4:i="class"===o||"delete"===o||"function"===o||"let"===o||"new"===o||"super"===o||"this"===o||"typeof"===o||"void"===o||"yield"===o}return i},Parser.prototype.parseYieldExpression=function(){var i=this.createNode();this.expectKeyword("yield");var o=null,s=!1;if(!this.hasLineTerminator){var v=this.context.allowYield;this.context.allowYield=!1,(s=this.match("*"))?(this.nextToken(),o=this.parseAssignmentExpression()):this.isStartOfExpression()&&(o=this.parseAssignmentExpression()),this.context.allowYield=v}return this.finalize(i,new ae.YieldExpression(o,s))},Parser.prototype.parseClassElement=function(i){var o=this.lookahead,s=this.createNode(),v="",_=null,pe=null,we=!1,_e=!1,et=!1,tt=!1;if(this.match("*"))this.nextToken();else if(we=this.match("["),"static"===(_=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(o=this.lookahead,et=!0,we=this.match("["),this.match("*")?this.nextToken():_=this.parseObjectPropertyKey()),3===o.type&&!this.hasLineTerminator&&"async"===o.value){var nt=this.lookahead.value;":"!==nt&&"("!==nt&&"*"!==nt&&(tt=!0,o=this.lookahead,_=this.parseObjectPropertyKey(),3===o.type&&"constructor"===o.value&&this.tolerateUnexpectedToken(o,$.Messages.ConstructorIsAsync))}var rt=this.qualifiedPropertyName(this.lookahead);return 3===o.type?"get"===o.value&&rt?(v="get",we=this.match("["),_=this.parseObjectPropertyKey(),this.context.allowYield=!1,pe=this.parseGetterMethod()):"set"===o.value&&rt&&(v="set",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseSetterMethod()):7===o.type&&"*"===o.value&&rt&&(v="init",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseGeneratorMethod(),_e=!0),!v&&_&&this.match("(")&&(v="init",pe=tt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),_e=!0),v||this.throwUnexpectedToken(this.lookahead),"init"===v&&(v="method"),we||(et&&this.isPropertyKey(_,"prototype")&&this.throwUnexpectedToken(o,$.Messages.StaticPrototype),!et&&this.isPropertyKey(_,"constructor")&&(("method"!==v||!_e||pe&&pe.generator)&&this.throwUnexpectedToken(o,$.Messages.ConstructorSpecialMethod),i.value?this.throwUnexpectedToken(o,$.Messages.DuplicateConstructor):i.value=!0,v="constructor")),this.finalize(s,new ae.MethodDefinition(_,we,pe,v,et))},Parser.prototype.parseClassElementList=function(){var i=[],o={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():i.push(this.parseClassElement(o));return this.expect("}"),i},Parser.prototype.parseClassBody=function(){var i=this.createNode(),o=this.parseClassElementList();return this.finalize(i,new ae.ClassBody(o))},Parser.prototype.parseClassDeclaration=function(i){var o=this.createNode(),s=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var v=i&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),_=null;this.matchKeyword("extends")&&(this.nextToken(),_=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var $=this.parseClassBody();return this.context.strict=s,this.finalize(o,new ae.ClassDeclaration(v,_,$))},Parser.prototype.parseClassExpression=function(){var i=this.createNode(),o=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var s=3===this.lookahead.type?this.parseVariableIdentifier():null,v=null;this.matchKeyword("extends")&&(this.nextToken(),v=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var _=this.parseClassBody();return this.context.strict=o,this.finalize(i,new ae.ClassExpression(s,v,_))},Parser.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var i=this.createNode(),o=this.parseDirectivePrologues();2!==this.lookahead.type;)o.push(this.parseStatementListItem());return this.finalize(i,new ae.Module(o))},Parser.prototype.parseScript=function(){for(var i=this.createNode(),o=this.parseDirectivePrologues();2!==this.lookahead.type;)o.push(this.parseStatementListItem());return this.finalize(i,new ae.Script(o))},Parser.prototype.parseModuleSpecifier=function(){var i=this.createNode();8!==this.lookahead.type&&this.throwError($.Messages.InvalidModuleSpecifier);var o=this.nextToken(),s=this.getTokenRaw(o);return this.finalize(i,new ae.Literal(o.value,s))},Parser.prototype.parseImportSpecifier=function(){var i,o,s=this.createNode();return 3===this.lookahead.type?(o=i=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),o=this.parseVariableIdentifier())):(o=i=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),o=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(s,new ae.ImportSpecifier(o,i))},Parser.prototype.parseNamedImports=function(){this.expect("{");for(var i=[];!this.match("}");)i.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),i},Parser.prototype.parseImportDefaultSpecifier=function(){var i=this.createNode(),o=this.parseIdentifierName();return this.finalize(i,new ae.ImportDefaultSpecifier(o))},Parser.prototype.parseImportNamespaceSpecifier=function(){var i=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError($.Messages.NoAsAfterImportNamespace),this.nextToken();var o=this.parseIdentifierName();return this.finalize(i,new ae.ImportNamespaceSpecifier(o))},Parser.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError($.Messages.IllegalImportDeclaration);var i,o=this.createNode();this.expectKeyword("import");var s=[];if(8===this.lookahead.type)i=this.parseModuleSpecifier();else{if(this.match("{")?s=s.concat(this.parseNamedImports()):this.match("*")?s.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(s.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?s.push(this.parseImportNamespaceSpecifier()):this.match("{")?s=s.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var v=this.lookahead.value?$.Messages.UnexpectedToken:$.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}this.nextToken(),i=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(o,new ae.ImportDeclaration(s,i))},Parser.prototype.parseExportSpecifier=function(){var i=this.createNode(),o=this.parseIdentifierName(),s=o;return this.matchContextualKeyword("as")&&(this.nextToken(),s=this.parseIdentifierName()),this.finalize(i,new ae.ExportSpecifier(o,s))},Parser.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError($.Messages.IllegalExportDeclaration);var i,o=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var s=this.parseFunctionDeclaration(!0);i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else if(this.matchKeyword("class")){s=this.parseClassDeclaration(!0);i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else if(this.matchContextualKeyword("async")){s=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else{this.matchContextualKeyword("from")&&this.throwError($.Messages.UnexpectedToken,this.lookahead.value);s=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var v=this.lookahead.value?$.Messages.UnexpectedToken:$.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}this.nextToken();var _=this.parseModuleSpecifier();this.consumeSemicolon(),i=this.finalize(o,new ae.ExportAllDeclaration(_))}else if(4===this.lookahead.type){s=void 0;switch(this.lookahead.value){case"let":case"const":s=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":s=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}i=this.finalize(o,new ae.ExportNamedDeclaration(s,[],null))}else if(this.matchAsyncFunction()){s=this.parseFunctionDeclaration();i=this.finalize(o,new ae.ExportNamedDeclaration(s,[],null))}else{var pe=[],we=null,_e=!1;for(this.expect("{");!this.match("}");)_e=_e||this.matchKeyword("default"),pe.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),we=this.parseModuleSpecifier(),this.consumeSemicolon();else if(_e){v=this.lookahead.value?$.Messages.UnexpectedToken:$.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}else this.consumeSemicolon();i=this.finalize(o,new ae.ExportNamedDeclaration(null,pe,we))}return i},Parser}();o.Parser=tt},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.assert=function assert(i,o){if(!i)throw new Error("ASSERT: "+o)}},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function ErrorHandler(){this.errors=[],this.tolerant=!1}return ErrorHandler.prototype.recordError=function(i){this.errors.push(i)},ErrorHandler.prototype.tolerate=function(i){if(!this.tolerant)throw i;this.recordError(i)},ErrorHandler.prototype.constructError=function(i,o){var s=new Error(i);try{throw s}catch(i){Object.create&&Object.defineProperty&&(s=Object.create(i),Object.defineProperty(s,"column",{value:o}))}return s},ErrorHandler.prototype.createError=function(i,o,s,v){var _="Line "+o+": "+v,$=this.constructError(_,s);return $.index=i,$.lineNumber=o,$.description=v,$},ErrorHandler.prototype.throwError=function(i,o,s,v){throw this.createError(i,o,s,v)},ErrorHandler.prototype.tolerateError=function(i,o,s,v){var _=this.createError(i,o,s,v);if(!this.tolerant)throw _;this.recordError(_)},ErrorHandler}();o.ErrorHandler=s},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(9),_=s(4),$=s(11);function hexValue(i){return"0123456789abcdef".indexOf(i.toLowerCase())}function octalValue(i){return"01234567".indexOf(i)}var ae=function(){function Scanner(i,o){this.source=i,this.errorHandler=o,this.trackComment=!1,this.isModule=!1,this.length=i.length,this.index=0,this.lineNumber=i.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return Scanner.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},Scanner.prototype.restoreState=function(i){this.index=i.index,this.lineNumber=i.lineNumber,this.lineStart=i.lineStart},Scanner.prototype.eof=function(){return this.index>=this.length},Scanner.prototype.throwUnexpectedToken=function(i){return void 0===i&&(i=$.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,i)},Scanner.prototype.tolerateUnexpectedToken=function(i){void 0===i&&(i=$.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,i)},Scanner.prototype.skipSingleLineComment=function(i){var o,s,v=[];for(this.trackComment&&(v=[],o=this.index-i,s={start:{line:this.lineNumber,column:this.index-this.lineStart-i},end:{}});!this.eof();){var $=this.source.charCodeAt(this.index);if(++this.index,_.Character.isLineTerminator($)){if(this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart-1};var ae={multiLine:!1,slice:[o+i,this.index-1],range:[o,this.index-1],loc:s};v.push(ae)}return 13===$&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,v}}if(this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart};ae={multiLine:!1,slice:[o+i,this.index],range:[o,this.index],loc:s};v.push(ae)}return v},Scanner.prototype.skipMultiLineComment=function(){var i,o,s=[];for(this.trackComment&&(s=[],i=this.index-2,o={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var v=this.source.charCodeAt(this.index);if(_.Character.isLineTerminator(v))13===v&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===v){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){o.end={line:this.lineNumber,column:this.index-this.lineStart};var $={multiLine:!0,slice:[i+2,this.index-2],range:[i,this.index],loc:o};s.push($)}return s}++this.index}else++this.index}if(this.trackComment){o.end={line:this.lineNumber,column:this.index-this.lineStart};$={multiLine:!0,slice:[i+2,this.index],range:[i,this.index],loc:o};s.push($)}return this.tolerateUnexpectedToken(),s},Scanner.prototype.scanComments=function(){var i;this.trackComment&&(i=[]);for(var o=0===this.index;!this.eof();){var s=this.source.charCodeAt(this.index);if(_.Character.isWhiteSpace(s))++this.index;else if(_.Character.isLineTerminator(s))++this.index,13===s&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,o=!0;else if(47===s)if(47===(s=this.source.charCodeAt(this.index+1))){this.index+=2;var v=this.skipSingleLineComment(2);this.trackComment&&(i=i.concat(v)),o=!0}else{if(42!==s)break;this.index+=2;v=this.skipMultiLineComment();this.trackComment&&(i=i.concat(v))}else if(o&&45===s){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3;v=this.skipSingleLineComment(3);this.trackComment&&(i=i.concat(v))}else{if(60!==s||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4;v=this.skipSingleLineComment(4);this.trackComment&&(i=i.concat(v))}}return i},Scanner.prototype.isFutureReservedWord=function(i){switch(i){case"enum":case"export":case"import":case"super":return!0;default:return!1}},Scanner.prototype.isStrictModeReservedWord=function(i){switch(i){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},Scanner.prototype.isRestrictedWord=function(i){return"eval"===i||"arguments"===i},Scanner.prototype.isKeyword=function(i){switch(i.length){case 2:return"if"===i||"in"===i||"do"===i;case 3:return"var"===i||"for"===i||"new"===i||"try"===i||"let"===i;case 4:return"this"===i||"else"===i||"case"===i||"void"===i||"with"===i||"enum"===i;case 5:return"while"===i||"break"===i||"catch"===i||"throw"===i||"const"===i||"yield"===i||"class"===i||"super"===i;case 6:return"return"===i||"typeof"===i||"delete"===i||"switch"===i||"export"===i||"import"===i;case 7:return"default"===i||"finally"===i||"extends"===i;case 8:return"function"===i||"continue"===i||"debugger"===i;case 10:return"instanceof"===i;default:return!1}},Scanner.prototype.codePointAt=function(i){var o=this.source.charCodeAt(i);if(o>=55296&&o<=56319){var s=this.source.charCodeAt(i+1);if(s>=56320&&s<=57343)o=1024*(o-55296)+s-56320+65536}return o},Scanner.prototype.scanHexEscape=function(i){for(var o="u"===i?4:2,s=0,v=0;v1114111||"}"!==i)&&this.throwUnexpectedToken(),_.Character.fromCodePoint(o)},Scanner.prototype.getIdentifier=function(){for(var i=this.index++;!this.eof();){var o=this.source.charCodeAt(this.index);if(92===o)return this.index=i,this.getComplexIdentifier();if(o>=55296&&o<57343)return this.index=i,this.getComplexIdentifier();if(!_.Character.isIdentifierPart(o))break;++this.index}return this.source.slice(i,this.index)},Scanner.prototype.getComplexIdentifier=function(){var i,o=this.codePointAt(this.index),s=_.Character.fromCodePoint(o);for(this.index+=s.length,92===o&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,i=this.scanUnicodeCodePointEscape()):null!==(i=this.scanHexEscape("u"))&&"\\"!==i&&_.Character.isIdentifierStart(i.charCodeAt(0))||this.throwUnexpectedToken(),s=i);!this.eof()&&(o=this.codePointAt(this.index),_.Character.isIdentifierPart(o));)s+=i=_.Character.fromCodePoint(o),this.index+=i.length,92===o&&(s=s.substr(0,s.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,i=this.scanUnicodeCodePointEscape()):null!==(i=this.scanHexEscape("u"))&&"\\"!==i&&_.Character.isIdentifierPart(i.charCodeAt(0))||this.throwUnexpectedToken(),s+=i);return s},Scanner.prototype.octalToDecimal=function(i){var o="0"!==i,s=octalValue(i);return!this.eof()&&_.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(o=!0,s=8*s+octalValue(this.source[this.index++]),"0123".indexOf(i)>=0&&!this.eof()&&_.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(s=8*s+octalValue(this.source[this.index++]))),{code:s,octal:o}},Scanner.prototype.scanIdentifier=function(){var i,o=this.index,s=92===this.source.charCodeAt(o)?this.getComplexIdentifier():this.getIdentifier();if(3!==(i=1===s.length?3:this.isKeyword(s)?4:"null"===s?5:"true"===s||"false"===s?1:3)&&o+s.length!==this.index){var v=this.index;this.index=o,this.tolerateUnexpectedToken($.Messages.InvalidEscapedReservedWord),this.index=v}return{type:i,value:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:o,end:this.index}},Scanner.prototype.scanPunctuator=function(){var i=this.index,o=this.source[this.index];switch(o){case"(":case"{":"{"===o&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,o="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(o=this.source.substr(this.index,4))?this.index+=4:"==="===(o=o.substr(0,3))||"!=="===o||">>>"===o||"<<="===o||">>="===o||"**="===o?this.index+=3:"&&"===(o=o.substr(0,2))||"||"===o||"=="===o||"!="===o||"+="===o||"-="===o||"*="===o||"/="===o||"++"===o||"--"===o||"<<"===o||">>"===o||"&="===o||"|="===o||"^="===o||"%="===o||"<="===o||">="===o||"=>"===o||"**"===o?this.index+=2:(o=this.source[this.index],"<>=!+-*%&|^/".indexOf(o)>=0&&++this.index)}return this.index===i&&this.throwUnexpectedToken(),{type:7,value:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}},Scanner.prototype.scanHexLiteral=function(i){for(var o="";!this.eof()&&_.Character.isHexDigit(this.source.charCodeAt(this.index));)o+=this.source[this.index++];return 0===o.length&&this.throwUnexpectedToken(),_.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+o,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}},Scanner.prototype.scanBinaryLiteral=function(i){for(var o,s="";!this.eof()&&("0"===(o=this.source[this.index])||"1"===o);)s+=this.source[this.index++];return 0===s.length&&this.throwUnexpectedToken(),this.eof()||(o=this.source.charCodeAt(this.index),(_.Character.isIdentifierStart(o)||_.Character.isDecimalDigit(o))&&this.throwUnexpectedToken()),{type:6,value:parseInt(s,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}},Scanner.prototype.scanOctalLiteral=function(i,o){var s="",v=!1;for(_.Character.isOctalDigit(i.charCodeAt(0))?(v=!0,s="0"+this.source[this.index++]):++this.index;!this.eof()&&_.Character.isOctalDigit(this.source.charCodeAt(this.index));)s+=this.source[this.index++];return v||0!==s.length||this.throwUnexpectedToken(),(_.Character.isIdentifierStart(this.source.charCodeAt(this.index))||_.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(s,8),octal:v,lineNumber:this.lineNumber,lineStart:this.lineStart,start:o,end:this.index}},Scanner.prototype.isImplicitOctalLiteral=function(){for(var i=this.index+1;i=0&&(s=s.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(i,o,s){var _=parseInt(o||s,16);return _>1114111&&v.throwUnexpectedToken($.Messages.InvalidRegExp),_<=65535?String.fromCharCode(_):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(s)}catch(i){this.throwUnexpectedToken($.Messages.InvalidRegExp)}try{return new RegExp(i,o)}catch(i){return null}},Scanner.prototype.scanRegExpBody=function(){var i=this.source[this.index];v.assert("/"===i,"Regular expression literal must start with a slash");for(var o=this.source[this.index++],s=!1,ae=!1;!this.eof();)if(o+=i=this.source[this.index++],"\\"===i)i=this.source[this.index++],_.Character.isLineTerminator(i.charCodeAt(0))&&this.throwUnexpectedToken($.Messages.UnterminatedRegExp),o+=i;else if(_.Character.isLineTerminator(i.charCodeAt(0)))this.throwUnexpectedToken($.Messages.UnterminatedRegExp);else if(s)"]"===i&&(s=!1);else{if("/"===i){ae=!0;break}"["===i&&(s=!0)}return ae||this.throwUnexpectedToken($.Messages.UnterminatedRegExp),o.substr(1,o.length-2)},Scanner.prototype.scanRegExpFlags=function(){for(var i="";!this.eof();){var o=this.source[this.index];if(!_.Character.isIdentifierPart(o.charCodeAt(0)))break;if(++this.index,"\\"!==o||this.eof())i+=o,o;else if("u"===(o=this.source[this.index])){++this.index;var s=this.index,v=this.scanHexEscape("u");if(null!==v)for(i+=v,"\\u";s=55296&&i<57343&&_.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},Scanner}();o.Scanner=ae},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TokenName={},o.TokenName[1]="Boolean",o.TokenName[2]="",o.TokenName[3]="Identifier",o.TokenName[4]="Keyword",o.TokenName[5]="Null",o.TokenName[6]="Numeric",o.TokenName[7]="Punctuator",o.TokenName[8]="String",o.TokenName[9]="RegularExpression",o.TokenName[10]="Template"},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(10),_=s(12),$=s(13),ae=function(){function Reader(){this.values=[],this.curly=this.paren=-1}return Reader.prototype.beforeFunctionExpression=function(i){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(i)>=0},Reader.prototype.isRegexStart=function(){var i=this.values[this.values.length-1],o=null!==i;switch(i){case"this":case"]":o=!1;break;case")":var s=this.values[this.paren-1];o="if"===s||"while"===s||"for"===s||"with"===s;break;case"}":if(o=!1,"function"===this.values[this.curly-3])o=!!(v=this.values[this.curly-4])&&!this.beforeFunctionExpression(v);else if("function"===this.values[this.curly-4]){var v;o=!(v=this.values[this.curly-5])||!this.beforeFunctionExpression(v)}}return o},Reader.prototype.push=function(i){7===i.type||4===i.type?("{"===i.value?this.curly=this.values.length:"("===i.value&&(this.paren=this.values.length),this.values.push(i.value)):this.values.push(null)},Reader}(),pe=function(){function Tokenizer(i,o){this.errorHandler=new v.ErrorHandler,this.errorHandler.tolerant=!!o&&("boolean"==typeof o.tolerant&&o.tolerant),this.scanner=new _.Scanner(i,this.errorHandler),this.scanner.trackComment=!!o&&("boolean"==typeof o.comment&&o.comment),this.trackRange=!!o&&("boolean"==typeof o.range&&o.range),this.trackLoc=!!o&&("boolean"==typeof o.loc&&o.loc),this.buffer=[],this.reader=new ae}return Tokenizer.prototype.errors=function(){return this.errorHandler.errors},Tokenizer.prototype.getNextToken=function(){if(0===this.buffer.length){var i=this.scanner.scanComments();if(this.scanner.trackComment)for(var o=0;o",lt:"<",nbsp:" ",quot:"“"},mt=["style","script"],yt=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,vt=/mailto:/i,Rt=/\n{2,}$/,bt=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Ot=/^ *> ?/gm,xt=/^ {2,}\n/,wt=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,Ct=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,St=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,_t=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Et=/^(?:\n *)*\n/,kt=/\r\n?/g,At=/^\[\^([^\]]+)](:.*)\n/,Dt=/^\[\^([^\]]+)]/,Pt=/\f/g,Tt=/^\s*?\[(x|\s)\]/,It=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,Ft=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Nt=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,Bt=/&([a-z]+);/g,Lt=/^/,jt=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Mt=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Qt=/^\{.*\}$/,Vt=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ut=/^<([^ >]+@[^ >]+)>/,Wt=/^<([^ >]+:\/[^ >]+)>/,$t=/ *\n+$/,qt=/(?:^|\n)( *)$/,zt=/-([a-z])?/gi,Zt=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Ht=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,Gt=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,Xt=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Yt=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Kt=/(\[|\])/g,Jt=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,nn=/\t/g,_n=/^ *\| */,An=/(^ *\||\| *$)/g,Zn=/ *$/,aa=/^ *:-+: *$/,ra=/^ *:-+ *$/,ia=/^ *-+: *$/,ca=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ha=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,ga=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,va=/^\\([^0-9A-Za-z\s])/,Oa=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,xa=/(^\n+|\n+$|\s+$)/g,_a=/^([ \t]*)/,ja=/\\([^0-9A-Z\s])/gi,er=/^( *)((?:[*+-]|\d+\.)) +/,tr=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,nr=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,ar=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,rr=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,ir=[bt,St,Ct,It,Ft,Nt,Lt,Mt,tr,nr,Zt,Ht];function containsBlockSyntax(i){return ir.some((function(o){return o.test(i)}))}function slugify(i){return i.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function parseTableAlignCapture(i){return ia.test(i)?"right":aa.test(i)?"center":ra.test(i)?"left":null}function parseTableRow(i,o,s){var v=s.inTable;s.inTable=!0;var _=o(i.trim(),s);s.inTable=v;var $=[[]];return _.forEach((function(i,o){"tableSeparator"===i.type?0!==o&&o!==_.length-1&&$.push([]):("text"===i.type&&(null==_[o+1]||"tableSeparator"===_[o+1].type)&&(i.content=i.content.replace(Zn,"")),$[$.length-1].push(i))})),$}function parseTableAlign(i){return i.replace(An,"").split("|").map(parseTableAlignCapture)}function parseTableCells(i,o,s){return i.trim().split("\n").map((function(i){return parseTableRow(i,o,s)}))}function parseTable(i,o,s){s.inline=!0;var v=parseTableRow(i[1],o,s),_=parseTableAlign(i[2]),$=parseTableCells(i[3],o,s);return s.inline=!1,{align:_,cells:$,header:v,type:"table"}}function getTableStyle(i,o){return null==i.align[o]?{}:{textAlign:i.align[o]}}function normalizeAttributeKey(i){return-1!==i.indexOf("-")&&null===i.match(jt)&&(i=i.replace(zt,(function(i,o){return o.toUpperCase()}))),i}function attributeValueToJSXPropValue(i,o){return"style"===i?o.split(/;\s?/).reduce((function(i,o){var s=o.slice(0,o.indexOf(":")),v=s.replace(/(-[a-z])/g,(function(i){return i[1].toUpperCase()}));return i[v]=o.slice(s.length+1).trim(),i}),{}):"href"===i?sanitizeUrl(o):(o.match(Qt)&&(o=o.slice(1,o.length-1)),"true"===o||"false"!==o&&o)}function normalizeWhitespace(i){return i.replace(kt,"\n").replace(Pt,"").replace(nn," ")}function parserFor(i){function b(s,v){for(var _=[],$="";s;)for(var ae=0;ae2?$-2:0),pe=2;pe<$;pe++)ae[pe-2]=arguments[pe];return s.apply(void 0,[getTag(i,o.overrides),ht({},v,_,{className:cx(v&&v.className,_.className)||void 0})].concat(ae))}function c(i){var s=!1;o.forceInline?s=!0:!o.forceBlock&&(s=!1===Jt.test(i));var v=we(ae(s?i:i.replace(xa,"")+"\n\n",{inline:s})),_=void 0;return v.length>1?_=d(s?"span":"div",{key:"outer"},v):1===v.length?"string"==typeof(_=v[0])&&(_=d("span",{key:"outer"},_)):_=d("span",{key:"outer"}),_}function e(i){var o=i.match(yt);return o?o.reduce((function(i,o,s){var v=o.indexOf("=");if(-1!==v){var _=normalizeAttributeKey(o.slice(0,v)).trim(),$=ct()(o.slice(v+1).trim()),ae=ft[_]||_,we=i[ae]=attributeValueToJSXPropValue(_,$);(Nt.test(we)||Mt.test(we))&&(i[ae]=pe.a.cloneElement(c(we.trim()),{key:s}))}else"style"!==o&&(i[ft[o]||o]=!0);return i}),{}):void 0}(o=o||{}).overrides=o.overrides||{},o.slugify=o.slugify||slugify,o.namedCodesToUnicode=o.namedCodesToUnicode?ht({},gt,o.namedCodesToUnicode):gt;var s=o.createElement||pe.a.createElement;var v=[],_={},$={blockQuote:{match:blockRegex(bt),order:sr,parse:function d(i,o,s){return{content:o(i[0].replace(Ot,""),s)}},react:function e(i,o,s){return d("blockquote",{key:s.key},o(i.content,s))}},breakLine:{match:anyScopeRegex(xt),order:sr,parse:captureNothing,react:function e(i,o,s){return d("br",{key:s.key})}},breakThematic:{match:blockRegex(wt),order:sr,parse:captureNothing,react:function e(i,o,s){return d("hr",{key:s.key})}},codeBlock:{match:blockRegex(St),order:or,parse:function c(i){return{content:i[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function e(i,o,s){return d("pre",{key:s.key},d("code",{className:i.lang?"lang-"+i.lang:""},i.content))}},codeFenced:{match:blockRegex(Ct),order:or,parse:function b(i){return{content:i[3],lang:i[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(_t),order:ur,parse:function b(i){return{content:i[2]}},react:function e(i,o,s){return d("code",{key:s.key},i.content)}},footnote:{match:blockRegex(At),order:or,parse:function b(i){return v.push({footnote:i[2],identifier:i[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(Dt),order:sr,parse:function c(i){return{content:i[1],target:"#"+o.slugify(i[1])}},react:function e(i,o,s){return d("a",{key:s.key,href:sanitizeUrl(i.target)},d("sup",{key:s.key},i.content))}},gfmTask:{match:inlineRegex(Tt),order:sr,parse:function b(i){return{completed:"x"===i[1].toLowerCase()}},react:function e(i,o,s){return d("input",{checked:i.completed,key:s.key,readOnly:!0,type:"checkbox"})}},heading:{match:blockRegex(It),order:sr,parse:function e(i,s,v){return{content:parseInline(s,i[2],v),id:o.slugify(i[2]),level:i[1].length}},react:function f(i,o,s){return d("h"+i.level,{id:i.id,key:s.key},o(i.content,s))}},headingSetext:{match:blockRegex(Ft),order:or,parse:function d(i,o,s){return{content:parseInline(o,i[1],s),level:"="===i[2]?1:2,type:"heading"}}},htmlComment:{match:anyScopeRegex(Lt),order:sr,parse:function a(){return{}},react:renderNothing},image:{match:simpleInlineRegex(rr),order:sr,parse:function b(i){return{alt:i[1],target:unescapeUrl(i[2]),title:i[3]}},react:function e(i,o,s){return d("img",{key:s.key,alt:i.alt||void 0,title:i.title||void 0,src:sanitizeUrl(i.target)})}},link:{match:inlineRegex(ar),order:ur,parse:function d(i,o,s){return{content:parseSimpleInline(o,i[1],s),target:unescapeUrl(i[2]),title:i[3]}},react:function e(i,o,s){return d("a",{key:s.key,href:sanitizeUrl(i.target),title:i.title},o(i.content,s))}},linkAngleBraceStyleDetector:{match:inlineRegex(Wt),order:or,parse:function b(i){return{content:[{content:i[1],type:"text"}],target:i[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(Vt),order:or,parse:function b(i){return{content:[{content:i[1],type:"text"}],target:i[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex(Ut),order:or,parse:function d(i){var o=i[1],s=i[1];return vt.test(s)||(s="mailto:"+s),{content:[{content:o.replace("mailto:",""),type:"text"}],target:s,type:"link"}}},list:{match:function f(i,o,s){var v=qt.exec(s),_=o._list||!o.inline;return v&&_?(i=v[1]+i,nr.exec(i)):null},order:sr,parse:function j(i,o,s){var v=i[2],_=v.length>1,$=_?+v:void 0,ae=i[0].replace(Rt,"\n").match(tr),pe=!1,we=ae.map((function(i,v){var _=er.exec(i)[0].length,$=new RegExp("^ {1,"+_+"}","gm"),we=i.replace($,"").replace(er,""),_e=v===ae.length-1,et=-1!==we.indexOf("\n\n")||_e&&pe;pe=et;var tt,nt=s.inline,rt=s._list;s._list=!0,et?(s.inline=!1,tt=we.replace($t,"\n\n")):(s.inline=!0,tt=we.replace($t,""));var it=o(tt,s);return s.inline=nt,s._list=rt,it}));return{items:we,ordered:_,start:$}},react:function f(i,o,s){return d(i.ordered?"ol":"ul",{key:s.key,start:i.start},i.items.map((function(i,v){return d("li",{key:v},o(i,s))})))}},newlineCoalescer:{match:blockRegex(Et),order:ur,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(Ht),order:ur,parse:parseCaptureInline,react:function e(i,o,s){return d("p",{key:s.key},o(i.content,s))}},ref:{match:inlineRegex(Gt),order:or,parse:function b(i){return _[i[1]]={target:i[2],title:i[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(Xt),order:or,parse:function b(i){return{alt:i[1]||void 0,ref:i[2]}},react:function e(i,o,s){return d("img",{key:s.key,alt:i.alt,src:sanitizeUrl(_[i.ref].target),title:_[i.ref].title})}},refLink:{match:inlineRegex(Yt),order:or,parse:function d(i,o,s){return{content:o(i[1],s),fallbackContent:o(i[0].replace(Kt,"\\$1"),s),ref:i[2]}},react:function e(i,o,s){return _[i.ref]?d("a",{key:s.key,href:sanitizeUrl(_[i.ref].target),title:_[i.ref].title},o(i.content,s)):d("span",{key:s.key},o(i.fallbackContent,s))}},table:{match:blockRegex(Zt),order:sr,parse:parseTable,react:function f(i,o,s){return d("table",{key:s.key},d("thead",null,d("tr",null,i.header.map((function(v,_){return d("th",{key:_,style:getTableStyle(i,_)},o(v,s))})))),d("tbody",null,i.cells.map((function(v,_){return d("tr",{key:_},v.map((function(v,_){return d("td",{key:_,style:getTableStyle(i,_)},o(v,s))})))}))))}},tableSeparator:{match:function c(i,o){return o.inTable?_n.exec(i):null},order:sr,parse:function a(){return{type:"tableSeparator"}},react:function a(){return" | "}},text:{match:anyScopeRegex(Oa),order:lr,parse:function c(i){return{content:i[0].replace(Bt,(function(i,s){return o.namedCodesToUnicode[s]?o.namedCodesToUnicode[s]:i}))}},react:function b(i){return i.content}},textBolded:{match:simpleInlineRegex(ca),order:dr,parse:function d(i,o,s){return{content:o(i[2],s)}},react:function e(i,o,s){return d("strong",{key:s.key},o(i.content,s))}},textEmphasized:{match:simpleInlineRegex(ha),order:ur,parse:function d(i,o,s){return{content:o(i[2],s)}},react:function e(i,o,s){return d("em",{key:s.key},o(i.content,s))}},textEscaped:{match:simpleInlineRegex(va),order:sr,parse:function b(i){return{content:i[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(ga),order:ur,parse:parseCaptureInline,react:function e(i,o,s){return d("del",{key:s.key},o(i.content,s))}}};!0!==o.disableParsingRawHTML&&($.htmlBlock={match:anyScopeRegex(Nt),order:sr,parse:function l(i,o,s){var v=i[3].match(_a)[1],_=new RegExp("^"+v,"gm"),$=i[3].replace(_,""),ae=containsBlockSyntax($)?parseBlock:parseInline,pe=i[1].toLowerCase(),we=-1!==mt.indexOf(pe);return{attrs:e(i[2]),content:we?i[3]:ae(o,$,s),noInnerParse:we,tag:we?pe:i[1]}},react:function e(i,o,s){return d(i.tag,ht({key:s.key},i.attrs),i.noInnerParse?i.content:o(i.content,s))}},$.htmlSelfClosing={match:anyScopeRegex(Mt),order:sr,parse:function b(i){return{attrs:e(i[2]||""),tag:i[1]}},react:function e(i,o,s){return d(i.tag,ht({},i.attrs,{key:s.key}))}});var ae=parserFor($),we=reactFor(ruleOutput($)),_e=c(function(i){return i.replace(/)/g,"")}(i));return v.length&&_e.props.children.push(d("footer",{key:"footer"},v.map((function(i){return d("div",{id:o.slugify(i.identifier),key:i.identifier},i.identifier,we(ae(i.footnote,{inline:!0})))})))),_e}var cr=s(211),hr=s.n(cr),pr=s(15);function LinkRenderer_extends(){return LinkRenderer_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var fr=function LinkRenderer(i){var o=i.classes,s=i.children,v=_objectWithoutPropertiesLoose(i,["classes","children"]);return pe.a.createElement("a",LinkRenderer_extends({},v,{className:Object(pr.a)(o.link,v.className)}),s)};fr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node,className:_e.a.string,href:_e.a.string};var gr=Object(et.a)((function styles(i){var o=i.color;return{link:{"&, &:link, &:visited":{fontSize:"inherit",color:o.link,textDecoration:"none"},"&:hover, &:active":{isolate:!1,color:o.linkHover,cursor:"pointer"}}}}))(fr),mr=s(33),yr=function ParaRenderer(i){var o=i.classes,s=i.semantic,v=i.children,_=s||"div";return pe.a.createElement(_,{className:o.para},v)};yr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,semantic:_e.a.oneOf(["p"]),children:_e.a.node.isRequired};var vr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily,_=i.fontSize;return{para:{marginTop:0,marginBottom:o[2],color:s.base,fontFamily:v.base,fontSize:_.text,lineHeight:1.5}}}))(yr);function HeadingRenderer_extends(){return HeadingRenderer_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var Rr=function HeadingRenderer(i){var o=i.classes,s=i.level,v=i.children,_=HeadingRenderer_objectWithoutPropertiesLoose(i,["classes","level","children"]),$="h"+s,ae=Object(pr.a)(o.heading,o["heading"+s]);return pe.a.createElement($,HeadingRenderer_extends({},_,{className:ae}),v)};Rr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,level:_e.a.oneOf([1,2,3,4,5,6]).isRequired,children:_e.a.node};var br=Object(et.a)((function styles(i){var o=i.color,s=i.fontFamily,v=i.fontSize;return{heading:{margin:0,color:o.base,fontFamily:s.base,fontWeight:"normal"},heading1:{fontSize:v.h1},heading2:{fontSize:v.h2},heading3:{fontSize:v.h3},heading4:{fontSize:v.h4},heading5:{fontSize:v.h5,fontWeight:"bold"},heading6:{fontSize:v.h6,fontStyle:"italic"}}}))(Rr),Or=function MarkdownHeadingRenderer(i){var o=i.classes,s=i.level,v=i.children,_=i.id;return pe.a.createElement("div",{className:o.spacing},pe.a.createElement(br,{level:s,id:_},v))};Or.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,level:_e.a.oneOf([1,2,3,4,5,6]).isRequired,children:_e.a.node,id:_e.a.string};var xr=Object(et.a)((function styles(i){return{spacing:{marginBottom:i.space[2]}}}))(Or),wr=function ListRenderer(i){var o=i.classes,s=i.ordered,v=i.children,_=s?"ol":"ul",$=Object(pr.a)(o.list,s&&o.ordered);return pe.a.createElement(_,{className:$},ae.Children.map(v,(function(i){return pe.a.isValidElement(i)?Object(ae.cloneElement)(i,{className:o.li}):i})))};wr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,ordered:_e.a.bool,children:_e.a.node.isRequired},wr.defaultProps={ordered:!1};var Cr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily;return{list:{marginTop:0,marginBottom:o[2],paddingLeft:o[3],fontSize:"inherit"},ordered:{listStyleType:"decimal"},li:{color:s.base,fontFamily:v.base,fontSize:"inherit",lineHeight:1.5,listStyleType:"inherit"}}}))(wr),Sr=function BlockquoteRenderer(i){var o=i.classes,s=i.className,v=i.children,_=Object(pr.a)(o.blockquote,s);return pe.a.createElement("blockquote",{className:_},v)};Sr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,className:_e.a.string,children:_e.a.node.isRequired};var _r=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{blockquote:{margin:[[o[2],o[4]]],padding:0,color:s.base,fontFamily:_.base,fontSize:v.base,lineHeight:1.5}}}))(Sr),Er=function PreRenderer(i){var o=i.classes,s=i.className,v=i.children,_=Object(pr.a)(s,o.pre);return s&&-1!==s.indexOf("lang-")&&v?pe.a.createElement("pre",{className:_,dangerouslySetInnerHTML:{__html:v.toString()}}):pe.a.createElement("pre",{className:_},v)};Er.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,className:_e.a.string,children:_e.a.node.isRequired};var kr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily,$=i.borderRadius;return{pre:Object.assign({fontFamily:_.monospace,fontSize:v.small,lineHeight:1.5,color:s.base,whiteSpace:"pre-wrap",wordWrap:"normal",tabSize:2,hyphens:"none",backgroundColor:s.codeBackground,padding:[[o[1],o[2]]],border:[[1,s.codeBackground,"solid"]],borderRadius:$,marginTop:0,marginBottom:o[2],overflow:"auto"},ot({color:s}))}}))(Er),Ar=s(54);function CheckboxRenderer_extends(){return CheckboxRenderer_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var Dr=function CheckboxRenderer(i){var o=i.classes,s=CheckboxRenderer_objectWithoutPropertiesLoose(i,["classes"]);return pe.a.createElement("input",CheckboxRenderer_extends({},s,{type:"checkbox",className:o.input}))};Dr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired};var Pr=Object(et.a)((function styles(){return{input:{isolate:!1,display:"inline-block",verticalAlign:"middle"}}}))(Dr),Tr=function HrRenderer(i){var o=i.classes;return pe.a.createElement("hr",{className:o.hr})};Tr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired};var Ir=Object(et.a)((function styles(i){var o=i.space;return{hr:{borderBottom:[[1,i.color.border,"solid"]],marginTop:0,marginBottom:o[2]}}}))(Tr),Fr=function DetailsRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("details",{className:o.details},s)};Fr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Nr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{details:{marginBottom:o[2],fontFamily:_.base,fontSize:v.base,color:s.base}}}))(Fr),Br=function DetailsSummaryRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("summary",{className:o.summary},s)};Br.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Lr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{summary:{marginBottom:o[1],fontFamily:_.base,fontSize:v.base,color:s.base,cursor:"pointer","&:focus":{isolate:!1,outline:[[1,"dotted",s.linkHover]],outlineOffset:2}}}}))(Br),jr=function TableRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("table",{className:o.table},s)};jr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Mr=Object(et.a)((function styles(i){return{table:{marginTop:0,marginBottom:i.space[2],borderCollapse:"collapse"}}}))(jr),Qr=function TableHeadRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("thead",{className:o.thead},s)};Qr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Vr=Object(et.a)((function styles(i){return{thead:{borderBottom:[[1,i.color.border,"solid"]]}}}))(Qr),Ur=function TableBodyRenderer(i){var o=i.children;return pe.a.createElement("tbody",null,o)};Ur.propTypes={children:_e.a.node.isRequired};var Wr=Ur,$r=function TableRowRenderer(i){var o=i.children;return pe.a.createElement("tr",null,o)};$r.propTypes={children:_e.a.node.isRequired};var qr=$r,zr=function TableCellRenderer(i){var o=i.classes,s=i.header,v=i.children;return s?pe.a.createElement("th",{className:o.th},v):pe.a.createElement("td",{className:o.td},v)};zr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,header:_e.a.bool,children:_e.a.node.isRequired},zr.defaultProps={header:!1};var Zr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{td:{padding:[[o[0],o[2],o[0],0]],fontFamily:_.base,fontSize:v.base,color:s.base,lineHeight:1.5},th:{composes:"$td",fontWeight:"bold"}}}))(zr),Hr=function Pre(i){return Object(ae.isValidElement)(i.children)?pe.a.createElement(kr,i.children.props):pe.a.createElement(kr,i)};Hr.propTypes={children:_e.a.node};var Gr={a:{component:gr},h1:{component:xr,props:{level:1}},h2:{component:xr,props:{level:2}},h3:{component:xr,props:{level:3}},h4:{component:xr,props:{level:4}},h5:{component:xr,props:{level:5}},h6:{component:xr,props:{level:6}},p:{component:vr,props:{semantic:"p"}},em:{component:mr.a,props:{semantic:"em"}},strong:{component:mr.a,props:{semantic:"strong"}},ul:{component:Cr},ol:{component:Cr,props:{ordered:!0}},blockquote:{component:_r},code:{component:Ar.a},pre:{component:Hr},input:{component:Pr},hr:{component:Ir},table:{component:Mr},thead:{component:Vr},th:{component:Zr,props:{header:!0}},tbody:{component:Wr},tr:{component:qr},td:{component:Zr},details:{component:Nr},summary:{component:Lr}},Xr=Object.assign({},Gr,{p:{component:mr.a}}),Yr=function Markdown(i){var o=i.text,s=i.inline?Xr:Gr;return compiler(hr()(o),{overrides:s,forceBlock:!0})};Yr.propTypes={text:_e.a.string.isRequired,inline:_e.a.bool};var Kr=Yr,Jr=function NameRenderer(i){var o,s=i.classes,v=i.children,_=i.deprecated,$=Object(pr.a)(s.name,((o={})[s.isDeprecated]=_,o));return pe.a.createElement("code",{className:$},v)};Jr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired,deprecated:_e.a.bool};var _i=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{name:{fontFamily:o.monospace,fontSize:s.small,color:v.name},isDeprecated:{color:v.light,textDecoration:"line-through"}}}))(Jr),Ei=function TypeRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("span",{className:o.type},s)};Ei.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Ui=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{type:{fontFamily:o.monospace,fontSize:s.small,color:v.type}}}))(Ei),Ji=s(85),no=s.n(Ji),io=s(212),oo=s.n(io);function ArgumentRenderer_objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}var mo=function ArgumentRenderer(i){var o=i.classes,s=i.name,v=i.type,_=i.description,$=i.returns,ae=i.block,we=ArgumentRenderer_objectWithoutPropertiesLoose(i,["classes","name","type","description","returns","block"]),_e=v&&"OptionalType"===v.type,et=we.default;_e&&(v=v.expression);var tt=v?oo.a.type.stringify(v):"",nt=pe.a.createElement(no.a,null,$&&"Returns",s&&pe.a.createElement("span",null,pe.a.createElement(_i,null,s),v&&":"),v&&pe.a.createElement(Ui,null,tt,_e&&"?",!!et&&"="+et),v&&_&&"—",_&&pe.a.createElement(Kr,{text:""+_,inline:!0}));return ae?pe.a.createElement("div",{className:o.block},nt):nt};mo.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string,type:_e.a.object,default:_e.a.string,description:_e.a.string,returns:_e.a.bool,block:_e.a.bool};var Ro=Object(et.a)((function styles(i){return{block:{marginBottom:i.space[2]}}}))(mo);function ArgumentsRenderer_extends(){return ArgumentsRenderer_extends=Object.assign||function(i){for(var o=1;o0&&jo(v.width)/i.offsetWidth||1,$=i.offsetHeight>0&&jo(v.height)/i.offsetHeight||1);var ae=(isElement(i)?getWindow(i):window).visualViewport,pe=!isLayoutViewport()&&s,we=(v.left+(pe&&ae?ae.offsetLeft:0))/_,_e=(v.top+(pe&&ae?ae.offsetTop:0))/$,et=v.width/_,tt=v.height/$;return{width:et,height:tt,top:_e,right:we+et,bottom:_e+tt,left:we,x:we,y:_e}}function getWindowScroll(i){var o=getWindow(i);return{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function getNodeName(i){return i?(i.nodeName||"").toLowerCase():null}function getDocumentElement(i){return((isElement(i)?i.ownerDocument:i.document)||window.document).documentElement}function getWindowScrollBarX(i){return getBoundingClientRect(getDocumentElement(i)).left+getWindowScroll(i).scrollLeft}function getComputedStyle(i){return getWindow(i).getComputedStyle(i)}function isScrollParent(i){var o=getComputedStyle(i),s=o.overflow,v=o.overflowX,_=o.overflowY;return/auto|scroll|overlay|hidden/.test(s+_+v)}function isElementScaled(i){var o=i.getBoundingClientRect(),s=jo(o.width)/i.offsetWidth||1,v=jo(o.height)/i.offsetHeight||1;return 1!==s||1!==v}function getCompositeRect(i,o,s){void 0===s&&(s=!1);var v,_,$=isHTMLElement(o),ae=isHTMLElement(o)&&isElementScaled(o),pe=getDocumentElement(o),we=getBoundingClientRect(i,ae,s),_e={scrollLeft:0,scrollTop:0},et={x:0,y:0};return($||!$&&!s)&&(("body"!==getNodeName(o)||isScrollParent(pe))&&(_e=(v=o)!==getWindow(v)&&isHTMLElement(v)?{scrollLeft:(_=v).scrollLeft,scrollTop:_.scrollTop}:getWindowScroll(v)),isHTMLElement(o)?((et=getBoundingClientRect(o,!0)).x+=o.clientLeft,et.y+=o.clientTop):pe&&(et.x=getWindowScrollBarX(pe))),{x:we.left+_e.scrollLeft-et.x,y:we.top+_e.scrollTop-et.y,width:we.width,height:we.height}}function getLayoutRect(i){var o=getBoundingClientRect(i),s=i.offsetWidth,v=i.offsetHeight;return Math.abs(o.width-s)<=1&&(s=o.width),Math.abs(o.height-v)<=1&&(v=o.height),{x:i.offsetLeft,y:i.offsetTop,width:s,height:v}}function getParentNode(i){return"html"===getNodeName(i)?i:i.assignedSlot||i.parentNode||(isShadowRoot(i)?i.host:null)||getDocumentElement(i)}function getScrollParent(i){return["html","body","#document"].indexOf(getNodeName(i))>=0?i.ownerDocument.body:isHTMLElement(i)&&isScrollParent(i)?i:getScrollParent(getParentNode(i))}function listScrollParents(i,o){var s;void 0===o&&(o=[]);var v=getScrollParent(i),_=v===(null==(s=i.ownerDocument)?void 0:s.body),$=getWindow(v),ae=_?[$].concat($.visualViewport||[],isScrollParent(v)?v:[]):v,pe=o.concat(ae);return _?pe:pe.concat(listScrollParents(getParentNode(ae)))}function isTableElement(i){return["table","td","th"].indexOf(getNodeName(i))>=0}function getTrueOffsetParent(i){return isHTMLElement(i)&&"fixed"!==getComputedStyle(i).position?i.offsetParent:null}function getContainingBlock(i){var o=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(i)&&"fixed"===getComputedStyle(i).position)return null;var s=getParentNode(i);for(isShadowRoot(s)&&(s=s.host);isHTMLElement(s)&&["html","body"].indexOf(getNodeName(s))<0;){var v=getComputedStyle(s);if("none"!==v.transform||"none"!==v.perspective||"paint"===v.contain||-1!==["transform","perspective"].indexOf(v.willChange)||o&&"filter"===v.willChange||o&&v.filter&&"none"!==v.filter)return s;s=s.parentNode}return null}function getOffsetParent(i){for(var o=getWindow(i),s=getTrueOffsetParent(i);s&&isTableElement(s)&&"static"===getComputedStyle(s).position;)s=getTrueOffsetParent(s);return s&&("html"===getNodeName(s)||"body"===getNodeName(s)&&"static"===getComputedStyle(s).position)?o:s||getContainingBlock(i)||o}var Mo="top",Qo="bottom",Vo="right",Uo="left",Wo="auto",$o=[Mo,Qo,Vo,Uo],qo="start",Zo="end",Xo="clippingParents",Yo="viewport",es="popper",ts="reference",ns=$o.reduce((function(i,o){return i.concat([o+"-"+qo,o+"-"+Zo])}),[]),as=[].concat($o,[Wo]).reduce((function(i,o){return i.concat([o,o+"-"+qo,o+"-"+Zo])}),[]),rs=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(i){var o=new Map,s=new Set,v=[];function sort(i){s.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(i){if(!s.has(i)){var v=o.get(i);v&&sort(v)}})),v.push(i)}return i.forEach((function(i){o.set(i.name,i)})),i.forEach((function(i){s.has(i.name)||sort(i)})),v}function orderModifiers(i){var o=order(i);return rs.reduce((function(i,s){return i.concat(o.filter((function(i){return i.phase===s})))}),[])}var os={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var i=arguments.length,o=new Array(i),s=0;s=0?"x":"y"}function computeOffsets(i){var o,s=i.reference,v=i.element,_=i.placement,$=_?getBasePlacement(_):null,ae=_?getVariation(_):null,pe=s.x+s.width/2-v.width/2,we=s.y+s.height/2-v.height/2;switch($){case Mo:o={x:pe,y:s.y-v.height};break;case Qo:o={x:pe,y:s.y+s.height};break;case Vo:o={x:s.x+s.width,y:we};break;case Uo:o={x:s.x-v.width,y:we};break;default:o={x:s.x,y:s.y}}var _e=$?getMainAxisFromPlacement($):null;if(null!=_e){var et="y"===_e?"height":"width";switch(ae){case qo:o[_e]=o[_e]-(s[et]/2-v[et]/2);break;case Zo:o[_e]=o[_e]+(s[et]/2-v[et]/2)}}return o}var ds={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(i,o){var s=i.x,v=i.y,_=o.devicePixelRatio||1;return{x:jo(s*_)/_||0,y:jo(v*_)/_||0}}function mapToStyles(i){var o,s=i.popper,v=i.popperRect,_=i.placement,$=i.variation,ae=i.offsets,pe=i.position,we=i.gpuAcceleration,_e=i.adaptive,et=i.roundOffsets,tt=i.isFixed,nt=ae.x,rt=void 0===nt?0:nt,it=ae.y,ot=void 0===it?0:it,st="function"==typeof et?et({x:rt,y:ot}):{x:rt,y:ot};rt=st.x,ot=st.y;var dt=ae.hasOwnProperty("x"),ut=ae.hasOwnProperty("y"),lt=Uo,ct=Mo,ht=window;if(_e){var pt=getOffsetParent(s),ft="clientHeight",gt="clientWidth";if(pt===getWindow(s)&&"static"!==getComputedStyle(pt=getDocumentElement(s)).position&&"absolute"===pe&&(ft="scrollHeight",gt="scrollWidth"),_===Mo||(_===Uo||_===Vo)&&$===Zo)ct=Qo,ot-=(tt&&pt===ht&&ht.visualViewport?ht.visualViewport.height:pt[ft])-v.height,ot*=we?1:-1;if(_===Uo||(_===Mo||_===Qo)&&$===Zo)lt=Vo,rt-=(tt&&pt===ht&&ht.visualViewport?ht.visualViewport.width:pt[gt])-v.width,rt*=we?1:-1}var mt,yt=Object.assign({position:pe},_e&&ds),vt=!0===et?roundOffsetsByDPR({x:rt,y:ot},getWindow(s)):{x:rt,y:ot};return rt=vt.x,ot=vt.y,we?Object.assign({},yt,((mt={})[ct]=ut?"0":"",mt[lt]=dt?"0":"",mt.transform=(ht.devicePixelRatio||1)<=1?"translate("+rt+"px, "+ot+"px)":"translate3d("+rt+"px, "+ot+"px, 0)",mt)):Object.assign({},yt,((o={})[ct]=ut?ot+"px":"",o[lt]=dt?rt+"px":"",o.transform="",o))}var us={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(i){var o=i.state;Object.keys(o.elements).forEach((function(i){var s=o.styles[i]||{},v=o.attributes[i]||{},_=o.elements[i];isHTMLElement(_)&&getNodeName(_)&&(Object.assign(_.style,s),Object.keys(v).forEach((function(i){var o=v[i];!1===o?_.removeAttribute(i):_.setAttribute(i,!0===o?"":o)})))}))},effect:function applyStyles_effect(i){var o=i.state,s={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,s.popper),o.styles=s,o.elements.arrow&&Object.assign(o.elements.arrow.style,s.arrow),function(){Object.keys(o.elements).forEach((function(i){var v=o.elements[i],_=o.attributes[i]||{},$=Object.keys(o.styles.hasOwnProperty(i)?o.styles[i]:s[i]).reduce((function(i,o){return i[o]="",i}),{});isHTMLElement(v)&&getNodeName(v)&&(Object.assign(v.style,$),Object.keys(_).forEach((function(i){v.removeAttribute(i)})))}))}},requires:["computeStyles"]};function distanceAndSkiddingToXY(i,o,s){var v=getBasePlacement(i),_=[Uo,Mo].indexOf(v)>=0?-1:1,$="function"==typeof s?s(Object.assign({},o,{placement:i})):s,ae=$[0],pe=$[1];return ae=ae||0,pe=(pe||0)*_,[Uo,Vo].indexOf(v)>=0?{x:pe,y:ae}:{x:ae,y:pe}}var ls={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(i){return i.replace(/left|right|bottom|top/g,(function(i){return ls[i]}))}var cs={start:"end",end:"start"};function getOppositeVariationPlacement(i){return i.replace(/start|end/g,(function(i){return cs[i]}))}function getViewportRect(i,o){var s=getWindow(i),v=getDocumentElement(i),_=s.visualViewport,$=v.clientWidth,ae=v.clientHeight,pe=0,we=0;if(_){$=_.width,ae=_.height;var _e=isLayoutViewport();(_e||!_e&&"fixed"===o)&&(pe=_.offsetLeft,we=_.offsetTop)}return{width:$,height:ae,x:pe+getWindowScrollBarX(i),y:we}}function getDocumentRect(i){var o,s=getDocumentElement(i),v=getWindowScroll(i),_=null==(o=i.ownerDocument)?void 0:o.body,$=No(s.scrollWidth,s.clientWidth,_?_.scrollWidth:0,_?_.clientWidth:0),ae=No(s.scrollHeight,s.clientHeight,_?_.scrollHeight:0,_?_.clientHeight:0),pe=-v.scrollLeft+getWindowScrollBarX(i),we=-v.scrollTop;return"rtl"===getComputedStyle(_||s).direction&&(pe+=No(s.clientWidth,_?_.clientWidth:0)-$),{width:$,height:ae,x:pe,y:we}}function contains(i,o){var s=o.getRootNode&&o.getRootNode();if(i.contains(o))return!0;if(s&&isShadowRoot(s)){var v=o;do{if(v&&i.isSameNode(v))return!0;v=v.parentNode||v.host}while(v)}return!1}function rectToClientRect(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function getInnerBoundingClientRect(i,o){var s=getBoundingClientRect(i,!1,"fixed"===o);return s.top=s.top+i.clientTop,s.left=s.left+i.clientLeft,s.bottom=s.top+i.clientHeight,s.right=s.left+i.clientWidth,s.width=i.clientWidth,s.height=i.clientHeight,s.x=s.left,s.y=s.top,s}function getClientRectFromMixedType(i,o,s){return o===Yo?rectToClientRect(getViewportRect(i,s)):isElement(o)?getInnerBoundingClientRect(o,s):rectToClientRect(getDocumentRect(getDocumentElement(i)))}function getClippingParents(i){var o=listScrollParents(getParentNode(i)),s=["absolute","fixed"].indexOf(getComputedStyle(i).position)>=0&&isHTMLElement(i)?getOffsetParent(i):i;return isElement(s)?o.filter((function(i){return isElement(i)&&contains(i,s)&&"body"!==getNodeName(i)})):[]}function getClippingRect(i,o,s,v){var _="clippingParents"===o?getClippingParents(i):[].concat(o),$=[].concat(_,[s]),ae=$[0],pe=$.reduce((function(o,s){var _=getClientRectFromMixedType(i,s,v);return o.top=No(_.top,o.top),o.right=Bo(_.right,o.right),o.bottom=Bo(_.bottom,o.bottom),o.left=No(_.left,o.left),o}),getClientRectFromMixedType(i,ae,v));return pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top,pe.x=pe.left,pe.y=pe.top,pe}function mergePaddingObject(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function expandToHashMap(i,o){return o.reduce((function(o,s){return o[s]=i,o}),{})}function detectOverflow(i,o){void 0===o&&(o={});var s=o,v=s.placement,_=void 0===v?i.placement:v,$=s.strategy,ae=void 0===$?i.strategy:$,pe=s.boundary,we=void 0===pe?Xo:pe,_e=s.rootBoundary,et=void 0===_e?Yo:_e,tt=s.elementContext,nt=void 0===tt?es:tt,rt=s.altBoundary,it=void 0!==rt&&rt,ot=s.padding,st=void 0===ot?0:ot,dt=mergePaddingObject("number"!=typeof st?st:expandToHashMap(st,$o)),ut=nt===es?ts:es,lt=i.rects.popper,ct=i.elements[it?ut:nt],ht=getClippingRect(isElement(ct)?ct:ct.contextElement||getDocumentElement(i.elements.popper),we,et,ae),pt=getBoundingClientRect(i.elements.reference),ft=computeOffsets({reference:pt,element:lt,strategy:"absolute",placement:_}),gt=rectToClientRect(Object.assign({},lt,ft)),mt=nt===es?gt:pt,yt={top:ht.top-mt.top+dt.top,bottom:mt.bottom-ht.bottom+dt.bottom,left:ht.left-mt.left+dt.left,right:mt.right-ht.right+dt.right},vt=i.modifiersData.offset;if(nt===es&&vt){var Rt=vt[_];Object.keys(yt).forEach((function(i){var o=[Vo,Qo].indexOf(i)>=0?1:-1,s=[Mo,Qo].indexOf(i)>=0?"y":"x";yt[i]+=Rt[s]*o}))}return yt}function computeAutoPlacement(i,o){void 0===o&&(o={});var s=o,v=s.placement,_=s.boundary,$=s.rootBoundary,ae=s.padding,pe=s.flipVariations,we=s.allowedAutoPlacements,_e=void 0===we?as:we,et=getVariation(v),tt=et?pe?ns:ns.filter((function(i){return getVariation(i)===et})):$o,nt=tt.filter((function(i){return _e.indexOf(i)>=0}));0===nt.length&&(nt=tt);var rt=nt.reduce((function(o,s){return o[s]=detectOverflow(i,{placement:s,boundary:_,rootBoundary:$,padding:ae})[getBasePlacement(s)],o}),{});return Object.keys(rt).sort((function(i,o){return rt[i]-rt[o]}))}function getExpandedFallbackPlacements(i){if(getBasePlacement(i)===Wo)return[];var o=getOppositePlacement(i);return[getOppositeVariationPlacement(i),o,getOppositeVariationPlacement(o)]}function within(i,o,s){return No(i,Bo(o,s))}function withinMaxClamp(i,o,s){var v=within(i,o,s);return v>s?s:v}var hs=function toPaddingObject(i,o){return mergePaddingObject("number"!=typeof(i="function"==typeof i?i(Object.assign({},o.rects,{placement:o.placement})):i)?i:expandToHashMap(i,$o))};function getSideOffsets(i,o,s){return void 0===s&&(s={x:0,y:0}),{top:i.top-o.height-s.y,right:i.right-o.width+s.x,bottom:i.bottom-o.height+s.y,left:i.left-o.width-s.x}}function isAnySideFullyClipped(i){return[Mo,Vo,Qo,Uo].some((function(o){return i[o]>=0}))}var ps=popperGenerator({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function effect(i){var o=i.state,s=i.instance,v=i.options,_=v.scroll,$=void 0===_||_,ae=v.resize,pe=void 0===ae||ae,we=getWindow(o.elements.popper),_e=[].concat(o.scrollParents.reference,o.scrollParents.popper);return $&&_e.forEach((function(i){i.addEventListener("scroll",s.update,ss)})),pe&&we.addEventListener("resize",s.update,ss),function(){$&&_e.forEach((function(i){i.removeEventListener("scroll",s.update,ss)})),pe&&we.removeEventListener("resize",s.update,ss)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets_popperOffsets(i){var o=i.state,s=i.name;o.modifiersData[s]=computeOffsets({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(i){var o=i.state,s=i.options,v=s.gpuAcceleration,_=void 0===v||v,$=s.adaptive,ae=void 0===$||$,pe=s.roundOffsets,we=void 0===pe||pe,_e={placement:getBasePlacement(o.placement),variation:getVariation(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:_,isFixed:"fixed"===o.options.strategy};null!=o.modifiersData.popperOffsets&&(o.styles.popper=Object.assign({},o.styles.popper,mapToStyles(Object.assign({},_e,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:ae,roundOffsets:we})))),null!=o.modifiersData.arrow&&(o.styles.arrow=Object.assign({},o.styles.arrow,mapToStyles(Object.assign({},_e,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:we})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})},data:{}},us,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset_offset(i){var o=i.state,s=i.options,v=i.name,_=s.offset,$=void 0===_?[0,0]:_,ae=as.reduce((function(i,s){return i[s]=distanceAndSkiddingToXY(s,o.rects,$),i}),{}),pe=ae[o.placement],we=pe.x,_e=pe.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=we,o.modifiersData.popperOffsets.y+=_e),o.modifiersData[v]=ae}},{name:"flip",enabled:!0,phase:"main",fn:function flip(i){var o=i.state,s=i.options,v=i.name;if(!o.modifiersData[v]._skip){for(var _=s.mainAxis,$=void 0===_||_,ae=s.altAxis,pe=void 0===ae||ae,we=s.fallbackPlacements,_e=s.padding,et=s.boundary,tt=s.rootBoundary,nt=s.altBoundary,rt=s.flipVariations,it=void 0===rt||rt,ot=s.allowedAutoPlacements,st=o.options.placement,dt=getBasePlacement(st),ut=we||(dt===st||!it?[getOppositePlacement(st)]:getExpandedFallbackPlacements(st)),lt=[st].concat(ut).reduce((function(i,s){return i.concat(getBasePlacement(s)===Wo?computeAutoPlacement(o,{placement:s,boundary:et,rootBoundary:tt,padding:_e,flipVariations:it,allowedAutoPlacements:ot}):s)}),[]),ct=o.rects.reference,ht=o.rects.popper,pt=new Map,ft=!0,gt=lt[0],mt=0;mt=0,Ot=bt?"width":"height",xt=detectOverflow(o,{placement:yt,boundary:et,rootBoundary:tt,altBoundary:nt,padding:_e}),wt=bt?Rt?Vo:Uo:Rt?Qo:Mo;ct[Ot]>ht[Ot]&&(wt=getOppositePlacement(wt));var Ct=getOppositePlacement(wt),St=[];if($&&St.push(xt[vt]<=0),pe&&St.push(xt[wt]<=0,xt[Ct]<=0),St.every((function(i){return i}))){gt=yt,ft=!1;break}pt.set(yt,St)}if(ft)for(var _t=function _loop(i){var o=lt.find((function(o){var s=pt.get(o);if(s)return s.slice(0,i).every((function(i){return i}))}));if(o)return gt=o,"break"},Et=it?3:1;Et>0;Et--){if("break"===_t(Et))break}o.placement!==gt&&(o.modifiersData[v]._skip=!0,o.placement=gt,o.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(i){var o=i.state,s=i.options,v=i.name,_=s.mainAxis,$=void 0===_||_,ae=s.altAxis,pe=void 0!==ae&&ae,we=s.boundary,_e=s.rootBoundary,et=s.altBoundary,tt=s.padding,nt=s.tether,rt=void 0===nt||nt,it=s.tetherOffset,ot=void 0===it?0:it,st=detectOverflow(o,{boundary:we,rootBoundary:_e,padding:tt,altBoundary:et}),dt=getBasePlacement(o.placement),ut=getVariation(o.placement),lt=!ut,ct=getMainAxisFromPlacement(dt),ht="x"===ct?"y":"x",pt=o.modifiersData.popperOffsets,ft=o.rects.reference,gt=o.rects.popper,mt="function"==typeof ot?ot(Object.assign({},o.rects,{placement:o.placement})):ot,yt="number"==typeof mt?{mainAxis:mt,altAxis:mt}:Object.assign({mainAxis:0,altAxis:0},mt),vt=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,Rt={x:0,y:0};if(pt){if($){var bt,Ot="y"===ct?Mo:Uo,xt="y"===ct?Qo:Vo,wt="y"===ct?"height":"width",Ct=pt[ct],St=Ct+st[Ot],_t=Ct-st[xt],Et=rt?-gt[wt]/2:0,kt=ut===qo?ft[wt]:gt[wt],At=ut===qo?-gt[wt]:-ft[wt],Dt=o.elements.arrow,Pt=rt&&Dt?getLayoutRect(Dt):{width:0,height:0},Tt=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},It=Tt[Ot],Ft=Tt[xt],Nt=within(0,ft[wt],Pt[wt]),Bt=lt?ft[wt]/2-Et-Nt-It-yt.mainAxis:kt-Nt-It-yt.mainAxis,Lt=lt?-ft[wt]/2+Et+Nt+Ft+yt.mainAxis:At+Nt+Ft+yt.mainAxis,jt=o.elements.arrow&&getOffsetParent(o.elements.arrow),Mt=jt?"y"===ct?jt.clientTop||0:jt.clientLeft||0:0,Qt=null!=(bt=null==vt?void 0:vt[ct])?bt:0,Vt=Ct+Lt-Qt,Ut=within(rt?Bo(St,Ct+Bt-Qt-Mt):St,Ct,rt?No(_t,Vt):_t);pt[ct]=Ut,Rt[ct]=Ut-Ct}if(pe){var Wt,$t="x"===ct?Mo:Uo,qt="x"===ct?Qo:Vo,zt=pt[ht],Zt="y"===ht?"height":"width",Ht=zt+st[$t],Gt=zt-st[qt],Xt=-1!==[Mo,Uo].indexOf(dt),Yt=null!=(Wt=null==vt?void 0:vt[ht])?Wt:0,Kt=Xt?Ht:zt-ft[Zt]-gt[Zt]-Yt+yt.altAxis,Jt=Xt?zt+ft[Zt]+gt[Zt]-Yt-yt.altAxis:Gt,nn=rt&&Xt?withinMaxClamp(Kt,zt,Jt):within(rt?Kt:Ht,zt,rt?Jt:Gt);pt[ht]=nn,Rt[ht]=nn-zt}o.modifiersData[v]=Rt}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function arrow_arrow(i){var o,s=i.state,v=i.name,_=i.options,$=s.elements.arrow,ae=s.modifiersData.popperOffsets,pe=getBasePlacement(s.placement),we=getMainAxisFromPlacement(pe),_e=[Uo,Vo].indexOf(pe)>=0?"height":"width";if($&&ae){var et=hs(_.padding,s),tt=getLayoutRect($),nt="y"===we?Mo:Uo,rt="y"===we?Qo:Vo,it=s.rects.reference[_e]+s.rects.reference[we]-ae[we]-s.rects.popper[_e],ot=ae[we]-s.rects.reference[we],st=getOffsetParent($),dt=st?"y"===we?st.clientHeight||0:st.clientWidth||0:0,ut=it/2-ot/2,lt=et[nt],ct=dt-tt[_e]-et[rt],ht=dt/2-tt[_e]/2+ut,pt=within(lt,ht,ct),ft=we;s.modifiersData[v]=((o={})[ft]=pt,o.centerOffset=pt-ht,o)}},effect:function arrow_effect(i){var o=i.state,s=i.options.element,v=void 0===s?"[data-popper-arrow]":s;null!=v&&("string"!=typeof v||(v=o.elements.popper.querySelector(v)))&&contains(o.elements.popper,v)&&(o.elements.arrow=v)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide_hide(i){var o=i.state,s=i.name,v=o.rects.reference,_=o.rects.popper,$=o.modifiersData.preventOverflow,ae=detectOverflow(o,{elementContext:"reference"}),pe=detectOverflow(o,{altBoundary:!0}),we=getSideOffsets(ae,v),_e=getSideOffsets(pe,_,$),et=isAnySideFullyClipped(we),tt=isAnySideFullyClipped(_e);o.modifiersData[s]={referenceClippingOffsets:we,popperEscapeOffsets:_e,isReferenceHidden:et,hasPopperEscaped:tt},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":et,"data-popper-escaped":tt})}}]}),fs="tippy-content",gs="tippy-backdrop",ms="tippy-arrow",ys="tippy-svg-arrow",vs={passive:!0,capture:!0},Rs=function TIPPY_DEFAULT_APPEND_TO(){return document.body};function getValueAtIndexOrReturn(i,o,s){if(Array.isArray(i)){var v=i[o];return null==v?Array.isArray(s)?s[o]:s:v}return i}function isType(i,o){var s={}.toString.call(i);return 0===s.indexOf("[object")&&s.indexOf(o+"]")>-1}function invokeWithArgsOrReturn(i,o){return"function"==typeof i?i.apply(void 0,o):i}function tippy_esm_debounce(i,o){return 0===o?i:function(v){clearTimeout(s),s=setTimeout((function(){i(v)}),o)};var s}function normalizeToArray(i){return[].concat(i)}function pushIfUnique(i,o){-1===i.indexOf(o)&&i.push(o)}function tippy_esm_getBasePlacement(i){return i.split("-")[0]}function arrayFrom(i){return[].slice.call(i)}function removeUndefinedProps(i){return Object.keys(i).reduce((function(o,s){return void 0!==i[s]&&(o[s]=i[s]),o}),{})}function div(){return document.createElement("div")}function tippy_esm_isElement(i){return["Element","Fragment"].some((function(o){return isType(i,o)}))}function isNodeList(i){return isType(i,"NodeList")}function isMouseEvent(i){return isType(i,"MouseEvent")}function isReferenceElement(i){return!(!i||!i._tippy||i._tippy.reference!==i)}function setTransitionDuration(i,o){i.forEach((function(i){i&&(i.style.transitionDuration=o+"ms")}))}function setVisibilityState(i,o){i.forEach((function(i){i&&i.setAttribute("data-state",o)}))}function getOwnerDocument(i){var o,s=normalizeToArray(i)[0];return null!=s&&null!=(o=s.ownerDocument)&&o.body?s.ownerDocument:document}function isCursorOutsideInteractiveBorder(i,o){var s=o.clientX,v=o.clientY;return i.every((function(i){var o=i.popperRect,_=i.popperState,$=i.props.interactiveBorder,ae=tippy_esm_getBasePlacement(_.placement),pe=_.modifiersData.offset;if(!pe)return!0;var we="bottom"===ae?pe.top.y:0,_e="top"===ae?pe.bottom.y:0,et="right"===ae?pe.left.x:0,tt="left"===ae?pe.right.x:0,nt=o.top-v+we>$,rt=v-o.bottom-_e>$,it=o.left-s+et>$,ot=s-o.right-tt>$;return nt||rt||it||ot}))}function updateTransitionEndListener(i,o,s){var v=o+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(o){i[v](o,s)}))}function actualContains(i,o){for(var s=o;s;){var v;if(i.contains(s))return!0;s=null==s.getRootNode||null==(v=s.getRootNode())?void 0:v.host}return!1}var bs={isTouch:!1},Os=0;function onDocumentTouchStart(){bs.isTouch||(bs.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var i=performance.now();i-Os<20&&(bs.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),Os=i}function onWindowBlur(){var i=document.activeElement;if(isReferenceElement(i)){var o=i._tippy;i.blur&&!o.state.isVisible&&i.blur()}}var xs=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ws={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Cs=Object.assign({appendTo:Rs,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function onAfterUpdate(){},onBeforeUpdate:function onBeforeUpdate(){},onCreate:function onCreate(){},onDestroy:function onDestroy(){},onHidden:function onHidden(){},onHide:function onHide(){},onMount:function onMount(){},onShow:function onShow(){},onShown:function onShown(){},onTrigger:function onTrigger(){},onUntrigger:function onUntrigger(){},onClickOutside:function onClickOutside(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ws,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ss=Object.keys(Cs);function getExtendedPassedProps(i){var o=(i.plugins||[]).reduce((function(o,s){var v,_=s.name,$=s.defaultValue;_&&(o[_]=void 0!==i[_]?i[_]:null!=(v=Cs[_])?v:$);return o}),{});return Object.assign({},i,o)}function getDataAttributeProps(i,o){return(o?Object.keys(getExtendedPassedProps(Object.assign({},Cs,{plugins:o}))):Ss).reduce((function(o,s){var v=(i.getAttribute("data-tippy-"+s)||"").trim();if(!v)return o;if("content"===s)o[s]=v;else try{o[s]=JSON.parse(v)}catch(i){o[s]=v}return o}),{})}function evaluateProps(i,o){var s=Object.assign({},o,{content:invokeWithArgsOrReturn(o.content,[i])},o.ignoreAttributes?{}:getDataAttributeProps(i,o.plugins));return s.aria=Object.assign({},Cs.aria,s.aria),s.aria={expanded:"auto"===s.aria.expanded?o.interactive:s.aria.expanded,content:"auto"===s.aria.content?o.interactive?null:"describedby":s.aria.content},s}var _s=function innerHTML(){return"innerHTML"};function dangerouslySetInnerHTML(i,o){i[_s()]=o}function createArrowElement(i){var o=div();return!0===i?o.className=ms:(o.className=ys,tippy_esm_isElement(i)?o.appendChild(i):dangerouslySetInnerHTML(o,i)),o}function tippy_esm_setContent(i,o){tippy_esm_isElement(o.content)?(dangerouslySetInnerHTML(i,""),i.appendChild(o.content)):"function"!=typeof o.content&&(o.allowHTML?dangerouslySetInnerHTML(i,o.content):i.textContent=o.content)}function getChildren(i){var o=i.firstElementChild,s=arrayFrom(o.children);return{box:o,content:s.find((function(i){return i.classList.contains(fs)})),arrow:s.find((function(i){return i.classList.contains(ms)||i.classList.contains(ys)})),backdrop:s.find((function(i){return i.classList.contains(gs)}))}}function tippy_esm_render(i){var o=div(),s=div();s.className="tippy-box",s.setAttribute("data-state","hidden"),s.setAttribute("tabindex","-1");var v=div();function onUpdate(s,v){var _=getChildren(o),$=_.box,ae=_.content,pe=_.arrow;v.theme?$.setAttribute("data-theme",v.theme):$.removeAttribute("data-theme"),"string"==typeof v.animation?$.setAttribute("data-animation",v.animation):$.removeAttribute("data-animation"),v.inertia?$.setAttribute("data-inertia",""):$.removeAttribute("data-inertia"),$.style.maxWidth="number"==typeof v.maxWidth?v.maxWidth+"px":v.maxWidth,v.role?$.setAttribute("role",v.role):$.removeAttribute("role"),s.content===v.content&&s.allowHTML===v.allowHTML||tippy_esm_setContent(ae,i.props),v.arrow?pe?s.arrow!==v.arrow&&($.removeChild(pe),$.appendChild(createArrowElement(v.arrow))):$.appendChild(createArrowElement(v.arrow)):pe&&$.removeChild(pe)}return v.className=fs,v.setAttribute("data-state","hidden"),tippy_esm_setContent(v,i.props),o.appendChild(s),s.appendChild(v),onUpdate(i.props,i.props),{popper:o,onUpdate:onUpdate}}tippy_esm_render.$$tippy=!0;var Es=1,ks=[],As=[];function createTippy(i,o){var s,v,_,$,ae,pe,we,_e,et=evaluateProps(i,Object.assign({},Cs,getExtendedPassedProps(removeUndefinedProps(o)))),tt=!1,nt=!1,rt=!1,it=!1,ot=[],st=tippy_esm_debounce(onMouseMove,et.interactiveDebounce),dt=Es++,ut=(_e=et.plugins).filter((function(i,o){return _e.indexOf(i)===o})),lt={id:dt,reference:i,popper:div(),popperInstance:null,props:et,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:ut,clearDelayTimeouts:function clearDelayTimeouts(){clearTimeout(s),clearTimeout(v),cancelAnimationFrame(_)},setProps:function setProps(o){0;if(lt.state.isDestroyed)return;invokeHook("onBeforeUpdate",[lt,o]),removeListeners();var s=lt.props,v=evaluateProps(i,Object.assign({},s,removeUndefinedProps(o),{ignoreAttributes:!0}));lt.props=v,addListeners(),s.interactiveDebounce!==v.interactiveDebounce&&(cleanupInteractiveMouseListeners(),st=tippy_esm_debounce(onMouseMove,v.interactiveDebounce));s.triggerTarget&&!v.triggerTarget?normalizeToArray(s.triggerTarget).forEach((function(i){i.removeAttribute("aria-expanded")})):v.triggerTarget&&i.removeAttribute("aria-expanded");handleAriaExpandedAttribute(),handleStyles(),pt&&pt(s,v);lt.popperInstance&&(createPopperInstance(),getNestedPopperTree().forEach((function(i){requestAnimationFrame(i._tippy.popperInstance.forceUpdate)})));invokeHook("onAfterUpdate",[lt,o])},setContent:function setContent(i){lt.setProps({content:i})},show:function show(){0;var i=lt.state.isVisible,o=lt.state.isDestroyed,s=!lt.state.isEnabled,v=bs.isTouch&&!lt.props.touch,_=getValueAtIndexOrReturn(lt.props.duration,0,Cs.duration);if(i||o||s||v)return;if(getCurrentTarget().hasAttribute("disabled"))return;if(invokeHook("onShow",[lt],!1),!1===lt.props.onShow(lt))return;lt.state.isVisible=!0,getIsDefaultRenderFn()&&(ht.style.visibility="visible");handleStyles(),addDocumentPress(),lt.state.isMounted||(ht.style.transition="none");if(getIsDefaultRenderFn()){var $=getDefaultTemplateChildren();setTransitionDuration([$.box,$.content],0)}pe=function onFirstUpdate(){var i;if(lt.state.isVisible&&!it){if(it=!0,ht.offsetHeight,ht.style.transition=lt.props.moveTransition,getIsDefaultRenderFn()&<.props.animation){var o=getDefaultTemplateChildren(),s=o.box,v=o.content;setTransitionDuration([s,v],_),setVisibilityState([s,v],"visible")}handleAriaContentAttribute(),handleAriaExpandedAttribute(),pushIfUnique(As,lt),null==(i=lt.popperInstance)||i.forceUpdate(),invokeHook("onMount",[lt]),lt.props.animation&&getIsDefaultRenderFn()&&onTransitionedIn(_,(function(){lt.state.isShown=!0,invokeHook("onShown",[lt])}))}},mount()},hide:function hide(){0;var i=!lt.state.isVisible,o=lt.state.isDestroyed,s=!lt.state.isEnabled,v=getValueAtIndexOrReturn(lt.props.duration,1,Cs.duration);if(i||o||s)return;if(invokeHook("onHide",[lt],!1),!1===lt.props.onHide(lt))return;lt.state.isVisible=!1,lt.state.isShown=!1,it=!1,tt=!1,getIsDefaultRenderFn()&&(ht.style.visibility="hidden");if(cleanupInteractiveMouseListeners(),removeDocumentPress(),handleStyles(!0),getIsDefaultRenderFn()){var _=getDefaultTemplateChildren(),$=_.box,ae=_.content;lt.props.animation&&(setTransitionDuration([$,ae],v),setVisibilityState([$,ae],"hidden"))}handleAriaContentAttribute(),handleAriaExpandedAttribute(),lt.props.animation?getIsDefaultRenderFn()&&onTransitionedOut(v,lt.unmount):lt.unmount()},hideWithInteractivity:function hideWithInteractivity(i){0;getDocument().addEventListener("mousemove",st),pushIfUnique(ks,st),st(i)},enable:function enable(){lt.state.isEnabled=!0},disable:function disable(){lt.hide(),lt.state.isEnabled=!1},unmount:function unmount(){0;lt.state.isVisible&<.hide();if(!lt.state.isMounted)return;destroyPopperInstance(),getNestedPopperTree().forEach((function(i){i._tippy.unmount()})),ht.parentNode&&ht.parentNode.removeChild(ht);As=As.filter((function(i){return i!==lt})),lt.state.isMounted=!1,invokeHook("onHidden",[lt])},destroy:function destroy(){0;if(lt.state.isDestroyed)return;lt.clearDelayTimeouts(),lt.unmount(),removeListeners(),delete i._tippy,lt.state.isDestroyed=!0,invokeHook("onDestroy",[lt])}};if(!et.render)return lt;var ct=et.render(lt),ht=ct.popper,pt=ct.onUpdate;ht.setAttribute("data-tippy-root",""),ht.id="tippy-"+lt.id,lt.popper=ht,i._tippy=lt,ht._tippy=lt;var ft=ut.map((function(i){return i.fn(lt)})),gt=i.hasAttribute("aria-expanded");return addListeners(),handleAriaExpandedAttribute(),handleStyles(),invokeHook("onCreate",[lt]),et.showOnCreate&&scheduleShow(),ht.addEventListener("mouseenter",(function(){lt.props.interactive&<.state.isVisible&<.clearDelayTimeouts()})),ht.addEventListener("mouseleave",(function(){lt.props.interactive&<.props.trigger.indexOf("mouseenter")>=0&&getDocument().addEventListener("mousemove",st)})),lt;function getNormalizedTouchSettings(){var i=lt.props.touch;return Array.isArray(i)?i:[i,0]}function getIsCustomTouchBehavior(){return"hold"===getNormalizedTouchSettings()[0]}function getIsDefaultRenderFn(){var i;return!(null==(i=lt.props.render)||!i.$$tippy)}function getCurrentTarget(){return we||i}function getDocument(){var i=getCurrentTarget().parentNode;return i?getOwnerDocument(i):document}function getDefaultTemplateChildren(){return getChildren(ht)}function getDelay(i){return lt.state.isMounted&&!lt.state.isVisible||bs.isTouch||$&&"focus"===$.type?0:getValueAtIndexOrReturn(lt.props.delay,i?0:1,Cs.delay)}function handleStyles(i){void 0===i&&(i=!1),ht.style.pointerEvents=lt.props.interactive&&!i?"":"none",ht.style.zIndex=""+lt.props.zIndex}function invokeHook(i,o,s){var v;(void 0===s&&(s=!0),ft.forEach((function(s){s[i]&&s[i].apply(s,o)})),s)&&(v=lt.props)[i].apply(v,o)}function handleAriaContentAttribute(){var o=lt.props.aria;if(o.content){var s="aria-"+o.content,v=ht.id;normalizeToArray(lt.props.triggerTarget||i).forEach((function(i){var o=i.getAttribute(s);if(lt.state.isVisible)i.setAttribute(s,o?o+" "+v:v);else{var _=o&&o.replace(v,"").trim();_?i.setAttribute(s,_):i.removeAttribute(s)}}))}}function handleAriaExpandedAttribute(){!gt&<.props.aria.expanded&&normalizeToArray(lt.props.triggerTarget||i).forEach((function(i){lt.props.interactive?i.setAttribute("aria-expanded",lt.state.isVisible&&i===getCurrentTarget()?"true":"false"):i.removeAttribute("aria-expanded")}))}function cleanupInteractiveMouseListeners(){getDocument().removeEventListener("mousemove",st),ks=ks.filter((function(i){return i!==st}))}function onDocumentPress(o){if(!bs.isTouch||!rt&&"mousedown"!==o.type){var s=o.composedPath&&o.composedPath()[0]||o.target;if(!lt.props.interactive||!actualContains(ht,s)){if(normalizeToArray(lt.props.triggerTarget||i).some((function(i){return actualContains(i,s)}))){if(bs.isTouch)return;if(lt.state.isVisible&<.props.trigger.indexOf("click")>=0)return}else invokeHook("onClickOutside",[lt,o]);!0===lt.props.hideOnClick&&(lt.clearDelayTimeouts(),lt.hide(),nt=!0,setTimeout((function(){nt=!1})),lt.state.isMounted||removeDocumentPress())}}}function onTouchMove(){rt=!0}function onTouchStart(){rt=!1}function addDocumentPress(){var i=getDocument();i.addEventListener("mousedown",onDocumentPress,!0),i.addEventListener("touchend",onDocumentPress,vs),i.addEventListener("touchstart",onTouchStart,vs),i.addEventListener("touchmove",onTouchMove,vs)}function removeDocumentPress(){var i=getDocument();i.removeEventListener("mousedown",onDocumentPress,!0),i.removeEventListener("touchend",onDocumentPress,vs),i.removeEventListener("touchstart",onTouchStart,vs),i.removeEventListener("touchmove",onTouchMove,vs)}function onTransitionedOut(i,o){onTransitionEnd(i,(function(){!lt.state.isVisible&&ht.parentNode&&ht.parentNode.contains(ht)&&o()}))}function onTransitionedIn(i,o){onTransitionEnd(i,o)}function onTransitionEnd(i,o){var s=getDefaultTemplateChildren().box;function listener(i){i.target===s&&(updateTransitionEndListener(s,"remove",listener),o())}if(0===i)return o();updateTransitionEndListener(s,"remove",ae),updateTransitionEndListener(s,"add",listener),ae=listener}function on(o,s,v){void 0===v&&(v=!1),normalizeToArray(lt.props.triggerTarget||i).forEach((function(i){i.addEventListener(o,s,v),ot.push({node:i,eventType:o,handler:s,options:v})}))}function addListeners(){var i;getIsCustomTouchBehavior()&&(on("touchstart",onTrigger,{passive:!0}),on("touchend",onMouseLeave,{passive:!0})),(i=lt.props.trigger,i.split(/\s+/).filter(Boolean)).forEach((function(i){if("manual"!==i)switch(on(i,onTrigger),i){case"mouseenter":on("mouseleave",onMouseLeave);break;case"focus":on(xs?"focusout":"blur",onBlurOrFocusOut);break;case"focusin":on("focusout",onBlurOrFocusOut)}}))}function removeListeners(){ot.forEach((function(i){var o=i.node,s=i.eventType,v=i.handler,_=i.options;o.removeEventListener(s,v,_)})),ot=[]}function onTrigger(i){var o,s=!1;if(lt.state.isEnabled&&!isEventListenerStopped(i)&&!nt){var v="focus"===(null==(o=$)?void 0:o.type);$=i,we=i.currentTarget,handleAriaExpandedAttribute(),!lt.state.isVisible&&isMouseEvent(i)&&ks.forEach((function(o){return o(i)})),"click"===i.type&&(lt.props.trigger.indexOf("mouseenter")<0||tt)&&!1!==lt.props.hideOnClick&<.state.isVisible?s=!0:scheduleShow(i),"click"===i.type&&(tt=!s),s&&!v&&scheduleHide(i)}}function onMouseMove(i){var o=i.target,s=getCurrentTarget().contains(o)||ht.contains(o);if("mousemove"!==i.type||!s){var v=getNestedPopperTree().concat(ht).map((function(i){var o,s=null==(o=i._tippy.popperInstance)?void 0:o.state;return s?{popperRect:i.getBoundingClientRect(),popperState:s,props:et}:null})).filter(Boolean);isCursorOutsideInteractiveBorder(v,i)&&(cleanupInteractiveMouseListeners(),scheduleHide(i))}}function onMouseLeave(i){isEventListenerStopped(i)||lt.props.trigger.indexOf("click")>=0&&tt||(lt.props.interactive?lt.hideWithInteractivity(i):scheduleHide(i))}function onBlurOrFocusOut(i){lt.props.trigger.indexOf("focusin")<0&&i.target!==getCurrentTarget()||lt.props.interactive&&i.relatedTarget&&ht.contains(i.relatedTarget)||scheduleHide(i)}function isEventListenerStopped(i){return!!bs.isTouch&&getIsCustomTouchBehavior()!==i.type.indexOf("touch")>=0}function createPopperInstance(){destroyPopperInstance();var o=lt.props,s=o.popperOptions,v=o.placement,_=o.offset,$=o.getReferenceClientRect,ae=o.moveTransition,we=getIsDefaultRenderFn()?getChildren(ht).arrow:null,_e=$?{getBoundingClientRect:$,contextElement:$.contextElement||getCurrentTarget()}:i,et={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function fn(i){var o=i.state;if(getIsDefaultRenderFn()){var s=getDefaultTemplateChildren().box;["placement","reference-hidden","escaped"].forEach((function(i){"placement"===i?s.setAttribute("data-placement",o.placement):o.attributes.popper["data-popper-"+i]?s.setAttribute("data-"+i,""):s.removeAttribute("data-"+i)})),o.attributes.popper={}}}},tt=[{name:"offset",options:{offset:_}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ae}},et];getIsDefaultRenderFn()&&we&&tt.push({name:"arrow",options:{element:we,padding:3}}),tt.push.apply(tt,(null==s?void 0:s.modifiers)||[]),lt.popperInstance=ps(_e,ht,Object.assign({},s,{placement:v,onFirstUpdate:pe,modifiers:tt}))}function destroyPopperInstance(){lt.popperInstance&&(lt.popperInstance.destroy(),lt.popperInstance=null)}function mount(){var i,o=lt.props.appendTo,s=getCurrentTarget();(i=lt.props.interactive&&o===Rs||"parent"===o?s.parentNode:invokeWithArgsOrReturn(o,[s])).contains(ht)||i.appendChild(ht),lt.state.isMounted=!0,createPopperInstance()}function getNestedPopperTree(){return arrayFrom(ht.querySelectorAll("[data-tippy-root]"))}function scheduleShow(i){lt.clearDelayTimeouts(),i&&invokeHook("onTrigger",[lt,i]),addDocumentPress();var o=getDelay(!0),v=getNormalizedTouchSettings(),_=v[0],$=v[1];bs.isTouch&&"hold"===_&&$&&(o=$),o?s=setTimeout((function(){lt.show()}),o):lt.show()}function scheduleHide(i){if(lt.clearDelayTimeouts(),invokeHook("onUntrigger",[lt,i]),lt.state.isVisible){if(!(lt.props.trigger.indexOf("mouseenter")>=0&<.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(i.type)>=0&&tt)){var o=getDelay(!1);o?v=setTimeout((function(){lt.state.isVisible&<.hide()}),o):_=requestAnimationFrame((function(){lt.hide()}))}}else removeDocumentPress()}}function tippy_esm_tippy(i,o){void 0===o&&(o={});var s=Cs.plugins.concat(o.plugins||[]);document.addEventListener("touchstart",onDocumentTouchStart,vs),window.addEventListener("blur",onWindowBlur);var v,_=Object.assign({},o,{plugins:s}),$=(tippy_esm_isElement(v=i)?[v]:isNodeList(v)?arrayFrom(v):Array.isArray(v)?v:arrayFrom(document.querySelectorAll(v))).reduce((function(i,o){var s=o&&createTippy(o,_);return s&&i.push(s),i}),[]);return tippy_esm_isElement(i)?$[0]:$}tippy_esm_tippy.defaultProps=Cs,tippy_esm_tippy.setDefaultProps=function setDefaultProps(i){Object.keys(i).forEach((function(o){Cs[o]=i[o]}))},tippy_esm_tippy.currentInput=bs;Object.assign({},us,{effect:function effect(i){var o=i.state,s={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(o.elements.popper.style,s.popper),o.styles=s,o.elements.arrow&&Object.assign(o.elements.arrow.style,s.arrow)}});tippy_esm_tippy.setDefaultProps({render:tippy_esm_render});var Ds=tippy_esm_tippy;function tippy_react_esm_objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}var Ps="undefined"!=typeof window&&"undefined"!=typeof document;function preserveRef(i,o){i&&("function"==typeof i&&i(o),{}.hasOwnProperty.call(i,"current")&&(i.current=o))}function ssrSafeCreateDiv(){return Ps&&document.createElement("div")}function toDataAttributes(i){var o={"data-placement":i.placement};return i.referenceHidden&&(o["data-reference-hidden"]=""),i.escaped&&(o["data-escaped"]=""),o}function deepPreserveProps(i,o){var s,v;return Object.assign({},o,{popperOptions:Object.assign({},i.popperOptions,o.popperOptions,{modifiers:[].concat(((null==(s=i.popperOptions)?void 0:s.modifiers)||[]).filter((function(i){return i.name.indexOf("tippy")>=0})),(null==(v=o.popperOptions)?void 0:v.modifiers)||[])})})}var Ts=Ps?ae.useLayoutEffect:ae.useEffect;function useMutableBox(i){var o=Object(ae.useRef)();return o.current||(o.current="function"==typeof i?i():i),o.current}function updateClassName(i,o,s){s.split(/\s+/).forEach((function(s){s&&i.classList[o](s)}))}var Is={name:"className",defaultValue:"",fn:function fn(i){var o=i.popper.firstElementChild,s=function isDefaultRenderFn(){var o;return!!(null==(o=i.props.render)?void 0:o.$$tippy)};function add(){i.props.className&&!s()||updateClassName(o,"add",i.props.className)}return{onCreate:add,onBeforeUpdate:function remove(){s()&&updateClassName(o,"remove",i.props.className)},onAfterUpdate:add}}};function TippyGenerator(i){return function Tippy(o){var s=o.children,v=o.content,$=o.visible,we=o.singleton,_e=o.render,et=o.reference,tt=o.disabled,nt=void 0!==tt&&tt,rt=o.ignoreAttributes,it=void 0===rt||rt,ot=(o.__source,o.__self,tippy_react_esm_objectWithoutPropertiesLoose(o,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),st=void 0!==$,dt=void 0!==we,ut=Object(ae.useState)(!1),lt=ut[0],ct=ut[1],ht=Object(ae.useState)({}),pt=ht[0],ft=ht[1],gt=Object(ae.useState)(),mt=gt[0],yt=gt[1],vt=useMutableBox((function(){return{container:ssrSafeCreateDiv(),renders:1}})),Rt=Object.assign({ignoreAttributes:it},ot,{content:vt.container});st&&(Rt.trigger="manual",Rt.hideOnClick=!1),dt&&(nt=!0);var bt=Rt,Ot=Rt.plugins||[];_e&&(bt=Object.assign({},Rt,{plugins:dt?[].concat(Ot,[{fn:function fn(){return{onTrigger:function onTrigger(i,o){var s=we.data.children.find((function(i){return i.instance.reference===o.currentTarget})).content;yt(s)}}}}]):Ot,render:function render(){return{popper:vt.container}}}));var xt=[et].concat(s?[s.type]:[]);return Ts((function(){var o=et;et&&et.hasOwnProperty("current")&&(o=et.current);var s=i(o||vt.ref||ssrSafeCreateDiv(),Object.assign({},bt,{plugins:[Is].concat(Rt.plugins||[])}));return vt.instance=s,nt&&s.disable(),$&&s.show(),dt&&we.hook({instance:s,content:v,props:bt}),ct(!0),function(){s.destroy(),null==we||we.cleanup(s)}}),xt),Ts((function(){if(1!==vt.renders){var i=vt.instance;i.setProps(deepPreserveProps(i.props,bt)),nt?i.disable():i.enable(),st&&($?i.show():i.hide()),dt&&we.hook({instance:i,content:v,props:bt})}else vt.renders++})),Ts((function(){var i;if(_e){var o=vt.instance;o.setProps({popperOptions:Object.assign({},o.props.popperOptions,{modifiers:[].concat((null==(i=o.props.popperOptions)?void 0:i.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function fn(i){var o,s=i.state,v=null==(o=s.modifiersData)?void 0:o.hide;pt.placement===s.placement&&pt.referenceHidden===(null==v?void 0:v.isReferenceHidden)&&pt.escaped===(null==v?void 0:v.hasPopperEscaped)||ft({placement:s.placement,referenceHidden:null==v?void 0:v.isReferenceHidden,escaped:null==v?void 0:v.hasPopperEscaped}),s.attributes.popper={}}}])})})}}),[pt.placement,pt.referenceHidden,pt.escaped].concat(xt)),pe.a.createElement(pe.a.Fragment,null,s?Object(ae.cloneElement)(s,{ref:function ref(i){vt.ref=i,preserveRef(s.ref,i)}}):null,lt&&Object(_.createPortal)(_e?_e(toDataAttributes(pt),mt):v,vt.container))}}var forwardRef=function(i,o){return Object(ae.forwardRef)((function TippyWrapper(s,v){var _=s.children,$=tippy_react_esm_objectWithoutPropertiesLoose(s,["children"]);return pe.a.createElement(i,Object.assign({},o,$),_?Object(ae.cloneElement)(_,{ref:function ref(i){preserveRef(v,i),preserveRef(_.ref,i)}}):null)}))},Fs=forwardRef(TippyGenerator(Ds));var Ns=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.borderRadius,_=i.fontSize;return{tooltip:{"&.tippy-box":{transitionProperty:[["opacity"]],'&[data-state="hidden"]':{opacity:0}},"& .tippy-content":{padding:o[0],border:"1px "+s.border+" solid",borderRadius:v,background:s.baseBackground,boxShadow:[[0,2,4,"rgba(0,0,0,.15)"]],fontSize:_.small,color:s.type}}}}))((function TooltipRenderer(i){var o=i.classes,s=i.children,v=i.content,_=i.placement,$=void 0===_?"top":_;return pe.a.createElement(Fs,{content:v,className:o.tooltip,interactive:!0,placement:$,trigger:"click mouseenter focus",arrow:!1},pe.a.createElement("span",{role:"button",tabIndex:0},s))}));var Bs=Object(et.a)((function styles(i){return{complexType:{alignItems:"center",display:"inline-flex"},name:{flexShrink:0},icon:{marginLeft:i.space[0],flexShrink:0}}}))((function ComplexTypeRenderer(i){var o=i.classes,s=i.name,v=i.raw;return pe.a.createElement(Ns,{placement:"right",content:v},pe.a.createElement("span",{className:o.complexType},pe.a.createElement("span",{className:o.name},pe.a.createElement(mr.a,null,s)),pe.a.createElement(MdInfoOutline,{className:o.icon})))})),Ls=s(41);function renderType(i){if(!i)return"unknown";var o=i.name;switch(o){case"arrayOf":return i.value.name+"[]";case"objectOf":return"{"+renderType(i.value)+"}";case"instanceOf":return i.value;default:return o}}function renderAdvancedType(i){switch(i.name){case"enum":return pe.a.createElement(Ui,null,i.name);case"literal":return pe.a.createElement(Ui,null,i.value);case"signature":return pe.a.createElement(Bs,{name:i.type,raw:i.raw});case"union":case"tuple":return pe.a.createElement(Bs,{name:i.name,raw:i.raw});default:return pe.a.createElement(Ui,null,i.raw||i.name)}}var js=s(106);function renderEnum(i){if(!Array.isArray(i.value))return pe.a.createElement("span",null,i.value);var o=i.value.map((function(i){var o=i.value;return pe.a.createElement(Ar.a,{key:o},Object(Ls.b)(Object(Ls.c)(o)))}));return pe.a.createElement("span",null,"One of: ",pe.a.createElement(no.a,{separator:", "},o))}function renderUnion(i){if(!Array.isArray(i.value))return pe.a.createElement("span",null,i.value);var o=i.value.map((function(i,o){return pe.a.createElement(Ui,{key:i.name+"-"+o},renderType(i))}));return pe.a.createElement("span",null,"One of type: ",pe.a.createElement(no.a,{separator:", "},o))}function renderShape(i){return Object.keys(i).map((function(o){var s=i[o],v=Object(js.a)(s),_=s.description;return pe.a.createElement("div",{key:o},pe.a.createElement(_i,null,o),": ",pe.a.createElement(Ui,null,renderType(s)),v&&" — ",v,_&&" — ",_&&pe.a.createElement(Kr,{text:_,inline:!0}))}))}function renderExtra(i){var o=Object(Ls.a)(i);if(!o)return null;switch(o.name){case"enum":return renderEnum(o);case"union":return renderUnion(o);case"shape":case"exact":return i.type&&renderShape(i.type.value);case"arrayOf":case"objectOf":return"shape"===o.value.name||"exact"===o.value.name?i.type&&renderShape(i.type.value.value):null;default:return null}}function PropsRenderer_extends(){return PropsRenderer_extends=Object.assign||function(i){for(var o=1;o0&&pe.a.createElement(wo,{args:$,heading:!0}),ae&&pe.a.createElement(Ro,PropsRenderer_extends({},Object.assign({},ae,{name:""}),{returns:!0})))}}],Qs=function PropsRenderer(i){var o=i.props;return pe.a.createElement(To,{columns:Ms,rows:o,getRowKey:PropsRenderer_getRowKey})};Qs.propTypes={props:_e.a.array.isRequired};var Vs=Qs;function MethodsRenderer_extends(){return MethodsRenderer_extends=Object.assign||function(i){for(var o=1;o-1?dt.substring(0,dt.indexOf("?")):dt;nt&&(ut+=lt),we&&(ut+="?nochrome");var ct=encodeURIComponent(v||"");if(ae?ut+="#"+_:(pe||we)&&(ut+=buildIsolatedOrNoChromeFragment({currentHash:lt,encodedName:ct})),et){var ht=et.map(encodeURIComponent);tt||(ht=[].concat(ht,[ct])),ut+="#/"+ht.join("/")}return tt&&(ut+="?id="+_),void 0!==$&&(ut+="/"+$),_e?it+ut:ut}var Ks=function IsolateButton(i){var o=i.name,s=i.example,v=i.isolated,_=i.href;if(v&&!_)return null;var $=s?o+"-"+s+"-isolate-button":o+"-isolate-button";return v?pe.a.createElement(Ys,{href:_,title:"Show all components",testId:$},pe.a.createElement(MdFullscreenExit,null)):pe.a.createElement(Ys,{href:getUrl({name:o,example:s,isolated:!0}),title:"Open isolated",testId:$},pe.a.createElement(MdFullscreen,null))};Ks.propTypes={name:_e.a.string.isRequired,example:_e.a.number,isolated:_e.a.bool};var Js=Ks,ed=function TabButtonRenderer(i){var o,s=i.classes,v=i.name,_=i.className,$=i.onClick,ae=i.active,we=i.children,_e=Object(pr.a)(s.button,_,((o={})[s.isActive]=ae,o));return pe.a.createElement("button",{type:"button",name:v,className:_e,onClick:$,"aria-pressed":ae},we)};ed.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string.isRequired,className:_e.a.string,onClick:_e.a.func.isRequired,active:_e.a.bool,children:_e.a.node.isRequired},ed.defaultProps={active:!1};var dd=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily,_=i.fontSize,$=i.buttonTextTransform;return{button:{padding:[[o[1],0]],fontFamily:v.base,fontSize:_.base,color:s.light,background:"transparent",textTransform:$,transition:"color 750ms ease-out",border:"none",cursor:"pointer","&:hover, &:focus":{isolate:!1,outline:0,color:s.linkHover,transition:"color 150ms ease-in"},"&:focus:not($isActive)":{isolate:!1,outline:[[1,"dotted",s.linkHover]]},"& + &":{isolate:!1,marginLeft:o[1]}},isActive:{borderBottom:[[2,s.linkHover,"solid"]]}}}))(ed),ld=function CodeTabButton(i){return pe.a.createElement(dd,i,"View Code")};ld.propTypes={onClick:_e.a.func.isRequired,name:_e.a.string.isRequired,active:_e.a.bool};var cd=ld,md=function UsageTabButton(i){var o=i.props;return!Zs()(o.props)||!Zs()(o.methods)?pe.a.createElement(dd,i,"Props & methods"):null};md.propTypes={onClick:_e.a.func.isRequired,name:_e.a.string.isRequired,props:_e.a.shape({props:_e.a.array,methods:_e.a.array}).isRequired,active:_e.a.bool};var Cd=md,_d="rsg-code-editor",kd="rsg-usage",Ad=[Js],Md=s(18);function ComponentsListRenderer_extends(){return ComponentsListRenderer_extends=Object.assign||function(i){for(var o=1;o0?pe.a.createElement(Xd,{items:o}):null};Yd.propTypes={items:_e.a.array.isRequired};var eu=Yd,tu=function TableOfContentsRenderer(i){var o=i.classes,s=i.children,v=i.searchTerm,_=i.onSearchTermChange;return pe.a.createElement("div",null,pe.a.createElement("div",{className:o.root},pe.a.createElement("nav",null,pe.a.createElement("div",{className:o.search},pe.a.createElement("input",{value:v,className:o.input,placeholder:"Filter by name","aria-label":"Filter by name",onChange:function onChange(i){return _(i.target.value)}})),s)))};tu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node,searchTerm:_e.a.string.isRequired,onSearchTermChange:_e.a.func.isRequired};var nu=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily,_=i.fontSize,$=i.borderRadius;return{root:{fontFamily:v.base},search:{padding:o[2]},input:{display:"block",width:"100%",padding:o[1],color:s.base,backgroundColor:s.baseBackground,fontFamily:v.base,fontSize:_.base,border:[[1,s.border,"solid"]],borderRadius:$,transition:"all ease-in-out .1s","&:focus":{isolate:!1,borderColor:s.link,boxShadow:[[0,0,0,2,s.focus]],outline:0},"&::placeholder":{isolate:!1,fontFamily:v.base,fontSize:_.base,color:s.light}}}}))(tu);function getFilterRegExp(i){return i=i.replace(/[^a-z0-9]/gi,"").split("").join(".*"),new RegExp(i,"i")}function filterComponentsByName(i,o){var s=getFilterRegExp(o);return i.filter((function(i){var o=i.name;return s.test(o)}))}function filterSectionsByName(i,o){var s=getFilterRegExp(o);return i.map((function(i){return Object.assign({},i,{sections:i.sections?filterSectionsByName(i.sections,o):[],components:i.components?filterComponentsByName(i.components,o):[]})})).filter((function(i){return i.components.length>0||i.sections.length>0||s.test(i.name||"-")}))}var au=s(214),ru=s.n(au),iu=/(.*)\?/;function trimHash(i,o){if(!i)return"";var s=new RegExp("^"+ru()(o||"#/"),"g");return i.replace(s,"")}var ou=function trimParams(i){var o=iu.exec(i);return o&&o[1]||i},su=function hasInHash(i,o){return""!==i&&i.indexOf(o)>-1},du=function getHash(i,o){return decodeURIComponent(ou(trimHash(i,o)))},uu=function getHashAsArray(i,o){return ou(trimHash(i,o)).split("/").map(decodeURIComponent)},lu=function getParameterByName(i,o){o=o.replace(/[[\]]/g,"\\$&");var s=new RegExp("[?&]"+o+"(=([^&#]*)|&|#|$)").exec(i);return s?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null};function TableOfContents_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function TableOfContents_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var cu=function(i){var o,s;s=i,(o=TableOfContents).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=TableOfContents;function TableOfContents(){for(var o,s=arguments.length,v=new Array(s),_=0;_0?_.renderLevel($,o,pe,0===ae):{content:void 0,containsSelected:!1},tt=et.content,nt=et.containsSelected,rt=(!o&&i.href?du(i.href):i.href)===we;return(nt||rt)&&(_e=!0),Object.assign({},i,{heading:!!i.name&&$.length>0,content:tt,selected:rt,shouldOpenInNewTab:!!i.external&&!!i.externalLink,initialOpen:"collapse"!==_.props.tocMode||nt||i.expand,forcedOpen:!!_.state.searchTerm.length})}));return{content:pe.a.createElement(eu,{items:et}),containsSelected:_e}},_.renderSections=function renderSections(){var i=this.state.searchTerm,o=this.props,s=o.sections,v=o.useRouterLinks,_=1===s.length?s[0].sections&&s[0].sections.length?s[0].sections:s[0].components:s,$=_?filterSectionsByName(_,i):_||[];return this.renderLevel($,v).content},_.render=function render(){var i=this;return pe.a.createElement(nu,{searchTerm:this.state.searchTerm,onSearchTermChange:function handleSearchTermChange(o){return i.setState({searchTerm:o})}},this.renderSections())},TableOfContents}(ae.Component);TableOfContents_defineProperty(cu,"propTypes",{sections:_e.a.array.isRequired,useRouterLinks:_e.a.bool,tocMode:_e.a.string,loc:_e.a.object}),TableOfContents_defineProperty(cu,"defaultProps",{loc:window.location});var hu=Object(et.a)((function styles(i){var o=i.color,s=i.fontFamily,v=i.fontSize;return{logo:{color:o.base,margin:0,fontFamily:s.base,fontSize:v.h4,fontWeight:"normal"}}}))((function LogoRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("h1",{className:o.logo},s)})),pu=function RibbonRenderer(i){var o=i.classes,s=i.url,v=i.text;return pe.a.createElement("footer",{className:o.root},pe.a.createElement("a",{href:s,className:o.link},v))};pu.defaultProps={text:"Fork me on GitHub"},pu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,url:_e.a.string.isRequired,text:_e.a.string};var fu=Object(et.a)((function styles(i){var o=i.color,s=i.space,v=i.fontSize;return{root:{position:"fixed",top:0,right:0,width:149,height:149,zIndex:999},link:{fontFamily:i.fontFamily.base,position:"relative",right:-37,top:-22,display:"block",width:190,padding:[[s[0],s[2]]],textAlign:"center",color:o.ribbonText,fontSize:v.base,background:o.ribbonBackground,textDecoration:"none",textShadow:[[0,"-1px",0,"rgba(0,0,0,.15)"]],transformOrigin:[[0,0]],transform:"rotate(45deg)",cursor:"pointer"}}}))(pu);function Ribbon(){var i=Object(Md.b)().config.ribbon;return i?pe.a.createElement(fu,i):null}var gu=function VersionRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("p",{"aria-label":"version",className:o.version},s)};gu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node};var mu=Object(et.a)((function styles(i){var o=i.color,s=i.fontFamily,v=i.fontSize;return{version:{color:o.light,margin:[[5,0,0,0]],fontFamily:s.base,fontSize:v.base,fontWeight:"normal"}}}))(gu),yu=function StyleGuideRenderer(i){var o=i.classes,s=i.title,v=i.version,_=i.homepageUrl,$=i.children,ae=i.toc,we=i.hasSidebar;return pe.a.createElement("div",{className:Object(pr.a)(o.root,we&&o.hasSidebar)},pe.a.createElement("main",{className:o.content},$,pe.a.createElement("footer",{className:o.footer},pe.a.createElement(Kr,{text:"Created with [React Styleguidist]("+_+")"}))),we&&pe.a.createElement("div",{className:o.sidebar,"data-testid":"sidebar"},pe.a.createElement("header",{className:o.logo},pe.a.createElement(hu,null,s),v&&pe.a.createElement(mu,null,v)),ae),pe.a.createElement(Ribbon,null))};yu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,title:_e.a.string.isRequired,version:_e.a.string,homepageUrl:_e.a.string.isRequired,children:_e.a.node.isRequired,toc:_e.a.node.isRequired,hasSidebar:_e.a.bool};var vu=Object(et.a)((function styles(i){var o,s,v,_=i.color,$=i.fontFamily,ae=i.fontSize,pe=i.sidebarWidth,we=i.mq,_e=i.space,et=i.maxWidth;return{root:{minHeight:"100vh",backgroundColor:_.baseBackground},hasSidebar:(o={paddingLeft:pe},o[we.small]={paddingLeft:0},o),content:(s={maxWidth:et,padding:[[_e[2],_e[4]]],margin:[[0,"auto"]]},s[we.small]={padding:_e[2]},s.display="block",s),sidebar:(v={backgroundColor:_.sidebarBackground,border:[[_.border,"solid"]],borderWidth:[[0,1,0,0]],position:"fixed",top:0,left:0,bottom:0,width:pe,overflow:"auto",WebkitOverflowScrolling:"touch"},v[we.small]={position:"static",width:"auto",borderWidth:[[1,0,0,0]],paddingBottom:_e[0]},v),logo:{padding:_e[2],borderBottom:[[1,_.border,"solid"]]},footer:{display:"block",color:_.light,fontFamily:$.base,fontSize:ae.small}}}))(yu),Ru=s(215),bu=s.n(Ru),Ou=function PlaygroundErrorRenderer(i){var o=i.classes,s=i.message;return pe.a.createElement("pre",{className:o.root},s)};Ou.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,message:_e.a.string.isRequired};var xu=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{root:{margin:0,lineHeight:1.2,fontSize:s.small,fontFamily:o.monospace,color:v.error,whiteSpace:"pre-wrap"}}}))(Ou);var wu=function(i){var o,s;s=i,(o=Wrapper).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=Wrapper;function Wrapper(){return i.apply(this,arguments)||this}var _=Wrapper.prototype;return _.componentDidCatch=function componentDidCatch(i){this.props.onError(i)},_.render=function render(){return this.props.children},Wrapper}(ae.Component);!function Wrapper_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}(wu,"propTypes",{children:_e.a.node.isRequired,onError:_e.a.func.isRequired});var Cu={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Su="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",_u={5:Su,"5module":Su+" export import",6:Su+" const class extends export import super"},Eu=/^in(stanceof)?$/,ku="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Au="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Du=new RegExp("["+ku+"]"),Pu=new RegExp("["+ku+Au+"]");ku=Au=null;var Tu=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],Iu=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(i,o){for(var s=65536,v=0;vi)return!1;if((s+=o[v+1])>=i)return!0}}function isIdentifierStart(i,o){return i<65?36===i:i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&Du.test(String.fromCharCode(i)):!1!==o&&isInAstralSet(i,Tu)))}function isIdentifierChar(i,o){return i<48?36===i:i<58||!(i<65)&&(i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&Pu.test(String.fromCharCode(i)):!1!==o&&(isInAstralSet(i,Tu)||isInAstralSet(i,Iu)))))}var Fu=function TokenType(i,o){void 0===o&&(o={}),this.label=i,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop||null,this.updateContext=null};function binop(i,o){return new Fu(i,{beforeExpr:!0,binop:o})}var Nu={beforeExpr:!0},Bu={startsExpr:!0},Lu={};function kw(i,o){return void 0===o&&(o={}),o.keyword=i,Lu[i]=new Fu(i,o)}var ju={num:new Fu("num",Bu),regexp:new Fu("regexp",Bu),string:new Fu("string",Bu),name:new Fu("name",Bu),eof:new Fu("eof"),bracketL:new Fu("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Fu("]"),braceL:new Fu("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Fu("}"),parenL:new Fu("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Fu(")"),comma:new Fu(",",Nu),semi:new Fu(";",Nu),colon:new Fu(":",Nu),dot:new Fu("."),question:new Fu("?",Nu),arrow:new Fu("=>",Nu),template:new Fu("template"),invalidTemplate:new Fu("invalidTemplate"),ellipsis:new Fu("...",Nu),backQuote:new Fu("`",Bu),dollarBraceL:new Fu("${",{beforeExpr:!0,startsExpr:!0}),eq:new Fu("=",{beforeExpr:!0,isAssign:!0}),assign:new Fu("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Fu("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Fu("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new Fu("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new Fu("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",Nu),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",Nu),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",Nu),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",Bu),_if:kw("if"),_return:kw("return",Nu),_switch:kw("switch"),_throw:kw("throw",Nu),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",Bu),_super:kw("super",Bu),_class:kw("class",Bu),_extends:kw("extends",Nu),_export:kw("export"),_import:kw("import",Bu),_null:kw("null",Bu),_true:kw("true",Bu),_false:kw("false",Bu),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Mu=/\r\n?|\n|\u2028|\u2029/,Qu=new RegExp(Mu.source,"g");function isNewLine(i,o){return 10===i||13===i||!o&&(8232===i||8233===i)}var Vu=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Uu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wu=Object.prototype,$u=Wu.hasOwnProperty,qu=Wu.toString;function has(i,o){return $u.call(i,o)}var zu=Array.isArray||function(i){return"[object Array]"===qu.call(i)};function wordsRegexp(i){return new RegExp("^(?:"+i.replace(/ /g,"|")+")$")}var Zu=function Position(i,o){this.line=i,this.column=o};Zu.prototype.offset=function offset(i){return new Zu(this.line,this.column+i)};var Hu=function SourceLocation(i,o,s){this.start=o,this.end=s,null!==i.sourceFile&&(this.source=i.sourceFile)};function getLineInfo(i,o){for(var s=1,v=0;;){Qu.lastIndex=v;var _=Qu.exec(i);if(!(_&&_.index=2015&&(o.ecmaVersion-=2009),null==o.allowReserved&&(o.allowReserved=o.ecmaVersion<5),zu(o.onToken)){var v=o.onToken;o.onToken=function(i){return v.push(i)}}return zu(o.onComment)&&(o.onComment=pushComment(o,o.onComment)),o}function pushComment(i,o){return function(s,v,_,$,ae,pe){var we={type:s?"Block":"Line",value:v,start:_,end:$};i.locations&&(we.loc=new Hu(this,ae,pe)),i.ranges&&(we.range=[_,$]),o.push(we)}}function functionFlags(i,o){return 2|(i?4:0)|(o?8:0)}var Xu=function Parser(i,o,s){this.options=i=getOptions(i),this.sourceFile=i.sourceFile,this.keywords=wordsRegexp(_u[i.ecmaVersion>=6?6:"module"===i.sourceType?"5module":5]);var v="";if(!0!==i.allowReserved){for(var _=i.ecmaVersion;!(v=Cu[_]);_--);"module"===i.sourceType&&(v+=" await")}this.reservedWords=wordsRegexp(v);var $=(v?v+" ":"")+Cu.strict;this.reservedWordsStrict=wordsRegexp($),this.reservedWordsStrictBind=wordsRegexp($+" "+Cu.strictBind),this.input=String(o),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Mu).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=ju.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===i.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&i.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Yu={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Xu.prototype.parse=function parse(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)},Yu.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Yu.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Yu.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Yu.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Yu.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Yu.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Xu.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Xu.extend=function extend(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];for(var s=this,v=0;v-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var s=o?i.parenthesizedAssign:i.parenthesizedBind;s>-1&&this.raiseRecoverable(s,"Parenthesized pattern")}},Ku.checkExpressionErrors=function(i,o){if(!i)return!1;var s=i.shorthandAssign,v=i.doubleProto;if(!o)return s>=0||v>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},Ku.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement($,!1,!i);case ju._class:return i&&this.unexpected(),this.parseClass($,!0);case ju._if:return this.parseIfStatement($);case ju._return:return this.parseReturnStatement($);case ju._switch:return this.parseSwitchStatement($);case ju._throw:return this.parseThrowStatement($);case ju._try:return this.parseTryStatement($);case ju._const:case ju._var:return v=v||this.value,i&&"var"!==v&&this.unexpected(),this.parseVarStatement($,v);case ju._while:return this.parseWhileStatement($);case ju._with:return this.parseWithStatement($);case ju.braceL:return this.parseBlock(!0,$);case ju.semi:return this.parseEmptyStatement($);case ju._export:case ju._import:if(this.options.ecmaVersion>10&&_===ju._import){Uu.lastIndex=this.pos;var ae=Uu.exec(this.input),pe=this.pos+ae[0].length;if(40===this.input.charCodeAt(pe))return this.parseExpressionStatement($,this.parseExpression())}return this.options.allowImportExportEverywhere||(o||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===ju._import?this.parseImport($):this.parseExport($,s);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement($,!0,!i);var we=this.value,_e=this.parseExpression();return _===ju.name&&"Identifier"===_e.type&&this.eat(ju.colon)?this.parseLabeledStatement($,we,_e,i):this.parseExpressionStatement($,_e)}},nl.parseBreakContinueStatement=function(i,o){var s="break"===o;this.next(),this.eat(ju.semi)||this.insertSemicolon()?i.label=null:this.type!==ju.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var v=0;v=6?this.eat(ju.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},nl.parseForStatement=function(i){this.next();var o=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rl),this.enterScope(0),this.expect(ju.parenL),this.type===ju.semi)return o>-1&&this.unexpected(o),this.parseFor(i,null);var s=this.isLet();if(this.type===ju._var||this.type===ju._const||s){var v=this.startNode(),_=s?"let":this.value;return this.next(),this.parseVar(v,!0,_),this.finishNode(v,"VariableDeclaration"),(this.type===ju._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===v.declarations.length?(this.options.ecmaVersion>=9&&(this.type===ju._in?o>-1&&this.unexpected(o):i.await=o>-1),this.parseForIn(i,v)):(o>-1&&this.unexpected(o),this.parseFor(i,v))}var $=new DestructuringErrors,ae=this.parseExpression(!0,$);return this.type===ju._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===ju._in?o>-1&&this.unexpected(o):i.await=o>-1),this.toAssignable(ae,!1,$),this.checkLVal(ae),this.parseForIn(i,ae)):(this.checkExpressionErrors($,!0),o>-1&&this.unexpected(o),this.parseFor(i,ae))},nl.parseFunctionStatement=function(i,o,s){return this.next(),this.parseFunction(i,cl|(s?0:hl),!1,o)},nl.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(ju._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},nl.parseReturnStatement=function(i){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(ju.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},nl.parseSwitchStatement=function(i){var o;this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(ju.braceL),this.labels.push(il),this.enterScope(0);for(var s=!1;this.type!==ju.braceR;)if(this.type===ju._case||this.type===ju._default){var v=this.type===ju._case;o&&this.finishNode(o,"SwitchCase"),i.cases.push(o=this.startNode()),o.consequent=[],this.next(),v?o.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,o.test=null),this.expect(ju.colon)}else o||this.unexpected(),o.consequent.push(this.parseStatement(null));return this.exitScope(),o&&this.finishNode(o,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},nl.parseThrowStatement=function(i){return this.next(),Mu.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var ll=[];nl.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===ju._catch){var o=this.startNode();if(this.next(),this.eat(ju.parenL)){o.param=this.parseBindingAtom();var s="Identifier"===o.param.type;this.enterScope(s?32:0),this.checkLVal(o.param,s?4:2),this.expect(ju.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),o.param=null,this.enterScope(0);o.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(o,"CatchClause")}return i.finalizer=this.eat(ju._finally)?this.parseBlock():null,i.handler||i.finalizer||this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},nl.parseVarStatement=function(i,o){return this.next(),this.parseVar(i,!1,o),this.semicolon(),this.finishNode(i,"VariableDeclaration")},nl.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(rl),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},nl.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},nl.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},nl.parseLabeledStatement=function(i,o,s,v){for(var _=0,$=this.labels;_<$.length;_+=1){$[_].name===o&&this.raise(s.start,"Label '"+o+"' is already declared")}for(var ae=this.type.isLoop?"loop":this.type===ju._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var we=this.labels[pe];if(we.statementStart!==i.start)break;we.statementStart=this.start,we.kind=ae}return this.labels.push({name:o,kind:ae,statementStart:this.start}),i.body=this.parseStatement(v?-1===v.indexOf("label")?v+"label":v:"label"),this.labels.pop(),i.label=s,this.finishNode(i,"LabeledStatement")},nl.parseExpressionStatement=function(i,o){return i.expression=o,this.semicolon(),this.finishNode(i,"ExpressionStatement")},nl.parseBlock=function(i,o){for(void 0===i&&(i=!0),void 0===o&&(o=this.startNode()),o.body=[],this.expect(ju.braceL),i&&this.enterScope(0);!this.eat(ju.braceR);){var s=this.parseStatement(null);o.body.push(s)}return i&&this.exitScope(),this.finishNode(o,"BlockStatement")},nl.parseFor=function(i,o){return i.init=o,this.expect(ju.semi),i.test=this.type===ju.semi?null:this.parseExpression(),this.expect(ju.semi),i.update=this.type===ju.parenR?null:this.parseExpression(),this.expect(ju.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},nl.parseForIn=function(i,o){var s=this.type===ju._in;return this.next(),"VariableDeclaration"===o.type&&null!=o.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==o.kind||"Identifier"!==o.declarations[0].id.type)?this.raise(o.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===o.type&&this.raise(o.start,"Invalid left-hand side in for-loop"),i.left=o,i.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(ju.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,s?"ForInStatement":"ForOfStatement")},nl.parseVar=function(i,o,s){for(i.declarations=[],i.kind=s;;){var v=this.startNode();if(this.parseVarId(v,s),this.eat(ju.eq)?v.init=this.parseMaybeAssign(o):"const"!==s||this.type===ju._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===v.id.type||o&&(this.type===ju._in||this.isContextual("of"))?v.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(ju.comma))break}return i},nl.parseVarId=function(i,o){i.id=this.parseBindingAtom(),this.checkLVal(i.id,"var"===o?1:2,!1)};var cl=1,hl=2;nl.parseFunction=function(i,o,s,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===ju.star&&o&hl&&this.unexpected(),i.generator=this.eat(ju.star)),this.options.ecmaVersion>=8&&(i.async=!!v),o&cl&&(i.id=4&o&&this.type!==ju.name?null:this.parseIdent(),!i.id||o&hl||this.checkLVal(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?1:2:3));var _=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(i.async,i.generator)),o&cl||(i.id=this.type===ju.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,s,!1),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(i,o&cl?"FunctionDeclaration":"FunctionExpression")},nl.parseFunctionParams=function(i){this.expect(ju.parenL),i.params=this.parseBindingList(ju.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},nl.parseClass=function(i,o){this.next();var s=this.strict;this.strict=!0,this.parseClassId(i,o),this.parseClassSuper(i);var v=this.startNode(),_=!1;for(v.body=[],this.expect(ju.braceL);!this.eat(ju.braceR);){var $=this.parseClassElement(null!==i.superClass);$&&(v.body.push($),"MethodDefinition"===$.type&&"constructor"===$.kind&&(_&&this.raise($.start,"Duplicate constructor in the same class"),_=!0))}return i.body=this.finishNode(v,"ClassBody"),this.strict=s,this.finishNode(i,o?"ClassDeclaration":"ClassExpression")},nl.parseClassElement=function(i){var o=this;if(this.eat(ju.semi))return null;var s=this.startNode(),tryContextual=function(i,v){void 0===v&&(v=!1);var _=o.start,$=o.startLoc;return!!o.eatContextual(i)&&(!(o.type===ju.parenL||v&&o.canInsertSemicolon())||(s.key&&o.unexpected(),s.computed=!1,s.key=o.startNodeAt(_,$),s.key.name=i,o.finishNode(s.key,"Identifier"),!1))};s.kind="method",s.static=tryContextual("static");var v=this.eat(ju.star),_=!1;v||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(_=!0,v=this.options.ecmaVersion>=9&&this.eat(ju.star)):tryContextual("get")?s.kind="get":tryContextual("set")&&(s.kind="set")),s.key||this.parsePropertyName(s);var $=s.key,ae=!1;return s.computed||s.static||!("Identifier"===$.type&&"constructor"===$.name||"Literal"===$.type&&"constructor"===$.value)?s.static&&"Identifier"===$.type&&"prototype"===$.name&&this.raise($.start,"Classes may not have a static property named prototype"):("method"!==s.kind&&this.raise($.start,"Constructor can't have get/set modifier"),v&&this.raise($.start,"Constructor can't be a generator"),_&&this.raise($.start,"Constructor can't be an async method"),s.kind="constructor",ae=i),this.parseClassMethod(s,v,_,ae),"get"===s.kind&&0!==s.value.params.length&&this.raiseRecoverable(s.value.start,"getter should have no params"),"set"===s.kind&&1!==s.value.params.length&&this.raiseRecoverable(s.value.start,"setter should have exactly one param"),"set"===s.kind&&"RestElement"===s.value.params[0].type&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params"),s},nl.parseClassMethod=function(i,o,s,v){return i.value=this.parseMethod(o,s,v),this.finishNode(i,"MethodDefinition")},nl.parseClassId=function(i,o){this.type===ju.name?(i.id=this.parseIdent(),o&&this.checkLVal(i.id,2,!1)):(!0===o&&this.unexpected(),i.id=null)},nl.parseClassSuper=function(i){i.superClass=this.eat(ju._extends)?this.parseExprSubscripts():null},nl.parseExport=function(i,o){if(this.next(),this.eat(ju.star))return this.expectContextual("from"),this.type!==ju.string&&this.unexpected(),i.source=this.parseExprAtom(),this.semicolon(),this.finishNode(i,"ExportAllDeclaration");if(this.eat(ju._default)){var s;if(this.checkExport(o,"default",this.lastTokStart),this.type===ju._function||(s=this.isAsyncFunction())){var v=this.startNode();this.next(),s&&this.next(),i.declaration=this.parseFunction(v,4|cl,!1,s)}else if(this.type===ju._class){var _=this.startNode();i.declaration=this.parseClass(_,"nullableID")}else i.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(i,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())i.declaration=this.parseStatement(null),"VariableDeclaration"===i.declaration.type?this.checkVariableExport(o,i.declaration.declarations):this.checkExport(o,i.declaration.id.name,i.declaration.id.start),i.specifiers=[],i.source=null;else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(o),this.eatContextual("from"))this.type!==ju.string&&this.unexpected(),i.source=this.parseExprAtom();else{for(var $=0,ae=i.specifiers;$=6&&i)switch(i.type){case"Identifier":this.inAsync&&"await"===i.name&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.toAssignable($,o),"RestElement"!==$.type||"ArrayPattern"!==$.argument.type&&"ObjectPattern"!==$.argument.type||this.raise($.argument.start,"Unexpected token")}break;case"Property":"init"!==i.kind&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,o);break;case"ArrayExpression":i.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(i.elements,o);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,o),"AssignmentPattern"===i.argument.type&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==i.operator&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,o);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(i.expression,o,s);break;case"MemberExpression":if(!o)break;default:this.raise(i.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return i},ml.toAssignableList=function(i,o){for(var s=i.length,v=0;v=6)switch(this.type){case ju.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(ju.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case ju.braceL:return this.parseObj(!0)}return this.parseIdent()},ml.parseBindingList=function(i,o,s){for(var v=[],_=!0;!this.eat(i);)if(_?_=!1:this.expect(ju.comma),o&&this.type===ju.comma)v.push(null);else{if(s&&this.afterTrailingComma(i))break;if(this.type===ju.ellipsis){var $=this.parseRestBinding();this.parseBindingListItem($),v.push($),this.type===ju.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}var ae=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(ae),v.push(ae)}return v},ml.parseBindingListItem=function(i){return i},ml.parseMaybeDefault=function(i,o,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(ju.eq))return s;var v=this.startNodeAt(i,o);return v.left=s,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},ml.checkLVal=function(i,o,s){switch(void 0===o&&(o=0),i.type){case"Identifier":2===o&&"let"===i.name&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(o?"Binding ":"Assigning to ")+i.name+" in strict mode"),s&&(has(s,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),s[i.name]=!0),0!==o&&5!==o&&this.declareName(i.name,o,i.start);break;case"MemberExpression":o&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ObjectPattern":for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.checkLVal($,o,s)}break;case"Property":this.checkLVal(i.value,o,s);break;case"ArrayPattern":for(var ae=0,pe=i.elements;ae=9&&"SpreadElement"===i.type||this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var v,_=i.key;switch(_.type){case"Identifier":v=_.name;break;case"Literal":v=String(_.value);break;default:return}var $=i.kind;if(this.options.ecmaVersion>=6)"__proto__"===v&&"init"===$&&(o.proto&&(s&&s.doubleProto<0?s.doubleProto=_.start:this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),o.proto=!0);else{var ae=o[v="$"+v];if(ae)("init"===$?this.strict&&ae.init||ae.get||ae.set:ae.init||ae[$])&&this.raiseRecoverable(_.start,"Redefinition of property");else ae=o[v]={init:!1,get:!1,set:!1};ae[$]=!0}}},Rl.parseExpression=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeAssign(i,o);if(this.type===ju.comma){var $=this.startNodeAt(s,v);for($.expressions=[_];this.eat(ju.comma);)$.expressions.push(this.parseMaybeAssign(i,o));return this.finishNode($,"SequenceExpression")}return _},Rl.parseMaybeAssign=function(i,o,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var v=!1,_=-1,$=-1,ae=-1;o?(_=o.parenthesizedAssign,$=o.trailingComma,ae=o.shorthandAssign,o.parenthesizedAssign=o.trailingComma=o.shorthandAssign=-1):(o=new DestructuringErrors,v=!0);var pe=this.start,we=this.startLoc;this.type!==ju.parenL&&this.type!==ju.name||(this.potentialArrowAt=this.start);var _e=this.parseMaybeConditional(i,o);if(s&&(_e=s.call(this,_e,pe,we)),this.type.isAssign){var et=this.startNodeAt(pe,we);return et.operator=this.value,et.left=this.type===ju.eq?this.toAssignable(_e,!1,o):_e,v||DestructuringErrors.call(o),o.shorthandAssign=-1,this.checkLVal(_e),this.next(),et.right=this.parseMaybeAssign(i),this.finishNode(et,"AssignmentExpression")}return v&&this.checkExpressionErrors(o,!0),_>-1&&(o.parenthesizedAssign=_),$>-1&&(o.trailingComma=$),ae>-1&&(o.shorthandAssign=ae),_e},Rl.parseMaybeConditional=function(i,o){var s=this.start,v=this.startLoc,_=this.parseExprOps(i,o);if(this.checkExpressionErrors(o))return _;if(this.eat(ju.question)){var $=this.startNodeAt(s,v);return $.test=_,$.consequent=this.parseMaybeAssign(),this.expect(ju.colon),$.alternate=this.parseMaybeAssign(i),this.finishNode($,"ConditionalExpression")}return _},Rl.parseExprOps=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeUnary(o,!1);return this.checkExpressionErrors(o)||_.start===s&&"ArrowFunctionExpression"===_.type?_:this.parseExprOp(_,s,v,-1,i)},Rl.parseExprOp=function(i,o,s,v,_){var $=this.type.binop;if(null!=$&&(!_||this.type!==ju._in)&&$>v){var ae=this.type===ju.logicalOR||this.type===ju.logicalAND,pe=this.value;this.next();var we=this.start,_e=this.startLoc,et=this.parseExprOp(this.parseMaybeUnary(null,!1),we,_e,$,_),tt=this.buildBinary(o,s,i,et,pe,ae);return this.parseExprOp(tt,o,s,v,_)}return i},Rl.buildBinary=function(i,o,s,v,_,$){var ae=this.startNodeAt(i,o);return ae.left=s,ae.operator=_,ae.right=v,this.finishNode(ae,$?"LogicalExpression":"BinaryExpression")},Rl.parseMaybeUnary=function(i,o){var s,v=this.start,_=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))s=this.parseAwait(),o=!0;else if(this.type.prefix){var $=this.startNode(),ae=this.type===ju.incDec;$.operator=this.value,$.prefix=!0,this.next(),$.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(i,!0),ae?this.checkLVal($.argument):this.strict&&"delete"===$.operator&&"Identifier"===$.argument.type?this.raiseRecoverable($.start,"Deleting local variable in strict mode"):o=!0,s=this.finishNode($,ae?"UpdateExpression":"UnaryExpression")}else{if(s=this.parseExprSubscripts(i),this.checkExpressionErrors(i))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var pe=this.startNodeAt(v,_);pe.operator=this.value,pe.prefix=!1,pe.argument=s,this.checkLVal(s),this.next(),s=this.finishNode(pe,"UpdateExpression")}}return!o&&this.eat(ju.starstar)?this.buildBinary(v,_,s,this.parseMaybeUnary(null,!1),"**",!1):s},Rl.parseExprSubscripts=function(i){var o=this.start,s=this.startLoc,v=this.parseExprAtom(i),_="ArrowFunctionExpression"===v.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(i)||_)return v;var $=this.parseSubscripts(v,o,s);return i&&"MemberExpression"===$.type&&(i.parenthesizedAssign>=$.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=$.start&&(i.parenthesizedBind=-1)),$},Rl.parseSubscripts=function(i,o,s,v){for(var _=this.options.ecmaVersion>=8&&"Identifier"===i.type&&"async"===i.name&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(i.start,i.end);;){var $=this.parseSubscript(i,o,s,v,_);if($===i||"ArrowFunctionExpression"===$.type)return $;i=$}},Rl.parseSubscript=function(i,o,s,v,_){var $=this.eat(ju.bracketL);if($||this.eat(ju.dot)){var ae=this.startNodeAt(o,s);ae.object=i,ae.property=$?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),ae.computed=!!$,$&&this.expect(ju.bracketR),i=this.finishNode(ae,"MemberExpression")}else if(!v&&this.eat(ju.parenL)){var pe=new DestructuringErrors,we=this.yieldPos,_e=this.awaitPos,et=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var tt=this.parseExprList(ju.parenR,this.options.ecmaVersion>=8&&"Import"!==i.type,!1,pe);if(_&&!this.canInsertSemicolon()&&this.eat(ju.arrow))return this.checkPatternErrors(pe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=we,this.awaitPos=_e,this.awaitIdentPos=et,this.parseArrowExpression(this.startNodeAt(o,s),tt,!0);this.checkExpressionErrors(pe,!0),this.yieldPos=we||this.yieldPos,this.awaitPos=_e||this.awaitPos,this.awaitIdentPos=et||this.awaitIdentPos;var nt=this.startNodeAt(o,s);if(nt.callee=i,nt.arguments=tt,"Import"===nt.callee.type){1!==nt.arguments.length&&this.raise(nt.start,"import() requires exactly one argument");var rt=nt.arguments[0];rt&&"SpreadElement"===rt.type&&this.raise(rt.start,"... is not allowed in import()")}i=this.finishNode(nt,"CallExpression")}else if(this.type===ju.backQuote){var it=this.startNodeAt(o,s);it.tag=i,it.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(it,"TaggedTemplateExpression")}return i},Rl.parseExprAtom=function(i){this.type===ju.slash&&this.readRegexp();var o,s=this.potentialArrowAt===this.start;switch(this.type){case ju._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),o=this.startNode(),this.next(),this.type!==ju.parenL||this.allowDirectSuper||this.raise(o.start,"super() call outside constructor of a subclass"),this.type!==ju.dot&&this.type!==ju.bracketL&&this.type!==ju.parenL&&this.unexpected(),this.finishNode(o,"Super");case ju._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case ju.name:var v=this.start,_=this.startLoc,$=this.containsEsc,ae=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!$&&"async"===ae.name&&!this.canInsertSemicolon()&&this.eat(ju._function))return this.parseFunction(this.startNodeAt(v,_),0,!1,!0);if(s&&!this.canInsertSemicolon()){if(this.eat(ju.arrow))return this.parseArrowExpression(this.startNodeAt(v,_),[ae],!1);if(this.options.ecmaVersion>=8&&"async"===ae.name&&this.type===ju.name&&!$)return ae=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(ju.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,_),[ae],!0)}return ae;case ju.regexp:var pe=this.value;return(o=this.parseLiteral(pe.value)).regex={pattern:pe.pattern,flags:pe.flags},o;case ju.num:case ju.string:return this.parseLiteral(this.value);case ju._null:case ju._true:case ju._false:return(o=this.startNode()).value=this.type===ju._null?null:this.type===ju._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case ju.parenL:var we=this.start,_e=this.parseParenAndDistinguishExpression(s);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_e)&&(i.parenthesizedAssign=we),i.parenthesizedBind<0&&(i.parenthesizedBind=we)),_e;case ju.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(ju.bracketR,!0,!0,i),this.finishNode(o,"ArrayExpression");case ju.braceL:return this.parseObj(!1,i);case ju._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case ju._class:return this.parseClass(this.startNode(),!1);case ju._new:return this.parseNew();case ju.backQuote:return this.parseTemplate();case ju._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Rl.parseDynamicImport=function(){var i=this.startNode();return this.next(),this.type!==ju.parenL&&this.unexpected(),this.finishNode(i,"Import")},Rl.parseLiteral=function(i){var o=this.startNode();return o.value=i,o.raw=this.input.slice(this.start,this.end),110===o.raw.charCodeAt(o.raw.length-1)&&(o.bigint=o.raw.slice(0,-1)),this.next(),this.finishNode(o,"Literal")},Rl.parseParenExpression=function(){this.expect(ju.parenL);var i=this.parseExpression();return this.expect(ju.parenR),i},Rl.parseParenAndDistinguishExpression=function(i){var o,s=this.start,v=this.startLoc,_=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $,ae=this.start,pe=this.startLoc,we=[],_e=!0,et=!1,tt=new DestructuringErrors,nt=this.yieldPos,rt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==ju.parenR;){if(_e?_e=!1:this.expect(ju.comma),_&&this.afterTrailingComma(ju.parenR,!0)){et=!0;break}if(this.type===ju.ellipsis){$=this.start,we.push(this.parseParenItem(this.parseRestBinding())),this.type===ju.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}we.push(this.parseMaybeAssign(!1,tt,this.parseParenItem))}var it=this.start,ot=this.startLoc;if(this.expect(ju.parenR),i&&!this.canInsertSemicolon()&&this.eat(ju.arrow))return this.checkPatternErrors(tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nt,this.awaitPos=rt,this.parseParenArrowList(s,v,we);we.length&&!et||this.unexpected(this.lastTokStart),$&&this.unexpected($),this.checkExpressionErrors(tt,!0),this.yieldPos=nt||this.yieldPos,this.awaitPos=rt||this.awaitPos,we.length>1?((o=this.startNodeAt(ae,pe)).expressions=we,this.finishNodeAt(o,"SequenceExpression",it,ot)):o=we[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var st=this.startNodeAt(s,v);return st.expression=o,this.finishNode(st,"ParenthesizedExpression")}return o},Rl.parseParenItem=function(i){return i},Rl.parseParenArrowList=function(i,o,s){return this.parseArrowExpression(this.startNodeAt(i,o),s)};var Cl=[];Rl.parseNew=function(){var i=this.startNode(),o=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(ju.dot)){i.meta=o;var s=this.containsEsc;return i.property=this.parseIdent(!0),("target"!==i.property.name||s)&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(i.start,"new.target can only be used in functions"),this.finishNode(i,"MetaProperty")}var v=this.start,_=this.startLoc;return i.callee=this.parseSubscripts(this.parseExprAtom(),v,_,!0),this.options.ecmaVersion>10&&"Import"===i.callee.type&&this.raise(i.callee.start,"Cannot use new with import(...)"),this.eat(ju.parenL)?i.arguments=this.parseExprList(ju.parenR,this.options.ecmaVersion>=8&&"Import"!==i.callee.type,!1):i.arguments=Cl,this.finishNode(i,"NewExpression")},Rl.parseTemplateElement=function(i){var o=i.isTagged,s=this.startNode();return this.type===ju.invalidTemplate?(o||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===ju.backQuote,this.finishNode(s,"TemplateElement")},Rl.parseTemplate=function(i){void 0===i&&(i={});var o=i.isTagged;void 0===o&&(o=!1);var s=this.startNode();this.next(),s.expressions=[];var v=this.parseTemplateElement({isTagged:o});for(s.quasis=[v];!v.tail;)this.type===ju.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(ju.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(ju.braceR),s.quasis.push(v=this.parseTemplateElement({isTagged:o}));return this.next(),this.finishNode(s,"TemplateLiteral")},Rl.isAsyncProp=function(i){return!i.computed&&"Identifier"===i.key.type&&"async"===i.key.name&&(this.type===ju.name||this.type===ju.num||this.type===ju.string||this.type===ju.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===ju.star)&&!Mu.test(this.input.slice(this.lastTokEnd,this.start))},Rl.parseObj=function(i,o){var s=this.startNode(),v=!0,_={};for(s.properties=[],this.next();!this.eat(ju.braceR);){if(v)v=!1;else if(this.expect(ju.comma),this.afterTrailingComma(ju.braceR))break;var $=this.parseProperty(i,o);i||this.checkPropClash($,_,o),s.properties.push($)}return this.finishNode(s,i?"ObjectPattern":"ObjectExpression")},Rl.parseProperty=function(i,o){var s,v,_,$,ae=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(ju.ellipsis))return i?(ae.argument=this.parseIdent(!1),this.type===ju.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(ae,"RestElement")):(this.type===ju.parenL&&o&&(o.parenthesizedAssign<0&&(o.parenthesizedAssign=this.start),o.parenthesizedBind<0&&(o.parenthesizedBind=this.start)),ae.argument=this.parseMaybeAssign(!1,o),this.type===ju.comma&&o&&o.trailingComma<0&&(o.trailingComma=this.start),this.finishNode(ae,"SpreadElement"));this.options.ecmaVersion>=6&&(ae.method=!1,ae.shorthand=!1,(i||o)&&(_=this.start,$=this.startLoc),i||(s=this.eat(ju.star)));var pe=this.containsEsc;return this.parsePropertyName(ae),!i&&!pe&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(ae)?(v=!0,s=this.options.ecmaVersion>=9&&this.eat(ju.star),this.parsePropertyName(ae,o)):v=!1,this.parsePropertyValue(ae,i,s,v,_,$,o,pe),this.finishNode(ae,"Property")},Rl.parsePropertyValue=function(i,o,s,v,_,$,ae,pe){if((s||v)&&this.type===ju.colon&&this.unexpected(),this.eat(ju.colon))i.value=o?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,ae),i.kind="init";else if(this.options.ecmaVersion>=6&&this.type===ju.parenL)o&&this.unexpected(),i.kind="init",i.method=!0,i.value=this.parseMethod(s,v);else if(o||pe||!(this.options.ecmaVersion>=5)||i.computed||"Identifier"!==i.key.type||"get"!==i.key.name&&"set"!==i.key.name||this.type===ju.comma||this.type===ju.braceR)this.options.ecmaVersion>=6&&!i.computed&&"Identifier"===i.key.type?((s||v)&&this.unexpected(),this.checkUnreserved(i.key),"await"!==i.key.name||this.awaitIdentPos||(this.awaitIdentPos=_),i.kind="init",o?i.value=this.parseMaybeDefault(_,$,i.key):this.type===ju.eq&&ae?(ae.shorthandAssign<0&&(ae.shorthandAssign=this.start),i.value=this.parseMaybeDefault(_,$,i.key)):i.value=i.key,i.shorthand=!0):this.unexpected();else{(s||v)&&this.unexpected(),i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);var we="get"===i.kind?0:1;if(i.value.params.length!==we){var _e=i.value.start;"get"===i.kind?this.raiseRecoverable(_e,"getter should have no params"):this.raiseRecoverable(_e,"setter should have exactly one param")}else"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}},Rl.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(ju.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(ju.bracketR),i.key;i.computed=!1}return i.key=this.type===ju.num||this.type===ju.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Rl.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},Rl.parseMethod=function(i,o,s){var v=this.startNode(),_=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.initFunction(v),this.options.ecmaVersion>=6&&(v.generator=i),this.options.ecmaVersion>=8&&(v.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(o,v.generator)|(s?128:0)),this.expect(ju.parenL),v.params=this.parseBindingList(ju.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(v,!1,!0),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(v,"FunctionExpression")},Rl.parseArrowExpression=function(i,o,s){var v=this.yieldPos,_=this.awaitPos,$=this.awaitIdentPos;return this.enterScope(16|functionFlags(s,!1)),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(o,!0),this.parseFunctionBody(i,!0,!1),this.yieldPos=v,this.awaitPos=_,this.awaitIdentPos=$,this.finishNode(i,"ArrowFunctionExpression")},Rl.parseFunctionBody=function(i,o,s){var v=o&&this.type!==ju.braceL,_=this.strict,$=!1;if(v)i.body=this.parseMaybeAssign(),i.expression=!0,this.checkParams(i,!1);else{var ae=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);_&&!ae||($=this.strictDirective(this.end))&&ae&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list");var pe=this.labels;this.labels=[],$&&(this.strict=!0),this.checkParams(i,!_&&!$&&!o&&!s&&this.isSimpleParamList(i.params)),i.body=this.parseBlock(!1),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=pe}this.exitScope(),this.strict&&i.id&&this.checkLVal(i.id,5),this.strict=_},Rl.isSimpleParamList=function(i){for(var o=0,s=i;o-1||_.functions.indexOf(i)>-1||_.var.indexOf(i)>-1,_.lexical.push(i),this.inModule&&1&_.flags&&delete this.undefinedExports[i]}else if(4===o){this.currentScope().lexical.push(i)}else if(3===o){var $=this.currentScope();v=this.treatFunctionsAsVar?$.lexical.indexOf(i)>-1:$.lexical.indexOf(i)>-1||$.var.indexOf(i)>-1,$.functions.push(i)}else for(var ae=this.scopeStack.length-1;ae>=0;--ae){var pe=this.scopeStack[ae];if(pe.lexical.indexOf(i)>-1&&!(32&pe.flags&&pe.lexical[0]===i)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(i)>-1){v=!0;break}if(pe.var.push(i),this.inModule&&1&pe.flags&&delete this.undefinedExports[i],3&pe.flags)break}v&&this.raiseRecoverable(s,"Identifier '"+i+"' has already been declared")},_l.checkLocalExport=function(i){-1===this.scopeStack[0].lexical.indexOf(i.name)&&-1===this.scopeStack[0].var.indexOf(i.name)&&(this.undefinedExports[i.name]=i)},_l.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},_l.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags)return o}},_l.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags&&!(16&o.flags))return o}};var jl=function Node(i,o,s){this.type="",this.start=o,this.end=0,i.options.locations&&(this.loc=new Hu(i,s)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[o,0])},Wl=Xu.prototype;function finishNodeAt(i,o,s,v){return i.type=o,i.end=s,this.options.locations&&(i.loc.end=v),this.options.ranges&&(i.range[1]=s),i}Wl.startNode=function(){return new jl(this,this.start,this.startLoc)},Wl.startNodeAt=function(i,o){return new jl(this,i,o)},Wl.finishNode=function(i,o){return finishNodeAt.call(this,i,o,this.lastTokEnd,this.lastTokEndLoc)},Wl.finishNodeAt=function(i,o,s,v){return finishNodeAt.call(this,i,o,s,v)};var ec=function TokContext(i,o,s,v,_){this.token=i,this.isExpr=!!o,this.preserveSpace=!!s,this.override=v,this.generator=!!_},ic={b_stat:new ec("{",!1),b_expr:new ec("{",!0),b_tmpl:new ec("${",!1),p_stat:new ec("(",!1),p_expr:new ec("(",!0),q_tmpl:new ec("`",!0,!0,(function(i){return i.tryReadTemplateToken()})),f_stat:new ec("function",!1),f_expr:new ec("function",!0),f_expr_gen:new ec("function",!0,!1,null,!0),f_gen:new ec("function",!1,!1,null,!0)},hc=Xu.prototype;hc.initialContext=function(){return[ic.b_stat]},hc.braceIsBlock=function(i){var o=this.curContext();return o===ic.f_expr||o===ic.f_stat||(i!==ju.colon||o!==ic.b_stat&&o!==ic.b_expr?i===ju._return||i===ju.name&&this.exprAllowed?Mu.test(this.input.slice(this.lastTokEnd,this.start)):i===ju._else||i===ju.semi||i===ju.eof||i===ju.parenR||i===ju.arrow||(i===ju.braceL?o===ic.b_stat:i!==ju._var&&i!==ju._const&&i!==ju.name&&!this.exprAllowed):!o.isExpr)},hc.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var o=this.context[i];if("function"===o.token)return o.generator}return!1},hc.updateContext=function(i){var o,s=this.type;s.keyword&&i===ju.dot?this.exprAllowed=!1:(o=s.updateContext)?o.call(this,i):this.exprAllowed=s.beforeExpr},ju.parenR.updateContext=ju.braceR.updateContext=function(){if(1!==this.context.length){var i=this.context.pop();i===ic.b_stat&&"function"===this.curContext().token&&(i=this.context.pop()),this.exprAllowed=!i.isExpr}else this.exprAllowed=!0},ju.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?ic.b_stat:ic.b_expr),this.exprAllowed=!0},ju.dollarBraceL.updateContext=function(){this.context.push(ic.b_tmpl),this.exprAllowed=!0},ju.parenL.updateContext=function(i){var o=i===ju._if||i===ju._for||i===ju._with||i===ju._while;this.context.push(o?ic.p_stat:ic.p_expr),this.exprAllowed=!0},ju.incDec.updateContext=function(){},ju._function.updateContext=ju._class.updateContext=function(i){!i.beforeExpr||i===ju.semi||i===ju._else||i===ju._return&&Mu.test(this.input.slice(this.lastTokEnd,this.start))||(i===ju.colon||i===ju.braceL)&&this.curContext()===ic.b_stat?this.context.push(ic.f_stat):this.context.push(ic.f_expr),this.exprAllowed=!1},ju.backQuote.updateContext=function(){this.curContext()===ic.q_tmpl?this.context.pop():this.context.push(ic.q_tmpl),this.exprAllowed=!1},ju.star.updateContext=function(i){if(i===ju._function){var o=this.context.length-1;this.context[o]===ic.f_expr?this.context[o]=ic.f_expr_gen:this.context[o]=ic.f_gen}this.exprAllowed=!0},ju.name.updateContext=function(i){var o=!1;this.options.ecmaVersion>=6&&i!==ju.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(o=!0),this.exprAllowed=o};var gc="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",mc=gc+" Extended_Pictographic",_c={9:gc,10:mc,11:mc},Ec="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",jc="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Vc=jc+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ah={9:jc,10:Vc,11:Vc+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ch={};function buildUnicodeData(i){var o=ch[i]={binary:wordsRegexp(_c[i]+" "+Ec),nonBinary:{General_Category:wordsRegexp(Ec),Script:wordsRegexp(ah[i])}};o.nonBinary.Script_Extensions=o.nonBinary.Script,o.nonBinary.gc=o.nonBinary.General_Category,o.nonBinary.sc=o.nonBinary.Script,o.nonBinary.scx=o.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var vh=Xu.prototype,bh=function RegExpValidationState(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ch[i.options.ecmaVersion>=11?11:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function isSyntaxCharacter(i){return 36===i||i>=40&&i<=43||46===i||63===i||i>=91&&i<=94||i>=123&&i<=125}function isRegExpIdentifierStart(i){return isIdentifierStart(i,!0)||36===i||95===i}function isRegExpIdentifierPart(i){return isIdentifierChar(i,!0)||36===i||95===i||8204===i||8205===i}function isControlLetter(i){return i>=65&&i<=90||i>=97&&i<=122}function isCharacterClassEscape(i){return 100===i||68===i||115===i||83===i||119===i||87===i}function isUnicodePropertyNameCharacter(i){return isControlLetter(i)||95===i}function isUnicodePropertyValueCharacter(i){return isUnicodePropertyNameCharacter(i)||isDecimalDigit(i)}function isDecimalDigit(i){return i>=48&&i<=57}function isHexDigit(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function hexToInt(i){return i>=65&&i<=70?i-65+10:i>=97&&i<=102?i-97+10:i-48}function isOctalDigit(i){return i>=48&&i<=55}bh.prototype.reset=function reset(i,o,s){var v=-1!==s.indexOf("u");this.start=0|i,this.source=o+"",this.flags=s,this.switchU=v&&this.parser.options.ecmaVersion>=6,this.switchN=v&&this.parser.options.ecmaVersion>=9},bh.prototype.raise=function raise(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)},bh.prototype.at=function at(i){var o=this.source,s=o.length;if(i>=s)return-1;var v=o.charCodeAt(i);if(!this.switchU||v<=55295||v>=57344||i+1>=s)return v;var _=o.charCodeAt(i+1);return _>=56320&&_<=57343?(v<<10)+_-56613888:v},bh.prototype.nextIndex=function nextIndex(i){var o=this.source,s=o.length;if(i>=s)return s;var v,_=o.charCodeAt(i);return!this.switchU||_<=55295||_>=57344||i+1>=s||(v=o.charCodeAt(i+1))<56320||v>57343?i+1:i+2},bh.prototype.current=function current(){return this.at(this.pos)},bh.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},bh.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},bh.prototype.eat=function eat(i){return this.current()===i&&(this.advance(),!0)},vh.validateRegExpFlags=function(i){for(var o=i.validFlags,s=i.flags,v=0;v-1&&this.raise(i.start,"Duplicate regular expression flag")}},vh.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&i.groupNames.length>0&&(i.switchN=!0,this.regexp_pattern(i))},vh.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames.length=0,i.backReferenceNames.length=0,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var o=0,s=i.backReferenceNames;o=9&&(s=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!s,!0}return i.pos=o,!1},vh.regexp_eatQuantifier=function(i,o){return void 0===o&&(o=!1),!!this.regexp_eatQuantifierPrefix(i,o)&&(i.eat(63),!0)},vh.regexp_eatQuantifierPrefix=function(i,o){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,o)},vh.regexp_eatBracedQuantifier=function(i,o){var s=i.pos;if(i.eat(123)){var v=0,_=-1;if(this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(_=i.lastIntValue),i.eat(125)))return-1!==_&&_=9?this.regexp_groupSpecifier(i):63===i.current()&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},vh.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},vh.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},vh.regexp_eatSyntaxCharacter=function(i){var o=i.current();return!!isSyntaxCharacter(o)&&(i.lastIntValue=o,i.advance(),!0)},vh.regexp_eatPatternCharacters=function(i){for(var o=i.pos,s=0;-1!==(s=i.current())&&!isSyntaxCharacter(s);)i.advance();return i.pos!==o},vh.regexp_eatExtendedPatternCharacter=function(i){var o=i.current();return!(-1===o||36===o||o>=40&&o<=43||46===o||63===o||91===o||94===o||124===o)&&(i.advance(),!0)},vh.regexp_groupSpecifier=function(i){if(i.eat(63)){if(this.regexp_eatGroupName(i))return-1!==i.groupNames.indexOf(i.lastStringValue)&&i.raise("Duplicate capture group name"),void i.groupNames.push(i.lastStringValue);i.raise("Invalid group")}},vh.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},vh.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=codePointToString(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=codePointToString(i.lastIntValue);return!0}return!1},vh.regexp_eatRegExpIdentifierStart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),isRegExpIdentifierStart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},vh.regexp_eatRegExpIdentifierPart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),isRegExpIdentifierPart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},vh.regexp_eatAtomEscape=function(i){return!!(this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i))||(i.switchU&&(99===i.current()&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},vh.regexp_eatBackReference=function(i){var o=i.pos;if(this.regexp_eatDecimalEscape(i)){var s=i.lastIntValue;if(i.switchU)return s>i.maxBackReference&&(i.maxBackReference=s),!0;if(s<=i.numCapturingParens)return!0;i.pos=o}return!1},vh.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},vh.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},vh.regexp_eatCControlLetter=function(i){var o=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=o}return!1},vh.regexp_eatZero=function(i){return 48===i.current()&&!isDecimalDigit(i.lookahead())&&(i.lastIntValue=0,i.advance(),!0)},vh.regexp_eatControlEscape=function(i){var o=i.current();return 116===o?(i.lastIntValue=9,i.advance(),!0):110===o?(i.lastIntValue=10,i.advance(),!0):118===o?(i.lastIntValue=11,i.advance(),!0):102===o?(i.lastIntValue=12,i.advance(),!0):114===o&&(i.lastIntValue=13,i.advance(),!0)},vh.regexp_eatControlLetter=function(i){var o=i.current();return!!isControlLetter(o)&&(i.lastIntValue=o%32,i.advance(),!0)},vh.regexp_eatRegExpUnicodeEscapeSequence=function(i){var o,s=i.pos;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var v=i.lastIntValue;if(i.switchU&&v>=55296&&v<=56319){var _=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var $=i.lastIntValue;if($>=56320&&$<=57343)return i.lastIntValue=1024*(v-55296)+($-56320)+65536,!0}i.pos=_,i.lastIntValue=v}return!0}if(i.switchU&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&((o=i.lastIntValue)>=0&&o<=1114111))return!0;i.switchU&&i.raise("Invalid unicode escape"),i.pos=s}return!1},vh.regexp_eatIdentityEscape=function(i){if(i.switchU)return!!this.regexp_eatSyntaxCharacter(i)||!!i.eat(47)&&(i.lastIntValue=47,!0);var o=i.current();return!(99===o||i.switchN&&107===o)&&(i.lastIntValue=o,i.advance(),!0)},vh.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var o=i.current();if(o>=49&&o<=57){do{i.lastIntValue=10*i.lastIntValue+(o-48),i.advance()}while((o=i.current())>=48&&o<=57);return!0}return!1},vh.regexp_eatCharacterClassEscape=function(i){var o=i.current();if(isCharacterClassEscape(o))return i.lastIntValue=-1,i.advance(),!0;if(i.switchU&&this.options.ecmaVersion>=9&&(80===o||112===o)){if(i.lastIntValue=-1,i.advance(),i.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(i)&&i.eat(125))return!0;i.raise("Invalid property name")}return!1},vh.regexp_eatUnicodePropertyValueExpression=function(i){var o=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var s=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,s,v),!0}}if(i.pos=o,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var _=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,_),!0}return!1},vh.regexp_validateUnicodePropertyNameAndValue=function(i,o,s){has(i.unicodeProperties.nonBinary,o)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[o].test(s)||i.raise("Invalid property value")},vh.regexp_validateUnicodePropertyNameOrValue=function(i,o){i.unicodeProperties.binary.test(o)||i.raise("Invalid property name")},vh.regexp_eatUnicodePropertyName=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyNameCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},vh.regexp_eatUnicodePropertyValue=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyValueCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},vh.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},vh.regexp_eatCharacterClass=function(i){if(i.eat(91)){if(i.eat(94),this.regexp_classRanges(i),i.eat(93))return!0;i.raise("Unterminated character class")}return!1},vh.regexp_classRanges=function(i){for(;this.regexp_eatClassAtom(i);){var o=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var s=i.lastIntValue;!i.switchU||-1!==o&&-1!==s||i.raise("Invalid character class"),-1!==o&&-1!==s&&o>s&&i.raise("Range out of order in character class")}}},vh.regexp_eatClassAtom=function(i){var o=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var s=i.current();(99===s||isOctalDigit(s))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=o}var v=i.current();return 93!==v&&(i.lastIntValue=v,i.advance(),!0)},vh.regexp_eatClassEscape=function(i){var o=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=o}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},vh.regexp_eatClassControlLetter=function(i){var o=i.current();return!(!isDecimalDigit(o)&&95!==o)&&(i.lastIntValue=o%32,i.advance(),!0)},vh.regexp_eatHexEscapeSequence=function(i){var o=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=o}return!1},vh.regexp_eatDecimalDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isDecimalDigit(s=i.current());)i.lastIntValue=10*i.lastIntValue+(s-48),i.advance();return i.pos!==o},vh.regexp_eatHexDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isHexDigit(s=i.current());)i.lastIntValue=16*i.lastIntValue+hexToInt(s),i.advance();return i.pos!==o},vh.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var o=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var s=i.lastIntValue;o<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=64*o+8*s+i.lastIntValue:i.lastIntValue=8*o+s}else i.lastIntValue=o;return!0}return!1},vh.regexp_eatOctalDigit=function(i){var o=i.current();return isOctalDigit(o)?(i.lastIntValue=o-48,i.advance(),!0):(i.lastIntValue=0,!1)},vh.regexp_eatFixedHexDigits=function(i,o){var s=i.pos;i.lastIntValue=0;for(var v=0;v>10),56320+(1023&i)))}jh.next=function(){this.options.onToken&&this.options.onToken(new _h(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},jh.getToken=function(){return this.next(),new _h(this)},"undefined"!=typeof Symbol&&(jh[Symbol.iterator]=function(){var i=this;return{next:function(){var o=i.getToken();return{done:o.type===ju.eof,value:o}}}}),jh.curContext=function(){return this.context[this.context.length-1]},jh.nextToken=function(){var i=this.curContext();return i&&i.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(ju.eof):i.override?i.override(this):void this.readToken(this.fullCharCodeAtPos())},jh.readToken=function(i){return isIdentifierStart(i,this.options.ecmaVersion>=6)||92===i?this.readWord():this.getTokenFromCode(i)},jh.fullCharCodeAtPos=function(){var i=this.input.charCodeAt(this.pos);return i<=55295||i>=57344?i:(i<<10)+this.input.charCodeAt(this.pos+1)-56613888},jh.skipBlockComment=function(){var i,o=this.options.onComment&&this.curPosition(),s=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(-1===v&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(Qu.lastIndex=s;(i=Qu.exec(this.input))&&i.index8&&i<14||i>=5760&&Vu.test(String.fromCharCode(i))))break e;++this.pos}}},jh.finishToken=function(i,o){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=i,this.value=o,this.updateContext(s)},jh.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var o=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===i&&46===o?(this.pos+=3,this.finishToken(ju.ellipsis)):(++this.pos,this.finishToken(ju.dot))},jh.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===i?this.finishOp(ju.assign,2):this.finishOp(ju.slash,1)},jh.readToken_mult_modulo_exp=function(i){var o=this.input.charCodeAt(this.pos+1),s=1,v=42===i?ju.star:ju.modulo;return this.options.ecmaVersion>=7&&42===i&&42===o&&(++s,v=ju.starstar,o=this.input.charCodeAt(this.pos+2)),61===o?this.finishOp(ju.assign,s+1):this.finishOp(v,s)},jh.readToken_pipe_amp=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?this.finishOp(124===i?ju.logicalOR:ju.logicalAND,2):61===o?this.finishOp(ju.assign,2):this.finishOp(124===i?ju.bitwiseOR:ju.bitwiseAND,1)},jh.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(ju.assign,2):this.finishOp(ju.bitwiseXOR,1)},jh.readToken_plus_min=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?45!==o||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Mu.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(ju.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===o?this.finishOp(ju.assign,2):this.finishOp(ju.plusMin,1)},jh.readToken_lt_gt=function(i){var o=this.input.charCodeAt(this.pos+1),s=1;return o===i?(s=62===i&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(ju.assign,s+1):this.finishOp(ju.bitShift,s)):33!==o||60!==i||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===o&&(s=2),this.finishOp(ju.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},jh.readToken_eq_excl=function(i){var o=this.input.charCodeAt(this.pos+1);return 61===o?this.finishOp(ju.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===i&&62===o&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(ju.arrow)):this.finishOp(61===i?ju.eq:ju.prefix,1)},jh.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(ju.parenL);case 41:return++this.pos,this.finishToken(ju.parenR);case 59:return++this.pos,this.finishToken(ju.semi);case 44:return++this.pos,this.finishToken(ju.comma);case 91:return++this.pos,this.finishToken(ju.bracketL);case 93:return++this.pos,this.finishToken(ju.bracketR);case 123:return++this.pos,this.finishToken(ju.braceL);case 125:return++this.pos,this.finishToken(ju.braceR);case 58:return++this.pos,this.finishToken(ju.colon);case 63:return++this.pos,this.finishToken(ju.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(ju.backQuote);case 48:var o=this.input.charCodeAt(this.pos+1);if(120===o||88===o)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===o||79===o)return this.readRadixNumber(8);if(98===o||66===o)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 126:return this.finishOp(ju.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(i)+"'")},jh.finishOp=function(i,o){var s=this.input.slice(this.pos,this.pos+o);return this.pos+=o,this.finishToken(i,s)},jh.readRegexp=function(){for(var i,o,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var v=this.input.charAt(this.pos);if(Mu.test(v)&&this.raise(s,"Unterminated regular expression"),i)i=!1;else{if("["===v)o=!0;else if("]"===v&&o)o=!1;else if("/"===v&&!o)break;i="\\"===v}++this.pos}var _=this.input.slice(s,this.pos);++this.pos;var $=this.pos,ae=this.readWord1();this.containsEsc&&this.unexpected($);var pe=this.regexpState||(this.regexpState=new bh(this));pe.reset(s,_,ae),this.validateRegExpFlags(pe),this.validateRegExpPattern(pe);var we=null;try{we=new RegExp(_,ae)}catch(i){}return this.finishToken(ju.regexp,{pattern:_,flags:ae,value:we})},jh.readInt=function(i,o){for(var s=this.pos,v=0,_=0,$=null==o?1/0:o;_<$;++_){var ae=this.input.charCodeAt(this.pos),pe=void 0;if((pe=ae>=97?ae-97+10:ae>=65?ae-65+10:ae>=48&&ae<=57?ae-48:1/0)>=i)break;++this.pos,v=v*i+pe}return this.pos===s||null!=o&&this.pos-s!==o?null:v},jh.readRadixNumber=function(i){var o=this.pos;this.pos+=2;var s=this.readInt(i);return null==s&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s="undefined"!=typeof BigInt?BigInt(this.input.slice(o,this.pos)):null,++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ju.num,s)},jh.readNumber=function(i){var o=this.pos;i||null!==this.readInt(10)||this.raise(o,"Invalid number");var s=this.pos-o>=2&&48===this.input.charCodeAt(o);s&&this.strict&&this.raise(o,"Invalid number"),s&&/[89]/.test(this.input.slice(o,this.pos))&&(s=!1);var v=this.input.charCodeAt(this.pos);if(!s&&!i&&this.options.ecmaVersion>=11&&110===v){var _=this.input.slice(o,this.pos),$="undefined"!=typeof BigInt?BigInt(_):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ju.num,$)}46!==v||s||(++this.pos,this.readInt(10),v=this.input.charCodeAt(this.pos)),69!==v&&101!==v||s||(43!==(v=this.input.charCodeAt(++this.pos))&&45!==v||++this.pos,null===this.readInt(10)&&this.raise(o,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var ae=this.input.slice(o,this.pos),pe=s?parseInt(ae,8):parseFloat(ae);return this.finishToken(ju.num,pe)},jh.readCodePoint=function(){var i;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(o,"Code point out of bounds")}else i=this.readHexChar(4);return i},jh.readString=function(i){for(var o="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var v=this.input.charCodeAt(this.pos);if(v===i)break;92===v?(o+=this.input.slice(s,this.pos),o+=this.readEscapedChar(!1),s=this.pos):(isNewLine(v,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return o+=this.input.slice(s,this.pos++),this.finishToken(ju.string,o)};var ep={};jh.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i!==ep)throw i;this.readInvalidTemplateToken()}this.inTemplateElement=!1},jh.invalidStringToken=function(i,o){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ep;this.raise(i,o)},jh.readTmplToken=function(){for(var i="",o=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==ju.template&&this.type!==ju.invalidTemplate?(i+=this.input.slice(o,this.pos),this.finishToken(ju.template,i)):36===s?(this.pos+=2,this.finishToken(ju.dollarBraceL)):(++this.pos,this.finishToken(ju.backQuote));if(92===s)i+=this.input.slice(o,this.pos),i+=this.readEscapedChar(!0),o=this.pos;else if(isNewLine(s)){switch(i+=this.input.slice(o,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:i+="\n";break;default:i+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),o=this.pos}else++this.pos}},jh.readInvalidTemplateToken=function(){for(;this.pos=48&&o<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],v=parseInt(s,8);return v>255&&(s=s.slice(0,-1),v=parseInt(s,8)),this.pos+=s.length-1,o=this.input.charCodeAt(this.pos),"0"===s&&56!==o&&57!==o||!this.strict&&!i||this.invalidStringToken(this.pos-1-s.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(v)}return isNewLine(o)?"":String.fromCharCode(o)}},jh.readHexChar=function(i){var o=this.pos,s=this.readInt(16,i);return null===s&&this.invalidStringToken(o,"Bad character escape sequence"),s},jh.readWord1=function(){this.containsEsc=!1;for(var i="",o=!0,s=this.pos,v=this.options.ecmaVersion>=6;this.poso)return{line:s+1,column:o-$,char:s};$=ae}throw new Error("Could not determine location of character")}function pad(i,o){var s=String(i);return s+repeat(" ",o-s.length)}function repeat(i,o){for(var s="";o--;)s+=i;return s}function getSnippet(i,o,s){void 0===s&&(s=1);var v=Math.max(o.line-5,0),_=o.line,$=String(_).length,ae=i.split("\n").slice(v,_),pe=ae[ae.length-1].slice(0,o.column).replace(/\t/g," ").length,we=ae.map((function(i,o){return pad(o+v+1,$)+" : "+i.replace(/\t/g," ")})).join("\n");return we+="\n"+repeat(" ",$+3+pe)+repeat("^",s)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach((function(i){return lp[i]=!0})),buble_browser_es_Scope.prototype={addDeclaration:function addDeclaration(i,o){for(var s=0,v=extractNames(i);s1&&(et=o($),pe.push((function(o,s,pe){i.prependRight(_.start,(ae?"":s+"var ")+et+" = "),i.overwrite(_.start,v=_.start+1,$),i.appendLeft(v,pe),i.overwrite(_.start,v=_.start+1,(ae?"":s+"var ")+et+" = "+$+pe),i.move(_.start,v,o)}))),destructureObjectPattern(i,o,s,_,et,ae,pe);break;case"ArrayPattern":if(i.remove(v,v=_.start),_.elements.filter(Boolean).length>1){var tt=o($);pe.push((function(o,s,pe){i.prependRight(_.start,(ae?"":s+"var ")+tt+" = "),i.overwrite(_.start,v=_.start+1,$,{contentOnly:!0}),i.appendLeft(v,pe),i.move(_.start,v,o)})),_.elements.forEach((function(_,$){_&&("RestElement"===_.type?handleProperty(i,o,s,v,_.argument,tt+".slice("+$+")",ae,pe):handleProperty(i,o,s,v,_,tt+"["+$+"]",ae,pe),v=_.end)}))}else{var nt=findIndex(_.elements,Boolean),rt=_.elements[nt];"RestElement"===rt.type?handleProperty(i,o,s,v,rt.argument,$+".slice("+nt+")",ae,pe):handleProperty(i,o,s,v,rt,$+"["+nt+"]",ae,pe),v=rt.end}i.remove(v,_.end);break;default:throw new Error("Unexpected node type in destructuring ("+_.type+")")}}var pp=function(i){function BlockStatement(){i.apply(this,arguments)}return i&&(BlockStatement.__proto__=i),BlockStatement.prototype=Object.create(i&&i.prototype),BlockStatement.prototype.constructor=BlockStatement,BlockStatement.prototype.createScope=function createScope(){var i=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new buble_browser_es_Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(o){return i.createdDeclarations.push(o)}}),this.parentIsFunction&&this.parent.params.forEach((function(o){i.scope.addDeclaration(o,"param")}))},BlockStatement.prototype.initialise=function initialise(i){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach((function(o){return o.initialise(i)})),this.scope.consolidate()},BlockStatement.prototype.findLexicalBoundary=function findLexicalBoundary(){return"Program"===this.type||/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},BlockStatement.prototype.findScope=function findScope(i){return i&&!this.isFunctionBlock?this.parent.findScope(i):this.scope},BlockStatement.prototype.getArgumentsAlias=function getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},BlockStatement.prototype.getArgumentsArrayAlias=function getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},BlockStatement.prototype.getThisAlias=function getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},BlockStatement.prototype.getIndentation=function getIndentation(){if(void 0===this.indentation){for(var i=this.program.magicString.original,o=this.synthetic||!this.body.length,s=o?this.start:this.body[0].start;s&&"\n"!==i[s];)s-=1;for(this.indentation="";;){var v=i[s+=1];if(" "!==v&&"\t"!==v)break;this.indentation+=v}for(var _=this.program.magicString.getIndentString(),$=this.parent;$;)"constructor"!==$.kind||$.parent.parent.superClass||(this.indentation=this.indentation.replace(_,"")),$=$.parent;o&&(this.indentation+=_)}return this.indentation},BlockStatement.prototype.transpile=function transpile(o,s){var v,_,$=this,ae=this.getIndentation(),pe=[];if(this.argumentsAlias&&pe.push((function(i,s,v){var _=s+"var "+$.argumentsAlias+" = arguments"+v;o.appendLeft(i,_)})),this.thisAlias&&pe.push((function(i,s,v){var _=s+"var "+$.thisAlias+" = this"+v;o.appendLeft(i,_)})),this.argumentsArrayAlias&&pe.push((function(i,s,v){var _=$.scope.createIdentifier("i"),pe=s+"var "+_+" = arguments.length, "+$.argumentsArrayAlias+" = Array("+_+");\n"+ae+"while ( "+_+"-- ) "+$.argumentsArrayAlias+"["+_+"] = arguments["+_+"]"+v;o.appendLeft(i,pe)})),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,o,s,ae,pe):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],o,s,ae,pe),s.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(o),i.prototype.transpile.call(this,o,s),this.createdDeclarations.length&&pe.push((function(i,s,v){var _=s+"var "+$.createdDeclarations.join(", ")+v;o.appendLeft(i,_)})),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var we=this.body[0];pe.length?(o.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),o.prependRight(we.start,"\n"+ae+"return "),o.appendLeft(we.end,";\n")):s.arrow&&(o.prependRight(we.start,"{ return "),o.appendLeft(we.end,"; }"))}else pe.length&&o.prependRight(this.start,"{").appendLeft(this.end,"}");_=this.body[0],v=_&&"ExpressionStatement"===_.type&&"Literal"===_.expression.type&&"use strict"===_.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var _e="\n"+ae,et=";";pe.forEach((function(i,o){o===pe.length-1&&(et=";\n"),i(v,_e,et)}))},BlockStatement.prototype.transpileParameters=function transpileParameters(i,o,s,v,_){var $=this;i.forEach((function(ae){if("AssignmentPattern"===ae.type&&"Identifier"===ae.left.type)s.defaultParameter&&_.push((function(i,s,v){var _=s+"if ( "+ae.left.name+" === void 0 ) "+ae.left.name;o.prependRight(ae.left.end,_).move(ae.left.end,ae.right.end,i).appendLeft(ae.right.end,v)}));else if("RestElement"===ae.type)s.spreadRest&&_.push((function(s,_,pe){var we=i[i.length-2];if(we)o.remove(we?we.end:ae.start,ae.end);else{for(var _e=ae.start,et=ae.end;/\s/.test(o.original[_e-1]);)_e-=1;for(;/\s/.test(o.original[et]);)et+=1;o.remove(_e,et)}var tt=ae.argument.name,nt=$.scope.createIdentifier("len"),rt=i.length-1;rt?o.prependRight(s,_+"var "+tt+" = [], "+nt+" = arguments.length - "+rt+";\n"+v+"while ( "+nt+"-- > 0 ) "+tt+"[ "+nt+" ] = arguments[ "+nt+" + "+rt+" ]"+pe):o.prependRight(s,_+"var "+tt+" = [], "+nt+" = arguments.length;\n"+v+"while ( "+nt+"-- ) "+tt+"[ "+nt+" ] = arguments[ "+nt+" ]"+pe)}));else if("Identifier"!==ae.type&&s.parameterDestructuring){var pe=$.scope.createIdentifier("ref");destructure(o,(function(i){return $.scope.createIdentifier(i)}),(function(i){var o=i.name;return $.scope.resolveName(o)}),ae,pe,!1,_),o.prependRight(ae.start,pe)}}))},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(i){var o=this;Object.keys(this.scope.blockScopedDeclarations).forEach((function(s){for(var v=0,_=o.scope.blockScopedDeclarations[s];v<_.length;v+=1){var $=_[v],ae=!1;if("for.let"===$.kind){var pe=$.node.findNearest("ForStatement");if(pe.shouldRewriteAsFunction){var we=o.scope.createIdentifier(s),_e=pe.reassigned[s]?o.scope.createIdentifier(s):s;$.name=we,i.overwrite($.node.start,$.node.end,we,{storeName:!0}),pe.aliases[s]={outer:we,inner:_e};for(var et=0,tt=$.instances;etthis.start?o.overwrite(this.start,pe,_e):o.prependRight(this.start,_e)}else i.prototype.transpile.call(this,o,s);s.trailingFunctionCommas&&this.params.length&&!$&&removeTrailingComma(o,this.params[this.params.length-1].end)},ArrowFunctionExpression.prototype.needsArguments=function needsArguments(i){return i.spreadRest&&this.params.filter((function(i){return"RestElement"===i.type})).length>0},ArrowFunctionExpression}(dp);function checkConst(i,o){var s=o.findDeclaration(i.name);if(s&&"const"===s.kind)throw new cp(i.name+" is read-only",i)}var mp=function(i){function AssignmentExpression(){i.apply(this,arguments)}return i&&(AssignmentExpression.__proto__=i),AssignmentExpression.prototype=Object.create(i&&i.prototype),AssignmentExpression.prototype.constructor=AssignmentExpression,AssignmentExpression.prototype.initialise=function initialise(o){if("Identifier"===this.left.type){var s=this.findScope(!1).findDeclaration(this.left.name),v=s&&s.node.ancestor(3);v&&"ForStatement"===v.type&&v.body.contains(this)&&(v.reassigned[this.left.name]=!0)}i.prototype.initialise.call(this,o)},AssignmentExpression.prototype.transpile=function transpile(o,s){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&s.exponentiation?this.transpileExponentiation(o,s):/Pattern/.test(this.left.type)&&s.destructuring&&this.transpileDestructuring(o),i.prototype.transpile.call(this,o,s)},AssignmentExpression.prototype.transpileDestructuring=function transpileDestructuring(i){var o=this,s=this.findScope(!0),v=this.findScope(!1),_=s.createDeclaration("assign");i.appendRight(this.left.end,"("+_),i.appendLeft(this.right.end,", ");var $=[];destructure(i,(function(i){return s.createDeclaration(i)}),(function(i){var o=v.resolveName(i.name);return checkConst(i,v),o}),this.left,_,!0,$);var ae=", ";$.forEach((function(i,s){s===$.length-1&&(ae=""),i(o.end,"",ae)})),"ExpressionStatement"===this.unparenthesizedParent().type?i.prependRight(this.end,")"):i.appendRight(this.end,", "+_+")")},AssignmentExpression.prototype.transpileExponentiation=function transpileExponentiation(i){for(var o,s=this.findScope(!1),v=this.left.end;"*"!==i.original[v];)v+=1;i.remove(v,v+2);var _=this.left.unparenthesize();if("Identifier"===_.type)o=s.resolveName(_.name);else if("MemberExpression"===_.type){var $,ae,pe=!1,we=!1,_e=this.findNearest(/(?:Statement|Declaration)$/),et=_e.getIndentation();"Identifier"===_.property.type?ae=_.computed?s.resolveName(_.property.name):_.property.name:(ae=s.createDeclaration("property"),we=!0),"Identifier"===_.object.type?$=s.resolveName(_.object.name):($=s.createDeclaration("object"),pe=!0),_.start===_e.start?pe&&we?(i.prependRight(_e.start,$+" = "),i.overwrite(_.object.end,_.property.start,";\n"+et+ae+" = "),i.overwrite(_.property.end,_.end,";\n"+et+$+"["+ae+"]")):pe?(i.prependRight(_e.start,$+" = "),i.appendLeft(_.object.end,";\n"+et),i.appendLeft(_.object.end,$)):we&&(i.prependRight(_.property.start,ae+" = "),i.appendLeft(_.property.end,";\n"+et),i.move(_.property.start,_.property.end,this.start),i.appendLeft(_.object.end,"["+ae+"]"),i.remove(_.object.end,_.property.start),i.remove(_.property.end,_.end)):(pe&&we?(i.prependRight(_.start,"( "+$+" = "),i.overwrite(_.object.end,_.property.start,", "+ae+" = "),i.overwrite(_.property.end,_.end,", "+$+"["+ae+"]")):pe?(i.prependRight(_.start,"( "+$+" = "),i.appendLeft(_.object.end,", "+$)):we&&(i.prependRight(_.property.start,"( "+ae+" = "),i.appendLeft(_.property.end,", "),i.move(_.property.start,_.property.end,_.start),i.overwrite(_.object.end,_.property.start,"["+ae+"]"),i.remove(_.property.end,_.end)),we&&i.appendLeft(this.end," )")),o=$+(_.computed||we?"["+ae+"]":"."+ae)}i.prependRight(this.right.start,"Math.pow( "+o+", "),i.appendLeft(this.right.end," )")},AssignmentExpression}(dp),yp=function(i){function AwaitExpression(){i.apply(this,arguments)}return i&&(AwaitExpression.__proto__=i),AwaitExpression.prototype=Object.create(i&&i.prototype),AwaitExpression.prototype.constructor=AwaitExpression,AwaitExpression.prototype.initialise=function initialise(o){o.asyncAwait&&cp.missingTransform("await","asyncAwait",this),i.prototype.initialise.call(this,o)},AwaitExpression}(dp),vp=function(i){function BinaryExpression(){i.apply(this,arguments)}return i&&(BinaryExpression.__proto__=i),BinaryExpression.prototype=Object.create(i&&i.prototype),BinaryExpression.prototype.constructor=BinaryExpression,BinaryExpression.prototype.transpile=function transpile(o,s){"**"===this.operator&&s.exponentiation&&(o.prependRight(this.start,"Math.pow( "),o.overwrite(this.left.end,this.right.start,", "),o.appendLeft(this.end," )")),i.prototype.transpile.call(this,o,s)},BinaryExpression}(dp),Rp=/(?:For(?:In|Of)?|While)Statement/,bp=function(i){function BreakStatement(){i.apply(this,arguments)}return i&&(BreakStatement.__proto__=i),BreakStatement.prototype=Object.create(i&&i.prototype),BreakStatement.prototype.constructor=BreakStatement,BreakStatement.prototype.initialise=function initialise(){var i=this.findNearest(Rp),o=this.findNearest("SwitchCase");i&&(!o||i.depth>o.depth)&&(i.canBreak=!0,this.loop=i)},BreakStatement.prototype.transpile=function transpile(i){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new cp("Labels are not currently supported in a loop with locally-scoped variables",this);i.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(dp),Op=function(i){function CallExpression(){i.apply(this,arguments)}return i&&(CallExpression.__proto__=i),CallExpression.prototype=Object.create(i&&i.prototype),CallExpression.prototype.constructor=CallExpression,CallExpression.prototype.initialise=function initialise(o){if(o.spreadRest&&this.arguments.length>1)for(var s=this.findLexicalBoundary(),v=this.arguments.length;v--;){var _=this.arguments[v];"SpreadElement"===_.type&&isArguments(_.argument)&&(this.argumentsArrayAlias=s.getArgumentsArrayAlias())}i.prototype.initialise.call(this,o)},CallExpression.prototype.transpile=function transpile(o,s){if(s.spreadRest&&this.arguments.length&&inlineSpreads(o,this,this.arguments),s.spreadRest&&this.arguments.length){var v,_=!1,$=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===$.type&&(o.remove($.start,$.argument.start),_=!0):_=spread(o,this.arguments,$.start,this.argumentsArrayAlias),_){var ae=null;if("Super"===this.callee.type?ae=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(ae=this.callee.object),ae||"MemberExpression"!==this.callee.type)v="void 0";else if("Identifier"===this.callee.object.type)v=this.callee.object.name;else{v=this.findScope(!0).createDeclaration("ref");var pe=this.callee.object;o.prependRight(pe.start,"("+v+" = "),o.appendLeft(pe.end,")")}o.appendLeft(this.callee.end,".apply"),ae?(ae.noCall=!0,this.arguments.length>1&&("SpreadElement"===$.type?needsParentheses($.argument)&&o.prependRight($.start,"( "):o.prependRight($.start,"[ "),o.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?o.prependRight($.start,v+", "):("SpreadElement"===$.type?needsParentheses($.argument)?o.appendLeft($.start,v+", ( "):o.appendLeft($.start,v+", "):o.appendLeft($.start,v+", [ "),o.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}s.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(o,this.arguments[this.arguments.length-1].end),i.prototype.transpile.call(this,o,s)},CallExpression}(dp),xp=function(i){function CatchClause(){i.apply(this,arguments)}return i&&(CatchClause.__proto__=i),CatchClause.prototype=Object.create(i&&i.prototype),CatchClause.prototype.constructor=CatchClause,CatchClause.prototype.initialise=function initialise(o){var s=this;this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),this.scope.addDeclaration(this.param,"catch"),i.prototype.initialise.call(this,o),this.scope.consolidate()},CatchClause.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},CatchClause}(dp),wp=function(i){function ClassBody(){i.apply(this,arguments)}return i&&(ClassBody.__proto__=i),ClassBody.prototype=Object.create(i&&i.prototype),ClassBody.prototype.constructor=ClassBody,ClassBody.prototype.transpile=function transpile(o,s,v,_){var $=this;if(s.classes){var ae=this.parent.name,pe=o.getIndentString(),we=this.getIndentation()+(v?pe:""),_e=we+pe,et=findIndex(this.body,(function(i){return"constructor"===i.kind})),tt=this.body[et],nt="",rt="";if(this.body.length?(o.remove(this.start,this.body[0].start),o.remove(this.body[this.body.length-1].end,this.end)):o.remove(this.start,this.end),tt){tt.value.body.isConstructorBody=!0;var it=this.body[et-1],ot=this.body[et+1];et>0&&(o.remove(it.end,tt.start),o.move(tt.start,ot?ot.start:this.end-1,this.body[0].start)),v||o.appendLeft(tt.end,";")}var st=!1!==this.program.options.namedFunctionExpressions,dt=st||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var ut="if ( "+_+" ) "+ae+".__proto__ = "+_+";\n"+we+ae+".prototype = Object.create( "+_+" && "+_+".prototype );\n"+we+ae+".prototype.constructor = "+ae+";";if(tt)nt+="\n\n"+we+ut;else nt+=(ut="function "+ae+" () {"+(_?"\n"+_e+_+".apply(this, arguments);\n"+we+"}":"}")+(v?"":";")+(this.body.length?"\n\n"+we:"")+ut)+"\n\n"+we}else if(!tt){var lt="function "+(dt?ae+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(lt+=";"),this.body.length&&(lt+="\n\n"+we),nt+=lt}var ct,ht,pt=this.findScope(!1),ft=[],gt=[];if(this.body.forEach((function(i,v){if("get"!==i.kind&&"set"!==i.kind||!s.getterSetter||cp.missingTransform("getters and setters","getterSetter",i),"constructor"!==i.kind){if(i.static){var _=" "==o.original[i.start+6]?7:6;o.remove(i.start,i.start+_)}var pe,_e="method"!==i.kind,tt=i.key.name;(lp[tt]||i.value.body.scope.references[tt])&&(tt=pt.createIdentifier(tt));var nt=!1;if(i.computed||"Literal"!==i.key.type||(nt=!0,i.computed=!0),_e){if(i.computed)throw new Error("Computed accessor properties are not currently supported");o.remove(i.start,i.key.start),i.static?(~gt.indexOf(i.key.name)||gt.push(i.key.name),ht||(ht=pt.createIdentifier("staticAccessors")),pe=""+ht):(~ft.indexOf(i.key.name)||ft.push(i.key.name),ct||(ct=pt.createIdentifier("prototypeAccessors")),pe=""+ct)}else pe=i.static?""+ae:ae+".prototype";i.computed||(pe+="."),(et>0&&v===et+1||0===v&&et===$.body.length-1)&&(pe="\n\n"+we+pe);var rt=i.key.end;if(i.computed)if(nt)o.prependRight(i.key.start,"["),o.appendLeft(i.key.end,"]");else{for(;"]"!==o.original[rt];)rt+=1;rt+=1}var it=i.computed||_e||!st?"":tt+" ",ot=(_e?"."+i.kind:"")+" = "+(i.value.async?"async ":"")+"function"+(i.value.generator?"* ":" ")+it;o.remove(rt,i.value.start),o.prependRight(i.value.start,ot),o.appendLeft(i.end,";"),i.value.generator&&o.remove(i.start,i.key.start);var ut=i.key.start;if(i.computed&&!nt)for(;"["!=o.original[ut];)--ut;i.startthis.depth){this.shouldRewriteAsFunction=!0;for(var we=0,_e=this.thisRefs;we<_e.length;we+=1){var et=_e[we];et.alias=et.alias||et.findLexicalBoundary().getThisAlias()}break}}if(this.shouldRewriteAsFunction)break}},LoopStatement.prototype.transpile=function transpile(o,s){var v="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var _=this.getIndentation(),$=_+o.getIndentString(),ae=this.args?" "+this.args.join(", ")+" ":"",pe=this.params?" "+this.params.join(", ")+" ":"",we=this.findScope(!0),_e=we.createIdentifier("loop"),et="var "+_e+" = function ("+pe+") "+(this.body.synthetic?"{\n"+_+o.getIndentString():""),tt=(this.body.synthetic?"\n"+_+"}":"")+";\n\n"+_;if(o.prependRight(this.body.start,et),o.appendLeft(this.body.end,tt),o.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var nt=we.createIdentifier("returned"),rt="{\n"+$+"var "+nt+" = "+_e+"("+ae+");\n";this.canBreak&&(rt+="\n"+$+"if ( "+nt+" === 'break' ) break;"),this.canReturn&&(rt+="\n"+$+"if ( "+nt+" ) return "+nt+".v;"),rt+="\n"+_+"}",o.prependRight(this.body.end,rt)}else{var it=_e+"("+ae+");";"DoWhileStatement"===this.type?o.overwrite(this.start,this.body.start,"do {\n"+$+it+"\n"+_+"}"):o.prependRight(this.body.end,it)}}else v&&(o.appendLeft(this.body.start,"{ "),o.prependRight(this.body.end," }"));i.prototype.transpile.call(this,o,s)},LoopStatement}(dp),Dp=function(i){function ForStatement(){i.apply(this,arguments)}return i&&(ForStatement.__proto__=i),ForStatement.prototype=Object.create(i&&i.prototype),ForStatement.prototype.constructor=ForStatement,ForStatement.prototype.initialise=function initialise(o){var s=this;this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),i.prototype.initialise.call(this,o)},ForStatement.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},ForStatement.prototype.transpile=function transpile(o,s){var v=this,_=this.getIndentation()+o.getIndentString();if(this.shouldRewriteAsFunction){var $=this.init&&"VariableDeclaration"===this.init.type?this.init.declarations.map((function(i){return extractNames(i.id)})):[],ae=this.aliases;this.args=$.map((function(i){return i in v.aliases?v.aliases[i].outer:i})),this.params=$.map((function(i){return i in v.aliases?v.aliases[i].inner:i}));var pe=Object.keys(this.reassigned).map((function(i){return ae[i].outer+" = "+ae[i].inner+";"}));if(pe.length)if(this.body.synthetic)o.appendLeft(this.body.body[0].end,"; "+pe.join(" "));else{var we=this.body.body[this.body.body.length-1];o.appendLeft(we.end,"\n\n"+_+pe.join("\n"+_))}}i.prototype.transpile.call(this,o,s)},ForStatement}(Ap),Pp=function(i){function ForInStatement(){i.apply(this,arguments)}return i&&(ForInStatement.__proto__=i),ForInStatement.prototype=Object.create(i&&i.prototype),ForInStatement.prototype.constructor=ForInStatement,ForInStatement.prototype.initialise=function initialise(o){var s=this;this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),i.prototype.initialise.call(this,o)},ForInStatement.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},ForInStatement.prototype.transpile=function transpile(o,s){var v=this,_="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var $=_?this.left.declarations.map((function(i){return extractNames(i.id)})):[];this.args=$.map((function(i){return i in v.aliases?v.aliases[i].outer:i})),this.params=$.map((function(i){return i in v.aliases?v.aliases[i].inner:i}))}i.prototype.transpile.call(this,o,s);var ae=_?this.left.declarations[0].id:this.left;"Identifier"!==ae.type&&"MemberExpression"!==ae.type&&this.destructurePattern(o,ae,_)},ForInStatement.prototype.destructurePattern=function destructurePattern(i,o,s){var v=this.findScope(!0),_=this.getIndentation()+i.getIndentString(),$=v.createIdentifier("ref"),ae=this.body.body.length?this.body.body[0].start:this.body.start+1;i.move(o.start,o.end,ae),i.prependRight(o.end,s?$:"var "+$);var pe=[];destructure(i,(function(i){return v.createIdentifier(i)}),(function(i){var o=i.name;return v.resolveName(o)}),o,$,!1,pe);var we=";\n"+_;pe.forEach((function(i,o){o===pe.length-1&&(we=";\n\n"+_),i(ae,"",we)}))},ForInStatement}(Ap),Tp=function(i){function ForOfStatement(){i.apply(this,arguments)}return i&&(ForOfStatement.__proto__=i),ForOfStatement.prototype=Object.create(i&&i.prototype),ForOfStatement.prototype.constructor=ForOfStatement,ForOfStatement.prototype.initialise=function initialise(o){var s=this;o.forOf&&!o.dangerousForOf&&cp.missingTransform("for-of statements","forOf",this,"dangerousForOf"),this.await&&o.asyncAwait&&cp.missingTransform("for-await-of statements","asyncAwait",this),this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),i.prototype.initialise.call(this,o)},ForOfStatement.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},ForOfStatement.prototype.transpile=function transpile(o,s){if(i.prototype.transpile.call(this,o,s),s.dangerousForOf)if(this.body.body[0]){var v=this.findScope(!0),_=this.getIndentation(),$=_+o.getIndentString(),ae=v.createIdentifier("i"),pe=v.createIdentifier("list");this.body.synthetic&&(o.prependRight(this.left.start,"{\n"+$),o.appendLeft(this.body.body[0].end,"\n"+_+"}"));var we=this.body.body[0].start;o.remove(this.left.end,this.right.start),o.move(this.left.start,this.left.end,we),o.prependRight(this.right.start,"var "+ae+" = 0, "+pe+" = "),o.appendLeft(this.right.end,"; "+ae+" < "+pe+".length; "+ae+" += 1");var _e="VariableDeclaration"===this.left.type,et=_e?this.left.declarations[0].id:this.left;if("Identifier"!==et.type){var tt=[],nt=v.createIdentifier("ref");destructure(o,(function(i){return v.createIdentifier(i)}),(function(i){var o=i.name;return v.resolveName(o)}),et,nt,!_e,tt);var rt=";\n"+$;tt.forEach((function(i,o){o===tt.length-1&&(rt=";\n\n"+$),i(we,"",rt)})),_e?(o.appendLeft(this.left.start+this.left.kind.length+1,nt),o.appendLeft(this.left.end," = "+pe+"["+ae+"];\n"+$)):o.appendLeft(this.left.end,"var "+nt+" = "+pe+"["+ae+"];\n"+$)}else o.appendLeft(this.left.end," = "+pe+"["+ae+"];\n\n"+$)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(o.remove(this.start,this.left.start),o.appendLeft(this.left.end,";"),o.remove(this.left.end,this.end)):o.remove(this.start,this.end)},ForOfStatement}(Ap),Ip=function(i){function FunctionDeclaration(){i.apply(this,arguments)}return i&&(FunctionDeclaration.__proto__=i),FunctionDeclaration.prototype=Object.create(i&&i.prototype),FunctionDeclaration.prototype.constructor=FunctionDeclaration,FunctionDeclaration.prototype.initialise=function initialise(o){this.generator&&o.generator&&cp.missingTransform("generators","generator",this),this.async&&o.asyncAwait&&cp.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),i.prototype.initialise.call(this,o)},FunctionDeclaration.prototype.transpile=function transpile(o,s){i.prototype.transpile.call(this,o,s),s.trailingFunctionCommas&&this.params.length&&removeTrailingComma(o,this.params[this.params.length-1].end)},FunctionDeclaration}(dp),Fp=function(i){function FunctionExpression(){i.apply(this,arguments)}return i&&(FunctionExpression.__proto__=i),FunctionExpression.prototype=Object.create(i&&i.prototype),FunctionExpression.prototype.constructor=FunctionExpression,FunctionExpression.prototype.initialise=function initialise(o){this.generator&&o.generator&&cp.missingTransform("generators","generator",this),this.async&&o.asyncAwait&&cp.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),i.prototype.initialise.call(this,o);var s,v=this.parent;if(o.conciseMethodProperty&&"Property"===v.type&&"init"===v.kind&&v.method&&"Identifier"===v.key.type||o.classes&&"MethodDefinition"===v.type&&"method"===v.kind&&"Identifier"===v.key.type?s=v.key.name:this.id&&"Identifier"===this.id.type&&(s=this.id.alias||this.id.name),s)for(var _=0,$=this.params;_<$.length;_+=1){var ae=$[_];if("Identifier"===ae.type&&s===ae.name){var pe=this.body.scope,we=pe.declarations[s],_e=pe.createIdentifier(s);ae.alias=_e;for(var et=0,tt=we.instances;eto.depth&&(this.alias=o.getArgumentsAlias()),v&&v.body.contains(this)&&v.depth>o.depth&&(this.alias=o.getArgumentsAlias())}this.findScope(!1).addReference(this)}},Identifier.prototype.isLabel=function isLabel(){switch(this.parent.type){case"BreakStatement":case"ContinueStatement":case"LabeledStatement":return!0;default:return!1}},Identifier.prototype.transpile=function transpile(i){this.alias&&i.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},Identifier}(dp),Bp=function(i){function IfStatement(){i.apply(this,arguments)}return i&&(IfStatement.__proto__=i),IfStatement.prototype=Object.create(i&&i.prototype),IfStatement.prototype.constructor=IfStatement,IfStatement.prototype.initialise=function initialise(o){i.prototype.initialise.call(this,o)},IfStatement.prototype.transpile=function transpile(o,s){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(o.appendLeft(this.consequent.start,"{ "),o.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(o.appendLeft(this.alternate.start,"{ "),o.prependRight(this.alternate.end," }")),i.prototype.transpile.call(this,o,s)},IfStatement}(dp),Lp=function(i){function Import(){i.apply(this,arguments)}return i&&(Import.__proto__=i),Import.prototype=Object.create(i&&i.prototype),Import.prototype.constructor=Import,Import.prototype.initialise=function initialise(o){o.moduleImport&&cp.missingTransform("dynamic import expressions","moduleImport",this),i.prototype.initialise.call(this,o)},Import}(dp),jp=function(i){function ImportDeclaration(){i.apply(this,arguments)}return i&&(ImportDeclaration.__proto__=i),ImportDeclaration.prototype=Object.create(i&&i.prototype),ImportDeclaration.prototype.constructor=ImportDeclaration,ImportDeclaration.prototype.initialise=function initialise(o){o.moduleImport&&cp.missingTransform("import","moduleImport",this),i.prototype.initialise.call(this,o)},ImportDeclaration}(dp),Mp=function(i){function ImportDefaultSpecifier(){i.apply(this,arguments)}return i&&(ImportDefaultSpecifier.__proto__=i),ImportDefaultSpecifier.prototype=Object.create(i&&i.prototype),ImportDefaultSpecifier.prototype.constructor=ImportDefaultSpecifier,ImportDefaultSpecifier.prototype.initialise=function initialise(o){this.findScope(!0).addDeclaration(this.local,"import"),i.prototype.initialise.call(this,o)},ImportDefaultSpecifier}(dp),Qp=function(i){function ImportSpecifier(){i.apply(this,arguments)}return i&&(ImportSpecifier.__proto__=i),ImportSpecifier.prototype=Object.create(i&&i.prototype),ImportSpecifier.prototype.constructor=ImportSpecifier,ImportSpecifier.prototype.initialise=function initialise(o){this.findScope(!0).addDeclaration(this.local,"import"),i.prototype.initialise.call(this,o)},ImportSpecifier}(dp),Vp=function(i){function JSXAttribute(){i.apply(this,arguments)}return i&&(JSXAttribute.__proto__=i),JSXAttribute.prototype=Object.create(i&&i.prototype),JSXAttribute.prototype.constructor=JSXAttribute,JSXAttribute.prototype.transpile=function transpile(o,s){var v,_=this.name,$=_.start,ae=_.name,pe=this.value?this.value.start:this.name.end;o.overwrite($,pe,(/-/.test(v=ae)?"'"+v+"'":v)+": "+(this.value?"":"true")),i.prototype.transpile.call(this,o,s)},JSXAttribute}(dp);var Up=function(i){function JSXClosingElement(){i.apply(this,arguments)}return i&&(JSXClosingElement.__proto__=i),JSXClosingElement.prototype=Object.create(i&&i.prototype),JSXClosingElement.prototype.constructor=JSXClosingElement,JSXClosingElement.prototype.transpile=function transpile(i){var o,s=!0,v=this.parent.children[this.parent.children.length-1];(v&&("JSXText"===(o=v).type&&!/\S/.test(o.value)&&/\n/.test(o.value))||this.parent.openingElement.attributes.length)&&(s=!1),i.overwrite(this.start,this.end,s?" )":")")},JSXClosingElement}(dp);var Wp=function(i){function JSXClosingFragment(){i.apply(this,arguments)}return i&&(JSXClosingFragment.__proto__=i),JSXClosingFragment.prototype=Object.create(i&&i.prototype),JSXClosingFragment.prototype.constructor=JSXClosingFragment,JSXClosingFragment.prototype.transpile=function transpile(i){var o,s=!0,v=this.parent.children[this.parent.children.length-1];v&&("JSXText"===(o=v).type&&!/\S/.test(o.value)&&/\n/.test(o.value))&&(s=!1),i.overwrite(this.start,this.end,s?" )":")")},JSXClosingFragment}(dp);function normalise(i,o){return o&&/\n/.test(i)&&(i=i.replace(/[ \f\n\r\t\v]+$/,"")),i=i.replace(/^\n\r?[ \f\n\r\t\v]+/,"").replace(/[ \f\n\r\t\v]*\n\r?[ \f\n\r\t\v]*/gm," "),JSON.stringify(i)}var $p=function(i){function JSXElement(){i.apply(this,arguments)}return i&&(JSXElement.__proto__=i),JSXElement.prototype=Object.create(i&&i.prototype),JSXElement.prototype.constructor=JSXElement,JSXElement.prototype.transpile=function transpile(o,s){i.prototype.transpile.call(this,o,s);var v=this.children.filter((function(i){return"JSXText"!==i.type||(/[^ \f\n\r\t\v]/.test(i.raw)||!/\n/.test(i.raw))}));if(v.length){var _,$=(this.openingElement||this.openingFragment).end;for(_=0;_0&&(et.start===$?o.prependRight($,", "):o.overwrite($,et.start,", ")),_e&&"JSXSpreadAttribute"!==et.type){var tt=this.attributes[ae-1],nt=this.attributes[ae+1];tt&&"JSXSpreadAttribute"!==tt.type||o.prependRight(et.start,"{ "),nt&&"JSXSpreadAttribute"!==nt.type||o.appendLeft(et.end," }")}$=et.end}if(_e)if(1===_)we=v?"',":",";else{if(!this.program.options.objectAssign)throw new cp("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);we=v?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",pe=")"}else we=v?"', {":", {",pe=" }";o.prependRight(this.name.end,we),pe&&o.appendLeft(this.attributes[_-1].end,pe)}else o.appendLeft(this.name.end,v?"', null":", null"),$=this.name.end;this.selfClosing?o.overwrite($,this.end,this.attributes.length?")":" )"):o.remove($,this.end)},JSXOpeningElement}(dp),Hp=function(i){function JSXOpeningFragment(){i.apply(this,arguments)}return i&&(JSXOpeningFragment.__proto__=i),JSXOpeningFragment.prototype=Object.create(i&&i.prototype),JSXOpeningFragment.prototype.constructor=JSXOpeningFragment,JSXOpeningFragment.prototype.transpile=function transpile(i){i.overwrite(this.start,this.end,this.program.jsx+"( "+this.program.jsxFragment+", null")},JSXOpeningFragment}(dp),Gp=function(i){function JSXSpreadAttribute(){i.apply(this,arguments)}return i&&(JSXSpreadAttribute.__proto__=i),JSXSpreadAttribute.prototype=Object.create(i&&i.prototype),JSXSpreadAttribute.prototype.constructor=JSXSpreadAttribute,JSXSpreadAttribute.prototype.transpile=function transpile(o,s){o.remove(this.start,this.argument.start),o.remove(this.argument.end,this.end),i.prototype.transpile.call(this,o,s)},JSXSpreadAttribute}(dp),Xp=/[\u2028-\u2029]/g,Yp=function(i){function Literal(){i.apply(this,arguments)}return i&&(Literal.__proto__=i),Literal.prototype=Object.create(i&&i.prototype),Literal.prototype.constructor=Literal,Literal.prototype.initialise=function initialise(){"string"==typeof this.value&&this.program.indentExclusionElements.push(this)},Literal.prototype.transpile=function transpile(i,o){if(o.numericLiteral&&this.raw.match(/^0[bo]/i)&&i.overwrite(this.start,this.end,String(this.value),{storeName:!0,contentOnly:!0}),this.regex){var s=this.regex,v=s.pattern,_=s.flags;o.stickyRegExp&&/y/.test(_)&&cp.missingTransform("the regular expression sticky flag","stickyRegExp",this),o.unicodeRegExp&&/u/.test(_)&&i.overwrite(this.start,this.end,"/"+sp()(v,_)+"/"+_.replace("u",""),{contentOnly:!0})}else"string"==typeof this.value&&this.value.match(Xp)&&i.overwrite(this.start,this.end,this.raw.replace(Xp,(function(i){return"\u2028"==i?"\\u2028":"\\u2029"})),{contentOnly:!0})},Literal}(dp),Kp=function(i){function MemberExpression(){i.apply(this,arguments)}return i&&(MemberExpression.__proto__=i),MemberExpression.prototype=Object.create(i&&i.prototype),MemberExpression.prototype.constructor=MemberExpression,MemberExpression.prototype.transpile=function transpile(o,s){s.reservedProperties&&lp[this.property.name]&&(o.overwrite(this.object.end,this.property.start,"['"),o.appendLeft(this.property.end,"']")),i.prototype.transpile.call(this,o,s)},MemberExpression}(dp),Jp=function(i){function NewExpression(){i.apply(this,arguments)}return i&&(NewExpression.__proto__=i),NewExpression.prototype=Object.create(i&&i.prototype),NewExpression.prototype.constructor=NewExpression,NewExpression.prototype.initialise=function initialise(o){if(o.spreadRest&&this.arguments.length)for(var s=this.findLexicalBoundary(),v=this.arguments.length;v--;){var _=this.arguments[v];if("SpreadElement"===_.type&&isArguments(_.argument)){this.argumentsArrayAlias=s.getArgumentsArrayAlias();break}}i.prototype.initialise.call(this,o)},NewExpression.prototype.transpile=function transpile(o,s){if(i.prototype.transpile.call(this,o,s),s.spreadRest&&this.arguments.length&&inlineSpreads(o,this,this.arguments),s.spreadRest&&this.arguments.length){var v=this.arguments[0];spread(o,this.arguments,v.start,this.argumentsArrayAlias,!0)&&(o.prependRight(this.start+3," (Function.prototype.bind.apply("),o.overwrite(this.callee.end,v.start,", [ null ].concat( "),o.appendLeft(this.end," ))"))}this.arguments.length&&removeTrailingComma(o,this.arguments[this.arguments.length-1].end)},NewExpression}(dp),pf=function(i){function ObjectExpression(){i.apply(this,arguments)}return i&&(ObjectExpression.__proto__=i),ObjectExpression.prototype=Object.create(i&&i.prototype),ObjectExpression.prototype.constructor=ObjectExpression,ObjectExpression.prototype.transpile=function transpile(o,s){var v;i.prototype.transpile.call(this,o,s);for(var _=this.start+1,$=0,ae=0,pe=null,we=null,_e=0;_e0?(o.remove(et.start,tt.properties[0].start),o.remove(tt.properties[tt.properties.length-1].end,et.end),(v=this.properties).splice.apply(v,[_e,1].concat(tt.properties)),_e--):(o.remove(et.start,_e===this.properties.length-1?et.end:this.properties[_e+1].start),this.properties.splice(_e,1),_e--):($+=1,null===pe&&(pe=_e))}else et.computed&&s.computedProperty&&(ae+=1,null===we&&(we=_e))}if(!$||s.objectRestSpread||ae&&s.computedProperty){if($){if(!this.program.options.objectAssign)throw new cp("Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);for(var nt=this.properties.length;nt--;){var rt=this.properties[nt];if("Property"===rt.type&&!ae){var it=this.properties[nt-1],ot=this.properties[nt+1];it&&"Property"===it.type||o.prependRight(rt.start,"{"),ot&&"Property"===ot.type||o.appendLeft(rt.end,"}")}"SpreadElement"===rt.type&&(o.remove(rt.start,rt.argument.start),o.remove(rt.argument.end,rt.end))}_=this.properties[0].start,ae?"SpreadElement"===this.properties[0].type?(o.overwrite(this.start,_,this.program.options.objectAssign+"({}, "),o.remove(this.end-1,this.end),o.appendRight(this.end,")")):(o.prependLeft(this.start,this.program.options.objectAssign+"("),o.appendRight(this.end,")")):(o.overwrite(this.start,_,this.program.options.objectAssign+"({}, "),o.overwrite(this.properties[this.properties.length-1].end,this.end,")"))}}else $=0,pe=null;if(ae&&s.computedProperty){var st,dt,ut=this.getIndentation();"VariableDeclarator"===this.parent.type&&1===this.parent.parent.declarations.length&&"Identifier"===this.parent.id.type?(st=!0,dt=this.parent.id.alias||this.parent.id.name):("AssignmentExpression"===this.parent.type&&"ExpressionStatement"===this.parent.parent.type&&"Identifier"===this.parent.left.type||"AssignmentPattern"===this.parent.type&&"Identifier"===this.parent.left.type)&&(st=!0,dt=this.parent.left.alias||this.parent.left.name),$&&(st=!1),dt=this.findScope(!1).resolveName(dt);var lt=_,ct=this.end;st||(null===pe||weOt&&o.remove(Ot,yt.value.start),o.prependLeft(Ot," = ")):o.overwrite(yt.start,yt.value.start,"["+o.slice(yt.start,yt.key.end)+"] = "),!yt.method||!yt.computed&&s.conciseMethodProperty||(yt.value.generator&&o.remove(yt.start,yt.key.start),o.prependRight(yt.value.start,"function"+(yt.value.generator?"*":"")+" "))}else"SpreadElement"===yt.type?dt&&mt>0&&(ht||(ht=this.properties[mt-1]),o.appendLeft(ht.end,", "+dt+" )"),ht=null,dt=null):(!gt&&$&&(o.prependRight(yt.start,"{"),o.appendLeft(yt.end,"}")),ft=!0);if(gt&&("SpreadElement"===yt.type||yt.computed)){var xt=ft?this.properties[this.properties.length-1].end:this.end-1;","==o.original[xt]&&++xt;var wt=o.slice(xt,ct);o.prependLeft(vt,wt),o.remove(xt,ct),gt=!1}var Ct=yt.end;if(mtthis.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(i)},ReturnStatement.prototype.transpile=function transpile(i,o){var s=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(s&&i.prependRight(this.argument.start,"{ v: "),this.argument.transpile(i,o),s&&i.appendLeft(this.argument.end," }")):s&&i.appendLeft(this.start+6," {}")},ReturnStatement}(dp),Of=function(i){function Super(){i.apply(this,arguments)}return i&&(Super.__proto__=i),Super.prototype=Object.create(i&&i.prototype),Super.prototype.constructor=Super,Super.prototype.initialise=function initialise(i){if(i.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new cp("use of super outside class method",this);var o=this.findNearest("ClassBody").parent;if(this.superClassName=o.superClass&&(o.superClass.name||"superclass"),!this.superClassName)throw new cp("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new cp("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new cp("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(i.arrow){var s=this.findLexicalBoundary(),v=this.findNearest("ArrowFunctionExpression"),_=this.findNearest(Rp);v&&v.depth>s.depth&&(this.thisAlias=s.getThisAlias()),_&&_.body.contains(this)&&_.depth>s.depth&&(this.thisAlias=s.getThisAlias())}},Super.prototype.transpile=function transpile(i,o){if(o.classes){var s=this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype";i.overwrite(this.start,this.end,s,{storeName:!0,contentOnly:!0});var v=this.isCalled?this.parent:this.parent.parent;if(v&&"CallExpression"===v.type){this.noCall||i.appendLeft(v.callee.end,".call");var _=this.thisAlias||"this";v.arguments.length?i.appendLeft(v.arguments[0].start,_+", "):i.appendLeft(v.end-1,""+_)}}},Super}(dp),xf=function(i){function TaggedTemplateExpression(){i.apply(this,arguments)}return i&&(TaggedTemplateExpression.__proto__=i),TaggedTemplateExpression.prototype=Object.create(i&&i.prototype),TaggedTemplateExpression.prototype.constructor=TaggedTemplateExpression,TaggedTemplateExpression.prototype.initialise=function initialise(o){o.templateString&&!o.dangerousTaggedTemplateString&&cp.missingTransform("tagged template strings","templateString",this,"dangerousTaggedTemplateString"),i.prototype.initialise.call(this,o)},TaggedTemplateExpression.prototype.transpile=function transpile(o,s){if(s.templateString&&s.dangerousTaggedTemplateString){var v=this.quasi.expressions.concat(this.quasi.quasis).sort((function(i,o){return i.start-o.start})),_=this.program.body.scope,$=this.quasi.quasis.map((function(i){return JSON.stringify(i.value.cooked)})).join(", "),ae=this.program.templateLiteralQuasis[$];ae||(ae=_.createIdentifier("templateObject"),o.prependLeft(this.program.prependAt,"var "+ae+" = Object.freeze(["+$+"]);\n"),this.program.templateLiteralQuasis[$]=ae),o.overwrite(this.tag.end,v[0].start,"("+ae);var pe=v[0].start;v.forEach((function(i){"TemplateElement"===i.type?o.remove(pe,i.end):o.overwrite(pe,i.start,", "),pe=i.end})),o.overwrite(pe,this.end,")")}i.prototype.transpile.call(this,o,s)},TaggedTemplateExpression}(dp),wf=function(i){function TemplateElement(){i.apply(this,arguments)}return i&&(TemplateElement.__proto__=i),TemplateElement.prototype=Object.create(i&&i.prototype),TemplateElement.prototype.constructor=TemplateElement,TemplateElement.prototype.initialise=function initialise(){this.program.indentExclusionElements.push(this)},TemplateElement}(dp),Cf=function(i){function TemplateLiteral(){i.apply(this,arguments)}return i&&(TemplateLiteral.__proto__=i),TemplateLiteral.prototype=Object.create(i&&i.prototype),TemplateLiteral.prototype.constructor=TemplateLiteral,TemplateLiteral.prototype.transpile=function transpile(o,s){if(i.prototype.transpile.call(this,o,s),s.templateString&&"TaggedTemplateExpression"!==this.parent.type){var v=this.expressions.concat(this.quasis).sort((function(i,o){return i.start-o.start||i.end-o.end})).filter((function(i,o){return"TemplateElement"!==i.type||(!!i.value.raw||!o)}));if(v.length>=3){var _=v[0],$=v[2];"TemplateElement"===_.type&&""===_.value.raw&&"TemplateElement"===$.type&&v.shift()}var ae=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);ae&&o.appendRight(this.start,"(");var pe=this.start;v.forEach((function(i,s){var v=0===s?ae?"(":"":" + ";if("TemplateElement"===i.type)o.overwrite(pe,i.end,v+JSON.stringify(i.value.cooked));else{var _="Identifier"!==i.type;_&&(v+="("),o.remove(pe,i.start),v&&o.prependRight(i.start,v),_&&o.appendLeft(i.end,")")}pe=i.end})),ae&&o.appendLeft(pe,")"),o.overwrite(pe,this.end,"",{contentOnly:!0})}},TemplateLiteral}(dp),_f=function(i){function ThisExpression(){i.apply(this,arguments)}return i&&(ThisExpression.__proto__=i),ThisExpression.prototype=Object.create(i&&i.prototype),ThisExpression.prototype.constructor=ThisExpression,ThisExpression.prototype.initialise=function initialise(i){var o=this.findLexicalBoundary();if(i.letConst)for(var s=this.findNearest(Rp);s&&s.depth>o.depth;)s.thisRefs.push(this),s=s.parent.findNearest(Rp);if(i.arrow){var v=this.findNearest("ArrowFunctionExpression");v&&v.depth>o.depth&&(this.alias=o.getThisAlias())}},ThisExpression.prototype.transpile=function transpile(i){this.alias&&i.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},ThisExpression}(dp),Af=function(i){function UpdateExpression(){i.apply(this,arguments)}return i&&(UpdateExpression.__proto__=i),UpdateExpression.prototype=Object.create(i&&i.prototype),UpdateExpression.prototype.constructor=UpdateExpression,UpdateExpression.prototype.initialise=function initialise(o){if("Identifier"===this.argument.type){var s=this.findScope(!1).findDeclaration(this.argument.name),v=s&&s.node.ancestor(3);v&&"ForStatement"===v.type&&v.body.contains(this)&&(v.reassigned[this.argument.name]=!0)}i.prototype.initialise.call(this,o)},UpdateExpression.prototype.transpile=function transpile(o,s){"Identifier"===this.argument.type&&checkConst(this.argument,this.findScope(!1)),i.prototype.transpile.call(this,o,s)},UpdateExpression}(dp),Df=function(i){function VariableDeclaration(){i.apply(this,arguments)}return i&&(VariableDeclaration.__proto__=i),VariableDeclaration.prototype=Object.create(i&&i.prototype),VariableDeclaration.prototype.constructor=VariableDeclaration,VariableDeclaration.prototype.initialise=function initialise(i){this.scope=this.findScope("var"===this.kind),this.declarations.forEach((function(o){return o.initialise(i)}))},VariableDeclaration.prototype.transpile=function transpile(i,o){var s=this,v=this.getIndentation(),_=this.kind;if(o.letConst&&"var"!==_&&(_="var",i.overwrite(this.start,this.start+this.kind.length,_,{contentOnly:!0,storeName:!0})),o.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var $,ae=this.start;this.declarations.forEach((function(_,pe){if(_.transpile(i,o),"Identifier"===_.id.type)pe>0&&"Identifier"!==s.declarations[pe-1].id.type&&i.overwrite(ae,_.id.start,"var ");else{var we=Rp.test(s.parent.type);0===pe?i.remove(ae,_.id.start):i.overwrite(ae,_.id.start,";\n"+v);var _e="Identifier"===_.init.type&&!_.init.rewritten,et=_e?_.init.alias||_.init.name:_.findScope(!0).createIdentifier("ref");ae=_.start;var tt=[];_e?i.remove(_.id.end,_.end):tt.push((function(o,s,v){i.prependRight(_.id.end,"var "+et),i.appendLeft(_.init.end,""+v),i.move(_.id.end,_.end,o)}));var nt=_.findScope(!1);destructure(i,(function(i){return nt.createIdentifier(i)}),(function(i){var o=i.name;return nt.resolveName(o)}),_.id,et,we,tt);var rt=we?"var ":"",it=we?", ":";\n"+v;tt.forEach((function(i,o){pe===s.declarations.length-1&&o===tt.length-1&&(it=we?"":";"),i(_.start,0===o?rt:"",it)}))}ae=_.end,$="Identifier"!==_.id.type})),$&&this.end>ae&&i.overwrite(ae,this.end,"",{contentOnly:!0})}else this.declarations.forEach((function(s){s.transpile(i,o)}))},VariableDeclaration}(dp),Pf=function(i){function VariableDeclarator(){i.apply(this,arguments)}return i&&(VariableDeclarator.__proto__=i),VariableDeclarator.prototype=Object.create(i&&i.prototype),VariableDeclarator.prototype.constructor=VariableDeclarator,VariableDeclarator.prototype.initialise=function initialise(o){var s=this.parent.kind;"let"===s&&"ForStatement"===this.parent.parent.type&&(s="for.let"),this.parent.scope.addDeclaration(this.id,s),i.prototype.initialise.call(this,o)},VariableDeclarator.prototype.transpile=function transpile(i,o){if(!this.init&&o.letConst&&"var"!==this.parent.kind){var s=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!s||/Function/.test(s.type)||this.isLeftDeclaratorOfLoop()||i.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(i,o),this.init&&this.init.transpile(i,o)},VariableDeclarator.prototype.isLeftDeclaratorOfLoop=function isLeftDeclaratorOfLoop(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},VariableDeclarator}(dp),Tf={ArrayExpression:fp,ArrowFunctionExpression:gp,AssignmentExpression:mp,AwaitExpression:yp,BinaryExpression:vp,BreakStatement:bp,CallExpression:Op,CatchClause:xp,ClassBody:wp,ClassDeclaration:Cp,ClassExpression:Sp,ContinueStatement:_p,DoWhileStatement:Ap,ExportNamedDeclaration:kp,ExportDefaultDeclaration:Ep,ForStatement:Dp,ForInStatement:Pp,ForOfStatement:Tp,FunctionDeclaration:Ip,FunctionExpression:Fp,Identifier:Np,IfStatement:Bp,Import:Lp,ImportDeclaration:jp,ImportDefaultSpecifier:Mp,ImportSpecifier:Qp,JSXAttribute:Vp,JSXClosingElement:Up,JSXClosingFragment:Wp,JSXElement:$p,JSXExpressionContainer:qp,JSXFragment:zp,JSXOpeningElement:Zp,JSXOpeningFragment:Hp,JSXSpreadAttribute:Gp,Literal:Yp,MemberExpression:Kp,NewExpression:Jp,ObjectExpression:pf,Property:ff,ReturnStatement:yf,Super:Of,TaggedTemplateExpression:xf,TemplateElement:wf,TemplateLiteral:Cf,ThisExpression:_f,UpdateExpression:Af,VariableDeclaration:Df,VariableDeclarator:Pf,WhileStatement:Ap},Nf={Program:["body"],Literal:[]},Lf={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function wrap(i,o){if(i)if("length"in i)for(var s=i.length;s--;)wrap(i[s],o);else if(!i.__wrapped){i.__wrapped=!0,Nf[i.type]||(Nf[i.type]=Object.keys(i).filter((function(o){return"object"==typeof i[o]})));var v=Lf[i.type];if(v&&"BlockStatement"!==i[v].type){var _=i[v];i[v]={start:_.start,end:_.end,type:"BlockStatement",body:[_],synthetic:!0}}i.parent=o,i.program=o.program||o,i.depth=o.depth+1,i.keys=Nf[i.type],i.indentation=void 0;for(var $=0,ae=Nf[i.type];$Wf=!0,remove:()=>$f=!0,replace:i=>zf=i},Xf={};function replace(i,o,s,v){i&&(null!==s?i[o][s]=v:i[o]=v)}function remove(i,o,s){i&&(null!==s?i[o].splice(s,1):delete i[o])}function visit(i,o,s,v,_,$){if(i){if(s){const v=Wf,ae=$f,pe=zf;Wf=!1,$f=!1,zf=null,s.call(Zf,i,o,_,$),zf&&replace(o,_,$,i=zf),$f&&remove(o,_,$);const we=Wf,_e=$f;if(Wf=v,$f=ae,zf=pe,we)return i;if(_e)return null}const ae=i.type&&Xf[i.type]||(Xf[i.type]=Object.keys(i).filter((o=>"object"==typeof i[o])));for(let o=0;o1&&(i=o.shift()),{key:i,name:o[0]}}function generate(i,o,s,v){var _,$=o.replace(/\W/g,"_")+"$"+Yf++,ae="const "+alias($).name+" = "+(o=v+"('"+o+"')")+";";return s&&(ae+="\nconst "+s+" = "+$+".default || "+$+";"),i.forEach((function(i){_=alias(i),ae+="\nconst "+_.name+" = "+$+"."+_.key+";"})),ae}var rewriteImports=function(i,o){return void 0===o&&(o="require"),Yf=0,i.replace(dg,(function(i,s,v,_,$){return generate(_?_.split(",").filter((function(i){return i.trim()})):[],$,v,o)})).replace(ag,(function(i,s){return o+"('"+s+"');"}))},mg={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},_g="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",kg={5:_g,"5module":_g+" export import",6:_g+" const class extends export import super"},Dg=/^in(stanceof)?$/,$g="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",_m="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",km=new RegExp("["+$g+"]"),jm=new RegExp("["+$g+_m+"]");$g=_m=null;var ey=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],ty=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function acorn_isInAstralSet(i,o){for(var s=65536,v=0;vi)return!1;if((s+=o[v+1])>=i)return!0}}function acorn_isIdentifierStart(i,o){return i<65?36===i:i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&km.test(String.fromCharCode(i)):!1!==o&&acorn_isInAstralSet(i,ey)))}function acorn_isIdentifierChar(i,o){return i<48?36===i:i<58||!(i<65)&&(i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&jm.test(String.fromCharCode(i)):!1!==o&&(acorn_isInAstralSet(i,ey)||acorn_isInAstralSet(i,ty)))))}var ny=function TokenType(i,o){void 0===o&&(o={}),this.label=i,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop||null,this.updateContext=null};function acorn_binop(i,o){return new ny(i,{beforeExpr:!0,binop:o})}var ay={beforeExpr:!0},ry={startsExpr:!0},iy={};function acorn_kw(i,o){return void 0===o&&(o={}),o.keyword=i,iy[i]=new ny(i,o)}var oy={num:new ny("num",ry),regexp:new ny("regexp",ry),string:new ny("string",ry),name:new ny("name",ry),eof:new ny("eof"),bracketL:new ny("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ny("]"),braceL:new ny("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ny("}"),parenL:new ny("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ny(")"),comma:new ny(",",ay),semi:new ny(";",ay),colon:new ny(":",ay),dot:new ny("."),question:new ny("?",ay),arrow:new ny("=>",ay),template:new ny("template"),invalidTemplate:new ny("invalidTemplate"),ellipsis:new ny("...",ay),backQuote:new ny("`",ry),dollarBraceL:new ny("${",{beforeExpr:!0,startsExpr:!0}),eq:new ny("=",{beforeExpr:!0,isAssign:!0}),assign:new ny("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ny("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ny("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:acorn_binop("||",1),logicalAND:acorn_binop("&&",2),bitwiseOR:acorn_binop("|",3),bitwiseXOR:acorn_binop("^",4),bitwiseAND:acorn_binop("&",5),equality:acorn_binop("==/!=/===/!==",6),relational:acorn_binop("/<=/>=",7),bitShift:acorn_binop("<>/>>>",8),plusMin:new ny("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:acorn_binop("%",10),star:acorn_binop("*",10),slash:acorn_binop("/",10),starstar:new ny("**",{beforeExpr:!0}),_break:acorn_kw("break"),_case:acorn_kw("case",ay),_catch:acorn_kw("catch"),_continue:acorn_kw("continue"),_debugger:acorn_kw("debugger"),_default:acorn_kw("default",ay),_do:acorn_kw("do",{isLoop:!0,beforeExpr:!0}),_else:acorn_kw("else",ay),_finally:acorn_kw("finally"),_for:acorn_kw("for",{isLoop:!0}),_function:acorn_kw("function",ry),_if:acorn_kw("if"),_return:acorn_kw("return",ay),_switch:acorn_kw("switch"),_throw:acorn_kw("throw",ay),_try:acorn_kw("try"),_var:acorn_kw("var"),_const:acorn_kw("const"),_while:acorn_kw("while",{isLoop:!0}),_with:acorn_kw("with"),_new:acorn_kw("new",{beforeExpr:!0,startsExpr:!0}),_this:acorn_kw("this",ry),_super:acorn_kw("super",ry),_class:acorn_kw("class",ry),_extends:acorn_kw("extends",ay),_export:acorn_kw("export"),_import:acorn_kw("import",ry),_null:acorn_kw("null",ry),_true:acorn_kw("true",ry),_false:acorn_kw("false",ry),_in:acorn_kw("in",{beforeExpr:!0,binop:7}),_instanceof:acorn_kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:acorn_kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:acorn_kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:acorn_kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},sy=/\r\n?|\n|\u2028|\u2029/,dy=new RegExp(sy.source,"g");function acorn_isNewLine(i,o){return 10===i||13===i||!o&&(8232===i||8233===i)}var uy=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ly=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,cy=Object.prototype,hy=cy.hasOwnProperty,py=cy.toString;function acorn_has(i,o){return hy.call(i,o)}var fy=Array.isArray||function(i){return"[object Array]"===py.call(i)};function acorn_wordsRegexp(i){return new RegExp("^(?:"+i.replace(/ /g,"|")+")$")}var gy=function Position(i,o){this.line=i,this.column=o};gy.prototype.offset=function offset(i){return new gy(this.line,this.column+i)};var my=function SourceLocation(i,o,s){this.start=o,this.end=s,null!==i.sourceFile&&(this.source=i.sourceFile)};function acorn_getLineInfo(i,o){for(var s=1,v=0;;){dy.lastIndex=v;var _=dy.exec(i);if(!(_&&_.index=2015&&(o.ecmaVersion-=2009),null==o.allowReserved&&(o.allowReserved=o.ecmaVersion<5),fy(o.onToken)){var v=o.onToken;o.onToken=function(i){return v.push(i)}}return fy(o.onComment)&&(o.onComment=acorn_pushComment(o,o.onComment)),o}function acorn_pushComment(i,o){return function(s,v,_,$,ae,pe){var we={type:s?"Block":"Line",value:v,start:_,end:$};i.locations&&(we.loc=new my(this,ae,pe)),i.ranges&&(we.range=[_,$]),o.push(we)}}function acorn_functionFlags(i,o){return 2|(i?4:0)|(o?8:0)}var vy=function Parser(i,o,s){this.options=i=acorn_getOptions(i),this.sourceFile=i.sourceFile,this.keywords=acorn_wordsRegexp(kg[i.ecmaVersion>=6?6:"module"===i.sourceType?"5module":5]);var v="";if(!0!==i.allowReserved){for(var _=i.ecmaVersion;!(v=mg[_]);_--);"module"===i.sourceType&&(v+=" await")}this.reservedWords=acorn_wordsRegexp(v);var $=(v?v+" ":"")+mg.strict;this.reservedWordsStrict=acorn_wordsRegexp($),this.reservedWordsStrictBind=acorn_wordsRegexp($+" "+mg.strictBind),this.input=String(o),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(sy).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=oy.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===i.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&i.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Ry={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};vy.prototype.parse=function parse(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)},Ry.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ry.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ry.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ry.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Ry.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ry.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},vy.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},vy.extend=function extend(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];for(var s=this,v=0;v-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var s=o?i.parenthesizedAssign:i.parenthesizedBind;s>-1&&this.raiseRecoverable(s,"Parenthesized pattern")}},by.checkExpressionErrors=function(i,o){if(!i)return!1;var s=i.shorthandAssign,v=i.doubleProto;if(!o)return s>=0||v>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},by.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement($,!1,!i);case oy._class:return i&&this.unexpected(),this.parseClass($,!0);case oy._if:return this.parseIfStatement($);case oy._return:return this.parseReturnStatement($);case oy._switch:return this.parseSwitchStatement($);case oy._throw:return this.parseThrowStatement($);case oy._try:return this.parseTryStatement($);case oy._const:case oy._var:return v=v||this.value,i&&"var"!==v&&this.unexpected(),this.parseVarStatement($,v);case oy._while:return this.parseWhileStatement($);case oy._with:return this.parseWithStatement($);case oy.braceL:return this.parseBlock(!0,$);case oy.semi:return this.parseEmptyStatement($);case oy._export:case oy._import:if(this.options.ecmaVersion>10&&_===oy._import){ly.lastIndex=this.pos;var ae=ly.exec(this.input),pe=this.pos+ae[0].length;if(40===this.input.charCodeAt(pe))return this.parseExpressionStatement($,this.parseExpression())}return this.options.allowImportExportEverywhere||(o||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===oy._import?this.parseImport($):this.parseExport($,s);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement($,!0,!i);var we=this.value,_e=this.parseExpression();return _===oy.name&&"Identifier"===_e.type&&this.eat(oy.colon)?this.parseLabeledStatement($,we,_e,i):this.parseExpressionStatement($,_e)}},xy.parseBreakContinueStatement=function(i,o){var s="break"===o;this.next(),this.eat(oy.semi)||this.insertSemicolon()?i.label=null:this.type!==oy.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var v=0;v=6?this.eat(oy.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},xy.parseForStatement=function(i){this.next();var o=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(wy),this.enterScope(0),this.expect(oy.parenL),this.type===oy.semi)return o>-1&&this.unexpected(o),this.parseFor(i,null);var s=this.isLet();if(this.type===oy._var||this.type===oy._const||s){var v=this.startNode(),_=s?"let":this.value;return this.next(),this.parseVar(v,!0,_),this.finishNode(v,"VariableDeclaration"),(this.type===oy._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===v.declarations.length?(this.options.ecmaVersion>=9&&(this.type===oy._in?o>-1&&this.unexpected(o):i.await=o>-1),this.parseForIn(i,v)):(o>-1&&this.unexpected(o),this.parseFor(i,v))}var $=new acorn_DestructuringErrors,ae=this.parseExpression(!0,$);return this.type===oy._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===oy._in?o>-1&&this.unexpected(o):i.await=o>-1),this.toAssignable(ae,!1,$),this.checkLVal(ae),this.parseForIn(i,ae)):(this.checkExpressionErrors($,!0),o>-1&&this.unexpected(o),this.parseFor(i,ae))},xy.parseFunctionStatement=function(i,o,s){return this.next(),this.parseFunction(i,_y|(s?0:Ey),!1,o)},xy.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(oy._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},xy.parseReturnStatement=function(i){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(oy.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},xy.parseSwitchStatement=function(i){var o;this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(oy.braceL),this.labels.push(Cy),this.enterScope(0);for(var s=!1;this.type!==oy.braceR;)if(this.type===oy._case||this.type===oy._default){var v=this.type===oy._case;o&&this.finishNode(o,"SwitchCase"),i.cases.push(o=this.startNode()),o.consequent=[],this.next(),v?o.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,o.test=null),this.expect(oy.colon)}else o||this.unexpected(),o.consequent.push(this.parseStatement(null));return this.exitScope(),o&&this.finishNode(o,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},xy.parseThrowStatement=function(i){return this.next(),sy.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var Sy=[];xy.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===oy._catch){var o=this.startNode();if(this.next(),this.eat(oy.parenL)){o.param=this.parseBindingAtom();var s="Identifier"===o.param.type;this.enterScope(s?32:0),this.checkLVal(o.param,s?4:2),this.expect(oy.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),o.param=null,this.enterScope(0);o.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(o,"CatchClause")}return i.finalizer=this.eat(oy._finally)?this.parseBlock():null,i.handler||i.finalizer||this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},xy.parseVarStatement=function(i,o){return this.next(),this.parseVar(i,!1,o),this.semicolon(),this.finishNode(i,"VariableDeclaration")},xy.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(wy),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},xy.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},xy.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},xy.parseLabeledStatement=function(i,o,s,v){for(var _=0,$=this.labels;_<$.length;_+=1){$[_].name===o&&this.raise(s.start,"Label '"+o+"' is already declared")}for(var ae=this.type.isLoop?"loop":this.type===oy._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var we=this.labels[pe];if(we.statementStart!==i.start)break;we.statementStart=this.start,we.kind=ae}return this.labels.push({name:o,kind:ae,statementStart:this.start}),i.body=this.parseStatement(v?-1===v.indexOf("label")?v+"label":v:"label"),this.labels.pop(),i.label=s,this.finishNode(i,"LabeledStatement")},xy.parseExpressionStatement=function(i,o){return i.expression=o,this.semicolon(),this.finishNode(i,"ExpressionStatement")},xy.parseBlock=function(i,o){for(void 0===i&&(i=!0),void 0===o&&(o=this.startNode()),o.body=[],this.expect(oy.braceL),i&&this.enterScope(0);!this.eat(oy.braceR);){var s=this.parseStatement(null);o.body.push(s)}return i&&this.exitScope(),this.finishNode(o,"BlockStatement")},xy.parseFor=function(i,o){return i.init=o,this.expect(oy.semi),i.test=this.type===oy.semi?null:this.parseExpression(),this.expect(oy.semi),i.update=this.type===oy.parenR?null:this.parseExpression(),this.expect(oy.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},xy.parseForIn=function(i,o){var s=this.type===oy._in;return this.next(),"VariableDeclaration"===o.type&&null!=o.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==o.kind||"Identifier"!==o.declarations[0].id.type)?this.raise(o.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===o.type&&this.raise(o.start,"Invalid left-hand side in for-loop"),i.left=o,i.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(oy.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,s?"ForInStatement":"ForOfStatement")},xy.parseVar=function(i,o,s){for(i.declarations=[],i.kind=s;;){var v=this.startNode();if(this.parseVarId(v,s),this.eat(oy.eq)?v.init=this.parseMaybeAssign(o):"const"!==s||this.type===oy._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===v.id.type||o&&(this.type===oy._in||this.isContextual("of"))?v.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(oy.comma))break}return i},xy.parseVarId=function(i,o){i.id=this.parseBindingAtom(),this.checkLVal(i.id,"var"===o?1:2,!1)};var _y=1,Ey=2;xy.parseFunction=function(i,o,s,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===oy.star&&o&Ey&&this.unexpected(),i.generator=this.eat(oy.star)),this.options.ecmaVersion>=8&&(i.async=!!v),o&_y&&(i.id=4&o&&this.type!==oy.name?null:this.parseIdent(),!i.id||o&Ey||this.checkLVal(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?1:2:3));var _=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(acorn_functionFlags(i.async,i.generator)),o&_y||(i.id=this.type===oy.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,s,!1),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(i,o&_y?"FunctionDeclaration":"FunctionExpression")},xy.parseFunctionParams=function(i){this.expect(oy.parenL),i.params=this.parseBindingList(oy.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},xy.parseClass=function(i,o){this.next();var s=this.strict;this.strict=!0,this.parseClassId(i,o),this.parseClassSuper(i);var v=this.startNode(),_=!1;for(v.body=[],this.expect(oy.braceL);!this.eat(oy.braceR);){var $=this.parseClassElement(null!==i.superClass);$&&(v.body.push($),"MethodDefinition"===$.type&&"constructor"===$.kind&&(_&&this.raise($.start,"Duplicate constructor in the same class"),_=!0))}return i.body=this.finishNode(v,"ClassBody"),this.strict=s,this.finishNode(i,o?"ClassDeclaration":"ClassExpression")},xy.parseClassElement=function(i){var o=this;if(this.eat(oy.semi))return null;var s=this.startNode(),tryContextual=function(i,v){void 0===v&&(v=!1);var _=o.start,$=o.startLoc;return!!o.eatContextual(i)&&(!(o.type===oy.parenL||v&&o.canInsertSemicolon())||(s.key&&o.unexpected(),s.computed=!1,s.key=o.startNodeAt(_,$),s.key.name=i,o.finishNode(s.key,"Identifier"),!1))};s.kind="method",s.static=tryContextual("static");var v=this.eat(oy.star),_=!1;v||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(_=!0,v=this.options.ecmaVersion>=9&&this.eat(oy.star)):tryContextual("get")?s.kind="get":tryContextual("set")&&(s.kind="set")),s.key||this.parsePropertyName(s);var $=s.key,ae=!1;return s.computed||s.static||!("Identifier"===$.type&&"constructor"===$.name||"Literal"===$.type&&"constructor"===$.value)?s.static&&"Identifier"===$.type&&"prototype"===$.name&&this.raise($.start,"Classes may not have a static property named prototype"):("method"!==s.kind&&this.raise($.start,"Constructor can't have get/set modifier"),v&&this.raise($.start,"Constructor can't be a generator"),_&&this.raise($.start,"Constructor can't be an async method"),s.kind="constructor",ae=i),this.parseClassMethod(s,v,_,ae),"get"===s.kind&&0!==s.value.params.length&&this.raiseRecoverable(s.value.start,"getter should have no params"),"set"===s.kind&&1!==s.value.params.length&&this.raiseRecoverable(s.value.start,"setter should have exactly one param"),"set"===s.kind&&"RestElement"===s.value.params[0].type&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params"),s},xy.parseClassMethod=function(i,o,s,v){return i.value=this.parseMethod(o,s,v),this.finishNode(i,"MethodDefinition")},xy.parseClassId=function(i,o){this.type===oy.name?(i.id=this.parseIdent(),o&&this.checkLVal(i.id,2,!1)):(!0===o&&this.unexpected(),i.id=null)},xy.parseClassSuper=function(i){i.superClass=this.eat(oy._extends)?this.parseExprSubscripts():null},xy.parseExport=function(i,o){if(this.next(),this.eat(oy.star))return this.expectContextual("from"),this.type!==oy.string&&this.unexpected(),i.source=this.parseExprAtom(),this.semicolon(),this.finishNode(i,"ExportAllDeclaration");if(this.eat(oy._default)){var s;if(this.checkExport(o,"default",this.lastTokStart),this.type===oy._function||(s=this.isAsyncFunction())){var v=this.startNode();this.next(),s&&this.next(),i.declaration=this.parseFunction(v,4|_y,!1,s)}else if(this.type===oy._class){var _=this.startNode();i.declaration=this.parseClass(_,"nullableID")}else i.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(i,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())i.declaration=this.parseStatement(null),"VariableDeclaration"===i.declaration.type?this.checkVariableExport(o,i.declaration.declarations):this.checkExport(o,i.declaration.id.name,i.declaration.id.start),i.specifiers=[],i.source=null;else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(o),this.eatContextual("from"))this.type!==oy.string&&this.unexpected(),i.source=this.parseExprAtom();else{for(var $=0,ae=i.specifiers;$=6&&i)switch(i.type){case"Identifier":this.inAsync&&"await"===i.name&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.toAssignable($,o),"RestElement"!==$.type||"ArrayPattern"!==$.argument.type&&"ObjectPattern"!==$.argument.type||this.raise($.argument.start,"Unexpected token")}break;case"Property":"init"!==i.kind&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,o);break;case"ArrayExpression":i.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(i.elements,o);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,o),"AssignmentPattern"===i.argument.type&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==i.operator&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,o);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(i.expression,o,s);break;case"MemberExpression":if(!o)break;default:this.raise(i.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return i},ky.toAssignableList=function(i,o){for(var s=i.length,v=0;v=6)switch(this.type){case oy.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(oy.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case oy.braceL:return this.parseObj(!0)}return this.parseIdent()},ky.parseBindingList=function(i,o,s){for(var v=[],_=!0;!this.eat(i);)if(_?_=!1:this.expect(oy.comma),o&&this.type===oy.comma)v.push(null);else{if(s&&this.afterTrailingComma(i))break;if(this.type===oy.ellipsis){var $=this.parseRestBinding();this.parseBindingListItem($),v.push($),this.type===oy.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}var ae=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(ae),v.push(ae)}return v},ky.parseBindingListItem=function(i){return i},ky.parseMaybeDefault=function(i,o,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(oy.eq))return s;var v=this.startNodeAt(i,o);return v.left=s,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},ky.checkLVal=function(i,o,s){switch(void 0===o&&(o=0),i.type){case"Identifier":2===o&&"let"===i.name&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(o?"Binding ":"Assigning to ")+i.name+" in strict mode"),s&&(acorn_has(s,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),s[i.name]=!0),0!==o&&5!==o&&this.declareName(i.name,o,i.start);break;case"MemberExpression":o&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ObjectPattern":for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.checkLVal($,o,s)}break;case"Property":this.checkLVal(i.value,o,s);break;case"ArrayPattern":for(var ae=0,pe=i.elements;ae=9&&"SpreadElement"===i.type||this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var v,_=i.key;switch(_.type){case"Identifier":v=_.name;break;case"Literal":v=String(_.value);break;default:return}var $=i.kind;if(this.options.ecmaVersion>=6)"__proto__"===v&&"init"===$&&(o.proto&&(s&&s.doubleProto<0?s.doubleProto=_.start:this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),o.proto=!0);else{var ae=o[v="$"+v];if(ae)("init"===$?this.strict&&ae.init||ae.get||ae.set:ae.init||ae[$])&&this.raiseRecoverable(_.start,"Redefinition of property");else ae=o[v]={init:!1,get:!1,set:!1};ae[$]=!0}}},Ay.parseExpression=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeAssign(i,o);if(this.type===oy.comma){var $=this.startNodeAt(s,v);for($.expressions=[_];this.eat(oy.comma);)$.expressions.push(this.parseMaybeAssign(i,o));return this.finishNode($,"SequenceExpression")}return _},Ay.parseMaybeAssign=function(i,o,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var v=!1,_=-1,$=-1,ae=-1;o?(_=o.parenthesizedAssign,$=o.trailingComma,ae=o.shorthandAssign,o.parenthesizedAssign=o.trailingComma=o.shorthandAssign=-1):(o=new acorn_DestructuringErrors,v=!0);var pe=this.start,we=this.startLoc;this.type!==oy.parenL&&this.type!==oy.name||(this.potentialArrowAt=this.start);var _e=this.parseMaybeConditional(i,o);if(s&&(_e=s.call(this,_e,pe,we)),this.type.isAssign){var et=this.startNodeAt(pe,we);return et.operator=this.value,et.left=this.type===oy.eq?this.toAssignable(_e,!1,o):_e,v||acorn_DestructuringErrors.call(o),o.shorthandAssign=-1,this.checkLVal(_e),this.next(),et.right=this.parseMaybeAssign(i),this.finishNode(et,"AssignmentExpression")}return v&&this.checkExpressionErrors(o,!0),_>-1&&(o.parenthesizedAssign=_),$>-1&&(o.trailingComma=$),ae>-1&&(o.shorthandAssign=ae),_e},Ay.parseMaybeConditional=function(i,o){var s=this.start,v=this.startLoc,_=this.parseExprOps(i,o);if(this.checkExpressionErrors(o))return _;if(this.eat(oy.question)){var $=this.startNodeAt(s,v);return $.test=_,$.consequent=this.parseMaybeAssign(),this.expect(oy.colon),$.alternate=this.parseMaybeAssign(i),this.finishNode($,"ConditionalExpression")}return _},Ay.parseExprOps=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeUnary(o,!1);return this.checkExpressionErrors(o)||_.start===s&&"ArrowFunctionExpression"===_.type?_:this.parseExprOp(_,s,v,-1,i)},Ay.parseExprOp=function(i,o,s,v,_){var $=this.type.binop;if(null!=$&&(!_||this.type!==oy._in)&&$>v){var ae=this.type===oy.logicalOR||this.type===oy.logicalAND,pe=this.value;this.next();var we=this.start,_e=this.startLoc,et=this.parseExprOp(this.parseMaybeUnary(null,!1),we,_e,$,_),tt=this.buildBinary(o,s,i,et,pe,ae);return this.parseExprOp(tt,o,s,v,_)}return i},Ay.buildBinary=function(i,o,s,v,_,$){var ae=this.startNodeAt(i,o);return ae.left=s,ae.operator=_,ae.right=v,this.finishNode(ae,$?"LogicalExpression":"BinaryExpression")},Ay.parseMaybeUnary=function(i,o){var s,v=this.start,_=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))s=this.parseAwait(),o=!0;else if(this.type.prefix){var $=this.startNode(),ae=this.type===oy.incDec;$.operator=this.value,$.prefix=!0,this.next(),$.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(i,!0),ae?this.checkLVal($.argument):this.strict&&"delete"===$.operator&&"Identifier"===$.argument.type?this.raiseRecoverable($.start,"Deleting local variable in strict mode"):o=!0,s=this.finishNode($,ae?"UpdateExpression":"UnaryExpression")}else{if(s=this.parseExprSubscripts(i),this.checkExpressionErrors(i))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var pe=this.startNodeAt(v,_);pe.operator=this.value,pe.prefix=!1,pe.argument=s,this.checkLVal(s),this.next(),s=this.finishNode(pe,"UpdateExpression")}}return!o&&this.eat(oy.starstar)?this.buildBinary(v,_,s,this.parseMaybeUnary(null,!1),"**",!1):s},Ay.parseExprSubscripts=function(i){var o=this.start,s=this.startLoc,v=this.parseExprAtom(i),_="ArrowFunctionExpression"===v.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(i)||_)return v;var $=this.parseSubscripts(v,o,s);return i&&"MemberExpression"===$.type&&(i.parenthesizedAssign>=$.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=$.start&&(i.parenthesizedBind=-1)),$},Ay.parseSubscripts=function(i,o,s,v){for(var _=this.options.ecmaVersion>=8&&"Identifier"===i.type&&"async"===i.name&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(i.start,i.end);;){var $=this.parseSubscript(i,o,s,v,_);if($===i||"ArrowFunctionExpression"===$.type)return $;i=$}},Ay.parseSubscript=function(i,o,s,v,_){var $=this.eat(oy.bracketL);if($||this.eat(oy.dot)){var ae=this.startNodeAt(o,s);ae.object=i,ae.property=$?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),ae.computed=!!$,$&&this.expect(oy.bracketR),i=this.finishNode(ae,"MemberExpression")}else if(!v&&this.eat(oy.parenL)){var pe=new acorn_DestructuringErrors,we=this.yieldPos,_e=this.awaitPos,et=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var tt=this.parseExprList(oy.parenR,this.options.ecmaVersion>=8&&"Import"!==i.type,!1,pe);if(_&&!this.canInsertSemicolon()&&this.eat(oy.arrow))return this.checkPatternErrors(pe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=we,this.awaitPos=_e,this.awaitIdentPos=et,this.parseArrowExpression(this.startNodeAt(o,s),tt,!0);this.checkExpressionErrors(pe,!0),this.yieldPos=we||this.yieldPos,this.awaitPos=_e||this.awaitPos,this.awaitIdentPos=et||this.awaitIdentPos;var nt=this.startNodeAt(o,s);if(nt.callee=i,nt.arguments=tt,"Import"===nt.callee.type){1!==nt.arguments.length&&this.raise(nt.start,"import() requires exactly one argument");var rt=nt.arguments[0];rt&&"SpreadElement"===rt.type&&this.raise(rt.start,"... is not allowed in import()")}i=this.finishNode(nt,"CallExpression")}else if(this.type===oy.backQuote){var it=this.startNodeAt(o,s);it.tag=i,it.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(it,"TaggedTemplateExpression")}return i},Ay.parseExprAtom=function(i){this.type===oy.slash&&this.readRegexp();var o,s=this.potentialArrowAt===this.start;switch(this.type){case oy._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),o=this.startNode(),this.next(),this.type!==oy.parenL||this.allowDirectSuper||this.raise(o.start,"super() call outside constructor of a subclass"),this.type!==oy.dot&&this.type!==oy.bracketL&&this.type!==oy.parenL&&this.unexpected(),this.finishNode(o,"Super");case oy._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case oy.name:var v=this.start,_=this.startLoc,$=this.containsEsc,ae=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!$&&"async"===ae.name&&!this.canInsertSemicolon()&&this.eat(oy._function))return this.parseFunction(this.startNodeAt(v,_),0,!1,!0);if(s&&!this.canInsertSemicolon()){if(this.eat(oy.arrow))return this.parseArrowExpression(this.startNodeAt(v,_),[ae],!1);if(this.options.ecmaVersion>=8&&"async"===ae.name&&this.type===oy.name&&!$)return ae=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(oy.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,_),[ae],!0)}return ae;case oy.regexp:var pe=this.value;return(o=this.parseLiteral(pe.value)).regex={pattern:pe.pattern,flags:pe.flags},o;case oy.num:case oy.string:return this.parseLiteral(this.value);case oy._null:case oy._true:case oy._false:return(o=this.startNode()).value=this.type===oy._null?null:this.type===oy._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case oy.parenL:var we=this.start,_e=this.parseParenAndDistinguishExpression(s);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_e)&&(i.parenthesizedAssign=we),i.parenthesizedBind<0&&(i.parenthesizedBind=we)),_e;case oy.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(oy.bracketR,!0,!0,i),this.finishNode(o,"ArrayExpression");case oy.braceL:return this.parseObj(!1,i);case oy._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case oy._class:return this.parseClass(this.startNode(),!1);case oy._new:return this.parseNew();case oy.backQuote:return this.parseTemplate();case oy._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Ay.parseDynamicImport=function(){var i=this.startNode();return this.next(),this.type!==oy.parenL&&this.unexpected(),this.finishNode(i,"Import")},Ay.parseLiteral=function(i){var o=this.startNode();return o.value=i,o.raw=this.input.slice(this.start,this.end),110===o.raw.charCodeAt(o.raw.length-1)&&(o.bigint=o.raw.slice(0,-1)),this.next(),this.finishNode(o,"Literal")},Ay.parseParenExpression=function(){this.expect(oy.parenL);var i=this.parseExpression();return this.expect(oy.parenR),i},Ay.parseParenAndDistinguishExpression=function(i){var o,s=this.start,v=this.startLoc,_=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $,ae=this.start,pe=this.startLoc,we=[],_e=!0,et=!1,tt=new acorn_DestructuringErrors,nt=this.yieldPos,rt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==oy.parenR;){if(_e?_e=!1:this.expect(oy.comma),_&&this.afterTrailingComma(oy.parenR,!0)){et=!0;break}if(this.type===oy.ellipsis){$=this.start,we.push(this.parseParenItem(this.parseRestBinding())),this.type===oy.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}we.push(this.parseMaybeAssign(!1,tt,this.parseParenItem))}var it=this.start,ot=this.startLoc;if(this.expect(oy.parenR),i&&!this.canInsertSemicolon()&&this.eat(oy.arrow))return this.checkPatternErrors(tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nt,this.awaitPos=rt,this.parseParenArrowList(s,v,we);we.length&&!et||this.unexpected(this.lastTokStart),$&&this.unexpected($),this.checkExpressionErrors(tt,!0),this.yieldPos=nt||this.yieldPos,this.awaitPos=rt||this.awaitPos,we.length>1?((o=this.startNodeAt(ae,pe)).expressions=we,this.finishNodeAt(o,"SequenceExpression",it,ot)):o=we[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var st=this.startNodeAt(s,v);return st.expression=o,this.finishNode(st,"ParenthesizedExpression")}return o},Ay.parseParenItem=function(i){return i},Ay.parseParenArrowList=function(i,o,s){return this.parseArrowExpression(this.startNodeAt(i,o),s)};var Dy=[];Ay.parseNew=function(){var i=this.startNode(),o=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(oy.dot)){i.meta=o;var s=this.containsEsc;return i.property=this.parseIdent(!0),("target"!==i.property.name||s)&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(i.start,"new.target can only be used in functions"),this.finishNode(i,"MetaProperty")}var v=this.start,_=this.startLoc;return i.callee=this.parseSubscripts(this.parseExprAtom(),v,_,!0),this.options.ecmaVersion>10&&"Import"===i.callee.type&&this.raise(i.callee.start,"Cannot use new with import(...)"),this.eat(oy.parenL)?i.arguments=this.parseExprList(oy.parenR,this.options.ecmaVersion>=8&&"Import"!==i.callee.type,!1):i.arguments=Dy,this.finishNode(i,"NewExpression")},Ay.parseTemplateElement=function(i){var o=i.isTagged,s=this.startNode();return this.type===oy.invalidTemplate?(o||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===oy.backQuote,this.finishNode(s,"TemplateElement")},Ay.parseTemplate=function(i){void 0===i&&(i={});var o=i.isTagged;void 0===o&&(o=!1);var s=this.startNode();this.next(),s.expressions=[];var v=this.parseTemplateElement({isTagged:o});for(s.quasis=[v];!v.tail;)this.type===oy.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(oy.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(oy.braceR),s.quasis.push(v=this.parseTemplateElement({isTagged:o}));return this.next(),this.finishNode(s,"TemplateLiteral")},Ay.isAsyncProp=function(i){return!i.computed&&"Identifier"===i.key.type&&"async"===i.key.name&&(this.type===oy.name||this.type===oy.num||this.type===oy.string||this.type===oy.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===oy.star)&&!sy.test(this.input.slice(this.lastTokEnd,this.start))},Ay.parseObj=function(i,o){var s=this.startNode(),v=!0,_={};for(s.properties=[],this.next();!this.eat(oy.braceR);){if(v)v=!1;else if(this.expect(oy.comma),this.afterTrailingComma(oy.braceR))break;var $=this.parseProperty(i,o);i||this.checkPropClash($,_,o),s.properties.push($)}return this.finishNode(s,i?"ObjectPattern":"ObjectExpression")},Ay.parseProperty=function(i,o){var s,v,_,$,ae=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(oy.ellipsis))return i?(ae.argument=this.parseIdent(!1),this.type===oy.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(ae,"RestElement")):(this.type===oy.parenL&&o&&(o.parenthesizedAssign<0&&(o.parenthesizedAssign=this.start),o.parenthesizedBind<0&&(o.parenthesizedBind=this.start)),ae.argument=this.parseMaybeAssign(!1,o),this.type===oy.comma&&o&&o.trailingComma<0&&(o.trailingComma=this.start),this.finishNode(ae,"SpreadElement"));this.options.ecmaVersion>=6&&(ae.method=!1,ae.shorthand=!1,(i||o)&&(_=this.start,$=this.startLoc),i||(s=this.eat(oy.star)));var pe=this.containsEsc;return this.parsePropertyName(ae),!i&&!pe&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(ae)?(v=!0,s=this.options.ecmaVersion>=9&&this.eat(oy.star),this.parsePropertyName(ae,o)):v=!1,this.parsePropertyValue(ae,i,s,v,_,$,o,pe),this.finishNode(ae,"Property")},Ay.parsePropertyValue=function(i,o,s,v,_,$,ae,pe){if((s||v)&&this.type===oy.colon&&this.unexpected(),this.eat(oy.colon))i.value=o?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,ae),i.kind="init";else if(this.options.ecmaVersion>=6&&this.type===oy.parenL)o&&this.unexpected(),i.kind="init",i.method=!0,i.value=this.parseMethod(s,v);else if(o||pe||!(this.options.ecmaVersion>=5)||i.computed||"Identifier"!==i.key.type||"get"!==i.key.name&&"set"!==i.key.name||this.type===oy.comma||this.type===oy.braceR)this.options.ecmaVersion>=6&&!i.computed&&"Identifier"===i.key.type?((s||v)&&this.unexpected(),this.checkUnreserved(i.key),"await"!==i.key.name||this.awaitIdentPos||(this.awaitIdentPos=_),i.kind="init",o?i.value=this.parseMaybeDefault(_,$,i.key):this.type===oy.eq&&ae?(ae.shorthandAssign<0&&(ae.shorthandAssign=this.start),i.value=this.parseMaybeDefault(_,$,i.key)):i.value=i.key,i.shorthand=!0):this.unexpected();else{(s||v)&&this.unexpected(),i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);var we="get"===i.kind?0:1;if(i.value.params.length!==we){var _e=i.value.start;"get"===i.kind?this.raiseRecoverable(_e,"getter should have no params"):this.raiseRecoverable(_e,"setter should have exactly one param")}else"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}},Ay.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(oy.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(oy.bracketR),i.key;i.computed=!1}return i.key=this.type===oy.num||this.type===oy.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Ay.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},Ay.parseMethod=function(i,o,s){var v=this.startNode(),_=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.initFunction(v),this.options.ecmaVersion>=6&&(v.generator=i),this.options.ecmaVersion>=8&&(v.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|acorn_functionFlags(o,v.generator)|(s?128:0)),this.expect(oy.parenL),v.params=this.parseBindingList(oy.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(v,!1,!0),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(v,"FunctionExpression")},Ay.parseArrowExpression=function(i,o,s){var v=this.yieldPos,_=this.awaitPos,$=this.awaitIdentPos;return this.enterScope(16|acorn_functionFlags(s,!1)),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(o,!0),this.parseFunctionBody(i,!0,!1),this.yieldPos=v,this.awaitPos=_,this.awaitIdentPos=$,this.finishNode(i,"ArrowFunctionExpression")},Ay.parseFunctionBody=function(i,o,s){var v=o&&this.type!==oy.braceL,_=this.strict,$=!1;if(v)i.body=this.parseMaybeAssign(),i.expression=!0,this.checkParams(i,!1);else{var ae=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);_&&!ae||($=this.strictDirective(this.end))&&ae&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list");var pe=this.labels;this.labels=[],$&&(this.strict=!0),this.checkParams(i,!_&&!$&&!o&&!s&&this.isSimpleParamList(i.params)),i.body=this.parseBlock(!1),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=pe}this.exitScope(),this.strict&&i.id&&this.checkLVal(i.id,5),this.strict=_},Ay.isSimpleParamList=function(i){for(var o=0,s=i;o-1||_.functions.indexOf(i)>-1||_.var.indexOf(i)>-1,_.lexical.push(i),this.inModule&&1&_.flags&&delete this.undefinedExports[i]}else if(4===o){this.currentScope().lexical.push(i)}else if(3===o){var $=this.currentScope();v=this.treatFunctionsAsVar?$.lexical.indexOf(i)>-1:$.lexical.indexOf(i)>-1||$.var.indexOf(i)>-1,$.functions.push(i)}else for(var ae=this.scopeStack.length-1;ae>=0;--ae){var pe=this.scopeStack[ae];if(pe.lexical.indexOf(i)>-1&&!(32&pe.flags&&pe.lexical[0]===i)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(i)>-1){v=!0;break}if(pe.var.push(i),this.inModule&&1&pe.flags&&delete this.undefinedExports[i],3&pe.flags)break}v&&this.raiseRecoverable(s,"Identifier '"+i+"' has already been declared")},Ty.checkLocalExport=function(i){-1===this.scopeStack[0].lexical.indexOf(i.name)&&-1===this.scopeStack[0].var.indexOf(i.name)&&(this.undefinedExports[i.name]=i)},Ty.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ty.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags)return o}},Ty.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags&&!(16&o.flags))return o}};var Fy=function Node(i,o,s){this.type="",this.start=o,this.end=0,i.options.locations&&(this.loc=new my(i,s)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[o,0])},Ny=vy.prototype;function acorn_finishNodeAt(i,o,s,v){return i.type=o,i.end=s,this.options.locations&&(i.loc.end=v),this.options.ranges&&(i.range[1]=s),i}Ny.startNode=function(){return new Fy(this,this.start,this.startLoc)},Ny.startNodeAt=function(i,o){return new Fy(this,i,o)},Ny.finishNode=function(i,o){return acorn_finishNodeAt.call(this,i,o,this.lastTokEnd,this.lastTokEndLoc)},Ny.finishNodeAt=function(i,o,s,v){return acorn_finishNodeAt.call(this,i,o,s,v)};var By=function TokContext(i,o,s,v,_){this.token=i,this.isExpr=!!o,this.preserveSpace=!!s,this.override=v,this.generator=!!_},Ly={b_stat:new By("{",!1),b_expr:new By("{",!0),b_tmpl:new By("${",!1),p_stat:new By("(",!1),p_expr:new By("(",!0),q_tmpl:new By("`",!0,!0,(function(i){return i.tryReadTemplateToken()})),f_stat:new By("function",!1),f_expr:new By("function",!0),f_expr_gen:new By("function",!0,!1,null,!0),f_gen:new By("function",!1,!1,null,!0)},jy=vy.prototype;jy.initialContext=function(){return[Ly.b_stat]},jy.braceIsBlock=function(i){var o=this.curContext();return o===Ly.f_expr||o===Ly.f_stat||(i!==oy.colon||o!==Ly.b_stat&&o!==Ly.b_expr?i===oy._return||i===oy.name&&this.exprAllowed?sy.test(this.input.slice(this.lastTokEnd,this.start)):i===oy._else||i===oy.semi||i===oy.eof||i===oy.parenR||i===oy.arrow||(i===oy.braceL?o===Ly.b_stat:i!==oy._var&&i!==oy._const&&i!==oy.name&&!this.exprAllowed):!o.isExpr)},jy.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var o=this.context[i];if("function"===o.token)return o.generator}return!1},jy.updateContext=function(i){var o,s=this.type;s.keyword&&i===oy.dot?this.exprAllowed=!1:(o=s.updateContext)?o.call(this,i):this.exprAllowed=s.beforeExpr},oy.parenR.updateContext=oy.braceR.updateContext=function(){if(1!==this.context.length){var i=this.context.pop();i===Ly.b_stat&&"function"===this.curContext().token&&(i=this.context.pop()),this.exprAllowed=!i.isExpr}else this.exprAllowed=!0},oy.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?Ly.b_stat:Ly.b_expr),this.exprAllowed=!0},oy.dollarBraceL.updateContext=function(){this.context.push(Ly.b_tmpl),this.exprAllowed=!0},oy.parenL.updateContext=function(i){var o=i===oy._if||i===oy._for||i===oy._with||i===oy._while;this.context.push(o?Ly.p_stat:Ly.p_expr),this.exprAllowed=!0},oy.incDec.updateContext=function(){},oy._function.updateContext=oy._class.updateContext=function(i){!i.beforeExpr||i===oy.semi||i===oy._else||i===oy._return&&sy.test(this.input.slice(this.lastTokEnd,this.start))||(i===oy.colon||i===oy.braceL)&&this.curContext()===Ly.b_stat?this.context.push(Ly.f_stat):this.context.push(Ly.f_expr),this.exprAllowed=!1},oy.backQuote.updateContext=function(){this.curContext()===Ly.q_tmpl?this.context.pop():this.context.push(Ly.q_tmpl),this.exprAllowed=!1},oy.star.updateContext=function(i){if(i===oy._function){var o=this.context.length-1;this.context[o]===Ly.f_expr?this.context[o]=Ly.f_expr_gen:this.context[o]=Ly.f_gen}this.exprAllowed=!0},oy.name.updateContext=function(i){var o=!1;this.options.ecmaVersion>=6&&i!==oy.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(o=!0),this.exprAllowed=o};var My="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Qy=My+" Extended_Pictographic",Vy={9:My,10:Qy,11:Qy},Uy="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Wy="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",$y=Wy+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",qy={9:Wy,10:$y,11:$y+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},zy={};function acorn_buildUnicodeData(i){var o=zy[i]={binary:acorn_wordsRegexp(Vy[i]+" "+Uy),nonBinary:{General_Category:acorn_wordsRegexp(Uy),Script:acorn_wordsRegexp(qy[i])}};o.nonBinary.Script_Extensions=o.nonBinary.Script,o.nonBinary.gc=o.nonBinary.General_Category,o.nonBinary.sc=o.nonBinary.Script,o.nonBinary.scx=o.nonBinary.Script_Extensions}acorn_buildUnicodeData(9),acorn_buildUnicodeData(10),acorn_buildUnicodeData(11);var Zy=vy.prototype,Hy=function RegExpValidationState(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":""),this.unicodeProperties=zy[i.options.ecmaVersion>=11?11:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function acorn_codePointToString(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function acorn_isSyntaxCharacter(i){return 36===i||i>=40&&i<=43||46===i||63===i||i>=91&&i<=94||i>=123&&i<=125}function acorn_isRegExpIdentifierStart(i){return acorn_isIdentifierStart(i,!0)||36===i||95===i}function acorn_isRegExpIdentifierPart(i){return acorn_isIdentifierChar(i,!0)||36===i||95===i||8204===i||8205===i}function acorn_isControlLetter(i){return i>=65&&i<=90||i>=97&&i<=122}function acorn_isCharacterClassEscape(i){return 100===i||68===i||115===i||83===i||119===i||87===i}function acorn_isUnicodePropertyNameCharacter(i){return acorn_isControlLetter(i)||95===i}function acorn_isUnicodePropertyValueCharacter(i){return acorn_isUnicodePropertyNameCharacter(i)||acorn_isDecimalDigit(i)}function acorn_isDecimalDigit(i){return i>=48&&i<=57}function acorn_isHexDigit(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function acorn_hexToInt(i){return i>=65&&i<=70?i-65+10:i>=97&&i<=102?i-97+10:i-48}function acorn_isOctalDigit(i){return i>=48&&i<=55}Hy.prototype.reset=function reset(i,o,s){var v=-1!==s.indexOf("u");this.start=0|i,this.source=o+"",this.flags=s,this.switchU=v&&this.parser.options.ecmaVersion>=6,this.switchN=v&&this.parser.options.ecmaVersion>=9},Hy.prototype.raise=function raise(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)},Hy.prototype.at=function at(i){var o=this.source,s=o.length;if(i>=s)return-1;var v=o.charCodeAt(i);if(!this.switchU||v<=55295||v>=57344||i+1>=s)return v;var _=o.charCodeAt(i+1);return _>=56320&&_<=57343?(v<<10)+_-56613888:v},Hy.prototype.nextIndex=function nextIndex(i){var o=this.source,s=o.length;if(i>=s)return s;var v,_=o.charCodeAt(i);return!this.switchU||_<=55295||_>=57344||i+1>=s||(v=o.charCodeAt(i+1))<56320||v>57343?i+1:i+2},Hy.prototype.current=function current(){return this.at(this.pos)},Hy.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},Hy.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},Hy.prototype.eat=function eat(i){return this.current()===i&&(this.advance(),!0)},Zy.validateRegExpFlags=function(i){for(var o=i.validFlags,s=i.flags,v=0;v-1&&this.raise(i.start,"Duplicate regular expression flag")}},Zy.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&i.groupNames.length>0&&(i.switchN=!0,this.regexp_pattern(i))},Zy.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames.length=0,i.backReferenceNames.length=0,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var o=0,s=i.backReferenceNames;o=9&&(s=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!s,!0}return i.pos=o,!1},Zy.regexp_eatQuantifier=function(i,o){return void 0===o&&(o=!1),!!this.regexp_eatQuantifierPrefix(i,o)&&(i.eat(63),!0)},Zy.regexp_eatQuantifierPrefix=function(i,o){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,o)},Zy.regexp_eatBracedQuantifier=function(i,o){var s=i.pos;if(i.eat(123)){var v=0,_=-1;if(this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(_=i.lastIntValue),i.eat(125)))return-1!==_&&_=9?this.regexp_groupSpecifier(i):63===i.current()&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},Zy.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},Zy.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},Zy.regexp_eatSyntaxCharacter=function(i){var o=i.current();return!!acorn_isSyntaxCharacter(o)&&(i.lastIntValue=o,i.advance(),!0)},Zy.regexp_eatPatternCharacters=function(i){for(var o=i.pos,s=0;-1!==(s=i.current())&&!acorn_isSyntaxCharacter(s);)i.advance();return i.pos!==o},Zy.regexp_eatExtendedPatternCharacter=function(i){var o=i.current();return!(-1===o||36===o||o>=40&&o<=43||46===o||63===o||91===o||94===o||124===o)&&(i.advance(),!0)},Zy.regexp_groupSpecifier=function(i){if(i.eat(63)){if(this.regexp_eatGroupName(i))return-1!==i.groupNames.indexOf(i.lastStringValue)&&i.raise("Duplicate capture group name"),void i.groupNames.push(i.lastStringValue);i.raise("Invalid group")}},Zy.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},Zy.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=acorn_codePointToString(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=acorn_codePointToString(i.lastIntValue);return!0}return!1},Zy.regexp_eatRegExpIdentifierStart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),acorn_isRegExpIdentifierStart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},Zy.regexp_eatRegExpIdentifierPart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),acorn_isRegExpIdentifierPart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},Zy.regexp_eatAtomEscape=function(i){return!!(this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i))||(i.switchU&&(99===i.current()&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},Zy.regexp_eatBackReference=function(i){var o=i.pos;if(this.regexp_eatDecimalEscape(i)){var s=i.lastIntValue;if(i.switchU)return s>i.maxBackReference&&(i.maxBackReference=s),!0;if(s<=i.numCapturingParens)return!0;i.pos=o}return!1},Zy.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},Zy.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},Zy.regexp_eatCControlLetter=function(i){var o=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=o}return!1},Zy.regexp_eatZero=function(i){return 48===i.current()&&!acorn_isDecimalDigit(i.lookahead())&&(i.lastIntValue=0,i.advance(),!0)},Zy.regexp_eatControlEscape=function(i){var o=i.current();return 116===o?(i.lastIntValue=9,i.advance(),!0):110===o?(i.lastIntValue=10,i.advance(),!0):118===o?(i.lastIntValue=11,i.advance(),!0):102===o?(i.lastIntValue=12,i.advance(),!0):114===o&&(i.lastIntValue=13,i.advance(),!0)},Zy.regexp_eatControlLetter=function(i){var o=i.current();return!!acorn_isControlLetter(o)&&(i.lastIntValue=o%32,i.advance(),!0)},Zy.regexp_eatRegExpUnicodeEscapeSequence=function(i){var o,s=i.pos;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var v=i.lastIntValue;if(i.switchU&&v>=55296&&v<=56319){var _=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var $=i.lastIntValue;if($>=56320&&$<=57343)return i.lastIntValue=1024*(v-55296)+($-56320)+65536,!0}i.pos=_,i.lastIntValue=v}return!0}if(i.switchU&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&((o=i.lastIntValue)>=0&&o<=1114111))return!0;i.switchU&&i.raise("Invalid unicode escape"),i.pos=s}return!1},Zy.regexp_eatIdentityEscape=function(i){if(i.switchU)return!!this.regexp_eatSyntaxCharacter(i)||!!i.eat(47)&&(i.lastIntValue=47,!0);var o=i.current();return!(99===o||i.switchN&&107===o)&&(i.lastIntValue=o,i.advance(),!0)},Zy.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var o=i.current();if(o>=49&&o<=57){do{i.lastIntValue=10*i.lastIntValue+(o-48),i.advance()}while((o=i.current())>=48&&o<=57);return!0}return!1},Zy.regexp_eatCharacterClassEscape=function(i){var o=i.current();if(acorn_isCharacterClassEscape(o))return i.lastIntValue=-1,i.advance(),!0;if(i.switchU&&this.options.ecmaVersion>=9&&(80===o||112===o)){if(i.lastIntValue=-1,i.advance(),i.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(i)&&i.eat(125))return!0;i.raise("Invalid property name")}return!1},Zy.regexp_eatUnicodePropertyValueExpression=function(i){var o=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var s=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,s,v),!0}}if(i.pos=o,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var _=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,_),!0}return!1},Zy.regexp_validateUnicodePropertyNameAndValue=function(i,o,s){acorn_has(i.unicodeProperties.nonBinary,o)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[o].test(s)||i.raise("Invalid property value")},Zy.regexp_validateUnicodePropertyNameOrValue=function(i,o){i.unicodeProperties.binary.test(o)||i.raise("Invalid property name")},Zy.regexp_eatUnicodePropertyName=function(i){var o=0;for(i.lastStringValue="";acorn_isUnicodePropertyNameCharacter(o=i.current());)i.lastStringValue+=acorn_codePointToString(o),i.advance();return""!==i.lastStringValue},Zy.regexp_eatUnicodePropertyValue=function(i){var o=0;for(i.lastStringValue="";acorn_isUnicodePropertyValueCharacter(o=i.current());)i.lastStringValue+=acorn_codePointToString(o),i.advance();return""!==i.lastStringValue},Zy.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},Zy.regexp_eatCharacterClass=function(i){if(i.eat(91)){if(i.eat(94),this.regexp_classRanges(i),i.eat(93))return!0;i.raise("Unterminated character class")}return!1},Zy.regexp_classRanges=function(i){for(;this.regexp_eatClassAtom(i);){var o=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var s=i.lastIntValue;!i.switchU||-1!==o&&-1!==s||i.raise("Invalid character class"),-1!==o&&-1!==s&&o>s&&i.raise("Range out of order in character class")}}},Zy.regexp_eatClassAtom=function(i){var o=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var s=i.current();(99===s||acorn_isOctalDigit(s))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=o}var v=i.current();return 93!==v&&(i.lastIntValue=v,i.advance(),!0)},Zy.regexp_eatClassEscape=function(i){var o=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=o}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},Zy.regexp_eatClassControlLetter=function(i){var o=i.current();return!(!acorn_isDecimalDigit(o)&&95!==o)&&(i.lastIntValue=o%32,i.advance(),!0)},Zy.regexp_eatHexEscapeSequence=function(i){var o=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=o}return!1},Zy.regexp_eatDecimalDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;acorn_isDecimalDigit(s=i.current());)i.lastIntValue=10*i.lastIntValue+(s-48),i.advance();return i.pos!==o},Zy.regexp_eatHexDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;acorn_isHexDigit(s=i.current());)i.lastIntValue=16*i.lastIntValue+acorn_hexToInt(s),i.advance();return i.pos!==o},Zy.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var o=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var s=i.lastIntValue;o<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=64*o+8*s+i.lastIntValue:i.lastIntValue=8*o+s}else i.lastIntValue=o;return!0}return!1},Zy.regexp_eatOctalDigit=function(i){var o=i.current();return acorn_isOctalDigit(o)?(i.lastIntValue=o-48,i.advance(),!0):(i.lastIntValue=0,!1)},Zy.regexp_eatFixedHexDigits=function(i,o){var s=i.pos;i.lastIntValue=0;for(var v=0;v>10),56320+(1023&i)))}Xy.next=function(){this.options.onToken&&this.options.onToken(new Gy(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Xy.getToken=function(){return this.next(),new Gy(this)},"undefined"!=typeof Symbol&&(Xy[Symbol.iterator]=function(){var i=this;return{next:function(){var o=i.getToken();return{done:o.type===oy.eof,value:o}}}}),Xy.curContext=function(){return this.context[this.context.length-1]},Xy.nextToken=function(){var i=this.curContext();return i&&i.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(oy.eof):i.override?i.override(this):void this.readToken(this.fullCharCodeAtPos())},Xy.readToken=function(i){return acorn_isIdentifierStart(i,this.options.ecmaVersion>=6)||92===i?this.readWord():this.getTokenFromCode(i)},Xy.fullCharCodeAtPos=function(){var i=this.input.charCodeAt(this.pos);return i<=55295||i>=57344?i:(i<<10)+this.input.charCodeAt(this.pos+1)-56613888},Xy.skipBlockComment=function(){var i,o=this.options.onComment&&this.curPosition(),s=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(-1===v&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(dy.lastIndex=s;(i=dy.exec(this.input))&&i.index8&&i<14||i>=5760&&uy.test(String.fromCharCode(i))))break e;++this.pos}}},Xy.finishToken=function(i,o){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=i,this.value=o,this.updateContext(s)},Xy.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var o=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===i&&46===o?(this.pos+=3,this.finishToken(oy.ellipsis)):(++this.pos,this.finishToken(oy.dot))},Xy.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===i?this.finishOp(oy.assign,2):this.finishOp(oy.slash,1)},Xy.readToken_mult_modulo_exp=function(i){var o=this.input.charCodeAt(this.pos+1),s=1,v=42===i?oy.star:oy.modulo;return this.options.ecmaVersion>=7&&42===i&&42===o&&(++s,v=oy.starstar,o=this.input.charCodeAt(this.pos+2)),61===o?this.finishOp(oy.assign,s+1):this.finishOp(v,s)},Xy.readToken_pipe_amp=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?this.finishOp(124===i?oy.logicalOR:oy.logicalAND,2):61===o?this.finishOp(oy.assign,2):this.finishOp(124===i?oy.bitwiseOR:oy.bitwiseAND,1)},Xy.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(oy.assign,2):this.finishOp(oy.bitwiseXOR,1)},Xy.readToken_plus_min=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?45!==o||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!sy.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(oy.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===o?this.finishOp(oy.assign,2):this.finishOp(oy.plusMin,1)},Xy.readToken_lt_gt=function(i){var o=this.input.charCodeAt(this.pos+1),s=1;return o===i?(s=62===i&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(oy.assign,s+1):this.finishOp(oy.bitShift,s)):33!==o||60!==i||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===o&&(s=2),this.finishOp(oy.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Xy.readToken_eq_excl=function(i){var o=this.input.charCodeAt(this.pos+1);return 61===o?this.finishOp(oy.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===i&&62===o&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(oy.arrow)):this.finishOp(61===i?oy.eq:oy.prefix,1)},Xy.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(oy.parenL);case 41:return++this.pos,this.finishToken(oy.parenR);case 59:return++this.pos,this.finishToken(oy.semi);case 44:return++this.pos,this.finishToken(oy.comma);case 91:return++this.pos,this.finishToken(oy.bracketL);case 93:return++this.pos,this.finishToken(oy.bracketR);case 123:return++this.pos,this.finishToken(oy.braceL);case 125:return++this.pos,this.finishToken(oy.braceR);case 58:return++this.pos,this.finishToken(oy.colon);case 63:return++this.pos,this.finishToken(oy.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(oy.backQuote);case 48:var o=this.input.charCodeAt(this.pos+1);if(120===o||88===o)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===o||79===o)return this.readRadixNumber(8);if(98===o||66===o)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 126:return this.finishOp(oy.prefix,1)}this.raise(this.pos,"Unexpected character '"+acorn_codePointToString$1(i)+"'")},Xy.finishOp=function(i,o){var s=this.input.slice(this.pos,this.pos+o);return this.pos+=o,this.finishToken(i,s)},Xy.readRegexp=function(){for(var i,o,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var v=this.input.charAt(this.pos);if(sy.test(v)&&this.raise(s,"Unterminated regular expression"),i)i=!1;else{if("["===v)o=!0;else if("]"===v&&o)o=!1;else if("/"===v&&!o)break;i="\\"===v}++this.pos}var _=this.input.slice(s,this.pos);++this.pos;var $=this.pos,ae=this.readWord1();this.containsEsc&&this.unexpected($);var pe=this.regexpState||(this.regexpState=new Hy(this));pe.reset(s,_,ae),this.validateRegExpFlags(pe),this.validateRegExpPattern(pe);var we=null;try{we=new RegExp(_,ae)}catch(i){}return this.finishToken(oy.regexp,{pattern:_,flags:ae,value:we})},Xy.readInt=function(i,o){for(var s=this.pos,v=0,_=0,$=null==o?1/0:o;_<$;++_){var ae=this.input.charCodeAt(this.pos),pe=void 0;if((pe=ae>=97?ae-97+10:ae>=65?ae-65+10:ae>=48&&ae<=57?ae-48:1/0)>=i)break;++this.pos,v=v*i+pe}return this.pos===s||null!=o&&this.pos-s!==o?null:v},Xy.readRadixNumber=function(i){var o=this.pos;this.pos+=2;var s=this.readInt(i);return null==s&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s="undefined"!=typeof BigInt?BigInt(this.input.slice(o,this.pos)):null,++this.pos):acorn_isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(oy.num,s)},Xy.readNumber=function(i){var o=this.pos;i||null!==this.readInt(10)||this.raise(o,"Invalid number");var s=this.pos-o>=2&&48===this.input.charCodeAt(o);s&&this.strict&&this.raise(o,"Invalid number"),s&&/[89]/.test(this.input.slice(o,this.pos))&&(s=!1);var v=this.input.charCodeAt(this.pos);if(!s&&!i&&this.options.ecmaVersion>=11&&110===v){var _=this.input.slice(o,this.pos),$="undefined"!=typeof BigInt?BigInt(_):null;return++this.pos,acorn_isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(oy.num,$)}46!==v||s||(++this.pos,this.readInt(10),v=this.input.charCodeAt(this.pos)),69!==v&&101!==v||s||(43!==(v=this.input.charCodeAt(++this.pos))&&45!==v||++this.pos,null===this.readInt(10)&&this.raise(o,"Invalid number")),acorn_isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var ae=this.input.slice(o,this.pos),pe=s?parseInt(ae,8):parseFloat(ae);return this.finishToken(oy.num,pe)},Xy.readCodePoint=function(){var i;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(o,"Code point out of bounds")}else i=this.readHexChar(4);return i},Xy.readString=function(i){for(var o="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var v=this.input.charCodeAt(this.pos);if(v===i)break;92===v?(o+=this.input.slice(s,this.pos),o+=this.readEscapedChar(!1),s=this.pos):(acorn_isNewLine(v,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return o+=this.input.slice(s,this.pos++),this.finishToken(oy.string,o)};var Yy={};Xy.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i!==Yy)throw i;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Xy.invalidStringToken=function(i,o){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Yy;this.raise(i,o)},Xy.readTmplToken=function(){for(var i="",o=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==oy.template&&this.type!==oy.invalidTemplate?(i+=this.input.slice(o,this.pos),this.finishToken(oy.template,i)):36===s?(this.pos+=2,this.finishToken(oy.dollarBraceL)):(++this.pos,this.finishToken(oy.backQuote));if(92===s)i+=this.input.slice(o,this.pos),i+=this.readEscapedChar(!0),o=this.pos;else if(acorn_isNewLine(s)){switch(i+=this.input.slice(o,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:i+="\n";break;default:i+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),o=this.pos}else++this.pos}},Xy.readInvalidTemplateToken=function(){for(;this.pos=48&&o<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],v=parseInt(s,8);return v>255&&(s=s.slice(0,-1),v=parseInt(s,8)),this.pos+=s.length-1,o=this.input.charCodeAt(this.pos),"0"===s&&56!==o&&57!==o||!this.strict&&!i||this.invalidStringToken(this.pos-1-s.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(v)}return acorn_isNewLine(o)?"":String.fromCharCode(o)}},Xy.readHexChar=function(i){var o=this.pos,s=this.readInt(16,i);return null===s&&this.invalidStringToken(o,"Bad character escape sequence"),s},Xy.readWord1=function(){this.containsEsc=!1;for(var i="",o=!0,s=this.pos,v=this.options.ecmaVersion>=6;this.pos"+i+";"};function compileCode(i,o,s){try{var v=tv(i)?nv(i):i;return transpileImports(ev(v,o))}catch(i){s&&s(i)}return""}var av=s(107),rv=s.n(av),iv=function unsemicolon(i){return i.replace(/;\s*$/,"")};function splitExampleCode(i){var o=getAst(i);if(!o)return{head:"",example:i};var s=rv()(o.body.reverse(),{type:"ExpressionStatement"});if(!s)return{head:"",example:i};var v=s.start,_=s.end,$=iv(i.substring(0,v));return{head:$,example:$+";\nreturn ("+iv(i.substring(v,_))+");"}}var ov=function(i){var o,s;s=i,(o=ReactExample).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=ReactExample;function ReactExample(){return i.apply(this,arguments)||this}var _=ReactExample.prototype;return _.shouldComponentUpdate=function shouldComponentUpdate(i){return this.props.code!==i.code},_.getExampleComponent=function getExampleComponent(i){return this.props.evalInContext("\n\t\t\t"+i+"\n\t\t")},_.render=function render(){var i=this.props,o=i.code,s=i.compilerConfig,v=void 0===s?{}:s,_=i.onError,$=compileCode(o,v,_);if(!$)return null;var ae=splitExampleCode($).example,we=this.getExampleComponent(ae);return pe.a.createElement(wu,{onError:_},pe.a.createElement(we,null))},ReactExample}(ae.Component);function Preview_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Preview_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}!function ReactExample_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}(ov,"propTypes",{code:_e.a.string.isRequired,evalInContext:_e.a.func.isRequired,onError:_e.a.func.isRequired,compilerConfig:_e.a.object});var sv=function improveErrorMessage(i){return i.replace("Check the render method of `StateHolder`.","Check the code of your example in a Markdown file or in the editor below.")},dv=function(i){var o,s;s=i,(o=Preview).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=Preview;function Preview(){for(var o,s=arguments.length,v=new Array(s),_=0;_0&&console.clear(),this.executeCode()},_.shouldComponentUpdate=function shouldComponentUpdate(i,o){return this.state.error!==o.error||this.props.code!==i.code},_.componentDidUpdate=function componentDidUpdate(i){this.props.code!==i.code&&this.executeCode()},_.componentWillUnmount=function componentWillUnmount(){this.unmountPreview()},_.unmountPreview=function unmountPreview(){this.mountNode&&$.a.unmountComponentAtNode(this.mountNode)},_.executeCode=function executeCode(){var i=this;this.setState({error:null});var o=this.props.code;if(o){var s=pe.a.createElement(ov,{code:o,evalInContext:this.props.evalInContext,onError:this.handleError,compilerConfig:this.context.config.compilerConfig});window.requestAnimationFrame((function(){try{$.a.render(s,i.mountNode)}catch(o){i.handleError(o)}}))}},_.render=function render(){var i=this,o=this.state.error;return pe.a.createElement(pe.a.Fragment,null,pe.a.createElement("div",{"data-testid":"mountNode",ref:function ref(o){return i.mountNode=o}}),o&&pe.a.createElement(xu,{message:o}))},Preview}(ae.Component);function Slot_extends(){return Slot_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}Preview_defineProperty(dv,"propTypes",{code:_e.a.string.isRequired,evalInContext:_e.a.func.isRequired}),Preview_defineProperty(dv,"contextType",Md.a),Slot.propTypes={name:_e.a.string.isRequired,active:_e.a.string,onlyActive:_e.a.bool,props:_e.a.object,className:_e.a.string};var uv=function PlaygroundRenderer(i){var o,s=i.classes,v=i.exampleIndex,_=i.name,$=i.padded,ae=i.preview,we=i.previewProps,_e=i.tabButtons,et=i.tabBody,tt=i.toolbar,nt=we.className,rt=PlaygroundRenderer_objectWithoutPropertiesLoose(we,["className"]),it=Object(pr.a)(s.preview,nt,((o={})[s.padded]=$,o));return pe.a.createElement("div",{className:s.root,"data-testid":_+"-example-"+v},pe.a.createElement("div",PlaygroundRenderer_extends({className:it},rt,{"data-preview":_,"data-testid":"preview-wrapper"}),ae),pe.a.createElement("div",{className:s.controls},pe.a.createElement("div",{className:s.tabs},_e),pe.a.createElement("div",{className:s.toolbar},tt)),pe.a.createElement("div",{className:s.tab},et))};uv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,exampleIndex:_e.a.number.isRequired,name:_e.a.string.isRequired,padded:_e.a.bool.isRequired,preview:_e.a.node.isRequired,previewProps:_e.a.object.isRequired,tabButtons:_e.a.node.isRequired,tabBody:_e.a.node.isRequired,toolbar:_e.a.node.isRequired};var lv=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.borderRadius;return{root:{marginBottom:o[4]},preview:{padding:o[2],border:[[1,s.border,"solid"]],borderRadius:v,width:"100%",display:"inline-block"},controls:{display:"flex",alignItems:"center",marginBottom:o[1]},toolbar:{marginLeft:"auto"},tab:{},padded:{"& > *":{isolate:!1,marginLeft:-o[1],marginRight:-o[1],"& > *":{isolate:!1,marginRight:o[1],marginLeft:o[1]}}}}}))(uv),cv=Object.freeze({all:"all",section:"section",component:"component",example:"example",notFound:"notFound"}),hv=Object.freeze({hide:"hide",collapse:"collapse",expand:"expand"}),pv=Object.freeze({hide:"hide",collapse:"collapse",expand:"expand"});function Playground_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Playground_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var fv=function(i){var o,s;s=i,(o=Playground).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=Playground;function Playground(){for(var o,s=arguments.length,v=new Array(s),_=0;_=0||(_[s]=i[s]);return _}var xv=function SectionHeading(i){var o=i.slotName,s=i.slotProps,v=i.children,_=i.id,$=i.href,ae=SectionHeading_objectWithoutPropertiesLoose(i,["slotName","slotProps","children","id","href"]);return pe.a.createElement(Ov,SectionHeading_extends({toolbar:pe.a.createElement(Slot,{name:o,props:s}),id:_,href:$},ae),v)};xv.propTypes={children:_e.a.node,id:_e.a.string.isRequired,slotName:_e.a.string.isRequired,slotProps:_e.a.any.isRequired,depth:_e.a.number.isRequired,deprecated:_e.a.bool,pagePerSection:_e.a.bool};var wv=xv,Cv=s(221),Sv=s.n(Cv),_v=Object(et.a)((function styles(i){var o=i.space,s=i.fontFamily,v=i.fontSize,_=i.color;return{pathline:{fontFamily:s.monospace,fontSize:v.small,color:_.light,wordBreak:"break-all"},copyButton:{marginLeft:o[0]}}}))((function PathlineRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("div",{className:o.pathline},s,pe.a.createElement(Ys,{small:!0,className:o.copyButton,onClick:function onClick(){return s&&Sv()(s.toString())},title:"Copy to clipboard"},pe.a.createElement(MdContentCopy,null)))})),Ev=function ReactComponentRenderer(i){var o=i.classes,s=i.name,v=i.heading,_=i.pathLine,$=i.description,ae=i.docs,we=i.examples,_e=i.tabButtons,et=i.tabBody;return pe.a.createElement("div",{className:o.root,"data-testid":s+"-container"},pe.a.createElement("header",{className:o.header},v,_&&pe.a.createElement(_v,null,_)),($||ae)&&pe.a.createElement("div",{className:o.docs},$,ae),_e&&pe.a.createElement("div",{className:o.tabs},pe.a.createElement("div",{className:o.tabButtons},_e),pe.a.createElement("div",{className:o.tabBody},et)),we)};Ev.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string.isRequired,heading:_e.a.node.isRequired,filepath:_e.a.string,pathLine:_e.a.string,tabButtons:_e.a.node,tabBody:_e.a.node,description:_e.a.node,docs:_e.a.node,examples:_e.a.node,isolated:_e.a.bool};var kv=Object(et.a)((function styles(i){var o=i.color,s=i.fontSize,v=i.space;return{root:{marginBottom:v[6]},header:{marginBottom:v[3]},tabs:{marginBottom:v[3]},tabButtons:{marginBottom:v[1]},tabBody:{overflowX:"auto",maxWidth:"100%",WebkitOverflowScrolling:"touch"},docs:{color:o.base,fontSize:s.text}}}))(Ev),Av=s(61);function ExamplePlaceholderRenderer_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ExamplePlaceholderRenderer_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var Dv=function(i){var o,s;s=i,(o=ExamplePlaceholderRenderer).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=ExamplePlaceholderRenderer;function ExamplePlaceholderRenderer(){for(var o,s=arguments.length,v=new Array(s),_=0;_\n\t```\n\nYou may need to **restart** the style guide server after adding an example file.\n\nRead more in the [documenting components guide]('+Av.DOCS_DOCUMENTING+").\n\t\t\t\t\t"}):pe.a.createElement("button",{className:o.button,onClick:this.handleOpen},"Add examples to this component")},ExamplePlaceholderRenderer}(ae.Component);ExamplePlaceholderRenderer_defineProperty(Dv,"propTypes",{classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string});Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{button:{padding:0,fontSize:s.base,fontFamily:o.base,textDecoration:"underline",color:v.light,border:0,cursor:"pointer",background:"transparent","&:hover, &:active":{isolate:!1,color:v.lightest}}}}))(Dv);function ReactComponent_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ReactComponent_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var ExamplePlaceholder=function(){return pe.a.createElement("div",null)},Pv=function(i){var o,s;s=i,(o=ReactComponent).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=ReactComponent;function ReactComponent(){for(var o,s=arguments.length,v=new Array(s),_=0;_0?pe.a.createElement(Rv,{examples:ht,name:et,exampleMode:_e}):pe.a.createElement(ExamplePlaceholder,{name:et}),tabButtons:gt&&pe.a.createElement(Slot,{name:"docsTabButtons",active:i,props:Object.assign({},$,{onClick:this.handleTabChange})}),tabBody:pe.a.createElement(Slot,{name:"docsTabs",active:i,onlyActive:!0,props:$})})},ReactComponent}(ae.Component);function ComponentsRenderer(i){var o=i.children;return pe.a.createElement("div",null,o)}ReactComponent_defineProperty(Pv,"propTypes",{component:_e.a.object.isRequired,depth:_e.a.number.isRequired,exampleMode:_e.a.string.isRequired,usageMode:_e.a.string.isRequired}),ReactComponent_defineProperty(Pv,"contextType",Md.a),ComponentsRenderer.propTypes={children:_e.a.node.isRequired};var Tv=function Components(i){var o=i.components,s=i.depth,v=i.exampleMode,_=i.usageMode;return pe.a.createElement(ComponentsRenderer,null,o.map((function(i){return pe.a.createElement(Pv,{key:i.filepath,component:i,exampleMode:v,usageMode:_,depth:s})})))};Tv.propTypes={components:_e.a.array.isRequired,depth:_e.a.number.isRequired,exampleMode:_e.a.string.isRequired,usageMode:_e.a.string.isRequired};var Iv=Tv,Fv=function SectionRenderer(i){var o=i.classes,s=i.name,v=i.slug,_=i.content,$=i.components,ae=i.sections,we=i.depth,_e=i.description,et=i.pagePerSection;return pe.a.createElement("section",{className:o.root,"data-testid":"section-"+v},s&&pe.a.createElement(wv,{depth:we,id:v,slotName:"sectionToolbar",pagePerSection:et,slotProps:i},s),_e&&pe.a.createElement(Kr,{text:_e}),_,ae,$)};Fv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string,description:_e.a.string,slug:_e.a.string.isRequired,content:_e.a.node,components:_e.a.node,sections:_e.a.node,isolated:_e.a.bool,depth:_e.a.number.isRequired,pagePerSection:_e.a.bool};var Nv=Object(et.a)((function styles(i){return{root:{marginBottom:i.space[4]}}}))(Fv),Bv=function Section(i){var o=i.section,s=i.depth,v=Object(Md.b)(),_=v.displayMode,$=v.config.pagePerSection,ae=o.name,we=o.slug,_e=o.filepath,et=o.content,tt=o.components,nt=o.sections,rt=o.description,it=o.exampleMode,ot=o.usageMode,st=Array.isArray(et)?pe.a.createElement(Rv,{examples:et,name:ae,exampleMode:it}):null,dt=tt&&pe.a.createElement(Iv,{usageMode:ot,exampleMode:it,components:tt,depth:s+1}),ut=nt&&pe.a.createElement(Vv,{sections:nt,depth:s+1});return pe.a.createElement(Nv,{description:rt,pagePerSection:$,name:ae,slug:we,filepath:_e,content:st,components:dt,sections:ut,isolated:_!==cv.all,depth:s})};Bv.propTypes={section:_e.a.any.isRequired,depth:_e.a.number.isRequired};var Lv=Bv,jv=function SectionsRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("section",{className:o.root},s)};jv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node};var Mv=Object(et.a)((function styles(){return{root:{}}}))(jv),Qv=function Sections(i){var o=i.sections,s=i.depth;return pe.a.createElement(Mv,null,o.filter((function(i){return!i.externalLink})).map((function(i,o){return pe.a.createElement(Lv,{key:o,section:i,depth:s})})))};Qv.propTypes={sections:_e.a.array.isRequired,depth:_e.a.number.isRequired,root:_e.a.bool};var Vv=Qv,Uv=function WelcomeRenderer(i){var o=i.classes,s=i.patterns;return pe.a.createElement("div",{className:o.root},pe.a.createElement(Kr,{text:"\n# Welcome to React Styleguidist!\n\n**We couldn’t find any components** using these patterns:\n\n"+s.map((function(i){return"- `"+i+"`"})).join("\n")+"\n\nCreate **styleguide.config.js** file in your project root directory like this:\n\n module.exports = {\n components: 'src/components/**/*.js'\n };\n\nRead more in the [locating components guide]("+Av.DOCS_COMPONENTS+").\n\t\t\t\t"}))};Uv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,patterns:_e.a.array.isRequired};var Wv=Object(et.a)((function styles(i){var o=i.space;return{root:{maxWidth:i.maxWidth,margin:[[0,"auto"]],padding:o[4]}}}))(Uv),$v=function ErrorRenderer(i){var o=i.classes,s=i.error,v=i.info;return pe.a.createElement("div",{className:o.root},pe.a.createElement("pre",{className:o.stack},s.toString(),v.componentStack),pe.a.createElement("div",{className:o.message},pe.a.createElement("p",null,"This may be due to an error in a component you are overriding, or a bug in React Styleguidist."),pe.a.createElement("p",null,"If you believe this is a bug, ",pe.a.createElement("a",{style:{color:"inherit"},href:"https://github.com/styleguidist/react-styleguidist/issues"},"please submit an issue"),".")))};$v.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,error:_e.a.object.isRequired,info:_e.a.any.isRequired};var qv=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{root:{margin:i.space[2],lineHeight:1.2,fontSize:s.small},stack:{color:v.error,whiteSpace:"pre-wrap",fontFamily:o.monospace},message:{color:v.error,fontFamily:o.base}}}))($v),zv=function NotFoundRenderer(i){var o=i.classes;return pe.a.createElement("div",{className:o.root},pe.a.createElement(Kr,{text:"\n# Page not found\nThe link you followed may be broken, or the page may have been removed.\n"}))};zv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired};var Zv=Object(et.a)((function styles(i){return{root:{maxWidth:i.maxWidth,margin:[[0,"auto"]]}}}))(zv);function StyleGuide_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function StyleGuide_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}function StyleGuide_hasSidebar(i,o){return i===cv.notFound||o&&i===cv.all}var Hv=function(i){var o,s;s=i,(o=StyleGuide).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=StyleGuide;function StyleGuide(){for(var o,s=arguments.length,v=new Array(s),_=0;_0&&_&&(v=Object.assign({},v,{sections:[],components:[]})),i=[v]}else i=[]}})),i.length||(et=cv.notFound),ae=pe[pe.length-1];else if((tt=filterComponentsInSectionsByExactName(i,ae,!0)).length)i=tt,et=cv.component;else{var nt=findSection(i,ae);i=nt?[nt]:[],et=cv.section}if(Kv()(we))if(1===tt.length){var rt=tt[0].components;i=[Object.assign({},tt[0],{components:rt&&"number"==typeof we?[(v=rt[0],_=we,Object.assign({},v,{props:Object.assign({},v.props,{examples:v.props&&v.props.examples?[v.props.examples[_]]:[]})}))]:[]})],et=cv.example}else 1===i.length&&(i=[filterSectionExamples(i[0],we)],et=cv.example)}return{sections:i,displayMode:et}}function processComponents(i,o){var s=o.useRouterLinks,v=o.useHashId,_=o.hashPath;return i.map((function(i){return i.props?Object.assign({},i,{name:i.props.displayName,visibleName:i.props.visibleName||i.props.displayName,props:Object.assign({},i.props,{examples:[].concat(i.props.examples||[],i.props.example||[])}),href:i.href||getUrl({name:i.props.displayName,slug:i.slug,anchor:!s,hashPath:!!s&&_,useSlugAsIdParam:!!s&&v})}):{}}))}function processSections(i,o){var s=o.useRouterLinks,v=o.useHashId,_=void 0!==v&&v,$=o.hashPath,ae=void 0===$?[]:$;return i.map((function(i){var o={useRouterLinks:Boolean(s&&i.name),useHashId:0===i.sectionDepth,hashPath:[].concat(ae,[i.name?i.name:"-"])},v=i.href||getUrl({name:i.name,slug:i.slug,anchor:!s,hashPath:!!s&&ae,useSlugAsIdParam:!!s&&_});return Object.assign({},i,{externalLink:!!i.href,href:v,visibleName:i.name,components:processComponents(i.components||[],o),sections:processSections(i.sections||[],o)})}))}function renderStyleguide(i,o,s,v,_){return void 0===s&&(s=window.location),void 0===v&&(v=document),void 0===_&&(_=window.history),function(){var $=processSections(i.sections,{useRouterLinks:i.config.pagePerSection}),ae=i.config,we=ae.title,_e=ae.pagePerSection,et=(ae.theme,ae.styles,getRouteData($,s.hash,_e)),tt=et.sections,nt=et.displayMode;if(v.title=getPageTitle(tt,we,nt),"#/"===s.hash){var rt=s.pathname+s.search;_.replaceState("",v.title,rt)}return pe.a.createElement(Hv,{codeRevision:o,cssRevision:"0",config:i.config,slots:(i.config,{sectionToolbar:Ad,componentToolbar:Ad,exampleToolbar:Ad,exampleTabButtons:[{id:_d,render:cd}],exampleTabs:[{id:_d,render:ut}],docsTabButtons:[{id:kd,render:Cd}],docsTabs:[{id:kd,render:Gs}]}),welcomeScreen:i.welcomeScreen,patterns:i.patterns,sections:tt,allSections:$,displayMode:nt,pagePerSection:_e})}()}var Jv=function render(){var i=s(823);$.a.render(renderStyleguide(i,0),document.getElementById(i.config.mountPointId))};window.addEventListener("hashchange",Jv),window.addEventListener("hashchange",(function scrollToOrigin(){var i,o=window.location.hash;if(i=su(o,"#/")||su(o,"#!/")?lu(o,"id"):du(o,"#"),o)if(i){var s=document.getElementById(i);s&&s.scrollIntoView(!0)}else window.scrollTo(0,0)})),Jv()},,,function(i,o,s){"use strict";var v=s(65),_=s(108),$=s(114);var ae=Object($.a)("facebook",(function facebookLink(i,o){var s=o.quote,$=o.hashtag;return Object(v.a)(i,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+Object(_.a)({u:i,quote:s,hashtag:$})}),(function(i){return{quote:i.quote,hashtag:i.hashtag}}),{windowWidth:550,windowHeight:400});o.a=ae},function(i,o,s){"use strict";var v=s(109),_=Object(v.a)({color:"#3b5998",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"});o.a=_},function(i,o,s){"use strict";var v=s(65),_=s(108),$=s(114);var ae=Object($.a)("twitter",(function twitterLink(i,o){var s=o.title,$=o.via,ae=o.hashtags,pe=void 0===ae?[]:ae,we=o.related,_e=void 0===we?[]:we;return Object(v.a)(i,"twitter.url"),Object(v.a)(Array.isArray(pe),"twitter.hashtags is not an array"),Object(v.a)(Array.isArray(_e),"twitter.related is not an array"),"https://twitter.com/share"+Object(_.a)({url:i,text:s,via:$,hashtags:pe.length>0?pe.join(","):void 0,related:_e.length>0?_e.join(","):void 0})}),(function(i){return{hashtags:i.hashtags,title:i.title,via:i.via,related:i.related}}),{windowWidth:550,windowHeight:400});o.a=ae},function(i,o,s){"use strict";var v=s(109),_=Object(v.a)({color:"#00aced",networkName:"twitter",path:"M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"});o.a=_}]]); \ No newline at end of file diff --git a/docs/build/2.a2c7d688.js.LICENSE.txt b/docs/build/2.68b5b785.js.LICENSE.txt similarity index 100% rename from docs/build/2.a2c7d688.js.LICENSE.txt rename to docs/build/2.68b5b785.js.LICENSE.txt diff --git a/docs/build/2.a2c7d688.js b/docs/build/2.a2c7d688.js deleted file mode 100644 index a196a3a0..00000000 --- a/docs/build/2.a2c7d688.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 2.a2c7d688.js.LICENSE.txt */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(i,o,s){"use strict";i.exports=s(251)},function(i,o,s){(function(i,v){var _;!function($){var ae=o,pe=(i&&i.exports,"object"==typeof v&&v);pe.global!==pe&&pe.window;var we="A range’s `stop` value must be greater than or equal to the `start` value.",_e="Invalid code point value. Code points range from U+000000 to U+10FFFF.",et=55296,tt=56319,nt=56320,rt=57343,it=/\\x00([^0123456789]|$)/g,ot={},st=ot.hasOwnProperty,forEach=function(i,o){for(var s=-1,v=i.length;++s=s&&os)return i;if(o<=v&&s>=_)i.splice($,2);else{if(o>=v&&s<_)return o==v?(i[$]=s+1,i[$+1]=_+1,i):(i.splice($,2,v,o,s+1,_+1),i);if(o>=v&&o<=_)i[$+1]=o;else if(s>=v&&s<=_)return i[$]=s+1,i;$+=2}}return i},dataAdd=function(i,o){var s,v,_=0,$=null,ae=i.length;if(o<0||o>1114111)throw RangeError(_e);for(;_=s&&oo)return i.splice(null!=$?$+2:0,0,o,o+1),i;if(o==v)return o+1==i[_+2]?(i.splice(_,4,s,i[_+3]),i):(i[_+1]=o+1,i);$=_,_+=2}return i.push(o,o+1),i},dataAddData=function(i,o){for(var s,v,_=0,$=i.slice(),ae=o.length;_1114111||s<0||s>1114111)throw RangeError(_e);for(var v,_,$=0,ae=!1,pe=i.length;$s)return i;v>=o&&v<=s&&(_>o&&_-1<=s?(i.splice($,2),$-=2):(i.splice($-1,2),$-=2))}else{if(v==s+1||v==s)return i[$]=o,i;if(v>s)return i.splice($,0,o,s+1),i;if(o>=v&&o<_&&s+1<=_)return i;o>=v&&o<_||_==o?(i[$+1]=s+1,ae=!0):o<=v&&s+1>=_&&(i[$]=o,i[$+1]=s+1,ae=!0)}$+=2}return ae||i.push(o,s+1),i},dataContains=function(i,o){var s=0,v=i.length,_=i[s],$=i[v-1];if(v>=2&&(o<_||o>$))return!1;for(;s=_&&o<$)return!0;s+=2}return!1},dataIntersection=function(i,o){for(var s,v=0,_=o.length,$=[];v<_;)s=o[v],dataContains(i,s)&&$.push(s),++v;return dataFromCodePoints($)},dataIsEmpty=function(i){return!i.length},dataIsSingleton=function(i){return 2==i.length&&i[0]+1==i[1]},dataToArray=function(i){for(var o,s,v=0,_=[],$=i.length;v<$;){for(o=i[v],s=i[v+1];o=40&&i<=43||46==i||47==i||63==i||i>=91&&i<=94||i>=123&&i<=125?"\\"+ct(i):i>=32&&i<=126?ct(i):i<=255?"\\x"+pad(hex(i),2):"\\u"+pad(hex(i),4)},codePointToStringUnicode=function(i){return i<=65535?codePointToString(i):"\\u{"+i.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(i){var o,s=i.length,v=i.charCodeAt(0);return v>=et&&v<=tt&&s>1?(o=i.charCodeAt(1),1024*(v-et)+o-nt+65536):v},createBMPCharacterClasses=function(i){var o,s,v="",_=0,$=i.length;if(dataIsSingleton(i))return codePointToString(i[0]);for(;_<$;)v+=(o=i[_])==(s=i[_+1]-1)?codePointToString(o):o+1==s?codePointToString(o)+codePointToString(s):codePointToString(o)+"-"+codePointToString(s),_+=2;return"["+v+"]"},createUnicodeCharacterClasses=function(i){var o,s,v="",_=0,$=i.length;if(dataIsSingleton(i))return codePointToStringUnicode(i[0]);for(;_<$;)v+=(o=i[_])==(s=i[_+1]-1)?codePointToStringUnicode(o):o+1==s?codePointToStringUnicode(o)+codePointToStringUnicode(s):codePointToStringUnicode(o)+"-"+codePointToStringUnicode(s),_+=2;return"["+v+"]"},splitAtBMP=function(i){for(var o,s,v=[],_=[],$=[],ae=[],pe=0,we=i.length;pe=et&&s<=tt&&($.push(o,et),v.push(et,s+1)),s>=nt&&s<=rt&&($.push(o,et),v.push(et,56320),_.push(nt,s+1)),s>rt&&($.push(o,et),v.push(et,56320),_.push(nt,57344),s<=65535?$.push(57344,s+1):($.push(57344,65536),ae.push(65536,s+1)))):o>=et&&o<=tt?(s>=et&&s<=tt&&v.push(o,s+1),s>=nt&&s<=rt&&(v.push(o,56320),_.push(nt,s+1)),s>rt&&(v.push(o,56320),_.push(nt,57344),s<=65535?$.push(57344,s+1):($.push(57344,65536),ae.push(65536,s+1)))):o>=nt&&o<=rt?(s>=nt&&s<=rt&&_.push(o,s+1),s>rt&&(_.push(o,57344),s<=65535?$.push(57344,s+1):($.push(57344,65536),ae.push(65536,s+1)))):o>rt&&o<=65535?s<=65535?$.push(o,s+1):($.push(o,65536),ae.push(65536,s+1)):ae.push(o,s+1),pe+=2;return{loneHighSurrogates:v,loneLowSurrogates:_,bmp:$,astral:ae}},optimizeSurrogateMappings=function(i){for(var o,s,v,_,$,ae,pe=[],we=[],_e=!1,et=-1,tt=i.length;++et1&&(i=ut.call(arguments)),this instanceof regenerate?(this.data=[],i?this.add(i):this):(new regenerate).add(i)};regenerate.version="1.4.2";var ht=regenerate.prototype;!function(i,o){var s;for(s in o)st.call(o,s)&&(i[s]=o[s])}(ht,{add:function(i){var o=this;return null==i?o:i instanceof regenerate?(o.data=dataAddData(o.data,i.data),o):(arguments.length>1&&(i=ut.call(arguments)),isArray(i)?(forEach(i,(function(i){o.add(i)})),o):(o.data=dataAdd(o.data,isNumber(i)?i:symbolToCodePoint(i)),o))},remove:function(i){var o=this;return null==i?o:i instanceof regenerate?(o.data=dataRemoveData(o.data,i.data),o):(arguments.length>1&&(i=ut.call(arguments)),isArray(i)?(forEach(i,(function(i){o.remove(i)})),o):(o.data=dataRemove(o.data,isNumber(i)?i:symbolToCodePoint(i)),o))},addRange:function(i,o){var s=this;return s.data=dataAddRange(s.data,isNumber(i)?i:symbolToCodePoint(i),isNumber(o)?o:symbolToCodePoint(o)),s},removeRange:function(i,o){var s=this,v=isNumber(i)?i:symbolToCodePoint(i),_=isNumber(o)?o:symbolToCodePoint(o);return s.data=dataRemoveRange(s.data,v,_),s},intersection:function(i){var o=this,s=i instanceof regenerate?dataToArray(i.data):i;return o.data=dataIntersection(o.data,s),o},contains:function(i){return dataContains(this.data,isNumber(i)?i:symbolToCodePoint(i))},clone:function(){var i=new regenerate;return i.data=this.data.slice(0),i},toString:function(i){var o=createCharacterClassesFromData(this.data,!!i&&i.bmpOnly,!!i&&i.hasUnicodeFlag);return o?o.replace(it,"\\0$1"):"[]"},toRegExp:function(i){var o=this.toString(i&&-1!=i.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(o,i||"")},valueOf:function(){return dataToArray(this.data)}}),ht.toArray=ht.valueOf,void 0===(_=function(){return regenerate}.call(o,s,o,i))||(i.exports=_)}()}).call(this,s(60)(i),s(23))},function(i,o,s){i.exports=s(347)()},function(i,o,s){"use strict";s.d(o,"a",(function(){return Pt})),s.d(o,"b",(function(){return it})),s.d(o,"c",(function(){return ot})),s.d(o,"d",(function(){return Lt})),s.d(o,"e",(function(){return ut})),s.d(o,"f",(function(){return Qt})),s.d(o,"g",(function(){return ct})),s.d(o,"h",(function(){return rt})),s.d(o,"i",(function(){return Rt})),s.d(o,"j",(function(){return $t})),s.d(o,"k",(function(){return qt})),s.d(o,"l",(function(){return Vt})),s.d(o,"m",(function(){return Ft})),s.d(o,"n",(function(){return ft})),s.d(o,"o",(function(){return v})),s.d(o,"p",(function(){return Nt})),s.d(o,"q",(function(){return codePointAt})),s.d(o,"r",(function(){return codePointSize})),s.d(o,"s",(function(){return combineConfig})),s.d(o,"t",(function(){return countColumn})),s.d(o,"u",(function(){return findClusterBreak})),s.d(o,"v",(function(){return findColumn})),s.d(o,"w",(function(){return fromCodePoint}));class v{lineAt(i){if(i<0||i>this.length)throw new RangeError("Invalid position ".concat(i," in document of length ").concat(this.length));return this.lineInner(i,!1,1,0)}line(i){if(i<1||i>this.lines)throw new RangeError("Invalid line number ".concat(i," in ").concat(this.lines,"-line document"));return this.lineInner(i,!0,1,0)}replace(i,o,s){[i,o]=clip(this,i,o);let v=[];return this.decompose(0,i,v,2),s.length&&s.decompose(0,s.length,v,3),this.decompose(o,this.length,v,1),$.from(v,this.length-(o-i)+s.length)}append(i){return this.replace(this.length,this.length,i)}slice(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;[i,o]=clip(this,i,o);let s=[];return this.decompose(i,o,s,0),$.from(s,o-i)}eq(i){if(i==this)return!0;if(i.length!=this.length||i.lines!=this.lines)return!1;let o=this.scanIdentical(i,1),s=this.length-this.scanIdentical(i,-1),v=new ae(this),_=new ae(i);for(let i=o,$=o;;){if(v.next(i),_.next(i),i=0,v.lineBreak!=_.lineBreak||v.done!=_.done||v.value!=_.value)return!1;if($+=v.value.length,v.done||$>=s)return!0}}iter(){return new ae(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}iterRange(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new pe(this,i,o)}iterLines(i,o){let s;if(null==i)s=this.iter();else{null==o&&(o=this.lines+1);let v=this.line(i).from;s=this.iterRange(v,Math.max(v,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new we(s)}toString(){return this.sliceString(0)}toJSON(){let i=[];return this.flatten(i),i}constructor(){}static of(i){if(0==i.length)throw new RangeError("A document must have at least one line");return 1!=i.length||i[0]?i.length<=32?new _(i):$.from(_.split(i,[])):v.empty}}class _ extends v{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:textLength(i);super(),this.text=i,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(i,o,s,v){for(let _=0;;_++){let $=this.text[_],ae=v+$.length;if((o?s:ae)>=i)return new _e(v,ae,s,$);v=ae+1,s++}}decompose(i,o,s,v){let $=i<=0&&o>=this.length?this:new _(sliceText(this.text,i,o),Math.min(o,this.length)-Math.max(0,i));if(1&v){let i=s.pop(),o=appendText($.text,i.text.slice(),0,$.length);if(o.length<=32)s.push(new _(o,i.length+$.length));else{let i=o.length>>1;s.push(new _(o.slice(0,i)),new _(o.slice(i)))}}else s.push($)}replace(i,o,s){if(!(s instanceof _))return super.replace(i,o,s);[i,o]=clip(this,i,o);let v=appendText(this.text,appendText(s.text,sliceText(this.text,0,i)),o),ae=this.length+s.length-(o-i);return v.length<=32?new _(v,ae):$.from(_.split(v,[]),ae)}sliceString(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[i,o]=clip(this,i,o);let v="";for(let _=0,$=0;_<=o&&$i&&$&&(v+=s),i_&&(v+=ae.slice(Math.max(0,i-_),o-_)),_=pe+1}return v}flatten(i){for(let o of this.text)i.push(o)}scanIdentical(){return 0}static split(i,o){let s=[],v=-1;for(let $ of i)s.push($),v+=$.length+1,32==s.length&&(o.push(new _(s,v)),s=[],v=-1);return v>-1&&o.push(new _(s,v)),o}}class $ extends v{constructor(i,o){super(),this.children=i,this.length=o,this.lines=0;for(let o of i)this.lines+=o.lines}lineInner(i,o,s,v){for(let _=0;;_++){let $=this.children[_],ae=v+$.length,pe=s+$.lines-1;if((o?pe:ae)>=i)return $.lineInner(i,o,s,v);v=ae+1,s=pe+1}}decompose(i,o,s,v){for(let _=0,$=0;$<=o&&_=$){let _=v&(($<=i?1:0)|(pe>=o?2:0));$>=i&&pe<=o&&!_?s.push(ae):ae.decompose(i-$,o-$,s,_)}$=pe+1}}replace(i,o,s){if([i,o]=clip(this,i,o),s.lines=_&&o<=pe){let we=ae.replace(i-_,o-_,s),_e=this.lines-ae.lines+we.lines;if(we.lines<_e>>4&&we.lines>_e>>6){let _=this.children.slice();return _[v]=we,new $(_,this.length-(o-i)+s.length)}return super.replace(_,pe,we)}_=pe+1}return super.replace(i,o,s)}sliceString(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[i,o]=clip(this,i,o);let v="";for(let _=0,$=0;_i&&_&&(v+=s),i$&&(v+=ae.sliceString(i-$,o-$,s)),$=pe+1}return v}flatten(i){for(let o of this.children)o.flatten(i)}scanIdentical(i,o){if(!(i instanceof $))return 0;let s=0,[v,_,ae,pe]=o>0?[0,0,this.children.length,i.children.length]:[this.children.length-1,i.children.length-1,-1,-1];for(;;v+=o,_+=o){if(v==ae||_==pe)return s;let $=this.children[v],we=i.children[_];if($!=we)return s+$.scanIdentical(we,o);s+=$.length+1}}static from(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.reduce(((i,o)=>i+o.length+1),-1),s=0;for(let o of i)s+=o.lines;if(s<32){let s=[];for(let o of i)o.flatten(s);return new _(s,o)}let v=Math.max(32,s>>5),ae=v<<1,pe=v>>1,we=[],_e=0,et=-1,tt=[];function add(i){let o;if(i.lines>ae&&i instanceof $)for(let o of i.children)add(o);else i.lines>pe&&(_e>pe||!_e)?(flush(),we.push(i)):i instanceof _&&_e&&(o=tt[tt.length-1])instanceof _&&i.lines+o.lines<=32?(_e+=i.lines,et+=i.length+1,tt[tt.length-1]=new _(o.text.concat(i.text),o.length+1+i.length)):(_e+i.lines>v&&flush(),_e+=i.lines,et+=i.length+1,tt.push(i))}function flush(){0!=_e&&(we.push(1==tt.length?tt[0]:$.from(tt,et)),et=-1,_e=tt.length=0)}for(let o of i)add(o);return flush(),1==we.length?we[0]:new $(we,o)}}function textLength(i){let o=-1;for(let s of i)o+=s.length+1;return o}function appendText(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9;for(let _=0,$=0,ae=!0;$=s&&(we>v&&(pe=pe.slice(0,v-_)),_1&&void 0!==arguments[1]?arguments[1]:1;this.dir=o,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[i],this.offsets=[o>0?1:(i instanceof _?i.text.length:i.children.length)<<1]}nextInner(i,o){for(this.done=this.lineBreak=!1;;){let s=this.nodes.length-1,v=this.nodes[s],$=this.offsets[s],ae=$>>1,pe=v instanceof _?v.text.length:v.children.length;if(ae==(o>0?pe:0)){if(0==s)return this.done=!0,this.value="",this;o>0&&this.offsets[s-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&$)==(o>0?0:1)){if(this.offsets[s]+=o,0==i)return this.lineBreak=!0,this.value="\n",this;i--}else if(v instanceof _){let _=v.text[ae+(o<0?-1:0)];if(this.offsets[s]+=o,_.length>Math.max(0,i))return this.value=0==i?_:o>0?_.slice(i):_.slice(0,_.length-i),this;i-=_.length}else{let $=v.children[ae+(o<0?-1:0)];i>$.length?(i-=$.length,this.offsets[s]+=o):(o<0&&this.offsets[s]--,this.nodes.push($),this.offsets.push(o>0?1:($ instanceof _?$.text.length:$.children.length)<<1))}}}next(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return i<0&&(this.nextInner(-i,-this.dir),i=this.value.length),this.nextInner(i,this.dir)}}class pe{constructor(i,o,s){this.value="",this.done=!1,this.cursor=new ae(i,o>s?-1:1),this.pos=o>s?i.length:0,this.from=Math.min(o,s),this.to=Math.max(o,s)}nextInner(i,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;i+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let s=o<0?this.pos-this.from:this.to-this.pos;i>s&&(i=s),s-=i;let{value:v}=this.cursor.next(i);return this.pos+=(v.length+i)*o,this.value=v.length<=s?v:o<0?v.slice(v.length-s):v.slice(0,s),this.done=!this.value,this}next(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return i<0?i=Math.max(i,this.from-this.pos):i>0&&(i=Math.min(i,this.to-this.pos)),this.nextInner(i,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class we{constructor(i){this.inner=i,this.afterBreak=!0,this.value="",this.done=!1}next(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{done:o,lineBreak:s,value:v}=this.inner.next(i);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):s?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=v,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(v.prototype[Symbol.iterator]=function(){return this.iter()},ae.prototype[Symbol.iterator]=pe.prototype[Symbol.iterator]=we.prototype[Symbol.iterator]=function(){return this});class _e{constructor(i,o,s,v){this.from=i,this.to=o,this.number=s,this.text=v}get length(){return this.to-this.from}}function clip(i,o,s){return[o=Math.max(0,Math.min(i.length,o)),Math.max(o,Math.min(i.length,s))]}let et="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((i=>i?parseInt(i,36):1));for(let i=1;ii)return et[o-1]<=i;return!1}function isRegionalIndicator(i){return i>=127462&&i<=127487}const tt=8205;function findClusterBreak(i,o){return(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?nextClusterBreak:prevClusterBreak)(i,o,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function nextClusterBreak(i,o,s){if(o==i.length)return o;o&&surrogateLow(i.charCodeAt(o))&&surrogateHigh(i.charCodeAt(o-1))&&o--;let v=codePointAt(i,o);for(o+=codePointSize(v);o=0&&isRegionalIndicator(codePointAt(i,v));)s++,v-=2;if(s%2==0)break;o+=2}}}return o}function prevClusterBreak(i,o,s){for(;o>0;){let v=nextClusterBreak(i,o-2,s);if(v=56320&&i<57344}function surrogateHigh(i){return i>=55296&&i<56320}function codePointAt(i,o){let s=i.charCodeAt(o);if(!surrogateHigh(s)||o+1==i.length)return s;let v=i.charCodeAt(o+1);return surrogateLow(v)?v-56320+(s-55296<<10)+65536:s}function fromCodePoint(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function codePointSize(i){return i<65536?1:2}const nt=/\r\n?|\n/;var rt=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(rt||(rt={}));class it{constructor(i){this.sections=i}get length(){let i=0;for(let o=0;o1&&void 0!==arguments[1]&&arguments[1])}get invertedDesc(){let i=[];for(let o=0;o1&&void 0!==arguments[1]&&arguments[1];return i.empty?this:mapSet(this,i,o)}mapPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rt.Simple,v=0,_=0;for(let $=0;$i)return _+(i-v);_+=ae}else{if(s!=rt.Simple&&we>=i&&(s==rt.TrackDel&&vi||s==rt.TrackBefore&&vi))return null;if(we>i||we==i&&o<0&&!ae)return i==v||o<0?_:_+pe;_+=pe}v=we}if(i>v)throw new RangeError("Position ".concat(i," is out of range for changeset of length ").concat(v));return _}touchesRange(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;for(let s=0,v=0;s=0&&v<=o&&_>=i)return!(vo)||"cover";v=_}return!1}toString(){let i="";for(let o=0;o=0?":"+v:"")}return i}toJSON(){return this.sections}static fromJSON(i){if(!Array.isArray(i)||i.length%2||i.some((i=>"number"!=typeof i)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new it(i)}static create(i){return new it(i)}}class ot extends it{constructor(i,o){super(i),this.inserted=o}apply(i){if(this.length!=i.length)throw new RangeError("Applying change set to a document with the wrong length");return iterChanges(this,((o,s,v,_,$)=>i=i.replace(v,v+(s-o),$)),!1),i}mapDesc(i){return mapSet(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}invert(i){let o=this.sections.slice(),s=[];for(let _=0,$=0;_=0){o[_]=pe,o[_+1]=ae;let we=_>>1;for(;s.length1&&void 0!==arguments[1]&&arguments[1];return i.empty?this:mapSet(this,i,o,!0)}iterChanges(i){iterChanges(this,i,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}get desc(){return it.create(this.sections)}filter(i){let o=[],s=[],v=[],_=new st(this);e:for(let $=0,ae=0;;){let pe=$==i.length?1e9:i[$++];for(;ae0&&addInsert(s,o,_.text),_.forward(i),ae+=i}let we=i[$++];for(;ae>1].toJSON()))}return i}static of(i,o,s){let _=[],$=[],ae=0,pe=null;function flush(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&!_.length)return;aewe||pe<0||we>o)throw new RangeError("Invalid change range ".concat(pe," to ").concat(we," (in doc of length ").concat(o,")"));let et=_e?"string"==typeof _e?v.of(_e.split(s||nt)):_e:v.empty,tt=et.length;if(pe==we&&0==tt)return;peae&&addSection(_,pe-ae,-1),addSection(_,we-pe,tt),addInsert($,_,et),ae=we}}(i),flush(!pe),pe}static empty(i){return new ot(i?[i,-1]:[],[])}static fromJSON(i){if(!Array.isArray(i))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],s=[];for(let _=0;_o&&"string"!=typeof i)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==$.length)o.push($[0],0);else{for(;s.length<_;)s.push(v.empty);s[_]=v.of($.slice(1)),o.push($[0],s[_].length)}}}return new ot(o,s)}static createSet(i,o){return new ot(i,o)}}function addSection(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0==o&&s<=0)return;let _=i.length-2;_>=0&&s<=0&&s==i[_+1]?i[_]+=o:0==o&&0==i[_]?i[_+1]+=s:v?(i[_]+=o,i[_+1]+=s):i.push(o,s)}function addInsert(i,o,s){if(0==s.length)return;let _=o.length-2>>1;if(_>1])),!(s||pe==i.sections.length||i.sections[pe+1]<0);)we=i.sections[pe++],_e=i.sections[pe++];o($,et,ae,tt,nt),$=et,ae=tt}}}function mapSet(i,o,s){let v=[],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,$=new st(i),ae=new st(o);for(let i=-1;;)if(-1==$.ins&&-1==ae.ins){let i=Math.min($.len,ae.len);addSection(v,i,-1),$.forward(i),ae.forward(i)}else if(ae.ins>=0&&($.ins<0||i==$.i||0==$.off&&(ae.len<$.len||ae.len==$.len&&!s))){let o=ae.len;for(addSection(v,ae.ins,-1);o;){let s=Math.min($.len,o);$.ins>=0&&i<$.i&&$.len<=s&&(addSection(v,0,$.ins),_&&addInsert(_,v,$.text),i=$.i),$.forward(s),o-=s}ae.next()}else{if(!($.ins>=0)){if($.done&&ae.done)return _?ot.createSet(v,_):it.create(v);throw new Error("Mismatched change set lengths")}{let o=0,s=$.len;for(;s;)if(-1==ae.ins){let i=Math.min(s,ae.len);o+=i,s-=i,ae.forward(i)}else{if(!(0==ae.ins&&ae.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,_=new st(i),$=new st(o);for(let i=!1;;){if(_.done&&$.done)return v?ot.createSet(s,v):it.create(s);if(0==_.ins)addSection(s,_.len,0,i),_.next();else if(0!=$.len||$.done){if(_.done||$.done)throw new Error("Mismatched change set lengths");{let o=Math.min(_.len2,$.len),ae=s.length;if(-1==_.ins){let _=-1==$.ins?-1:$.off?0:$.ins;addSection(s,o,_,i),v&&_&&addInsert(v,s,$.text)}else-1==$.ins?(addSection(s,_.off?0:_.len,o,i),v&&addInsert(v,s,_.textBit(o))):(addSection(s,_.off?0:_.len,$.off?0:$.ins,i),v&&!$.off&&addInsert(v,s,$.text));i=(_.ins>o||$.ins>=0&&$.len>o)&&(i||s.length>ae),_.forward2(o),$.forward(o)}}else addSection(s,0,$.ins,i),v&&addInsert(v,s,$.text),$.next()}}class st{constructor(i){this.set=i,this.i=0,this.next()}next(){let{sections:i}=this.set;this.i>1;return o>=i.length?v.empty:i[o]}textBit(i){let{inserted:o}=this.set,s=this.i-2>>1;return s>=o.length&&!i?v.empty:o[s].slice(this.off,null==i?void 0:this.off+i)}forward(i){i==this.len?this.next():(this.len-=i,this.off+=i)}forward2(i){-1==this.ins?this.forward(i):i==this.ins?this.next():(this.ins-=i,this.off+=i)}}class dt{constructor(i,o,s){this.from=i,this.to=o,this.flags=s}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let i=7&this.flags;return 7==i?null:i}get goalColumn(){let i=this.flags>>6;return 16777215==i?void 0:i}map(i){let o,s,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?o=s=i.mapPos(this.from,v):(o=i.mapPos(this.from,1),s=i.mapPos(this.to,-1)),o==this.from&&s==this.to?this:new dt(o,s,this.flags)}extend(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i<=this.anchor&&o>=this.anchor)return ut.range(i,o);let s=Math.abs(i-this.anchor)>Math.abs(o-this.anchor)?i:o;return ut.range(this.anchor,s)}eq(i){return this.anchor==i.anchor&&this.head==i.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(i){if(!i||"number"!=typeof i.anchor||"number"!=typeof i.head)throw new RangeError("Invalid JSON representation for SelectionRange");return ut.range(i.anchor,i.head)}static create(i,o,s){return new dt(i,o,s)}}class ut{constructor(i,o){this.ranges=i,this.mainIndex=o}map(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return i.empty?this:ut.create(this.ranges.map((s=>s.map(i,o))),this.mainIndex)}eq(i){if(this.ranges.length!=i.ranges.length||this.mainIndex!=i.mainIndex)return!1;for(let o=0;o1&&void 0!==arguments[1])||arguments[1];return ut.create([i].concat(this.ranges),o?0:this.mainIndex+1)}replaceRange(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,s=this.ranges.slice();return s[o]=i,ut.create(s,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((i=>i.toJSON())),main:this.mainIndex}}static fromJSON(i){if(!i||!Array.isArray(i.ranges)||"number"!=typeof i.main||i.main>=i.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new ut(i.ranges.map((i=>dt.fromJSON(i))),i.main)}static single(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return new ut([ut.range(i,o)],0)}static create(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==i.length)throw new RangeError("A selection needs at least one range");for(let s=0,v=0;v1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0,v=arguments.length>3?arguments[3]:void 0;return dt.create(i,i,(0==o?0:o<0?8:16)|(null==s?7:Math.min(6,s))|(null!=v?v:16777215)<<6)}static range(i,o,s,v){let _=(null!=s?s:16777215)<<6|(null==v?7:Math.min(6,v));return oi?8:0)|_)}static normalized(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=i[o];i.sort(((i,o)=>i.from-o.from)),o=i.indexOf(s);for(let s=1;sv.head?ut.range(ae,$):ut.range($,ae))}}return new ut(i,o)}}function checkSelection(i,o){for(let s of i.ranges)if(s.to>o)throw new RangeError("Selection points outside of document")}let lt=0;class ct{constructor(i,o,s,v,_){this.combine=i,this.compareInput=o,this.compare=s,this.isStatic=v,this.id=lt++,this.default=i([]),this.extensions="function"==typeof _?_(this):_}get reader(){return this}static define(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ct(i.combine||(i=>i),i.compareInput||((i,o)=>i===o),i.compare||(i.combine?(i,o)=>i===o:sameArray),!!i.static,i.enables)}of(i){return new ht([],this,0,i)}compute(i,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new ht(i,this,1,o)}computeN(i,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new ht(i,this,2,o)}from(i,o){return o||(o=i=>i),this.compute([i],(s=>o(s.field(i))))}}function sameArray(i,o){return i==o||i.length==o.length&&i.every(((i,s)=>i===o[s]))}class ht{constructor(i,o,s,v){this.dependencies=i,this.facet=o,this.type=s,this.value=v,this.id=lt++}dynamicSlot(i){var o;let s=this.value,v=this.facet.compareInput,_=this.id,$=i[_]>>1,ae=2==this.type,pe=!1,we=!1,_e=[];for(let s of this.dependencies)"doc"==s?pe=!0:"selection"==s?we=!0:0==(1&(null!==(o=i[s.id])&&void 0!==o?o:1))&&_e.push(i[s.id]);return{create:i=>(i.values[$]=s(i),1),update(i,o){if(pe&&o.docChanged||we&&(o.docChanged||o.selection)||ensureAll(i,_e)){let o=s(i);if(ae?!compareArray(o,i.values[$],v):!v(o,i.values[$]))return i.values[$]=o,1}return 0},reconfigure:(i,o)=>{let pe,we=o.config.address[_];if(null!=we){let _=getAddr(o,we);if(this.dependencies.every((s=>s instanceof ct?o.facet(s)===i.facet(s):!(s instanceof ft)||o.field(s,!1)==i.field(s,!1)))||(ae?compareArray(pe=s(i),_,v):v(pe=s(i),_)))return i.values[$]=_,0}else pe=s(i);return i.values[$]=pe,1}}}}function compareArray(i,o,s){if(i.length!=o.length)return!1;for(let v=0;vi[o.id])),_=s.map((i=>i.type)),$=v.filter((i=>!(1&i))),ae=i[o.id]>>1;function get(i){let s=[];for(let o=0;oi===o),i);return i.provide&&(o.provides=i.provide(o)),o}create(i){let o=i.facet(pt).find((i=>i.field==this));return((null==o?void 0:o.create)||this.createF)(i)}slot(i){let o=i[this.id]>>1;return{create:i=>(i.values[o]=this.create(i),1),update:(i,s)=>{let v=i.values[o],_=this.updateF(v,s);return this.compareF(v,_)?0:(i.values[o]=_,1)},reconfigure:(i,s)=>null!=s.config.address[this.id]?(i.values[o]=s.field(this),0):(i.values[o]=this.create(i),1)}}init(i){return[this,pt.of({field:this,create:i})]}get extension(){return this}}const gt=4,mt=3,yt=2,vt=1;function prec(i){return o=>new bt(o,i)}const Rt={highest:prec(0),high:prec(vt),default:prec(yt),low:prec(mt),lowest:prec(gt)};class bt{constructor(i,o){this.inner=i,this.prec=o}}class Ot{of(i){return new xt(this,i)}reconfigure(i){return Ot.reconfigure.of({compartment:this,extension:i})}get(i){return i.config.compartments.get(this)}}class xt{constructor(i,o){this.compartment=i,this.inner=o}}class wt{constructor(i,o,s,v,_,$){for(this.base=i,this.compartments=o,this.dynamicSlots=s,this.address=v,this.staticValues=_,this.facets=$,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(i,o,s){let v=[],_=Object.create(null),$=new Map;for(let s of flatten(i,o,$))s instanceof ft?v.push(s):(_[s.facet.id]||(_[s.facet.id]=[])).push(s);let ae=Object.create(null),pe=[],we=[];for(let i of v)ae[i.id]=we.length<<1,we.push((o=>i.slot(o)));let _e=null==s?void 0:s.config.facets;for(let i in _){let o=_[i],v=o[0].facet,$=_e&&_e[i]||[];if(o.every((i=>0==i.type)))if(ae[v.id]=pe.length<<1|1,sameArray($,o))pe.push(s.facet(v));else{let i=v.combine(o.map((i=>i.value)));pe.push(s&&v.compare(i,s.facet(v))?s.facet(v):i)}else{for(let i of o)0==i.type?(ae[i.id]=pe.length<<1|1,pe.push(i.value)):(ae[i.id]=we.length<<1,we.push((o=>i.dynamicSlot(o))));ae[v.id]=we.length<<1,we.push((i=>dynamicFacetSlot(i,v,o)))}}let et=we.map((i=>i(ae)));return new wt(i,$,et,ae,pe,_)}}function flatten(i,o,s){let v=[[],[],[],[],[]],_=new Map;return function inner(i,$){let ae=_.get(i);if(null!=ae){if(ae<=$)return;let o=v[ae].indexOf(i);o>-1&&v[ae].splice(o,1),i instanceof xt&&s.delete(i.compartment)}if(_.set(i,$),Array.isArray(i))for(let o of i)inner(o,$);else if(i instanceof xt){if(s.has(i.compartment))throw new RangeError("Duplicate use of compartment in extensions");let v=o.get(i.compartment)||i.inner;s.set(i.compartment,v),inner(v,$)}else if(i instanceof bt)inner(i.inner,i.prec);else if(i instanceof ft)v[$].push(i),i.provides&&inner(i.provides,$);else if(i instanceof ht)v[$].push(i),i.facet.extensions&&inner(i.facet.extensions,yt);else{let o=i.extension;if(!o)throw new Error("Unrecognized extension value in extension set (".concat(i,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));inner(o,$)}}(i,yt),v.reduce(((i,o)=>i.concat(o)))}function ensureAddr(i,o){if(1&o)return 2;let s=o>>1,v=i.status[s];if(4==v)throw new Error("Cyclic dependency between fields and/or facets");if(2&v)return v;i.status[s]=4;let _=i.computeSlot(i,i.config.dynamicSlots[s]);return i.status[s]=2|_}function getAddr(i,o){return 1&o?i.config.staticValues[o>>1]:i.values[o>>1]}const Ct=ct.define(),St=ct.define({combine:i=>i.some((i=>i)),static:!0}),_t=ct.define({combine:i=>i.length?i[0]:void 0,static:!0}),Et=ct.define(),kt=ct.define(),At=ct.define(),Dt=ct.define({combine:i=>!!i.length&&i[0]});class Pt{constructor(i,o){this.type=i,this.value=o}static define(){return new Tt}}class Tt{of(i){return new Pt(this,i)}}class It{constructor(i){this.map=i}of(i){return new Ft(this,i)}}class Ft{constructor(i,o){this.type=i,this.value=o}map(i){let o=this.type.map(this.value,i);return void 0===o?void 0:o==this.value?this:new Ft(this.type,o)}is(i){return this.type==i}static define(){return new It((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||(i=>i))}static mapEffects(i,o){if(!i.length)return i;let s=[];for(let v of i){let i=v.map(o);i&&s.push(i)}return s}}Ft.reconfigure=Ft.define(),Ft.appendConfig=Ft.define();class Nt{constructor(i,o,s,v,_,$){this.startState=i,this.changes=o,this.selection=s,this.effects=v,this.annotations=_,this.scrollIntoView=$,this._doc=null,this._state=null,s&&checkSelection(s,o.newLength),_.some((i=>i.type==Nt.time))||(this.annotations=_.concat(Nt.time.of(Date.now())))}static create(i,o,s,v,_,$){return new Nt(i,o,s,v,_,$)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(i){for(let o of this.annotations)if(o.type==i)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(i){let o=this.annotation(Nt.userEvent);return!(!o||!(o==i||o.length>i.length&&o.slice(0,i.length)==i&&"."==o[i.length]))}}function joinRanges(i,o){let s=[];for(let v=0,_=0;;){let $,ae;if(v=i[v]))$=i[v++],ae=i[v++];else{if(!(_=0;s--){let _=v[s](i);i=_ instanceof Nt?_:Array.isArray(_)&&1==_.length&&_[0]instanceof Nt?_[0]:resolveTransaction(o,asArray(_),!1)}return i}function extendTransaction(i){let o=i.startState,s=o.facet(At),v=i;for(let _=s.length-1;_>=0;_--){let $=s[_](i);$&&Object.keys($).length&&(v=mergeTransaction(v,resolveTransactionInner(o,$,i.changes.newLength),!0))}return v==i?i:Nt.create(o,i.changes,i.selection,v.effects,v.annotations,v.scrollIntoView)}Nt.time=Pt.define(),Nt.userEvent=Pt.define(),Nt.addToHistory=Pt.define(),Nt.remote=Pt.define();const Bt=[];function asArray(i){return null==i?Bt:Array.isArray(i)?i:[i]}var Lt=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(Lt||(Lt={}));const jt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Mt;try{Mt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(i){}function hasWordChar(i){if(Mt)return Mt.test(i);for(let o=0;o"€"&&(s.toUpperCase()!=s.toLowerCase()||jt.test(s)))return!0}return!1}class Qt{constructor(i,o,s,v,_,$){this.config=i,this.doc=o,this.selection=s,this.values=v,this.status=i.statusTemplate.slice(),this.computeSlot=_,$&&($._state=this);for(let i=0;i1&&void 0!==arguments[1])||arguments[1],s=this.config.address[i.id];if(null!=s)return ensureAddr(this,s),getAddr(this,s);if(o)throw new RangeError("Field is not present in this state")}update(){for(var i=arguments.length,o=new Array(i),s=0;s_.set(o,i))),s=null),_.set(o.value.compartment,o.value.extension)):o.is(Ft.reconfigure)?(s=null,v=o.value):o.is(Ft.appendConfig)&&(s=null,v=asArray(v).concat(o.value));if(s)o=i.startState.values.slice();else{s=wt.resolve(v,_,this),o=new Qt(s,this.doc,this.selection,s.dynamicSlots.map((()=>null)),((i,o)=>o.reconfigure(i,this)),null).values}let $=i.startState.facet(St)?i.newSelection:i.newSelection.asSingle();new Qt(s,i.newDoc,$,o,((o,s)=>s.update(o,i)),i)}replaceSelection(i){return"string"==typeof i&&(i=this.toText(i)),this.changeByRange((o=>({changes:{from:o.from,to:o.to,insert:i},range:ut.cursor(o.from+i.length)})))}changeByRange(i){let o=this.selection,s=i(o.ranges[0]),v=this.changes(s.changes),_=[s.range],$=asArray(s.effects);for(let s=1;s0&&void 0!==arguments[0]?arguments[0]:[];return i instanceof ot?i:ot.of(i,this.doc.length,this.facet(Qt.lineSeparator))}toText(i){return v.of(i.split(this.facet(Qt.lineSeparator)||nt))}sliceDoc(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(i,o,this.lineBreak)}facet(i){let o=this.config.address[i.id];return null==o?i.default:(ensureAddr(this,o),getAddr(this,o))}toJSON(i){let o={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(i)for(let s in i){let v=i[s];v instanceof ft&&null!=this.config.address[v.id]&&(o[s]=v.spec.toJSON(this.field(i[s]),this))}return o}static fromJSON(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(!i||"string"!=typeof i.doc)throw new RangeError("Invalid JSON representation for EditorState");let v=[];if(s)for(let o in s)if(Object.prototype.hasOwnProperty.call(i,o)){let _=s[o],$=i[o];v.push(_.init((i=>_.spec.fromJSON($,i))))}return Qt.create({doc:i.doc,selection:ut.fromJSON(i.selection),extensions:o.extensions?v.concat([o.extensions]):v})}static create(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=wt.resolve(i.extensions||[],new Map),s=i.doc instanceof v?i.doc:v.of((i.doc||"").split(o.staticFacet(Qt.lineSeparator)||nt)),_=i.selection?i.selection instanceof ut?i.selection:ut.single(i.selection.anchor,i.selection.head):ut.single(0);return checkSelection(_,s.length),o.staticFacet(St)||(_=_.asSingle()),new Qt(o,s,_,o.dynamicSlots.map((()=>null)),((i,o)=>o.create(i)),null)}get tabSize(){return this.facet(Qt.tabSize)}get lineBreak(){return this.facet(Qt.lineSeparator)||"\n"}get readOnly(){return this.facet(Dt)}phrase(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),v=1;v{if("$"==o)return"$";let v=+(o||1);return!v||v>s.length?i:s[v-1]}))),i}languageDataAt(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,v=[];for(let _ of this.facet(Ct))for(let $ of _(this,o,s))Object.prototype.hasOwnProperty.call($,i)&&v.push($[i]);return v}charCategorizer(i){return o=this.languageDataAt("wordChars",i).join(""),i=>{if(!/\S/.test(i))return Lt.Space;if(hasWordChar(i))return Lt.Word;for(let s=0;s-1)return Lt.Word;return Lt.Other};var o}wordAt(i){let{text:o,from:s,length:v}=this.doc.lineAt(i),_=this.charCategorizer(i),$=i-s,ae=i-s;for(;$>0;){let i=findClusterBreak(o,$,!1);if(_(o.slice(i,$))!=Lt.Word)break;$=i}for(;ae2&&void 0!==arguments[2]?arguments[2]:{},v={};for(let o of i)for(let i of Object.keys(o)){let _=o[i],$=v[i];if(void 0===$)v[i]=_;else if($===_||void 0===_);else{if(!Object.hasOwnProperty.call(s,i))throw new Error("Config merge conflict for field "+i);v[i]=s[i]($,_)}}for(let i in o)void 0===v[i]&&(v[i]=o[i]);return v}Qt.allowMultipleSelections=St,Qt.tabSize=ct.define({combine:i=>i.length?i[0]:4}),Qt.lineSeparator=_t,Qt.readOnly=Dt,Qt.phrases=ct.define({compare(i,o){let s=Object.keys(i),v=Object.keys(o);return s.length==v.length&&s.every((s=>i[s]==o[s]))}}),Qt.languageData=Ct,Qt.changeFilter=Et,Qt.transactionFilter=kt,Qt.transactionExtender=At,Ot.reconfigure=Ft.define();class Vt{eq(i){return this==i}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return Ut.create(i,o,this)}}Vt.prototype.startSide=Vt.prototype.endSide=0,Vt.prototype.point=!1,Vt.prototype.mapMode=rt.TrackDel;class Ut{constructor(i,o,s){this.from=i,this.to=o,this.value=s}static create(i,o,s){return new Ut(i,o,s)}}function cmpRange(i,o){return i.from-o.from||i.value.startSide-o.value.startSide}class Wt{constructor(i,o,s,v){this.from=i,this.to=o,this.value=s,this.maxPoint=v}get length(){return this.to[this.to.length-1]}findIndex(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,_=s?this.to:this.from;for(let $=v,ae=_.length;;){if($==ae)return $;let v=$+ae>>1,pe=_[v]-i||(s?this.value[v].endSide:this.value[v].startSide)-o;if(v==$)return pe>=0?$:ae;pe>=0?ae=v:$=v+1}}between(i,o,s,v){for(let _=this.findIndex(o,-1e9,!0),$=this.findIndex(s,1e9,!1,_);_<$;_++)if(!1===v(this.from[_]+i,this.to[_]+i,this.value[_]))return!1}map(i,o){let s=[],v=[],_=[],$=-1,ae=-1;for(let pe=0;pe_e||we==_e&&et.startSide>0&&et.endSide<=0)continue;(_e-we||et.endSide-et.startSide)<0||($<0&&($=we),et.point&&(ae=Math.max(ae,_e-we)),s.push(et),v.push(we-$),_.push(_e-$))}return{mapped:s.length?new Wt(v,_,s,ae):null,pos:$}}}class $t{constructor(i,o,s,v){this.chunkPos=i,this.chunk=o,this.nextLayer=s,this.maxPoint=v}static create(i,o,s,v){return new $t(i,o,s,v)}get length(){let i=this.chunk.length-1;return i<0?0:Math.max(this.chunkEnd(i),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let i=this.nextLayer.size;for(let o of this.chunk)i+=o.value.length;return i}chunkEnd(i){return this.chunkPos[i]+this.chunk[i].length}update(i){let{add:o=[],sort:s=!1,filterFrom:v=0,filterTo:_=this.length}=i,$=i.filter;if(0==o.length&&!$)return this;if(s&&(o=o.slice().sort(cmpRange)),this.isEmpty)return o.length?$t.of(o):this;let ae=new zt(this,null,-1).goto(0),pe=0,we=[],_e=new qt;for(;ae.value||pe=0){let i=o[pe++];_e.addInner(i.from,i.to,i.value)||we.push(i)}else 1==ae.rangeIndex&&ae.chunkIndexthis.chunkEnd(ae.chunkIndex)||_ae.to||_=_&&i<=_+$.length&&!1===$.between(_,i-_,o-_,s))return}this.nextLayer.between(i,o,s)}}iter(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Zt.from([this]).goto(i)}get isEmpty(){return this.nextLayer==this}static iter(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Zt.from(i).goto(o)}static compare(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,$=i.filter((i=>i.maxPoint>0||!i.isEmpty&&i.maxPoint>=_)),ae=o.filter((i=>i.maxPoint>0||!i.isEmpty&&i.maxPoint>=_)),pe=findSharedChunks($,ae,s),we=new Ht($,pe,_),_e=new Ht(ae,pe,_);s.iterGaps(((i,o,s)=>compare(we,i,_e,o,s,v))),s.empty&&0==s.length&&compare(we,0,_e,0,0,v)}static eq(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3?arguments[3]:void 0;null==v&&(v=999999999);let _=i.filter((i=>!i.isEmpty&&o.indexOf(i)<0)),$=o.filter((o=>!o.isEmpty&&i.indexOf(o)<0));if(_.length!=$.length)return!1;if(!_.length)return!0;let ae=findSharedChunks(_,$),pe=new Ht(_,ae,0).goto(s),we=new Ht($,ae,0).goto(s);for(;;){if(pe.to!=we.to||!sameValues(pe.active,we.active)||pe.point&&(!we.point||!pe.point.eq(we.point)))return!1;if(pe.to>v)return!0;pe.next(),we.next()}}static spans(i,o,s,v){let _=new Ht(i,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(o),$=o,ae=_.openStart;for(;;){let i=Math.min(_.to,s);if(_.point){let s=_.activeForPoint(_.to),pe=_.pointFrom$&&(v.span($,i,_.active,ae),ae=_.openEnd(i));if(_.to>s)return ae+(_.point&&_.to>s?1:0);$=_.to,_.next()}}static of(i){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=new qt;for(let v of i instanceof Ut?[i]:o?lazySort(i):i)s.add(v.from,v.to,v.value);return s.finish()}}function lazySort(i){if(i.length>1)for(let o=i[0],s=1;s0)return i.slice().sort(cmpRange);o=v}return i}$t.empty=new $t([],[],null,-1),$t.empty.nextLayer=$t.empty;class qt{finishChunk(i){this.chunks.push(new Wt(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,i&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(i,o,s){this.addInner(i,o,s)||(this.nextLayer||(this.nextLayer=new qt)).add(i,o,s)}addInner(i,o,s){let v=i-this.lastTo||s.startSide-this.last.endSide;if(v<=0&&(i-this.lastFrom||s.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(v<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=i),this.from.push(i-this.chunkStart),this.to.push(o-this.chunkStart),this.last=s,this.lastFrom=i,this.lastTo=o,this.value.push(s),s.point&&(this.maxPoint=Math.max(this.maxPoint,o-i)),!0)}addChunk(i,o){if((i-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(i);let s=o.value.length-1;return this.last=o.value[s],this.lastFrom=o.from[s]+i,this.lastTo=o.to[s]+i,!0}finish(){return this.finishInner($t.empty)}finishInner(i){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return i;let o=$t.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(i):i,this.setMaxPoint);return this.from=null,o}}function findSharedChunks(i,o,s){let v=new Map;for(let o of i)for(let i=0;i3&&void 0!==arguments[3]?arguments[3]:0;this.layer=i,this.skip=o,this.minPoint=s,this.rank=v}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(i,o,!1),this}gotoInner(i,o,s){for(;this.chunkIndex=this.minPoint)break}}}setRangeIndex(i){if(i==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,v=[];for(let _=0;_=s&&v.push(new zt($,o,s,_));return 1==v.length?v[0]:new Zt(v)}get startSide(){return this.value?this.value.startSide:0}goto(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;for(let s of this.heap)s.goto(i,o);for(let i=this.heap.length>>1;i>=0;i--)heapBubble(this.heap,i);return this.next(),this}forward(i,o){for(let s of this.heap)s.forward(i,o);for(let i=this.heap.length>>1;i>=0;i--)heapBubble(this.heap,i);(this.to-i||this.value.endSide-o)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let i=this.heap[0];this.from=i.from,this.to=i.to,this.value=i.value,this.rank=i.rank,i.value&&i.next(),heapBubble(this.heap,0)}}}function heapBubble(i,o){for(let s=i[o];;){let v=1+(o<<1);if(v>=i.length)break;let _=i[v];if(v+1=0&&(_=i[v+1],v++),s.compare(_)<0)break;i[v]=s,i[o]=_,o=v}}class Ht{constructor(i,o,s){this.minPoint=s,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Zt.from(i,o,s)}goto(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(i,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=i,this.endSide=o,this.openStart=-1,this.next(),this}forward(i,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-i||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(i,o)}removeActive(i){remove(this.active,i),remove(this.activeTo,i),remove(this.activeRank,i),this.minActive=findMinIndex(this.active,this.activeTo)}addActive(i){let o=0,{value:s,to:v,rank:_}=this.cursor;for(;o-1&&(this.activeTo[v]-this.cursor.from||this.active[v].endSide-this.cursor.startSide)<0){if(this.activeTo[v]>i){this.to=this.activeTo[v],this.endSide=this.active[v].endSide;break}this.removeActive(v),s&&remove(s,v)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>i){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let i=this.cursor.value;if(i.point){if(!(o&&this.cursor.to==this.to&&this.cursor.from=0&&s[o]=0&&!(this.activeRank[s]i||this.activeTo[s]==i&&this.active[s].endSide>=this.point.endSide)&&o.push(this.active[s]);return o.reverse()}openEnd(i){let o=0;for(let s=this.activeTo.length-1;s>=0&&this.activeTo[s]>i;s--)o++;return o}}function compare(i,o,s,v,_,$){i.goto(o),s.goto(v);let ae=v+_,pe=v,we=v-o;for(;;){let o=i.to+we-s.to||i.endSide-s.endSide,v=o<0?i.to+we:s.to,_=Math.min(v,ae);if(i.point||s.point?i.point&&s.point&&(i.point==s.point||i.point.eq(s.point))&&sameValues(i.activeForPoint(i.to),s.activeForPoint(s.to))||$.comparePoint(pe,_,i.point,s.point):_>pe&&!sameValues(i.active,s.active)&&$.compareRange(pe,_,i.active,s.active),v>ae)break;pe=v,o<=0&&i.next(),o>=0&&s.next()}}function sameValues(i,o){if(i.length!=o.length)return!1;for(let s=0;s=o;s--)i[s+1]=i[s];i[o]=s}function findMinIndex(i,o){let s=-1,v=1e9;for(let _=0;_2&&void 0!==arguments[2]?arguments[2]:i.length,v=0;for(let _=0;_=o)return v;if(v==i.length)break;_+=9==i.charCodeAt(v)?s-_%s:1,v=findClusterBreak(i,v)}return!0===v?-1:i.length}},function(i,o,s){"use strict";i.exports=s(824)},function(i,o,s){"use strict";(function(i){s.d(o,"a",(function(){return ae})),s.d(o,"b",(function(){return we})),s.d(o,"c",(function(){return et})),s.d(o,"d",(function(){return assert})),s.d(o,"e",(function(){return assertionError})),s.d(o,"f",(function(){return $})),s.d(o,"g",(function(){return base64Encode})),s.d(o,"h",(function(){return contains})),s.d(o,"i",(function(){return createMockUserToken})),s.d(o,"j",(function(){return createSubscribe})),s.d(o,"k",(function(){return deepCopy})),s.d(o,"l",(function(){return deepExtend})),s.d(o,"m",(function(){return errorPrefix})),s.d(o,"n",(function(){return getModularInstance})),s.d(o,"o",(function(){return isAdmin})),s.d(o,"p",(function(){return isBrowser})),s.d(o,"q",(function(){return isEmpty})),s.d(o,"r",(function(){return isMobileCordova})),s.d(o,"s",(function(){return isNode})),s.d(o,"t",(function(){return isNodeSdk})),s.d(o,"u",(function(){return isReactNative})),s.d(o,"v",(function(){return isValidFormat})),s.d(o,"w",(function(){return jsonEval})),s.d(o,"x",(function(){return map})),s.d(o,"y",(function(){return querystring})),s.d(o,"z",(function(){return safeGet})),s.d(o,"A",(function(){return stringLength})),s.d(o,"B",(function(){return stringToByteArray})),s.d(o,"C",(function(){return stringify})),s.d(o,"D",(function(){return validateArgCount})),s.d(o,"E",(function(){return validateCallback})),s.d(o,"F",(function(){return validateContextObject}));var v=s(8),_={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},assert=function(i,o){if(!i)throw assertionError(o)},assertionError=function(i){return new Error("Firebase Database ("+_.SDK_VERSION+") INTERNAL ASSERT FAILED: "+i)},stringToByteArray$1=function(i){for(var o=[],s=0,v=0;v>6|192,o[s++]=63&_|128):55296==(64512&_)&&v+1>18|240,o[s++]=_>>12&63|128,o[s++]=_>>6&63|128,o[s++]=63&_|128):(o[s++]=_>>12|224,o[s++]=_>>6&63|128,o[s++]=63&_|128)}return o},byteArrayToString=function(i){for(var o=[],s=0,v=0;s191&&_<224){var $=i[s++];o[v++]=String.fromCharCode((31&_)<<6|63&$)}else if(_>239&&_<365){var ae=((7&_)<<18|(63&($=i[s++]))<<12|(63&(pe=i[s++]))<<6|63&i[s++])-65536;o[v++]=String.fromCharCode(55296+(ae>>10)),o[v++]=String.fromCharCode(56320+(1023&ae))}else{$=i[s++];var pe=i[s++];o[v++]=String.fromCharCode((15&_)<<12|(63&$)<<6|63&pe)}}return o.join("")},$={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(i,o){if(!Array.isArray(i))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var s=o?this.byteToCharMapWebSafe_:this.byteToCharMap_,v=[],_=0;_>2,tt=(3&$)<<4|pe>>4,nt=(15&pe)<<2|_e>>6,rt=63&_e;we||(rt=64,ae||(nt=64)),v.push(s[et],s[tt],s[nt],s[rt])}return v.join("")},encodeString:function(i,o){return this.HAS_NATIVE_SUPPORT&&!o?btoa(i):this.encodeByteArray(stringToByteArray$1(i),o)},decodeString:function(i,o){return this.HAS_NATIVE_SUPPORT&&!o?atob(i):byteArrayToString(this.decodeStringToByteArray(i,o))},decodeStringToByteArray:function(i,o){this.init_();for(var s=o?this.charToByteMapWebSafe_:this.charToByteMap_,v=[],_=0;_>4;if(v.push(_e),64!==pe){var et=ae<<4&240|pe>>2;if(v.push(et),64!==we){var tt=pe<<6&192|we;v.push(tt)}}}return v},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var i=0;i=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}},base64Encode=function(i){var o=stringToByteArray$1(i);return $.encodeByteArray(o,!0)},base64urlEncodeWithoutPadding=function(i){return base64Encode(i).replace(/\./g,"")},base64Decode=function(i){try{return $.decodeString(i,!0)}catch(i){console.error("base64Decode failed: ",i)}return null};function deepCopy(i){return deepExtend(void 0,i)}function deepExtend(i,o){if(!(o instanceof Object))return o;switch(o.constructor){case Date:return new Date(o.getTime());case Object:void 0===i&&(i={});break;case Array:i=[];break;default:return o}for(var s in o)o.hasOwnProperty(s)&&"__proto__"!==s&&(i[s]=deepExtend(i[s],o[s]));return i}var ae=function(){function Deferred(){var i=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(o,s){i.resolve=o,i.reject=s}))}return Deferred.prototype.wrapCallback=function(i){var o=this;return function(s,v){s?o.reject(s):o.resolve(v),"function"==typeof i&&(o.promise.catch((function(){})),1===i.length?i(s):i(s,v))}},Deferred}();function createMockUserToken(i,o){if(i.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var s=o||"demo-project",_=i.iat||0,$=i.sub||i.user_id;if(!$)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var ae=Object(v.__assign)({iss:"https://securetoken.google.com/"+s,aud:s,iat:_,exp:_+3600,auth_time:_,sub:$,user_id:$,firebase:{sign_in_provider:"custom",identities:{}}},i);return[base64urlEncodeWithoutPadding(JSON.stringify({alg:"none",type:"JWT"})),base64urlEncodeWithoutPadding(JSON.stringify(ae)),""].join(".")}function getUA(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function isMobileCordova(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA())}function isNode(){try{return"[object process]"===Object.prototype.toString.call(i.process)}catch(i){return!1}}function isBrowser(){return"object"==typeof self&&self.self===self}function isReactNative(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function isNodeSdk(){return!0===_.NODE_CLIENT||!0===_.NODE_ADMIN}var pe=function(i){function FirebaseError(o,s,v){var _=i.call(this,s)||this;return _.code=o,_.customData=v,_.name="FirebaseError",Object.setPrototypeOf(_,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(_,we.prototype.create),_}return Object(v.__extends)(FirebaseError,i),FirebaseError}(Error),we=function(){function ErrorFactory(i,o,s){this.service=i,this.serviceName=o,this.errors=s}return ErrorFactory.prototype.create=function(i){for(var o=[],s=1;s"}))}var _e=/\{\$([^}]+)}/g;function jsonEval(i){return JSON.parse(i)}function stringify(i){return JSON.stringify(i)}var decode=function(i){var o={},s={},v={},_="";try{var $=i.split(".");o=jsonEval(base64Decode($[0])||""),s=jsonEval(base64Decode($[1])||""),_=$[2],v=s.d||{},delete s.d}catch(i){}return{header:o,claims:s,data:v,signature:_}},isValidFormat=function(i){var o=decode(i).claims;return!!o&&"object"==typeof o&&o.hasOwnProperty("iat")},isAdmin=function(i){var o=decode(i).claims;return"object"==typeof o&&!0===o.admin};function contains(i,o){return Object.prototype.hasOwnProperty.call(i,o)}function safeGet(i,o){return Object.prototype.hasOwnProperty.call(i,o)?i[o]:void 0}function isEmpty(i){for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o))return!1;return!0}function map(i,o,s){var v={};for(var _ in i)Object.prototype.hasOwnProperty.call(i,_)&&(v[_]=o.call(s,i[_],_,i));return v}function querystring(i){for(var o=[],_loop_1=function(i,s){Array.isArray(s)?s.forEach((function(s){o.push(encodeURIComponent(i)+"="+encodeURIComponent(s))})):o.push(encodeURIComponent(i)+"="+encodeURIComponent(s))},s=0,v=Object.entries(i);s>>31)}var $,ae,pe=this.chain_[0],we=this.chain_[1],_e=this.chain_[2],et=this.chain_[3],tt=this.chain_[4];for(v=0;v<80;v++){v<40?v<20?($=et^we&(_e^et),ae=1518500249):($=we^_e^et,ae=1859775393):v<60?($=we&_e|et&(we|_e),ae=2400959708):($=we^_e^et,ae=3395469782);_=(pe<<5|pe>>>27)+$+tt+ae+s[v]&4294967295;tt=et,et=_e,_e=4294967295&(we<<30|we>>>2),we=pe,pe=_}this.chain_[0]=this.chain_[0]+pe&4294967295,this.chain_[1]=this.chain_[1]+we&4294967295,this.chain_[2]=this.chain_[2]+_e&4294967295,this.chain_[3]=this.chain_[3]+et&4294967295,this.chain_[4]=this.chain_[4]+tt&4294967295},Sha1.prototype.update=function(i,o){if(null!=i){void 0===o&&(o=i.length);for(var s=o-this.blockSize,v=0,_=this.buf_,$=this.inbuf_;v=56;s--)this.buf_[s]=255&o,o/=256;this.compress_(this.buf_);var v=0;for(s=0;s<5;s++)for(var _=24;_>=0;_-=8)i[v]=this.chain_[s]>>_&255,++v;return i},Sha1}();function createSubscribe(i,o){var s=new tt(i,o);return s.subscribe.bind(s)}var tt=function(){function ObserverProxy(i,o){var s=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=o,this.task.then((function(){i(s)})).catch((function(i){s.error(i)}))}return ObserverProxy.prototype.next=function(i){this.forEachObserver((function(o){o.next(i)}))},ObserverProxy.prototype.error=function(i){this.forEachObserver((function(o){o.error(i)})),this.close(i)},ObserverProxy.prototype.complete=function(){this.forEachObserver((function(i){i.complete()})),this.close()},ObserverProxy.prototype.subscribe=function(i,o,s){var v,_=this;if(void 0===i&&void 0===o&&void 0===s)throw new Error("Missing Observer.");void 0===(v=implementsAnyMethods(i,["next","error","complete"])?i:{next:i,error:o,complete:s}).next&&(v.next=noop),void 0===v.error&&(v.error=noop),void 0===v.complete&&(v.complete=noop);var $=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{_.finalError?v.error(_.finalError):v.complete()}catch(i){}})),this.observers.push(v),$},ObserverProxy.prototype.unsubscribeOne=function(i){void 0!==this.observers&&void 0!==this.observers[i]&&(delete this.observers[i],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},ObserverProxy.prototype.forEachObserver=function(i){if(!this.finalized)for(var o=0;os&&(_=0===s?"none":"no more than "+s),_)throw new Error(i+" failed: Was called with "+v+(1===v?" argument.":" arguments.")+" Expects "+_+".")};function errorPrefix(i,o){return i+" failed: "+o+" argument "}function validateCallback(i,o,s,v){if((!v||s)&&"function"!=typeof s)throw new Error(errorPrefix(i,o)+"must be a valid function.")}function validateContextObject(i,o,s,v){if((!v||s)&&("object"!=typeof s||null===s))throw new Error(errorPrefix(i,o)+"must be a valid context object.")}var stringToByteArray=function(i){for(var o=[],s=0,v=0;v=55296&&_<=56319){var $=_-55296;v++,assert(v>6|192,o[s++]=63&_|128):_<65536?(o[s++]=_>>12|224,o[s++]=_>>6&63|128,o[s++]=63&_|128):(o[s++]=_>>18|240,o[s++]=_>>12&63|128,o[s++]=_>>6&63|128,o[s++]=63&_|128)}return o},stringLength=function(i){for(var o=0,s=0;s=55296&&v<=56319?(o+=4,s++):o+=3}return o};function getModularInstance(i){return i&&i._delegate?i._delegate:i}}).call(this,s(23))},function(i,o,s){"use strict";s.d(o,"a",(function(){return highlightTree})),s.d(o,"b",(function(){return styleTags})),s.d(o,"c",(function(){return tagHighlighter})),s.d(o,"d",(function(){return yt}));var v=s(11);let _=0;class ${constructor(i,o,s){this.set=i,this.base=o,this.modified=s,this.id=_++}static define(i){if(null==i?void 0:i.base)throw new Error("Can not derive from a modified tag");let o=new $([],null,[]);if(o.set.push(o),i)for(let s of i.set)o.set.push(s);return o}static defineModifier(){let i=new pe;return o=>o.modified.indexOf(i)>-1?o:pe.get(o.base||o,o.modified.concat(i).sort(((i,o)=>i.id-o.id)))}}let ae=0;class pe{constructor(){this.instances=[],this.id=ae++}static get(i,o){if(!o.length)return i;let s=o[0].instances.find((s=>{return s.base==i&&(v=o,_=s.modified,v.length==_.length&&v.every(((i,o)=>i==_[o])));var v,_}));if(s)return s;let v=[],_=new $(v,i,o);for(let i of o)i.instances.push(_);let ae=powerSet(o);for(let o of i.set)if(!o.modified.length)for(let i of ae)v.push(pe.get(o,i));return _}}function powerSet(i){let o=[[]];for(let s=0;so.length-i.length))}function styleTags(i){let o=Object.create(null);for(let s in i){let v=i[s];Array.isArray(v)||(v=[v]);for(let i of s.split(" "))if(i){let s=[],_=2,$=i;for(let o=0;;){if("..."==$&&o>0&&o+3==i.length){_=1;break}let v=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec($);if(!v)throw new RangeError("Invalid path: "+i);if(s.push("*"==v[0]?"":'"'==v[0][0]?JSON.parse(v[0]):v[0]),o+=v[0].length,o==i.length)break;let ae=i[o++];if(o==i.length&&"!"==ae){_=0;break}if("/"!=ae)throw new RangeError("Invalid path: "+i);$=i.slice(o)}let ae=s.length-1,pe=s[ae];if(!pe)throw new RangeError("Invalid path: "+i);let we=new _e(v,_,ae>0?s.slice(0,ae):null);o[pe]=we.sort(o[pe])}}return we.add(o)}const we=new v.c;class _e{constructor(i,o,s,v){this.tags=i,this.mode=o,this.context=s,this.next=v}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(i){return!i||i.depth{let o=_;for(let v of i)for(let i of v.set){let v=s[i.id];if(v){o=o?o+" "+v:v;break}}return o},scope:v}}function highlightTags(i,o){let s=null;for(let v of i){let i=v.style(o);i&&(s=s?s+" "+i:i)}return s}function highlightTree(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,_=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.length,$=new et(v,Array.isArray(o)?o:[o],s);$.highlightRange(i.cursor(),v,_,"",$.highlighters),$.flush(_)}_e.empty=new _e([],2,null);class et{constructor(i,o,s){this.at=i,this.highlighters=o,this.span=s,this.class=""}startSpan(i,o){o!=this.class&&(this.flush(i),i>this.at&&(this.at=i),this.class=o)}flush(i){i>this.at&&this.class&&this.span(this.at,i,this.class)}highlightRange(i,o,s,_,$){let{type:ae,from:pe,to:we}=i;if(pe>=s||we<=o)return;ae.isTop&&($=this.highlighters.filter((i=>!i.scope||i.scope(ae))));let et=_,tt=getStyleTags(i)||_e.empty,nt=highlightTags($,tt.tags);if(nt&&(et&&(et+=" "),et+=nt,1==tt.mode&&(_+=(_?" ":"")+nt)),this.startSpan(Math.max(o,pe),et),tt.opaque)return;let rt=i.tree&&i.tree.prop(v.c.mounted);if(rt&&rt.overlay){let v=i.node.enter(rt.overlay[0].from+pe,1),ae=this.highlighters.filter((i=>!i.scope||i.scope(rt.tree.type))),_e=i.firstChild();for(let tt=0,nt=pe;;tt++){let it=tt=ot)&&i.nextSibling()););if(!it||ot>s)break;nt=it.to+pe,nt>o&&(this.highlightRange(v.cursor(),Math.max(o,it.from+pe),Math.min(s,nt),"",ae),this.startSpan(Math.min(s,nt),et))}_e&&i.parent()}else if(i.firstChild()){rt&&(_="");do{if(!(i.to<=o)){if(i.from>=s)break;this.highlightRange(i,o,s,_,$),this.startSpan(Math.min(s,i.to),et)}}while(i.nextSibling());i.parent()}}}function getStyleTags(i){let o=i.type.prop(we);for(;o&&o.context&&!i.matchContext(o.context);)o=o.next;return o||null}const tt=$.define,nt=tt(),rt=tt(),it=tt(rt),ot=tt(rt),st=tt(),dt=tt(st),ut=tt(st),lt=tt(),ct=tt(lt),ht=tt(),pt=tt(),ft=tt(),gt=tt(ft),mt=tt(),yt={comment:nt,lineComment:tt(nt),blockComment:tt(nt),docComment:tt(nt),name:rt,variableName:tt(rt),typeName:it,tagName:tt(it),propertyName:ot,attributeName:tt(ot),className:tt(rt),labelName:tt(rt),namespace:tt(rt),macroName:tt(rt),literal:st,string:dt,docString:tt(dt),character:tt(dt),attributeValue:tt(dt),number:ut,integer:tt(ut),float:tt(ut),bool:tt(st),regexp:tt(st),escape:tt(st),color:tt(st),url:tt(st),keyword:ht,self:tt(ht),null:tt(ht),atom:tt(ht),unit:tt(ht),modifier:tt(ht),operatorKeyword:tt(ht),controlKeyword:tt(ht),definitionKeyword:tt(ht),moduleKeyword:tt(ht),operator:pt,derefOperator:tt(pt),arithmeticOperator:tt(pt),logicOperator:tt(pt),bitwiseOperator:tt(pt),compareOperator:tt(pt),updateOperator:tt(pt),definitionOperator:tt(pt),typeOperator:tt(pt),controlOperator:tt(pt),punctuation:ft,separator:tt(ft),bracket:gt,angleBracket:tt(gt),squareBracket:tt(gt),paren:tt(gt),brace:tt(gt),content:lt,heading:ct,heading1:tt(ct),heading2:tt(ct),heading3:tt(ct),heading4:tt(ct),heading5:tt(ct),heading6:tt(ct),contentSeparator:tt(lt),list:tt(lt),quote:tt(lt),emphasis:tt(lt),strong:tt(lt),link:tt(lt),monospace:tt(lt),strikethrough:tt(lt),inserted:tt(),deleted:tt(),changed:tt(),invalid:tt(),meta:mt,documentMeta:tt(mt),annotation:tt(mt),processingInstruction:tt(mt),definition:$.defineModifier(),constant:$.defineModifier(),function:$.defineModifier(),standard:$.defineModifier(),local:$.defineModifier(),special:$.defineModifier()};tagHighlighter([{tag:yt.link,class:"tok-link"},{tag:yt.heading,class:"tok-heading"},{tag:yt.emphasis,class:"tok-emphasis"},{tag:yt.strong,class:"tok-strong"},{tag:yt.keyword,class:"tok-keyword"},{tag:yt.atom,class:"tok-atom"},{tag:yt.bool,class:"tok-bool"},{tag:yt.url,class:"tok-url"},{tag:yt.labelName,class:"tok-labelName"},{tag:yt.inserted,class:"tok-inserted"},{tag:yt.deleted,class:"tok-deleted"},{tag:yt.literal,class:"tok-literal"},{tag:yt.string,class:"tok-string"},{tag:yt.number,class:"tok-number"},{tag:[yt.regexp,yt.escape,yt.special(yt.string)],class:"tok-string2"},{tag:yt.variableName,class:"tok-variableName"},{tag:yt.local(yt.variableName),class:"tok-variableName tok-local"},{tag:yt.definition(yt.variableName),class:"tok-variableName tok-definition"},{tag:yt.special(yt.variableName),class:"tok-variableName2"},{tag:yt.definition(yt.propertyName),class:"tok-propertyName tok-definition"},{tag:yt.typeName,class:"tok-typeName"},{tag:yt.namespace,class:"tok-namespace"},{tag:yt.className,class:"tok-className"},{tag:yt.macroName,class:"tok-macroName"},{tag:yt.propertyName,class:"tok-propertyName"},{tag:yt.operator,class:"tok-operator"},{tag:yt.comment,class:"tok-comment"},{tag:yt.meta,class:"tok-meta"},{tag:yt.invalid,class:"tok-invalid"},{tag:yt.punctuation,class:"tok-punctuation"}])},function(i,o,s){"use strict";s.d(o,"a",(function(){return Dt})),s.d(o,"b",(function(){return ca})),s.d(o,"c",(function(){return _i})),s.d(o,"d",(function(){return xs})),s.d(o,"e",(function(){return Xt})),s.d(o,"f",(function(){return kt})),s.d(o,"g",(function(){return crosshairCursor})),s.d(o,"h",(function(){return drawSelection})),s.d(o,"i",(function(){return dropCursor})),s.d(o,"j",(function(){return getPanel})),s.d(o,"k",(function(){return getTooltip})),s.d(o,"l",(function(){return dist_gutter})),s.d(o,"m",(function(){return highlightActiveLine})),s.d(o,"n",(function(){return highlightActiveLineGutter})),s.d(o,"o",(function(){return highlightSpecialChars})),s.d(o,"p",(function(){return hoverTooltip})),s.d(o,"q",(function(){return oo})),s.d(o,"r",(function(){return lineNumbers})),s.d(o,"s",(function(){return logException})),s.d(o,"t",(function(){return placeholder})),s.d(o,"u",(function(){return rectangularSelection})),s.d(o,"v",(function(){return runScopeHandlers})),s.d(o,"w",(function(){return Os})),s.d(o,"x",(function(){return cs}));for(var v=s(3),_=s(36),$={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ae={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pe="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),we="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),_e=0;_e<10;_e++)$[48+_e]=$[96+_e]=String(_e);for(_e=1;_e<=24;_e++)$[_e+111]="F"+_e;for(_e=65;_e<=90;_e++)$[_e]=String.fromCharCode(_e+32),ae[_e]=String.fromCharCode(_e);for(var et in $)ae.hasOwnProperty(et)||(ae[et]=$[et]);function keyName(i){var o=!(pe&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||we&&i.shiftKey&&i.key&&1==i.key.length||"Unidentified"==i.key)&&i.key||(i.shiftKey?ae:$)[i.keyCode]||i.key||"Unidentified";return"Esc"==o&&(o="Escape"),"Del"==o&&(o="Delete"),"Left"==o&&(o="ArrowLeft"),"Up"==o&&(o="ArrowUp"),"Right"==o&&(o="ArrowRight"),"Down"==o&&(o="ArrowDown"),o}function getSelection(i){let o;return o=11==i.nodeType?i.getSelection?i:i.ownerDocument:i,o.getSelection()}function contains(i,o){return!!o&&(i==o||i.contains(1!=o.nodeType?o.parentNode:o))}function deepActiveElement(i){let o=i.activeElement;for(;o&&o.shadowRoot;)o=o.shadowRoot.activeElement;return o}function hasSelection(i,o){if(!o.anchorNode)return!1;try{return contains(i,o.anchorNode)}catch(i){return!1}}function clientRectsFor(i){return 3==i.nodeType?textRange(i,0,i.nodeValue.length).getClientRects():1==i.nodeType?i.getClientRects():[]}function isEquivalentPosition(i,o,s,v){return!!s&&(scanFor(i,o,s,v,-1)||scanFor(i,o,s,v,1))}function domIndex(i){for(var o=0;;o++)if(!(i=i.previousSibling))return o}function scanFor(i,o,s,v,_){for(;;){if(i==s&&o==v)return!0;if(o==(_<0?0:maxOffset(i))){if("DIV"==i.nodeName)return!1;let s=i.parentNode;if(!s||1!=s.nodeType)return!1;o=domIndex(i)+(_<0?0:1),i=s}else{if(1!=i.nodeType)return!1;if(1==(i=i.childNodes[o+(_<0?-1:0)]).nodeType&&"false"==i.contentEditable)return!1;o=_<0?maxOffset(i):0}}}function maxOffset(i){return 3==i.nodeType?i.nodeValue.length:i.childNodes.length}function flattenRect(i,o){let s=o?i.left:i.right;return{left:s,right:s,top:i.top,bottom:i.bottom}}function windowRect(i){return{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function getScale(i,o){let s=o.width/i.offsetWidth,v=o.height/i.offsetHeight;return(s>.995&&s<1.005||!isFinite(s)||Math.abs(o.width-i.offsetWidth)<1)&&(s=1),(v>.995&&v<1.005||!isFinite(v)||Math.abs(o.height-i.offsetHeight)<1)&&(v=1),{scaleX:s,scaleY:v}}function scrollRectIntoView(i,o,s,v,_,$,ae,pe){let we=i.ownerDocument,_e=we.defaultView||window;for(let et=i,tt=!1;et&&!tt;)if(1==et.nodeType){let i,nt=et==we.body,rt=1,it=1;if(nt)i=windowRect(_e);else{if(/^(fixed|sticky)$/.test(getComputedStyle(et).position)&&(tt=!0),et.scrollHeight<=et.clientHeight&&et.scrollWidth<=et.clientWidth){et=et.assignedSlot||et.parentNode;continue}let o=et.getBoundingClientRect();({scaleX:rt,scaleY:it}=getScale(et,o)),i={left:o.left,right:o.left+et.clientWidth*rt,top:o.top,bottom:o.top+et.clientHeight*it}}let ot=0,st=0;if("nearest"==_)o.top0&&o.bottom>i.bottom+st&&(st=o.bottom-i.bottom+st+ae)):o.bottom>i.bottom&&(st=o.bottom-i.bottom+ae,s<0&&o.top-st0&&o.right>i.right+ot&&(ot=o.right-i.right+ot+$)):o.right>i.right&&(ot=o.right-i.right+$,s<0&&o.lefts.clientHeight||s.scrollWidth>s.clientWidth)return s;s=s.assignedSlot||s.parentNode}else{if(11!=s.nodeType)break;s=s.host}return null}class tt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(i){return this.anchorNode==i.anchorNode&&this.anchorOffset==i.anchorOffset&&this.focusNode==i.focusNode&&this.focusOffset==i.focusOffset}setRange(i){let{anchorNode:o,focusNode:s}=i;this.set(o,Math.min(i.anchorOffset,o?maxOffset(o):0),s,Math.min(i.focusOffset,s?maxOffset(s):0))}set(i,o,s,v){this.anchorNode=i,this.anchorOffset=o,this.focusNode=s,this.focusOffset=v}}let nt,rt=null;function focusPreventScroll(i){if(i.setActive)return i.setActive();if(rt)return i.focus(rt);let o=[];for(let s=i;s&&(o.push(s,s.scrollTop,s.scrollLeft),s!=s.ownerDocument);s=s.parentNode);if(i.focus(null==rt?{get preventScroll(){return rt={preventScroll:!0},!0}}:void 0),!rt){rt=!1;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:o,v=nt||(nt=document.createRange());return v.setEnd(i,s),v.setStart(i,o),v}function dispatchKey(i,o,s){let v={key:o,code:o,keyCode:s,which:s,cancelable:!0},_=new KeyboardEvent("keydown",v);_.synthetic=!0,i.dispatchEvent(_);let $=new KeyboardEvent("keyup",v);return $.synthetic=!0,i.dispatchEvent($),_.defaultPrevented||$.defaultPrevented}function getRoot(i){for(;i;){if(i&&(9==i.nodeType||11==i.nodeType&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}function clearAttributes(i){for(;i.attributes.length;)i.removeAttributeNode(i.attributes[0])}function atElementStart(i,o){let s=o.focusNode,v=o.focusOffset;if(!s||o.anchorNode!=s||o.anchorOffset!=v)return!1;for(v=Math.min(v,maxOffset(s));;)if(v){if(1!=s.nodeType)return!1;let i=s.childNodes[v-1];"false"==i.contentEditable?v--:(s=i,v=maxOffset(s))}else{if(s==i)return!0;v=domIndex(s),s=s.parentNode}}function isScrolledToBottom(i){return i.scrollTop>Math.max(1,i.scrollHeight-i.clientHeight-4)}class it{constructor(i,o){let s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.node=i,this.offset=o,this.precise=s}static before(i,o){return new it(i.parentNode,domIndex(i),o)}static after(i,o){return new it(i.parentNode,domIndex(i)+1,o)}}const ot=[];class st{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(i){let o=this.posAtStart;for(let s of this.children){if(s==i)return o;o+=s.length+s.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(i){return this.posBefore(i)+i.length}sync(i,o){if(2&this.flags){let s,v=this.dom,_=null;for(let $ of this.children){if(7&$.flags){if(!$.dom&&(s=_?_.nextSibling:v.firstChild)){let i=st.get(s);(!i||!i.parent&&i.canReuseDOM($))&&$.reuseDOM(s)}$.sync(i,o),$.flags&=-8}if(s=_?_.nextSibling:v.firstChild,o&&!o.written&&o.node==v&&s!=$.dom&&(o.written=!0),$.dom.parentNode==v)for(;s&&s!=$.dom;)s=rm$1(s);else v.insertBefore($.dom,s);_=$.dom}for(s=_?_.nextSibling:v.firstChild,s&&o&&o.node==v&&(o.written=!0);s;)s=rm$1(s)}else if(1&this.flags)for(let s of this.children)7&s.flags&&(s.sync(i,o),s.flags&=-8)}reuseDOM(i){}localPosFromDOM(i,o){let s;if(i==this.dom)s=this.dom.childNodes[o];else{let v=0==maxOffset(i)?0:0==o?-1:1;for(;;){let o=i.parentNode;if(o==this.dom)break;0==v&&o.firstChild!=o.lastChild&&(v=i==o.firstChild?-1:1),i=o}s=v<0?i:i.nextSibling}if(s==this.dom.firstChild)return 0;for(;s&&!st.get(s);)s=s.nextSibling;if(!s)return this.length;for(let i=0,o=0;;i++){let v=this.children[i];if(v.dom==s)return o;o+=v.length+v.breakAfter}}domBoundsAround(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=-1,_=-1,$=-1,ae=-1;for(let pe=0,we=s,_e=s;peo)return s.domBoundsAround(i,o,we);if(et>=i&&-1==v&&(v=pe,_=we),we>o&&s.dom.parentNode==this.dom){$=pe,ae=_e;break}_e=et,we=et+s.breakAfter}return{from:_,to:ae<0?s+this.length:ae,startDOM:(v?this.children[v-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:$=0?this.children[$].dom:null}}markDirty(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.flags|=2,this.markParentsDirty(i)}markParentsDirty(i){for(let o=this.parent;o;o=o.parent){if(i&&(o.flags|=2),1&o.flags)return;o.flags|=1,i=!1}}setParent(i){this.parent!=i&&(this.parent=i,7&this.flags&&this.markParentsDirty(!0))}setDOM(i){this.dom!=i&&(this.dom&&(this.dom.cmView=null),this.dom=i,i.cmView=this)}get rootView(){for(let i=this;;){let o=i.parent;if(!o)return i;i=o}}replaceChildren(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot;this.markDirty();for(let v=i;v0&&void 0!==arguments[0]?arguments[0]:this.length;return new dt(this.children,i,this.children.length)}childPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(i,o)}toString(){let i=this.constructor.name.replace("View","");return i+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==i?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(i){return i.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(i,o,s,v,_,$){return!1}become(i){return!1}canReuseDOM(i){return i.constructor==this.constructor&&!(8&(this.flags|i.flags))}getSide(){return 0}destroy(){for(let i of this.children)i.parent==this&&i.destroy();this.parent=null}}function rm$1(i){let o=i.nextSibling;return i.parentNode.removeChild(i),o}st.prototype.breakAfter=0;class dt{constructor(i,o,s){this.children=i,this.pos=o,this.i=s,this.off=0}findPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(;;){if(i>this.pos||i==this.pos&&(o>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=i-this.pos,this;let s=this.children[--this.i];this.pos-=s.length+s.breakAfter}}}function replaceRange(i,o,s,v,_,$,ae,pe,we){let{children:_e}=i,et=_e.length?_e[o]:null,tt=$.length?$[$.length-1]:null,nt=tt?tt.breakAfter:ae;if(!(o==v&&et&&!ae&&!nt&&$.length<2&&et.merge(s,_,$.length?tt:null,0==s,pe,we))){if(v<_e.length){let i=_e[v];i&&(_0&&(!ae&&$.length&&et.merge(s,et.length,$[0],!1,pe,0)?et.breakAfter=$.shift().breakAfter:(s2);var bt={mac:Rt||/Mac/.test(ut.platform),windows:/Win/.test(ut.platform),linux:/Linux|X11/.test(ut.platform),ie:ft,ie_version:ht?lt.documentMode||6:pt?+pt[1]:ct?+ct[1]:0,gecko:gt,gecko_version:gt?+(/Firefox\/(\d+)/.exec(ut.userAgent)||[0,0])[1]:0,chrome:!!mt,chrome_version:mt?+mt[1]:0,ios:Rt,android:/Android\b/.test(ut.userAgent),webkit:yt,safari:vt,webkit_version:yt?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=lt.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Ot extends st{constructor(i){super(),this.text=i}get length(){return this.text.length}createDOM(i){this.setDOM(i||document.createTextNode(this.text))}sync(i,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(i){3==i.nodeType&&this.createDOM(i)}merge(i,o,s){return!(8&this.flags||s&&(!(s instanceof Ot)||this.length-(o-i)+s.length>256||8&s.flags))&&(this.text=this.text.slice(0,i)+(s?s.text:"")+this.text.slice(o),this.markDirty(),!0)}split(i){let o=new Ot(this.text.slice(i));return this.text=this.text.slice(0,i),this.markDirty(),o.flags|=8&this.flags,o}localPosFromDOM(i,o){return i==this.dom?o:o?this.text.length:0}domAtPos(i){return new it(this.dom,i)}domBoundsAround(i,o,s){return{from:s,to:s+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(i,o){return textCoords(this.dom,i,o)}}class xt extends st{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(),this.mark=i,this.children=o,this.length=s;for(let i of o)i.setParent(this)}setAttrs(i){if(clearAttributes(i),this.mark.class&&(i.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)i.setAttribute(o,this.mark.attrs[o]);return i}canReuseDOM(i){return super.canReuseDOM(i)&&!(8&(this.flags|i.flags))}reuseDOM(i){i.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(i),this.flags|=6)}sync(i,o){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(i,o)}merge(i,o,s,v,_,$){return(!s||!(!(s instanceof xt&&s.mark.eq(this.mark))||i&&_<=0||oi&&o.push(s=i&&(v=_),s=ae,_++}let $=this.length-i;return this.length=i,v>-1&&(this.children.length=v,this.markDirty()),new xt(this.mark,o,$)}domAtPos(i){return inlineDOMAtPos(this,i)}coordsAt(i,o){return coordsInChildren(this,i,o)}}function textCoords(i,o,s){let v=i.nodeValue.length;o>v&&(o=v);let _=o,$=o,ae=0;0==o&&s<0||o==v&&s>=0?bt.chrome||bt.gecko||(o?(_--,ae=1):$=0)?0:pe.length-1];return bt.safari&&!ae&&0==we.width&&(we=Array.prototype.find.call(pe,(i=>i.width))||we),ae?flattenRect(we,ae<0):we||null}class wt extends st{static create(i,o,s){return new wt(i,o,s)}constructor(i,o,s){super(),this.widget=i,this.length=o,this.side=s,this.prevWidget=null}split(i){let o=wt.create(this.widget,this.length-i,this.side);return this.length-=i,o}sync(i){this.dom&&this.widget.updateDOM(this.dom,i)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(i)),this.dom.contentEditable="false")}getSide(){return this.side}merge(i,o,s,v,_,$){return!(s&&(!(s instanceof wt&&this.widget.compare(s.widget))||i>0&&_<=0||o0)?it.before(this.dom):it.after(this.dom,i==this.length)}domBoundsAround(){return null}coordsAt(i,o){let s=this.widget.coordsAt(this.dom,i,o);if(s)return s;let v=this.dom.getClientRects(),_=null;if(!v.length)return null;let $=this.side?this.side<0:i>0;for(let o=$?v.length-1:0;_=v[o],!(i>0?0==o:o==v.length-1||_.top<_.bottom);o+=$?-1:1);return flattenRect(_,!$)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Ct extends st{constructor(i){super(),this.side=i}get length(){return 0}merge(){return!1}become(i){return i instanceof Ct&&i.side==this.side}split(){return new Ct(this.side)}sync(){if(!this.dom){let i=document.createElement("img");i.className="cm-widgetBuffer",i.setAttribute("aria-hidden","true"),this.setDOM(i)}}getSide(){return this.side}domAtPos(i){return this.side>0?it.before(this.dom):it.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(i){return this.dom.getBoundingClientRect()}get overrideDOMText(){return v.o.empty}get isHidden(){return!0}}function inlineDOMAtPos(i,o){let s=i.dom,{children:v}=i,_=0;for(let i=0;_i&&o0;i--){let o=v[i-1];if(o.dom.parentNode==s)return o.domAtPos(o.length)}for(let i=_;i0&&o instanceof xt&&_.length&&(v=_[_.length-1])instanceof xt&&v.mark.eq(o.mark)?joinInlineInto(v,o.children[0],s-1):(_.push(o),o.setParent(i)),i.length+=o.length}function coordsInChildren(i,o,s){let v=null,_=-1,$=null,ae=-1;!function scan(i,o){for(let pe=0,we=0;pe=o&&(_e.children.length?scan(_e,o-we):(!$||$.isHidden&&s>0)&&(et>o||we==et&&_e.getSide()>0)?($=_e,ae=o-we):(we-1?1:0)!=_.length-(s&&_.indexOf(s)>-1?1:0))return!1;for(let $ of v)if($!=s&&(-1==_.indexOf($)||i[$]!==o[$]))return!1;return!0}function updateAttrs(i,o,s){let v=!1;if(o)for(let _ in o)s&&_ in s||(v=!0,"style"==_?i.style.cssText="":i.removeAttribute(_));if(s)for(let _ in s)o&&o[_]==s[_]||(v=!0,"style"==_?i.style.cssText=s[_]:i.setAttribute(_,s[_]));return v}function getAttrs(i){let o=Object.create(null);for(let s=0;s0&&0==this.children[s-1].length;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=i,o}transferDOM(i){this.dom&&(this.markDirty(),i.setDOM(this.dom),i.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(i){attrsEq(this.attrs,i)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=i)}append(i,o){joinInlineInto(this,i,o)}addLineDeco(i){let o=i.spec.attributes,s=i.spec.class;o&&(this.attrs=combineAttrs(o,this.attrs||{})),s&&(this.attrs=combineAttrs({class:s},this.attrs||{}))}domAtPos(i){return inlineDOMAtPos(this,i)}reuseDOM(i){"DIV"==i.nodeName&&(this.setDOM(i),this.flags|=6)}sync(i,o){var s;this.dom?4&this.flags&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(i,o);let v=this.dom.lastChild;for(;v&&st.get(v)instanceof xt;)v=v.lastChild;if(!(v&&this.length&&("BR"==v.nodeName||0!=(null===(s=st.get(v))||void 0===s?void 0:s.isEditable)||bt.ios&&this.children.some((i=>i instanceof Ot))))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let i,o=0;for(let s of this.children){if(!(s instanceof Ot)||/[^ -~]/.test(s.text))return null;let v=clientRectsFor(s.dom);if(1!=v.length)return null;o+=v[0].width,i=v[0].height}return o?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:o/this.length,textHeight:i}:null}coordsAt(i,o){let s=coordsInChildren(this,i,o);if(!this.children.length&&s&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=s.bottom-s.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight=o){if(_ instanceof _t)return _;if($>o)break}v=$+_.breakAfter}return null}}class Et extends st{constructor(i,o,s){super(),this.widget=i,this.length=o,this.deco=s,this.breakAfter=0,this.prevWidget=null}merge(i,o,s,v,_,$){return!(s&&(!(s instanceof Et&&this.widget.compare(s.widget))||i>0&&_<=0||o0)}}class kt{eq(i){return!1}updateDOM(i,o){return!1}compare(i){return this==i||this.constructor==i.constructor&&this.eq(i)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(i){return!0}coordsAt(i,o,s){return null}get isHidden(){return!1}destroy(i){}}var At=function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i}(At||(At={}));class Dt extends v.l{constructor(i,o,s,v){super(),this.startSide=i,this.endSide=o,this.widget=s,this.spec=v}get heightRelevant(){return!1}static mark(i){return new Pt(i)}static widget(i){let o=Math.max(-1e4,Math.min(1e4,i.side||0)),s=!!i.block;return o+=s&&!i.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new It(i,o,o,s,i.widget||null,!1)}static replace(i){let o,s,v=!!i.block;if(i.isBlockGap)o=-5e8,s=4e8;else{let{start:_,end:$}=getInclusive(i,v);o=(_?v?-3e8:-1:5e8)-1,s=1+($?v?2e8:1:-6e8)}return new It(i,o,s,v,i.widget||null,!0)}static line(i){return new Tt(i)}static set(i){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v.j.of(i,o)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Dt.none=v.j.empty;class Pt extends Dt{constructor(i){let{start:o,end:s}=getInclusive(i);super(o?-1:5e8,s?1:-6e8,null,i),this.tagName=i.tagName||"span",this.class=i.class||"",this.attrs=i.attributes||null}eq(i){var o,s;return this==i||i instanceof Pt&&this.tagName==i.tagName&&(this.class||(null===(o=this.attrs)||void 0===o?void 0:o.class))==(i.class||(null===(s=i.attrs)||void 0===s?void 0:s.class))&&attrsEq(this.attrs,i.attrs,"class")}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(i>=o)throw new RangeError("Mark decorations may not be empty");return super.range(i,o)}}Pt.prototype.point=!1;class Tt extends Dt{constructor(i){super(-2e8,-2e8,null,i)}eq(i){return i instanceof Tt&&this.spec.class==i.spec.class&&attrsEq(this.spec.attributes,i.spec.attributes)}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(o!=i)throw new RangeError("Line decoration ranges must be zero-length");return super.range(i,o)}}Tt.prototype.mapMode=v.h.TrackBefore,Tt.prototype.point=!0;class It extends Dt{constructor(i,o,s,_,$,ae){super(o,s,$,i),this.block=_,this.isReplace=ae,this.mapMode=_?o<=0?v.h.TrackBefore:v.h.TrackAfter:v.h.TrackDel}get type(){return this.startSide!=this.endSide?At.WidgetRange:this.startSide<=0?At.WidgetBefore:At.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(i){return i instanceof It&&(o=this.widget,s=i.widget,o==s||!!(o&&s&&o.compare(s)))&&this.block==i.block&&this.startSide==i.startSide&&this.endSide==i.endSide;var o,s}range(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.isReplace&&(i>o||i==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=i)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(i,o)}}function getInclusive(i){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{inclusiveStart:s,inclusiveEnd:v}=i;return null==s&&(s=i.inclusive),null==v&&(v=i.inclusive),{start:null!=s?s:o,end:null!=v?v:o}}function addRange(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,_=s.length-1;_>=0&&s[_]+v>=i?s[_]=Math.max(s[_],o):s.push(i,o)}It.prototype.point=!0;class Ft{constructor(i,o,s,v){this.doc=i,this.pos=o,this.end=s,this.disallowBlockEffectsFor=v,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=i.iter(),this.skip=o}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let i=this.content[this.content.length-1];return!(i.breakAfter||i instanceof Et&&i.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new _t),this.atCursorPos=!0),this.curLine}flushBuffer(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(wrapMarks(new Ct(-1),i),i.length),this.pendingBuffer=0)}addBlockWidget(i){this.flushBuffer(),this.curLine=null,this.content.push(i)}finish(i){this.pendingBuffer&&i<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||i&&this.content.length&&this.content[this.content.length-1]instanceof Et||this.getLine()}buildText(i,o,s){for(;i>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:s,done:v}=this.cursor.next(this.skip);if(this.skip=0,v)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,i--;continue}this.text=o,this.textOff=0}let v=Math.min(this.text.length-this.textOff,i,512);this.flushBuffer(o.slice(o.length-s)),this.getLine().append(wrapMarks(new Ot(this.text.slice(this.textOff,this.textOff+v)),o),s),this.atCursorPos=!0,this.textOff+=v,i-=v,s=0}}span(i,o,s,v){this.buildText(o-i,s,v),this.pos=o,this.openStart<0&&(this.openStart=v)}point(i,o,s,v,_,$){if(this.disallowBlockEffectsFor[$]&&s instanceof It){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let ae=o-i;if(s instanceof It)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Et(s.widget||new Nt("div"),ae,s));else{let $=wt.create(s.widget||new Nt("span"),ae,ae?0:s.startSide),pe=this.atCursorPos&&!$.isEditable&&_<=v.length&&(i0),we=!$.isEditable&&(iv.length||s.startSide<=0),_e=this.getLine();2!=this.pendingBuffer||pe||$.isEditable||(this.pendingBuffer=0),this.flushBuffer(v),pe&&(_e.append(wrapMarks(new Ct(1),v),_),_=v.length+Math.max(0,_-v.length)),_e.append(wrapMarks($,v),_),this.atCursorPos=we,this.pendingBuffer=we?iv.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=v.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(s);ae&&(this.textOff+ae<=this.text.length?this.textOff+=ae:(this.skip+=ae-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=_)}static build(i,o,s,_,$){let ae=new Ft(i,o,s,$);return ae.openEnd=v.j.spans(_,o,s,ae),ae.openStart<0&&(ae.openStart=ae.openEnd),ae.finish(ae.openEnd),ae}}function wrapMarks(i,o){for(let s of o)i=new xt(s,[i],i.length);return i}class Nt extends kt{constructor(i){super(),this.tag=i}eq(i){return i.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(i){return i.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Bt=v.g.define(),Lt=v.g.define(),jt=v.g.define(),Mt=v.g.define(),Qt=v.g.define(),Vt=v.g.define(),Ut=v.g.define(),Wt=v.g.define({combine:i=>i.some((i=>i))}),$t=v.g.define({combine:i=>i.some((i=>i))});class qt{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,_=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,$=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.range=i,this.y=o,this.x=s,this.yMargin=v,this.xMargin=_,this.isSnapshot=$}map(i){return i.empty?this:new qt(this.range.map(i),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(i){return this.range.to<=i.doc.length?this:new qt(v.e.cursor(i.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const zt=v.m.define({map:(i,o)=>i.map(o)});function logException(i,o,s){let v=i.facet(Mt);v.length?v[0](o):window.onerror?window.onerror(String(o),s,void 0,void 0,o):s?console.error(s+":",o):console.error(o)}const Zt=v.g.define({combine:i=>!i.length||i[0]});let Ht=0;const Gt=v.g.define();class Xt{constructor(i,o,s,v,_){this.id=i,this.create=o,this.domEventHandlers=s,this.domEventObservers=v,this.extension=_(this)}static define(i,o){const{eventHandlers:s,eventObservers:v,provide:_,decorations:$}=o||{};return new Xt(Ht++,i,s,v,(i=>{let o=[Gt.of(i)];return $&&o.push(nn.of((o=>{let s=o.plugin(i);return s?$(s):Dt.none}))),_&&o.push(_(i)),o}))}static fromClass(i,o){return Xt.define((o=>new i(o)),o)}}class Yt{constructor(i){this.spec=i,this.mustUpdate=null,this.value=null}update(i){if(this.value){if(this.mustUpdate){let i=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(i)}catch(o){if(logException(i.state,o,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(i)}catch(o){logException(i.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(i){var o;if(null===(o=this.value)||void 0===o?void 0:o.destroy)try{this.value.destroy()}catch(o){logException(i.state,o,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Kt=v.g.define(),Jt=v.g.define(),nn=v.g.define(),_n=v.g.define(),An=v.g.define();function getIsolatedRanges(i,o,s){let _=i.state.facet(An);if(!_.length)return _;let $=_.map((o=>o instanceof Function?o(i):o)),ae=[];return v.j.spans($,o,s,{point(){},span(i,o,s,v){let _=ae;for(let $=s.length-1;$>=0;$--,v--){let ae,pe=s[$].spec.bidiIsolate;if(null!=pe)if(v>0&&_.length&&(ae=_[_.length-1]).to==i&&ae.direction==pe)ae.to=o,_=ae.inner;else{let s={from:i,to:o,direction:pe,inner:[]};_.push(s),_=s.inner}}}}),ae}const Zn=v.g.define();function getScrollMargins(i){let o=0,s=0,v=0,_=0;for(let $ of i.state.facet(Zn)){let ae=$(i);ae&&(null!=ae.left&&(o=Math.max(o,ae.left)),null!=ae.right&&(s=Math.max(s,ae.right)),null!=ae.top&&(v=Math.max(v,ae.top)),null!=ae.bottom&&(_=Math.max(_,ae.bottom)))}return{left:o,right:s,top:v,bottom:_}}const aa=v.g.define();class ra{constructor(i,o,s,v){this.fromA=i,this.toA=o,this.fromB=s,this.toB=v}join(i){return new ra(Math.min(this.fromA,i.fromA),Math.max(this.toA,i.toA),Math.min(this.fromB,i.fromB),Math.max(this.toB,i.toB))}addToSet(i){let o=i.length,s=this;for(;o>0;o--){let v=i[o-1];if(!(v.fromA>s.toA)){if(v.toA_e)break;_+=2}if(!pe)return s;new ra(pe.fromA,pe.toA,pe.fromB,pe.toB).addToSet(s),$=pe.toA,ae=pe.toB}}}class ia{constructor(i,o,s){this.view=i,this.state=o,this.transactions=s,this.flags=0,this.startState=i.state,this.changes=v.c.empty(this.startState.doc.length);for(let i of s)this.changes=this.changes.compose(i.changes);let _=[];this.changes.iterChangedRanges(((i,o,s,v)=>_.push(new ra(i,o,s,v)))),this.changedRanges=_}static create(i,o,s){return new ia(i,o,s)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((i=>i.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var ca=function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i}(ca||(ca={}));const ha=ca.LTR,ga=ca.RTL;function dec(i){let o=[];for(let s=0;s=o){if(ae.level==s)return $;(_<0||(0!=v?v<0?ae.fromo:i[_].level>ae.level))&&(_=$)}}if(_<0)throw new RangeError("Index out of range");return _}}function isolatesEq(i,o){if(i.length!=o.length)return!1;for(let s=0;s=0;i-=3)if(_a[i+1]==-s){let o=_a[i+2],s=2&o?_:4&o?1&o?$:_:0;s&&(tr[ae]=tr[_a[i]]=s),pe=i;break}}else{if(189==_a.length)break;_a[pe++]=ae,_a[pe++]=o,_a[pe++]=we}else if(2==(v=tr[ae])||1==v){let i=v==_;we=i?0:1;for(let o=pe-3;o>=0;o-=3){let s=_a[o+2];if(2&s)break;if(i)_a[o+2]|=2;else{if(4&s)break;_a[o+2]|=4}}}}}function processNeutrals(i,o,s,v){for(let _=0,$=v;_<=s.length;_++){let ae=_?s[_-1].to:i,pe=_we;)o==$&&(o=s[--v].from,$=v?s[v-1].to:i),tr[--o]=et;we=ae}else $=ae,we++}}}function emitSpans(i,o,s,v,_,$,ae){let pe=v%2?2:1;if(v%2==_%2)for(let we=o,_e=0;wewe&&ae.push(new er(we,it.from,nt)),computeSectionOrder(i,it.direction==ha!=!(nt%2)?v+1:v,_,it.inner,it.from,it.to,ae),we=it.to}rt=it.to}else{if(rt==s||(o?tr[rt]!=pe:tr[rt]==pe))break;rt++}tt?emitSpans(i,we,rt,v+1,_,tt,ae):weo;){let s=!0,et=!1;if(!_e||we>$[_e-1].to){let i=tr[we-1];i!=pe&&(s=!1,et=16==i)}let tt=s||1!=pe?null:[],nt=s?v:v+1,rt=we;e:for(;;)if(_e&&rt==$[_e-1].to){if(et)break e;let it=$[--_e];if(!s)for(let i=it.from,s=_e;;){if(i==o)break e;if(!s||$[s-1].to!=i){if(tr[i-1]==pe)break e;break}i=$[--s].from}if(tt)tt.push(it);else{it.totr.length;)tr[tr.length]=256;let v=[],_=o==ha?0:1;return computeSectionOrder(i,_,_,s,0,i.length,v),v}function trivialOrder(i){return[new er(0,i,0)]}let nr="";function moveVisually(i,o,s,_,$){var ae;let pe=_.head-i.from,we=-1;if(0==pe){if(!$||!i.length)return null;o[0].level!=s&&(pe=o[0].side(!1,s),we=0)}else if(pe==i.length){if($)return null;let i=o[o.length-1];i.level!=s&&(pe=i.side(!0,s),we=o.length-1)}we<0&&(we=er.find(o,pe,null!==(ae=_.bidiLevel)&&void 0!==ae?ae:-1,_.assoc));let _e=o[we];pe==_e.side($,s)&&(_e=o[we+=$?1:-1],pe=_e.side(!$,s));let et=$==(_e.dir==s),tt=Object(v.u)(i.text,pe,et);if(nr=i.text.slice(Math.min(pe,tt),Math.max(pe,tt)),tt>_e.from&&tt<_e.to)return v.e.cursor(tt+i.from,et?-1:1,_e.level);let nt=we==($?o.length-1:0)?null:o[we+($?1:-1)];return nt||_e.level==s?nt&&nt.level<_e.level?v.e.cursor(nt.side(!$,s)+i.from,$?1:-1,nt.level):v.e.cursor(tt+i.from,$?-1:1,_e.level):v.e.cursor($?i.to:i.from,$?-1:1,s)}class ar extends st{get length(){return this.view.state.doc.length}constructor(i){super(),this.view=i,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(i.contentDOM),this.children=[new _t],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ra(0,0,0,i.state.doc.length)],0,null)}update(i){var o;let s=i.changedRanges;this.minWidth>0&&s.length&&(s.every((i=>{let{fromA:o,toA:s}=i;return sthis.minWidthTo}))?(this.minWidthFrom=i.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=i.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let v=-1;this.view.inputState.composing>=0&&((null===(o=this.domChanged)||void 0===o?void 0:o.newSel)?v=this.domChanged.newSel.head:touchesComposition(i.changes,this.hasComposition)||i.selectionSet||(v=i.state.selection.main.head));let _=v>-1?findCompositionRange(this.view,i.changes,v):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:o,to:v}=this.hasComposition;s=new ra(o,v,i.changes.mapPos(o,-1),i.changes.mapPos(v,1)).addToSet(s.slice())}this.hasComposition=_?{from:_.range.fromB,to:_.range.toB}:null,(bt.ie||bt.chrome)&&!_&&i&&i.state.doc.lines!=i.startState.doc.lines&&(this.forceSelection=!0);let $=findChangedDeco(this.decorations,this.updateDeco(),i.changes);return s=ra.extendWithRanges(s,$),!!(7&this.flags||0!=s.length)&&(this.updateInner(s,i.startState.doc.length,_),i.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(i,o,s){this.view.viewState.mustMeasureContent=!0,this.updateChildren(i,o,s);let{observer:v}=this.view;v.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=bt.chrome||bt.ios?{node:v.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,i),this.flags&=-8,i&&(i.written||v.selectionRange.focusNode!=i.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((i=>i.flags&=-9));let _=[];if(this.view.viewport.from||this.view.viewport.to=0?v[i]:null;if(!o)break;let $,ae,pe,we,{fromA:_e,toA:et,fromB:tt,toB:nt}=o;if(s&&s.range.fromBtt){let i=Ft.build(this.view.state.doc,tt,s.range.fromB,this.decorations,this.dynamicDecorationMap),o=Ft.build(this.view.state.doc,s.range.toB,nt,this.decorations,this.dynamicDecorationMap);ae=i.breakAtStart,pe=i.openStart,we=o.openEnd;let v=this.compositionView(s);o.breakAtStart?v.breakAfter=1:o.content.length&&v.merge(v.length,v.length,o.content[0],!1,o.openStart,0)&&(v.breakAfter=o.content[0].breakAfter,o.content.shift()),i.content.length&&v.merge(0,0,i.content[i.content.length-1],!0,0,i.openEnd)&&i.content.pop(),$=i.content.concat(v).concat(o.content)}else({content:$,breakAtStart:ae,openStart:pe,openEnd:we}=Ft.build(this.view.state.doc,tt,nt,this.decorations,this.dynamicDecorationMap));let{i:rt,off:it}=_.findPos(et,1),{i:ot,off:st}=_.findPos(_e,-1);replaceRange(this,ot,st,rt,it,$,ae,pe,we)}s&&this.fixCompositionDOM(s)}compositionView(i){let o=new Ot(i.text.nodeValue);o.flags|=8;for(let{deco:s}of i.marks)o=new xt(s,[o],o.length);let s=new _t;return s.append(o,0),s}fixCompositionDOM(i){let fix=(i,o)=>{o.flags|=8|(o.children.some((i=>7&i.flags))?1:0),this.markedForComposition.add(o);let s=st.get(i);s&&s!=o&&(s.dom=null),o.setDOM(i)},o=this.childPos(i.range.fromB,1),s=this.children[o.i];fix(i.line,s);for(let v=i.marks.length-1;v>=-1;v--)o=s.childPos(o.off,1),s=s.children[o.i],fix(v>=0?i.marks[v].node:i.text,s)}updateSelection(){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let o=this.view.root.activeElement,s=o==this.dom,v=!s&&hasSelection(this.dom,this.view.observer.selectionRange)&&!(o&&this.dom.contains(o));if(!(s||i||v))return;let _=this.forceSelection;this.forceSelection=!1;let $=this.view.state.selection.main,ae=this.moveToLine(this.domAtPos($.anchor)),pe=$.empty?ae:this.moveToLine(this.domAtPos($.head));if(bt.gecko&&$.empty&&!this.hasComposition&&(1==(we=ae).node.nodeType&&we.node.firstChild&&(0==we.offset||"false"==we.node.childNodes[we.offset-1].contentEditable)&&(we.offset==we.node.childNodes.length||"false"==we.node.childNodes[we.offset].contentEditable))){let i=document.createTextNode("");this.view.observer.ignore((()=>ae.node.insertBefore(i,ae.node.childNodes[ae.offset]||null))),ae=pe=new it(i,0),_=!0}var we;let _e=this.view.observer.selectionRange;!_&&_e.focusNode&&isEquivalentPosition(ae.node,ae.offset,_e.anchorNode,_e.anchorOffset)&&isEquivalentPosition(pe.node,pe.offset,_e.focusNode,_e.focusOffset)||(this.view.observer.ignore((()=>{bt.android&&bt.chrome&&this.dom.contains(_e.focusNode)&&inUneditable(_e.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let i=getSelection(this.view.root);if(i)if($.empty){if(bt.gecko){let i=nextToUneditable(ae.node,ae.offset);if(i&&3!=i){let o=nearbyTextNode(ae.node,ae.offset,1==i?1:-1);o&&(ae=new it(o.node,o.offset))}}i.collapse(ae.node,ae.offset),null!=$.bidiLevel&&void 0!==i.caretBidiLevel&&(i.caretBidiLevel=$.bidiLevel)}else if(i.extend){i.collapse(ae.node,ae.offset);try{i.extend(pe.node,pe.offset)}catch(i){}}else{let o=document.createRange();$.anchor>$.head&&([ae,pe]=[pe,ae]),o.setEnd(pe.node,pe.offset),o.setStart(ae.node,ae.offset),i.removeAllRanges(),i.addRange(o)}else;v&&this.view.root.activeElement==this.dom&&(this.dom.blur(),o&&o.focus())})),this.view.observer.setSelectionRange(ae,pe)),this.impreciseAnchor=ae.precise?null:new it(_e.anchorNode,_e.anchorOffset),this.impreciseHead=pe.precise?null:new it(_e.focusNode,_e.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:i}=this,o=i.state.selection.main,s=getSelection(i.root),{anchorNode:v,anchorOffset:_}=i.observer.selectionRange;if(!(s&&o.empty&&o.assoc&&s.modify))return;let $=_t.find(this,o.head);if(!$)return;let ae=$.posAtStart;if(o.head==ae||o.head==ae+$.length)return;let pe=this.coordsAt(o.head,-1),we=this.coordsAt(o.head,1);if(!pe||!we||pe.bottom>we.top)return;let _e=this.domAtPos(o.head+o.assoc);s.collapse(_e.node,_e.offset),s.modify("move",o.assoc<0?"forward":"backward","lineboundary"),i.observer.readSelectionRange();let et=i.observer.selectionRange;i.docView.posFromDOM(et.anchorNode,et.anchorOffset)!=o.from&&s.collapse(v,_)}moveToLine(i){let o,s=this.dom;if(i.node!=s)return i;for(let v=i.offset;!o&&v=0;v--){let i=st.get(s.childNodes[v]);i instanceof _t&&(o=i.domAtPos(i.length))}return o?new it(o.node,o.offset,!0):i}nearest(i){for(let o=i;o;){let i=st.get(o);if(i&&i.rootView==this)return i;o=o.parentNode}return null}posFromDOM(i,o){let s=this.nearest(i);if(!s)throw new RangeError("Trying to find position for a DOM position outside of the document");return s.localPosFromDOM(i,o)+s.posAtStart}domAtPos(i){let{i:o,off:s}=this.childCursor().findPos(i,-1);for(;o=0;$--){let ae=this.children[$],pe=_-ae.breakAfter,we=pe-ae.length;if(pei||ae.covers(1))&&(!s||ae instanceof _t&&!(s instanceof _t&&o>=0))&&(s=ae,v=we),_=we}return s?s.coordsAt(i-v,o):null}coordsForChar(i){let{i:o,off:s}=this.childPos(i,1),_=this.children[o];if(!(_ instanceof _t))return null;for(;_.children.length;){let{i:i,off:o}=_.childPos(s,1);for(;;i++){if(i==_.children.length)return null;if((_=_.children[i]).length)break}s=o}if(!(_ instanceof Ot))return null;let $=Object(v.u)(_.text,s);if($==s)return null;let ae=textRange(_.dom,s,$).getClientRects();for(let i=0;iMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,ae=-1,pe=this.view.textDirection==ca.LTR;for(let i=0,we=0;wev)break;if(i>=s){let s=_e.dom.getBoundingClientRect();if(o.push(s.height),$){let o=_e.dom.lastChild,v=o?clientRectsFor(o):[];if(v.length){let o=v[v.length-1],$=pe?o.right-s.left:s.right-o.left;$>ae&&(ae=$,this.minWidth=_,this.minWidthFrom=i,this.minWidthTo=et)}}}i=et+_e.breakAfter}return o}textDirectionAt(i){let{i:o}=this.childPos(i,1);return"rtl"==getComputedStyle(this.children[o].dom).direction?ca.RTL:ca.LTR}measureTextSize(){for(let i of this.children)if(i instanceof _t){let o=i.measureTextSize();if(o)return o}let i,o,s,v=document.createElement("div");return v.className="cm-line",v.style.width="99999px",v.style.position="absolute",v.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(v);let _=clientRectsFor(v.firstChild)[0];i=v.getBoundingClientRect().height,o=_?_.width/27:7,s=_?_.height:i,v.remove()})),{lineHeight:i,charWidth:o,textHeight:s}}childCursor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,o=this.children.length;return o&&(i-=this.children[--o].length),new dt(this.children,i,o)}computeBlockGapDeco(){let i=[],o=this.view.viewState;for(let s=0,v=0;;v++){let _=v==o.viewports.length?null:o.viewports[v],$=_?_.from-1:this.length;if($>s){let v=(o.lineBlockAt($).bottom-o.lineBlockAt(s).top)/this.view.scaleY;i.push(Dt.replace({widget:new rr(v),block:!0,inclusive:!0,isBlockGap:!0}).range(s,$))}if(!_)break;s=_.to+1}return Dt.set(i)}updateDeco(){let i=this.view.state.facet(nn).map(((i,o)=>(this.dynamicDecorationMap[o]="function"==typeof i)?i(this.view):i));for(let o=i.length;os.anchor?-1:1);if(!v)return;!s.empty&&(o=this.coordsAt(s.anchor,s.anchor>s.head?-1:1))&&(v={left:Math.min(v.left,o.left),top:Math.min(v.top,o.top),right:Math.max(v.right,o.right),bottom:Math.max(v.bottom,o.bottom)});let _=getScrollMargins(this.view),$={left:v.left-_.left,top:v.top-_.top,right:v.right+_.right,bottom:v.bottom+_.bottom},{offsetWidth:ae,offsetHeight:pe}=this.view.scrollDOM;scrollRectIntoView(this.view.scrollDOM,$,s.head0))break;s=s.childNodes[v-1],v=maxOffset(s)}if(s>=0)for(let v=i,_=o;;){if(3==v.nodeType)return{node:v,offset:_};if(!(1==v.nodeType&&_=0))break;v=v.childNodes[_],_=0}return null}function nextToUneditable(i,o){return 1!=i.nodeType?0:(o&&"false"==i.childNodes[o-1].contentEditable?1:0)|(o{io.from&&(s=!0)})),s}function groupAt(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,_=i.charCategorizer(o),$=i.doc.lineAt(o),ae=o-$.from;if(0==$.length)return v.e.cursor(o);0==ae?s=1:ae==$.length&&(s=-1);let pe=ae,we=ae;s<0?pe=Object(v.u)($.text,ae,!1):we=Object(v.u)($.text,ae);let _e=_($.text.slice(pe,we));for(;pe>0;){let i=Object(v.u)($.text,pe,!1);if(_($.text.slice(i,pe))!=_e)break;pe=i}for(;we<$.length;){let i=Object(v.u)($.text,we);if(_($.text.slice(we,i))!=_e)break;we=i}return v.e.range(pe+$.from,we+$.from)}function getdx(i,o){return o.left>i?o.left-i:Math.max(0,i-o.right)}function getdy(i,o){return o.top>i?o.top-i:Math.max(0,i-o.bottom)}function yOverlap(i,o){return i.topo.top+1}function upTop(i,o){return oi.bottom?{top:i.top,left:i.left,right:i.right,bottom:o}:i}function domPosAtCoords(i,o,s){let v,_,$,ae,pe,we,_e,et,tt=!1;for(let nt=i.firstChild;nt;nt=nt.nextSibling){let i=clientRectsFor(nt);for(let rt=0;rtst||ae==st&&$>ot){v=nt,_=it,$=ot,ae=st;let pe=st?s0?rt0)}0==ot?s>it.bottom&&(!_e||_e.bottomit.top)&&(we=nt,et=it):_e&&yOverlap(_e,it)?_e=upBot(_e,it.bottom):et&&yOverlap(et,it)&&(et=upTop(et,it.top))}}if(_e&&_e.bottom>=s?(v=pe,_=_e):et&&et.top<=s&&(v=we,_=et),!v)return{node:i,offset:0};let nt=Math.max(_.left,Math.min(_.right,o));return 3==v.nodeType?domPosInText(v,nt,s):tt&&"false"!=v.contentEditable?domPosAtCoords(v,nt,s):{node:i,offset:Array.prototype.indexOf.call(i.childNodes,v)+(o>=(_.left+_.right)/2?1:0)}}function domPosInText(i,o,s){let v=i.nodeValue.length,_=-1,$=1e9,ae=0;for(let pe=0;pes?_e.top-s:s-_e.bottom)-1;if(_e.left-1<=o&&_e.right+1>=o&&et<$){let s=o>=(_e.left+_e.right)/2,v=s;if(bt.chrome||bt.gecko){textRange(i,pe).getBoundingClientRect().left==_e.right&&(v=!s)}if(et<=0)return{node:i,offset:pe+(v?1:0)};_=pe+(v?1:0),$=et}}}return{node:i,offset:_>-1?_:ae>0?i.nodeValue.length:0}}function posAtCoords(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;var _,$;let ae,pe=i.contentDOM.getBoundingClientRect(),we=pe.top+i.viewState.paddingTop,{docHeight:_e}=i.viewState,{x:et,y:tt}=o,nt=tt-we;if(nt<0)return 0;if(nt>_e)return i.state.doc.length;for(let o=i.viewState.heightOracle.textHeight/2,_=!1;ae=i.elementAtHeight(nt),ae.type!=At.Text;)for(;nt=v>0?ae.bottom+o:ae.top-o,!(nt>=0&&nt<=_e);){if(_)return s?null:0;_=!0,v=-v}tt=we+nt;let rt=ae.from;if(rti.viewport.to)return i.viewport.to==i.state.doc.length?i.state.doc.length:s?null:posAtCoordsImprecise(i,pe,ae,et,tt);let it=i.dom.ownerDocument,ot=i.root.elementFromPoint?i.root:it,st=ot.elementFromPoint(et,tt);st&&!i.contentDOM.contains(st)&&(st=null),st||(et=Math.max(pe.left+1,Math.min(pe.right-1,et)),st=ot.elementFromPoint(et,tt),st&&!i.contentDOM.contains(st)&&(st=null));let dt,ut=-1;if(st&&0!=(null===(_=i.docView.nearest(st))||void 0===_?void 0:_.isEditable))if(it.caretPositionFromPoint){let i=it.caretPositionFromPoint(et,tt);i&&({offsetNode:dt,offset:ut}=i)}else if(it.caretRangeFromPoint){let o=it.caretRangeFromPoint(et,tt);o&&(({startContainer:dt,startOffset:ut}=o),(!i.contentDOM.contains(dt)||bt.safari&&isSuspiciousSafariCaretResult(dt,ut,et)||bt.chrome&&isSuspiciousChromeCaretResult(dt,ut,et))&&(dt=void 0))}if(!dt||!i.docView.dom.contains(dt)){let o=_t.find(i.docView,rt);if(!o)return nt>ae.top+ae.height/2?ae.to:ae.from;({node:dt,offset:ut}=domPosAtCoords(o.dom,et,tt))}let lt=i.docView.nearest(dt);if(!lt)return null;if(lt.isWidget&&1==(null===($=lt.dom)||void 0===$?void 0:$.nodeType)){let i=lt.dom.getBoundingClientRect();return o.y1.5*i.defaultLineHeight){let o=i.viewState.heightOracle.textHeight;ae+=Math.floor(($-s.top-.5*(i.defaultLineHeight-o))/o)*i.viewState.heightOracle.lineLength}let pe=i.state.sliceDoc(s.from,s.to);return s.from+Object(v.v)(pe,ae,i.state.tabSize)}function isSuspiciousSafariCaretResult(i,o,s){let v;if(3!=i.nodeType||o!=(v=i.nodeValue.length))return!1;for(let o=i.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return textRange(i,v-1,v).getBoundingClientRect().left>s}function isSuspiciousChromeCaretResult(i,o,s){if(0!=o)return!1;for(let o=i;;){let i=o.parentNode;if(!i||1!=i.nodeType||i.firstChild!=o)return!1;if(i.classList.contains("cm-line"))break;o=i}return s-(1==i.nodeType?i.getBoundingClientRect():textRange(i,0,Math.max(i.nodeValue.length,1)).getBoundingClientRect()).left>5}function blockAt(i,o){let s=i.lineBlockAt(o);if(Array.isArray(s.type))for(let i of s.type)if(i.to>o||i.to==o&&(i.to==s.to||i.type==At.Text))return i;return s}function moveToLineBoundary(i,o,s,_){let $=blockAt(i,o.head),ae=_&&$.type==At.Text&&(i.lineWrapping||$.widgetLineBreaks)?i.coordsAtPos(o.assoc<0&&o.head>$.from?o.head-1:o.head):null;if(ae){let o=i.dom.getBoundingClientRect(),_=i.textDirectionAt($.from),pe=i.posAtCoords({x:s==(_==ca.LTR)?o.right-1:o.left+1,y:(ae.top+ae.bottom)/2});if(null!=pe)return v.e.cursor(pe,s?-1:1)}return v.e.cursor(s?$.to:$.from,s?-1:1)}function moveByChar(i,o,s,_){let $=i.state.doc.lineAt(o.head),ae=i.bidiSpans($),pe=i.textDirectionAt($.from);for(let we=o,_e=null;;){let o=moveVisually($,ae,pe,we,s),et=nr;if(!o){if($.number==(s?i.state.doc.lines:1))return we;et="\n",$=i.state.doc.line($.number+(s?1:-1)),ae=i.bidiSpans($),o=v.e.cursor(s?$.from:$.to)}if(_e){if(!_e(et))return we}else{if(!_)return o;_e=_(et)}we=o}}function byGroup(i,o,s){let _=i.state.charCategorizer(o),$=_(s);return i=>{let o=_(i);return $==v.d.Space&&($=o),$==o}}function moveVertically(i,o,s,_){let $=o.head,ae=s?1:-1;if($==(s?i.state.doc.length:0))return v.e.cursor($,o.assoc);let pe,we=o.goalColumn,_e=i.contentDOM.getBoundingClientRect(),et=i.coordsAtPos($,o.assoc||-1),tt=i.documentTop;if(et)null==we&&(we=et.left-_e.left),pe=ae<0?et.top:et.bottom;else{let o=i.viewState.lineBlockAt($);null==we&&(we=Math.min(_e.right-_e.left,i.defaultCharacterWidth*($-o.from))),pe=(ae<0?o.top:o.bottom)+tt}let nt=_e.left+we,rt=null!=_?_:i.viewState.heightOracle.textHeight>>1;for(let o=0;;o+=10){let s=pe+(rt+o)*ae,_=posAtCoords(i,{x:nt,y:s},!1,ae);if(s<_e.top||s>_e.bottom||(ae<0?_<$:_>$)){let o=i.docView.coordsForChar(_),$=!o||s{if(o>i&&o<_){let $=v||s||(o-i<_-o?-1:1);o=$<0?i:_,v=$}}));if(!v)return o}}function skipAtoms(i,o,s){let _=skipAtomicRanges(i.state.facet(_n).map((o=>o(i))),s.from,o.head>s.from?-1:1);return _==s.from?s:v.e.cursor(_,_null)),bt.gecko&&firefoxCopyCutHack(i.contentDOM.ownerDocument)}handleEvent(i){eventBelongsToEditor(this.view,i)&&!this.ignoreDuringComposition(i)&&("keydown"==i.type&&this.keydown(i)||this.runHandlers(i.type,i))}runHandlers(i,o){let s=this.handlers[i];if(s){for(let i of s.observers)i(this.view,o);for(let i of s.handlers){if(o.defaultPrevented)break;if(i(this.view,o)){o.preventDefault();break}}}}ensureHandlers(i){let o=computeHandlers(i),s=this.handlers,v=this.view.contentDOM;for(let i in o)if("scroll"!=i){let _=!o[i].handlers.length,$=s[i];$&&_!=!$.handlers.length&&(v.removeEventListener(i,this.handleEvent),$=null),$||v.addEventListener(i,this.handleEvent,{passive:_})}for(let i in s)"scroll"==i||o[i]||v.removeEventListener(i,this.handleEvent);this.handlers=o}keydown(i){if(this.lastKeyCode=i.keyCode,this.lastKeyTime=Date.now(),9==i.keyCode&&Date.now()o.keyCode==i.keyCode)))&&!i.ctrlKey||dr.indexOf(i.key)>-1&&i.ctrlKey&&!i.shiftKey)?(229!=i.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=o||i,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let i=this.pendingIOSKey;return!!i&&(this.pendingIOSKey=void 0,dispatchKey(this.view.contentDOM,i.key,i.keyCode))}ignoreDuringComposition(i){return!!/^key/.test(i.type)&&(this.composing>0||!!(bt.safari&&!bt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(i){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=i}update(i){this.mouseSelection&&this.mouseSelection.update(i),this.draggedContent&&i.docChanged&&(this.draggedContent=this.draggedContent.map(i.changes)),i.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function bindHandler(i,o){return(s,v)=>{try{return o.call(i,v,s)}catch(i){logException(s.state,i)}}}function computeHandlers(i){let o=Object.create(null);function record(i){return o[i]||(o[i]={observers:[],handlers:[]})}for(let o of i){let i=o.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let v=i.domEventHandlers[s];v&&record(s).handlers.push(bindHandler(o.value,v))}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let v=i.domEventObservers[s];v&&record(s).observers.push(bindHandler(o.value,v))}}for(let i in cr)record(i).handlers.push(cr[i]);for(let i in hr)record(i).observers.push(hr[i]);return o}const sr=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],dr="dthko",ur=[16,17,18,20,91,92,224,225];function dragScrollSpeed(i){return.7*Math.max(0,i)+8}class lr{constructor(i,o,s,_){this.view=i,this.startEvent=o,this.style=s,this.mustSelect=_,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=scrollableParent(i.contentDOM),this.atoms=i.state.facet(_n).map((o=>o(i)));let $=i.contentDOM.ownerDocument;$.addEventListener("mousemove",this.move=this.move.bind(this)),$.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=i.state.facet(v.f.allowMultipleSelections)&&addsSelectionRange(i,o),this.dragging=!(!isInPrimarySelection(i,o)||1!=getClickType(o))&&null}start(i){!1===this.dragging&&this.select(i)}move(i){var o,s,v;if(0==i.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(s=this.startEvent,v=i,Math.max(Math.abs(s.clientX-v.clientX),Math.abs(s.clientY-v.clientY))<10))return;this.select(this.lastEvent=i);let _=0,$=0,ae=(null===(o=this.scrollParent)||void 0===o?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},pe=getScrollMargins(this.view);i.clientX-pe.left<=ae.left+6?_=-dragScrollSpeed(ae.left-i.clientX):i.clientX+pe.right>=ae.right-6&&(_=dragScrollSpeed(i.clientX-ae.right)),i.clientY-pe.top<=ae.top+6?$=-dragScrollSpeed(ae.top-i.clientY):i.clientY+pe.bottom>=ae.bottom-6&&($=dragScrollSpeed(i.clientY-ae.bottom)),this.setScrollSpeed(_,$)}up(i){null==this.dragging&&this.select(this.lastEvent),this.dragging||i.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let i=this.view.contentDOM.ownerDocument;i.removeEventListener("mousemove",this.move),i.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(i,o){this.scrollSpeed={x:i,y:o},i||o?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(i){let o=null;for(let s=0;sthis.select(this.lastEvent)),20)}}function addsSelectionRange(i,o){let s=i.state.facet(Bt);return s.length?s[0](o):bt.mac?o.metaKey:o.ctrlKey}function dragMovesSelection(i,o){let s=i.state.facet(Lt);return s.length?s[0](o):bt.mac?!o.altKey:!o.ctrlKey}function isInPrimarySelection(i,o){let{main:s}=i.state.selection;if(s.empty)return!1;let v=getSelection(i.root);if(!v||0==v.rangeCount)return!0;let _=v.getRangeAt(0).getClientRects();for(let i=0;i<_.length;i++){let s=_[i];if(s.left<=o.clientX&&s.right>=o.clientX&&s.top<=o.clientY&&s.bottom>=o.clientY)return!0}return!1}function eventBelongsToEditor(i,o){if(!o.bubbles)return!0;if(o.defaultPrevented)return!1;for(let s,v=o.target;v!=i.contentDOM;v=v.parentNode)if(!v||11==v.nodeType||(s=st.get(v))&&s.ignoreEvent(o))return!1;return!0}const cr=Object.create(null),hr=Object.create(null),pr=bt.ie&&bt.ie_version<15||bt.ios&&bt.webkit_version<604;function capturePaste(i){let o=i.dom.parentNode;if(!o)return;let s=o.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.focus(),setTimeout((()=>{i.focus(),s.remove(),doPaste(i,s.value)}),50)}function doPaste(i,o){let s,{state:_}=i,$=1,ae=_.toText(o),pe=ae.lines==_.selection.ranges.length;if(null!=vr&&_.selection.ranges.every((i=>i.empty))&&vr==ae.toString()){let i=-1;s=_.changeByRange((s=>{let we=_.doc.lineAt(s.from);if(we.from==i)return{range:s};i=we.from;let _e=_.toText((pe?ae.line($++).text:o)+_.lineBreak);return{changes:{from:we.from,insert:_e},range:v.e.cursor(s.from+_e.length)}}))}else s=pe?_.changeByRange((i=>{let o=ae.line($++);return{changes:{from:i.from,to:i.to,insert:o.text},range:v.e.cursor(i.from+o.length)}})):_.replaceSelection(ae);i.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function rangeForClick(i,o,s,_){if(1==_)return v.e.cursor(o,s);if(2==_)return groupAt(i.state,o,s);{let s=_t.find(i.docView,o),_=i.state.doc.lineAt(s?s.posAtEnd:o),$=s?s.posAtStart:_.from,ae=s?s.posAtEnd:_.to;return ae{i.inputState.lastScrollTop=i.scrollDOM.scrollTop,i.inputState.lastScrollLeft=i.scrollDOM.scrollLeft},cr.keydown=(i,o)=>(i.inputState.setSelectionOrigin("select"),27==o.keyCode&&(i.inputState.lastEscPress=Date.now()),!1),hr.touchstart=(i,o)=>{i.inputState.lastTouchTime=Date.now(),i.inputState.setSelectionOrigin("select.pointer")},hr.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")},cr.mousedown=(i,o)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let s=null;for(let v of i.state.facet(jt))if(s=v(i,o),s)break;if(s||0!=o.button||(s=basicMouseSelection(i,o)),s){let v=!i.hasFocus;i.inputState.startMouseSelection(new lr(i,o,s,v)),v&&i.observer.ignore((()=>focusPreventScroll(i.contentDOM)));let _=i.inputState.mouseSelection;if(_)return _.start(o),!1===_.dragging}return!1};let insideY=(i,o)=>i>=o.top&&i<=o.bottom,dist_inside=(i,o,s)=>insideY(o,s)&&i>=s.left&&i<=s.right;function findPositionSide(i,o,s,v){let _=_t.find(i.docView,o);if(!_)return 1;let $=o-_.posAtStart;if(0==$)return 1;if($==_.length)return-1;let ae=_.coordsAt($,-1);if(ae&&dist_inside(s,v,ae))return-1;let pe=_.coordsAt($,1);return pe&&dist_inside(s,v,pe)?1:ae&&insideY(v,ae)?-1:1}function queryPos(i,o){let s=i.posAtCoords({x:o.clientX,y:o.clientY},!1);return{pos:s,bias:findPositionSide(i,s,o.clientX,o.clientY)}}const fr=bt.ie&&bt.ie_version<=11;let gr=null,mr=0,yr=0;function getClickType(i){if(!fr)return i.detail;let o=gr,s=yr;return gr=i,yr=Date.now(),mr=!o||s>Date.now()-400&&Math.abs(o.clientX-i.clientX)<2&&Math.abs(o.clientY-i.clientY)<2?(mr+1)%3:1}function basicMouseSelection(i,o){let s=queryPos(i,o),_=getClickType(o),$=i.state.selection;return{update(i){i.docChanged&&(s.pos=i.changes.mapPos(s.pos),$=$.map(i.changes))},get(o,ae,pe){let we,_e=queryPos(i,o),et=rangeForClick(i,_e.pos,_e.bias,_);if(s.pos!=_e.pos&&!ae){let o=rangeForClick(i,s.pos,s.bias,_),$=Math.min(o.from,et.from),ae=Math.max(o.to,et.to);et=$1&&(we=removeRangeAround($,_e.pos))?we:pe?$.addRange(et):v.e.create([et])}}}function removeRangeAround(i,o){for(let s=0;s=o)return v.e.create(i.ranges.slice(0,s).concat(i.ranges.slice(s+1)),i.mainIndex==s?0:i.mainIndex-(i.mainIndex>s?1:0))}return null}function dropText(i,o,s,v){if(!s)return;let _=i.posAtCoords({x:o.clientX,y:o.clientY},!1),{draggedContent:$}=i.inputState,ae=v&&$&&dragMovesSelection(i,o)?{from:$.from,to:$.to}:null,pe={from:_,insert:s},we=i.state.changes(ae?[ae,pe]:pe);i.focus(),i.dispatch({changes:we,selection:{anchor:we.mapPos(_,-1),head:we.mapPos(_,1)},userEvent:ae?"move.drop":"input.drop"}),i.inputState.draggedContent=null}function captureCopy(i,o){let s=i.dom.parentNode;if(!s)return;let v=s.appendChild(document.createElement("textarea"));v.style.cssText="position: fixed; left: -10000px; top: 10px",v.value=o,v.focus(),v.selectionEnd=o.length,v.selectionStart=0,setTimeout((()=>{v.remove(),i.focus()}),50)}function copiedRange(i){let o=[],s=[],v=!1;for(let v of i.selection.ranges)v.empty||(o.push(i.sliceDoc(v.from,v.to)),s.push(v));if(!o.length){let _=-1;for(let{from:v}of i.selection.ranges){let $=i.doc.lineAt(v);$.number>_&&(o.push($.text),s.push({from:$.from,to:Math.min(i.doc.length,$.to+1)})),_=$.number}v=!0}return{text:o.join(i.lineBreak),ranges:s,linewise:v}}cr.dragstart=(i,o)=>{let{selection:{main:s}}=i.state;if(o.target.draggable){let _=i.docView.nearest(o.target);if(_&&_.isWidget){let i=_.posAtStart,o=i+_.length;(i>=s.to||o<=s.from)&&(s=v.e.range(i,o))}}let{inputState:_}=i;return _.mouseSelection&&(_.mouseSelection.dragging=!0),_.draggedContent=s,o.dataTransfer&&(o.dataTransfer.setData("Text",i.state.sliceDoc(s.from,s.to)),o.dataTransfer.effectAllowed="copyMove"),!1},cr.dragend=i=>(i.inputState.draggedContent=null,!1),cr.drop=(i,o)=>{if(!o.dataTransfer)return!1;if(i.state.readOnly)return!0;let s=o.dataTransfer.files;if(s&&s.length){let v=Array(s.length),_=0,finishFile=()=>{++_==s.length&&dropText(i,o,v.filter((i=>null!=i)).join(i.state.lineBreak),!1)};for(let i=0;i{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(v[i]=o.result),finishFile()},o.readAsText(s[i])}return!0}{let s=o.dataTransfer.getData("Text");if(s)return dropText(i,o,s,!0),!0}return!1},cr.paste=(i,o)=>{if(i.state.readOnly)return!0;i.observer.flush();let s=pr?null:o.clipboardData;return s?(doPaste(i,s.getData("text/plain")||s.getData("text/uri-text")),!0):(capturePaste(i),!1)};let vr=null;cr.copy=cr.cut=(i,o)=>{let{text:s,ranges:v,linewise:_}=copiedRange(i.state);if(!s&&!_)return!1;vr=_?s:null,"cut"!=o.type||i.state.readOnly||i.dispatch({changes:v,scrollIntoView:!0,userEvent:"delete.cut"});let $=pr?null:o.clipboardData;return $?($.clearData(),$.setData("text/plain",s),!0):(captureCopy(i,s),!1)};const Rr=v.a.define();function focusChangeTransaction(i,o){let s=[];for(let v of i.facet(Ut)){let _=v(i,o);_&&s.push(_)}return s?i.update({effects:s,annotations:Rr.of(!0)}):null}function updateForFocusChange(i){setTimeout((()=>{let o=i.hasFocus;if(o!=i.inputState.notifiedFocused){let s=focusChangeTransaction(i.state,o);s?i.dispatch(s):i.update([])}}),10)}hr.focus=i=>{i.inputState.lastFocusTime=Date.now(),i.scrollDOM.scrollTop||!i.inputState.lastScrollTop&&!i.inputState.lastScrollLeft||(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),updateForFocusChange(i)},hr.blur=i=>{i.observer.clearSelectionRange(),updateForFocusChange(i)},hr.compositionstart=hr.compositionupdate=i=>{null==i.inputState.compositionFirstChange&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0)},hr.compositionend=i=>{i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,bt.chrome&&bt.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then((()=>i.observer.flush())):setTimeout((()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])}),50)},hr.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()},cr.beforeinput=(i,o)=>{var s;let v;if(bt.chrome&&bt.android&&(v=sr.find((i=>i.inputType==o.inputType)))&&(i.observer.delayAndroidKey(v.key,v.keyCode),"Backspace"==v.key||"Delete"==v.key)){let o=(null===(s=window.visualViewport)||void 0===s?void 0:s.height)||0;setTimeout((()=>{var s;((null===(s=window.visualViewport)||void 0===s?void 0:s.height)||0)>o+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())}),100)}return!1};const br=new Set;function firefoxCopyCutHack(i){br.has(i)||(br.add(i),i.addEventListener("copy",(()=>{})),i.addEventListener("cut",(()=>{})))}const Or=["pre-wrap","normal","pre-line","break-spaces"];class xr{constructor(i){this.lineWrapping=i,this.doc=v.o.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(i,o){let s=this.doc.lineAt(o).number-this.doc.lineAt(i).number+1;return this.lineWrapping&&(s+=Math.max(0,Math.ceil((o-i-s*this.lineLength*.5)/this.lineLength))),this.lineHeight*s}heightForLine(i){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((i-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(i){return this.doc=i,this}mustRefreshForWrapping(i){return Or.indexOf(i)>-1!=this.lineWrapping}mustRefreshForHeights(i){let o=!1;for(let s=0;s-1,pe=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=ae;if(this.lineWrapping=ae,this.lineHeight=o,this.charWidth=s,this.textHeight=v,this.lineLength=_,pe){this.heightSamples={};for(let i=0;i<$.length;i++){let o=$[i];o<0?i++:this.heightSamples[Math.floor(10*o)]=!0}}return pe}}class wr{constructor(i,o){this.from=i,this.heights=o,this.index=0}get more(){return this.index2&&void 0!==arguments[2]?arguments[2]:2;this.length=i,this.height=o,this.flags=s}get outdated(){return(2&this.flags)>0}set outdated(i){this.flags=(i?2:0)|-3&this.flags}setHeight(i,o){this.height!=o&&(Math.abs(this.height-o)>_r&&(i.heightChanged=!0),this.height=o)}replace(i,o,s){return Er.of(s)}decomposeLeft(i,o){o.push(this)}decomposeRight(i,o){o.push(this)}applyChanges(i,o,s,v){let _=this,$=s.doc;for(let ae=v.length-1;ae>=0;ae--){let{fromA:pe,toA:we,fromB:_e,toB:et}=v[ae],tt=_.lineAt(pe,Sr.ByPosNoHeight,s.setDoc(o),0,0),nt=tt.to>=we?tt:_.lineAt(we,Sr.ByPosNoHeight,s,0,0);for(et+=nt.to-we,we=nt.to;ae>0&&tt.from<=v[ae-1].toA;)pe=v[ae-1].fromA,_e=v[ae-1].fromB,ae--,pe2*_){let _=i[o-1];_.break?i.splice(--o,1,_.left,null,_.right):i.splice(--o,1,_.left,_.right),s+=1+_.break,v-=_.size}else{if(!(_>2*v))break;{let o=i[s];o.break?i.splice(s,1,o.left,null,o.right):i.splice(s,1,o.left,o.right),s+=2+o.break,_-=o.size}}else if(v<_){let s=i[o++];s&&(v+=s.size)}else{let o=i[--s];o&&(_+=o.size)}let $=0;return null==i[o-1]?($=1,o--):null==i[o]&&($=1,s++),new Pr(Er.of(i.slice(0,o)),$,Er.of(i.slice(s)))}}Er.prototype.size=1;class kr extends Er{constructor(i,o,s){super(i,o),this.deco=s}blockAt(i,o,s,v){return new Cr(v,this.length,s,this.height,this.deco||0)}lineAt(i,o,s,v,_){return this.blockAt(0,s,v,_)}forEachLine(i,o,s,v,_,$){i<=_+this.length&&o>=_&&$(this.blockAt(0,s,v,_))}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>3?arguments[3]:void 0;return s&&s.from<=o&&s.more&&this.setHeight(i,s.heights[s.index++]),this.outdated=!1,this}toString(){return"block(".concat(this.length,")")}}class Ar extends kr{constructor(i,o){super(i,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(i,o,s,v){return new Cr(v,this.length,s,this.height,this.breaks)}replace(i,o,s){let v=s[0];return 1==s.length&&(v instanceof Ar||v instanceof Dr&&4&v.flags)&&Math.abs(this.length-v.length)<10?(v instanceof Dr?v=new Ar(v.length,this.height):v.height=this.height,this.outdated||(v.outdated=!1),v):Er.of(s)}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=arguments.length>3?arguments[3]:void 0;return v&&v.from<=o&&v.more?this.setHeight(i,v.heights[v.index++]):(s||this.outdated)&&this.setHeight(i,Math.max(this.widgetHeight,i.heightForLine(this.length-this.collapsed))+this.breaks*i.lineHeight),this.outdated=!1,this}toString(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}class Dr extends Er{constructor(i){super(i,0)}heightMetrics(i,o){let s,v=i.doc.lineAt(o).number,_=i.doc.lineAt(o+this.length).number,$=_-v+1,ae=0;if(i.lineWrapping){let o=Math.min(this.height,i.lineHeight*$);s=o/$,this.length>$+1&&(ae=(this.height-o)/(this.length-$-1))}else s=this.height/$;return{firstLine:v,lastLine:_,perLine:s,perChar:ae}}blockAt(i,o,s,v){let{firstLine:_,lastLine:$,perLine:ae,perChar:pe}=this.heightMetrics(o,v);if(o.lineWrapping){let _=v+Math.round(Math.max(0,Math.min(1,(i-s)/this.height))*this.length),$=o.doc.lineAt(_),we=ae+$.length*pe,_e=Math.max(s,i-we/2);return new Cr($.from,$.length,_e,we,0)}{let v=Math.max(0,Math.min($-_,Math.floor((i-s)/ae))),{from:pe,length:we}=o.doc.line(_+v);return new Cr(pe,we,s+ae*v,ae,0)}}lineAt(i,o,s,v,_){if(o==Sr.ByHeight)return this.blockAt(i,s,v,_);if(o==Sr.ByPosNoHeight){let{from:o,to:v}=s.doc.lineAt(i);return new Cr(o,v-o,0,0,0)}let{firstLine:$,perLine:ae,perChar:pe}=this.heightMetrics(s,_),we=s.doc.lineAt(i),_e=ae+we.length*pe,et=we.number-$,tt=v+ae*et+pe*(we.from-_-et);return new Cr(we.from,we.length,Math.max(v,Math.min(tt,v+this.height-_e)),_e,0)}forEachLine(i,o,s,v,_,$){i=Math.max(i,_),o=Math.min(o,_+this.length);let{firstLine:ae,perLine:pe,perChar:we}=this.heightMetrics(s,_);for(let _e=i,et=v;_e<=o;){let o=s.doc.lineAt(_e);if(_e==i){let s=o.number-ae;et+=pe*s+we*(i-_-s)}let v=pe+we*o.length;$(new Cr(o.from,o.length,et,v,0)),et+=v,_e=o.to+1}}replace(i,o,s){let v=this.length-o;if(v>0){let i=s[s.length-1];i instanceof Dr?s[s.length-1]=new Dr(i.length+v):s.push(null,new Dr(v-1))}if(i>0){let o=s[0];o instanceof Dr?s[0]=new Dr(i+o.length):s.unshift(new Dr(i-1),null)}return Er.of(s)}decomposeLeft(i,o){o.push(new Dr(i-1),null)}decomposeRight(i,o){o.push(null,new Dr(this.length-i-1))}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=arguments.length>3?arguments[3]:void 0,_=o+this.length;if(v&&v.from<=o+this.length&&v.more){let s=[],$=Math.max(o,v.from),ae=-1;for(v.from>o&&s.push(new Dr(v.from-o-1).updateHeight(i,o));$<=_&&v.more;){let o=i.doc.lineAt($).length;s.length&&s.push(null);let _=v.heights[v.index++];-1==ae?ae=_:Math.abs(_-ae)>=_r&&(ae=-2);let pe=new Ar(o,_);pe.outdated=!1,s.push(pe),$+=o+1}$<=_&&s.push(null,new Dr(_-$).updateHeight(i,$));let pe=Er.of(s);return(ae<0||Math.abs(pe.height-this.height)>=_r||Math.abs(ae-this.heightMetrics(i,o).perLine)>=_r)&&(i.heightChanged=!0),pe}return(s||this.outdated)&&(this.setHeight(i,i.heightForGap(o,o+this.length)),this.outdated=!1),this}toString(){return"gap(".concat(this.length,")")}}class Pr extends Er{constructor(i,o,s){super(i.length+o+s.length,i.height+s.height,o|(i.outdated||s.outdated?2:0)),this.left=i,this.right=s,this.size=i.size+s.size}get break(){return 1&this.flags}blockAt(i,o,s,v){let _=s+this.left.height;return i<_?this.left.blockAt(i,o,s,v):this.right.blockAt(i,o,_,v+this.left.length+this.break)}lineAt(i,o,s,v,_){let $=v+this.left.height,ae=_+this.left.length+this.break,pe=o==Sr.ByHeight?i<$:iae))return we;let _e=o==Sr.ByPosNoHeight?Sr.ByPosNoHeight:Sr.ByPos;return pe?we.join(this.right.lineAt(ae,_e,s,$,ae)):this.left.lineAt(ae,_e,s,v,_).join(we)}forEachLine(i,o,s,v,_,$){let ae=v+this.left.height,pe=_+this.left.length+this.break;if(this.break)i=pe&&this.right.forEachLine(i,o,s,ae,pe,$);else{let we=this.lineAt(pe,Sr.ByPos,s,v,_);i=i&&we.from<=o&&$(we),o>we.to&&this.right.forEachLine(we.to+1,o,s,ae,pe,$)}}replace(i,o,s){let v=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(i-v,o-v,s));let _=[];i>0&&this.decomposeLeft(i,_);let $=_.length;for(let i of s)_.push(i);if(i>0&&mergeGaps(_,$-1),o=s&&o.push(null)),i>s&&this.right.decomposeLeft(i-s,o)}decomposeRight(i,o){let s=this.left.length,v=s+this.break;if(i>=v)return this.right.decomposeRight(i-v,o);i2*o.size||o.size>2*i.size?Er.of(this.break?[i,null,o]:[i,o]):(this.left=i,this.right=o,this.height=i.height+o.height,this.outdated=i.outdated||o.outdated,this.size=i.size+o.size,this.length=i.length+this.break+o.length,this)}updateHeight(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=arguments.length>3?arguments[3]:void 0,{left:_,right:$}=this,ae=o+_.length+this.break,pe=null;return v&&v.from<=o+_.length&&v.more?pe=_=_.updateHeight(i,o,s,v):_.updateHeight(i,o,s),v&&v.from<=ae+$.length&&v.more?pe=$=$.updateHeight(i,ae,s,v):$.updateHeight(i,ae,s),pe?this.balanced(_,$):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mergeGaps(i,o){let s,v;null==i[o]&&(s=i[o-1])instanceof Dr&&(v=i[o+1])instanceof Dr&&i.splice(o-1,3,new Dr(s.length+1+v.length))}class Tr{constructor(i,o){this.pos=i,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=i}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(i,o){if(this.lineStart>-1){let i=Math.min(o,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof Ar?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Ar(i-this.pos,-1)),this.writtenTo=i,o>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(i,o,s){if(i=5)&&this.addLineDeco(v,_,$)}else o>i&&this.span(i,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:i,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=i,this.lineEnd=o,this.writtenToi&&this.nodes.push(new Ar(this.pos-i,-1)),this.writtenTo=this.pos}blankContent(i,o){let s=new Dr(o-i);return this.oracle.doc.lineAt(i).to==o&&(s.flags|=4),s}ensureLine(){this.enterLine();let i=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(i instanceof Ar)return i;let o=new Ar(0,-1);return this.nodes.push(o),o}addBlock(i){this.enterLine();let o=i.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(i),this.writtenTo=this.pos=this.pos+i.length,o&&o.endSide>0&&(this.covering=i)}addLineDeco(i,o,s){let v=this.ensureLine();v.length+=s,v.collapsed+=s,v.widgetHeight=Math.max(v.widgetHeight,i),v.breaks+=o,this.writtenTo=this.pos=this.pos+s}finish(i){let o=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||o instanceof Ar||this.isCovered?(this.writtenTos.clientHeight||s.scrollWidth>s.clientWidth)&&"visible"!=v.overflow){let v=s.getBoundingClientRect();$=Math.max($,v.left),ae=Math.min(ae,v.right),pe=Math.max(pe,v.top),we=o==i.parentNode?v.bottom:Math.min(we,v.bottom)}o="absolute"==v.position||"fixed"==v.position?s.offsetParent:s.parentNode}else{if(11!=o.nodeType)break;o=o.host}return{left:$-s.left,right:Math.max($,ae)-s.left,top:pe-(s.top+o),bottom:Math.max(pe,we)-(s.top+o)}}function fullPixelRange(i,o){let s=i.getBoundingClientRect();return{left:0,right:s.right-s.left,top:o,bottom:s.bottom-(s.top+o)}}class Fr{constructor(i,o,s){this.from=i,this.to=o,this.size=s}static same(i,o){if(i.length!=o.length)return!1;for(let s=0;s"function"!=typeof i&&"cm-lineWrapping"==i.class));this.heightOracle=new xr(o),this.stateDeco=i.facet(nn).filter((i=>"function"!=typeof i)),this.heightMap=Er.empty().applyChanges(this.stateDeco,v.o.empty,this.heightOracle.setDoc(i.doc),[new ra(0,0,0,i.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Dt.set(this.lineGaps.map((i=>i.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let i=[this.viewport],{main:o}=this.state.selection;for(let s=0;s<=1;s++){let v=s?o.head:o.anchor;if(!i.some((i=>{let{from:o,to:s}=i;return v>=o&&v<=s}))){let{from:o,to:s}=this.lineBlockAt(v);i.push(new Lr(o,s))}}this.viewports=i.sort(((i,o)=>i.from-o.from)),this.scaler=this.heightMap.height<=7e6?jr:new Mr(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(i=>{this.viewportLines.push(1==this.scaler.scale?i:scaleBlock(i,this.scaler))}))}update(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=i.state;let s=this.stateDeco;this.stateDeco=this.state.facet(nn).filter((i=>"function"!=typeof i));let _=i.changedRanges,$=ra.extendWithRanges(_,heightRelevantDecoChanges(s,this.stateDeco,i?i.changes:v.c.empty(this.state.doc.length))),ae=this.heightMap.height,pe=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,i.startState.doc,this.heightOracle.setDoc(this.state.doc),$),this.heightMap.height!=ae&&(i.flags|=2),pe?(this.scrollAnchorPos=i.changes.mapPos(pe.from,-1),this.scrollAnchorHeight=pe.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let we=$.length?this.mapViewport(this.viewport,i.changes):this.viewport;(o&&(o.range.headwe.to)||!this.viewportIsAppropriate(we))&&(we=this.getViewport(0,o));let _e=!i.changes.empty||2&i.flags||we.from!=this.viewport.from||we.to!=this.viewport.to;this.viewport=we,this.updateForViewport(),_e&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,i.changes))),i.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&i.selectionSet&&i.view.lineWrapping&&i.state.selection.main.empty&&i.state.selection.main.assoc&&!i.state.facet($t)&&(this.mustEnforceCursorAssoc=!0)}measure(i){let o=i.contentDOM,s=window.getComputedStyle(o),_=this.heightOracle,$=s.whiteSpace;this.defaultTextDirection="rtl"==s.direction?ca.RTL:ca.LTR;let ae=this.heightOracle.mustRefreshForWrapping($),pe=o.getBoundingClientRect(),we=ae||this.mustMeasureContent||this.contentDOMHeight!=pe.height;this.contentDOMHeight=pe.height,this.mustMeasureContent=!1;let _e=0,et=0;if(pe.width&&pe.height){let{scaleX:i,scaleY:s}=getScale(o,pe);this.scaleX==i&&this.scaleY==s||(this.scaleX=i,this.scaleY=s,_e|=8,ae=we=!0)}let tt=(parseInt(s.paddingTop)||0)*this.scaleY,nt=(parseInt(s.paddingBottom)||0)*this.scaleY;this.paddingTop==tt&&this.paddingBottom==nt||(this.paddingTop=tt,this.paddingBottom=nt,_e|=10),this.editorWidth!=i.scrollDOM.clientWidth&&(_.lineWrapping&&(we=!0),this.editorWidth=i.scrollDOM.clientWidth,_e|=8);let rt=i.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=rt&&(this.scrollAnchorHeight=-1,this.scrollTop=rt),this.scrolledToBottom=isScrolledToBottom(i.scrollDOM);let it=(this.printing?fullPixelRange:visiblePixelRange)(o,this.paddingTop),ot=it.top-this.pixelViewport.top,st=it.bottom-this.pixelViewport.bottom;this.pixelViewport=it;let dt=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(dt!=this.inView&&(this.inView=dt,dt&&(we=!0)),!this.inView&&!this.scrollTarget)return 0;let ut=pe.width;if(this.contentDOMWidth==ut&&this.editorHeight==i.scrollDOM.clientHeight||(this.contentDOMWidth=pe.width,this.editorHeight=i.scrollDOM.clientHeight,_e|=8),we){let o=i.docView.measureVisibleLineHeights(this.viewport);if(_.mustRefreshForHeights(o)&&(ae=!0),ae||_.lineWrapping&&Math.abs(ut-this.contentDOMWidth)>_.charWidth){let{lineHeight:s,charWidth:v,textHeight:pe}=i.docView.measureTextSize();ae=s>0&&_.refresh($,s,v,pe,ut/v,o),ae&&(i.docView.minWidth=0,_e|=8)}ot>0&&st>0?et=Math.max(ot,st):ot<0&&st<0&&(et=Math.min(ot,st)),_.heightChanged=!1;for(let s of this.viewports){let $=s.from==this.viewport.from?o:i.docView.measureVisibleLineHeights(s);this.heightMap=(ae?Er.empty().applyChanges(this.stateDeco,v.o.empty,this.heightOracle,[new ra(0,0,0,i.state.doc.length)]):this.heightMap).updateHeight(_,0,ae,new wr(s.from,$))}_.heightChanged&&(_e|=2)}let lt=!this.viewportIsAppropriate(this.viewport,et)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return lt&&(this.viewport=this.getViewport(et,this.scrollTarget)),this.updateForViewport(),(2&_e||lt)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(ae?[]:this.lineGaps,i)),_e|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,i.docView.enforceCursorAssoc()),_e}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(i,o){let s=.5-Math.max(-.5,Math.min(.5,i/1e3/2)),v=this.heightMap,_=this.heightOracle,{visibleTop:$,visibleBottom:ae}=this,pe=new Lr(v.lineAt($-1e3*s,Sr.ByHeight,_,0,0).from,v.lineAt(ae+1e3*(1-s),Sr.ByHeight,_,0,0).to);if(o){let{head:i}=o.range;if(ipe.to){let s,$=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),ae=v.lineAt(i,Sr.ByPos,_,0,0);s="center"==o.y?(ae.top+ae.bottom)/2-$/2:"start"==o.y||"nearest"==o.y&&i1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;let{top:_}=this.heightMap.lineAt(o,Sr.ByPos,this.heightOracle,0,0),{bottom:$}=this.heightMap.lineAt(s,Sr.ByPos,this.heightOracle,0,0),{visibleTop:ae,visibleBottom:pe}=this;return(0==o||_<=ae-Math.max(10,Math.min(-v,250)))&&(s==this.state.doc.length||$>=pe+Math.max(10,Math.min(v,250)))&&_>ae-2e3&&$>1,ae=_<<1;if(this.defaultTextDirection!=ca.LTR&&!s)return[];let pe=[],addGap=(_,ae,we,_e)=>{if(ae-_<$)return;let et=this.state.selection.main,tt=[et.from];et.empty||tt.push(et.to);for(let i of tt)if(i>_&&ii.from>=we.from&&i.to<=we.to&&Math.abs(i.from-_)<$&&Math.abs(i.to-ae)<$&&!tt.some((o=>i.fromo))));if(!nt){if(aei.from<=ae&&i.to>=ae))){let i=o.moveToLineBoundary(v.e.cursor(ae),!1,!0).head;i>_&&(ae=i)}nt=new Fr(_,ae,this.gapSize(we,_,ae,_e))}pe.push(nt)};for(let i of this.viewportLines){if(i.lengthi.from&&addGap(i.from,v,i,o),$i.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let i=this.stateDeco;this.lineGaps.length&&(i=i.concat(this.lineGapDeco));let o=[];v.j.spans(i,this.viewport.from,this.viewport.to,{span(i,s){o.push({from:i,to:s})},point(){}},20);let s=o.length!=this.visibleRanges.length||this.visibleRanges.some(((i,s)=>i.from!=o[s].from||i.to!=o[s].to));return this.visibleRanges=o,s?4:0}lineBlockAt(i){return i>=this.viewport.from&&i<=this.viewport.to&&this.viewportLines.find((o=>o.from<=i&&o.to>=i))||scaleBlock(this.heightMap.lineAt(i,Sr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(i){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(i),Sr.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(i){let o=this.lineBlockAtHeight(i+8);return o.from>=this.viewport.from||this.viewportLines[0].top-i>200?o:this.viewportLines[0]}elementAtHeight(i){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(i),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Lr{constructor(i,o){this.from=i,this.to=o}}function lineStructure(i,o,s){let _=[],$=i,ae=0;return v.j.spans(s,i,o,{span(){},point(i,o){i>$&&(_.push({from:$,to:i}),ae+=i-$),$=o}},20),$=1)return v[v.length-1].to;let _=Math.floor(s*o);for(let i=0;;i++){let{from:o,to:s}=v[i],$=s-o;if(_<=$)return o+_;_-=$}}function findFraction(i,o){let s=0;for(let{from:v,to:_}of i.ranges){if(o<=_){s+=o-v;break}s+=_-v}return s/i.total}function find(i,o){for(let s of i)if(o(s))return s}const jr={toDOM:i=>i,fromDOM:i=>i,scale:1};class Mr{constructor(i,o,s){let v=0,_=0,$=0;this.viewports=s.map((s=>{let{from:_,to:$}=s,ae=o.lineAt(_,Sr.ByPos,i,0,0).top,pe=o.lineAt($,Sr.ByPos,i,0,0).bottom;return v+=pe-ae,{from:_,to:$,top:ae,bottom:pe,domTop:0,domBottom:0}})),this.scale=(7e6-v)/(o.height-v);for(let i of this.viewports)i.domTop=$+(i.top-_)*this.scale,$=i.domBottom=i.domTop+(i.bottom-i.top),_=i.bottom}toDOM(i){for(let o=0,s=0,v=0;;o++){let _=oscaleBlock(i,o))):i._content)}const Qr=v.g.define({combine:i=>i.join(" ")}),Vr=v.g.define({combine:i=>i.indexOf(!0)>-1}),Ur=_.a.newName(),Wr=_.a.newName(),$r=_.a.newName(),qr={"&light":"."+Wr,"&dark":"."+$r};function buildTheme(i,o,s){return new _.a(o,{finish:o=>/&/.test(o)?o.replace(/&\w*/,(o=>{if("&"==o)return i;if(!s||!s[o])throw new RangeError("Unsupported selector: ".concat(o));return s[o]})):i+" "+o})}const zr=buildTheme("."+Ur,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},qr),Zr="￿";class Hr{constructor(i,o){this.points=i,this.text="",this.lineSeparator=o.facet(v.f.lineSeparator)}append(i){this.text+=i}lineBreak(){this.text+=Zr}readRange(i,o){if(!i)return this;let s=i.parentNode;for(let v=i;;){this.findPointBefore(s,v);let i=this.text.length;this.readNode(v);let _=v.nextSibling;if(_==o)break;let $=st.get(v),ae=st.get(_);($&&ae?$.breakAfter:($?$.breakAfter:isBlockElement(v))||isBlockElement(_)&&("BR"!=v.nodeName||v.cmIgnore)&&this.text.length>i)&&this.lineBreak(),v=_}return this.findPointBefore(s,o),this}readTextNode(i){let o=i.nodeValue;for(let s of this.points)s.node==i&&(s.pos=this.text.length+Math.min(s.offset,o.length));for(let s=0,v=this.lineSeparator?null:/\r\n?|\n/g;;){let _,$=-1,ae=1;if(this.lineSeparator?($=o.indexOf(this.lineSeparator,s),ae=this.lineSeparator.length):(_=v.exec(o))&&($=_.index,ae=_[0].length),this.append(o.slice(s,$<0?o.length:$)),$<0)break;if(this.lineBreak(),ae>1)for(let o of this.points)o.node==i&&o.pos>this.text.length&&(o.pos-=ae-1);s=$+ae}}readNode(i){if(i.cmIgnore)return;let o=st.get(i),s=o&&o.overrideDOMText;if(null!=s){this.findPointInside(i,s.length);for(let i=s.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else 3==i.nodeType?this.readTextNode(i):"BR"==i.nodeName?i.nextSibling&&this.lineBreak():1==i.nodeType&&this.readRange(i.firstChild,null)}findPointBefore(i,o){for(let s of this.points)s.node==i&&i.childNodes[s.offset]==o&&(s.pos=this.text.length)}findPointInside(i,o){for(let s of this.points)(3==i.nodeType?s.node==i:i.contains(s.node))&&(s.pos=this.text.length+(isAtEnd(i,s.node,s.offset)?o:0))}}function isAtEnd(i,o,s){for(;;){if(!o||s-1)this.newSel=null;else if(o>-1&&(this.bounds=i.docView.domBoundsAround(o,s,0))){let o=$||ae?[]:selectionPoints(i),s=new Hr(o,i.state);s.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=s.text,this.newSel=selectionFromPoints(o,this.bounds.from)}else{let o=i.observer.selectionRange,s=$&&$.node==o.focusNode&&$.offset==o.focusOffset||!contains(i.contentDOM,o.focusNode)?i.state.selection.main.head:i.docView.posFromDOM(o.focusNode,o.focusOffset),_=ae&&ae.node==o.anchorNode&&ae.offset==o.anchorOffset||!contains(i.contentDOM,o.anchorNode)?i.state.selection.main.anchor:i.docView.posFromDOM(o.anchorNode,o.anchorOffset);this.newSel=v.e.single(_,s)}}}function applyDOMChange(i,o){let s,{newSel:_}=o,$=i.state.selection.main,ae=i.inputState.lastKeyTime>Date.now()-100?i.inputState.lastKeyCode:-1;if(o.bounds){let{from:_,to:pe}=o.bounds,we=$.from,_e=null;(8===ae||bt.android&&o.text.length=$.from&&s.to<=$.to&&(s.from!=$.from||s.to!=$.to)&&$.to-$.from-(s.to-s.from)<=4?s={from:$.from,to:$.to,insert:i.state.doc.slice($.from,s.from).append(s.insert).append(i.state.doc.slice(s.to,$.to))}:(bt.mac||bt.android)&&s&&s.from==s.to&&s.from==$.head-1&&/^\. ?$/.test(s.insert.toString())&&"off"==i.contentDOM.getAttribute("autocorrect")?(_&&2==s.insert.length&&(_=v.e.single(_.main.anchor-1,_.main.head-1)),s={from:$.from,to:$.to,insert:v.o.of([" "])}):bt.chrome&&s&&s.from==s.to&&s.from==$.head&&"\n "==s.insert.toString()&&i.lineWrapping&&(_&&(_=v.e.single(_.main.anchor-1,_.main.head-1)),s={from:$.from,to:$.to,insert:v.o.of([" "])}),s){if(bt.ios&&i.inputState.flushIOSKey())return!0;if(bt.android&&(s.from==$.from&&s.to==$.to&&1==s.insert.length&&2==s.insert.lines&&dispatchKey(i.contentDOM,"Enter",13)||(s.from==$.from-1&&s.to==$.to&&0==s.insert.length||8==ae&&s.insert.length$.head)&&dispatchKey(i.contentDOM,"Backspace",8)||s.from==$.from&&s.to==$.to+1&&0==s.insert.length&&dispatchKey(i.contentDOM,"Delete",46)))return!0;let o,v=s.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let defaultInsert=()=>o||(o=applyDefaultInsert(i,s,_));return i.state.facet(Vt).some((o=>o(i,s.from,s.to,v,defaultInsert)))||i.dispatch(defaultInsert()),!0}if(_&&!_.main.eq($)){let o=!1,s="select";return i.inputState.lastSelectionTime>Date.now()-50&&("select"==i.inputState.lastSelectionOrigin&&(o=!0),s=i.inputState.lastSelectionOrigin),i.dispatch({selection:_,scrollIntoView:o,userEvent:s}),!0}return!1}function applyDefaultInsert(i,o,s){let _,$=i.state,ae=$.selection.main;if(o.from>=ae.from&&o.to<=ae.to&&o.to-o.from>=(ae.to-ae.from)/3&&(!s||s.main.empty&&s.main.from==o.from+o.insert.length)&&i.inputState.composing<0){let s=ae.fromo.to?$.sliceDoc(o.to,ae.to):"";_=$.replaceSelection(i.state.toText(s+o.insert.sliceString(0,void 0,i.state.lineBreak)+v))}else{let pe=$.changes(o),we=s&&s.main.to<=pe.newLength?s.main:void 0;if($.selection.ranges.length>1&&i.inputState.composing>=0&&o.to<=ae.to&&o.to>=ae.to-10){let _e,et=i.state.sliceDoc(o.from,o.to),tt=s&&findCompositionNode(i,s.main.head);if(tt){let i=o.insert.length-(o.to-o.from);_e={from:tt.from,to:tt.to-i}}else _e=i.state.doc.lineAt(ae.head);let nt=ae.to-o.to,rt=ae.to-ae.from;_=$.changeByRange((s=>{if(s.from==ae.from&&s.to==ae.to)return{changes:pe,range:we||s.map(pe)};let _=s.to-nt,tt=_-et.length;if(s.to-s.from!=rt||i.state.sliceDoc(tt,_)!=et||s.to>=_e.from&&s.from<=_e.to)return{range:s};let it=$.changes({from:tt,to:_,insert:o.insert}),ot=s.to-ae.to;return{changes:it,range:we?v.e.range(Math.max(0,we.anchor+ot),Math.max(0,we.head+ot)):s.map(it)}}))}else _={changes:pe,selection:we&&$.selection.replaceRange(we)}}let pe="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,pe+=".compose",i.inputState.compositionFirstChange&&(pe+=".start",i.inputState.compositionFirstChange=!1)),$.update(_,{userEvent:pe,scrollIntoView:!0})}function findDiff(i,o,s,v){let _=Math.min(i.length,o.length),$=0;for(;$<_&&i.charCodeAt($)==o.charCodeAt($);)$++;if($==_&&i.length==o.length)return null;let ae=i.length,pe=o.length;for(;ae>0&&pe>0&&i.charCodeAt(ae-1)==o.charCodeAt(pe-1);)ae--,pe--;if("end"==v){s-=ae+Math.max(0,$-Math.min(ae,pe))-$}if(ae<$&&i.length=ae?$-s:0,pe=$+(pe-ae),ae=$}else if(pe<$){$-=s<=$&&s>=pe?$-s:0,ae=$+(ae-pe),pe=$}return{from:$,toA:ae,toB:pe}}function selectionPoints(i){let o=[];if(i.root.activeElement!=i.contentDOM)return o;let{anchorNode:s,anchorOffset:v,focusNode:_,focusOffset:$}=i.observer.selectionRange;return s&&(o.push(new Gr(s,v)),_==s&&$==v||o.push(new Gr(_,$))),o}function selectionFromPoints(i,o){if(0==i.length)return null;let s=i[0].pos,_=2==i.length?i[1].pos:s;return s>-1&&_>-1?v.e.single(s+o,_+o):null}const Yr={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Kr=bt.ie&&bt.ie_version<=11;class Jr{constructor(i){this.view=i,this.active=!1,this.selectionRange=new tt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=i.contentDOM,this.observer=new MutationObserver((o=>{for(let i of o)this.queue.push(i);(bt.ie&&bt.ie_version<=11||bt.ios&&i.composing)&&o.some((i=>"childList"==i.type&&i.removedNodes.length||"characterData"==i.type&&i.oldValue.length>i.target.nodeValue.length))?this.flushSoon():this.flush()})),Kr&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var i;(null===(i=this.view.docView)||void 0===i?void 0:i.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),i.length>0&&i[i.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((i=>{i.length>0&&i[i.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(i){this.view.inputState.runHandlers("scroll",i),this.intersecting&&this.view.measure()}onScroll(i){this.intersecting&&this.flush(!1),this.onScrollChanged(i)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(i){if(this.gapIntersection&&(i.length!=this.gaps.length||this.gaps.some(((o,s)=>o!=i[s])))){this.gapIntersection.disconnect();for(let o of i)this.gapIntersection.observe(o);this.gaps=i}}onSelectionChange(i){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:s}=this,v=this.selectionRange;if(s.state.facet(Zt)?s.root.activeElement!=this.dom:!hasSelection(s.dom,v))return;let _=v.anchorNode&&s.docView.nearest(v.anchorNode);_&&_.ignoreEvent(i)?o||(this.selectionChanged=!1):(bt.ie&&bt.ie_version<=11||bt.android&&bt.chrome)&&!s.state.selection.main.empty&&v.focusNode&&isEquivalentPosition(v.focusNode,v.focusOffset,v.anchorNode,v.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:i}=this,o=bt.safari&&11==i.root.nodeType&&deepActiveElement(this.dom.ownerDocument)==this.dom&&safariSelectionRangeHack(this.view)||getSelection(i.root);if(!o||this.selectionRange.eq(o))return!1;let s=hasSelection(this.dom,o);return s&&!this.selectionChanged&&i.inputState.lastFocusTime>Date.now()-200&&i.inputState.lastTouchTime{let i=this.delayedAndroidKey;if(i){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&dispatchKey(this.dom,i.key,i.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(flush)}this.delayedAndroidKey&&"Enter"!=i||(this.delayedAndroidKey={key:i,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let i of this.observer.takeRecords())this.queue.push(i);return this.queue}processRecords(){let i=this.pendingRecords();i.length&&(this.queue=[]);let o=-1,s=-1,v=!1;for(let _ of i){let i=this.readMutation(_);i&&(i.typeOver&&(v=!0),-1==o?({from:o,to:s}=i):(o=Math.min(i.from,o),s=Math.max(i.to,s)))}return{from:o,to:s,typeOver:v}}readChange(){let{from:i,to:o,typeOver:s}=this.processRecords(),v=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(i<0&&!v)return null;i>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let _=new Xr(this.view,i,o,s);return this.view.docView.domChanged={newSel:_.newSel?_.newSel.main:null},_}flush(){let i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;i&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let s=this.view.state,v=applyDOMChange(this.view,o);return this.view.state==s&&this.view.update([]),v}readMutation(i){let o=this.view.docView.nearest(i.target);if(!o||o.ignoreMutation(i))return null;if(o.markDirty("attributes"==i.type),"attributes"==i.type&&(o.flags|=4),"childList"==i.type){let s=findChild(o,i.previousSibling||i.target.previousSibling,-1),v=findChild(o,i.nextSibling||i.target.nextSibling,1);return{from:s?o.posAfter(s):o.posAtStart,to:v?o.posBefore(v):o.posAtEnd,typeOver:!1}}return"characterData"==i.type?{from:o.posAtStart,to:o.posAtEnd,typeOver:i.target.nodeValue==i.oldValue}:null}setWindow(i){i!=this.win&&(this.removeWindowListeners(this.win),this.win=i,this.addWindowListeners(this.win))}addWindowListeners(i){i.addEventListener("resize",this.onResize),i.addEventListener("beforeprint",this.onPrint),i.addEventListener("scroll",this.onScroll),i.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(i){i.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onResize),i.removeEventListener("beforeprint",this.onPrint),i.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var i,o,s;this.stop(),null===(i=this.intersection)||void 0===i||i.disconnect(),null===(o=this.gapIntersection)||void 0===o||o.disconnect(),null===(s=this.resizeScroll)||void 0===s||s.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function findChild(i,o,s){for(;o;){let v=st.get(o);if(v&&v.parent==i)return v;let _=o.parentNode;o=_!=i.dom?_:s>0?o.nextSibling:o.previousSibling}return null}function safariSelectionRangeHack(i){let o=null;function read(i){i.preventDefault(),i.stopImmediatePropagation(),o=i.getTargetRanges()[0]}if(i.contentDOM.addEventListener("beforeinput",read,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",read,!0),!o)return null;let s=o.startContainer,v=o.startOffset,_=o.endContainer,$=o.endOffset,ae=i.docView.domAtPos(i.state.selection.main.anchor);return isEquivalentPosition(ae.node,ae.offset,_,$)&&([s,v,_,$]=[_,$,s,v]),{anchorNode:s,anchorOffset:v,focusNode:_,focusOffset:$}}class _i{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),i.parent&&i.parent.appendChild(this.dom);let{dispatch:o}=i;this.dispatchTransactions=i.dispatchTransactions||o&&(i=>i.forEach((i=>o(i,this))))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=i.root||getRoot(i.parent)||document,this.viewState=new Br(i.state||v.f.create(i)),i.scrollTo&&i.scrollTo.is(zt)&&(this.viewState.scrollTarget=i.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Gt).map((i=>new Yt(i)));for(let i of this.plugins)i.update(this);this.observer=new Jr(this),this.inputState=new or(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ar(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(){for(var i=arguments.length,o=new Array(i),s=0;si.annotation(Rr)))?(this.inputState.notifiedFocused=ae,pe=1):ae!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=ae,we=focusChangeTransaction($,ae),we||(pe=1));let _e=this.observer.delayedAndroidKey,et=null;if(_e?(this.observer.clearDelayedAndroidKey(),et=this.observer.readChange(),(et&&!this.state.doc.eq($.doc)||!this.state.selection.eq($.selection))&&(et=null)):this.observer.clear(),$.facet(v.f.phrases)!=this.state.facet(v.f.phrases))return this.setState($);o=ia.create(this,$,i),o.flags|=pe;let tt=this.viewState.scrollTarget;try{this.updateState=2;for(let o of i){if(tt&&(tt=tt.map(o.changes)),o.scrollIntoView){let{main:i}=o.state.selection;tt=new qt(i.empty?i:v.e.cursor(i.head,i.head>i.anchor?-1:1))}for(let i of o.effects)i.is(zt)&&(tt=i.value.clip(this.state))}this.viewState.update(o,tt),this.bidiCache=Ji.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),s=this.docView.update(o),this.state.facet(aa)!=this.styleModules&&this.mountStyles(),_=this.updateAttrs(),this.showAnnouncements(i),this.docView.updateSelection(s,i.some((i=>i.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(o.startState.facet(Qr)!=o.state.facet(Qr)&&(this.viewState.mustMeasureContent=!0),(s||_||tt||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let i of this.state.facet(Qt))try{i(o)}catch(i){logException(this.state,i,"update listener")}(we||et)&&Promise.resolve().then((()=>{we&&this.state==we.startState&&this.dispatch(we),et&&!applyDOMChange(this,et)&&_e.force&&dispatchKey(this.contentDOM,_e.key,_e.keyCode)}))}setState(i){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=i);this.updateState=2;let o=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new Br(i),this.plugins=i.facet(Gt).map((i=>new Yt(i))),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new ar(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(i){let o=i.startState.facet(Gt),s=i.state.facet(Gt);if(o!=s){let v=[];for(let _ of s){let s=o.indexOf(_);if(s<0)v.push(new Yt(_));else{let o=this.plugins[s];o.mustUpdate=i,v.push(o)}}for(let o of this.plugins)o.mustUpdate!=i&&o.destroy(this);this.plugins=v,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=i;for(let i=0;i0&&void 0!==arguments[0])||arguments[0];if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,i&&this.observer.forceFlush();let o=null,s=this.scrollDOM,v=s.scrollTop*this.scaleY,{scrollAnchorPos:_,scrollAnchorHeight:$}=this.viewState;Math.abs(v-this.viewState.scrollTop)>1&&($=-1),this.viewState.scrollAnchorHeight=-1;try{for(let i=0;;i++){if($<0)if(isScrolledToBottom(s))_=-1,$=this.viewState.heightMap.height;else{let i=this.viewState.scrollAnchorAt(v);_=i.from,$=i.top}this.updateState=1;let ae=this.viewState.measure(this);if(!ae&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(i>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let pe=[];4&ae||([this.measureRequests,pe]=[pe,this.measureRequests]);let we=pe.map((i=>{try{return i.read(this)}catch(i){return logException(this.state,i),Ui}})),_e=ia.create(this,this.state,[]),et=!1;_e.flags|=ae,o?o.flags|=ae:o=_e,this.updateState=2,_e.empty||(this.updatePlugins(_e),this.inputState.update(_e),this.updateAttrs(),et=this.docView.update(_e));for(let i=0;i1||i<-1){v+=i,s.scrollTop=v/this.scaleY,$=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let i of this.state.facet(Qt))i(o)}get themeClasses(){return Ur+" "+(this.state.facet(Vr)?$r:Wr)+" "+this.state.facet(Qr)}updateAttrs(){let i=attrsFromFacet(this,Kt,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Zt)?"true":"false",class:"cm-content",style:"".concat(bt.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),attrsFromFacet(this,Jt,o);let s=this.observer.ignore((()=>{let s=updateAttrs(this.contentDOM,this.contentAttrs,o),v=updateAttrs(this.dom,this.editorAttrs,i);return s||v}));return this.editorAttrs=i,this.contentAttrs=o,s}showAnnouncements(i){let o=!0;for(let s of i)for(let i of s.effects)if(i.is(_i.announce)){o&&(this.announceDOM.textContent=""),o=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(aa);let i=this.state.facet(_i.cspNonce);_.a.mount(this.root,this.styleModules.concat(zr).reverse(),i?{nonce:i}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(i){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),i){if(this.measureRequests.indexOf(i)>-1)return;if(null!=i.key)for(let o=0;oo.spec==i))||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(i){return this.readMeasured(),this.viewState.elementAtHeight(i)}lineBlockAtHeight(i){return this.readMeasured(),this.viewState.lineBlockAtHeight(i)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(i){return this.viewState.lineBlockAt(i)}get contentHeight(){return this.viewState.contentHeight}moveByChar(i,o,s){return skipAtoms(this,i,moveByChar(this,i,o,s))}moveByGroup(i,o){return skipAtoms(this,i,moveByChar(this,i,o,(o=>byGroup(this,i.head,o))))}moveToLineBoundary(i,o){return moveToLineBoundary(this,i,o,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}moveVertically(i,o,s){return skipAtoms(this,i,moveVertically(this,i,o,s))}domAtPos(i){return this.docView.domAtPos(i)}posAtDOM(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(i,o)}posAtCoords(i){let o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),posAtCoords(this,i,o)}coordsAtPos(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();let s=this.docView.coordsAt(i,o);if(!s||s.left==s.right)return s;let v=this.state.doc.lineAt(i),_=this.bidiSpans(v);return flattenRect(s,_[er.find(_,i-v.from,-1,o)].dir==ca.LTR==o>0)}coordsForChar(i){return this.readMeasured(),this.docView.coordsForChar(i)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(i){return!this.state.facet(Wt)||ithis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(i))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(i){if(i.length>Ei)return trivialOrder(i.length);let o,s=this.textDirectionAt(i.from);for(let v of this.bidiCache)if(v.from==i.from&&v.dir==s&&(v.fresh||isolatesEq(v.isolates,o=getIsolatedRanges(this,i.from,i.to))))return v.order;o||(o=getIsolatedRanges(this,i.from,i.to));let v=computeOrder(i.text,s,o);return this.bidiCache.push(new Ji(i.from,i.to,s,o,!0,v)),v}get hasFocus(){var i;return(this.dom.ownerDocument.hasFocus()||bt.safari&&(null===(i=this.inputState)||void 0===i?void 0:i.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()}))}setRoot(i){this._root!=i&&(this._root=i,this.observer.setWindow((9==i.nodeType?i:i.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let i of this.plugins)i.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zt.of(new qt("number"==typeof i?v.e.cursor(i):i,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:i,scrollLeft:o}=this.scrollDOM,s=this.viewState.scrollAnchorAt(i);return zt.of(new qt(v.e.cursor(s.from),"start","start",s.top-i,o,!0))}static domEventHandlers(i){return Xt.define((()=>({})),{eventHandlers:i})}static domEventObservers(i){return Xt.define((()=>({})),{eventObservers:i})}static theme(i,o){let s=_.a.newName(),v=[Qr.of(s),aa.of(buildTheme(".".concat(s),i))];return o&&o.dark&&v.push(Vr.of(!0)),v}static baseTheme(i){return v.i.lowest(aa.of(buildTheme("."+Ur,i,qr)))}static findFromDOM(i){var o;let s=i.querySelector(".cm-content"),v=s&&st.get(s)||st.get(i);return(null===(o=null==v?void 0:v.rootView)||void 0===o?void 0:o.view)||null}}_i.styleModule=aa,_i.inputHandler=Vt,_i.focusChangeEffect=Ut,_i.perLineTextDirection=Wt,_i.exceptionSink=Mt,_i.updateListener=Qt,_i.editable=Zt,_i.mouseSelectionStyle=jt,_i.dragMovesSelection=Lt,_i.clickAddsSelectionRange=Bt,_i.decorations=nn,_i.atomicRanges=_n,_i.bidiIsolatedRanges=An,_i.scrollMargins=Zn,_i.darkTheme=Vr,_i.cspNonce=v.g.define({combine:i=>i.length?i[0]:""}),_i.contentAttributes=Jt,_i.editorAttributes=Kt,_i.lineWrapping=_i.contentAttributes.of({class:"cm-lineWrapping"}),_i.announce=v.m.define();const Ei=4096,Ui={};class Ji{constructor(i,o,s,v,_,$){this.from=i,this.to=o,this.dir=s,this.isolates=v,this.fresh=_,this.order=$}static update(i,o){if(o.empty&&!i.some((i=>i.fresh)))return i;let s=[],v=i.length?i[i.length-1].dir:ca.LTR;for(let _=Math.max(0,i.length-10);_=0;_--){let o=v[_],$="function"==typeof o?o(i):o;$&&combineAttrs($,s)}return s}const no=bt.mac?"mac":bt.windows?"win":bt.linux?"linux":"key";function normalizeKeyName(i,o){const s=i.split(/-(?!$)/);let v,_,$,ae,pe=s[s.length-1];"Space"==pe&&(pe=" ");for(let i=0;irunHandlers(getKeymap(o.state),i,o,"editor")})),oo=v.g.define({enables:io}),mo=new WeakMap;function getKeymap(i){let o=i.facet(oo),s=mo.get(o);return s||mo.set(o,s=buildKeymap(o.reduce(((i,o)=>i.concat(o)),[]))),s}function runScopeHandlers(i,o,s){return runHandlers(getKeymap(i.state),o,i,s)}let Ro=null;const Oo=4e3;function buildKeymap(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:no,s=Object.create(null),v=Object.create(null),checkPrefix=(i,o)=>{let s=v[i];if(null==s)v[i]=o;else if(s!=o)throw new Error("Key binding "+i+" is used both as a regular binding and as a multi-stroke prefix")},add=(i,v,_,$,ae)=>{var pe,we;let _e=s[i]||(s[i]=Object.create(null)),et=v.split(/ (?!$)/).map((i=>normalizeKeyName(i,o)));for(let o=1;o{let v=Ro={view:o,prefix:s,scope:i};return setTimeout((()=>{Ro==v&&(Ro=null)}),Oo),!0}]})}let tt=et.join(" ");checkPrefix(tt,!1);let nt=_e[tt]||(_e[tt]={preventDefault:!1,stopPropagation:!1,run:(null===(we=null===(pe=_e._any)||void 0===pe?void 0:pe.run)||void 0===we?void 0:we.slice())||[]});_&&nt.run.push(_),$&&(nt.preventDefault=!0),ae&&(nt.stopPropagation=!0)};for(let v of i){let i=v.scope?v.scope.split(" "):["editor"];if(v.any)for(let o of i){let i=s[o]||(s[o]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let o in i)i[o].run.push(v.any)}let _=v[o]||v.key;if(_)for(let o of i)add(o,_,v.run,v.preventDefault,v.stopPropagation),v.shift&&add(o,"Shift-"+_,v.shift,v.preventDefault,v.stopPropagation)}return s}function runHandlers(i,o,s,_){let pe=keyName(o),we=Object(v.q)(pe,0),_e=Object(v.r)(we)==pe.length&&" "!=pe,et="",tt=!1,nt=!1,rt=!1;Ro&&Ro.view==s&&Ro.scope==_&&(et=Ro.prefix+" ",ur.indexOf(o.keyCode)<0&&(nt=!0,Ro=null));let it,ot,st=new Set,runFor=i=>{if(i){for(let v of i.run)if(!st.has(v)&&(st.add(v),v(s,o)))return i.stopPropagation&&(rt=!0),!0;i.preventDefault&&(i.stopPropagation&&(rt=!0),nt=!0)}return!1},dt=i[_];return dt&&(runFor(dt[et+modifiers(pe,o,!_e)])?tt=!0:_e&&(o.altKey||o.metaKey||o.ctrlKey)&&!(bt.windows&&o.ctrlKey&&o.altKey)&&(it=$[o.keyCode])&&it!=pe?(runFor(dt[et+modifiers(it,o,!0)])||o.shiftKey&&(ot=ae[o.keyCode])!=pe&&ot!=it&&runFor(dt[et+modifiers(ot,o,!1)]))&&(tt=!0):_e&&o.shiftKey&&runFor(dt[et+modifiers(pe,o,!0)])&&(tt=!0),!tt&&runFor(dt._any)&&(tt=!0)),nt&&(tt=!0),tt&&rt&&o.stopPropagation(),tt}class wo{constructor(i,o,s,v,_){this.className=i,this.left=o,this.top=s,this.width=v,this.height=_}draw(){let i=document.createElement("div");return i.className=this.className,this.adjust(i),i}update(i,o){return o.className==this.className&&(this.adjust(i),!0)}adjust(i){i.style.left=this.left+"px",i.style.top=this.top+"px",null!=this.width&&(i.style.width=this.width+"px"),i.style.height=this.height+"px"}eq(i){return this.left==i.left&&this.top==i.top&&this.width==i.width&&this.height==i.height&&this.className==i.className}static forRange(i,o,s){if(s.empty){let v=i.coordsAtPos(s.head,s.assoc||1);if(!v)return[];let _=getBase(i);return[new wo(o,v.left-_.left,v.top-_.top,null,v.bottom-v.top)]}return rectanglesForRange(i,o,s)}}function getBase(i){let o=i.scrollDOM.getBoundingClientRect();return{left:(i.textDirection==ca.LTR?o.left:o.right-i.scrollDOM.clientWidth*i.scaleX)-i.scrollDOM.scrollLeft*i.scaleX,top:o.top-i.scrollDOM.scrollTop*i.scaleY}}function wrappedLine(i,o,s){let _=v.e.cursor(o);return{from:Math.max(s.from,i.moveToLineBoundary(_,!1,!0).from),to:Math.min(s.to,i.moveToLineBoundary(_,!0,!0).from),type:At.Text}}function rectanglesForRange(i,o,s){if(s.to<=i.viewport.from||s.from>=i.viewport.to)return[];let v=Math.max(s.from,i.viewport.from),_=Math.min(s.to,i.viewport.to),$=i.textDirection==ca.LTR,ae=i.contentDOM,pe=ae.getBoundingClientRect(),we=getBase(i),_e=ae.querySelector(".cm-line"),et=_e&&window.getComputedStyle(_e),tt=pe.left+(et?parseInt(et.paddingLeft)+Math.min(0,parseInt(et.textIndent)):0),nt=pe.right-(et?parseInt(et.paddingRight):0),rt=blockAt(i,v),it=blockAt(i,_),ot=rt.type==At.Text?rt:null,st=it.type==At.Text?it:null;if(ot&&(i.lineWrapping||rt.widgetLineBreaks)&&(ot=wrappedLine(i,v,ot)),st&&(i.lineWrapping||it.widgetLineBreaks)&&(st=wrappedLine(i,_,st)),ot&&st&&ot.from==st.from)return pieces(drawForLine(s.from,s.to,ot));{let o=ot?drawForLine(s.from,null,ot):drawForWidget(rt,!1),v=st?drawForLine(null,s.to,st):drawForWidget(it,!0),_=[];return(ot||rt).to<(st||it).from-(ot&&st?1:0)||rt.widgetLineBreaks>1&&o.bottom+i.defaultLineHeight/2we&&v.from<_e)for(let _=Math.max(v.from,we),$=Math.min(v.to,_e);;){let v=i.state.doc.lineAt(_);for(let ae of i.bidiSpans(v)){let i=ae.from+v.from,pe=ae.to+v.from;if(i>=$)break;pe>_&&addSpan(Math.max(i,_),null==o&&i<=we,Math.min(pe,$),null==s&&pe>=_e,ae.dir)}if(_=v.to+1,_>=$)break}return 0==pe.length&&addSpan(we,null==o,_e,null==s,i.textDirection),{top:_,bottom:ae,horizontal:pe}}function drawForWidget(i,o){let s=pe.top+(o?i.top:i.bottom);return{top:s,bottom:s,horizontal:[]}}}class Co{constructor(i,o){this.view=i,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=i.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(i.state),i.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,i)}update(i){i.startState.facet(So)!=i.state.facet(So)&&this.setOrder(i.state),(this.layer.update(i,this.dom)||i.geometryChanged)&&(this.scale(),i.view.requestMeasure(this.measureReq))}setOrder(i){let o=0,s=i.facet(So);for(;o{return s=i,v=this.drawn[o],!(s.constructor==v.constructor&&s.eq(v));var s,v}))){let o=this.dom.firstChild,s=0;for(let v of i)v.update&&o&&v.constructor&&this.drawn[s].constructor&&v.update(o,this.drawn[s])?(o=o.nextSibling,s++):this.dom.insertBefore(v.draw(),o);for(;o;){let i=o.nextSibling;o.remove(),o=i}this.drawn=i}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const So=v.g.define();function dist_layer(i){return[Xt.define((o=>new Co(o,i))),So.of(i)]}const _o=!bt.ios,Eo=v.g.define({combine:i=>Object(v.s)(i,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(i,o)=>Math.min(i,o),drawRangeCursor:(i,o)=>i||o})});function drawSelection(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Eo.of(i),ko,Ao,To,$t.of(!0)]}function configChanged(i){return i.startState.facet(Eo)!=i.state.facet(Eo)}const ko=dist_layer({above:!0,markers(i){let{state:o}=i,s=o.facet(Eo),_=[];for(let $ of o.selection.ranges){let ae=$==o.selection.main;if($.empty?!ae||_o:s.drawRangeCursor){let o=ae?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=$.empty?$:v.e.cursor($.head,$.head>$.anchor?-1:1);for(let v of wo.forRange(i,o,s))_.push(v)}}return _},update(i,o){i.transactions.some((i=>i.selection))&&(o.style.animationName="cm-blink"==o.style.animationName?"cm-blink2":"cm-blink");let s=configChanged(i);return s&&setBlinkRate(i.state,o),i.docChanged||i.selectionSet||s},mount(i,o){setBlinkRate(o.state,i)},class:"cm-cursorLayer"});function setBlinkRate(i,o){o.style.animationDuration=i.facet(Eo).cursorBlinkRate+"ms"}const Ao=dist_layer({above:!1,markers:i=>i.state.selection.ranges.map((o=>o.empty?[]:wo.forRange(i,"cm-selectionBackground",o))).reduce(((i,o)=>i.concat(o))),update:(i,o)=>i.docChanged||i.selectionSet||i.viewportChanged||configChanged(i),class:"cm-selectionLayer"}),Po={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};_o&&(Po[".cm-line"].caretColor="transparent !important",Po[".cm-content"]={caretColor:"transparent !important"});const To=v.i.highest(_i.theme(Po)),Io=v.m.define({map:(i,o)=>null==i?null:o.mapPos(i)}),Fo=v.n.define({create:()=>null,update:(i,o)=>(null!=i&&(i=o.changes.mapPos(i)),o.effects.reduce(((i,o)=>o.is(Io)?o.value:i),i))}),No=Xt.fromClass(class{constructor(i){this.view=i,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(i){var o;let s=i.state.field(Fo);null==s?null!=this.cursor&&(null===(o=this.cursor)||void 0===o||o.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(i.startState.field(Fo)!=s||i.docChanged||i.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:i}=this,o=i.state.field(Fo),s=null!=o&&i.coordsAtPos(o);if(!s)return null;let v=i.scrollDOM.getBoundingClientRect();return{left:s.left-v.left+i.scrollDOM.scrollLeft*i.scaleX,top:s.top-v.top+i.scrollDOM.scrollTop*i.scaleY,height:s.bottom-s.top}}drawCursor(i){if(this.cursor){let{scaleX:o,scaleY:s}=this.view;i?(this.cursor.style.left=i.left/o+"px",this.cursor.style.top=i.top/s+"px",this.cursor.style.height=i.height/s+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(i){this.view.state.field(Fo)!=i&&this.view.dispatch({effects:Io.of(i)})}},{eventObservers:{dragover(i){this.setDropPos(this.view.posAtCoords({x:i.clientX,y:i.clientY}))},dragleave(i){i.target!=this.view.contentDOM&&this.view.contentDOM.contains(i.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[Fo,No]}function iterMatches(i,o,s,v,_){o.lastIndex=0;for(let $,ae=i.iterRange(s,v),pe=s;!ae.next().done;pe+=ae.value.length)if(!ae.lineBreak)for(;$=o.exec(ae.value);)_(pe+$.index,$)}function matchRanges(i,o){let s=i.visibleRanges;if(1==s.length&&s[0].from==i.viewport.from&&s[0].to==i.viewport.to)return s;let v=[];for(let{from:_,to:$}of s)_=Math.max(i.state.doc.lineAt(_).from,_-o),$=Math.min(i.state.doc.lineAt($).to,$+o),v.length&&v[v.length-1].to>=_?v[v.length-1].to=$:v.push({from:_,to:$});return v}class Bo{constructor(i){const{regexp:o,decoration:s,decorate:v,boundary:_,maxLength:$=1e3}=i;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,v)this.addMatch=(i,o,s,_)=>v(_,s,s+i[0].length,i,o);else if("function"==typeof s)this.addMatch=(i,o,v,_)=>{let $=s(i,o,v);$&&_(v,v+i[0].length,$)};else{if(!s)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(i,o,v,_)=>_(v,v+i[0].length,s)}this.boundary=_,this.maxLength=$}createDeco(i){let o=new v.k,s=o.add.bind(o);for(let{from:o,to:v}of matchRanges(i,this.maxLength))iterMatches(i.state.doc,this.regexp,o,v,((o,v)=>this.addMatch(v,i,o,s)));return o.finish()}updateDeco(i,o){let s=1e9,v=-1;return i.docChanged&&i.changes.iterChanges(((o,_,$,ae)=>{ae>i.view.viewport.from&&$1e3?this.createDeco(i.view):v>-1?this.updateRange(i.view,o.map(i.changes),s,v):o}updateRange(i,o,s,v){for(let _ of i.visibleRanges){let $=Math.max(_.from,s),ae=Math.min(_.to,v);if(ae>$){let s=i.state.doc.lineAt($),v=s.tos.from;$--)if(this.boundary.test(s.text[$-1-s.from])){pe=$;break}for(;aeet.push(s.range(i,o));if(s==v)for(this.regexp.lastIndex=pe-s.from;(_e=this.regexp.exec(s.text))&&_e.indexthis.addMatch(s,i,o,add)));o=o.update({filterFrom:pe,filterTo:we,filter:(i,o)=>iwe,add:et})}}return o}}const jo=null!=/x/.unicode?"gu":"g",Mo=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",jo),Qo={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Vo=null;function supportsTabSize(){var i;if(null==Vo&&"undefined"!=typeof document&&document.body){let o=document.body.style;Vo=null!=(null!==(i=o.tabSize)&&void 0!==i?i:o.MozTabSize)}return Vo||!1}const Uo=v.g.define({combine(i){let o=Object(v.s)(i,{render:null,specialChars:Mo,addSpecialChars:null});return(o.replaceTabs=!supportsTabSize())&&(o.specialChars=new RegExp("\t|"+o.specialChars.source,jo)),o.addSpecialChars&&(o.specialChars=new RegExp(o.specialChars.source+"|"+o.addSpecialChars.source,jo)),o}});function highlightSpecialChars(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Uo.of(i),Wo||(Wo=Xt.fromClass(class{constructor(i){this.view=i,this.decorations=Dt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(i.state.facet(Uo)),this.decorations=this.decorator.createDeco(i)}makeDecorator(i){return new Bo({regexp:i.specialChars,decoration:(o,s,_)=>{let{doc:$}=s.state,ae=Object(v.q)(o[0],0);if(9==ae){let i=$.lineAt(_),o=s.state.tabSize,ae=Object(v.t)(i.text,o,_-i.from);return Dt.replace({widget:new qo((o-ae%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[ae]||(this.decorationCache[ae]=Dt.replace({widget:new $o(i,ae)}))},boundary:i.replaceTabs?void 0:/[^]/})}update(i){let o=i.state.facet(Uo);i.startState.facet(Uo)!=o?(this.decorator=this.makeDecorator(o),this.decorations=this.decorator.createDeco(i.view)):this.decorations=this.decorator.updateDeco(i,this.decorations)}},{decorations:i=>i.decorations}))]}let Wo=null;class $o extends kt{constructor(i,o){super(),this.options=i,this.code=o}eq(i){return i.code==this.code}toDOM(i){let o=(s=this.code)>=32?"•":10==s?"␤":String.fromCharCode(9216+s);var s;let v=i.state.phrase("Control character")+" "+(Qo[this.code]||"0x"+this.code.toString(16)),_=this.options.render&&this.options.render(this.code,v,o);if(_)return _;let $=document.createElement("span");return $.textContent=o,$.title=v,$.setAttribute("aria-label",v),$.className="cm-specialChar",$}ignoreEvent(){return!1}}class qo extends kt{constructor(i){super(),this.width=i}eq(i){return i.width==this.width}toDOM(){let i=document.createElement("span");return i.textContent="\t",i.className="cm-tab",i.style.width=this.width+"px",i}ignoreEvent(){return!1}}function highlightActiveLine(){return Xo}const Zo=Dt.line({class:"cm-activeLine"}),Xo=Xt.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let o=-1,s=[];for(let v of i.state.selection.ranges){let _=i.lineBlockAt(v.head);_.from>o&&(s.push(Zo.range(_.from)),o=_.from)}return Dt.set(s)}},{decorations:i=>i.decorations});class Yo extends kt{constructor(i){super(),this.content=i}toDOM(){let i=document.createElement("span");return i.className="cm-placeholder",i.style.pointerEvents="none",i.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?i.setAttribute("aria-label","placeholder "+this.content):i.setAttribute("aria-hidden","true"),i}coordsAt(i){let o=i.firstChild?clientRectsFor(i.firstChild):[];if(!o.length)return null;let s=window.getComputedStyle(i.parentNode),v=flattenRect(o[0],"rtl"!=s.direction),_=parseInt(s.lineHeight);return v.bottom-v.top>1.5*_?{left:v.left,right:v.right,top:v.top,bottom:v.top+_}:v}ignoreEvent(){return!1}}function placeholder(i){return Xt.fromClass(class{constructor(o){this.view=o,this.placeholder=i?Dt.set([Dt.widget({widget:new Yo(i),side:1}).range(0)]):Dt.none}get decorations(){return this.view.state.doc.length?Dt.none:this.placeholder}},{decorations:i=>i.decorations})}const es=2e3;function rectangleFor(i,o,s){let _=Math.min(o.line,s.line),$=Math.max(o.line,s.line),ae=[];if(o.off>es||s.off>es||o.col<0||s.col<0){let pe=Math.min(o.off,s.off),we=Math.max(o.off,s.off);for(let o=_;o<=$;o++){let s=i.doc.line(o);s.length<=we&&ae.push(v.e.range(s.from+pe,s.to+we))}}else{let pe=Math.min(o.col,s.col),we=Math.max(o.col,s.col);for(let o=_;o<=$;o++){let s=i.doc.line(o),_=Object(v.v)(s.text,pe,i.tabSize,!0);if(_<0)ae.push(v.e.cursor(s.to));else{let o=Object(v.v)(s.text,we,i.tabSize);ae.push(v.e.range(s.from+_,s.from+o))}}}return ae}function absoluteColumn(i,o){let s=i.coordsAtPos(i.viewport.from);return s?Math.round(Math.abs((s.left-o)/i.defaultCharacterWidth)):-1}function getPos(i,o){let s=i.posAtCoords({x:o.clientX,y:o.clientY},!1),_=i.state.doc.lineAt(s),$=s-_.from,ae=$>es?-1:$==_.length?absoluteColumn(i,o.clientX):Object(v.t)(_.text,i.state.tabSize,s-_.from);return{line:_.number,col:ae,off:$}}function rectangleSelectionStyle(i,o){let s=getPos(i,o),_=i.state.selection;return s?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(s.line).from),v=i.state.doc.lineAt(o);s={line:v.number,col:s.col,off:Math.min(s.off,v.length)},_=_.map(i.changes)}},get(o,$,ae){let pe=getPos(i,o);if(!pe)return _;let we=rectangleFor(i.state,s,pe);return we.length?ae?v.e.create(we.concat(_.ranges)):v.e.create(we):_}}:null}function rectangularSelection(i){let o=(null==i?void 0:i.eventFilter)||(i=>i.altKey&&0==i.button);return _i.mouseSelectionStyle.of(((i,s)=>o(s)?rectangleSelectionStyle(i,s):null))}const ts={Alt:[18,i=>!!i.altKey],Control:[17,i=>!!i.ctrlKey],Shift:[16,i=>!!i.shiftKey],Meta:[91,i=>!!i.metaKey]},ns={style:"cursor: crosshair"};function crosshairCursor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[o,s]=ts[i.key||"Alt"],v=Xt.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==o||s(i))},keyup(i){i.keyCode!=o&&s(i)||this.set(!1)},mousemove(i){this.set(s(i))}}});return[v,_i.contentAttributes.of((i=>{var o;return(null===(o=i.plugin(v))||void 0===o?void 0:o.isDown)?ns:null}))]}const as="-10000px";class rs{constructor(i,o,s){this.facet=o,this.createTooltipView=s,this.input=i.state.facet(o),this.tooltips=this.input.filter((i=>i)),this.tooltipViews=this.tooltips.map(s)}update(i,o){var s;let v=i.state.facet(this.facet),_=v.filter((i=>i));if(v===this.input){for(let o of this.tooltipViews)o.update&&o.update(i);return!1}let $=[],ae=o?[]:null;for(let s=0;s<_.length;s++){let v=_[s],pe=-1;if(v){for(let i=0;io[s]=i)),o.length=ae.length),this.input=v,this.tooltips=_,this.tooltipViews=$,!0}}function windowSpace(i){let{win:o}=i;return{top:0,left:0,bottom:o.innerHeight,right:o.innerWidth}}const os=v.g.define({combine:i=>{var o,s,v;return{position:bt.ios?"absolute":(null===(o=i.find((i=>i.position)))||void 0===o?void 0:o.position)||"fixed",parent:(null===(s=i.find((i=>i.parent)))||void 0===s?void 0:s.parent)||null,tooltipSpace:(null===(v=i.find((i=>i.tooltipSpace)))||void 0===v?void 0:v.tooltipSpace)||windowSpace}}}),ss=new WeakMap,ds=Xt.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let o=i.state.facet(os);this.position=o.position,this.parent=o.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new rs(i,cs,(i=>this.createTooltip(i))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((i=>{Date.now()>this.lastTransaction-50&&i.length>0&&i[i.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let o=this.manager.update(i,this.above);o&&this.observeIntersection();let s=o||i.geometryChanged,v=i.state.facet(os);if(v.position!=this.position&&!this.madeAbsolute){this.position=v.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;s=!0}if(v.parent!=this.parent){this.parent&&this.container.remove(),this.parent=v.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);s=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);s&&this.maybeMeasure()}createTooltip(i){let o=i.create(this.view);if(o.dom.classList.add("cm-tooltip"),i.arrow&&!o.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",o.dom.appendChild(i)}return o.dom.style.position=this.position,o.dom.style.top=as,o.dom.style.left="0px",this.container.appendChild(o.dom),o.mount&&o.mount(this.view),o}destroy(){var i,o;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),null===(i=o.destroy)||void 0===i||i.call(o);this.parent&&this.container.remove(),null===(o=this.intersectionObserver)||void 0===o||o.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=this.view.dom.getBoundingClientRect(),o=1,s=1,v=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(bt.gecko)v=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==as&&"0px"==i.style.left){let o=i.getBoundingClientRect();v=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(v||"absolute"==this.position)if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(o=i.width/this.parent.offsetWidth,s=i.height/this.parent.offsetHeight)}else({scaleX:o,scaleY:s}=this.view.viewState);return{editor:i,parent:this.parent?this.container.getBoundingClientRect():i,pos:this.manager.tooltips.map(((i,o)=>{let s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)})),size:this.manager.tooltipViews.map((i=>{let{dom:o}=i;return o.getBoundingClientRect()})),space:this.view.state.facet(os).tooltipSpace(this.view),scaleX:o,scaleY:s,makeAbsolute:v}}writeMeasure(i){var o;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let i of this.manager.tooltipViews)i.dom.style.position="absolute"}let{editor:s,space:v,scaleX:_,scaleY:$}=i,ae=[];for(let pe=0;pe=Math.min(s.bottom,v.bottom)||tt.rightMath.min(s.right,v.right)+.1){et.style.top=as;continue}let rt=we.arrow?_e.dom.querySelector(".cm-tooltip-arrow"):null,it=rt?7:0,ot=nt.right-nt.left,st=null!==(o=ss.get(_e))&&void 0!==o?o:nt.bottom-nt.top,dt=_e.offset||ls,ut=this.view.textDirection==ca.LTR,lt=nt.width>v.right-v.left?ut?v.left:v.right-nt.width:ut?Math.min(tt.left-(rt?14:0)+dt.x,v.right-ot):Math.max(v.left,tt.left-ot+(rt?14:0)-dt.x),ct=this.above[pe];!we.strictSide&&(ct?tt.top-(nt.bottom-nt.top)-dt.yv.bottom)&&ct==v.bottom-tt.bottom>tt.top-v.top&&(ct=this.above[pe]=!ct);let ht=(ct?tt.top-v.top:v.bottom-tt.bottom)-it;if(htlt&&i.toppt&&(pt=ct?i.top-st-2-it:i.bottom+it+2);if("absolute"==this.position?(et.style.top=(pt-i.parent.top)/$+"px",et.style.left=(lt-i.parent.left)/_+"px"):(et.style.top=pt/$+"px",et.style.left=lt/_+"px"),rt){let i=tt.left+(ut?dt.x:-dt.x)-(lt+14-7);rt.style.left=i/_+"px"}!0!==_e.overlap&&ae.push({left:lt,top:pt,right:ft,bottom:pt+st}),et.classList.toggle("cm-tooltip-above",ct),et.classList.toggle("cm-tooltip-below",!ct),_e.positioned&&_e.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=as}},{eventObservers:{scroll(){this.maybeMeasure()}}}),us=_i.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ls={x:0,y:0},cs=v.g.define({enables:[ds,us]}),hs=v.g.define();class ps{static create(i){return new ps(i)}constructor(i){this.view=i,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new rs(i,hs,(i=>this.createHostedView(i)))}createHostedView(i){let o=i.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(i){for(let o of this.manager.tooltipViews)o.mount&&o.mount(i);this.mounted=!0}positioned(i){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(i)}update(i){this.manager.update(i)}destroy(){var i;for(let o of this.manager.tooltipViews)null===(i=o.destroy)||void 0===i||i.call(o)}passProp(i){let o;for(let s of this.manager.tooltipViews){let v=s[i];if(void 0!==v)if(void 0===o)o=v;else if(o!==v)return}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const fs=cs.compute([hs],(i=>{let o=i.facet(hs).filter((i=>i));return 0===o.length?null:{pos:Math.min(...o.map((i=>i.pos))),end:Math.max(...o.map((i=>{var o;return null!==(o=i.end)&&void 0!==o?o:i.pos}))),create:ps.create,above:o[0].above,arrow:o.some((i=>i.arrow))}}));class gs{constructor(i,o,s,v,_){this.view=i,this.source=o,this.field=s,this.setHover=v,this.hoverTime=_,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:i.dom,time:0},this.checkHover=this.checkHover.bind(this),i.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),i.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let i=Date.now()-this.lastMove.time;is.bottom||o.xs.right+i.defaultCharacterWidth)return;let $=i.bidiSpans(i.state.doc.lineAt(v)).find((i=>i.from<=v&&i.to>=v)),ae=$&&$.dir==ca.RTL?-1:1;_=o.x{this.pending==o&&(this.pending=null,s&&i.dispatch({effects:this.setHover.of(s)}))}),(o=>logException(i.state,o,"hover tooltip")))}else $&&i.dispatch({effects:this.setHover.of($)})}get tooltip(){let i=this.view.plugin(ds),o=i?i.manager.tooltips.findIndex((i=>i.create==ps.create)):-1;return o>-1?i.manager.tooltipViews[o]:null}mousemove(i){var o;this.lastMove={x:i.clientX,y:i.clientY,target:i.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:v}=this;if(s&&v&&!isInTooltip(v.dom,i)||this.pending){let{pos:v}=s||this.pending,_=null!==(o=null==s?void 0:s.end)&&void 0!==o?o:v;(v==_?this.view.posAtCoords(this.lastMove)==v:isOverRange(this.view,v,_,i.clientX,i.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(i){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:o}=this;o&&o.dom.contains(i.relatedTarget)?this.watchTooltipLeave(o.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(i){let watch=o=>{i.removeEventListener("mouseleave",watch),this.active&&!this.view.dom.contains(o.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};i.addEventListener("mouseleave",watch)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const ms=4;function isInTooltip(i,o){let s=i.getBoundingClientRect();return o.clientX>=s.left-ms&&o.clientX<=s.right+ms&&o.clientY>=s.top-ms&&o.clientY<=s.bottom+ms}function isOverRange(i,o,s,v,_,$){let ae=i.scrollDOM.getBoundingClientRect(),pe=i.documentTop+i.documentPadding.top+i.contentHeight;if(ae.left>v||ae.right_||Math.min(ae.bottom,pe)<_)return!1;let we=i.posAtCoords({x:v,y:_},!1);return we>=o&&we<=s}function hoverTooltip(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=v.m.define(),_=v.n.define({create:()=>null,update(i,_){if(i&&(o.hideOnChange&&(_.docChanged||_.selection)||o.hideOn&&o.hideOn(_,i)))return null;if(i&&_.docChanged){let o=_.changes.mapPos(i.pos,-1,v.h.TrackDel);if(null==o)return null;let s=Object.assign(Object.create(null),i);s.pos=o,null!=i.end&&(s.end=_.changes.mapPos(i.end)),i=s}for(let o of _.effects)o.is(s)&&(i=o.value),o.is(ys)&&(i=null);return i},provide:i=>hs.from(i)});return[_,Xt.define((v=>new gs(v,i,_,s,o.hoverTime||300))),fs]}function getTooltip(i,o){let s=i.plugin(ds);if(!s)return null;let v=s.manager.tooltips.indexOf(o);return v<0?null:s.manager.tooltipViews[v]}const ys=v.m.define();const vs=v.g.define({combine(i){let o,s;for(let v of i)o=o||v.topContainer,s=s||v.bottomContainer;return{topContainer:o,bottomContainer:s}}});function getPanel(i,o){let s=i.plugin(Rs),v=s?s.specs.indexOf(o):-1;return v>-1?s.panels[v]:null}const Rs=Xt.fromClass(class{constructor(i){this.input=i.state.facet(Os),this.specs=this.input.filter((i=>i)),this.panels=this.specs.map((o=>o(i)));let o=i.state.facet(vs);this.top=new bs(i,!0,o.topContainer),this.bottom=new bs(i,!1,o.bottomContainer),this.top.sync(this.panels.filter((i=>i.top))),this.bottom.sync(this.panels.filter((i=>!i.top)));for(let i of this.panels)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(i){let o=i.state.facet(vs);this.top.container!=o.topContainer&&(this.top.sync([]),this.top=new bs(i.view,!0,o.topContainer)),this.bottom.container!=o.bottomContainer&&(this.bottom.sync([]),this.bottom=new bs(i.view,!1,o.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let s=i.state.facet(Os);if(s!=this.input){let o=s.filter((i=>i)),v=[],_=[],$=[],ae=[];for(let s of o){let o,pe=this.specs.indexOf(s);pe<0?(o=s(i.view),ae.push(o)):(o=this.panels[pe],o.update&&o.update(i)),v.push(o),(o.top?_:$).push(o)}this.specs=o,this.panels=v,this.top.sync(_),this.bottom.sync($);for(let i of ae)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}else for(let o of this.panels)o.update&&o.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>_i.scrollMargins.of((o=>{let s=o.plugin(i);return s&&{top:s.top.scrollMargin(),bottom:s.bottom.scrollMargin()}}))});class bs{constructor(i,o,s){this.view=i,this.top=o,this.container=s,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(i){for(let o of this.panels)o.destroy&&i.indexOf(o)<0&&o.destroy();this.panels=i,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let i=this.container||this.view.dom;i.insertBefore(this.dom,this.top?i.firstChild:null)}let i=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;i!=o.dom;)i=rm(i);i=i.nextSibling}else this.dom.insertBefore(o.dom,i);for(;i;)i=rm(i)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let i of this.classes.split(" "))i&&this.container.classList.remove(i);for(let i of(this.classes=this.view.themeClasses).split(" "))i&&this.container.classList.add(i)}}}function rm(i){let o=i.nextSibling;return i.remove(),o}const Os=v.g.define({enables:Rs});class xs extends v.l{compare(i){return this==i||this.constructor==i.constructor&&this.eq(i)}eq(i){return!1}destroy(i){}}xs.prototype.elementClass="",xs.prototype.toDOM=void 0,xs.prototype.mapMode=v.h.TrackBefore,xs.prototype.startSide=xs.prototype.endSide=-1,xs.prototype.point=!0;const ws=v.g.define(),Cs={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>v.j.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Ss=v.g.define();function dist_gutter(i){return[gutters(),Ss.of(Object.assign(Object.assign({},Cs),i))]}const _s=v.g.define({combine:i=>i.some((i=>i))});function gutters(i){let o=[Es];return i&&!1===i.fixed&&o.push(_s.of(!0)),o}const Es=Xt.fromClass(class{constructor(i){this.view=i,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(Ss).map((o=>new As(i,o)));for(let i of this.gutters)this.dom.appendChild(i.dom);this.fixed=!i.state.facet(_s),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}update(i){if(this.updateGutters(i)){let o=this.prevViewport,s=i.view.viewport,v=Math.min(o.to,s.to)-Math.max(o.from,s.from);this.syncGutters(v<.8*(s.to-s.from))}i.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(_s)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=i.view.viewport}syncGutters(i){let o=this.dom.nextSibling;i&&this.dom.remove();let s=v.j.iter(this.view.state.facet(ws),this.view.viewport.from),_=[],$=this.gutters.map((i=>new ks(i,this.view.viewport,-this.view.documentPadding.top)));for(let i of this.view.viewportLineBlocks)if(_.length&&(_=[]),Array.isArray(i.type)){let o=!0;for(let v of i.type)if(v.type==At.Text&&o){advanceCursor(s,_,v.from);for(let i of $)i.line(this.view,v,_);o=!1}else if(v.widget)for(let i of $)i.widget(this.view,v)}else if(i.type==At.Text){advanceCursor(s,_,i.from);for(let o of $)o.line(this.view,i,_)}else if(i.widget)for(let o of $)o.widget(this.view,i);for(let i of $)i.finish();i&&this.view.scrollDOM.insertBefore(this.dom,o)}updateGutters(i){let o=i.startState.facet(Ss),s=i.state.facet(Ss),_=i.docChanged||i.heightChanged||i.viewportChanged||!v.j.eq(i.startState.facet(ws),i.state.facet(ws),i.view.viewport.from,i.view.viewport.to);if(o==s)for(let o of this.gutters)o.update(i)&&(_=!0);else{_=!0;let v=[];for(let _ of s){let s=o.indexOf(_);s<0?v.push(new As(this.view,_)):(this.gutters[s].update(i),v.push(this.gutters[s]))}for(let i of this.gutters)i.dom.remove(),v.indexOf(i)<0&&i.destroy();for(let i of v)this.dom.appendChild(i.dom);this.gutters=v}return _}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove()}},{provide:i=>_i.scrollMargins.of((o=>{let s=o.plugin(i);return s&&0!=s.gutters.length&&s.fixed?o.textDirection==ca.LTR?{left:s.dom.offsetWidth*o.scaleX}:{right:s.dom.offsetWidth*o.scaleX}:null}))});function asArray(i){return Array.isArray(i)?i:[i]}function advanceCursor(i,o,s){for(;i.value&&i.from<=s;)i.from==s&&o.push(i.value),i.next()}class ks{constructor(i,o,s){this.gutter=i,this.height=s,this.i=0,this.cursor=v.j.iter(i.markers,o.from)}addElement(i,o,s){let{gutter:v}=this,_=(o.top-this.height)/i.scaleY,$=o.height/i.scaleY;if(this.i==v.elements.length){let o=new Ds(i,$,_,s);v.elements.push(o),v.dom.appendChild(o.dom)}else v.elements[this.i].update(i,$,_,s);this.height=o.bottom,this.i++}line(i,o,s){let v=[];advanceCursor(this.cursor,v,o.from),s.length&&(v=v.concat(s));let _=this.gutter.config.lineMarker(i,o,v);_&&v.unshift(_);let $=this.gutter;(0!=v.length||$.config.renderEmptyElements)&&this.addElement(i,o,v)}widget(i,o){let s=this.gutter.config.widgetMarker(i,o.widget,o);s&&this.addElement(i,o,[s])}finish(){let i=this.gutter;for(;i.elements.length>this.i;){let o=i.elements.pop();i.dom.removeChild(o.dom),o.destroy()}}}class As{constructor(i,o){this.view=i,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let s in o.domEventHandlers)this.dom.addEventListener(s,(v=>{let _,$=v.target;if($!=this.dom&&this.dom.contains($)){for(;$.parentNode!=this.dom;)$=$.parentNode;let i=$.getBoundingClientRect();_=(i.top+i.bottom)/2}else _=v.clientY;let ae=i.lineBlockAtHeight(_-i.documentTop);o.domEventHandlers[s](i,ae,v)&&v.preventDefault()}));this.markers=asArray(o.markers(i)),o.initialSpacer&&(this.spacer=new Ds(i,0,0,[o.initialSpacer(i)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(i){let o=this.markers;if(this.markers=asArray(this.config.markers(i.view)),this.spacer&&this.config.updateSpacer){let o=this.config.updateSpacer(this.spacer.markers[0],i);o!=this.spacer.markers[0]&&this.spacer.update(i.view,0,0,[o])}let s=i.view.viewport;return!v.j.eq(this.markers,o,s.from,s.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(i)}destroy(){for(let i of this.elements)i.destroy()}}class Ds{constructor(i,o,s,v){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(i,o,s,v)}update(i,o,s,v){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=s&&(this.dom.style.marginTop=(this.above=s)?s+"px":""),sameMarkers(this.markers,v)||this.setMarkers(i,v)}setMarkers(i,o){let s="cm-gutterElement",v=this.dom.firstChild;for(let _=0,$=0;;){let ae=$,pe=_Object(v.s)(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(i,o){let s=Object.assign({},i);for(let i in o){let v=s[i],_=o[i];s[i]=v?(i,o,s)=>v(i,o,s)||_(i,o,s):_}return s}})});class Is extends xs{constructor(i){super(),this.number=i}eq(i){return this.number==i.number}toDOM(){return document.createTextNode(this.number)}}function formatNumber(i,o){return i.state.facet(Ts).formatNumber(o,i.state)}const Fs=Ss.compute([Ts],(i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:i=>i.state.facet(Ps),lineMarker:(i,o,s)=>s.some((i=>i.toDOM))?null:new Is(formatNumber(i,i.state.doc.lineAt(o.from).number)),widgetMarker:()=>null,lineMarkerChange:i=>i.startState.facet(Ts)!=i.state.facet(Ts),initialSpacer:i=>new Is(formatNumber(i,maxLineNumber(i.state.doc.lines))),updateSpacer(i,o){let s=formatNumber(o.view,maxLineNumber(o.view.state.doc.lines));return s==i.number?i:new Is(s)},domEventHandlers:i.facet(Ts).domEventHandlers})));function lineNumbers(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ts.of(i),gutters(),Fs]}function maxLineNumber(i){let o=9;for(;o{let o=[],s=-1;for(let v of i.selection.ranges){let _=i.doc.lineAt(v.head).from;_>s&&(s=_,o.push(Ns.range(_)))}return v.j.of(o)}));function highlightActiveLineGutter(){return Bs}},function(i,o,s){"use strict";s.r(o),s.d(o,"__extends",(function(){return __extends})),s.d(o,"__assign",(function(){return __assign})),s.d(o,"__rest",(function(){return __rest})),s.d(o,"__decorate",(function(){return __decorate})),s.d(o,"__param",(function(){return __param})),s.d(o,"__esDecorate",(function(){return __esDecorate})),s.d(o,"__runInitializers",(function(){return __runInitializers})),s.d(o,"__propKey",(function(){return __propKey})),s.d(o,"__setFunctionName",(function(){return __setFunctionName})),s.d(o,"__metadata",(function(){return __metadata})),s.d(o,"__awaiter",(function(){return __awaiter})),s.d(o,"__generator",(function(){return __generator})),s.d(o,"__createBinding",(function(){return v})),s.d(o,"__exportStar",(function(){return __exportStar})),s.d(o,"__values",(function(){return __values})),s.d(o,"__read",(function(){return __read})),s.d(o,"__spread",(function(){return __spread})),s.d(o,"__spreadArrays",(function(){return __spreadArrays})),s.d(o,"__spreadArray",(function(){return __spreadArray})),s.d(o,"__await",(function(){return __await})),s.d(o,"__asyncGenerator",(function(){return __asyncGenerator})),s.d(o,"__asyncDelegator",(function(){return __asyncDelegator})),s.d(o,"__asyncValues",(function(){return __asyncValues})),s.d(o,"__makeTemplateObject",(function(){return __makeTemplateObject})),s.d(o,"__importStar",(function(){return __importStar})),s.d(o,"__importDefault",(function(){return __importDefault})),s.d(o,"__classPrivateFieldGet",(function(){return __classPrivateFieldGet})),s.d(o,"__classPrivateFieldSet",(function(){return __classPrivateFieldSet})),s.d(o,"__classPrivateFieldIn",(function(){return __classPrivateFieldIn})),s.d(o,"__addDisposableResource",(function(){return __addDisposableResource})),s.d(o,"__disposeResources",(function(){return __disposeResources}));var extendStatics=function(i,o){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},extendStatics(i,o)};function __extends(i,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=i}extendStatics(i,o),i.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(i){for(var o,s=1,v=arguments.length;s=0;pe--)(_=i[pe])&&(ae=($<3?_(ae):$>3?_(o,s,ae):_(o,s))||ae);return $>3&&ae&&Object.defineProperty(o,s,ae),ae}function __param(i,o){return function(s,v){o(s,v,i)}}function __esDecorate(i,o,s,v,_,$){function accept(i){if(void 0!==i&&"function"!=typeof i)throw new TypeError("Function expected");return i}for(var ae,pe=v.kind,we="getter"===pe?"get":"setter"===pe?"set":"value",_e=!o&&i?v.static?i:i.prototype:null,et=o||(_e?Object.getOwnPropertyDescriptor(_e,v.name):{}),tt=!1,nt=s.length-1;nt>=0;nt--){var rt={};for(var it in v)rt[it]="access"===it?{}:v[it];for(var it in v.access)rt.access[it]=v.access[it];rt.addInitializer=function(i){if(tt)throw new TypeError("Cannot add initializers after decoration has completed");$.push(accept(i||null))};var ot=(0,s[nt])("accessor"===pe?{get:et.get,set:et.set}:et[we],rt);if("accessor"===pe){if(void 0===ot)continue;if(null===ot||"object"!=typeof ot)throw new TypeError("Object expected");(ae=accept(ot.get))&&(et.get=ae),(ae=accept(ot.set))&&(et.set=ae),(ae=accept(ot.init))&&_.unshift(ae)}else(ae=accept(ot))&&("field"===pe?_.unshift(ae):et[we]=ae)}_e&&Object.defineProperty(_e,v.name,et),tt=!0}function __runInitializers(i,o,s){for(var v=arguments.length>2,_=0;_0&&_[_.length-1])||6!==pe[0]&&2!==pe[0])){ae=0;continue}if(3===pe[0]&&(!_||pe[1]>_[0]&&pe[1]<_[3])){ae.label=pe[1];break}if(6===pe[0]&&ae.label<_[1]){ae.label=_[1],_=pe;break}if(_&&ae.label<_[2]){ae.label=_[2],ae.ops.push(pe);break}_[2]&&ae.ops.pop(),ae.trys.pop();continue}pe=o.call(i,ae)}catch(i){pe=[6,i],v=0}finally{s=_=0}if(5&pe[0])throw pe[1];return{value:pe[0]?pe[1]:void 0,done:!0}}}var v=Object.create?function(i,o,s,v){void 0===v&&(v=s);var _=Object.getOwnPropertyDescriptor(o,s);_&&!("get"in _?!o.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(i,v,_)}:function(i,o,s,v){void 0===v&&(v=s),i[v]=o[s]};function __exportStar(i,o){for(var s in i)"default"===s||Object.prototype.hasOwnProperty.call(o,s)||v(o,i,s)}function __values(i){var o="function"==typeof Symbol&&Symbol.iterator,s=o&&i[o],v=0;if(s)return s.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&v>=i.length&&(i=void 0),{value:i&&i[v++],done:!i}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(i,o){var s="function"==typeof Symbol&&i[Symbol.iterator];if(!s)return i;var v,_,$=s.call(i),ae=[];try{for(;(void 0===o||o-- >0)&&!(v=$.next()).done;)ae.push(v.value)}catch(i){_={error:i}}finally{try{v&&!v.done&&(s=$.return)&&s.call($)}finally{if(_)throw _.error}}return ae}function __spread(){for(var i=[],o=0;o1||resume(i,o)}))})}function resume(i,o){try{(s=_[i](o)).value instanceof __await?Promise.resolve(s.value.v).then(fulfill,reject):settle($[0][2],s)}catch(i){settle($[0][3],i)}var s}function fulfill(i){resume("next",i)}function reject(i){resume("throw",i)}function settle(i,o){i(o),$.shift(),$.length&&resume($[0][0],$[0][1])}}function __asyncDelegator(i){var o,s;return o={},verb("next"),verb("throw",(function(i){throw i})),verb("return"),o[Symbol.iterator]=function(){return this},o;function verb(v,_){o[v]=i[v]?function(o){return(s=!s)?{value:__await(i[v](o)),done:!1}:_?_(o):o}:_}}function __asyncValues(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,s=i[Symbol.asyncIterator];return s?s.call(i):(i=__values(i),o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o);function verb(s){o[s]=i[s]&&function(o){return new Promise((function(v,_){settle(v,_,(o=i[s](o)).done,o.value)}))}}function settle(i,o,s,v){Promise.resolve(v).then((function(o){i({value:o,done:s})}),o)}}function __makeTemplateObject(i,o){return Object.defineProperty?Object.defineProperty(i,"raw",{value:o}):i.raw=o,i}var _=Object.create?function(i,o){Object.defineProperty(i,"default",{enumerable:!0,value:o})}:function(i,o){i.default=o};function __importStar(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s in i)"default"!==s&&Object.prototype.hasOwnProperty.call(i,s)&&v(o,i,s);return _(o,i),o}function __importDefault(i){return i&&i.__esModule?i:{default:i}}function __classPrivateFieldGet(i,o,s,v){if("a"===s&&!v)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof o?i!==o||!v:!o.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?v:"a"===s?v.call(i):v?v.value:o.get(i)}function __classPrivateFieldSet(i,o,s,v,_){if("m"===v)throw new TypeError("Private method is not writable");if("a"===v&&!_)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof o?i!==o||!_:!o.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===v?_.call(i,s):_?_.value=s:o.set(i,s),s}function __classPrivateFieldIn(i,o){if(null===o||"object"!=typeof o&&"function"!=typeof o)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof i?o===i:i.has(o)}function __addDisposableResource(i,o,s){if(null!=o){if("object"!=typeof o&&"function"!=typeof o)throw new TypeError("Object expected.");var v;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");v=o[Symbol.asyncDispose]}if(void 0===v){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");v=o[Symbol.dispose]}if("function"!=typeof v)throw new TypeError("Object not disposable.");i.stack.push({value:o,dispose:v,async:s})}else s&&i.stack.push({async:!0});return o}var $="function"==typeof SuppressedError?SuppressedError:function(i,o,s){var v=new Error(s);return v.name="SuppressedError",v.error=i,v.suppressed=o,v};function __disposeResources(i){function fail(o){i.error=i.hasError?new $(o,i.error,"An error was suppressed during disposal."):o,i.hasError=!0}return function next(){for(;i.stack.length;){var o=i.stack.pop();try{var s=o.dispose&&o.dispose.call(o.value);if(o.async)return Promise.resolve(s).then(next,(function(i){return fail(i),next()}))}catch(i){fail(i)}}if(i.hasError)throw i.error}()}o.default={__extends:__extends,__assign:__assign,__rest:__rest,__decorate:__decorate,__param:__param,__metadata:__metadata,__awaiter:__awaiter,__generator:__generator,__createBinding:v,__exportStar:__exportStar,__values:__values,__read:__read,__spread:__spread,__spreadArrays:__spreadArrays,__spreadArray:__spreadArray,__await:__await,__asyncGenerator:__asyncGenerator,__asyncDelegator:__asyncDelegator,__asyncValues:__asyncValues,__makeTemplateObject:__makeTemplateObject,__importStar:__importStar,__importDefault:__importDefault,__classPrivateFieldGet:__classPrivateFieldGet,__classPrivateFieldSet:__classPrivateFieldSet,__classPrivateFieldIn:__classPrivateFieldIn,__addDisposableResource:__addDisposableResource,__disposeResources:__disposeResources}},function(i,o,s){"use strict";s.d(o,"a",(function(){return StyleHOC}));s(43);var v=s(0),_=s.n(v),$=s(18),ae=s(153),pe=s.n(ae),we=s(134),_e=s.n(we),et=s(84),tt=s(105),nt=_e()((function(i,o,s,v){var _=pe()({},tt,o.theme),$="function"==typeof o.styles?o.styles(_):o.styles,ae=pe()({},i(_),$&&$[s]);return et.a.createStyleSheet(ae,{meta:s,link:!0})}),(function(i,o,s,v){return s+"_"+v}));function _assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}function StyleHOC(i){return function(o){var s,ae,pe=o.name.replace(/Renderer$/,"");return ae=s=function(s){var v,$;$=s,(v=_class).prototype=Object.create($.prototype),v.prototype.constructor=v,v.__proto__=$;var ae;ae=_class;function _class(o,v){var _;return _defineProperty(_assertThisInitialized(_=s.call(this,o,v)||this),"sheet",void 0),_.sheet=nt(i,v.config||{},pe,v.cssRevision),_.sheet.update(o).attach(),_}var we=_class.prototype;return we.componentDidUpdate=function componentDidUpdate(i){this.sheet.update(i)},we.render=function render(){return _.a.createElement(o,Object.assign({},this.props,{classes:this.sheet.classes}))},_class}(v.Component),_defineProperty(s,"displayName","Styled("+pe+")"),_defineProperty(s,"contextType",$.a),ae}}},function(i,o,s){"use strict";s.d(o,"a",(function(){return Pt})),s.d(o,"b",(function(){return ft})),s.d(o,"c",(function(){return nt})),s.d(o,"d",(function(){return ct})),s.d(o,"e",(function(){return bracketMatching})),s.d(o,"f",(function(){return continuedIndent})),s.d(o,"g",(function(){return Bt})),s.d(o,"h",(function(){return defineLanguageFacet})),s.d(o,"i",(function(){return delimitedIndent})),s.d(o,"j",(function(){return flatIndent})),s.d(o,"k",(function(){return foldGutter})),s.d(o,"l",(function(){return foldInside})),s.d(o,"m",(function(){return wt})),s.d(o,"n",(function(){return Rt})),s.d(o,"o",(function(){return getIndentUnit})),s.d(o,"p",(function(){return getIndentation})),s.d(o,"q",(function(){return gt})),s.d(o,"r",(function(){return indentOnInput})),s.d(o,"s",(function(){return indentString})),s.d(o,"t",(function(){return pt})),s.d(o,"u",(function(){return matchBrackets})),s.d(o,"v",(function(){return et})),s.d(o,"w",(function(){return syntaxHighlighting})),s.d(o,"x",(function(){return syntaxTree}));var v,_=s(11),$=s(3),ae=s(7),pe=s(6),we=s(36);const _e=new _.c;function defineLanguageFacet(i){return $.g.define({combine:i?o=>o.concat(i):void 0})}const et=new _.c;class tt{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.data=i,this.name=v,$.f.prototype.hasOwnProperty("tree")||Object.defineProperty($.f.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=o,this.extension=[lt.of(this),$.f.languageData.of(((i,o,s)=>{let v=topNodeAt(i,o,s),_=v.type.prop(_e);if(!_)return[];let $=i.facet(_),ae=v.type.prop(et);if(ae){let _=v.resolve(o-v.from,s);for(let o of ae)if(o.test(_,i)){let s=i.facet(o.facet);return"replace"==o.type?s:s.concat($)}}return $}))].concat(s)}isActiveAt(i,o){return topNodeAt(i,o,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(_e)==this.data}findRegions(i){let o=i.facet(lt);if((null==o?void 0:o.data)==this.data)return[{from:0,to:i.doc.length}];if(!o||!o.allowsNesting)return[];let s=[],explore=(i,o)=>{if(i.prop(_e)==this.data)return void s.push({from:o,to:o+i.length});let v=i.prop(_.c.mounted);if(v){if(v.tree.prop(_e)==this.data){if(v.overlay)for(let i of v.overlay)s.push({from:i.from+o,to:i.to+o});else s.push({from:o,to:o+i.length});return}if(v.overlay){let i=s.length;if(explore(v.tree,v.overlay[0].from+o),s.length>i)return}}for(let s=0;si.isTop?o:void 0))]}),i.name)}configure(i,o){return new nt(this.data,this.parser.configure(i),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function syntaxTree(i){let o=i.field(tt.state,!1);return o?o.tree:_.h.empty}class rt{constructor(i){this.doc=i,this.cursorPos=0,this.string="",this.cursor=i.iter()}get length(){return this.doc.length}syncTo(i){return this.string=this.cursor.next(i-this.cursorPos).value,this.cursorPos=i+this.string.length,this.cursorPos-this.string.length}chunk(i){return this.syncTo(i),this.string}get lineChunks(){return!0}read(i,o){let s=this.cursorPos-this.string.length;return i=this.cursorPos?this.doc.sliceString(i,o):this.string.slice(i-s,o-s)}}let it=null;class ot{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=arguments.length>3?arguments[3]:void 0,_=arguments.length>4?arguments[4]:void 0,$=arguments.length>5?arguments[5]:void 0,ae=arguments.length>6?arguments[6]:void 0,pe=arguments.length>7?arguments[7]:void 0;this.parser=i,this.state=o,this.fragments=s,this.tree=v,this.treeLen=_,this.viewport=$,this.skipped=ae,this.scheduleOn=pe,this.parse=null,this.tempSkipped=[]}static create(i,o,s){return new ot(i,o,[],_.h.empty,0,s,[],null)}startParse(){return this.parser.startParse(new rt(this.state.doc),this.fragments)}work(i,o){return null!=o&&o>=this.state.doc.length&&(o=void 0),this.tree!=_.h.empty&&this.isDone(null!=o?o:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var s;if("number"==typeof i){let o=Date.now()+i;i=()=>Date.now()>o}for(this.parse||(this.parse=this.startParse()),null!=o&&(null==this.parse.stoppedAt||this.parse.stoppedAt>o)&&o=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>i)&&this.parse.stopAt(i),this.withContext((()=>{for(;!(o=this.parse.advance()););})),this.treeLen=i,this.tree=o,this.fragments=this.withoutTempSkipped(_.i.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(i){let o=it;it=this;try{return i()}finally{it=o}}withoutTempSkipped(i){for(let o;o=this.tempSkipped.pop();)i=cutFragments(i,o.from,o.to);return i}changes(i,o){let{fragments:s,tree:v,treeLen:$,viewport:ae,skipped:pe}=this;if(this.takeTree(),!i.empty){let o=[];if(i.iterChangedRanges(((i,s,v,_)=>o.push({fromA:i,toA:s,fromB:v,toB:_}))),s=_.i.applyChanges(s,o),v=_.h.empty,$=0,ae={from:i.mapPos(ae.from,-1),to:i.mapPos(ae.to,1)},this.skipped.length){pe=[];for(let o of this.skipped){let s=i.mapPos(o.from,1),v=i.mapPos(o.to,-1);si.from&&(this.fragments=cutFragments(this.fragments,s,v),this.skipped.splice(o--,1))}return!(this.skipped.length>=o)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(i,o){this.skipped.push({from:i,to:o})}static getSkippingParser(i){return new class extends _.g{createParse(o,s,v){let $=v[0].from,ae=v[v.length-1].to;return{parsedPos:$,advance(){let o=it;if(o){for(let i of v)o.tempSkipped.push(i);i&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,i]):i)}return this.parsedPos=ae,new _.h(_.e.none,[],[],ae-$)},stoppedAt:null,stopAt(){}}}}}isDone(i){i=Math.min(i,this.state.doc.length);let o=this.fragments;return this.treeLen>=i&&o.length&&0==o[0].from&&o[0].to>=i}static get(){return it}}function cutFragments(i,o,s){return _.i.applyChanges(i,[{fromA:o,toA:s,fromB:o,toB:s}])}class st{constructor(i){this.context=i,this.tree=i.tree}apply(i){if(!i.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(i.changes,i.state),s=this.context.treeLen==i.startState.doc.length?void 0:Math.max(i.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,s)||o.takeTree(),new st(o)}static init(i){let o=Math.min(3e3,i.doc.length),s=ot.create(i.facet(lt).parser,i,{from:0,to:o});return s.work(20,o)||s.takeTree(),new st(s)}}tt.state=$.n.define({create:st.init,update(i,o){for(let i of o.effects)if(i.is(tt.setState))return i.value;return o.startState.facet(lt)!=o.state.facet(lt)?st.init(o.state):i.apply(o)}});let requestIdle=i=>{let o=setTimeout((()=>i()),500);return()=>clearTimeout(o)};"undefined"!=typeof requestIdleCallback&&(requestIdle=i=>{let o=-1,s=setTimeout((()=>{o=requestIdleCallback(i,{timeout:400})}),100);return()=>o<0?clearTimeout(s):cancelIdleCallback(o)});const dt="undefined"!=typeof navigator&&(null===(v=navigator.scheduling)||void 0===v?void 0:v.isInputPending)?()=>navigator.scheduling.isInputPending():null,ut=ae.e.fromClass(class{constructor(i){this.view=i,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(i){let o=this.view.state.field(tt.state).context;(o.updateViewport(i.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(i.docChanged||i.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:i}=this.view,o=i.field(tt.state);o.tree==o.context.tree&&o.context.isDone(i.doc.length)||(this.working=requestIdle(this.work))}work(i){this.working=null;let o=Date.now();if(this.chunkEndv+1e3,pe=_.context.work((()=>dt&&dt()||Date.now()>$),v+(ae?0:1e5));this.chunkBudget-=Date.now()-o,(pe||this.chunkBudget<=0)&&(_.context.takeTree(),this.view.dispatch({effects:tt.setState.of(new st(_.context))})),this.chunkBudget>0&&(!pe||ae)&&this.scheduleWork(),this.checkAsyncSchedule(_.context)}checkAsyncSchedule(i){i.scheduleOn&&(this.workScheduled++,i.scheduleOn.then((()=>this.scheduleWork())).catch((i=>Object(ae.s)(this.view.state,i))).then((()=>this.workScheduled--)),i.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),lt=$.g.define({combine:i=>i.length?i[0]:null,enables:i=>[tt.state,ut,ae.c.contentAttributes.compute([i],(o=>{let s=o.facet(i);return s&&s.name?{"data-language":s.name}:{}}))]});class ct{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.language=i,this.support=o,this.extension=[i,o]}}const ht=$.g.define(),pt=$.g.define({combine:i=>{if(!i.length)return" ";let o=i[0];if(!o||/\S/.test(o)||Array.from(o).some((i=>i!=o[0])))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return o}});function getIndentUnit(i){let o=i.facet(pt);return 9==o.charCodeAt(0)?i.tabSize*o.length:o.length}function indentString(i,o){let s="",v=i.tabSize,_=i.facet(pt)[0];if("\t"==_){for(;o>=v;)s+="\t",o-=v;_=" "}for(let i=0;i=o?syntaxIndentation(i,s,o):null}class ft{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.state=i,this.options=o,this.unit=getIndentUnit(i)}lineAt(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=this.state.doc.lineAt(i),{simulateBreak:v,simulateDoubleBreak:_}=this.options;return null!=v&&v>=s.from&&v<=s.to?_&&v==i?{text:"",from:i}:(o<0?v1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&i==this.options.simulateBreak)return"";let{text:s,from:v}=this.lineAt(i,o);return s.slice(i-v,Math.min(s.length,i+100-v))}column(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:s,from:v}=this.lineAt(i,o),_=this.countColumn(s,i-v),$=this.options.overrideIndentation?this.options.overrideIndentation(v):-1;return $>-1&&(_+=$-this.countColumn(s,s.search(/\S|$/))),_}countColumn(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.length;return Object($.t)(i,this.state.tabSize,o)}lineIndent(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:s,from:v}=this.lineAt(i,o),_=this.options.overrideIndentation;if(_){let i=_(v);if(i>-1)return i}return this.countColumn(s,s.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const gt=new _.c;function syntaxIndentation(i,o,s){let v=o.resolveStack(s),_=v.node.enterUnfinishedNodesBefore(s);if(_!=v.node){let i=[];for(let o=_;o!=v.node;o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)v={node:i[o],next:v}}return indentFor(v,i,s)}function indentFor(i,o,s){for(let v=i;v;v=v.next){let i=indentStrategy(v.node);if(i)return i(mt.create(o,s,v))}return 0}function ignoreClosed(i){return i.pos==i.options.simulateBreak&&i.options.simulateDoubleBreak}function indentStrategy(i){let o=i.type.prop(gt);if(o)return o;let s,v=i.firstChild;if(v&&(s=v.type.prop(_.c.closedBy))){let o=i.lastChild,v=o&&s.indexOf(o.name)>-1;return i=>delimitedStrategy(i,!0,1,void 0,v&&!ignoreClosed(i)?o.from:void 0)}return null==i.parent?topIndent:null}function topIndent(){return 0}class mt extends ft{constructor(i,o,s){super(i.state,i.options),this.base=i,this.pos=o,this.context=s}get node(){return this.context.node}static create(i,o,s){return new mt(i,o,s)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(i){let o=this.state.doc.lineAt(i.from);for(;;){let s=i.resolve(o.from);for(;s.parent&&s.parent.from==s.from;)s=s.parent;if(isParent(s,i))break;o=this.state.doc.lineAt(s.from)}return this.lineIndent(o.from)}continue(){return indentFor(this.context.next,this.base,this.pos)}}function isParent(i,o){for(let s=o;s;s=s.parent)if(i==s)return!0;return!1}function bracketedAligned(i){let o=i.node,s=o.childAfter(o.from),v=o.lastChild;if(!s)return null;let _=i.options.simulateBreak,$=i.state.doc.lineAt(s.from),ae=null==_||_<=$.from?$.to:Math.min($.to,_);for(let i=s.to;;){let _=o.childAfter(i);if(!_||_==v)return null;if(!_.type.isSkipped)return _.fromdelimitedStrategy(i,s,v,o)}function delimitedStrategy(i,o,s,v,_){let $=i.textAfter,ae=$.match(/^\s*/)[0].length,pe=v&&$.slice(ae,ae+v.length)==v||_==i.pos+ae,we=o?bracketedAligned(i):null;return we?pe?i.column(we.from):i.column(we.to):i.baseIndent+(pe?0:i.unit*s)}const flatIndent=i=>i.baseIndent;function continuedIndent(){let{except:i,units:o=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s=>{let v=i&&i.test(s.textAfter);return s.baseIndent+(v?0:o*s.unit)}}const yt=200;function indentOnInput(){return $.f.transactionFilter.of((i=>{if(!i.docChanged||!i.isUserEvent("input.type")&&!i.isUserEvent("input.complete"))return i;let o=i.startState.languageDataAt("indentOnInput",i.startState.selection.main.head);if(!o.length)return i;let s=i.newDoc,{head:v}=i.newSelection.main,_=s.lineAt(v);if(v>_.from+yt)return i;let $=s.sliceString(_.from,v);if(!o.some((i=>i.test($))))return i;let{state:ae}=i,pe=-1,we=[];for(let{head:i}of ae.selection.ranges){let o=ae.doc.lineAt(i);if(o.from==pe)continue;pe=o.from;let s=getIndentation(ae,o.from);if(null==s)continue;let v=/^\s*/.exec(o.text)[0],_=indentString(ae,s);v!=_&&we.push({from:o.from,to:o.from+v.length,insert:_})}return we.length?[i,{changes:we,sequential:!0}]:i}))}const vt=$.g.define(),Rt=new _.c;function foldInside(i){let o=i.firstChild,s=i.lastChild;return o&&o.tos)continue;if(_&&ae.from=o&&v.to>s&&(_=v)}}return _}function isUnfinished(i){let o=i.lastChild;return o&&o.to==i.to&&o.type.isError}function foldable(i,o,s){for(let v of i.facet(vt)){let _=v(i,o,s);if(_)return _}return syntaxFolding(i,o,s)}function mapRange(i,o){let s=o.mapPos(i.from,1),v=o.mapPos(i.to,-1);return s>=v?void 0:{from:s,to:v}}const bt=$.m.define({map:mapRange}),Ot=$.m.define({map:mapRange});function selectedLines(i){let o=[];for(let{head:s}of i.state.selection.ranges)o.some((i=>i.from<=s&&i.to>=s))||o.push(i.lineBlockAt(s));return o}const xt=$.n.define({create:()=>ae.a.none,update(i,o){i=i.map(o.changes);for(let s of o.effects)if(s.is(bt)&&!foldExists(i,s.value.from,s.value.to)){let{preparePlaceholder:v}=o.state.facet(St),_=v?ae.a.replace({widget:new Et(v(o.state,s.value))}):_t;i=i.update({add:[_.range(s.value.from,s.value.to)]})}else s.is(Ot)&&(i=i.update({filter:(i,o)=>s.value.from!=i||s.value.to!=o,filterFrom:s.value.from,filterTo:s.value.to}));if(o.selection){let s=!1,{head:v}=o.selection.main;i.between(v,v,((i,o)=>{iv&&(s=!0)})),s&&(i=i.update({filterFrom:v,filterTo:v,filter:(i,o)=>o<=v||i>=v}))}return i},provide:i=>ae.c.decorations.from(i),toJSON(i,o){let s=[];return i.between(0,o.doc.length,((i,o)=>{s.push(i,o)})),s},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let o=[];for(let s=0;s{(!_||_.from>i)&&(_={from:i,to:o})})),_}function foldExists(i,o,s){let v=!1;return i.between(o,o,((i,_)=>{i==o&&_==s&&(v=!0)})),v}function maybeEnable(i,o){return i.field(xt,!1)?o:o.concat($.m.appendConfig.of(codeFolding()))}function announceFold(i,o){let s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],v=i.state.doc.lineAt(o.from).number,_=i.state.doc.lineAt(o.to).number;return ae.c.announce.of("".concat(i.state.phrase(s?"Folded lines":"Unfolded lines")," ").concat(v," ").concat(i.state.phrase("to")," ").concat(_,"."))}const wt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:i=>{for(let o of selectedLines(i)){let s=foldable(i.state,o.from,o.to);if(s)return i.dispatch({effects:maybeEnable(i.state,[bt.of(s),announceFold(i,s)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:i=>{if(!i.state.field(xt,!1))return!1;let o=[];for(let s of selectedLines(i)){let v=findFold(i.state,s.from,s.to);v&&o.push(Ot.of(v),announceFold(i,v,!1))}return o.length&&i.dispatch({effects:o}),o.length>0}},{key:"Ctrl-Alt-[",run:i=>{let{state:o}=i,s=[];for(let v=0;v{let o=i.state.field(xt,!1);if(!o||!o.size)return!1;let s=[];return o.between(0,i.state.doc.length,((i,o)=>{s.push(Ot.of({from:i,to:o}))})),i.dispatch({effects:s}),!0}}],Ct={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},St=$.g.define({combine:i=>Object($.s)(i,Ct)});function codeFolding(i){let o=[xt,Dt];return i&&o.push(St.of(i)),o}function widgetToDOM(i,o){let{state:s}=i,v=s.facet(St),onclick=o=>{let s=i.lineBlockAt(i.posAtDOM(o.target)),v=findFold(i.state,s.from,s.to);v&&i.dispatch({effects:Ot.of(v)}),o.preventDefault()};if(v.placeholderDOM)return v.placeholderDOM(i,onclick,o);let _=document.createElement("span");return _.textContent=v.placeholderText,_.setAttribute("aria-label",s.phrase("folded code")),_.title=s.phrase("unfold"),_.className="cm-foldPlaceholder",_.onclick=onclick,_}const _t=ae.a.replace({widget:new class extends ae.f{toDOM(i){return widgetToDOM(i,null)}}});class Et extends ae.f{constructor(i){super(),this.value=i}eq(i){return this.value==i.value}toDOM(i){return widgetToDOM(i,this.value)}}const kt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class At extends ae.d{constructor(i,o){super(),this.config=i,this.open=o}eq(i){return this.config==i.config&&this.open==i.open}toDOM(i){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=i.state.phrase(this.open?"Fold line":"Unfold line"),o}}function foldGutter(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=Object.assign(Object.assign({},kt),i),s=new At(o,!0),v=new At(o,!1),_=ae.e.fromClass(class{constructor(i){this.from=i.viewport.from,this.markers=this.buildMarkers(i)}update(i){(i.docChanged||i.viewportChanged||i.startState.facet(lt)!=i.state.facet(lt)||i.startState.field(xt,!1)!=i.state.field(xt,!1)||syntaxTree(i.startState)!=syntaxTree(i.state)||o.foldingChanged(i))&&(this.markers=this.buildMarkers(i.view))}buildMarkers(i){let o=new $.k;for(let _ of i.viewportLineBlocks){let $=findFold(i.state,_.from,_.to)?v:foldable(i.state,_.from,_.to)?s:null;$&&o.add(_.from,_.from,$)}return o.finish()}}),{domEventHandlers:pe}=o;return[_,Object(ae.l)({class:"cm-foldGutter",markers(i){var o;return(null===(o=i.plugin(_))||void 0===o?void 0:o.markers)||$.j.empty},initialSpacer:()=>new At(o,!1),domEventHandlers:Object.assign(Object.assign({},pe),{click:(i,o,s)=>{if(pe.click&&pe.click(i,o,s))return!0;let v=findFold(i.state,o.from,o.to);if(v)return i.dispatch({effects:Ot.of(v)}),!0;let _=foldable(i.state,o.from,o.to);return!!_&&(i.dispatch({effects:bt.of(_)}),!0)}})}),codeFolding()]}const Dt=ae.c.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Pt{constructor(i,o){let s;function def(i){let o=we.a.newName();return(s||(s=Object.create(null)))["."+o]=i,o}this.specs=i;const v="string"==typeof o.all?o.all:o.all?def(o.all):void 0,_=o.scope;this.scope=_ instanceof tt?i=>i.prop(_e)==_.data:_?i=>i==_:void 0,this.style=Object(pe.c)(i.map((i=>({tag:i.tag,class:i.class||def(Object.assign({},i,{tag:null}))}))),{all:v}).style,this.module=s?new we.a(s):null,this.themeType=o.themeType}static define(i,o){return new Pt(i,o||{})}}const Tt=$.g.define(),It=$.g.define({combine:i=>i.length?[i[0]]:null});function getHighlighters(i){let o=i.facet(Tt);return o.length?o:i.facet(It)}function syntaxHighlighting(i,o){let s,v=[Nt];return i instanceof Pt&&(i.module&&v.push(ae.c.styleModule.of(i.module)),s=i.themeType),(null==o?void 0:o.fallback)?v.push(It.of(i)):s?v.push(Tt.computeN([ae.c.darkTheme],(o=>o.facet(ae.c.darkTheme)==("dark"==s)?[i]:[]))):v.push(Tt.of(i)),v}class Ft{constructor(i){this.markCache=Object.create(null),this.tree=syntaxTree(i.state),this.decorations=this.buildDeco(i,getHighlighters(i.state))}update(i){let o=syntaxTree(i.state),s=getHighlighters(i.state),v=s!=getHighlighters(i.startState);o.length{s.add(i,o,this.markCache[v]||(this.markCache[v]=ae.a.mark({class:v})))}),v,_);return s.finish()}}const Nt=$.i.high(ae.e.fromClass(Ft,{decorations:i=>i.decorations})),Bt=Pt.define([{tag:pe.d.meta,color:"#404740"},{tag:pe.d.link,textDecoration:"underline"},{tag:pe.d.heading,textDecoration:"underline",fontWeight:"bold"},{tag:pe.d.emphasis,fontStyle:"italic"},{tag:pe.d.strong,fontWeight:"bold"},{tag:pe.d.strikethrough,textDecoration:"line-through"},{tag:pe.d.keyword,color:"#708"},{tag:[pe.d.atom,pe.d.bool,pe.d.url,pe.d.contentSeparator,pe.d.labelName],color:"#219"},{tag:[pe.d.literal,pe.d.inserted],color:"#164"},{tag:[pe.d.string,pe.d.deleted],color:"#a11"},{tag:[pe.d.regexp,pe.d.escape,pe.d.special(pe.d.string)],color:"#e40"},{tag:pe.d.definition(pe.d.variableName),color:"#00f"},{tag:pe.d.local(pe.d.variableName),color:"#30a"},{tag:[pe.d.typeName,pe.d.namespace],color:"#085"},{tag:pe.d.className,color:"#167"},{tag:[pe.d.special(pe.d.variableName),pe.d.macroName],color:"#256"},{tag:pe.d.definition(pe.d.propertyName),color:"#00c"},{tag:pe.d.comment,color:"#940"},{tag:pe.d.invalid,color:"#f00"}]),Lt=ae.c.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),jt=1e4,Mt="()[]{}",Qt=$.g.define({combine:i=>Object($.s)(i,{afterCursor:!0,brackets:Mt,maxScanDistance:jt,renderMatch:defaultRenderMatch})}),Vt=ae.a.mark({class:"cm-matchingBracket"}),Ut=ae.a.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(i){let o=[],s=i.matched?Vt:Ut;return o.push(s.range(i.start.from,i.start.to)),i.end&&o.push(s.range(i.end.from,i.end.to)),o}const Wt=[$.n.define({create:()=>ae.a.none,update(i,o){if(!o.docChanged&&!o.selection)return i;let s=[],v=o.state.facet(Qt);for(let i of o.state.selection.ranges){if(!i.empty)continue;let _=matchBrackets(o.state,i.head,-1,v)||i.head>0&&matchBrackets(o.state,i.head-1,1,v)||v.afterCursor&&(matchBrackets(o.state,i.head,1,v)||i.headae.c.decorations.from(i)}),Lt];function bracketMatching(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Qt.of(i),Wt]}const $t=new _.c;function matchingNodes(i,o,s){let v=i.prop(o<0?_.c.openedBy:_.c.closedBy);if(v)return v;if(1==i.name.length){let v=s.indexOf(i.name);if(v>-1&&v%2==(o<0?1:0))return[s[v+o]]}return null}function findHandle(i){let o=i.type.prop($t);return o?o(i.node):i}function matchBrackets(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},_=v.maxScanDistance||jt,$=v.brackets||Mt,ae=syntaxTree(i),pe=ae.resolveInner(o,s);for(let v=pe;v;v=v.parent){let _=matchingNodes(v.type,s,$);if(_&&v.from0?o>=ae.from&&oae.from&&o<=ae.to))return matchMarkedBrackets(i,o,s,v,ae,_,$)}}return matchPlainBrackets(i,o,s,ae,pe.type,_,$)}function matchMarkedBrackets(i,o,s,v,_,$,ae){let pe=v.parent,we={from:_.from,to:_.to},_e=0,et=null==pe?void 0:pe.cursor();if(et&&(s<0?et.childBefore(v.from):et.childAfter(v.to)))do{if(s<0?et.to<=v.from:et.from>=v.to){if(0==_e&&$.indexOf(et.type.name)>-1&&et.from0)return null;let _e={from:s<0?o-1:o,to:s>0?o+1:o},et=i.doc.iterRange(o,s>0?i.doc.length:0),tt=0;for(let i=0;!et.next().done&&i<=$;){let $=et.value;s<0&&(i+=$.length);let pe=o+i*s;for(let i=s>0?0:$.length-1,o=s>0?$.length:-1;i!=o;i+=s){let o=ae.indexOf($[i]);if(!(o<0||v.resolveInner(pe+i,1).type!=_))if(o%2==0==s>0)tt++;else{if(1==tt)return{start:_e,end:{from:pe+i,to:pe+i+1},matched:o>>1==we>>1};tt--}}s>0&&(i+=$.length)}return et.done?{start:_e,matched:!1}:null}const qt=Object.create(null),zt=[_.e.none],Zt=[],Ht=Object.create(null),Gt=Object.create(null);for(let[i,o]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Gt[i]=createTokenType(qt,o);function warnForPart(i,o){Zt.indexOf(i)>-1||(Zt.push(i),console.warn(o))}function createTokenType(i,o){let s=[];for(let v of o.split(" ")){let o=[];for(let s of v.split(".")){let v=i[s]||pe.d[s];v?"function"==typeof v?o.length?o=o.map(v):warnForPart(s,"Modifier ".concat(s," used at start of tag")):o.length?warnForPart(s,"Tag ".concat(s," used as modifier")):o=Array.isArray(v)?v:[v]:warnForPart(s,"Unknown highlighting tag ".concat(s))}for(let i of o)s.push(i)}if(!s.length)return 0;let v=o.replace(/ /g,"_"),$=v+" "+s.map((i=>i.id)),ae=Ht[$];if(ae)return ae.id;let we=Ht[$]=_.e.define({id:zt.length,name:v,props:[Object(pe.b)({[v]:s})]});return zt.push(we),we.id}},function(i,o,s){"use strict";s.d(o,"a",(function(){return v})),s.d(o,"b",(function(){return rt})),s.d(o,"c",(function(){return ae})),s.d(o,"d",(function(){return et})),s.d(o,"e",(function(){return _e})),s.d(o,"f",(function(){return gt})),s.d(o,"g",(function(){return yt})),s.d(o,"h",(function(){return it})),s.d(o,"i",(function(){return mt}));const v=1024;let _=0;class ${constructor(i,o){this.from=i,this.to=o}}class ae{constructor(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.id=_++,this.perNode=!!i.perNode,this.deserialize=i.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(i){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof i&&(i=_e.match(i)),o=>{let s=i(o);return void 0===s?null:[this,s]}}}ae.closedBy=new ae({deserialize:i=>i.split(" ")}),ae.openedBy=new ae({deserialize:i=>i.split(" ")}),ae.group=new ae({deserialize:i=>i.split(" ")}),ae.contextHash=new ae({perNode:!0}),ae.lookAhead=new ae({perNode:!0}),ae.mounted=new ae({perNode:!0});class pe{constructor(i,o,s){this.tree=i,this.overlay=o,this.parser=s}static get(i){return i&&i.props&&i.props[ae.mounted.id]}}const we=Object.create(null);class _e{constructor(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.name=i,this.props=o,this.id=s,this.flags=v}static define(i){let o=i.props&&i.props.length?Object.create(null):we,s=(i.top?1:0)|(i.skipped?2:0)|(i.error?4:0)|(null==i.name?8:0),v=new _e(i.name||"",o,i.id,s);if(i.props)for(let s of i.props)if(Array.isArray(s)||(s=s(v)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[s[0].id]=s[1]}return v}prop(i){return this.props[i.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(i){if("string"==typeof i){if(this.name==i)return!0;let o=this.prop(ae.group);return!!o&&o.indexOf(i)>-1}return this.id==i}static match(i){let o=Object.create(null);for(let s in i)for(let v of s.split(" "))o[v]=i[s];return i=>{for(let s=i.prop(ae.group),v=-1;v<(s?s.length:0);v++){let _=o[v<0?i.name:s[v]];if(_)return _}}}}_e.none=new _e("",Object.create(null),0,8);class et{constructor(i){this.types=i;for(let o=0;o0&&void 0!==arguments[0]?arguments[0]:0;return new pt(this.topNode,i)}cursorAt(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=tt.get(this)||this.topNode,v=new pt(s);return v.moveTo(i,o),tt.set(this,v._tree),v}get topNode(){return new ut(this,0,0,null)}resolve(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=resolveNode(tt.get(this)||this.topNode,i,o,!1);return tt.set(this,s),s}resolveInner(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=resolveNode(nt.get(this)||this.topNode,i,o,!0);return nt.set(this,s),s}resolveStack(i){return stackIterator(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}iterate(i){let{enter:o,leave:s,from:v=0,to:_=this.length}=i,$=i.mode||0,ae=($&rt.IncludeAnonymous)>0;for(let i=this.cursor($|rt.IncludeAnonymous);;){let $=!1;if(i.from<=_&&i.to>=v&&(!ae&&i.type.isAnonymous||!1!==o(i))){if(i.firstChild())continue;$=!0}for(;$&&s&&(ae||!i.type.isAnonymous)&&s(i),!i.nextSibling();){if(!i.parent())return;$=!0}}}prop(i){return i.perNode?this.props?this.props[i.id]:void 0:this.type.prop(i)}get propValues(){let i=[];if(this.props)for(let o in this.props)i.push([+o,this.props[o]]);return i}balance(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:balanceRange(_e.none,this.children,this.positions,0,this.children.length,0,this.length,((i,o,s)=>new it(this.type,i,o,s,this.propValues)),i.makeTree||((i,o,s)=>new it(_e.none,i,o,s)))}static build(i){return buildTree(i)}}it.empty=new it(_e.none,[],[],0);class ot{constructor(i,o){this.buffer=i,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ot(this.buffer,this.index)}}class st{constructor(i,o,s){this.buffer=i,this.length=o,this.set=s}get type(){return _e.none}toString(){let i=[];for(let o=0;o0));pe=$[pe+3]);return ae}slice(i,o,s){let v=this.buffer,_=new Uint16Array(o-i),$=0;for(let ae=i,pe=0;ae=o&&so;case 1:return s<=o&&v>o;case 2:return v>o;case 4:return!0}}function resolveNode(i,o,s,v){for(var _;i.from==i.to||(s<1?i.from>=o:i.from>o)||(s>-1?i.to<=o:i.to0&&void 0!==arguments[0]?arguments[0]:0)}getChild(i){let o=getChildren(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return o.length?o[0]:null}getChildren(i){return getChildren(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}resolve(i){return resolveNode(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}resolveInner(i){return resolveNode(this,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}matchContext(i){return matchNodeContext(this,i)}enterUnfinishedNodesBefore(i){let o=this.childBefore(i),s=this;for(;o;){let i=o.lastChild;if(!i||i.to!=o.to)break;i.type.isError&&i.from==i.to?(s=o,o=i.prevSibling):o=i}return s}get node(){return this}get next(){return this.parent}}class ut extends dt{constructor(i,o,s,v){super(),this._tree=i,this.from=o,this.index=s,this._parent=v}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;for(let $=this;;){for(let{children:ae,positions:we}=$._tree,_e=o>0?ae.length:-1;i!=_e;i+=o){let _e=ae[i],et=we[i]+$.from;if(checkSide(v,s,et,et+_e.length))if(_e instanceof st){if(_&rt.ExcludeBuffers)continue;let ae=_e.findChild(0,_e.buffer.length,o,s-et,v);if(ae>-1)return new ct(new lt($,_e,i,et),null,ae)}else if(_&rt.IncludeAnonymous||!_e.type.isAnonymous||hasChild(_e)){let ae;if(!(_&rt.IgnoreMounts)&&(ae=pe.get(_e))&&!ae.overlay)return new ut(ae.tree,et,i,$);let we=new ut(_e,et,i,$);return _&rt.IncludeAnonymous||!we.type.isAnonymous?we:we.nextChild(o<0?_e.children.length-1:0,o,s,v)}}if(_&rt.IncludeAnonymous||!$.type.isAnonymous)return null;if(i=$.index>=0?$.index+o:o<0?-1:$._parent._tree.children.length,$=$._parent,!$)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(i){return this.nextChild(0,1,i,2)}childBefore(i){return this.nextChild(this._tree.children.length-1,-1,i,-2)}enter(i,o){let s,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(v&rt.IgnoreOverlays)&&(s=pe.get(this._tree))&&s.overlay){let v=i-this.from;for(let{from:i,to:_}of s.overlay)if((o>0?i<=v:i=v:_>v))return new ut(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,i,o,v)}nextSignificantParent(){let i=this;for(;i.type.isAnonymous&&i._parent;)i=i._parent;return i}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function getChildren(i,o,s,v){let _=i.cursor(),$=[];if(!_.firstChild())return $;if(null!=s)for(;!_.type.is(s);)if(!_.nextSibling())return $;for(;;){if(null!=v&&_.type.is(v))return $;if(_.type.is(o)&&$.push(_.node),!_.nextSibling())return null==v?$:[]}}function matchNodeContext(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.length-1;for(let v=i.parent;s>=0;v=v.parent){if(!v)return!1;if(!v.type.isAnonymous){if(o[s]&&o[s]!=v.name)return!1;s--}}return!0}class lt{constructor(i,o,s,v){this.parent=i,this.buffer=o,this.index=s,this.start=v}}class ct extends dt{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(i,o,s){super(),this.context=i,this._parent=o,this.index=s,this.type=i.buffer.set.types[i.buffer.buffer[s]]}child(i,o,s){let{buffer:v}=this.context,_=v.findChild(this.index+4,v.buffer[this.index+3],i,o-this.context.start,s);return _<0?null:new ct(this.context,this,_)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(i){return this.child(1,i,2)}childBefore(i){return this.child(-1,i,-2)}enter(i,o){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&rt.ExcludeBuffers)return null;let{buffer:s}=this.context,v=s.findChild(this.index+4,s.buffer[this.index+3],o>0?1:-1,i-this.context.start,o);return v<0?null:new ct(this.context,this,v)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(i){return this._parent?null:this.context.parent.nextChild(this.context.index+i,i,0,4)}get nextSibling(){let{buffer:i}=this.context,o=i.buffer[this.index+3];return o<(this._parent?i.buffer[this._parent.index+3]:i.buffer.length)?new ct(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:i}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new ct(this.context,this._parent,i.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let i=[],o=[],{buffer:s}=this.context,v=this.index+4,_=s.buffer[this.index+3];if(_>v){let $=s.buffer[this.index+1];i.push(s.slice(v,_,$)),o.push(0)}return new it(this.type,i,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function iterStack(i){if(!i.length)return null;let o=0,s=i[0];for(let v=1;vs.from||_.to=o){let ae=new ut($.tree,$.overlay[0].from+i.from,-1,i);(_||(_=[v])).push(resolveNode(ae,o,s,!1))}}return _?iterStack(_):v}class pt{get name(){return this.type.name}constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,i instanceof ut)this.yieldNode(i);else{this._tree=i.context.parent,this.buffer=i.context;for(let o=i._parent;o;o=o._parent)this.stack.unshift(o.index);this.bufferNode=i,this.yieldBuf(i.index)}}yieldNode(i){return!!i&&(this._tree=i,this.type=i.type,this.from=i.from,this.to=i.to,!0)}yieldBuf(i,o){this.index=i;let{start:s,buffer:v}=this.buffer;return this.type=o||v.set.types[v.buffer[i]],this.from=s+v.buffer[i+1],this.to=s+v.buffer[i+2],!0}yield(i){return!!i&&(i instanceof ut?(this.buffer=null,this.yieldNode(i)):(this.buffer=i.context,this.yieldBuf(i.index,i.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(i,o,s){if(!this.buffer)return this.yield(this._tree.nextChild(i<0?this._tree._tree.children.length-1:0,i,o,s,this.mode));let{buffer:v}=this.buffer,_=v.findChild(this.index+4,v.buffer[this.index+3],i,o-this.buffer.start,s);return!(_<0)&&(this.stack.push(this.index),this.yieldBuf(_))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(i){return this.enterChild(1,i,2)}childBefore(i){return this.enterChild(-1,i,-2)}enter(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(s&rt.ExcludeBuffers)&&this.enterChild(1,i,o):this.yield(this._tree.enter(i,o,s))}parent(){if(!this.buffer)return this.yieldNode(this.mode&rt.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let i=this.mode&rt.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(i)}sibling(i){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+i,i,0,4,this.mode));let{buffer:o}=this.buffer,s=this.stack.length-1;if(i<0){let i=s<0?0:this.stack[s]+4;if(this.index!=i)return this.yieldBuf(o.findChild(i,this.index,-1,0,4))}else{let i=o.buffer[this.index+3];if(i<(s<0?o.buffer.length:o.buffer[this.stack[s]+3]))return this.yieldBuf(i)}return s<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+i,i,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(i){let o,s,{buffer:v}=this;if(v){if(i>0){if(this.index-1)for(let v=o+i,_=i<0?-1:s._tree.children.length;v!=_;v+=i){let i=s._tree.children[v];if(this.mode&rt.IncludeAnonymous||i instanceof st||!i.type.isAnonymous||hasChild(i))return!1}return!0}move(i,o){if(o&&this.enterChild(i,0,4))return!0;for(;;){if(this.sibling(i))return!0;if(this.atLastNode(i)||!this.parent())return!1}}next(){let i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(1,i)}prev(){let i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(-1,i)}moveTo(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(;(this.from==this.to||(o<1?this.from>=i:this.from>i)||(o>-1?this.to<=i:this.to=0;){for(let $=i;$;$=$._parent)if($.index==v){if(v==this.index)return $;o=$,s=_+1;break e}v=this.stack[--_]}for(let i=s;i=0;_--){if(_<0)return matchNodeContext(this.node,i,v);let $=s[o.buffer[this.stack[_]]];if(!$.isAnonymous){if(i[v]&&i[v]!=$.name)return!1;v--}}return!0}}function hasChild(i){return i.children.some((i=>i instanceof st||!i.type.isAnonymous||hasChild(i)))}function buildTree(i){var o;let{buffer:s,nodeSet:_,maxBufferLength:$=v,reused:pe=[],minRepeatType:we=_.types.length}=i,_e=Array.isArray(s)?new ot(s,s.length):s,et=_.types,tt=0,nt=0;function takeNode(i,o,s,v,ae,rt){let{id:it,start:ot,end:dt,size:ut}=_e,lt=nt;for(;ut<0;){if(_e.next(),-1==ut){let o=pe[it];return s.push(o),void v.push(ot-i)}if(-3==ut)return void(tt=it);if(-4==ut)return void(nt=it);throw new RangeError("Unrecognized record size: ".concat(ut))}let ct,ht,pt=et[it],ft=ot-i;if(dt-ot<=$&&(ht=findBufferSize(_e.pos-o,ae))){let o=new Uint16Array(ht.size-ht.skip),s=_e.pos-ht.size,v=o.length;for(;_e.pos>s;)v=copyToBuffer(ht.start,o,v);ct=new st(o,dt-ht.start,_),ft=ht.start-i}else{let i=_e.pos-ut;_e.next();let o=[],s=[],v=it>=we?it:-1,_=0,ae=dt;for(;_e.pos>i;)v>=0&&_e.id==v&&_e.size>=0?(_e.end<=ae-$&&(makeRepeatLeaf(o,s,ot,_,_e.end,ae,v,lt),_=o.length,ae=_e.end),_e.next()):rt>2500?takeFlatNode(ot,i,o,s):takeNode(ot,i,o,s,v,rt+1);if(v>=0&&_>0&&_-1&&_>0){let i=makeBalanced(pt);ct=balanceRange(pt,o,s,0,o.length,0,dt-ot,i,i)}else ct=makeTree(pt,o,s,dt-ot,lt-dt)}s.push(ct),v.push(ft)}function takeFlatNode(i,o,s,v){let ae=[],pe=0,we=-1;for(;_e.pos>o;){let{id:i,start:o,end:s,size:v}=_e;if(v>4)_e.next();else{if(we>-1&&o=0;i-=3)o[s++]=ae[i],o[s++]=ae[i+1]-$,o[s++]=ae[i+2]-$,o[s++]=s;s.push(new st(o,ae[2]-$,_)),v.push($-i)}}function makeBalanced(i){return(o,s,v)=>{let _,$,pe=0,we=o.length-1;if(we>=0&&(_=o[we])instanceof it){if(!we&&_.type==i&&_.length==v)return _;($=_.prop(ae.lookAhead))&&(pe=s[we]+_.length+$)}return makeTree(i,o,s,v,pe)}}function makeRepeatLeaf(i,o,s,v,$,ae,pe,we){let _e=[],et=[];for(;i.length>v;)_e.push(i.pop()),et.push(o.pop()+s-$);i.push(makeTree(_.types[pe],_e,et,ae-$,we-ae)),o.push($-s)}function makeTree(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,$=arguments.length>5?arguments[5]:void 0;if(tt){let i=[ae.contextHash,tt];$=$?[i].concat($):[i]}if(_>25){let i=[ae.lookAhead,_];$=$?[i].concat($):[i]}return new it(i,o,s,v,$)}function findBufferSize(i,o){let s=_e.fork(),v=0,_=0,ae=0,pe=s.end-$,et={size:0,start:0,skip:0};e:for(let $=s.pos-i;s.pos>$;){let i=s.size;if(s.id==o&&i>=0){et.size=v,et.start=_,et.skip=ae,ae+=4,v+=4,s.next();continue}let _e=s.pos-i;if(i<0||_e<$||s.start=we?4:0,nt=s.start;for(s.next();s.pos>_e;){if(s.size<0){if(-3!=s.size)break e;tt+=4}else s.id>=we&&(tt+=4);s.next()}_=nt,v+=i,ae+=tt}return(o<0||v==i)&&(et.size=v,et.start=_,et.skip=ae),et.size>4?et:void 0}function copyToBuffer(i,o,s){let{id:v,start:_,end:$,size:ae}=_e;if(_e.next(),ae>=0&&v4){let v=_e.pos-(ae-4);for(;_e.pos>v;)s=copyToBuffer(i,o,s)}o[--s]=pe,o[--s]=$-i,o[--s]=_-i,o[--s]=v}else-3==ae?tt=v:-4==ae&&(nt=v);return s}let rt=[],dt=[];for(;_e.pos>0;)takeNode(i.start||0,i.bufferStart||0,rt,dt,-1,0);let ut=null!==(o=i.length)&&void 0!==o?o:rt.length?dt[0]+rt[0].length:0;return new it(et[i.topID],rt.reverse(),dt.reverse(),ut)}const ft=new WeakMap;function nodeSize(i,o){if(!i.isAnonymous||o instanceof st||o.type!=i)return 1;let s=ft.get(o);if(null==s){s=1;for(let v of o.children){if(v.type!=i||!(v instanceof it)){s=1;break}s+=nodeSize(i,v)}ft.set(o,s)}return s}function balanceRange(i,o,s,v,_,$,ae,pe,we){let _e=0;for(let s=v;s<_;s++)_e+=nodeSize(i,o[s]);let et=Math.ceil(1.5*_e/8),tt=[],nt=[];return function divide(o,s,v,_,ae){for(let pe=v;pe<_;){let v=pe,_e=s[pe],rt=nodeSize(i,o[pe]);for(pe++;pe<_;pe++){let s=nodeSize(i,o[pe]);if(rt+s>=et)break;rt+=s}if(pe==v+1){if(rt>et){let i=o[v];divide(i.children,i.positions,0,i.children.length,s[v]+ae);continue}tt.push(o[v])}else{let _=s[pe-1]+o[pe-1].length-_e;tt.push(balanceRange(i,o,s,v,pe,_e,_,null,we))}nt.push(_e+ae-$)}}(o,s,v,_,0),(pe||we)(tt,nt,ae)}class gt{constructor(){this.map=new WeakMap}setBuffer(i,o,s){let v=this.map.get(i);v||this.map.set(i,v=new Map),v.set(o,s)}getBuffer(i,o){let s=this.map.get(i);return s&&s.get(o)}set(i,o){i instanceof ct?this.setBuffer(i.context.buffer,i.index,o):i instanceof ut&&this.map.set(i.tree,o)}get(i){return i instanceof ct?this.getBuffer(i.context.buffer,i.index):i instanceof ut?this.map.get(i.tree):void 0}cursorSet(i,o){i.buffer?this.setBuffer(i.buffer.buffer,i.index,o):this.map.set(i.tree,o)}cursorGet(i){return i.buffer?this.getBuffer(i.buffer.buffer,i.index):this.map.get(i.tree)}}class mt{constructor(i,o,s,v){let _=arguments.length>4&&void 0!==arguments[4]&&arguments[4],$=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.from=i,this.to=o,this.tree=s,this.offset=v,this.open=(_?1:0)|($?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=[new mt(0,i.length,i,0,!1,s)];for(let s of o)s.to>i.length&&v.push(s);return v}static applyChanges(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!o.length)return i;let v=[],_=1,$=i.length?i[0]:null;for(let ae=0,pe=0,we=0;;ae++){let _e=ae=s)for(;$&&$.from=o.from||et<=o.to||we){let i=Math.max(o.from,pe)-we,s=Math.min(o.to,et)-we;o=i>=s?null:new mt(i,s,o.tree,o.offset+we,ae>0,!!_e)}if(o&&v.push(o),$.to>et)break;$=_new $(i.from,i.to))):[new $(0,0)]:[new $(0,i.length)],this.createParse(i,o||[],s)}parse(i,o,s){let v=this.startParse(i,o,s);for(;;){let i=v.advance();if(i)return i}}}class vt{constructor(i){this.string=i}get length(){return this.string.length}chunk(i){return this.string.slice(i)}get lineChunks(){return!1}read(i,o){return this.string.slice(i,o)}}new ae({perNode:!0})},function(i,o,s){"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(i){for(var o=1;o=0&&it.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var ct=dt.initializeApp;dt.initializeApp=function(){for(var i=[],o=0;o"string"==typeof i?{label:i}:i)),[s,v]=o.every((i=>/^\w+$/.test(i.label)))?[/\w*$/,/\w+$/]:prefixMatch(o);return i=>{let _=i.matchBefore(v);return _||i.explicit?{from:_?_.from:i.pos,options:o,validFor:s}:null}}function ifNotIn(i,o){return s=>{for(let o=Object($.x)(s.state).resolveInner(s.pos,-1);o;o=o.parent){if(i.indexOf(o.name)>-1)return null;if(o.type.isTop)break}return o(s)}}class pe{constructor(i,o,s,v){this.completion=i,this.source=o,this.match=s,this.score=v}}function cur(i){return i.selection.main.from}function ensureAnchor(i,o){var s;let{source:v}=i,_=o&&"^"!=v[0],$="$"!=v[v.length-1];return _||$?new RegExp("".concat(_?"^":"","(?:").concat(v,")").concat($?"$":""),null!==(s=i.flags)&&void 0!==s?s:i.ignoreCase?"i":""):i}const we=v.a.define();function insertCompletionText(i,o,s,_){let{main:$}=i.selection,ae=s-$.from,pe=_-$.from;return Object.assign(Object.assign({},i.changeByRange((we=>we!=$&&s!=_&&i.sliceDoc(we.from+ae,we.from+pe)!=i.sliceDoc(s,_)?{range:we}:{changes:{from:we.from+ae,to:_==$.from?we.to:we.from+pe,insert:o},range:v.e.cursor(we.from+ae+o.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}const _e=new WeakMap;function asSource(i){if(!Array.isArray(i))return i;let o=_e.get(i);return o||_e.set(i,o=completeFromList(i)),o}const et=v.m.define(),tt=v.m.define();class nt{constructor(i){this.pattern=i,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&_e<=57||_e>=97&&_e<=122?2:_e>=65&&_e<=90?1:0:(lt=Object(v.w)(_e))!=lt.toLowerCase()?1:lt!=lt.toUpperCase()?2:0;(!_||1==ct&&st||0==ut&&0!=ct)&&(o[tt]==_e||s[tt]==_e&&(nt=!0)?ae[tt++]=_:ae.length&&(dt=!1)),ut=ct,_+=Object(v.r)(_e)}return tt==we&&0==ae[0]&&dt?this.result((nt?-200:0)-100,ae,i):rt==we&&0==it?this.ret(-200-i.length+(ot==i.length?0:-100),[0,ot]):pe>-1?this.ret(-700-i.length,[pe,pe+this.pattern.length]):rt==we?this.ret(-900-i.length,[it,ot]):tt==we?this.result((nt?-200:0)-100-700+(dt?0:-1100),ae,i):2!=o.length&&this.result((_[0]?-700:0)-200-1100,_,i)}result(i,o,s){let _=[],$=0;for(let i of o){let o=i+(this.astral?Object(v.r)(Object(v.q)(s,i)):1);$&&_[$-1]==i?_[$-1]=o:(_[$++]=i,_[$++]=o)}return this.ret(i-s.length,_)}}const rt=v.g.define({combine:i=>Object(v.s)(i,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:defaultPositionInfo,compareCompletions:(i,o)=>i.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(i,o)=>i&&o,closeOnBlur:(i,o)=>i&&o,icons:(i,o)=>i&&o,tooltipClass:(i,o)=>s=>joinClass(i(s),o(s)),optionClass:(i,o)=>s=>joinClass(i(s),o(s)),addToOptions:(i,o)=>i.concat(o)})});function joinClass(i,o){return i?o?i+" "+o:i:o}function defaultPositionInfo(i,o,s,v,$,ae){let pe,we,_e=i.textDirection==_.b.RTL,et=_e,tt=!1,nt="top",rt=o.left-$.left,it=$.right-o.right,ot=v.right-v.left,st=v.bottom-v.top;if(et&&rt=st||i>o.top?pe=s.bottom-o.top:(nt="bottom",pe=o.bottom-s.top)}let dt=(o.bottom-o.top)/ae.offsetHeight,ut=(o.right-o.left)/ae.offsetWidth;return{style:"".concat(nt,": ").concat(pe/dt,"px; max-width: ").concat(we/ut,"px"),class:"cm-completionInfo-"+(tt?_e?"left-narrow":"right-narrow":et?"left":"right")}}function optionContent(i){let o=i.addToOptions.slice();return i.icons&&o.push({render(i){let o=document.createElement("div");return o.classList.add("cm-completionIcon"),i.type&&o.classList.add(...i.type.split(/\s+/g).map((i=>"cm-completionIcon-"+i))),o.setAttribute("aria-hidden","true"),o},position:20}),o.push({render(i,o,s,v){let _=document.createElement("span");_.className="cm-completionLabel";let $=i.displayLabel||i.label,ae=0;for(let i=0;iae&&_.appendChild(document.createTextNode($.slice(ae,o)));let pe=_.appendChild(document.createElement("span"));pe.appendChild(document.createTextNode($.slice(o,s))),pe.className="cm-completionMatchedText",ae=s}return ae<$.length&&_.appendChild(document.createTextNode($.slice(ae))),_},position:50},{render(i){if(!i.detail)return null;let o=document.createElement("span");return o.className="cm-completionDetail",o.textContent=i.detail,o},position:80}),o.sort(((i,o)=>i.position-o.position)).map((i=>i.render))}function rangeAroundSelected(i,o,s){if(i<=s)return{from:0,to:i};if(o<0&&(o=0),o<=i>>1){let i=Math.floor(o/s);return{from:i*s,to:(i+1)*s}}let v=Math.floor((i-o)/s);return{from:i-(v+1)*s,to:i-v*s}}class it{constructor(i,o,s){this.view=i,this.stateField=o,this.applyCompletion=s,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:i=>this.placeInfo(i),key:this},this.space=null,this.currentClass="";let v=i.state.field(o),{options:_,selected:$}=v.open,ae=i.state.facet(rt);this.optionContent=optionContent(ae),this.optionClass=ae.optionClass,this.tooltipClass=ae.tooltipClass,this.range=rangeAroundSelected(_.length,$,ae.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(i.state),this.dom.addEventListener("mousedown",(s=>{let{options:v}=i.state.field(o).open;for(let o,_=s.target;_&&_!=this.dom;_=_.parentNode)if("LI"==_.nodeName&&(o=/-(\d+)$/.exec(_.id))&&+o[1]{let s=i.state.field(this.stateField,!1);s&&s.tooltip&&i.state.facet(rt).closeOnBlur&&o.relatedTarget!=i.contentDOM&&i.dispatch({effects:tt.of(null)})})),this.showOptions(_,v.id)}mount(){this.updateSel()}showOptions(i,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(i,o,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(i){var o;let s=i.state.field(this.stateField),v=i.startState.field(this.stateField);if(this.updateTooltipClass(i.state),s!=v){let{options:_,selected:$,disabled:ae}=s.open;v.open&&v.open.options==_||(this.range=rangeAroundSelected(_.length,$,i.state.facet(rt).maxRenderedOptions),this.showOptions(_,s.id)),this.updateSel(),ae!=(null===(o=v.open)||void 0===o?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!ae)}}updateTooltipClass(i){let o=this.tooltipClass(i);if(o!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of o.split(" "))i&&this.dom.classList.add(i);this.currentClass=o}}positioned(i){this.space=i,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let i=this.view.state.field(this.stateField),o=i.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=rangeAroundSelected(o.options.length,o.selected,this.view.state.facet(rt).maxRenderedOptions),this.showOptions(o.options,i.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:s}=o.options[o.selected],{info:v}=s;if(!v)return;let $="string"==typeof v?document.createTextNode(v):v(s);if(!$)return;"then"in $?$.then((o=>{o&&this.view.state.field(this.stateField,!1)==i&&this.addInfoPane(o,s)})).catch((i=>Object(_.s)(this.view.state,i,"completion info"))):this.addInfoPane($,s)}}addInfoPane(i,o){this.destroyInfo();let s=this.info=document.createElement("div");if(s.className="cm-tooltip cm-completionInfo",null!=i.nodeType)s.appendChild(i),this.infoDestroy=null;else{let{dom:o,destroy:v}=i;s.appendChild(o),this.infoDestroy=v||null}this.dom.appendChild(s),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(i){let o=null;for(let s=this.list.firstChild,v=this.range.from;s;s=s.nextSibling,v++)"LI"==s.nodeName&&s.id?v==i?s.hasAttribute("aria-selected")||(s.setAttribute("aria-selected","true"),o=s):s.hasAttribute("aria-selected")&&s.removeAttribute("aria-selected"):v--;return o&&scrollIntoView(this.list,o),o}measureInfo(){let i=this.dom.querySelector("[aria-selected]");if(!i||!this.info)return null;let o=this.dom.getBoundingClientRect(),s=this.info.getBoundingClientRect(),v=i.getBoundingClientRect(),_=this.space;if(!_){let i=this.dom.ownerDocument.defaultView||window;_={left:0,top:0,right:i.innerWidth,bottom:i.innerHeight}}return v.top>Math.min(_.bottom,o.bottom)-10||v.bottoms.from||0==s.from))if(_=i,"string"!=typeof we&&we.header)v.appendChild(we.header(we));else{v.appendChild(document.createElement("completion-section")).textContent=i}}const _e=v.appendChild(document.createElement("li"));_e.id=o+"-"+$,_e.setAttribute("role","option");let et=this.optionClass(ae);et&&(_e.className=et);for(let i of this.optionContent){let o=i(ae,this.view.state,this.view,pe);o&&_e.appendChild(o)}}return s.from&&v.classList.add("cm-completionListIncompleteTop"),s.tonew it(s,i,o)}function scrollIntoView(i,o){let s=i.getBoundingClientRect(),v=o.getBoundingClientRect(),_=s.height/i.offsetHeight;v.tops.bottom&&(i.scrollTop+=(v.bottom-s.bottom)/_)}function score(i){return 100*(i.boost||0)+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}function sortOptions(i,o){let s=[],v=null,addOption=i=>{s.push(i);let{section:o}=i.completion;if(o){v||(v=[]);let i="string"==typeof o?o:o.name;v.some((o=>o.name==i))||v.push("string"==typeof o?{name:i}:o)}};for(let v of i)if(v.hasResult()){let i=v.result.getMatch;if(!1===v.result.filter)for(let o of v.result.options)addOption(new pe(o,v.source,i?i(o):[],1e9-s.length));else{let s=new nt(o.sliceDoc(v.from,v.to));for(let o of v.result.options)if(s.match(o.label)){let _=o.displayLabel?i?i(o,s.matched):[]:s.matched;addOption(new pe(o,v.source,_,s.score+(o.boost||0)))}}}if(v){let i=Object.create(null),o=0,cmp=(i,o)=>{var s,v;return(null!==(s=i.rank)&&void 0!==s?s:1e9)-(null!==(v=o.rank)&&void 0!==v?v:1e9)||(i.nameo.score-i.score||ae(i.completion,o.completion)))){let o=i.completion;!$||$.label!=o.label||$.detail!=o.detail||null!=$.type&&null!=o.type&&$.type!=o.type||$.apply!=o.apply||$.boost!=o.boost?_.push(i):score(i.completion)>score($)&&(_[_.length-1]=i),$=i.completion}return _}class ot{constructor(i,o,s,v,_,$){this.options=i,this.attrs=o,this.tooltip=s,this.timestamp=v,this.selected=_,this.disabled=$}setSelected(i,o){return i==this.selected||i>=this.options.length?this:new ot(this.options,makeAttrs(o,i),this.tooltip,this.timestamp,i,this.disabled)}static build(i,o,s,v,_){let $=sortOptions(i,o);if(!$.length)return v&&i.some((i=>1==i.state))?new ot(v.options,v.attrs,v.tooltip,v.timestamp,v.selected,!0):null;let ae=o.facet(rt).selectOnOpen?0:-1;if(v&&v.selected!=ae&&-1!=v.selected){let i=v.options[v.selected].completion;for(let o=0;o<$.length;o++)if($[o].completion==i){ae=o;break}}return new ot($,makeAttrs(s,ae),{pos:i.reduce(((i,o)=>o.hasResult()?Math.min(i,o.from):i),1e8),create:gt,above:_.aboveCursor},v?v.timestamp:Date.now(),ae,!1)}map(i){return new ot(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:i.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class st{constructor(i,o,s){this.active=i,this.id=o,this.open=s}static start(){return new st(ut,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(i){let{state:o}=i,s=o.facet(rt),v=(s.override||o.languageDataAt("autocomplete",cur(o)).map(asSource)).map((o=>(this.active.find((i=>i.source==o))||new lt(o,this.active.some((i=>0!=i.state))?1:0)).update(i,s)));v.length==this.active.length&&v.every(((i,o)=>i==this.active[o]))&&(v=this.active);let _=this.open;_&&i.docChanged&&(_=_.map(i.changes)),i.selection||v.some((o=>o.hasResult()&&i.changes.touchesRange(o.from,o.to)))||!sameResults(v,this.active)?_=ot.build(v,o,this.id,_,s):_&&_.disabled&&!v.some((i=>1==i.state))&&(_=null),!_&&v.every((i=>1!=i.state))&&v.some((i=>i.hasResult()))&&(v=v.map((i=>i.hasResult()?new lt(i.source,0):i)));for(let o of i.effects)o.is(pt)&&(_=_&&_.setSelected(o.value,this.id));return v==this.active&&_==this.open?this:new st(v,this.id,_)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:dt}}function sameResults(i,o){if(i==o)return!0;for(let s=0,v=0;;){for(;s-1&&(s["aria-activedescendant"]=i+"-"+o),s}const ut=[];function getUserEvent(i){return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class lt{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.source=i,this.state=o,this.explicitPos=s}hasResult(){return!1}update(i,o){let s=getUserEvent(i),v=this;s?v=v.handleUserEvent(i,s,o):i.docChanged?v=v.handleChange(i):i.selection&&0!=v.state&&(v=new lt(v.source,0));for(let o of i.effects)if(o.is(et))v=new lt(v.source,1,o.value?cur(i.state):-1);else if(o.is(tt))v=new lt(v.source,0);else if(o.is(ht))for(let i of o.value)i.source==v.source&&(v=i);return v}handleUserEvent(i,o,s){return"delete"!=o&&s.activateOnTyping?new lt(this.source,1):this.map(i.changes)}handleChange(i){return i.changes.touchesRange(cur(i.startState))?new lt(this.source,0):this.map(i.changes)}map(i){return i.empty||this.explicitPos<0?this:new lt(this.source,this.state,i.mapPos(this.explicitPos))}}class ct extends lt{constructor(i,o,s,v,_){super(i,2,o),this.result=s,this.from=v,this.to=_}hasResult(){return!0}handleUserEvent(i,o,s){var v;let _=i.changes.mapPos(this.from),$=i.changes.mapPos(this.to,1),pe=cur(i.state);if((this.explicitPos<0?pe<=_:pe$||"delete"==o&&cur(i.startState)==this.from)return new lt(this.source,"input"==o&&s.activateOnTyping?1:0);let we,_e=this.explicitPos<0?-1:i.changes.mapPos(this.explicitPos);return checkValid(this.result.validFor,i.state,_,$)?new ct(this.source,_e,this.result,_,$):this.result.update&&(we=this.result.update(this.result,_,$,new ae(i.state,pe,_e>=0)))?new ct(this.source,_e,we,we.from,null!==(v=we.to)&&void 0!==v?v:cur(i.state)):new lt(this.source,1,_e)}handleChange(i){return i.changes.touchesRange(this.from,this.to)?new lt(this.source,0):this.map(i.changes)}map(i){return i.empty?this:new ct(this.source,this.explicitPos<0?-1:i.mapPos(this.explicitPos),this.result,i.mapPos(this.from),i.mapPos(this.to,1))}}function checkValid(i,o,s,v){if(!i)return!1;let _=o.sliceDoc(s,v);return"function"==typeof i?i(_,s,v,o):ensureAnchor(i,!0).test(_)}const ht=v.m.define({map:(i,o)=>i.map((i=>i.map(o)))}),pt=v.m.define(),ft=v.n.define({create:()=>st.start(),update:(i,o)=>i.update(o),provide:i=>[_.x.from(i,(i=>i.tooltip)),_.c.contentAttributes.from(i,(i=>i.attrs))]});function applyCompletion(i,o){const s=o.completion.apply||o.completion.label;let v=i.state.field(ft).active.find((i=>i.source==o.source));return v instanceof ct&&("string"==typeof s?i.dispatch(Object.assign(Object.assign({},insertCompletionText(i.state,s,v.from,v.to)),{annotations:we.of(o.completion)})):s(i,o.completion,v.from,v.to),!0)}const gt=completionTooltip(ft,applyCompletion);function moveCompletionSelection(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return s=>{let v=s.state.field(ft,!1);if(!v||!v.open||v.open.disabled||Date.now()-v.open.timestamp-1?v.open.selected+ae*(i?1:-1):i?0:pe-1;return we<0?we="page"==o?0:pe-1:we>=pe&&(we="page"==o?pe-1:0),s.dispatch({effects:pt.of(we)}),!0}}class mt{constructor(i,o){this.active=i,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const yt=_.e.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let o of i.state.field(ft).active)1==o.state&&this.startQuery(o)}update(i){let o=i.state.field(ft);if(!i.selectionSet&&!i.docChanged&&i.startState.field(ft)==o)return;let s=i.transactions.some((i=>(i.selection||i.docChanged)&&!getUserEvent(i)));for(let o=0;o50&&Date.now()-v.time>1e3){for(let i of v.context.abortListeners)try{i()}catch(i){Object(_.s)(this.view.state,i)}v.context.abortListeners=null,this.running.splice(o--,1)}else v.updates.push(...i.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=o.active.some((i=>1==i.state&&!this.running.some((o=>o.active.source==i.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let o of i.transactions)"input"==getUserEvent(o)?this.composing=2:2==this.composing&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:i}=this.view,o=i.field(ft);for(let i of o.active)1!=i.state||this.running.some((o=>o.active.source==i.source))||this.startQuery(i)}startQuery(i){let{state:o}=this.view,s=cur(o),v=new ae(o,s,i.explicitPos==s),$=new mt(i,v);this.running.push($),Promise.resolve(i.source(v)).then((i=>{$.context.aborted||($.done=i||null,this.scheduleAccept())}),(i=>{this.view.dispatch({effects:tt.of(null)}),Object(_.s)(this.view.state,i)}))}scheduleAccept(){this.running.every((i=>void 0!==i.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(rt).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let o=[],s=this.view.state.facet(rt);for(let v=0;vi.source==_.active.source));if($&&1==$.state)if(null==_.done){let i=new lt(_.active.source,0);for(let o of _.updates)i=i.update(o,s);1!=i.state&&o.push(i)}else this.startQuery($)}o.length&&this.view.dispatch({effects:ht.of(o)})}},{eventHandlers:{blur(i){let o=this.view.state.field(ft,!1);if(o&&o.tooltip&&this.view.state.facet(rt).closeOnBlur){let s=o.open&&Object(_.k)(this.view,o.open.tooltip);s&&s.dom.contains(i.relatedTarget)||this.view.dispatch({effects:tt.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:et.of(!1)})),20),this.composing=0}}}),vt=_.c.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"".concat(400,"px"),boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Rt{constructor(i,o,s,v){this.field=i,this.line=o,this.from=s,this.to=v}}class bt{constructor(i,o,s){this.field=i,this.from=o,this.to=s}map(i){let o=i.mapPos(this.from,-1,v.h.TrackDel),s=i.mapPos(this.to,1,v.h.TrackDel);return null==o||null==s?null:new bt(this.field,o,s)}}class Ot{constructor(i,o){this.lines=i,this.fieldPositions=o}instantiate(i,o){let s=[],v=[o],_=i.doc.lineAt(o),ae=/^\s*/.exec(_.text)[0];for(let _ of this.lines){if(s.length){let s=ae,pe=/^\t*/.exec(_)[0].length;for(let o=0;onew bt(i.field,v[i.line]+i.from,v[i.line]+i.to)));return{text:s,ranges:pe}}static parse(i){let o,s=[],v=[],_=[];for(let $ of i.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec($);){let i=o[1]?+o[1]:null,ae=o[2]||o[3]||"",pe=-1;for(let o=0;o=pe&&i.field++}_.push(new Rt(pe,v.length,o.index,o.index+ae.length)),$=$.slice(0,o.index)+ae+$.slice(o.index+o[0].length)}for(let i;i=/\\([{}])/.exec($);){$=$.slice(0,i.index)+i[1]+$.slice(i.index+i[0].length);for(let o of _)o.line==v.length&&o.from>i.index&&(o.from--,o.to--)}v.push($)}return new Ot(v,_)}}let xt=_.a.widget({widget:new class extends _.f{toDOM(){let i=document.createElement("span");return i.className="cm-snippetFieldPosition",i}ignoreEvent(){return!1}}}),wt=_.a.mark({class:"cm-snippetField"});class Ct{constructor(i,o){this.ranges=i,this.active=o,this.deco=_.a.set(i.map((i=>(i.from==i.to?xt:wt).range(i.from,i.to))))}map(i){let o=[];for(let s of this.ranges){let v=s.map(i);if(!v)return null;o.push(v)}return new Ct(o,this.active)}selectionInsideField(i){return i.ranges.every((i=>this.ranges.some((o=>o.field==this.active&&o.from<=i.from&&o.to>=i.to))))}}const St=v.m.define({map:(i,o)=>i&&i.map(o)}),_t=v.m.define(),Et=v.n.define({create:()=>null,update(i,o){for(let s of o.effects){if(s.is(St))return s.value;if(s.is(_t)&&i)return new Ct(i.ranges,s.value)}return i&&o.docChanged&&(i=i.map(o.changes)),i&&o.selection&&!i.selectionInsideField(o.selection)&&(i=null),i},provide:i=>_.c.decorations.from(i,(i=>i?i.deco:_.a.none))});function fieldSelection(i,o){return v.e.create(i.filter((i=>i.field==o)).map((i=>v.e.range(i.from,i.to))))}function snippet(i){let o=Ot.parse(i);return(i,s,_,$)=>{let{text:ae,ranges:pe}=o.instantiate(i.state,_),_e={changes:{from:_,to:$,insert:v.o.of(ae)},scrollIntoView:!0,annotations:s?we.of(s):void 0};if(pe.length&&(_e.selection=fieldSelection(pe,0)),pe.length>1){let o=new Ct(pe,0),s=_e.effects=[St.of(o)];void 0===i.state.field(Et,!1)&&s.push(v.m.appendConfig.of([Et,Dt,Pt,vt]))}i.dispatch(i.state.update(_e))}}function moveField(i){return o=>{let{state:s,dispatch:v}=o,_=s.field(Et,!1);if(!_||i<0&&0==_.active)return!1;let $=_.active+i,ae=i>0&&!_.ranges.some((o=>o.field==$+i));return v(s.update({selection:fieldSelection(_.ranges,$),effects:St.of(ae?null:new Ct(_.ranges,$)),scrollIntoView:!0})),!0}}const kt=[{key:"Tab",run:moveField(1),shift:moveField(-1)},{key:"Escape",run:i=>{let{state:o,dispatch:s}=i;return!!o.field(Et,!1)&&(s(o.update({effects:St.of(null)})),!0)}}],At=v.g.define({combine:i=>i.length?i[0]:kt}),Dt=v.i.highest(_.q.compute([At],(i=>i.facet(At))));function snippetCompletion(i,o){return Object.assign(Object.assign({},o),{apply:snippet(i)})}const Pt=_.c.domEventHandlers({mousedown(i,o){let s,v=o.state.field(Et,!1);if(!v||null==(s=o.posAtCoords({x:i.clientX,y:i.clientY})))return!1;let _=v.ranges.find((i=>i.from<=s&&i.to>=s));return!(!_||_.field==v.active)&&(o.dispatch({selection:fieldSelection(v.ranges,_.field),effects:St.of(v.ranges.some((i=>i.field>_.field))?new Ct(v.ranges,_.field):null),scrollIntoView:!0}),!0)}});const Tt={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},It=v.m.define({map(i,o){let s=o.mapPos(i,-1,v.h.TrackAfter);return null==s?void 0:s}}),Ft=new class extends v.l{};Ft.startSide=1,Ft.endSide=-1;const Nt=v.n.define({create:()=>v.j.empty,update(i,o){if(i=i.map(o.changes),o.selection){let s=o.state.doc.lineAt(o.selection.main.head);i=i.update({filter:i=>i>=s.from&&i<=s.to})}for(let s of o.effects)s.is(It)&&(i=i.update({add:[Ft.range(s.value,s.value+1)]}));return i}});function closeBrackets(){return[jt,Nt]}const Bt="()[]{}<>";function closing(i){for(let o=0;o{if((Lt?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let $=i.state.selection.main;if(_.length>2||2==_.length&&1==Object(v.r)(Object(v.q)(_,0))||o!=$.from||s!=$.to)return!1;let ae=insertBracket(i.state,_);return!!ae&&(i.dispatch(ae),!0)})),Mt=[{key:"Backspace",run:i=>{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let _=config(o,o.selection.main.head).brackets||Tt.brackets,$=null,ae=o.changeByRange((i=>{if(i.empty){let s=prevChar(o.doc,i.head);for(let $ of _)if($==s&&nextChar(o.doc,i.head)==closing(Object(v.q)($,0)))return{changes:{from:i.head-$.length,to:i.head+$.length},range:v.e.cursor(i.head-$.length)}}return{range:$=i}}));return $||s(o.update(ae,{scrollIntoView:!0,userEvent:"delete.backward"})),!$}}];function insertBracket(i,o){let s=config(i,i.selection.main.head),_=s.brackets||Tt.brackets;for(let $ of _){let ae=closing(Object(v.q)($,0));if(o==$)return ae==$?handleSame(i,$,_.indexOf($+$+$)>-1,s):handleOpen(i,$,ae,s.before||Tt.before);if(o==ae&&closedBracketAt(i,i.selection.main.from))return handleClose(i,$,ae)}return null}function closedBracketAt(i,o){let s=!1;return i.field(Nt).between(0,i.doc.length,(i=>{i==o&&(s=!0)})),s}function nextChar(i,o){let s=i.sliceString(o,o+2);return s.slice(0,Object(v.r)(Object(v.q)(s,0)))}function prevChar(i,o){let s=i.sliceString(o-2,o);return Object(v.r)(Object(v.q)(s,0))==s.length?s:s.slice(1)}function handleOpen(i,o,s,_){let $=null,ae=i.changeByRange((ae=>{if(!ae.empty)return{changes:[{insert:o,from:ae.from},{insert:s,from:ae.to}],effects:It.of(ae.to+o.length),range:v.e.range(ae.anchor+o.length,ae.head+o.length)};let pe=nextChar(i.doc,ae.head);return!pe||/\s/.test(pe)||_.indexOf(pe)>-1?{changes:{insert:o+s,from:ae.head},effects:It.of(ae.head+o.length),range:v.e.cursor(ae.head+o.length)}:{range:$=ae}}));return $?null:i.update(ae,{scrollIntoView:!0,userEvent:"input.type"})}function handleClose(i,o,s){let _=null,$=i.changeByRange((o=>o.empty&&nextChar(i.doc,o.head)==s?{changes:{from:o.head,to:o.head+s.length,insert:s},range:v.e.cursor(o.head+s.length)}:_={range:o}));return _?null:i.update($,{scrollIntoView:!0,userEvent:"input.type"})}function handleSame(i,o,s,_){let $=_.stringPrefixes||Tt.stringPrefixes,ae=null,pe=i.changeByRange((_=>{if(!_.empty)return{changes:[{insert:o,from:_.from},{insert:o,from:_.to}],effects:It.of(_.to+o.length),range:v.e.range(_.anchor+o.length,_.head+o.length)};let pe,we=_.head,_e=nextChar(i.doc,we);if(_e==o){if(nodeStart(i,we))return{changes:{insert:o+o,from:we},effects:It.of(we+o.length),range:v.e.cursor(we+o.length)};if(closedBracketAt(i,we)){let _=s&&i.sliceDoc(we,we+3*o.length)==o+o+o?o+o+o:o;return{changes:{from:we,to:we+_.length,insert:_},range:v.e.cursor(we+_.length)}}}else{if(s&&i.sliceDoc(we-2*o.length,we)==o+o&&(pe=canStartStringAt(i,we-2*o.length,$))>-1&&nodeStart(i,pe))return{changes:{insert:o+o+o+o,from:we},effects:It.of(we+o.length),range:v.e.cursor(we+o.length)};if(i.charCategorizer(we)(_e)!=v.d.Word&&canStartStringAt(i,we,$)>-1&&!probablyInString(i,we,o,$))return{changes:{insert:o+o,from:we},effects:It.of(we+o.length),range:v.e.cursor(we+o.length)}}return{range:ae=_}}));return ae?null:i.update(pe,{scrollIntoView:!0,userEvent:"input.type"})}function nodeStart(i,o){let s=Object($.x)(i).resolveInner(o+1);return s.parent&&s.from==o}function probablyInString(i,o,s,v){let _=Object($.x)(i).resolveInner(o,-1),ae=v.reduce(((i,o)=>Math.max(i,o.length)),0);for(let $=0;$<5;$++){let $=i.sliceDoc(_.from,Math.min(_.to,_.from+s.length+ae)),pe=$.indexOf(s);if(!pe||pe>-1&&v.indexOf($.slice(0,pe))>-1){let o=_.firstChild;for(;o&&o.from==_.from&&o.to-o.from>s.length+pe;){if(i.sliceDoc(o.to-s.length,o.to)==s)return!1;o=o.firstChild}return!0}let we=_.to==o&&_.parent;if(!we)break;_=we}return!1}function canStartStringAt(i,o,s){let _=i.charCategorizer(o);if(_(i.sliceDoc(o-1,o))!=v.d.Word)return o;for(let $ of s){let s=o-$.length;if(i.sliceDoc(s,o)==$&&_(i.sliceDoc(s-1,s))!=v.d.Word)return s}return-1}function autocompletion(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[ft,rt.of(i),yt,Vt,vt]}const Qt=[{key:"Ctrl-Space",run:i=>!!i.state.field(ft,!1)&&(i.dispatch({effects:et.of(!0)}),!0)},{key:"Escape",run:i=>{let o=i.state.field(ft,!1);return!(!o||!o.active.some((i=>0!=i.state)))&&(i.dispatch({effects:tt.of(null)}),!0)}},{key:"ArrowDown",run:moveCompletionSelection(!0)},{key:"ArrowUp",run:moveCompletionSelection(!1)},{key:"PageDown",run:moveCompletionSelection(!0,"page")},{key:"PageUp",run:moveCompletionSelection(!1,"page")},{key:"Enter",run:i=>{let o=i.state.field(ft,!1);return!(i.state.readOnly||!o||!o.open||o.open.selected<0||o.open.disabled||Date.now()-o.open.timestampi.facet(rt).defaultKeymap?[Qt]:[])))},,function(i,o,s){"use strict";s.d(o,"a",(function(){return ae})),s.d(o,"b",(function(){return useStyleGuideContext}));var v=s(0),_=s.n(v),$=_.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),ae=$;function useStyleGuideContext(){return _.a.useContext($)}},,function(i,o,s){"use strict";s.d(o,"a",(function(){return mt}));var v=s(0),_=s.n(v),$=_.a.createContext(null);var ae=function defaultNoopBatch(i){i()},pe=function getBatch(){return ae};var we={notify:function notify(){},get:function get(){return[]}};function createSubscription(i,o){var s,v=we;function handleChangeWrapper(){_.onStateChange&&_.onStateChange()}function trySubscribe(){var _,$,ae;s||(s=o?o.addNestedSub(handleChangeWrapper):i.subscribe(handleChangeWrapper),_=pe(),$=null,ae=null,v={clear:function clear(){$=null,ae=null},notify:function notify(){_((function(){for(var i=$;i;)i.callback(),i=i.next}))},get:function get(){for(var i=[],o=$;o;)i.push(o),o=o.next;return i},subscribe:function subscribe(i){var o=!0,s=ae={callback:i,next:null,prev:ae};return s.prev?s.prev.next=s:$=s,function unsubscribe(){o&&null!==$&&(o=!1,s.next?s.next.prev=s.prev:ae=s.prev,s.prev?s.prev.next=s.next:$=s.next)}}})}var _={addNestedSub:function addNestedSub(i){return trySubscribe(),v.subscribe(i)},notifyNestedSubs:function notifyNestedSubs(){v.notify()},handleChangeWrapper:handleChangeWrapper,isSubscribed:function isSubscribed(){return Boolean(s)},trySubscribe:trySubscribe,tryUnsubscribe:function tryUnsubscribe(){s&&(s(),s=void 0,v.clear(),v=we)},getListeners:function getListeners(){return v}};return _}var _e="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v.useLayoutEffect:v.useEffect;var et=s(12),tt=s(29),nt=s(45),rt=s.n(nt),it=s(224),ot=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],st=["reactReduxForwardedRef"],dt=[],ut=[null,null];function storeStateUpdatesReducer(i,o){var s=i[1];return[o.payload,s+1]}function useIsomorphicLayoutEffectWithArgs(i,o,s){_e((function(){return i.apply(void 0,o)}),s)}function captureWrapperProps(i,o,s,v,_,$,ae){i.current=v,o.current=_,s.current=!1,$.current&&($.current=null,ae())}function subscribeUpdates(i,o,s,v,_,$,ae,pe,we,_e){if(i){var et=!1,tt=null,nt=function checkForUpdates(){if(!et){var i,s,nt=o.getState();try{i=v(nt,_.current)}catch(i){s=i,tt=i}s||(tt=null),i===$.current?ae.current||we():($.current=i,pe.current=i,ae.current=!0,_e({type:"STORE_UPDATED",payload:{error:s}}))}};s.onStateChange=nt,s.trySubscribe(),nt();return function unsubscribeWrapper(){if(et=!0,s.tryUnsubscribe(),s.onStateChange=null,tt)throw tt}}}var lt=function initStateUpdates(){return[null,0]};function connectAdvanced(i,o){void 0===o&&(o={});var s=o,ae=s.getDisplayName,pe=void 0===ae?function(i){return"ConnectAdvanced("+i+")"}:ae,we=s.methodName,_e=void 0===we?"connectAdvanced":we,nt=s.renderCountProp,ct=void 0===nt?void 0:nt,ht=s.shouldHandleStateChanges,pt=void 0===ht||ht,ft=s.storeKey,gt=void 0===ft?"store":ft,mt=(s.withRef,s.forwardRef),yt=void 0!==mt&&mt,vt=s.context,Rt=void 0===vt?$:vt,bt=Object(tt.a)(s,ot),Ot=Rt;return function wrapWithConnect(o){var s=o.displayName||o.name||"Component",$=pe(s),ae=Object(et.a)({},bt,{getDisplayName:pe,methodName:_e,renderCountProp:ct,shouldHandleStateChanges:pt,storeKey:gt,displayName:$,wrappedComponentName:s,WrappedComponent:o}),we=bt.pure;function createChildSelector(o){return i(o.dispatch,ae)}var nt=we?v.useMemo:function(i){return i()};function ConnectFunction(i){var s=Object(v.useMemo)((function(){var o=i.reactReduxForwardedRef,s=Object(tt.a)(i,st);return[i.context,o,s]}),[i]),$=s[0],ae=s[1],pe=s[2],we=Object(v.useMemo)((function(){return $&&$.Consumer&&Object(it.isContextConsumer)(_.a.createElement($.Consumer,null))?$:Ot}),[$,Ot]),_e=Object(v.useContext)(we),rt=Boolean(i.store)&&Boolean(i.store.getState)&&Boolean(i.store.dispatch);Boolean(_e)&&Boolean(_e.store);var ot=rt?i.store:_e.store,ct=Object(v.useMemo)((function(){return createChildSelector(ot)}),[ot]),ht=Object(v.useMemo)((function(){if(!pt)return ut;var i=createSubscription(ot,rt?null:_e.subscription),o=i.notifyNestedSubs.bind(i);return[i,o]}),[ot,rt,_e]),ft=ht[0],gt=ht[1],mt=Object(v.useMemo)((function(){return rt?_e:Object(et.a)({},_e,{subscription:ft})}),[rt,_e,ft]),yt=Object(v.useReducer)(storeStateUpdatesReducer,dt,lt),vt=yt[0][0],Rt=yt[1];if(vt&&vt.error)throw vt.error;var bt=Object(v.useRef)(),xt=Object(v.useRef)(pe),wt=Object(v.useRef)(),Ct=Object(v.useRef)(!1),St=nt((function(){return wt.current&&pe===xt.current?wt.current:ct(ot.getState(),pe)}),[ot,vt,pe]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[xt,bt,Ct,pe,St,wt,gt]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[pt,ot,ft,ct,xt,bt,Ct,wt,gt,Rt],[ot,ft,ct]);var _t=Object(v.useMemo)((function(){return _.a.createElement(o,Object(et.a)({},St,{ref:ae}))}),[ae,o,St]);return Object(v.useMemo)((function(){return pt?_.a.createElement(we.Provider,{value:mt},_t):_t}),[we,_t,mt])}var ot=we?_.a.memo(ConnectFunction):ConnectFunction;if(ot.WrappedComponent=o,ot.displayName=ConnectFunction.displayName=$,yt){var ht=_.a.forwardRef((function forwardConnectRef(i,o){return _.a.createElement(ot,Object(et.a)({},i,{reactReduxForwardedRef:o}))}));return ht.displayName=$,ht.WrappedComponent=o,rt()(ht,o)}return rt()(ot,o)}}function is(i,o){return i===o?0!==i||0!==o||1/i==1/o:i!=i&&o!=o}function shallowEqual(i,o){if(is(i,o))return!0;if("object"!=typeof i||null===i||"object"!=typeof o||null===o)return!1;var s=Object.keys(i),v=Object.keys(o);if(s.length!==v.length)return!1;for(var _=0;_=0;v--){var _=o[v](i);if(_)return _}return function(o,v){throw new Error("Invalid value of type "+typeof i+" for "+s+" argument when connecting component "+v.wrappedComponentName+".")}}function strictEqual(i,o){return i===o}function createConnect(i){var o=void 0===i?{}:i,s=o.connectHOC,v=void 0===s?connectAdvanced:s,_=o.mapStateToPropsFactories,$=void 0===_?ht:_,ae=o.mapDispatchToPropsFactories,pe=void 0===ae?ct:ae,we=o.mergePropsFactories,_e=void 0===we?pt:we,nt=o.selectorFactory,rt=void 0===nt?finalPropsSelectorFactory:nt;return function connect(i,o,s,_){void 0===_&&(_={});var ae=_,we=ae.pure,nt=void 0===we||we,it=ae.areStatesEqual,ot=void 0===it?strictEqual:it,st=ae.areOwnPropsEqual,dt=void 0===st?shallowEqual:st,ut=ae.areStatePropsEqual,lt=void 0===ut?shallowEqual:ut,ct=ae.areMergedPropsEqual,ht=void 0===ct?shallowEqual:ct,pt=Object(tt.a)(ae,gt),ft=match(i,$,"mapStateToProps"),mt=match(o,pe,"mapDispatchToProps"),yt=match(s,_e,"mergeProps");return v(rt,Object(et.a)({methodName:"connect",getDisplayName:function getDisplayName(i){return"Connect("+i+")"},shouldHandleStateChanges:Boolean(i),initMapStateToProps:ft,initMapDispatchToProps:mt,initMergeProps:yt,pure:nt,areStatesEqual:ot,areOwnPropsEqual:dt,areStatePropsEqual:lt,areMergedPropsEqual:ht},pt))}}var mt=createConnect();!function setBatch(i){ae=i}(s(28).unstable_batchedUpdates)},,,function(i,o){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch(i){"object"==typeof window&&(s=window)}i.exports=s},,function(i,o,s){var v=s(171),_="object"==typeof self&&self&&self.Object===Object&&self,$=v||_||Function("return this")();i.exports=$},function(i,o,s){"use strict";function requireInRuntime(i,o){if(!(o in i))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+o);return i[o]}s.r(o),s.d(o,"default",(function(){return requireInRuntime}))},function(i,o,s){"use strict";function evalInContext(i,o,s){return new Function("require","state","setState",i+"\n{"+s+"}").bind(null,o)}s.r(o),s.d(o,"default",(function(){return evalInContext}))},function(i,o,s){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(i){console.error(i)}}(),i.exports=s(250)},function(i,o,s){"use strict";function _objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}s.d(o,"a",(function(){return _objectWithoutPropertiesLoose}))},,function(i,o,s){"use strict";function _setPrototypeOf(i,o){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(i,o){return i.__proto__=o,i},_setPrototypeOf(i,o)}function _inheritsLoose(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,_setPrototypeOf(i,o)}s.d(o,"a",(function(){return _inheritsLoose}))},function(i,o){var s=Array.isArray;i.exports=s},function(i,o,s){"use strict";s.d(o,"a",(function(){return et}));var v=s(0),_=s.n(v),$=s(2),ae=s.n($),pe=s(15),we=s(9);function _extends(){return _extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var _e=function TextRenderer(i){var o,s=i.classes,v=i.semantic,$=i.size,ae=i.color,we=i.underlined,_e=i.children,et=_objectWithoutPropertiesLoose(i,["classes","semantic","size","color","underlined","children"]),tt=v||"span",nt=Object(pe.a)(s.text,s[$+"Size"],s[ae+"Color"],((o={})[s[tt]]=!!v,o[s.isUnderlined]=we,o));return _.a.createElement(tt,_extends({},et,{className:nt}),_e)};_e.propTypes={classes:ae.a.objectOf(ae.a.string.isRequired).isRequired,semantic:ae.a.oneOf(["em","strong"]),size:ae.a.oneOf(["inherit","small","base","text"]),color:ae.a.oneOf(["base","light"]),underlined:ae.a.bool,children:ae.a.node.isRequired},_e.defaultProps={size:"inherit",color:"base",underlined:!1};var et=Object(we.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{text:{fontFamily:o.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:s.small},baseSize:{fontSize:s.base},textSize:{fontSize:s.text},baseColor:{color:v.base},lightColor:{color:v.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",v.lightest]]}}}))(_e)},function(i,o,s){(function(o){var check=function(i){return i&&i.Math==Math&&i};i.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof o&&o)||Function("return this")()}).call(this,s(23))},function(i,o){i.exports=function isObject(i){var o=typeof i;return null!=i&&("object"==o||"function"==o)}},function(i,o,s){"use strict";s.d(o,"a",(function(){return ae}));const v="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),_="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class ae{constructor(i,o){this.rules=[];let{finish:s}=o||{};function splitSelector(i){return/^@/.test(i)?[i]:i.split(/,\s*/)}function render(i,o,v,_){let $=[],ae=/^@(\w+)\b/.exec(i[0]),pe=ae&&"keyframes"==ae[1];if(ae&&null==o)return v.push(i[0]+";");for(let s in o){let _=o[s];if(/&/.test(s))render(s.split(/,\s*/).map((o=>i.map((i=>o.replace(/&/,i))))).reduce(((i,o)=>i.concat(o))),_,v);else if(_&&"object"==typeof _){if(!ae)throw new RangeError("The value of a property ("+s+") should be a primitive value.");render(splitSelector(s),_,$,pe)}else null!=_&&$.push(s.replace(/_.*/,"").replace(/[A-Z]/g,(i=>"-"+i.toLowerCase()))+": "+_+";")}($.length||pe)&&v.push((!s||ae||_?i:i.map(s)).join(", ")+" {"+$.join(" ")+"}")}for(let o in i)render(splitSelector(o),i[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let i=$[v]||1;return $[v]=i+1,"ͼ"+i.toString(36)}static mount(i,o,s){let v=i[_],$=s&&s.nonce;v?$&&v.setNonce($):v=new we(i,$),v.mount(Array.isArray(o)?o:[o])}}let pe=new Map;class we{constructor(i,o){let s=i.ownerDocument||i,v=s.defaultView;if(!i.head&&i.adoptedStyleSheets&&v.CSSStyleSheet){let o=pe.get(s);if(o)return i.adoptedStyleSheets=[o.sheet,...i.adoptedStyleSheets],i[_]=o;this.sheet=new v.CSSStyleSheet,i.adoptedStyleSheets=[this.sheet,...i.adoptedStyleSheets],pe.set(s,this)}else{this.styleTag=s.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let v=i.head||i;v.insertBefore(this.styleTag,v.firstChild)}this.modules=[],i[_]=this}mount(i){let o=this.sheet,s=0,v=0;for(let _=0;_-1&&(this.modules.splice(ae,1),v--,ae=-1),-1==ae){if(this.modules.splice(v++,0,$),o)for(let i=0;i<$.rules.length;i++)o.insertRule($.rules[i],s++)}else{for(;v9&&void 0!==arguments[9]?arguments[9]:0,et=arguments.length>10?arguments[10]:void 0;this.p=i,this.stack=o,this.state=s,this.reducePos=v,this.pos=_,this.score=$,this.buffer=ae,this.bufferBase=pe,this.curContext=we,this.lookAhead=_e,this.parent=et}toString(){return"[".concat(this.stack.filter(((i,o)=>o%3==0)).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}static start(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=i.parser.context;return new _(i,[],o,s,s,0,[],0,v?new $(v,v.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(i,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=i}reduce(i){var o;let s=i>>19,v=65535&i,{parser:_}=this.p,$=_.dynamicPrecedence(v);if($&&(this.score+=$),0==s)return this.pushState(_.getGoto(this.state,v,!0),this.reducePos),v<_.minRepeatTerm&&this.storeNode(v,this.reducePos,this.reducePos,4,!0),void this.reduceContext(v,this.reducePos);let ae=this.stack.length-3*(s-1)-(262144&i?6:0),pe=ae?this.stack[ae-2]:this.p.ranges[0].from,we=this.reducePos-pe;we>=2e3&&!(null===(o=this.p.parser.nodeSet.types[v])||void 0===o?void 0:o.isAnonymous)&&(pe==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=we):this.p.lastBigReductionSizeae;)this.stack.pop();this.reduceContext(v,pe)}storeNode(i,o,s){let v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,_=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==i&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==i.buffer[v-4]&&i.buffer[v-1]>-1){if(o==s)return;if(i.buffer[v-2]>=o)return void(i.buffer[v-2]=s)}}if(_&&this.pos!=s){let _=this.buffer.length;if(_>0&&0!=this.buffer[_-4])for(;_>0&&this.buffer[_-2]>s;)this.buffer[_]=this.buffer[_-4],this.buffer[_+1]=this.buffer[_-3],this.buffer[_+2]=this.buffer[_-2],this.buffer[_+3]=this.buffer[_-1],_-=4,v>4&&(v-=4);this.buffer[_]=i,this.buffer[_+1]=o,this.buffer[_+2]=s,this.buffer[_+3]=v}else this.buffer.push(i,o,s,v)}shift(i,o,s,v){if(131072&i)this.pushState(65535&i,this.pos);else if(0==(262144&i)){let _=i,{parser:$}=this.p;(v>this.pos||o<=$.maxNode)&&(this.pos=v,$.stateFlag(_,1)||(this.reducePos=v)),this.pushState(_,s),this.shiftContext(o,s),o<=$.maxNode&&this.buffer.push(o,s,v,4)}else this.pos=v,this.shiftContext(o,s),o<=this.p.parser.maxNode&&this.buffer.push(o,s,v,4)}apply(i,o,s,v){65536&i?this.reduce(i):this.shift(i,o,s,v)}useNode(i,o){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=i)&&(this.p.reused.push(i),s++);let v=this.pos;this.reducePos=this.pos=v+i.length,this.pushState(o,v),this.buffer.push(s,v,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,i,this,this.p.stream.reset(this.pos-i.length)))}split(){let i=this,o=i.buffer.length;for(;o>0&&i.buffer[o-2]>i.reducePos;)o-=4;let s=i.buffer.slice(o),v=i.bufferBase+o;for(;i&&v==i.bufferBase;)i=i.parent;return new _(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,v,this.curContext,this.lookAhead,i)}recoverByDelete(i,o){let s=i<=this.p.parser.maxNode;s&&this.storeNode(i,this.pos,o,4),this.storeNode(0,this.pos,o,s?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(i){for(let o=new ae(this);;){let s=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,i);if(0==s)return!1;if(0==(65536&s))return!0;o.reduce(s)}}recoverByInsert(i){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let s=[];for(let v,_=0;_1&o&&i==v))||s.push(o[i],v)}o=s}let s=[];for(let i=0;i>19,v=65535&o,_=this.stack.length-3*s;if(_<0||i.getGoto(this.stack[_],v,!1)<0){let i=this.findForcedReduction();if(null==i)return!1;o=i}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:i}=this.p,o=[],explore=(s,v)=>{if(!o.includes(s))return o.push(s),i.allActions(s,(o=>{if(393216&o);else if(65536&o){let s=(o>>19)-v;if(s>1){let v=65535&o,_=this.stack.length-3*s;if(_>=0&&i.getGoto(this.stack[_],v,!1)>=0)return s<<19|65536|v}}else{let i=explore(o,v+1);if(null!=i)return i}}))};return explore(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:i}=this.p;return 65535==i.data[i.stateSlot(this.state,1)]&&!i.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(i){if(this.state!=i.state||this.stack.length!=i.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=i)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class ${constructor(i,o){this.tracker=i,this.context=o,this.hash=i.strict?i.hash(o):0}}class ae{constructor(i){this.start=i,this.state=i.state,this.stack=i.stack,this.base=this.stack.length}reduce(i){let o=65535&i,s=i>>19;0==s?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(s-1);let v=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=v}}class pe{constructor(i,o,s){this.stack=i,this.pos=o,this.index=s,this.buffer=i.buffer,0==this.index&&this.maybeNext()}static create(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.bufferBase+i.buffer.length;return new pe(i,o,o-i.bufferBase)}maybeNext(){let i=this.stack.parent;null!=i&&(this.index=this.stack.bufferBase-i.bufferBase,this.stack=i,this.buffer=i.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new pe(this.stack,this.pos,this.index)}}function decodeArray(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof i)return i;let s=null;for(let v=0,_=0;v=92&&o--,o>=34&&o--;let _=o-32;if(_>=46&&(_-=46,s=!0),$+=_,s)break;$*=46}s?s[_++]=$:s=new o($)}return s}class we{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const _e=new we;class et{constructor(i,o){this.input=i,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=_e,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(i,o){let s=this.range,v=this.rangeIndex,_=this.pos+i;for(;_s.to:_>=s.to;){if(v==this.ranges.length-1)return null;let i=this.ranges[++v];_+=i.from-s.to,s=i}return _}clipPos(i){if(i>=this.range.from&&ii)return Math.max(i,o.from);return this.end}peek(i){let o,s,v=this.chunkOff+i;if(v>=0&&v=this.chunk2Pos&&ov.to&&(this.chunk2=this.chunk2.slice(0,v.to-o)),s=this.chunk2.charCodeAt(0)}}return o>=this.token.lookAhead&&(this.token.lookAhead=o+1),s}acceptToken(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=o?this.resolveOffset(o,-1):this.pos;if(null==s||s=this.chunk2Pos&&this.posthis.range.to?i.slice(0,this.range.to-this.pos):i,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=i;this.pos+i>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();i-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=i,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(i,o){if(o?(this.token=o,o.start=i,o.lookAhead=i+1,o.value=o.extended=-1):this.token=_e,this.pos!=i){if(this.pos=i,i==this.end)return this.setDone(),this;for(;i=this.range.to;)this.range=this.ranges[++this.rangeIndex];i>=this.chunkPos&&i=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(i-this.chunkPos,o-this.chunkPos);if(i>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(i-this.chunk2Pos,o-this.chunk2Pos);if(i>=this.range.from&&o<=this.range.to)return this.input.read(i,o);let s="";for(let v of this.ranges){if(v.from>=o)break;v.to>i&&(s+=this.input.read(Math.max(v.from,i),Math.min(v.to,o)))}return s}}class tt{constructor(i,o){this.data=i,this.id=o}token(i,o){let{parser:s}=o.p;readToken(this.data,i,o,this.id,s.data,s.tokenPrecTable)}}tt.prototype.contextual=tt.prototype.fallback=tt.prototype.extend=!1;class nt{constructor(i,o,s){this.precTable=o,this.elseToken=s,this.data="string"==typeof i?decodeArray(i):i}token(i,o){let s=i.pos,v=0;for(;;){let s=i.next<0,_=i.resolveOffset(1,1);if(readToken(this.data,i,o,0,this.data,this.precTable),i.token.value>-1)break;if(null==this.elseToken)return;if(s||v++,null==_)break;i.reset(_,i.token)}v&&(i.reset(s,i.token),i.acceptToken(this.elseToken,v))}}nt.prototype.contextual=tt.prototype.fallback=tt.prototype.extend=!1;class rt{constructor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.token=i,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function readToken(i,o,s,v,_,$){let ae=0,pe=1<0){let s=i[v];if(we.allows(s)&&(-1==o.token.value||o.token.value==s||overrides(s,o.token.value,_,$))){o.acceptToken(s);break}}let v=o.next,_e=0,et=i[ae+2];if(!(o.next<0&&et>_e&&65535==i[s+3*et-3])){for(;_e>1,$=s+_+(_<<1),pe=i[$],we=i[$+1]||65536;if(v=we)){ae=i[$+2],o.advance();continue e}_e=_+1}}break}ae=i[s+3*et-1]}}function findOffset(i,o,s){for(let v,_=o;65535!=(v=i[_]);_++)if(v==s)return _-o;return-1}function overrides(i,o,s,v){let _=findOffset(s,v,o);return _<0||findOffset(s,v,i)<_}const it=void 0!==i&&Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'})&&/\bparse\b/.test(Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).LOG);let ot=null;function cutAt(i,o,s){let _=i.cursor(v.b.IncludeAnonymous);for(_.moveTo(o);;)if(!(s<0?_.childBefore(o):_.childAfter(o)))for(;;){if((s<0?_.too)&&!_.type.isError)return s<0?Math.max(0,Math.min(_.to-1,o-25)):Math.min(i.length,Math.max(_.from+1,o+25));if(s<0?_.prevSibling():_.nextSibling())break;if(!_.parent())return s<0?0:i.length}}class st{constructor(i,o){this.fragments=i,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let i=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(i){for(this.safeFrom=i.openStart?cutAt(i.tree,i.from+i.offset,1)-i.offset:i.from,this.safeTo=i.openEnd?cutAt(i.tree,i.to+i.offset,-1)-i.offset:i.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(i.tree),this.start.push(-i.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(i){if(ii)return this.nextStart=ae,null;if($ instanceof v.h){if(ae==i){if(ae=Math.max(this.safeFrom,i)&&(this.trees.push($),this.start.push(ae),this.index.push(0))}else this.index[o]++,this.nextStart=ae+$.length}}}class dt{constructor(i,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=i.tokenizers.map((i=>new we))}getActions(i){let o=0,s=null,{parser:v}=i.p,{tokenizers:_}=v,$=v.stateSlot(i.state,3),ae=i.curContext?i.curContext.hash:0,pe=0;for(let v=0;v<_.length;v++){if(0==(1<_e.end+25&&(pe=Math.max(_e.lookAhead,pe)),0!=_e.value)){let v=o;if(_e.extended>-1&&(o=this.addActions(i,_e.extended,_e.end,o)),o=this.addActions(i,_e.value,_e.end,o),!we.extend&&(s=_e,o>v))break}}for(;this.actions.length>o;)this.actions.pop();return pe&&i.setLookAhead(pe),s||i.pos!=this.stream.end||(s=new we,s.value=i.p.parser.eofTerm,s.start=s.end=i.pos,o=this.addActions(i,s.value,s.end,o)),this.mainToken=s,this.actions}getMainToken(i){if(this.mainToken)return this.mainToken;let o=new we,{pos:s,p:v}=i;return o.start=s,o.end=Math.min(s+1,v.stream.end),o.value=s==v.stream.end?v.parser.eofTerm:0,o}updateCachedToken(i,o,s){let v=this.stream.clipPos(s.pos);if(o.token(this.stream.reset(v,i),s),i.value>-1){let{parser:o}=s.p;for(let v=0;v=0&&s.p.parser.dialect.allows(_>>1)){0==(1&_)?i.value=_>>1:i.extended=_>>1;break}}}else i.value=0,i.end=this.stream.clipPos(v+1)}putAction(i,o,s,v){for(let o=0;o4*i.bufferLength?new st(s,i.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let i,o,s=this.stacks,v=this.minStackPos,_=this.stacks=[];if(this.bigReductionCount>300&&1==s.length){let[i]=s;for(;i.forceReduce()&&i.stack.length&&i.stack[i.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let $=0;$v)_.push(ae);else{if(this.advanceStack(ae,_,s))continue;{i||(i=[],o=[]),i.push(ae);let s=this.tokens.getMainToken(ae);o.push(s.value,s.end)}}break}}if(!_.length){let o=i&&findFinished(i);if(o)return it&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw it&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+v);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=null!=this.stoppedAt&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,_);if(s)return it&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let i=1==this.recovering?1:3*this.recovering;if(_.length>i)for(_.sort(((i,o)=>o.score-i.score));_.length>i;)_.pop();_.some((i=>i.reducePos>v))&&this.recovering--}else if(_.length>1){e:for(let i=0;i<_.length-1;i++){let o=_[i];for(let s=i+1;s<_.length;s++){let v=_[s];if(o.sameState(v)||o.buffer.length>500&&v.buffer.length>500){if(!((o.score-v.score||o.buffer.length-v.buffer.length)>0)){_.splice(i--,1);continue e}_.splice(s--,1)}}}_.length>12&&_.splice(12,_.length-12)}this.minStackPos=_[0].pos;for(let i=1;i<_.length;i++)_[i].pos ":"";if(null!=this.stoppedAt&&_>this.stoppedAt)return i.forceReduce()?i:null;if(this.fragments){let o=i.curContext&&i.curContext.tracker.strict,s=o?i.curContext.hash:0;for(let pe=this.fragments.nodeAt(_);pe;){let _=this.parser.nodeSet.types[pe.type.id]==pe.type?$.getGoto(i.state,pe.type.id):-1;if(_>-1&&pe.length&&(!o||(pe.prop(v.c.contextHash)||0)==s))return i.useNode(pe,_),it&&console.log(ae+this.stackID(i)+" (via reuse of ".concat($.getName(pe.type.id),")")),!0;if(!(pe instanceof v.h)||0==pe.children.length||pe.positions[0]>0)break;let we=pe.children[0];if(!(we instanceof v.h&&0==pe.positions[0]))break;pe=we}}let pe=$.stateSlot(i.state,4);if(pe>0)return i.reduce(pe),it&&console.log(ae+this.stackID(i)+" (via always-reduce ".concat($.getName(65535&pe),")")),!0;if(i.stack.length>=8400)for(;i.stack.length>6e3&&i.forceReduce(););let we=this.tokens.getActions(i);for(let v=0;v_?o.push(nt):s.push(nt)}return!1}advanceFully(i,o){let s=i.pos;for(;;){if(!this.advanceStack(i,null,null))return!1;if(i.pos>s)return pushStackDedup(i,o),!0}}runRecovery(i,o,s){let v=null,_=!1;for(let $=0;$ ":"";if(ae.deadEnd){if(_)continue;if(_=!0,ae.restart(),it&&console.log(_e+this.stackID(ae)+" (restarted)"),this.advanceFully(ae,s))continue}let et=ae.split(),tt=_e;for(let i=0;et.forceReduce()&&i<10;i++){if(it&&console.log(tt+this.stackID(et)+" (via force-reduce)"),this.advanceFully(et,s))break;it&&(tt=this.stackID(et)+" -> ")}for(let i of ae.recoverByInsert(pe))it&&console.log(_e+this.stackID(i)+" (via recover-insert)"),this.advanceFully(i,s);this.stream.end>ae.pos?(we==ae.pos&&(we++,pe=0),ae.recoverByDelete(pe,we),it&&console.log(_e+this.stackID(ae)+" (via recover-delete ".concat(this.parser.getName(pe),")")),pushStackDedup(ae,s)):(!v||v.scorei;class ct{constructor(i){this.start=i.start,this.shift=i.shift||id,this.reduce=i.reduce||id,this.reuse=i.reuse||id,this.hash=i.hash||(()=>0),this.strict=!1!==i.strict}}class ht extends v.g{constructor(i){if(super(),this.wrappers=[],14!=i.version)throw new RangeError("Parser version (".concat(i.version,") doesn't match runtime version (",14,")"));let o=i.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let s=0;si.topRules[o][1])),_=[];for(let i=0;i=0)setProp(v,i,o[s++]);else{let _=o[s+-v];for(let $=-v;$>0;$--)setProp(o[s++],i,_);s++}}}this.nodeSet=new v.d(o.map(((o,$)=>v.e.define({name:$>=this.minRepeatTerm?void 0:o,id:$,props:_[$],top:s.indexOf($)>-1,error:0==$,skipped:i.skippedNodes&&i.skippedNodes.indexOf($)>-1})))),i.propSources&&(this.nodeSet=this.nodeSet.extend(...i.propSources)),this.strict=!1,this.bufferLength=v.a;let $=decodeArray(i.tokenData);this.context=i.context,this.specializerSpecs=i.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let i=0;i"number"==typeof i?new tt($,i):i)),this.topRules=i.topRules,this.dialects=i.dialects||{},this.dynamicPrecedences=i.dynamicPrecedences||null,this.tokenPrecTable=i.tokenPrec,this.termNames=i.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(i,o,s){let v=new ut(this,i,o,s);for(let _ of this.wrappers)v=_(v,i,o,s);return v}getGoto(i,o){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=this.goto;if(o>=v[0])return-1;for(let _=v[o+1];;){let o=v[_++],$=1&o,ae=v[_++];if($&&s)return ae;for(let s=_+(o>>1);_0}validAction(i,o){return!!this.allActions(i,(i=>i==o||null))}allActions(i,o){let s=this.stateSlot(i,4),v=s?o(s):void 0;for(let s=this.stateSlot(i,1);null==v;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=pair(this.data,s+2)}v=o(pair(this.data,s+1))}return v}nextStates(i){let o=[];for(let s=this.stateSlot(i,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=pair(this.data,s+2)}if(0==(1&this.data[s+2])){let i=this.data[s+1];o.some(((o,s)=>1&s&&o==i))||o.push(this.data[s],i)}}return o}configure(i){let o=Object.assign(Object.create(ht.prototype),this);if(i.props&&(o.nodeSet=this.nodeSet.extend(...i.props)),i.top){let s=this.topRules[i.top];if(!s)throw new RangeError("Invalid top rule name ".concat(i.top));o.top=s}return i.tokenizers&&(o.tokenizers=this.tokenizers.map((o=>{let s=i.tokenizers.find((i=>i.from==o));return s?s.to:o}))),i.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map(((s,v)=>{let _=i.specializers.find((i=>i.from==s.external));if(!_)return s;let $=Object.assign(Object.assign({},s),{external:_.to});return o.specializers[v]=getSpecializer($),$}))),i.contextTracker&&(o.context=i.contextTracker),i.dialect&&(o.dialect=this.parseDialect(i.dialect)),null!=i.strict&&(o.strict=i.strict),i.wrap&&(o.wrappers=o.wrappers.concat(i.wrap)),null!=i.bufferLength&&(o.bufferLength=i.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(i){return this.termNames?this.termNames[i]:String(i<=this.maxNode&&this.nodeSet.types[i].name||i)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(i){let o=this.dynamicPrecedences;return null==o?0:o[i]||0}parseDialect(i){let o=Object.keys(this.dialects),s=o.map((()=>!1));if(i)for(let v of i.split(" ")){let i=o.indexOf(v);i>=0&&(s[i]=!0)}let v=null;for(let i=0;ii)&&s.p.parser.stateFlag(s.state,2)&&(!o||o.scorei.external(s,v)<<1|o}return i.get}}).call(this,s(86))},function(i,o,s){"use strict";var v=s(255),_=s(90),$=s(280),ae=s(169),pe=s(91),we=s(88),_e=s(281),et=s(283),tt=Math.max,nt=Math.min,rt=Math.floor,it=/\$([$&'`]|\d\d?|<[^>]*>)/g,ot=/\$([$&'`]|\d\d?)/g;v("replace",2,(function(i,o,s,v){var st=v.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,dt=v.REPLACE_KEEPS_$0,ut=st?"$":"$0";return[function replace(s,v){var _=we(this),$=null==s?void 0:s[i];return void 0!==$?$.call(s,_,v):o.call(String(_),s,v)},function(i,v){if(!st&&dt||"string"==typeof v&&-1===v.indexOf(ut)){var $=s(o,i,this,v);if($.done)return $.value}var we=_(i),rt=String(this),it="function"==typeof v;it||(v=String(v));var ot=we.global;if(ot){var lt=we.unicode;we.lastIndex=0}for(var ct=[];;){var ht=et(we,rt);if(null===ht)break;if(ct.push(ht),!ot)break;""===String(ht[0])&&(we.lastIndex=_e(rt,ae(we.lastIndex),lt))}for(var pt,ft="",gt=0,mt=0;mt=gt&&(ft+=rt.slice(gt,vt)+wt,gt=vt+yt.length)}return ft+rt.slice(gt)}];function getSubstitution(i,s,v,_,ae,pe){var we=v+i.length,_e=_.length,et=ot;return void 0!==ae&&(ae=$(ae),et=it),o.call(pe,et,(function(o,$){var pe;switch($.charAt(0)){case"$":return"$";case"&":return i;case"`":return s.slice(0,v);case"'":return s.slice(we);case"<":pe=ae[$.slice(1,-1)];break;default:var et=+$;if(0===et)return o;if(et>_e){var tt=rt(et/10);return 0===tt?o:tt<=_e?void 0===_[tt-1]?$.charAt(1):_[tt-1]+$.charAt(1):o}pe=_[et-1]}return void 0===pe?"":pe}))}}))},function(i,o,s){var v=s(121),_=s(124);i.exports=function isArrayLike(i){return null!=i&&_(i.length)&&!v(i)}},function(i,o,s){"use strict";var v=s(839),_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pe={};function getStatics(i){return v.isMemo(i)?ae:pe[i.$$typeof]||_}pe[v.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pe[v.Memo]=ae;var we=Object.defineProperty,_e=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,nt=Object.getPrototypeOf,rt=Object.prototype;i.exports=function hoistNonReactStatics(i,o,s){if("string"!=typeof o){if(rt){var v=nt(o);v&&v!==rt&&hoistNonReactStatics(i,v,s)}var _=_e(o);et&&(_=_.concat(et(o)));for(var ae=getStatics(i),pe=getStatics(o),it=0;it<_.length;++it){var ot=_[it];if(!($[ot]||s&&s[ot]||pe&&pe[ot]||ae&&ae[ot])){var st=tt(o,ot);try{we(i,ot,st)}catch(i){}}}}return i}},function(i,o,s){"use strict";s.d(o,"b",(function(){return createMemoryHistory})),s.d(o,"a",(function(){return createLocation})),s.d(o,"d",(function(){return locationsAreEqual})),s.d(o,"c",(function(){return createPath}));var v=s(12);function isAbsolute(i){return"/"===i.charAt(0)}function spliceOne(i,o){for(var s=o,v=s+1,_=i.length;v<_;s+=1,v+=1)i[s]=i[v];i.pop()}var _=function resolvePathname(i,o){void 0===o&&(o="");var s,v=i&&i.split("/")||[],_=o&&o.split("/")||[],$=i&&isAbsolute(i),ae=o&&isAbsolute(o),pe=$||ae;if(i&&isAbsolute(i)?_=v:v.length&&(_.pop(),_=_.concat(v)),!_.length)return"/";if(_.length){var we=_[_.length-1];s="."===we||".."===we||""===we}else s=!1;for(var _e=0,et=_.length;et>=0;et--){var tt=_[et];"."===tt?spliceOne(_,et):".."===tt?(spliceOne(_,et),_e++):_e&&(spliceOne(_,et),_e--)}if(!pe)for(;_e--;_e)_.unshift("..");!pe||""===_[0]||_[0]&&isAbsolute(_[0])||_.unshift("");var nt=_.join("/");return s&&"/"!==nt.substr(-1)&&(nt+="/"),nt};function value_equal_valueOf(i){return i.valueOf?i.valueOf():Object.prototype.valueOf.call(i)}var $=function valueEqual(i,o){if(i===o)return!0;if(null==i||null==o)return!1;if(Array.isArray(i))return Array.isArray(o)&&i.length===o.length&&i.every((function(i,s){return valueEqual(i,o[s])}));if("object"==typeof i||"object"==typeof o){var s=value_equal_valueOf(i),v=value_equal_valueOf(o);return s!==i||v!==o?valueEqual(s,v):Object.keys(Object.assign({},i,o)).every((function(s){return valueEqual(i[s],o[s])}))}return!1};s(38);function parsePath(i){var o=i||"/",s="",v="",_=o.indexOf("#");-1!==_&&(v=o.substr(_),o=o.substr(0,_));var $=o.indexOf("?");return-1!==$&&(s=o.substr($),o=o.substr(0,$)),{pathname:o,search:"?"===s?"":s,hash:"#"===v?"":v}}function createPath(i){var o=i.pathname,s=i.search,v=i.hash,_=o||"/";return s&&"?"!==s&&(_+="?"===s.charAt(0)?s:"?"+s),v&&"#"!==v&&(_+="#"===v.charAt(0)?v:"#"+v),_}function createLocation(i,o,s,$){var ae;"string"==typeof i?(ae=parsePath(i)).state=o:(void 0===(ae=Object(v.a)({},i)).pathname&&(ae.pathname=""),ae.search?"?"!==ae.search.charAt(0)&&(ae.search="?"+ae.search):ae.search="",ae.hash?"#"!==ae.hash.charAt(0)&&(ae.hash="#"+ae.hash):ae.hash="",void 0!==o&&void 0===ae.state&&(ae.state=o));try{ae.pathname=decodeURI(ae.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+ae.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return s&&(ae.key=s),$?ae.pathname?"/"!==ae.pathname.charAt(0)&&(ae.pathname=_(ae.pathname,$.pathname)):ae.pathname=$.pathname:ae.pathname||(ae.pathname="/"),ae}function locationsAreEqual(i,o){return i.pathname===o.pathname&&i.search===o.search&&i.hash===o.hash&&i.key===o.key&&$(i.state,o.state)}function createTransitionManager(){var i=null;var o=[];return{setPrompt:function setPrompt(o){return i=o,function(){i===o&&(i=null)}},confirmTransitionTo:function confirmTransitionTo(o,s,v,_){if(null!=i){var $="function"==typeof i?i(o,s):i;"string"==typeof $?"function"==typeof v?v($,_):_(!0):_(!1!==$)}else _(!0)},appendListener:function appendListener(i){var s=!0;function listener(){s&&i.apply(void 0,arguments)}return o.push(listener),function(){s=!1,o=o.filter((function(i){return i!==listener}))}},notifyListeners:function notifyListeners(){for(var i=arguments.length,s=new Array(i),v=0;vo?s.splice(o,s.length-o,_):s.push(_),setState({action:v,location:_,index:o,entries:s})}}))},replace:function replace(i,o){var v="REPLACE",_=createLocation(i,o,createKey(),it.location);et.confirmTransitionTo(_,v,s,(function(i){i&&(it.entries[it.index]=_,setState({action:v,location:_}))}))},go:go,goBack:function goBack(){go(-1)},goForward:function goForward(){go(1)},canGo:function canGo(i){var o=it.index+i;return o>=0&&o=(null!=v?v:o.logLevel)&&i({level:_[s].toLowerCase(),message:pe,args:$,type:o.name})}},s=0,v=$;s8640000000000001?NaN:ToInteger(i):NaN}function ToObject(i){if(null==i)throw new TypeError("undefined/null cannot be converted to object");return Object(i)}function SameValue(i,o){return Object.is?Object.is(i,o):i===o?0!==i||1/i==1/o:i!=i&&o!=o}function ArrayCreate(i){return new Array(i)}function HasOwnProperty(i,o){return Object.prototype.hasOwnProperty.call(i,o)}function Type(i){return null===i?"Null":void 0===i?"Undefined":"function"==typeof i||"object"==typeof i?"Object":"number"==typeof i?"Number":"boolean"==typeof i?"Boolean":"string"==typeof i?"String":"symbol"==typeof i?"Symbol":"bigint"==typeof i?"BigInt":void 0}s.r(o),s.d(o,"CanonicalizeLocaleList",(function(){return CanonicalizeLocaleList})),s.d(o,"CanonicalizeTimeZoneName",(function(){return CanonicalizeTimeZoneName})),s.d(o,"CoerceOptionsToObject",(function(){return CoerceOptionsToObject})),s.d(o,"GetNumberOption",(function(){return GetNumberOption})),s.d(o,"GetOption",(function(){return GetOption})),s.d(o,"GetOptionsObject",(function(){return GetOptionsObject})),s.d(o,"SANCTIONED_UNITS",(function(){return et})),s.d(o,"removeUnitNamespace",(function(){return removeUnitNamespace})),s.d(o,"SIMPLE_UNITS",(function(){return tt})),s.d(o,"IsSanctionedSimpleUnitIdentifier",(function(){return IsSanctionedSimpleUnitIdentifier})),s.d(o,"IsValidTimeZoneName",(function(){return IsValidTimeZoneName})),s.d(o,"IsWellFormedCurrencyCode",(function(){return IsWellFormedCurrencyCode})),s.d(o,"IsWellFormedUnitIdentifier",(function(){return IsWellFormedUnitIdentifier})),s.d(o,"ComputeExponent",(function(){return ComputeExponent})),s.d(o,"ComputeExponentForMagnitude",(function(){return ComputeExponentForMagnitude})),s.d(o,"CurrencyDigits",(function(){return CurrencyDigits})),s.d(o,"FormatNumericToParts",(function(){return FormatNumericToParts})),s.d(o,"FormatNumericToString",(function(){return FormatNumericToString})),s.d(o,"InitializeNumberFormat",(function(){return InitializeNumberFormat})),s.d(o,"PartitionNumberPattern",(function(){return PartitionNumberPattern})),s.d(o,"SetNumberFormatDigitOptions",(function(){return SetNumberFormatDigitOptions})),s.d(o,"SetNumberFormatUnitOptions",(function(){return SetNumberFormatUnitOptions})),s.d(o,"ToRawFixed",(function(){return ToRawFixed})),s.d(o,"ToRawPrecision",(function(){return ToRawPrecision})),s.d(o,"_formatToParts",(function(){return formatToParts})),s.d(o,"PartitionPattern",(function(){return PartitionPattern})),s.d(o,"SupportedLocales",(function(){return SupportedLocales})),s.d(o,"getInternalSlot",(function(){return getInternalSlot})),s.d(o,"getMultiInternalSlots",(function(){return getMultiInternalSlots})),s.d(o,"isLiteralPart",(function(){return isLiteralPart})),s.d(o,"setInternalSlot",(function(){return setInternalSlot})),s.d(o,"setMultiInternalSlots",(function(){return setMultiInternalSlots})),s.d(o,"getMagnitude",(function(){return getMagnitude})),s.d(o,"defineProperty",(function(){return defineProperty})),s.d(o,"isMissingLocaleDataError",(function(){return isMissingLocaleDataError})),s.d(o,"RangePatternType",(function(){return lt})),s.d(o,"invariant",(function(){return invariant})),s.d(o,"ToString",(function(){return ToString})),s.d(o,"ToNumber",(function(){return ToNumber})),s.d(o,"TimeClip",(function(){return TimeClip})),s.d(o,"ToObject",(function(){return ToObject})),s.d(o,"SameValue",(function(){return SameValue})),s.d(o,"ArrayCreate",(function(){return ArrayCreate})),s.d(o,"HasOwnProperty",(function(){return HasOwnProperty})),s.d(o,"Type",(function(){return Type})),s.d(o,"Day",(function(){return Day})),s.d(o,"WeekDay",(function(){return WeekDay})),s.d(o,"DayFromYear",(function(){return DayFromYear})),s.d(o,"TimeFromYear",(function(){return TimeFromYear})),s.d(o,"YearFromTime",(function(){return YearFromTime})),s.d(o,"DaysInYear",(function(){return DaysInYear})),s.d(o,"DayWithinYear",(function(){return DayWithinYear})),s.d(o,"InLeapYear",(function(){return InLeapYear})),s.d(o,"MonthFromTime",(function(){return MonthFromTime})),s.d(o,"DateFromTime",(function(){return DateFromTime})),s.d(o,"HourFromTime",(function(){return HourFromTime})),s.d(o,"MinFromTime",(function(){return MinFromTime})),s.d(o,"SecFromTime",(function(){return SecFromTime})),s.d(o,"OrdinaryHasInstance",(function(){return OrdinaryHasInstance})),s.d(o,"msFromTime",(function(){return msFromTime}));var v=864e5;function mod(i,o){return i-Math.floor(i/o)*o}function Day(i){return Math.floor(i/v)}function WeekDay(i){return mod(Day(i)+4,7)}function DayFromYear(i){return Date.UTC(i,0)/v}function TimeFromYear(i){return Date.UTC(i,0)}function YearFromTime(i){return new Date(i).getUTCFullYear()}function DaysInYear(i){return i%4!=0?365:i%100!=0?366:i%400!=0?365:366}function DayWithinYear(i){return Day(i)-DayFromYear(YearFromTime(i))}function InLeapYear(i){return 365===DaysInYear(YearFromTime(i))?0:1}function MonthFromTime(i){var o=DayWithinYear(i),s=InLeapYear(i);if(o>=0&&o<31)return 0;if(o<59+s)return 1;if(o<90+s)return 2;if(o<120+s)return 3;if(o<151+s)return 4;if(o<181+s)return 5;if(o<212+s)return 6;if(o<243+s)return 7;if(o<273+s)return 8;if(o<304+s)return 9;if(o<334+s)return 10;if(o<365+s)return 11;throw new Error("Invalid time")}function DateFromTime(i){var o=DayWithinYear(i),s=MonthFromTime(i),v=InLeapYear(i);if(0===s)return o+1;if(1===s)return o-30;if(2===s)return o-58-v;if(3===s)return o-89-v;if(4===s)return o-119-v;if(5===s)return o-150-v;if(6===s)return o-180-v;if(7===s)return o-211-v;if(8===s)return o-242-v;if(9===s)return o-272-v;if(10===s)return o-303-v;if(11===s)return o-333-v;throw new Error("Invalid time")}var _=24,$=60,ae=60,pe=1e3,we=pe*ae,_e=we*$;function HourFromTime(i){return mod(Math.floor(i/_e),_)}function MinFromTime(i){return mod(Math.floor(i/we),$)}function SecFromTime(i){return mod(Math.floor(i/pe),ae)}function OrdinaryHasInstance(i,o,s){if("function"!=typeof i)return!1;if(null==s?void 0:s.boundTargetFunction)return o instanceof(null==s?void 0:s.boundTargetFunction);if("object"!=typeof o)return!1;var v=i.prototype;if("object"!=typeof v)throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(v,o)}function msFromTime(i){return mod(i,pe)}function CoerceOptionsToObject(i){return void 0===i?Object.create(null):ToObject(i)}function DefaultNumberOption(i,o,s,v){if(void 0!==i){if(i=Number(i),isNaN(i)||is)throw new RangeError("".concat(i," is outside of range [").concat(o,", ").concat(s,"]"));return Math.floor(i)}return v}function GetNumberOption(i,o,s,v,_){return DefaultNumberOption(i[o],s,v,_)}function GetOption(i,o,s,v,_){if("object"!=typeof i)throw new TypeError("Options must be an object");var $=i[o];if(void 0!==$){if("boolean"!==s&&"string"!==s)throw new TypeError("invalid type");if("boolean"===s&&($=Boolean($)),"string"===s&&($=ToString($)),void 0!==v&&!v.filter((function(i){return i==$})).length)throw new RangeError("".concat($," is not within ").concat(v.join(", ")));return $}return _}function GetOptionsObject(i){if(void 0===i)return Object.create(null);if("object"==typeof i)return i;throw new TypeError("Options must be an object")}var et=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function removeUnitNamespace(i){return i.slice(i.indexOf("-")+1)}var tt=et.map(removeUnitNamespace);function IsSanctionedSimpleUnitIdentifier(i){return tt.indexOf(i)>-1}function IsValidTimeZoneName(i,o){var s=o.tzData,v=o.uppercaseLinks,_=i.toUpperCase(),$=new Set,ae=new Set;return Object.keys(s).map((function(i){return i.toUpperCase()})).forEach((function(i){return $.add(i)})),Object.keys(v).forEach((function(i){ae.add(i.toUpperCase()),$.add(v[i].toUpperCase())})),$.has(_)||ae.has(_)}var nt=/[^A-Z]/;function IsWellFormedCurrencyCode(i){return 3===(i=i.replace(/([a-z])/g,(function(i,o){return o.toUpperCase()}))).length&&!nt.test(i)}function IsWellFormedUnitIdentifier(i){if(IsSanctionedSimpleUnitIdentifier(i=i.replace(/([A-Z])/g,(function(i,o){return o.toLowerCase()}))))return!0;var o=i.split("-per-");if(2!==o.length)return!1;var s=o[0],v=o[1];return!(!IsSanctionedSimpleUnitIdentifier(s)||!IsSanctionedSimpleUnitIdentifier(v))}function getMagnitude(i){return Math.floor(Math.log(i)*Math.LOG10E)}function repeat(i,o){if("function"==typeof i.repeat)return i.repeat(o);for(var s=new Array(o),v=0;vrt[rt.length-1])return rt[rt.length-1].length-1;var it=rt.indexOf(nt);if(-1===it)return 0;var ot=rt[it];return"0"===et[ot].other?0:ot.length-et[ot].other.match(/0+/)[0].length}}function ToRawPrecision(i,o,s){var v,_,$,ae,pe=s;if(0===i)v=repeat("0",pe),_=0,$=0;else{var we=i.toString(),_e=we.indexOf("e"),et=we.split("e"),tt=et[0],nt=et[1],rt=tt.replace(".","");if(_e>=0&&rt.length<=pe)_=+nt,v=rt+repeat("0",pe-rt.length),$=i;else{var it=(_=getMagnitude(i))-pe+1,ot=Math.round(adjustDecimalPlace(i,it));adjustDecimalPlace(ot,pe-1)>=10&&(_+=1,ot=Math.floor(ot/10)),v=ot.toString(),$=adjustDecimalPlace(ot,pe-1-_)}}if(_>=pe-1?(v+=repeat("0",_-pe+1),ae=_+1):_>=0?(v="".concat(v.slice(0,_+1),".").concat(v.slice(_+1)),ae=_+1):(v="0.".concat(repeat("0",-_-1)).concat(v),ae=1),v.indexOf(".")>=0&&s>o){for(var st=s-o;st>0&&"0"===v[v.length-1];)v=v.slice(0,-1),st--;"."===v[v.length-1]&&(v=v.slice(0,-1))}return{formattedString:v,roundedNumber:$,integerDigitsCount:ae};function adjustDecimalPlace(i,o){return o<0?i*Math.pow(10,-o):i/Math.pow(10,o)}}function ToRawFixed(i,o,s){var v,_,$=s,ae=Math.round(i*Math.pow(10,$)),pe=ae/Math.pow(10,$);if(ae<1e21)v=ae.toString();else{var we=(v=ae.toString()).split("e"),_e=we[0],et=we[1];v=_e.replace(".",""),v+=repeat("0",Math.max(+et-v.length+1,0))}if(0!==$){var tt=v.length;if(tt<=$)v=repeat("0",$+1-tt)+v,tt=$+1;var nt=v.slice(0,tt-$),rt=v.slice(tt-$);v="".concat(nt,".").concat(rt),_=nt.length}else _=v.length;for(var it=s-o;it>0&&"0"===v[v.length-1];)v=v.slice(0,-1),it--;return"."===v[v.length-1]&&(v=v.slice(0,-1)),{formattedString:v,roundedNumber:pe,integerDigitsCount:_}}function FormatNumericToString(i,o){var s,v=o<0||SameValue(o,-0);switch(v&&(o=-o),i.roundingType){case"significantDigits":s=ToRawPrecision(o,i.minimumSignificantDigits,i.maximumSignificantDigits);break;case"fractionDigits":s=ToRawFixed(o,i.minimumFractionDigits,i.maximumFractionDigits);break;default:(s=ToRawPrecision(o,1,2)).integerDigitsCount>1&&(s=ToRawFixed(o,0,0))}o=s.roundedNumber;var _=s.formattedString,$=s.integerDigitsCount,ae=i.minimumIntegerDigits;$\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,ot=new RegExp("^".concat(it.source)),st=new RegExp("".concat(it.source,"$")),dt=/[#0](?:[\.,][#0]+)*/g;function formatToParts(i,o,s,v){var _,$,ae=i.sign,pe=i.exponent,we=i.magnitude,_e=v.notation,et=v.style,tt=v.numberingSystem,nt=o.numbers.nu[0],rt=null;if("compact"===_e&&we&&(rt=getCompactDisplayPattern(i,s,o,et,v.compactDisplay,v.currencyDisplay,tt)),"currency"===et&&"name"!==v.currencyDisplay){var it=o.currencies[v.currency];if(it)switch(v.currencyDisplay){case"code":_=v.currency;break;case"symbol":_=it.symbol;break;default:_=it.narrow}else _=v.currency}if(rt)$=rt;else if("decimal"===et||"unit"===et||"currency"===et&&"name"===v.currencyDisplay)$=getPatternForSign((o.numbers.decimal[tt]||o.numbers.decimal[nt]).standard,ae);else if("currency"===et){$=getPatternForSign((lt=o.numbers.currency[tt]||o.numbers.currency[nt])[v.currencySign],ae)}else{$=getPatternForSign(o.numbers.percent[tt]||o.numbers.percent[nt],ae)}var ut=dt.exec($)[0];if($=$.replace(dt,"{0}").replace(/'(.)'/g,"$1"),"currency"===et&&"name"!==v.currencyDisplay){var lt,ct=(lt=o.numbers.currency[tt]||o.numbers.currency[nt]).currencySpacing.afterInsertBetween;ct&&!st.test(_)&&($=$.replace("¤{0}","¤".concat(ct,"{0}")));var ht=lt.currencySpacing.beforeInsertBetween;ht&&!ot.test(_)&&($=$.replace("{0}¤","{0}".concat(ht,"¤")))}for(var pt=$.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),ft=[],gt=o.numbers.symbols[tt]||o.numbers.symbols[nt],mt=0,yt=pt;mt0?(tt=we.slice(0,it),nt=we.slice(it+1)):tt=we,$&&("compact"!==s||_e>=1e4)){var ot=i.group,st=[],dt=ae.split(".")[0].split(","),ut=3,lt=3;dt.length>1&&(ut=dt[dt.length-1].length),dt.length>2&&(lt=dt[dt.length-2].length);var ct=tt.length-ut;if(ct>0){for(st.push(tt.slice(ct,ct+ut)),ct-=lt;ct>0;ct-=lt)st.push(tt.slice(ct,ct+lt));st.push(tt.slice(0,ct+lt))}else st.push(tt);for(;st.length>0;){var ht=st.pop();pe.push({type:"integer",value:ht}),st.length>0&&pe.push({type:"group",value:ot})}}else pe.push({type:"integer",value:tt});if(void 0!==nt&&pe.push({type:"decimal",value:i.decimal},{type:"fraction",value:nt}),("scientific"===s||"engineering"===s)&&isFinite(_e)){pe.push({type:"exponentSeparator",value:i.exponential}),v<0&&(pe.push({type:"exponentMinusSign",value:i.minusSign}),v=-v);var pt=ToRawFixed(v,0,0);pe.push({type:"exponentInteger",value:pt.formattedString})}return pe}function getPatternForSign(i,o){i.indexOf(";")<0&&(i="".concat(i,";-").concat(i));var s=i.split(";"),v=s[0],_=s[1];switch(o){case 0:return v;case-1:return _;default:return _.indexOf("-")>=0?_.replace(/-/g,"+"):"+".concat(v)}}function getCompactDisplayPattern(i,o,s,v,_,$,ae){var pe,we,_e=i.roundedNumber,et=i.sign,tt=i.magnitude,nt=String(Math.pow(10,tt)),rt=s.numbers.nu[0];if("currency"===v&&"name"!==$){var it=null===(pe=((ot=s.numbers.currency)[ae]||ot[rt]).short)||void 0===pe?void 0:pe[nt];if(!it)return null;we=selectPlural(o,_e,it)}else{var ot,st=((ot=s.numbers.decimal)[ae]||ot[rt])[_][nt];if(!st)return null;we=selectPlural(o,_e,st)}return"0"===we?null:we=getPatternForSign(we,et).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}function selectPlural(i,o,s){return s[i.select(o)]||s.other}function PartitionNumberPattern(i,o,s){var v,_,$,ae=s.getInternalSlots,pe=ae(i),we=pe.pl,_e=pe.dataLocaleData,et=pe.numberingSystem,tt=_e.numbers.symbols[et]||_e.numbers.symbols[_e.numbers.nu[0]],nt=0,rt=0;if(isNaN(o))_=tt.nan;else if(isFinite(o)){"percent"===pe.style&&(o*=100),rt=(v=ComputeExponent(i,o,{getInternalSlots:ae}))[0],nt=v[1];var it=FormatNumericToString(pe,o=rt<0?o*Math.pow(10,-rt):o/Math.pow(10,rt));_=it.formattedString,o=it.roundedNumber}else _=tt.infinity;switch(pe.signDisplay){case"never":$=0;break;case"auto":$=SameValue(o,0)||o>0||isNaN(o)?0:-1;break;case"always":$=SameValue(o,0)||o>0||isNaN(o)?1:-1;break;default:$=0===o||isNaN(o)?0:o>0?1:-1}return formatToParts({roundedNumber:o,formattedString:_,exponent:rt,magnitude:nt,sign:$},pe.dataLocaleData,we,pe)}function FormatNumericToParts(i,o,s){for(var v=PartitionNumberPattern(i,o,s),_=ArrayCreate(0),$=0,ae=v;$-1;)invariant((v=i.indexOf("}",s))>s,"Invalid pattern ".concat(i)),s>_&&o.push({type:"literal",value:i.substring(_,s)}),o.push({type:i.substring(s+1,v),value:void 0}),_=v+1,s=i.indexOf("{",_);return _<$&&o.push({type:"literal",value:i.substring(_,$)}),o}function SupportedLocales(i,o,s){return void 0!==s&&GetOption(s=ToObject(s),"localeMatcher","string",["lookup","best fit"],"best fit"),Object(ut.LookupSupportedLocales)(i,o)}var lt,ct=s(8);!function(i){function MissingLocaleDataError(){var o=null!==i&&i.apply(this,arguments)||this;return o.type="MISSING_LOCALE_DATA",o}Object(ct.__extends)(MissingLocaleDataError,i)}(Error);function isMissingLocaleDataError(i){return"MISSING_LOCALE_DATA"===i.type}!function(i){i.startRange="startRange",i.shared="shared",i.endRange="endRange"}(lt||(lt={}))},,,,,,,,,,,function(i,o,s){(function(i,v){var _;(function(){var $,ae="Expected a function",pe="__lodash_hash_undefined__",we="__lodash_placeholder__",_e=16,et=32,tt=64,nt=128,rt=256,it=1/0,ot=9007199254740991,st=NaN,dt=4294967295,ut=[["ary",nt],["bind",1],["bindKey",2],["curry",8],["curryRight",_e],["flip",512],["partial",et],["partialRight",tt],["rearg",rt]],lt="[object Arguments]",ct="[object Array]",ht="[object Boolean]",pt="[object Date]",ft="[object Error]",gt="[object Function]",mt="[object GeneratorFunction]",yt="[object Map]",vt="[object Number]",Rt="[object Object]",bt="[object Promise]",Ot="[object RegExp]",xt="[object Set]",wt="[object String]",Ct="[object Symbol]",St="[object WeakMap]",_t="[object ArrayBuffer]",Et="[object DataView]",kt="[object Float32Array]",At="[object Float64Array]",Dt="[object Int8Array]",Pt="[object Int16Array]",Tt="[object Int32Array]",It="[object Uint8Array]",Ft="[object Uint8ClampedArray]",Nt="[object Uint16Array]",Bt="[object Uint32Array]",Lt=/\b__p \+= '';/g,jt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Vt=/[&<>"']/g,Ut=RegExp(Qt.source),Wt=RegExp(Vt.source),$t=/<%-([\s\S]+?)%>/g,qt=/<%([\s\S]+?)%>/g,zt=/<%=([\s\S]+?)%>/g,Zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ht=/^\w*$/,Gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xt=/[\\^$.*+?()[\]{}|]/g,Yt=RegExp(Xt.source),Kt=/^\s+/,Jt=/\s/,nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_n=/\{\n\/\* \[wrapped with (.+)\] \*/,An=/,? & /,Zn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,aa=/[()=,{}\[\]\/\s]/,ra=/\\(\\)?/g,ia=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ca=/\w*$/,ha=/^[-+]0x[0-9a-f]+$/i,ga=/^0b[01]+$/i,va=/^\[object .+?Constructor\]$/,Oa=/^0o[0-7]+$/i,xa=/^(?:0|[1-9]\d*)$/,_a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ja=/($^)/,er=/['\n\r\u2028\u2029\\]/g,tr="\\ud800-\\udfff",nr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ar="\\u2700-\\u27bf",rr="a-z\\xdf-\\xf6\\xf8-\\xff",ir="A-Z\\xc0-\\xd6\\xd8-\\xde",or="\\ufe0e\\ufe0f",sr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dr="['’]",ur="["+tr+"]",lr="["+sr+"]",cr="["+nr+"]",hr="\\d+",pr="["+ar+"]",fr="["+rr+"]",gr="[^"+tr+sr+hr+ar+rr+ir+"]",mr="\\ud83c[\\udffb-\\udfff]",yr="[^"+tr+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",Rr="[\\ud800-\\udbff][\\udc00-\\udfff]",br="["+ir+"]",Or="\\u200d",xr="(?:"+fr+"|"+gr+")",wr="(?:"+br+"|"+gr+")",Cr="(?:['’](?:d|ll|m|re|s|t|ve))?",Sr="(?:['’](?:D|LL|M|RE|S|T|VE))?",_r="(?:"+cr+"|"+mr+")"+"?",Er="["+or+"]?",kr=Er+_r+("(?:"+Or+"(?:"+[yr,vr,Rr].join("|")+")"+Er+_r+")*"),Ar="(?:"+[pr,vr,Rr].join("|")+")"+kr,Dr="(?:"+[yr+cr+"?",cr,vr,Rr,ur].join("|")+")",Pr=RegExp(dr,"g"),Tr=RegExp(cr,"g"),Ir=RegExp(mr+"(?="+mr+")|"+Dr+kr,"g"),Fr=RegExp([br+"?"+fr+"+"+Cr+"(?="+[lr,br,"$"].join("|")+")",wr+"+"+Sr+"(?="+[lr,br+xr,"$"].join("|")+")",br+"?"+xr+"+"+Cr,br+"+"+Sr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hr,Ar].join("|"),"g"),Nr=RegExp("["+Or+tr+nr+or+"]"),Br=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jr=-1,Mr={};Mr[kt]=Mr[At]=Mr[Dt]=Mr[Pt]=Mr[Tt]=Mr[It]=Mr[Ft]=Mr[Nt]=Mr[Bt]=!0,Mr[lt]=Mr[ct]=Mr[_t]=Mr[ht]=Mr[Et]=Mr[pt]=Mr[ft]=Mr[gt]=Mr[yt]=Mr[vt]=Mr[Rt]=Mr[Ot]=Mr[xt]=Mr[wt]=Mr[St]=!1;var Qr={};Qr[lt]=Qr[ct]=Qr[_t]=Qr[Et]=Qr[ht]=Qr[pt]=Qr[kt]=Qr[At]=Qr[Dt]=Qr[Pt]=Qr[Tt]=Qr[yt]=Qr[vt]=Qr[Rt]=Qr[Ot]=Qr[xt]=Qr[wt]=Qr[Ct]=Qr[It]=Qr[Ft]=Qr[Nt]=Qr[Bt]=!0,Qr[ft]=Qr[gt]=Qr[St]=!1;var Vr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ur=parseFloat,Wr=parseInt,$r="object"==typeof i&&i&&i.Object===Object&&i,qr="object"==typeof self&&self&&self.Object===Object&&self,zr=$r||qr||Function("return this")(),Zr=o&&!o.nodeType&&o,Hr=Zr&&"object"==typeof v&&v&&!v.nodeType&&v,Gr=Hr&&Hr.exports===Zr,Xr=Gr&&$r.process,Yr=function(){try{var i=Hr&&Hr.require&&Hr.require("util").types;return i||Xr&&Xr.binding&&Xr.binding("util")}catch(i){}}(),Kr=Yr&&Yr.isArrayBuffer,Jr=Yr&&Yr.isDate,_i=Yr&&Yr.isMap,Ei=Yr&&Yr.isRegExp,Ui=Yr&&Yr.isSet,Ji=Yr&&Yr.isTypedArray;function apply(i,o,s){switch(s.length){case 0:return i.call(o);case 1:return i.call(o,s[0]);case 2:return i.call(o,s[0],s[1]);case 3:return i.call(o,s[0],s[1],s[2])}return i.apply(o,s)}function arrayAggregator(i,o,s,v){for(var _=-1,$=null==i?0:i.length;++_<$;){var ae=i[_];o(v,ae,s(ae),i)}return v}function arrayEach(i,o){for(var s=-1,v=null==i?0:i.length;++s-1}function arrayIncludesWith(i,o,s){for(var v=-1,_=null==i?0:i.length;++v<_;)if(s(o,i[v]))return!0;return!1}function arrayMap(i,o){for(var s=-1,v=null==i?0:i.length,_=Array(v);++s-1;);return s}function charsEndIndex(i,o){for(var s=i.length;s--&&baseIndexOf(o,i[s],0)>-1;);return s}function countHolders(i,o){for(var s=i.length,v=0;s--;)i[s]===o&&++v;return v}var io=basePropertyOf({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),oo=basePropertyOf({"&":"&","<":"<",">":">",'"':""","'":"'"});function escapeStringChar(i){return"\\"+Vr[i]}function getValue(i,o){return null==i?$:i[o]}function hasUnicode(i){return Nr.test(i)}function hasUnicodeWord(i){return Br.test(i)}function iteratorToArray(i){for(var o,s=[];!(o=i.next()).done;)s.push(o.value);return s}function mapToArray(i){var o=-1,s=Array(i.size);return i.forEach((function(i,v){s[++o]=[v,i]})),s}function overArg(i,o){return function(s){return i(o(s))}}function replaceHolders(i,o){for(var s=-1,v=i.length,_=0,$=[];++s",""":'"',"'":"'"});function unicodeSize(i){for(var o=Ir.lastIndex=0;Ir.test(i);)++o;return o}function unicodeToArray(i){return i.match(Ir)||[]}function unicodeWords(i){return i.match(Fr)||[]}var Ro=function runInContext(i){var o,s=(i=null==i?zr:Ro.defaults(zr.Object(),i,Ro.pick(zr,Lr))).Array,v=i.Date,_=i.Error,Jt=i.Function,Zn=i.Math,tr=i.Object,nr=i.RegExp,ar=i.String,rr=i.TypeError,ir=s.prototype,or=Jt.prototype,sr=tr.prototype,dr=i["__core-js_shared__"],ur=or.toString,lr=sr.hasOwnProperty,cr=0,hr=(o=/[^.]+$/.exec(dr&&dr.keys&&dr.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",pr=sr.toString,fr=ur.call(tr),gr=zr._,mr=nr("^"+ur.call(lr).replace(Xt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yr=Gr?i.Buffer:$,vr=i.Symbol,Rr=i.Uint8Array,br=yr?yr.allocUnsafe:$,Or=overArg(tr.getPrototypeOf,tr),xr=tr.create,wr=sr.propertyIsEnumerable,Cr=ir.splice,Sr=vr?vr.isConcatSpreadable:$,_r=vr?vr.iterator:$,Er=vr?vr.toStringTag:$,kr=function(){try{var i=getNative(tr,"defineProperty");return i({},"",{}),i}catch(i){}}(),Ar=i.clearTimeout!==zr.clearTimeout&&i.clearTimeout,Dr=v&&v.now!==zr.Date.now&&v.now,Ir=i.setTimeout!==zr.setTimeout&&i.setTimeout,Fr=Zn.ceil,Nr=Zn.floor,Br=tr.getOwnPropertySymbols,Vr=yr?yr.isBuffer:$,$r=i.isFinite,qr=ir.join,Zr=overArg(tr.keys,tr),Hr=Zn.max,Xr=Zn.min,Yr=v.now,no=i.parseInt,Oo=Zn.random,wo=ir.reverse,Co=getNative(i,"DataView"),So=getNative(i,"Map"),_o=getNative(i,"Promise"),Eo=getNative(i,"Set"),ko=getNative(i,"WeakMap"),Ao=getNative(tr,"create"),Po=ko&&new ko,To={},Io=toSource(Co),Fo=toSource(So),No=toSource(_o),Bo=toSource(Eo),jo=toSource(ko),Mo=vr?vr.prototype:$,Qo=Mo?Mo.valueOf:$,Vo=Mo?Mo.toString:$;function lodash(i){if(isObjectLike(i)&&!Ys(i)&&!(i instanceof LazyWrapper)){if(i instanceof LodashWrapper)return i;if(lr.call(i,"__wrapped__"))return wrapperClone(i)}return new LodashWrapper(i)}var Uo=function(){function object(){}return function(i){if(!isObject(i))return{};if(xr)return xr(i);object.prototype=i;var o=new object;return object.prototype=$,o}}();function baseLodash(){}function LodashWrapper(i,o){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=$}function LazyWrapper(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=dt,this.__views__=[]}function Hash(i){var o=-1,s=null==i?0:i.length;for(this.clear();++o=o?i:o)),i}function baseClone(i,o,s,v,_,ae){var pe,we=1&o,_e=2&o,et=4&o;if(s&&(pe=_?s(i,v,_,ae):s(i)),pe!==$)return pe;if(!isObject(i))return i;var tt=Ys(i);if(tt){if(pe=initCloneArray(i),!we)return copyArray(i,pe)}else{var nt=ss(i),rt=nt==gt||nt==mt;if(Js(i))return cloneBuffer(i,we);if(nt==Rt||nt==lt||rt&&!_){if(pe=_e||rt?{}:initCloneObject(i),!we)return _e?copySymbolsIn(i,baseAssignIn(pe,i)):copySymbols(i,baseAssign(pe,i))}else{if(!Qr[nt])return _?i:{};pe=initCloneByTag(i,nt,we)}}ae||(ae=new Stack);var it=ae.get(i);if(it)return it;ae.set(i,pe),cd(i)?i.forEach((function(v){pe.add(baseClone(v,o,s,v,i,ae))})):dd(i)&&i.forEach((function(v,_){pe.set(_,baseClone(v,o,s,_,i,ae))}));var ot=tt?$:(et?_e?getAllKeysIn:getAllKeys:_e?keysIn:keys)(i);return arrayEach(ot||i,(function(v,_){ot&&(v=i[_=v]),assignValue(pe,_,baseClone(v,o,s,_,i,ae))})),pe}function baseConforms(i){var o=keys(i);return function(s){return baseConformsTo(s,i,o)}}function baseConformsTo(i,o,s){var v=s.length;if(null==i)return!v;for(i=tr(i);v--;){var _=s[v],ae=o[_],pe=i[_];if(pe===$&&!(_ in i)||!ae(pe))return!1}return!0}function baseDelay(i,o,s){if("function"!=typeof i)throw new rr(ae);return ls((function(){i.apply($,s)}),o)}function baseDifference(i,o,s,v){var _=-1,$=arrayIncludes,ae=!0,pe=i.length,we=[],_e=o.length;if(!pe)return we;s&&(o=arrayMap(o,baseUnary(s))),v?($=arrayIncludesWith,ae=!1):o.length>=200&&($=cacheHas,ae=!1,o=new SetCache(o));e:for(;++_-1},ListCache.prototype.set=function listCacheSet(i,o){var s=this.__data__,v=assocIndexOf(s,i);return v<0?(++this.size,s.push([i,o])):s[v][1]=o,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(So||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(i){var o=getMapData(this,i).delete(i);return this.size-=o?1:0,o},MapCache.prototype.get=function mapCacheGet(i){return getMapData(this,i).get(i)},MapCache.prototype.has=function mapCacheHas(i){return getMapData(this,i).has(i)},MapCache.prototype.set=function mapCacheSet(i,o){var s=getMapData(this,i),v=s.size;return s.set(i,o),this.size+=s.size==v?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(i){return this.__data__.set(i,pe),this},SetCache.prototype.has=function setCacheHas(i){return this.__data__.has(i)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(i){var o=this.__data__,s=o.delete(i);return this.size=o.size,s},Stack.prototype.get=function stackGet(i){return this.__data__.get(i)},Stack.prototype.has=function stackHas(i){return this.__data__.has(i)},Stack.prototype.set=function stackSet(i,o){var s=this.__data__;if(s instanceof ListCache){var v=s.__data__;if(!So||v.length<199)return v.push([i,o]),this.size=++s.size,this;s=this.__data__=new MapCache(v)}return s.set(i,o),this.size=s.size,this};var Wo=createBaseEach(baseForOwn),$o=createBaseEach(baseForOwnRight,!0);function baseEvery(i,o){var s=!0;return Wo(i,(function(i,v,_){return s=!!o(i,v,_)})),s}function baseExtremum(i,o,s){for(var v=-1,_=i.length;++v<_;){var ae=i[v],pe=o(ae);if(null!=pe&&(we===$?pe==pe&&!isSymbol(pe):s(pe,we)))var we=pe,_e=ae}return _e}function baseFill(i,o,s,v){var _=i.length;for((s=toInteger(s))<0&&(s=-s>_?0:_+s),(v=v===$||v>_?_:toInteger(v))<0&&(v+=_),v=s>v?0:toLength(v);s0&&s(pe)?o>1?baseFlatten(pe,o-1,s,v,_):arrayPush(_,pe):v||(_[_.length]=pe)}return _}var qo=createBaseFor(),Zo=createBaseFor(!0);function baseForOwn(i,o){return i&&qo(i,o,keys)}function baseForOwnRight(i,o){return i&&Zo(i,o,keys)}function baseFunctions(i,o){return arrayFilter(o,(function(o){return isFunction(i[o])}))}function baseGet(i,o){for(var s=0,v=(o=castPath(o,i)).length;null!=i&&so}function baseHas(i,o){return null!=i&&lr.call(i,o)}function baseHasIn(i,o){return null!=i&&o in tr(i)}function baseInRange(i,o,s){return i>=Xr(o,s)&&i=120&&nt.length>=120)?new SetCache(we&&nt):$}nt=i[0];var rt=-1,it=_e[0];e:for(;++rt-1;)pe!==i&&Cr.call(pe,we,1),Cr.call(i,we,1);return i}function basePullAt(i,o){for(var s=i?o.length:0,v=s-1;s--;){var _=o[s];if(s==v||_!==$){var $=_;isIndex(_)?Cr.call(i,_,1):baseUnset(i,_)}}return i}function baseRandom(i,o){return i+Nr(Oo()*(o-i+1))}function baseRange(i,o,v,_){for(var $=-1,ae=Hr(Fr((o-i)/(v||1)),0),pe=s(ae);ae--;)pe[_?ae:++$]=i,i+=v;return pe}function baseRepeat(i,o){var s="";if(!i||o<1||o>ot)return s;do{o%2&&(s+=i),(o=Nr(o/2))&&(i+=i)}while(o);return s}function baseRest(i,o){return cs(overRest(i,o,identity),i+"")}function baseSample(i){return arraySample(values(i))}function baseSampleSize(i,o){var s=values(i);return shuffleSelf(s,baseClamp(o,0,s.length))}function baseSet(i,o,s,v){if(!isObject(i))return i;for(var _=-1,ae=(o=castPath(o,i)).length,pe=ae-1,we=i;null!=we&&++_$?0:$+o),(v=v>$?$:v)<0&&(v+=$),$=o>v?0:v-o>>>0,o>>>=0;for(var ae=s($);++_<$;)ae[_]=i[_+o];return ae}function baseSome(i,o){var s;return Wo(i,(function(i,v,_){return!(s=o(i,v,_))})),!!s}function baseSortedIndex(i,o,s){var v=0,_=null==i?v:i.length;if("number"==typeof o&&o==o&&_<=2147483647){for(;v<_;){var $=v+_>>>1,ae=i[$];null!==ae&&!isSymbol(ae)&&(s?ae<=o:ae=200){var _e=o?null:ns(i);if(_e)return setToArray(_e);ae=!1,_=cacheHas,we=new SetCache}else we=o?[]:pe;e:for(;++v<$;){var et=i[v],tt=o?o(et):et;if(et=s||0!==et?et:0,ae&&tt==tt){for(var nt=we.length;nt--;)if(we[nt]===tt)continue e;o&&we.push(tt),pe.push(et)}else _(we,tt,s)||(we!==pe&&we.push(tt),pe.push(et))}return pe}function baseUnset(i,o){return null==(i=parent(i,o=castPath(o,i)))||delete i[toKey(last(o))]}function baseUpdate(i,o,s,v){return baseSet(i,o,s(baseGet(i,o)),v)}function baseWhile(i,o,s,v){for(var _=i.length,$=v?_:-1;(v?$--:++$<_)&&o(i[$],$,i););return s?baseSlice(i,v?0:$,v?$+1:_):baseSlice(i,v?$+1:0,v?_:$)}function baseWrapperValue(i,o){var s=i;return s instanceof LazyWrapper&&(s=s.value()),arrayReduce(o,(function(i,o){return o.func.apply(o.thisArg,arrayPush([i],o.args))}),s)}function baseXor(i,o,v){var _=i.length;if(_<2)return _?baseUniq(i[0]):[];for(var $=-1,ae=s(_);++$<_;)for(var pe=i[$],we=-1;++we<_;)we!=$&&(ae[$]=baseDifference(ae[$]||pe,i[we],o,v));return baseUniq(baseFlatten(ae,1),o,v)}function baseZipObject(i,o,s){for(var v=-1,_=i.length,ae=o.length,pe={};++v<_;){var we=v=v?i:baseSlice(i,o,s)}var ts=Ar||function(i){return zr.clearTimeout(i)};function cloneBuffer(i,o){if(o)return i.slice();var s=i.length,v=br?br(s):new i.constructor(s);return i.copy(v),v}function cloneArrayBuffer(i){var o=new i.constructor(i.byteLength);return new Rr(o).set(new Rr(i)),o}function cloneDataView(i,o){var s=o?cloneArrayBuffer(i.buffer):i.buffer;return new i.constructor(s,i.byteOffset,i.byteLength)}function cloneRegExp(i){var o=new i.constructor(i.source,ca.exec(i));return o.lastIndex=i.lastIndex,o}function cloneTypedArray(i,o){var s=o?cloneArrayBuffer(i.buffer):i.buffer;return new i.constructor(s,i.byteOffset,i.length)}function compareAscending(i,o){if(i!==o){var s=i!==$,v=null===i,_=i==i,ae=isSymbol(i),pe=o!==$,we=null===o,_e=o==o,et=isSymbol(o);if(!we&&!et&&!ae&&i>o||ae&&pe&&_e&&!we&&!et||v&&pe&&_e||!s&&_e||!_)return 1;if(!v&&!ae&&!et&&i=pe?we:we*("desc"==s[v]?-1:1)}return i.index-o.index}function composeArgs(i,o,v,_){for(var $=-1,ae=i.length,pe=v.length,we=-1,_e=o.length,et=Hr(ae-pe,0),tt=s(_e+et),nt=!_;++we<_e;)tt[we]=o[we];for(;++$1?s[_-1]:$,pe=_>2?s[2]:$;for(ae=i.length>3&&"function"==typeof ae?(_--,ae):$,pe&&isIterateeCall(s[0],s[1],pe)&&(ae=_<3?$:ae,_=1),o=tr(o);++v<_;){var we=s[v];we&&i(o,we,v,ae)}return o}))}function createBaseEach(i,o){return function(s,v){if(null==s)return s;if(!isArrayLike(s))return i(s,v);for(var _=s.length,$=o?_:-1,ae=tr(s);(o?$--:++$<_)&&!1!==v(ae[$],$,ae););return s}}function createBaseFor(i){return function(o,s,v){for(var _=-1,$=tr(o),ae=v(o),pe=ae.length;pe--;){var we=ae[i?pe:++_];if(!1===s($[we],we,$))break}return o}}function createBind(i,o,s){var v=1&o,_=createCtor(i);return function wrapper(){return(this&&this!==zr&&this instanceof wrapper?_:i).apply(v?s:this,arguments)}}function createCaseFirst(i){return function(o){var s=hasUnicode(o=toString(o))?stringToArray(o):$,v=s?s[0]:o.charAt(0),_=s?castSlice(s,1).join(""):o.slice(1);return v[i]()+_}}function createCompounder(i){return function(o){return arrayReduce(words(deburr(o).replace(Pr,"")),i,"")}}function createCtor(i){return function(){var o=arguments;switch(o.length){case 0:return new i;case 1:return new i(o[0]);case 2:return new i(o[0],o[1]);case 3:return new i(o[0],o[1],o[2]);case 4:return new i(o[0],o[1],o[2],o[3]);case 5:return new i(o[0],o[1],o[2],o[3],o[4]);case 6:return new i(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new i(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var s=Uo(i.prototype),v=i.apply(s,o);return isObject(v)?v:s}}function createCurry(i,o,v){var _=createCtor(i);return function wrapper(){for(var ae=arguments.length,pe=s(ae),we=ae,_e=getHolder(wrapper);we--;)pe[we]=arguments[we];var et=ae<3&&pe[0]!==_e&&pe[ae-1]!==_e?[]:replaceHolders(pe,_e);return(ae-=et.length)-1?_[ae?o[pe]:pe]:$}}function createFlow(i){return flatRest((function(o){var s=o.length,v=s,_=LodashWrapper.prototype.thru;for(i&&o.reverse();v--;){var pe=o[v];if("function"!=typeof pe)throw new rr(ae);if(_&&!we&&"wrapper"==getFuncName(pe))var we=new LodashWrapper([],!0)}for(v=we?v:s;++v1&&nt.reverse(),rt&&et<$&&(nt.length=et),this&&this!==zr&&this instanceof wrapper&&(gt=ut||createCtor(gt)),gt.apply(ft,nt)}}function createInverter(i,o){return function(s,v){return baseInverter(s,i,o(v),{})}}function createMathOperation(i,o){return function(s,v){var _;if(s===$&&v===$)return o;if(s!==$&&(_=s),v!==$){if(_===$)return v;"string"==typeof s||"string"==typeof v?(s=baseToString(s),v=baseToString(v)):(s=baseToNumber(s),v=baseToNumber(v)),_=i(s,v)}return _}}function createOver(i){return flatRest((function(o){return o=arrayMap(o,baseUnary(getIteratee())),baseRest((function(s){var v=this;return i(o,(function(i){return apply(i,v,s)}))}))}))}function createPadding(i,o){var s=(o=o===$?" ":baseToString(o)).length;if(s<2)return s?baseRepeat(o,i):o;var v=baseRepeat(o,Fr(i/stringSize(o)));return hasUnicode(o)?castSlice(stringToArray(v),0,i).join(""):v.slice(0,i)}function createPartial(i,o,v,_){var $=1&o,ae=createCtor(i);return function wrapper(){for(var o=-1,pe=arguments.length,we=-1,_e=_.length,et=s(_e+pe),tt=this&&this!==zr&&this instanceof wrapper?ae:i;++we<_e;)et[we]=_[we];for(;pe--;)et[we++]=arguments[++o];return apply(tt,$?v:this,et)}}function createRange(i){return function(o,s,v){return v&&"number"!=typeof v&&isIterateeCall(o,s,v)&&(s=v=$),o=toFinite(o),s===$?(s=o,o=0):s=toFinite(s),baseRange(o,s,v=v===$?owe))return!1;var et=ae.get(i),tt=ae.get(o);if(et&&tt)return et==o&&tt==i;var nt=-1,rt=!0,it=2&s?new SetCache:$;for(ae.set(i,o),ae.set(o,i);++nt1?"& ":"")+o[v],o=o.join(s>2?", ":" "),i.replace(nn,"{\n/* [wrapped with "+o+"] */\n")}function isFlattenable(i){return Ys(i)||Xs(i)||!!(Sr&&i&&i[Sr])}function isIndex(i,o){var s=typeof i;return!!(o=null==o?ot:o)&&("number"==s||"symbol"!=s&&xa.test(i))&&i>-1&&i%1==0&&i0){if(++o>=800)return arguments[0]}else o=0;return i.apply($,arguments)}}function shuffleSelf(i,o){var s=-1,v=i.length,_=v-1;for(o=o===$?v:o;++s1?i[o-1]:$;return s="function"==typeof s?(i.pop(),s):$,unzipWith(i,s)}));function chain(i){var o=lodash(i);return o.__chain__=!0,o}function thru(i,o){return o(i)}var Ds=flatRest((function(i){var o=i.length,s=o?i[0]:0,v=this.__wrapped__,interceptor=function(o){return baseAt(o,i)};return!(o>1||this.__actions__.length)&&v instanceof LazyWrapper&&isIndex(s)?((v=v.slice(s,+s+(o?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:$}),new LodashWrapper(v,this.__chain__).thru((function(i){return o&&!i.length&&i.push($),i}))):this.thru(interceptor)}));var Ps=createAggregator((function(i,o,s){lr.call(i,s)?++i[s]:baseAssignValue(i,s,1)}));var Ts=createFind(findIndex),Is=createFind(findLastIndex);function forEach(i,o){return(Ys(i)?arrayEach:Wo)(i,getIteratee(o,3))}function forEachRight(i,o){return(Ys(i)?arrayEachRight:$o)(i,getIteratee(o,3))}var Fs=createAggregator((function(i,o,s){lr.call(i,s)?i[s].push(o):baseAssignValue(i,s,[o])}));var Ns=baseRest((function(i,o,v){var _=-1,$="function"==typeof o,ae=isArrayLike(i)?s(i.length):[];return Wo(i,(function(i){ae[++_]=$?apply(o,i,v):baseInvoke(i,o,v)})),ae})),Bs=createAggregator((function(i,o,s){baseAssignValue(i,s,o)}));function map(i,o){return(Ys(i)?arrayMap:baseMap)(i,getIteratee(o,3))}var Ls=createAggregator((function(i,o,s){i[s?0:1].push(o)}),(function(){return[[],[]]}));var js=baseRest((function(i,o){if(null==i)return[];var s=o.length;return s>1&&isIterateeCall(i,o[0],o[1])?o=[]:s>2&&isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),baseOrderBy(i,baseFlatten(o,1),[])})),Ms=Dr||function(){return zr.Date.now()};function ary(i,o,s){return o=s?$:o,o=i&&null==o?i.length:o,createWrap(i,nt,$,$,$,$,o)}function before(i,o){var s;if("function"!=typeof o)throw new rr(ae);return i=toInteger(i),function(){return--i>0&&(s=o.apply(this,arguments)),i<=1&&(o=$),s}}var Qs=baseRest((function(i,o,s){var v=1;if(s.length){var _=replaceHolders(s,getHolder(Qs));v|=et}return createWrap(i,v,o,s,_)})),Vs=baseRest((function(i,o,s){var v=3;if(s.length){var _=replaceHolders(s,getHolder(Vs));v|=et}return createWrap(o,v,i,s,_)}));function debounce(i,o,s){var v,_,pe,we,_e,et,tt=0,nt=!1,rt=!1,it=!0;if("function"!=typeof i)throw new rr(ae);function invokeFunc(o){var s=v,ae=_;return v=_=$,tt=o,we=i.apply(ae,s)}function leadingEdge(i){return tt=i,_e=ls(timerExpired,o),nt?invokeFunc(i):we}function remainingWait(i){var s=o-(i-et);return rt?Xr(s,pe-(i-tt)):s}function shouldInvoke(i){var s=i-et;return et===$||s>=o||s<0||rt&&i-tt>=pe}function timerExpired(){var i=Ms();if(shouldInvoke(i))return trailingEdge(i);_e=ls(timerExpired,remainingWait(i))}function trailingEdge(i){return _e=$,it&&v?invokeFunc(i):(v=_=$,we)}function debounced(){var i=Ms(),s=shouldInvoke(i);if(v=arguments,_=this,et=i,s){if(_e===$)return leadingEdge(et);if(rt)return ts(_e),_e=ls(timerExpired,o),invokeFunc(et)}return _e===$&&(_e=ls(timerExpired,o)),we}return o=toNumber(o)||0,isObject(s)&&(nt=!!s.leading,pe=(rt="maxWait"in s)?Hr(toNumber(s.maxWait)||0,o):pe,it="trailing"in s?!!s.trailing:it),debounced.cancel=function cancel(){_e!==$&&ts(_e),tt=0,v=et=_=_e=$},debounced.flush=function flush(){return _e===$?we:trailingEdge(Ms())},debounced}var Us=baseRest((function(i,o){return baseDelay(i,1,o)})),Ws=baseRest((function(i,o,s){return baseDelay(i,toNumber(o)||0,s)}));function memoize(i,o){if("function"!=typeof i||null!=o&&"function"!=typeof o)throw new rr(ae);var memoized=function(){var s=arguments,v=o?o.apply(this,s):s[0],_=memoized.cache;if(_.has(v))return _.get(v);var $=i.apply(this,s);return memoized.cache=_.set(v,$)||_,$};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(i){if("function"!=typeof i)throw new rr(ae);return function(){var o=arguments;switch(o.length){case 0:return!i.call(this);case 1:return!i.call(this,o[0]);case 2:return!i.call(this,o[0],o[1]);case 3:return!i.call(this,o[0],o[1],o[2])}return!i.apply(this,o)}}memoize.Cache=MapCache;var $s=es((function(i,o){var s=(o=1==o.length&&Ys(o[0])?arrayMap(o[0],baseUnary(getIteratee())):arrayMap(baseFlatten(o,1),baseUnary(getIteratee()))).length;return baseRest((function(v){for(var _=-1,$=Xr(v.length,s);++_<$;)v[_]=o[_].call(this,v[_]);return apply(i,this,v)}))})),qs=baseRest((function(i,o){var s=replaceHolders(o,getHolder(qs));return createWrap(i,et,$,o,s)})),zs=baseRest((function(i,o){var s=replaceHolders(o,getHolder(zs));return createWrap(i,tt,$,o,s)})),Zs=flatRest((function(i,o){return createWrap(i,rt,$,$,$,o)}));function eq(i,o){return i===o||i!=i&&o!=o}var Hs=createRelationalOperation(baseGt),Gs=createRelationalOperation((function(i,o){return i>=o})),Xs=baseIsArguments(function(){return arguments}())?baseIsArguments:function(i){return isObjectLike(i)&&lr.call(i,"callee")&&!wr.call(i,"callee")},Ys=s.isArray,Ks=Kr?baseUnary(Kr):function baseIsArrayBuffer(i){return isObjectLike(i)&&baseGetTag(i)==_t};function isArrayLike(i){return null!=i&&isLength(i.length)&&!isFunction(i)}function isArrayLikeObject(i){return isObjectLike(i)&&isArrayLike(i)}var Js=Vr||stubFalse,ed=Jr?baseUnary(Jr):function baseIsDate(i){return isObjectLike(i)&&baseGetTag(i)==pt};function isError(i){if(!isObjectLike(i))return!1;var o=baseGetTag(i);return o==ft||"[object DOMException]"==o||"string"==typeof i.message&&"string"==typeof i.name&&!isPlainObject(i)}function isFunction(i){if(!isObject(i))return!1;var o=baseGetTag(i);return o==gt||o==mt||"[object AsyncFunction]"==o||"[object Proxy]"==o}function isInteger(i){return"number"==typeof i&&i==toInteger(i)}function isLength(i){return"number"==typeof i&&i>-1&&i%1==0&&i<=ot}function isObject(i){var o=typeof i;return null!=i&&("object"==o||"function"==o)}function isObjectLike(i){return null!=i&&"object"==typeof i}var dd=_i?baseUnary(_i):function baseIsMap(i){return isObjectLike(i)&&ss(i)==yt};function isNumber(i){return"number"==typeof i||isObjectLike(i)&&baseGetTag(i)==vt}function isPlainObject(i){if(!isObjectLike(i)||baseGetTag(i)!=Rt)return!1;var o=Or(i);if(null===o)return!0;var s=lr.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&ur.call(s)==fr}var ld=Ei?baseUnary(Ei):function baseIsRegExp(i){return isObjectLike(i)&&baseGetTag(i)==Ot};var cd=Ui?baseUnary(Ui):function baseIsSet(i){return isObjectLike(i)&&ss(i)==xt};function isString(i){return"string"==typeof i||!Ys(i)&&isObjectLike(i)&&baseGetTag(i)==wt}function isSymbol(i){return"symbol"==typeof i||isObjectLike(i)&&baseGetTag(i)==Ct}var md=Ji?baseUnary(Ji):function baseIsTypedArray(i){return isObjectLike(i)&&isLength(i.length)&&!!Mr[baseGetTag(i)]};var Cd=createRelationalOperation(baseLt),_d=createRelationalOperation((function(i,o){return i<=o}));function toArray(i){if(!i)return[];if(isArrayLike(i))return isString(i)?stringToArray(i):copyArray(i);if(_r&&i[_r])return iteratorToArray(i[_r]());var o=ss(i);return(o==yt?mapToArray:o==xt?setToArray:values)(i)}function toFinite(i){return i?(i=toNumber(i))===it||i===-1/0?17976931348623157e292*(i<0?-1:1):i==i?i:0:0===i?i:0}function toInteger(i){var o=toFinite(i),s=o%1;return o==o?s?o-s:o:0}function toLength(i){return i?baseClamp(toInteger(i),0,dt):0}function toNumber(i){if("number"==typeof i)return i;if(isSymbol(i))return st;if(isObject(i)){var o="function"==typeof i.valueOf?i.valueOf():i;i=isObject(o)?o+"":o}if("string"!=typeof i)return 0===i?i:+i;i=baseTrim(i);var s=ga.test(i);return s||Oa.test(i)?Wr(i.slice(2),s?2:8):ha.test(i)?st:+i}function toPlainObject(i){return copyObject(i,keysIn(i))}function toString(i){return null==i?"":baseToString(i)}var kd=createAssigner((function(i,o){if(isPrototype(o)||isArrayLike(o))copyObject(o,keys(o),i);else for(var s in o)lr.call(o,s)&&assignValue(i,s,o[s])})),Ad=createAssigner((function(i,o){copyObject(o,keysIn(o),i)})),Md=createAssigner((function(i,o,s,v){copyObject(o,keysIn(o),i,v)})),Wd=createAssigner((function(i,o,s,v){copyObject(o,keys(o),i,v)})),Zd=flatRest(baseAt);var Xd=baseRest((function(i,o){i=tr(i);var s=-1,v=o.length,_=v>2?o[2]:$;for(_&&isIterateeCall(o[0],o[1],_)&&(v=1);++s1),o})),copyObject(i,getAllKeysIn(i),s),v&&(s=baseClone(s,7,customOmitClone));for(var _=o.length;_--;)baseUnset(s,o[_]);return s}));var ou=flatRest((function(i,o){return null==i?{}:basePick(i,o)}));function pickBy(i,o){if(null==i)return{};var s=arrayMap(getAllKeysIn(i),(function(i){return[i]}));return o=getIteratee(o),basePickBy(i,s,(function(i,s){return o(i,s[0])}))}var su=createToPairs(keys),du=createToPairs(keysIn);function values(i){return null==i?[]:baseValues(i,keys(i))}var uu=createCompounder((function(i,o,s){return o=o.toLowerCase(),i+(s?capitalize(o):o)}));function capitalize(i){return mu(toString(i).toLowerCase())}function deburr(i){return(i=toString(i))&&i.replace(_a,io).replace(Tr,"")}var lu=createCompounder((function(i,o,s){return i+(s?"-":"")+o.toLowerCase()})),cu=createCompounder((function(i,o,s){return i+(s?" ":"")+o.toLowerCase()})),hu=createCaseFirst("toLowerCase");var pu=createCompounder((function(i,o,s){return i+(s?"_":"")+o.toLowerCase()}));var fu=createCompounder((function(i,o,s){return i+(s?" ":"")+mu(o)}));var gu=createCompounder((function(i,o,s){return i+(s?" ":"")+o.toUpperCase()})),mu=createCaseFirst("toUpperCase");function words(i,o,s){return i=toString(i),(o=s?$:o)===$?hasUnicodeWord(i)?unicodeWords(i):asciiWords(i):i.match(o)||[]}var yu=baseRest((function(i,o){try{return apply(i,$,o)}catch(i){return isError(i)?i:new _(i)}})),vu=flatRest((function(i,o){return arrayEach(o,(function(o){o=toKey(o),baseAssignValue(i,o,Qs(i[o],i))})),i}));function constant(i){return function(){return i}}var Ru=createFlow(),bu=createFlow(!0);function identity(i){return i}function iteratee(i){return baseIteratee("function"==typeof i?i:baseClone(i,1))}var Ou=baseRest((function(i,o){return function(s){return baseInvoke(s,i,o)}})),xu=baseRest((function(i,o){return function(s){return baseInvoke(i,s,o)}}));function mixin(i,o,s){var v=keys(o),_=baseFunctions(o,v);null!=s||isObject(o)&&(_.length||!v.length)||(s=o,o=i,i=this,_=baseFunctions(o,keys(o)));var $=!(isObject(s)&&"chain"in s&&!s.chain),ae=isFunction(i);return arrayEach(_,(function(s){var v=o[s];i[s]=v,ae&&(i.prototype[s]=function(){var o=this.__chain__;if($||o){var s=i(this.__wrapped__);return(s.__actions__=copyArray(this.__actions__)).push({func:v,args:arguments,thisArg:i}),s.__chain__=o,s}return v.apply(i,arrayPush([this.value()],arguments))})})),i}function noop(){}var wu=createOver(arrayMap),Cu=createOver(arrayEvery),Su=createOver(arraySome);function property(i){return isKey(i)?baseProperty(toKey(i)):basePropertyDeep(i)}var _u=createRange(),Eu=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var ku=createMathOperation((function(i,o){return i+o}),0),Au=createRound("ceil"),Du=createMathOperation((function(i,o){return i/o}),1),Pu=createRound("floor");var Tu,Iu=createMathOperation((function(i,o){return i*o}),1),Fu=createRound("round"),Nu=createMathOperation((function(i,o){return i-o}),0);return lodash.after=function after(i,o){if("function"!=typeof o)throw new rr(ae);return i=toInteger(i),function(){if(--i<1)return o.apply(this,arguments)}},lodash.ary=ary,lodash.assign=kd,lodash.assignIn=Ad,lodash.assignInWith=Md,lodash.assignWith=Wd,lodash.at=Zd,lodash.before=before,lodash.bind=Qs,lodash.bindAll=vu,lodash.bindKey=Vs,lodash.castArray=function castArray(){if(!arguments.length)return[];var i=arguments[0];return Ys(i)?i:[i]},lodash.chain=chain,lodash.chunk=function chunk(i,o,v){o=(v?isIterateeCall(i,o,v):o===$)?1:Hr(toInteger(o),0);var _=null==i?0:i.length;if(!_||o<1)return[];for(var ae=0,pe=0,we=s(Fr(_/o));ae<_;)we[pe++]=baseSlice(i,ae,ae+=o);return we},lodash.compact=function compact(i){for(var o=-1,s=null==i?0:i.length,v=0,_=[];++o>>0)?(i=toString(i))&&("string"==typeof o||null!=o&&!ld(o))&&!(o=baseToString(o))&&hasUnicode(i)?castSlice(stringToArray(i),0,s):i.split(o,s):[]},lodash.spread=function spread(i,o){if("function"!=typeof i)throw new rr(ae);return o=null==o?0:Hr(toInteger(o),0),baseRest((function(s){var v=s[o],_=castSlice(s,0,o);return v&&arrayPush(_,v),apply(i,this,_)}))},lodash.tail=function tail(i){var o=null==i?0:i.length;return o?baseSlice(i,1,o):[]},lodash.take=function take(i,o,s){return i&&i.length?baseSlice(i,0,(o=s||o===$?1:toInteger(o))<0?0:o):[]},lodash.takeRight=function takeRight(i,o,s){var v=null==i?0:i.length;return v?baseSlice(i,(o=v-(o=s||o===$?1:toInteger(o)))<0?0:o,v):[]},lodash.takeRightWhile=function takeRightWhile(i,o){return i&&i.length?baseWhile(i,getIteratee(o,3),!1,!0):[]},lodash.takeWhile=function takeWhile(i,o){return i&&i.length?baseWhile(i,getIteratee(o,3)):[]},lodash.tap=function tap(i,o){return o(i),i},lodash.throttle=function throttle(i,o,s){var v=!0,_=!0;if("function"!=typeof i)throw new rr(ae);return isObject(s)&&(v="leading"in s?!!s.leading:v,_="trailing"in s?!!s.trailing:_),debounce(i,o,{leading:v,maxWait:o,trailing:_})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=su,lodash.toPairsIn=du,lodash.toPath=function toPath(i){return Ys(i)?arrayMap(i,toKey):isSymbol(i)?[i]:copyArray(hs(toString(i)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(i,o,s){var v=Ys(i),_=v||Js(i)||md(i);if(o=getIteratee(o,4),null==s){var $=i&&i.constructor;s=_?v?new $:[]:isObject(i)&&isFunction($)?Uo(Or(i)):{}}return(_?arrayEach:baseForOwn)(i,(function(i,v,_){return o(s,i,v,_)})),s},lodash.unary=function unary(i){return ary(i,1)},lodash.union=Os,lodash.unionBy=xs,lodash.unionWith=ws,lodash.uniq=function uniq(i){return i&&i.length?baseUniq(i):[]},lodash.uniqBy=function uniqBy(i,o){return i&&i.length?baseUniq(i,getIteratee(o,2)):[]},lodash.uniqWith=function uniqWith(i,o){return o="function"==typeof o?o:$,i&&i.length?baseUniq(i,$,o):[]},lodash.unset=function unset(i,o){return null==i||baseUnset(i,o)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(i,o,s){return null==i?i:baseUpdate(i,o,castFunction(s))},lodash.updateWith=function updateWith(i,o,s,v){return v="function"==typeof v?v:$,null==i?i:baseUpdate(i,o,castFunction(s),v)},lodash.values=values,lodash.valuesIn=function valuesIn(i){return null==i?[]:baseValues(i,keysIn(i))},lodash.without=Cs,lodash.words=words,lodash.wrap=function wrap(i,o){return qs(castFunction(o),i)},lodash.xor=Ss,lodash.xorBy=_s,lodash.xorWith=Es,lodash.zip=ks,lodash.zipObject=function zipObject(i,o){return baseZipObject(i||[],o||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(i,o){return baseZipObject(i||[],o||[],baseSet)},lodash.zipWith=As,lodash.entries=su,lodash.entriesIn=du,lodash.extend=Ad,lodash.extendWith=Md,mixin(lodash,lodash),lodash.add=ku,lodash.attempt=yu,lodash.camelCase=uu,lodash.capitalize=capitalize,lodash.ceil=Au,lodash.clamp=function clamp(i,o,s){return s===$&&(s=o,o=$),s!==$&&(s=(s=toNumber(s))==s?s:0),o!==$&&(o=(o=toNumber(o))==o?o:0),baseClamp(toNumber(i),o,s)},lodash.clone=function clone(i){return baseClone(i,4)},lodash.cloneDeep=function cloneDeep(i){return baseClone(i,5)},lodash.cloneDeepWith=function cloneDeepWith(i,o){return baseClone(i,5,o="function"==typeof o?o:$)},lodash.cloneWith=function cloneWith(i,o){return baseClone(i,4,o="function"==typeof o?o:$)},lodash.conformsTo=function conformsTo(i,o){return null==o||baseConformsTo(i,o,keys(o))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(i,o){return null==i||i!=i?o:i},lodash.divide=Du,lodash.endsWith=function endsWith(i,o,s){i=toString(i),o=baseToString(o);var v=i.length,_=s=s===$?v:baseClamp(toInteger(s),0,v);return(s-=o.length)>=0&&i.slice(s,_)==o},lodash.eq=eq,lodash.escape=function escape(i){return(i=toString(i))&&Wt.test(i)?i.replace(Vt,oo):i},lodash.escapeRegExp=function escapeRegExp(i){return(i=toString(i))&&Yt.test(i)?i.replace(Xt,"\\$&"):i},lodash.every=function every(i,o,s){var v=Ys(i)?arrayEvery:baseEvery;return s&&isIterateeCall(i,o,s)&&(o=$),v(i,getIteratee(o,3))},lodash.find=Ts,lodash.findIndex=findIndex,lodash.findKey=function findKey(i,o){return baseFindKey(i,getIteratee(o,3),baseForOwn)},lodash.findLast=Is,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(i,o){return baseFindKey(i,getIteratee(o,3),baseForOwnRight)},lodash.floor=Pu,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(i,o){return null==i?i:qo(i,getIteratee(o,3),keysIn)},lodash.forInRight=function forInRight(i,o){return null==i?i:Zo(i,getIteratee(o,3),keysIn)},lodash.forOwn=function forOwn(i,o){return i&&baseForOwn(i,getIteratee(o,3))},lodash.forOwnRight=function forOwnRight(i,o){return i&&baseForOwnRight(i,getIteratee(o,3))},lodash.get=get,lodash.gt=Hs,lodash.gte=Gs,lodash.has=function has(i,o){return null!=i&&hasPath(i,o,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(i,o,s,v){i=isArrayLike(i)?i:values(i),s=s&&!v?toInteger(s):0;var _=i.length;return s<0&&(s=Hr(_+s,0)),isString(i)?s<=_&&i.indexOf(o,s)>-1:!!_&&baseIndexOf(i,o,s)>-1},lodash.indexOf=function indexOf(i,o,s){var v=null==i?0:i.length;if(!v)return-1;var _=null==s?0:toInteger(s);return _<0&&(_=Hr(v+_,0)),baseIndexOf(i,o,_)},lodash.inRange=function inRange(i,o,s){return o=toFinite(o),s===$?(s=o,o=0):s=toFinite(s),baseInRange(i=toNumber(i),o,s)},lodash.invoke=nu,lodash.isArguments=Xs,lodash.isArray=Ys,lodash.isArrayBuffer=Ks,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=function isBoolean(i){return!0===i||!1===i||isObjectLike(i)&&baseGetTag(i)==ht},lodash.isBuffer=Js,lodash.isDate=ed,lodash.isElement=function isElement(i){return isObjectLike(i)&&1===i.nodeType&&!isPlainObject(i)},lodash.isEmpty=function isEmpty(i){if(null==i)return!0;if(isArrayLike(i)&&(Ys(i)||"string"==typeof i||"function"==typeof i.splice||Js(i)||md(i)||Xs(i)))return!i.length;var o=ss(i);if(o==yt||o==xt)return!i.size;if(isPrototype(i))return!baseKeys(i).length;for(var s in i)if(lr.call(i,s))return!1;return!0},lodash.isEqual=function isEqual(i,o){return baseIsEqual(i,o)},lodash.isEqualWith=function isEqualWith(i,o,s){var v=(s="function"==typeof s?s:$)?s(i,o):$;return v===$?baseIsEqual(i,o,$,s):!!v},lodash.isError=isError,lodash.isFinite=function isFinite(i){return"number"==typeof i&&$r(i)},lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=dd,lodash.isMatch=function isMatch(i,o){return i===o||baseIsMatch(i,o,getMatchData(o))},lodash.isMatchWith=function isMatchWith(i,o,s){return s="function"==typeof s?s:$,baseIsMatch(i,o,getMatchData(o),s)},lodash.isNaN=function isNaN(i){return isNumber(i)&&i!=+i},lodash.isNative=function isNative(i){if(ds(i))throw new _("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return baseIsNative(i)},lodash.isNil=function isNil(i){return null==i},lodash.isNull=function isNull(i){return null===i},lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=ld,lodash.isSafeInteger=function isSafeInteger(i){return isInteger(i)&&i>=-9007199254740991&&i<=ot},lodash.isSet=cd,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=md,lodash.isUndefined=function isUndefined(i){return i===$},lodash.isWeakMap=function isWeakMap(i){return isObjectLike(i)&&ss(i)==St},lodash.isWeakSet=function isWeakSet(i){return isObjectLike(i)&&"[object WeakSet]"==baseGetTag(i)},lodash.join=function join(i,o){return null==i?"":qr.call(i,o)},lodash.kebabCase=lu,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(i,o,s){var v=null==i?0:i.length;if(!v)return-1;var _=v;return s!==$&&(_=(_=toInteger(s))<0?Hr(v+_,0):Xr(_,v-1)),o==o?strictLastIndexOf(i,o,_):baseFindIndex(i,baseIsNaN,_,!0)},lodash.lowerCase=cu,lodash.lowerFirst=hu,lodash.lt=Cd,lodash.lte=_d,lodash.max=function max(i){return i&&i.length?baseExtremum(i,identity,baseGt):$},lodash.maxBy=function maxBy(i,o){return i&&i.length?baseExtremum(i,getIteratee(o,2),baseGt):$},lodash.mean=function mean(i){return baseMean(i,identity)},lodash.meanBy=function meanBy(i,o){return baseMean(i,getIteratee(o,2))},lodash.min=function min(i){return i&&i.length?baseExtremum(i,identity,baseLt):$},lodash.minBy=function minBy(i,o){return i&&i.length?baseExtremum(i,getIteratee(o,2),baseLt):$},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=Iu,lodash.nth=function nth(i,o){return i&&i.length?baseNth(i,toInteger(o)):$},lodash.noConflict=function noConflict(){return zr._===this&&(zr._=gr),this},lodash.noop=noop,lodash.now=Ms,lodash.pad=function pad(i,o,s){i=toString(i);var v=(o=toInteger(o))?stringSize(i):0;if(!o||v>=o)return i;var _=(o-v)/2;return createPadding(Nr(_),s)+i+createPadding(Fr(_),s)},lodash.padEnd=function padEnd(i,o,s){i=toString(i);var v=(o=toInteger(o))?stringSize(i):0;return o&&vo){var v=i;i=o,o=v}if(s||i%1||o%1){var _=Oo();return Xr(i+_*(o-i+Ur("1e-"+((_+"").length-1))),o)}return baseRandom(i,o)},lodash.reduce=function reduce(i,o,s){var v=Ys(i)?arrayReduce:baseReduce,_=arguments.length<3;return v(i,getIteratee(o,4),s,_,Wo)},lodash.reduceRight=function reduceRight(i,o,s){var v=Ys(i)?arrayReduceRight:baseReduce,_=arguments.length<3;return v(i,getIteratee(o,4),s,_,$o)},lodash.repeat=function repeat(i,o,s){return o=(s?isIterateeCall(i,o,s):o===$)?1:toInteger(o),baseRepeat(toString(i),o)},lodash.replace=function replace(){var i=arguments,o=toString(i[0]);return i.length<3?o:o.replace(i[1],i[2])},lodash.result=function result(i,o,s){var v=-1,_=(o=castPath(o,i)).length;for(_||(_=1,i=$);++v<_;){var ae=null==i?$:i[toKey(o[v])];ae===$&&(v=_,ae=s),i=isFunction(ae)?ae.call(i):ae}return i},lodash.round=Fu,lodash.runInContext=runInContext,lodash.sample=function sample(i){return(Ys(i)?arraySample:baseSample)(i)},lodash.size=function size(i){if(null==i)return 0;if(isArrayLike(i))return isString(i)?stringSize(i):i.length;var o=ss(i);return o==yt||o==xt?i.size:baseKeys(i).length},lodash.snakeCase=pu,lodash.some=function some(i,o,s){var v=Ys(i)?arraySome:baseSome;return s&&isIterateeCall(i,o,s)&&(o=$),v(i,getIteratee(o,3))},lodash.sortedIndex=function sortedIndex(i,o){return baseSortedIndex(i,o)},lodash.sortedIndexBy=function sortedIndexBy(i,o,s){return baseSortedIndexBy(i,o,getIteratee(s,2))},lodash.sortedIndexOf=function sortedIndexOf(i,o){var s=null==i?0:i.length;if(s){var v=baseSortedIndex(i,o);if(vot)return[];var s=dt,v=Xr(i,dt);o=getIteratee(o),i-=dt;for(var _=baseTimes(v,o);++s=ae)return i;var we=s-stringSize(v);if(we<1)return v;var _e=pe?castSlice(pe,0,we).join(""):i.slice(0,we);if(_===$)return _e+v;if(pe&&(we+=_e.length-we),ld(_)){if(i.slice(we).search(_)){var et,tt=_e;for(_.global||(_=nr(_.source,toString(ca.exec(_))+"g")),_.lastIndex=0;et=_.exec(tt);)var nt=et.index;_e=_e.slice(0,nt===$?we:nt)}}else if(i.indexOf(baseToString(_),we)!=we){var rt=_e.lastIndexOf(_);rt>-1&&(_e=_e.slice(0,rt))}return _e+v},lodash.unescape=function unescape(i){return(i=toString(i))&&Ut.test(i)?i.replace(Qt,mo):i},lodash.uniqueId=function uniqueId(i){var o=++cr;return toString(i)+o},lodash.upperCase=gu,lodash.upperFirst=mu,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(Tu={},baseForOwn(lodash,(function(i,o){lr.call(lodash.prototype,o)||(Tu[o]=i)})),Tu),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(i){lodash[i].placeholder=lodash})),arrayEach(["drop","take"],(function(i,o){LazyWrapper.prototype[i]=function(s){s=s===$?1:Hr(toInteger(s),0);var v=this.__filtered__&&!o?new LazyWrapper(this):this.clone();return v.__filtered__?v.__takeCount__=Xr(s,v.__takeCount__):v.__views__.push({size:Xr(s,dt),type:i+(v.__dir__<0?"Right":"")}),v},LazyWrapper.prototype[i+"Right"]=function(o){return this.reverse()[i](o).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(i,o){var s=o+1,v=1==s||3==s;LazyWrapper.prototype[i]=function(i){var o=this.clone();return o.__iteratees__.push({iteratee:getIteratee(i,3),type:s}),o.__filtered__=o.__filtered__||v,o}})),arrayEach(["head","last"],(function(i,o){var s="take"+(o?"Right":"");LazyWrapper.prototype[i]=function(){return this[s](1).value()[0]}})),arrayEach(["initial","tail"],(function(i,o){var s="drop"+(o?"":"Right");LazyWrapper.prototype[i]=function(){return this.__filtered__?new LazyWrapper(this):this[s](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(i){return this.filter(i).head()},LazyWrapper.prototype.findLast=function(i){return this.reverse().find(i)},LazyWrapper.prototype.invokeMap=baseRest((function(i,o){return"function"==typeof i?new LazyWrapper(this):this.map((function(s){return baseInvoke(s,i,o)}))})),LazyWrapper.prototype.reject=function(i){return this.filter(negate(getIteratee(i)))},LazyWrapper.prototype.slice=function(i,o){i=toInteger(i);var s=this;return s.__filtered__&&(i>0||o<0)?new LazyWrapper(s):(i<0?s=s.takeRight(-i):i&&(s=s.drop(i)),o!==$&&(s=(o=toInteger(o))<0?s.dropRight(-o):s.take(o-i)),s)},LazyWrapper.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(dt)},baseForOwn(LazyWrapper.prototype,(function(i,o){var s=/^(?:filter|find|map|reject)|While$/.test(o),v=/^(?:head|last)$/.test(o),_=lodash[v?"take"+("last"==o?"Right":""):o],ae=v||/^find/.test(o);_&&(lodash.prototype[o]=function(){var o=this.__wrapped__,pe=v?[1]:arguments,we=o instanceof LazyWrapper,_e=pe[0],et=we||Ys(o),interceptor=function(i){var o=_.apply(lodash,arrayPush([i],pe));return v&&tt?o[0]:o};et&&s&&"function"==typeof _e&&1!=_e.length&&(we=et=!1);var tt=this.__chain__,nt=!!this.__actions__.length,rt=ae&&!tt,it=we&&!nt;if(!ae&&et){o=it?o:new LazyWrapper(this);var ot=i.apply(o,pe);return ot.__actions__.push({func:thru,args:[interceptor],thisArg:$}),new LodashWrapper(ot,tt)}return rt&&it?i.apply(this,pe):(ot=this.thru(interceptor),rt?v?ot.value()[0]:ot.value():ot)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(i){var o=ir[i],s=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);lodash.prototype[i]=function(){var i=arguments;if(v&&!this.__chain__){var _=this.value();return o.apply(Ys(_)?_:[],i)}return this[s]((function(s){return o.apply(Ys(s)?s:[],i)}))}})),baseForOwn(LazyWrapper.prototype,(function(i,o){var s=lodash[o];if(s){var v=s.name+"";lr.call(To,v)||(To[v]=[]),To[v].push({name:o,func:s})}})),To[createHybrid($,2).name]=[{name:"wrapper",func:$}],LazyWrapper.prototype.clone=function lazyClone(){var i=new LazyWrapper(this.__wrapped__);return i.__actions__=copyArray(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=copyArray(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=copyArray(this.__views__),i},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var i=new LazyWrapper(this);i.__dir__=-1,i.__filtered__=!0}else(i=this.clone()).__dir__*=-1;return i},LazyWrapper.prototype.value=function lazyValue(){var i=this.__wrapped__.value(),o=this.__dir__,s=Ys(i),v=o<0,_=s?i.length:0,$=getView(0,_,this.__views__),ae=$.start,pe=$.end,we=pe-ae,_e=v?pe:ae-1,et=this.__iteratees__,tt=et.length,nt=0,rt=Xr(we,this.__takeCount__);if(!s||!v&&_==we&&rt==we)return baseWrapperValue(i,this.__actions__);var it=[];e:for(;we--&&nt=this.__values__.length;return{done:i,value:i?$:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(i){for(var o,s=this;s instanceof baseLodash;){var v=wrapperClone(s);v.__index__=0,v.__values__=$,o?_.__wrapped__=v:o=v;var _=v;s=s.__wrapped__}return _.__wrapped__=i,o},lodash.prototype.reverse=function wrapperReverse(){var i=this.__wrapped__;if(i instanceof LazyWrapper){var o=i;return this.__actions__.length&&(o=new LazyWrapper(this)),(o=o.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:$}),new LodashWrapper(o,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,_r&&(lodash.prototype[_r]=function wrapperToIterator(){return this}),lodash}();zr._=Ro,(_=function(){return Ro}.call(o,s,o,v))===$||(v.exports=_)}).call(this)}).call(this,s(23),s(60)(i))},,,function(i,o,s){"use strict";var v=s(12),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$="object"===("undefined"==typeof window?"undefined":_(window))&&"object"===("undefined"==typeof document?"undefined":_(document))&&9===document.nodeType;s(50);function typeof_typeof(i){return typeof_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},typeof_typeof(i)}function toPrimitive(i,o){if("object"!=typeof_typeof(i)||!i)return i;var s=i[Symbol.toPrimitive];if(void 0!==s){var v=s.call(i,o||"default");if("object"!=typeof_typeof(v))return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(i)}function toPropertyKey(i){var o=toPrimitive(i,"string");return"symbol"==typeof_typeof(o)?o:String(o)}function _defineProperties(i,o){for(var s=0;s<+~=|^:(),"'`\s])/g,nt="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(i){return nt?nt(i):i.replace(tt,"\\$1")},rt=function(){function BaseStyleRule(i,o,s){this.type="style",this.isProcessed=!1;var v=s.sheet,_=s.Renderer;this.key=i,this.options=s,this.style=o,v?this.renderer=v.renderer:_&&(this.renderer=new _)}return BaseStyleRule.prototype.prop=function prop(i,o,s){if(void 0===o)return this.style[i];var v=!!s&&s.force;if(!v&&this.style[i]===o)return this;var _=o;s&&!1===s.process||(_=this.options.jss.plugins.onChangeValue(o,i,this));var $=null==_||!1===_,ae=i in this.style;if($&&!ae&&!v)return this;var pe=$&&ae;if(pe?delete this.style[i]:this.style[i]=_,this.renderable&&this.renderer)return pe?this.renderer.removeProperty(this.renderable,i):this.renderer.setProperty(this.renderable,i,_),this;var we=this.options.sheet;return we&&we.attached,this},BaseStyleRule}(),it=function(i){function StyleRule(o,s,v){var _;_=i.call(this,o,s,v)||this;var $=v.selector,ae=v.scoped,pe=v.sheet,we=v.generateId;return $?_.selectorText=$:!1!==ae&&(_.id=we(_assertThisInitialized(_assertThisInitialized(_)),pe),_.selectorText="."+jss_esm_escape(_.id)),_}Object(ae.a)(StyleRule,i);var o=StyleRule.prototype;return o.applyTo=function applyTo(i){var o=this.renderer;if(o){var s=this.toJSON();for(var v in s)o.setProperty(i,v,s[v])}return this},o.toJSON=function toJSON(){var i={};for(var o in this.style){var s=this.style[o];"object"!=typeof s?i[o]=s:Array.isArray(s)&&(i[o]=et(s))}return i},o.toString=function toString(i){var o=this.options.sheet,s=!!o&&o.options.link?Object(v.a)({},i,{allowEmpty:!0}):i;return toCss(this.selectorText,this.style,s)},_createClass(StyleRule,[{key:"selector",set:function set(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,s=this.renderable;if(s&&o)o.setSelector(s,i)||o.replaceRule(s,this)}},get:function get(){return this.selectorText}}]),StyleRule}(rt),ot={onCreateRule:function onCreateRule(i,o,s){return"@"===i[0]||s.parent&&"keyframes"===s.parent.type?null:new it(i,o,s)}},st={indent:1,children:!0},dt=/@([\w-]+)/,ut=function(){function ConditionalRule(i,o,s){this.type="conditional",this.isProcessed=!1,this.key=i;var _=i.match(dt);for(var $ in this.at=_?_[1]:"unknown",this.query=s.name||"@"+this.at,this.options=s,this.rules=new Tt(Object(v.a)({},s,{parent:this})),o)this.rules.add($,o[$]);this.rules.process()}var i=ConditionalRule.prototype;return i.getRule=function getRule(i){return this.rules.get(i)},i.indexOf=function indexOf(i){return this.rules.indexOf(i)},i.addRule=function addRule(i,o,s){var v=this.rules.add(i,o,s);return v?(this.options.jss.plugins.onProcessRule(v),v):null},i.replaceRule=function replaceRule(i,o,s){var v=this.rules.replace(i,o,s);return v&&this.options.jss.plugins.onProcessRule(v),v},i.toString=function toString(i){void 0===i&&(i=st);var o=getWhitespaceSymbols(i).linebreak;if(null==i.indent&&(i.indent=st.indent),null==i.children&&(i.children=st.children),!1===i.children)return this.query+" {}";var s=this.rules.toString(i);return s?this.query+" {"+o+s+o+"}":""},ConditionalRule}(),lt=/@container|@media|@supports\s+/,ct={onCreateRule:function onCreateRule(i,o,s){return lt.test(i)?new ut(i,o,s):null}},ht={indent:1,children:!0},pt=/@keyframes\s+([\w-]+)/,ft=function(){function KeyframesRule(i,o,s){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var _=i.match(pt);_&&_[1]?this.name=_[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=s;var $=s.scoped,ae=s.sheet,pe=s.generateId;for(var we in this.id=!1===$?this.name:jss_esm_escape(pe(this,ae)),this.rules=new Tt(Object(v.a)({},s,{parent:this})),o)this.rules.add(we,o[we],Object(v.a)({},s,{parent:this}));this.rules.process()}return KeyframesRule.prototype.toString=function toString(i){void 0===i&&(i=ht);var o=getWhitespaceSymbols(i).linebreak;if(null==i.indent&&(i.indent=ht.indent),null==i.children&&(i.children=ht.children),!1===i.children)return this.at+" "+this.id+" {}";var s=this.rules.toString(i);return s&&(s=""+o+s+o),this.at+" "+this.id+" {"+s+"}"},KeyframesRule}(),gt=/@keyframes\s+/,mt=/\$([\w-]+)/g,yt=function findReferencedKeyframe(i,o){return"string"==typeof i?i.replace(mt,(function(i,s){return s in o?o[s]:i})):i},vt=function replaceRef(i,o,s){var v=i[o],_=yt(v,s);_!==v&&(i[o]=_)},Rt={onCreateRule:function onCreateRule(i,o,s){return"string"==typeof i&>.test(i)?new ft(i,o,s):null},onProcessStyle:function onProcessStyle(i,o,s){return"style"===o.type&&s?("animation-name"in i&&vt(i,"animation-name",s.keyframes),"animation"in i&&vt(i,"animation",s.keyframes),i):i},onChangeValue:function onChangeValue(i,o,s){var v=s.options.sheet;if(!v)return i;switch(o){case"animation":case"animation-name":return yt(i,v.keyframes);default:return i}}},bt=function(i){function KeyframeRule(){return i.apply(this,arguments)||this}return Object(ae.a)(KeyframeRule,i),KeyframeRule.prototype.toString=function toString(i){var o=this.options.sheet,s=!!o&&o.options.link?Object(v.a)({},i,{allowEmpty:!0}):i;return toCss(this.key,this.style,s)},KeyframeRule}(rt),Ot={onCreateRule:function onCreateRule(i,o,s){return s.parent&&"keyframes"===s.parent.type?new bt(i,o,s):null}},xt=function(){function FontFaceRule(i,o,s){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=i,this.style=o,this.options=s}return FontFaceRule.prototype.toString=function toString(i){var o=getWhitespaceSymbols(i).linebreak;if(Array.isArray(this.style)){for(var s="",v=0;v=this.index)o.push(i);else for(var v=0;vs)return void o.splice(v,0,i)},i.reset=function reset(){this.registry=[]},i.remove=function remove(i){var o=this.registry.indexOf(i);this.registry.splice(o,1)},i.toString=function toString(i){for(var o=void 0===i?{}:i,s=o.attached,v=Object(pe.a)(o,["attached"]),_=getWhitespaceSymbols(v).linebreak,$="",ae=0;ae-1?v.substr(0,_-1):v;i.style.setProperty(o,$,_>-1?"important":"")}}catch(i){return!1}return!0},Wt=function removeProperty(i,o){try{i.attributeStyleMap?i.attributeStyleMap.delete(o):i.style.removeProperty(o)}catch(i){}},$t=function setSelector(i,o){return i.selectorText=o,i.selectorText===o},qt=Qt((function(){return document.querySelector("head")}));function findHigherSheet(i,o){for(var s=0;so.index&&v.options.insertionPoint===o.insertionPoint)return v}return null}function findHighestSheet(i,o){for(var s=i.length-1;s>=0;s--){var v=i[s];if(v.attached&&v.options.insertionPoint===o.insertionPoint)return v}return null}function findCommentNode(i){for(var o=qt(),s=0;s0){var s=findHigherSheet(o,i);if(s&&s.renderer)return{parent:s.renderer.element.parentNode,node:s.renderer.element};if((s=findHighestSheet(o,i))&&s.renderer)return{parent:s.renderer.element.parentNode,node:s.renderer.element.nextSibling}}var v=i.insertionPoint;if(v&&"string"==typeof v){var _=findCommentNode(v);if(_)return{parent:_.parentNode,node:_.nextSibling}}return!1}function insertStyle(i,o){var s=o.insertionPoint,v=findPrevNode(o);if(!1!==v&&v.parent)v.parent.insertBefore(i,v.node);else if(s&&"number"==typeof s.nodeType){var _=s,$=_.parentNode;$&&$.insertBefore(i,_.nextSibling)}else qt().appendChild(i)}var zt=Qt((function(){var i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null})),Zt=function insertRule(i,o,s){try{"insertRule"in i?i.insertRule(o,s):"appendRule"in i&&i.appendRule(o)}catch(i){return!1}return i.cssRules[s]},Ht=function getValidRuleInsertionIndex(i,o){var s=i.cssRules.length;return void 0===o||o>s?s:o},Gt=function createStyle(){var i=document.createElement("style");return i.textContent="\n",i},Xt=function(){function DomRenderer(i){this.getPropertyValue=Vt,this.setProperty=Ut,this.removeProperty=Wt,this.setSelector=$t,this.hasInsertedRules=!1,this.cssRules=[],i&&Nt.add(i),this.sheet=i;var o=this.sheet?this.sheet.options:{},s=o.media,v=o.meta,_=o.element;this.element=_||Gt(),this.element.setAttribute("data-jss",""),s&&this.element.setAttribute("media",s),v&&this.element.setAttribute("data-meta",v);var $=zt();$&&this.element.setAttribute("nonce",$)}var i=DomRenderer.prototype;return i.attach=function attach(){if(!this.element.parentNode&&this.sheet){insertStyle(this.element,this.sheet.options);var i=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&i&&(this.hasInsertedRules=!1,this.deploy())}},i.detach=function detach(){if(this.sheet){var i=this.element.parentNode;i&&i.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},i.deploy=function deploy(){var i=this.sheet;i&&(i.options.link?this.insertRules(i.rules):this.element.textContent="\n"+i.toString()+"\n")},i.insertRules=function insertRules(i,o){for(var s=0;s-1)return registerClass(i,o.split(" "));var v=i.options.parent;if("$"===o[0]){var _=v.getRule(o.substr(1));return!!_&&(_!==i&&(v.classes[i.key]+=" "+v.classes[_.key],!0))}return v.classes[i.key]+=" "+o,!0}var pr=function jssCompose(){return{onProcessStyle:function onProcessStyle(i,o){return"composes"in i?(registerClass(o,i.composes),delete i.composes,i):i}}},fr=Jt({createGenerateId:function createGenerateId(){var i=0;return function(o){return"rsg--"+o.key+"-"+i++}},plugins:[ia(),_a({reset:Object.assign({},{animation:"none 0s ease 0s 1 normal none running","backface-visibility":"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor","border-image":"none","border-radius":"0",bottom:"auto","box-shadow":"none",clear:"none",clip:"auto",columns:"auto","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule":"medium none currentColor","column-span":"1","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",float:"none",height:"auto",hyphens:"none",left:"auto",margin:"0","max-height":"none","max-width":"none","min-height":"0","min-width":"0",opacity:"1",outline:"medium none invert",overflow:"visible","overflow-x":"visible","overflow-y":"visible",padding:"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%",position:"static",right:"auto","table-layout":"auto","text-decoration":"none",top:"auto",transform:"none","transform-origin":"50% 50% 0","transform-style":"flat",transition:"none 0s ease 0s","unicode-bidi":"normal","vertical-align":"baseline",width:"auto","z-index":"auto"},{boxSizing:"border-box",color:"inherit",font:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"})}),nr(),sr(),hr(),pr()]});o.a=fr},function(i,o,s){var v=s(0),_=s(2);function Group(i){var o=v.Children.toArray(i.children).filter(Boolean);if(1===o.length)return o;var s=i.separator,_=v.isValidElement(s),$=[o.shift()];return o.forEach((function(i,o){if(_){var ae="separator-"+(i.key||o);s=v.cloneElement(s,{key:ae})}$.push(s,i)})),$}Group.propTypes={children:_.node,separator:_.node},Group.defaultProps={separator:" "},i.exports=Group},function(i,o){var s,v,_=i.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(i){if(s===setTimeout)return setTimeout(i,0);if((s===defaultSetTimout||!s)&&setTimeout)return s=setTimeout,setTimeout(i,0);try{return s(i,0)}catch(o){try{return s.call(null,i,0)}catch(o){return s.call(this,i,0)}}}function runClearTimeout(i){if(v===clearTimeout)return clearTimeout(i);if((v===defaultClearTimeout||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(i);try{return v(i)}catch(o){try{return v.call(null,i)}catch(o){return v.call(this,i)}}}!function(){try{s="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(i){s=defaultSetTimout}try{v="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(i){v=defaultClearTimeout}}();var $,ae=[],pe=!1,we=-1;function cleanUpNextTick(){pe&&$&&(pe=!1,$.length?ae=$.concat(ae):we=-1,ae.length&&drainQueue())}function drainQueue(){if(!pe){var i=runTimeout(cleanUpNextTick);pe=!0;for(var o=ae.length;o;){for($=ae,ae=[];++we1)for(var s=1;s0?v:s)(i)}},function(i,o,s){var v=s(285),_=s(286),$=s(287),ae=s(288),pe=s(289);function ListCache(i){var o=-1,s=null==i?0:i.length;for(this.clear();++o-1)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_2__.a,null,defaultValueString);if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light",underlined:!0,title:defaultValueString},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light",underlined:!0,title:JSON.stringify(object,null,2)},"Shape")}catch(i){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_2__.a,null,defaultValueString)}return prop.required?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_1__.a,{size:"small",color:"light"},"Required"):""}},function(i,o,s){var v=s(818)(s(819));i.exports=v},function(i,o,s){"use strict";function objectToGetParams(i){var o=Object.entries(i).filter((function(i){var o=i[1];return null!=o})).map((function(i){var o=i[0],s=i[1];return"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(String(s)))}));return o.length>0?"?".concat(o.join("&")):""}s.d(o,"a",(function(){return objectToGetParams}))},function(i,o,s){"use strict";s.d(o,"a",(function(){return createIcon}));var v=s(0),_=s.n(v),__assign=function(){return __assign=Object.assign||function(i){for(var o,s=1,v=arguments.length;s0}));s1)throw new RangeError("integer-width stems only accept a single optional option");$.options[0].replace(rt,(function(i,s,v,_,$,ae){if(s)o.minimumIntegerDigits=v.length;else{if(_&&$)throw new Error("We currently do not support maximum integer digits");if(ae)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(it.test($.stem))o.minimumIntegerDigits=$.stem.length;else if(tt.test($.stem)){if($.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");$.stem.replace(tt,(function(i,s,v,_,$,ae){return"*"===v?o.minimumFractionDigits=s.length:_&&"#"===_[0]?o.maximumFractionDigits=_.length:$&&ae?(o.minimumFractionDigits=$.length,o.maximumFractionDigits=$.length+ae.length):(o.minimumFractionDigits=s.length,o.maximumFractionDigits=s.length),""}));var ae=$.options[0];"w"===ae?o=Object(v.__assign)(Object(v.__assign)({},o),{trailingZeroDisplay:"stripIfInteger"}):ae&&(o=Object(v.__assign)(Object(v.__assign)({},o),parseSignificantPrecision(ae)))}else if(nt.test($.stem))o=Object(v.__assign)(Object(v.__assign)({},o),parseSignificantPrecision($.stem));else{var pe=parseSign($.stem);pe&&(o=Object(v.__assign)(Object(v.__assign)({},o),pe));var we=parseConciseScientificAndEngineeringStem($.stem);we&&(o=Object(v.__assign)(Object(v.__assign)({},o),we))}}return o}var ot,st={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function getBestPattern(i,o){for(var s="",v=0;v>1),we=getDefaultHourSymbolFromLocale(o);for("H"!=we&&"k"!=we||(pe=0);pe-- >0;)s+="a";for(;ae-- >0;)s=we+s}else s+="J"===_?"H":_}return s}function getDefaultHourSymbolFromLocale(i){var o=i.hourCycle;if(void 0===o&&i.hourCycles&&i.hourCycles.length&&(o=i.hourCycles[0]),o)switch(o){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var s,v=i.language;return"root"!==v&&(s=i.maximize().region),(st[s||""]||st[v||""]||st["".concat(v,"-001")]||st["001"])[0]}var dt=new RegExp("^".concat(we.source,"*")),ut=new RegExp("".concat(we.source,"*$"));function createLocation(i,o){return{start:i,end:o}}var lt=!!String.prototype.startsWith&&"_a".startsWith("a",1),ct=!!String.fromCodePoint,ht=!!Object.fromEntries,pt=!!String.prototype.codePointAt,ft=!!String.prototype.trimStart,gt=!!String.prototype.trimEnd,mt=!!Number.isSafeInteger?Number.isSafeInteger:function(i){return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&Math.abs(i)<=9007199254740991},yt=!0;try{yt="a"===(null===(ot=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ot?void 0:ot[0])}catch(i){yt=!1}var vt,Rt=lt?function startsWith(i,o,s){return i.startsWith(o,s)}:function startsWith(i,o,s){return i.slice(s,s+o.length)===o},bt=ct?String.fromCodePoint:function fromCodePoint(){for(var i=[],o=0;o$;){if((s=i[$++])>1114111)throw RangeError(s+" is not a valid code point");v+=s<65536?String.fromCharCode(s):String.fromCharCode(55296+((s-=65536)>>10),s%1024+56320)}return v},Ot=ht?Object.fromEntries:function fromEntries(i){for(var o={},s=0,v=i;s=s)){var v,_=i.charCodeAt(o);return _<55296||_>56319||o+1===s||(v=i.charCodeAt(o+1))<56320||v>57343?_:v-56320+(_-55296<<10)+65536}},wt=ft?function trimStart(i){return i.trimStart()}:function trimStart(i){return i.replace(dt,"")},Ct=gt?function trimEnd(i){return i.trimEnd()}:function trimEnd(i){return i.replace(ut,"")};function RE(i,o){return new RegExp(i,o)}if(yt){var St=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vt=function matchIdentifierAtIndex(i,o){var s;return St.lastIndex=o,null!==(s=St.exec(i)[1])&&void 0!==s?s:""}}else vt=function matchIdentifierAtIndex(i,o){for(var s=[];;){var v=xt(i,o);if(void 0===v||_isWhiteSpace(v)||_isPatternSyntax(v))break;s.push(v),o+=v>=65536?2:1}return bt.apply(void 0,s)};var _t=function(){function Parser(i,o){void 0===o&&(o={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!o.ignoreTag,this.locale=o.locale,this.requiresOtherClause=!!o.requiresOtherClause,this.shouldParseSkeletons=!!o.shouldParseSkeletons}return Parser.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Parser.prototype.parseMessage=function(i,o,s){for(var v=[];!this.isEOF();){var _=this.char();if(123===_){if((pe=this.parseArgument(i,s)).err)return pe;v.push(pe.val)}else{if(125===_&&i>0)break;if(35!==_||"plural"!==o&&"selectordinal"!==o){if(60===_&&!this.ignoreTag&&47===this.peek()){if(s)break;return this.error($.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}if(60===_&&!this.ignoreTag&&_isAlpha(this.peek()||0)){if((pe=this.parseTag(i,o)).err)return pe;v.push(pe.val)}else{var pe;if((pe=this.parseLiteral(i,o)).err)return pe;v.push(pe.val)}}else{var we=this.clonePosition();this.bump(),v.push({type:ae.pound,location:createLocation(we,this.clonePosition())})}}}return{val:v,err:null}},Parser.prototype.parseTag=function(i,o){var s=this.clonePosition();this.bump();var v=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ae.literal,value:"<".concat(v,"/>"),location:createLocation(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var _=this.parseMessage(i+1,o,!0);if(_.err)return _;var pe=_.val,we=this.clonePosition();if(this.bumpIf("")?{val:{type:ae.tag,value:v,children:pe,location:createLocation(s,this.clonePosition())},err:null}:this.error($.INVALID_TAG,createLocation(we,this.clonePosition())))}return this.error($.UNCLOSED_TAG,createLocation(s,this.clonePosition()))}return this.error($.INVALID_TAG,createLocation(s,this.clonePosition()))},Parser.prototype.parseTagName=function(){var i,o=this.offset();for(this.bump();!this.isEOF()&&(45===(i=this.char())||46===i||i>=48&&i<=57||95===i||i>=97&&i<=122||i>=65&&i<=90||183==i||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8255&&i<=8256||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039);)this.bump();return this.message.slice(o,this.offset())},Parser.prototype.parseLiteral=function(i,o){for(var s=this.clonePosition(),v="";;){var _=this.tryParseQuote(o);if(_)v+=_;else{var $=this.tryParseUnquoted(i,o);if($)v+=$;else{var pe=this.tryParseLeftAngleBracket();if(!pe)break;v+=pe}}}var we=createLocation(s,this.clonePosition());return{val:{type:ae.literal,value:v,location:we},err:null}},Parser.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(_isAlpha(i=this.peek()||0)||47===i)?null:(this.bump(),"<");var i},Parser.prototype.tryParseQuote=function(i){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===i||"selectordinal"===i)break;return null;default:return null}this.bump();var o=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(39===s){if(39!==this.peek()){this.bump();break}o.push(39),this.bump()}else o.push(s);this.bump()}return bt.apply(void 0,o)},Parser.prototype.tryParseUnquoted=function(i,o){if(this.isEOF())return null;var s=this.char();return 60===s||123===s||35===s&&("plural"===o||"selectordinal"===o)||125===s&&i>0?null:(this.bump(),bt(s))},Parser.prototype.parseArgument=function(i,o){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(s,this.clonePosition()));if(125===this.char())return this.bump(),this.error($.EMPTY_ARGUMENT,createLocation(s,this.clonePosition()));var v=this.parseIdentifierIfPossible().value;if(!v)return this.error($.MALFORMED_ARGUMENT,createLocation(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ae.argument,value:v,location:createLocation(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(s,this.clonePosition())):this.parseArgumentOptions(i,o,v,s);default:return this.error($.MALFORMED_ARGUMENT,createLocation(s,this.clonePosition()))}},Parser.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),o=this.offset(),s=vt(this.message,o),v=o+s.length;return this.bumpTo(v),{value:s,location:createLocation(i,this.clonePosition())}},Parser.prototype.parseArgumentOptions=function(i,o,s,_){var we,_e=this.clonePosition(),et=this.parseIdentifierIfPossible().value,tt=this.clonePosition();switch(et){case"":return this.error($.EXPECT_ARGUMENT_TYPE,createLocation(_e,tt));case"number":case"date":case"time":this.bumpSpace();var nt=null;if(this.bumpIf(",")){this.bumpSpace();var rt=this.clonePosition();if((ht=this.parseSimpleArgStyleIfPossible()).err)return ht;if(0===(dt=Ct(ht.val)).length)return this.error($.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));nt={style:dt,styleLocation:createLocation(rt,this.clonePosition())}}if((pt=this.tryParseArgumentClose(_)).err)return pt;var it=createLocation(_,this.clonePosition());if(nt&&Rt(null==nt?void 0:nt.style,"::",0)){var ot=wt(nt.style.slice(2));if("number"===et)return(ht=this.parseNumberSkeletonFromString(ot,nt.styleLocation)).err?ht:{val:{type:ae.number,value:s,location:it,style:ht.val},err:null};if(0===ot.length)return this.error($.EXPECT_DATE_TIME_SKELETON,it);var st=ot;this.locale&&(st=getBestPattern(ot,this.locale));var dt={type:pe.dateTime,pattern:st,location:nt.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(st):{}};return{val:{type:"date"===et?ae.date:ae.time,value:s,location:it,style:dt},err:null}}return{val:{type:"number"===et?ae.number:"date"===et?ae.date:ae.time,value:s,location:it,style:null!==(we=null==nt?void 0:nt.style)&&void 0!==we?we:null},err:null};case"plural":case"selectordinal":case"select":var ut=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(ut,Object(v.__assign)({},ut)));this.bumpSpace();var lt=this.parseIdentifierIfPossible(),ct=0;if("select"!==et&&"offset"===lt.value){if(!this.bumpIf(":"))return this.error($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));var ht;if(this.bumpSpace(),(ht=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return ht;this.bumpSpace(),lt=this.parseIdentifierIfPossible(),ct=ht.val}var pt,ft=this.tryParsePluralOrSelectOptions(i,et,o,lt);if(ft.err)return ft;if((pt=this.tryParseArgumentClose(_)).err)return pt;var gt=createLocation(_,this.clonePosition());return"select"===et?{val:{type:ae.select,value:s,options:Ot(ft.val),location:gt},err:null}:{val:{type:ae.plural,value:s,options:Ot(ft.val),offset:ct,pluralType:"plural"===et?"cardinal":"ordinal",location:gt},err:null};default:return this.error($.INVALID_ARGUMENT_TYPE,createLocation(_e,tt))}},Parser.prototype.tryParseArgumentClose=function(i){return this.isEOF()||125!==this.char()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},Parser.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,o=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error($.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(s,this.clonePosition()));this.bump();break;case 123:i+=1,this.bump();break;case 125:if(!(i>0))return{val:this.message.slice(o.offset,this.offset()),err:null};i-=1;break;default:this.bump()}}return{val:this.message.slice(o.offset,this.offset()),err:null}},Parser.prototype.parseNumberSkeletonFromString=function(i,o){var s=[];try{s=parseNumberSkeletonFromString(i)}catch(i){return this.error($.INVALID_NUMBER_SKELETON,o)}return{val:{type:pe.number,tokens:s,location:o,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(s):{}},err:null}},Parser.prototype.tryParsePluralOrSelectOptions=function(i,o,s,v){for(var _,ae=!1,pe=[],we=new Set,_e=v.value,et=v.location;;){if(0===_e.length){var tt=this.clonePosition();if("select"===o||!this.bumpIf("="))break;var nt=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_SELECTOR,$.INVALID_PLURAL_ARGUMENT_SELECTOR);if(nt.err)return nt;et=createLocation(tt,this.clonePosition()),_e=this.message.slice(tt.offset,this.offset())}if(we.has(_e))return this.error("select"===o?$.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,et);"other"===_e&&(ae=!0),this.bumpSpace();var rt=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===o?$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var it=this.parseMessage(i+1,o,s);if(it.err)return it;var ot=this.tryParseArgumentClose(rt);if(ot.err)return ot;pe.push([_e,{value:it.val,location:createLocation(rt,this.clonePosition())}]),we.add(_e),this.bumpSpace(),_e=(_=this.parseIdentifierIfPossible()).value,et=_.location}return 0===pe.length?this.error("select"===o?$.EXPECT_SELECT_ARGUMENT_SELECTOR:$.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!ae?this.error($.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:pe,err:null}},Parser.prototype.tryParseDecimalInteger=function(i,o){var s=1,v=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var _=!1,$=0;!this.isEOF();){var ae=this.char();if(!(ae>=48&&ae<=57))break;_=!0,$=10*$+(ae-48),this.bump()}var pe=createLocation(v,this.clonePosition());return _?mt($*=s)?{val:$,err:null}:this.error(o,pe):this.error(i,pe)},Parser.prototype.offset=function(){return this.position.offset},Parser.prototype.isEOF=function(){return this.offset()===this.message.length},Parser.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Parser.prototype.char=function(){var i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var o=xt(this.message,i);if(void 0===o)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return o},Parser.prototype.error=function(i,o){return{val:null,err:{kind:i,message:this.message,location:o}}},Parser.prototype.bump=function(){if(!this.isEOF()){var i=this.char();10===i?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=i<65536?1:2)}},Parser.prototype.bumpIf=function(i){if(Rt(this.message,i,this.offset())){for(var o=0;o=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},Parser.prototype.bumpTo=function(i){if(this.offset()>i)throw Error("targetOffset ".concat(i," must be greater than or equal to the current offset ").concat(this.offset()));for(i=Math.min(i,this.message.length);;){var o=this.offset();if(o===i)break;if(o>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},Parser.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},Parser.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),o=this.offset(),s=this.message.charCodeAt(o+(i>=65536?2:1));return null!=s?s:null},Parser}();function _isAlpha(i){return i>=97&&i<=122||i>=65&&i<=90}function _isWhiteSpace(i){return i>=9&&i<=13||32===i||133===i||i>=8206&&i<=8207||8232===i||8233===i}function _isPatternSyntax(i){return i>=33&&i<=35||36===i||i>=37&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||i>=162&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||i>=8208&&i<=8213||i>=8214&&i<=8215||8216===i||8217===i||8218===i||i>=8219&&i<=8220||8221===i||8222===i||8223===i||i>=8224&&i<=8231||i>=8240&&i<=8248||8249===i||8250===i||i>=8251&&i<=8254||i>=8257&&i<=8259||8260===i||8261===i||8262===i||i>=8263&&i<=8273||8274===i||8275===i||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||8608===i||i>=8609&&i<=8610||8611===i||i>=8612&&i<=8613||8614===i||i>=8615&&i<=8621||8622===i||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||8658===i||8659===i||8660===i||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||8968===i||8969===i||8970===i||8971===i||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||9001===i||9002===i||i>=9003&&i<=9083||9084===i||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||9655===i||i>=9656&&i<=9664||9665===i||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||9839===i||i>=9840&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||i>=10132&&i<=10175||i>=10176&&i<=10180||10181===i||10182===i||i>=10183&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||i>=10649&&i<=10711||10712===i||10713===i||10714===i||10715===i||i>=10716&&i<=10747||10748===i||10749===i||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||11158===i||i>=11159&&i<=11263||i>=11776&&i<=11777||11778===i||11779===i||11780===i||11781===i||i>=11782&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||i>=11790&&i<=11798||11799===i||i>=11800&&i<=11801||11802===i||11803===i||11804===i||11805===i||i>=11806&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||i>=11818&&i<=11822||11823===i||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||11840===i||11841===i||11842===i||i>=11843&&i<=11855||i>=11856&&i<=11857||11858===i||i>=11859&&i<=11903||i>=12289&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||i>=12306&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||i>=12318&&i<=12319||12320===i||12336===i||64830===i||64831===i||i>=65093&&i<=65094}function pruneLocation(i){i.forEach((function(i){if(delete i.location,isSelectElement(i)||isPluralElement(i))for(var o in i.options)delete i.options[o].location,pruneLocation(i.options[o].value);else isNumberElement(i)&&isNumberSkeleton(i.style)||(isDateElement(i)||isTimeElement(i))&&isDateTimeSkeleton(i.style)?delete i.style.location:isTagElement(i)&&pruneLocation(i.children)}))}function parse(i,o){void 0===o&&(o={}),o=Object(v.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},o);var s=new _t(i,o).parse();if(s.err){var _=SyntaxError($[s.err.kind]);throw _.location=s.err.location,_.originalMessage=s.err.message,_}return(null==o?void 0:o.captureLocation)||pruneLocation(s.val),s.val}function memoize(i,o){var s=o&&o.cache?o.cache:kt,v=o&&o.serializer?o.serializer:serializerDefault;return(o&&o.strategy?o.strategy:strategyDefault)(i,{cache:s,serializer:v})}function monadic(i,o,s,v){var _,$=null==(_=v)||"number"==typeof _||"boolean"==typeof _?v:s(v),ae=o.get($);return void 0===ae&&(ae=i.call(this,v),o.set($,ae)),ae}function variadic(i,o,s){var v=Array.prototype.slice.call(arguments,3),_=s(v),$=o.get(_);return void 0===$&&($=i.apply(this,v),o.set(_,$)),$}function assemble(i,o,s,v,_){return s.bind(o,i,v,_)}function strategyDefault(i,o){return assemble(i,this,1===i.length?monadic:variadic,o.cache.create(),o.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(i){return this.cache[i]},ObjectWithoutPrototypeCache.prototype.set=function(i,o){this.cache[i]=o};var Et,kt={create:function create(){return new ObjectWithoutPrototypeCache}},At={variadic:function strategyVariadic(i,o){return assemble(i,this,variadic,o.cache.create(),o.serializer)},monadic:function strategyMonadic(i,o){return assemble(i,this,monadic,o.cache.create(),o.serializer)}};!function(i){i.MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API"}(Et||(Et={}));var Dt,Pt=function(i){function FormatError(o,s,v){var _=i.call(this,o)||this;return _.code=s,_.originalMessage=v,_}return Object(v.__extends)(FormatError,i),FormatError.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},FormatError}(Error),Tt=function(i){function InvalidValueError(o,s,v,_){return i.call(this,'Invalid values for "'.concat(o,'": "').concat(s,'". Options are "').concat(Object.keys(v).join('", "'),'"'),Et.INVALID_VALUE,_)||this}return Object(v.__extends)(InvalidValueError,i),InvalidValueError}(Pt),It=function(i){function InvalidValueTypeError(o,s,v){return i.call(this,'Value for "'.concat(o,'" must be of type ').concat(s),Et.INVALID_VALUE,v)||this}return Object(v.__extends)(InvalidValueTypeError,i),InvalidValueTypeError}(Pt),Ft=function(i){function MissingValueError(o,s){return i.call(this,'The intl string context variable "'.concat(o,'" was not provided to the string "').concat(s,'"'),Et.MISSING_VALUE,s)||this}return Object(v.__extends)(MissingValueError,i),MissingValueError}(Pt);function mergeLiteral(i){return i.length<2?i:i.reduce((function(i,o){var s=i[i.length-1];return s&&s.type===Dt.literal&&o.type===Dt.literal?s.value+=o.value:i.push(o),i}),[])}function isFormatXMLElementFn(i){return"function"==typeof i}function formatToParts(i,o,s,v,_,$,ae){if(1===i.length&&isLiteralElement(i[0]))return[{type:Dt.literal,value:i[0].value}];for(var pe=[],we=0,_e=i;we<_e.length;we++){var et=_e[we];if(isLiteralElement(et))pe.push({type:Dt.literal,value:et.value});else if(isPoundElement(et))"number"==typeof $&&pe.push({type:Dt.literal,value:s.getNumberFormat(o).format($)});else{var tt=et.value;if(!_||!(tt in _))throw new Ft(tt,ae);var nt=_[tt];if(isArgumentElement(et))nt&&"string"!=typeof nt&&"number"!=typeof nt||(nt="string"==typeof nt||"number"==typeof nt?String(nt):""),pe.push({type:"string"==typeof nt?Dt.literal:Dt.object,value:nt});else if(isDateElement(et)){var rt="string"==typeof et.style?v.date[et.style]:isDateTimeSkeleton(et.style)?et.style.parsedOptions:void 0;pe.push({type:Dt.literal,value:s.getDateTimeFormat(o,rt).format(nt)})}else if(isTimeElement(et)){rt="string"==typeof et.style?v.time[et.style]:isDateTimeSkeleton(et.style)?et.style.parsedOptions:v.time.medium;pe.push({type:Dt.literal,value:s.getDateTimeFormat(o,rt).format(nt)})}else if(isNumberElement(et)){(rt="string"==typeof et.style?v.number[et.style]:isNumberSkeleton(et.style)?et.style.parsedOptions:void 0)&&rt.scale&&(nt*=rt.scale||1),pe.push({type:Dt.literal,value:s.getNumberFormat(o,rt).format(nt)})}else{if(isTagElement(et)){var it=et.children,ot=et.value,st=_[ot];if(!isFormatXMLElementFn(st))throw new It(ot,"function",ae);var dt=st(formatToParts(it,o,s,v,_,$).map((function(i){return i.value})));Array.isArray(dt)||(dt=[dt]),pe.push.apply(pe,dt.map((function(i){return{type:"string"==typeof i?Dt.literal:Dt.object,value:i}})))}if(isSelectElement(et)){if(!(ut=et.options[nt]||et.options.other))throw new Tt(et.value,nt,Object.keys(et.options),ae);pe.push.apply(pe,formatToParts(ut.value,o,s,v,_))}else if(isPluralElement(et)){var ut;if(!(ut=et.options["=".concat(nt)])){if(!Intl.PluralRules)throw new Pt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Et.MISSING_INTL_API,ae);var lt=s.getPluralRules(o,{type:et.pluralType}).select(nt-(et.offset||0));ut=et.options[lt]||et.options.other}if(!ut)throw new Tt(et.value,nt,Object.keys(et.options),ae);pe.push.apply(pe,formatToParts(ut.value,o,s,v,_,nt-(et.offset||0)))}else;}}}return mergeLiteral(pe)}function createFastMemoizeCache(i){return{create:function(){return{get:function(o){return i[o]},set:function(o,s){i[o]=s}}}}}!function(i){i[i.literal=0]="literal",i[i.object=1]="object"}(Dt||(Dt={}));var Nt;!function(){function IntlMessageFormat(i,o,s,_){var $,ae,pe,we=this;if(void 0===o&&(o=IntlMessageFormat.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(i){var o=we.formatToParts(i);if(1===o.length)return o[0].value;var s=o.reduce((function(i,o){return i.length&&o.type===Dt.literal&&"string"==typeof i[i.length-1]?i[i.length-1]+=o.value:i.push(o.value),i}),[]);return s.length<=1?s[0]||"":s},this.formatToParts=function(i){return formatToParts(we.ast,we.locales,we.formatters,we.formats,i,void 0,we.message)},this.resolvedOptions=function(){var i;return{locale:(null===(i=we.resolvedLocale)||void 0===i?void 0:i.toString())||Intl.NumberFormat.supportedLocalesOf(we.locales)[0]}},this.getAst=function(){return we.ast},this.locales=o,this.resolvedLocale=IntlMessageFormat.resolveLocale(o),"string"==typeof i){if(this.message=i,!IntlMessageFormat.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var _e=_||{},et=(_e.formatters,Object(v.__rest)(_e,["formatters"]));this.ast=IntlMessageFormat.__parse(i,Object(v.__assign)(Object(v.__assign)({},et),{locale:this.resolvedLocale}))}else this.ast=i;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=($=IntlMessageFormat.formats,(ae=s)?Object.keys($).reduce((function(i,o){var s,_;return i[o]=(s=$[o],(_=ae[o])?Object(v.__assign)(Object(v.__assign)(Object(v.__assign)({},s||{}),_||{}),Object.keys(s).reduce((function(i,o){return i[o]=Object(v.__assign)(Object(v.__assign)({},s[o]),_[o]||{}),i}),{})):s),i}),Object(v.__assign)({},$)):$),this.formatters=_&&_.formatters||(void 0===(pe=this.formatterCache)&&(pe={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoize((function(){for(var i,o=[],s=0;s0?new Intl.Locale(o[0]):new Intl.Locale("string"==typeof i?i:i[0])}},IntlMessageFormat.__parse=parse,IntlMessageFormat.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}();!function(i){i.FORMAT_ERROR="FORMAT_ERROR",i.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",i.INVALID_CONFIG="INVALID_CONFIG",i.MISSING_DATA="MISSING_DATA",i.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Nt||(Nt={}));var Bt=function(i){function IntlError(o,s,v){var _=this,$=v?v instanceof Error?v:new Error(String(v)):void 0;return(_=i.call(this,"[@formatjs/intl Error ".concat(o,"] ").concat(s,"\n").concat($?"\n".concat($.message,"\n").concat($.stack):""))||this).code=o,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(_,IntlError),_}return Object(v.__extends)(IntlError,i),IntlError}(Error);(function(i){function UnsupportedFormatterError(o,s){return i.call(this,Nt.UNSUPPORTED_FORMATTER,o,s)||this}Object(v.__extends)(UnsupportedFormatterError,i)})(Bt),function(i){function InvalidConfigError(o,s){return i.call(this,Nt.INVALID_CONFIG,o,s)||this}Object(v.__extends)(InvalidConfigError,i)}(Bt),function(i){function MissingDataError(o,s){return i.call(this,Nt.MISSING_DATA,o,s)||this}Object(v.__extends)(MissingDataError,i)}(Bt),function(i){function MessageFormatError(o,s,v,_){var $=i.call(this,"".concat(o,"\nMessageID: ").concat(null==v?void 0:v.id,"\nDefault Message: ").concat(null==v?void 0:v.defaultMessage,"\nDescription: ").concat(null==v?void 0:v.description,"\n"),s,_)||this;return $.descriptor=v,$.locale=s,$}Object(v.__extends)(MessageFormatError,i)}(function(i){function IntlFormatError(o,s,v){var _=i.call(this,Nt.FORMAT_ERROR,"".concat(o,"\nLocale: ").concat(s,"\n"),v)||this;return _.locale=s,_}return Object(v.__extends)(IntlFormatError,i),IntlFormatError}(Bt)),function(i){function MissingTranslationError(o,s){var v=i.call(this,Nt.MISSING_TRANSLATION,'Missing message: "'.concat(o.id,'" for locale "').concat(s,'", using ').concat(o.defaultMessage?"default message (".concat("string"==typeof o.defaultMessage?o.defaultMessage:o.defaultMessage.map((function(i){var o;return null!==(o=i.value)&&void 0!==o?o:JSON.stringify(i)})).join(),")"):"id"," as fallback."))||this;return v.descriptor=o,v}Object(v.__extends)(MissingTranslationError,i)}(Bt);var Lt={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(i){0},onWarn:function(i){0}};function invariantIntlContext(i){invariant(i,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}Object(v.__assign)(Object(v.__assign)({},Lt),{textComponent:_.Fragment})},function(i,o,s){"use strict";var v,_=s(0),$=s.n(_),ae=s(223),pe=s.n(ae),we=(v=function(i,o){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},v(i,o)},function(i,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=i}v(i,o),i.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}),__assign=function(){return __assign=Object.assign||function(i){for(var o,s=1,v=arguments.length;s0&&_[_.length-1])||6!==$[0]&&2!==$[0])){ae=0;continue}if(3===$[0]&&(!_||$[1]>_[0]&&$[1]<_[3])){ae.label=$[1];break}if(6===$[0]&&ae.label<_[1]){ae.label=_[1],_=$;break}if(_&&ae.label<_[2]){ae.label=_[2],ae.ops.push($);break}_[2]&&ae.ops.pop(),ae.trys.pop();continue}$=o.call(i,ae)}catch(i){$=[6,i],v=0}finally{s=_=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}},__rest=function(i,o){var s={};for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&o.indexOf(v)<0&&(s[v]=i[v]);if(null!=i&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(v=Object.getOwnPropertySymbols(i);_0&&(!ae.multiline||ae.multiline&&"\n"!==i[ae.lastIndex-1])&&(it="(?: "+it+")",st=" "+st,ot++),s=new RegExp("^(?:"+it+")",rt)),nt&&(s=new RegExp("^"+it+"$(?!\\s)",rt)),et&&(o=ae.lastIndex),v=pe.call(_e?s:ae,st),_e?v?(v.input=v.input.slice(ot),v[0]=v[0].slice(ot),v.index=ae.lastIndex,ae.lastIndex+=v[0].length):ae.lastIndex=0:et&&v&&(ae.lastIndex=ae.global?v.index+v[0].length:o),nt&&v&&v.length>1&&we.call(v[0],s,(function(){for(_=1;_-1&&i%1==0&&i<=9007199254740991}},function(i,o){var s=/^(?:0|[1-9]\d*)$/;i.exports=function isIndex(i,o){var v=typeof i;return!!(o=null==o?9007199254740991:o)&&("number"==v||"symbol"!=v&&s.test(i))&&i>-1&&i%1==0&&ii)return!1;if((s+=o[v+1])>=i)return!0}}function isIdentifierStart(i,o){return i<65?36===i:i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&_e.test(String.fromCharCode(i)):!1!==o&&isInAstralSet(i,tt)))}function isIdentifierChar(i,o){return i<48?36===i:i<58||!(i<65)&&(i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&et.test(String.fromCharCode(i)):!1!==o&&(isInAstralSet(i,tt)||isInAstralSet(i,nt)))))}var rt=function TokenType(i,o){void 0===o&&(o={}),this.label=i,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop||null,this.updateContext=null};function binop(i,o){return new rt(i,{beforeExpr:!0,binop:o})}var it={beforeExpr:!0},ot={startsExpr:!0},st={};function kw(i,o){return void 0===o&&(o={}),o.keyword=i,st[i]=new rt(i,o)}var dt={num:new rt("num",ot),regexp:new rt("regexp",ot),string:new rt("string",ot),name:new rt("name",ot),eof:new rt("eof"),bracketL:new rt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new rt("]"),braceL:new rt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new rt("}"),parenL:new rt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new rt(")"),comma:new rt(",",it),semi:new rt(";",it),colon:new rt(":",it),dot:new rt("."),question:new rt("?",it),questionDot:new rt("?."),arrow:new rt("=>",it),template:new rt("template"),invalidTemplate:new rt("invalidTemplate"),ellipsis:new rt("...",it),backQuote:new rt("`",ot),dollarBraceL:new rt("${",{beforeExpr:!0,startsExpr:!0}),eq:new rt("=",{beforeExpr:!0,isAssign:!0}),assign:new rt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new rt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new rt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new rt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new rt("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",it),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",it),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",it),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",ot),_if:kw("if"),_return:kw("return",it),_switch:kw("switch"),_throw:kw("throw",it),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",ot),_super:kw("super",ot),_class:kw("class",ot),_extends:kw("extends",it),_export:kw("export"),_import:kw("import",ot),_null:kw("null",ot),_true:kw("true",ot),_false:kw("false",ot),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ut=/\r\n?|\n|\u2028|\u2029/,lt=new RegExp(ut.source,"g");function isNewLine(i,o){return 10===i||13===i||!o&&(8232===i||8233===i)}var ct=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ht=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pt=Object.prototype,ft=pt.hasOwnProperty,gt=pt.toString;function has(i,o){return ft.call(i,o)}var mt=Array.isArray||function(i){return"[object Array]"===gt.call(i)};function wordsRegexp(i){return new RegExp("^(?:"+i.replace(/ /g,"|")+")$")}var yt=function Position(i,o){this.line=i,this.column=o};yt.prototype.offset=function offset(i){return new yt(this.line,this.column+i)};var vt=function SourceLocation(i,o,s){this.start=o,this.end=s,null!==i.sourceFile&&(this.source=i.sourceFile)};function getLineInfo(i,o){for(var s=1,v=0;;){lt.lastIndex=v;var _=lt.exec(i);if(!(_&&_.index=2015&&(o.ecmaVersion-=2009),null==o.allowReserved&&(o.allowReserved=o.ecmaVersion<5),mt(o.onToken)){var v=o.onToken;o.onToken=function(i){return v.push(i)}}return mt(o.onComment)&&(o.onComment=pushComment(o,o.onComment)),o}function pushComment(i,o){return function(s,v,_,$,ae,pe){var we={type:s?"Block":"Line",value:v,start:_,end:$};i.locations&&(we.loc=new vt(this,ae,pe)),i.ranges&&(we.range=[_,$]),o.push(we)}}function functionFlags(i,o){return 2|(i?4:0)|(o?8:0)}var bt=function Parser(i,o,s){this.options=i=getOptions(i),this.sourceFile=i.sourceFile,this.keywords=wordsRegexp($[i.ecmaVersion>=6?6:"module"===i.sourceType?"5module":5]);var _="";if(!0!==i.allowReserved){for(var ae=i.ecmaVersion;!(_=v[ae]);ae--);"module"===i.sourceType&&(_+=" await")}this.reservedWords=wordsRegexp(_);var pe=(_?_+" ":"")+v.strict;this.reservedWordsStrict=wordsRegexp(pe),this.reservedWordsStrictBind=wordsRegexp(pe+" "+v.strictBind),this.input=String(o),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ut).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=dt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===i.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&i.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Ot={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};bt.prototype.parse=function parse(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)},Ot.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ot.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ot.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ot.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Ot.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ot.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},bt.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},bt.extend=function extend(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];for(var s=this,v=0;v=,?^&]/.test(_)||"!"===_&&"="===this.input.charAt(v+1))}i+=o[0].length,ht.lastIndex=i,i+=ht.exec(this.input)[0].length,";"===this.input[i]&&i++}},xt.eat=function(i){return this.type===i&&(this.next(),!0)},xt.isContextual=function(i){return this.type===dt.name&&this.value===i&&!this.containsEsc},xt.eatContextual=function(i){return!!this.isContextual(i)&&(this.next(),!0)},xt.expectContextual=function(i){this.eatContextual(i)||this.unexpected()},xt.canInsertSemicolon=function(){return this.type===dt.eof||this.type===dt.braceR||ut.test(this.input.slice(this.lastTokEnd,this.start))},xt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},xt.semicolon=function(){this.eat(dt.semi)||this.insertSemicolon()||this.unexpected()},xt.afterTrailingComma=function(i,o){if(this.type===i)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),o||this.next(),!0},xt.expect=function(i){this.eat(i)||this.unexpected()},xt.unexpected=function(i){this.raise(null!=i?i:this.start,"Unexpected token")},xt.checkPatternErrors=function(i,o){if(i){i.trailingComma>-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var s=o?i.parenthesizedAssign:i.parenthesizedBind;s>-1&&this.raiseRecoverable(s,"Parenthesized pattern")}},xt.checkExpressionErrors=function(i,o){if(!i)return!1;var s=i.shorthandAssign,v=i.doubleProto;if(!o)return s>=0||v>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},xt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement($,!1,!i);case dt._class:return i&&this.unexpected(),this.parseClass($,!0);case dt._if:return this.parseIfStatement($);case dt._return:return this.parseReturnStatement($);case dt._switch:return this.parseSwitchStatement($);case dt._throw:return this.parseThrowStatement($);case dt._try:return this.parseTryStatement($);case dt._const:case dt._var:return v=v||this.value,i&&"var"!==v&&this.unexpected(),this.parseVarStatement($,v);case dt._while:return this.parseWhileStatement($);case dt._with:return this.parseWithStatement($);case dt.braceL:return this.parseBlock(!0,$);case dt.semi:return this.parseEmptyStatement($);case dt._export:case dt._import:if(this.options.ecmaVersion>10&&_===dt._import){ht.lastIndex=this.pos;var ae=ht.exec(this.input),pe=this.pos+ae[0].length,we=this.input.charCodeAt(pe);if(40===we||46===we)return this.parseExpressionStatement($,this.parseExpression())}return this.options.allowImportExportEverywhere||(o||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===dt._import?this.parseImport($):this.parseExport($,s);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement($,!0,!i);var _e=this.value,et=this.parseExpression();return _===dt.name&&"Identifier"===et.type&&this.eat(dt.colon)?this.parseLabeledStatement($,_e,et,i):this.parseExpressionStatement($,et)}},Ct.parseBreakContinueStatement=function(i,o){var s="break"===o;this.next(),this.eat(dt.semi)||this.insertSemicolon()?i.label=null:this.type!==dt.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var v=0;v=6?this.eat(dt.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},Ct.parseForStatement=function(i){this.next();var o=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(St),this.enterScope(0),this.expect(dt.parenL),this.type===dt.semi)return o>-1&&this.unexpected(o),this.parseFor(i,null);var s=this.isLet();if(this.type===dt._var||this.type===dt._const||s){var v=this.startNode(),_=s?"let":this.value;return this.next(),this.parseVar(v,!0,_),this.finishNode(v,"VariableDeclaration"),(this.type===dt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===v.declarations.length?(this.options.ecmaVersion>=9&&(this.type===dt._in?o>-1&&this.unexpected(o):i.await=o>-1),this.parseForIn(i,v)):(o>-1&&this.unexpected(o),this.parseFor(i,v))}var $=new DestructuringErrors,ae=this.parseExpression(!0,$);return this.type===dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===dt._in?o>-1&&this.unexpected(o):i.await=o>-1),this.toAssignable(ae,!1,$),this.checkLVal(ae),this.parseForIn(i,ae)):(this.checkExpressionErrors($,!0),o>-1&&this.unexpected(o),this.parseFor(i,ae))},Ct.parseFunctionStatement=function(i,o,s){return this.next(),this.parseFunction(i,kt|(s?0:At),!1,o)},Ct.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(dt._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},Ct.parseReturnStatement=function(i){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(dt.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},Ct.parseSwitchStatement=function(i){var o;this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(dt.braceL),this.labels.push(_t),this.enterScope(0);for(var s=!1;this.type!==dt.braceR;)if(this.type===dt._case||this.type===dt._default){var v=this.type===dt._case;o&&this.finishNode(o,"SwitchCase"),i.cases.push(o=this.startNode()),o.consequent=[],this.next(),v?o.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,o.test=null),this.expect(dt.colon)}else o||this.unexpected(),o.consequent.push(this.parseStatement(null));return this.exitScope(),o&&this.finishNode(o,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},Ct.parseThrowStatement=function(i){return this.next(),ut.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var Et=[];Ct.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===dt._catch){var o=this.startNode();if(this.next(),this.eat(dt.parenL)){o.param=this.parseBindingAtom();var s="Identifier"===o.param.type;this.enterScope(s?32:0),this.checkLVal(o.param,s?4:2),this.expect(dt.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),o.param=null,this.enterScope(0);o.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(o,"CatchClause")}return i.finalizer=this.eat(dt._finally)?this.parseBlock():null,i.handler||i.finalizer||this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},Ct.parseVarStatement=function(i,o){return this.next(),this.parseVar(i,!1,o),this.semicolon(),this.finishNode(i,"VariableDeclaration")},Ct.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(St),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},Ct.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},Ct.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},Ct.parseLabeledStatement=function(i,o,s,v){for(var _=0,$=this.labels;_<$.length;_+=1){$[_].name===o&&this.raise(s.start,"Label '"+o+"' is already declared")}for(var ae=this.type.isLoop?"loop":this.type===dt._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var we=this.labels[pe];if(we.statementStart!==i.start)break;we.statementStart=this.start,we.kind=ae}return this.labels.push({name:o,kind:ae,statementStart:this.start}),i.body=this.parseStatement(v?-1===v.indexOf("label")?v+"label":v:"label"),this.labels.pop(),i.label=s,this.finishNode(i,"LabeledStatement")},Ct.parseExpressionStatement=function(i,o){return i.expression=o,this.semicolon(),this.finishNode(i,"ExpressionStatement")},Ct.parseBlock=function(i,o,s){for(void 0===i&&(i=!0),void 0===o&&(o=this.startNode()),o.body=[],this.expect(dt.braceL),i&&this.enterScope(0);this.type!==dt.braceR;){var v=this.parseStatement(null);o.body.push(v)}return s&&(this.strict=!1),this.next(),i&&this.exitScope(),this.finishNode(o,"BlockStatement")},Ct.parseFor=function(i,o){return i.init=o,this.expect(dt.semi),i.test=this.type===dt.semi?null:this.parseExpression(),this.expect(dt.semi),i.update=this.type===dt.parenR?null:this.parseExpression(),this.expect(dt.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},Ct.parseForIn=function(i,o){var s=this.type===dt._in;return this.next(),"VariableDeclaration"===o.type&&null!=o.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==o.kind||"Identifier"!==o.declarations[0].id.type)?this.raise(o.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===o.type&&this.raise(o.start,"Invalid left-hand side in for-loop"),i.left=o,i.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(dt.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,s?"ForInStatement":"ForOfStatement")},Ct.parseVar=function(i,o,s){for(i.declarations=[],i.kind=s;;){var v=this.startNode();if(this.parseVarId(v,s),this.eat(dt.eq)?v.init=this.parseMaybeAssign(o):"const"!==s||this.type===dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===v.id.type||o&&(this.type===dt._in||this.isContextual("of"))?v.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(dt.comma))break}return i},Ct.parseVarId=function(i,o){i.id=this.parseBindingAtom(),this.checkLVal(i.id,"var"===o?1:2,!1)};var kt=1,At=2;Ct.parseFunction=function(i,o,s,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===dt.star&&o&At&&this.unexpected(),i.generator=this.eat(dt.star)),this.options.ecmaVersion>=8&&(i.async=!!v),o&kt&&(i.id=4&o&&this.type!==dt.name?null:this.parseIdent(),!i.id||o&At||this.checkLVal(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?1:2:3));var _=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(i.async,i.generator)),o&kt||(i.id=this.type===dt.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,s,!1),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(i,o&kt?"FunctionDeclaration":"FunctionExpression")},Ct.parseFunctionParams=function(i){this.expect(dt.parenL),i.params=this.parseBindingList(dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ct.parseClass=function(i,o){this.next();var s=this.strict;this.strict=!0,this.parseClassId(i,o),this.parseClassSuper(i);var v=this.startNode(),_=!1;for(v.body=[],this.expect(dt.braceL);this.type!==dt.braceR;){var $=this.parseClassElement(null!==i.superClass);$&&(v.body.push($),"MethodDefinition"===$.type&&"constructor"===$.kind&&(_&&this.raise($.start,"Duplicate constructor in the same class"),_=!0))}return this.strict=s,this.next(),i.body=this.finishNode(v,"ClassBody"),this.finishNode(i,o?"ClassDeclaration":"ClassExpression")},Ct.parseClassElement=function(i){var o=this;if(this.eat(dt.semi))return null;var s=this.startNode(),tryContextual=function(i,v){void 0===v&&(v=!1);var _=o.start,$=o.startLoc;return!!o.eatContextual(i)&&(!(o.type===dt.parenL||v&&o.canInsertSemicolon())||(s.key&&o.unexpected(),s.computed=!1,s.key=o.startNodeAt(_,$),s.key.name=i,o.finishNode(s.key,"Identifier"),!1))};s.kind="method",s.static=tryContextual("static");var v=this.eat(dt.star),_=!1;v||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(_=!0,v=this.options.ecmaVersion>=9&&this.eat(dt.star)):tryContextual("get")?s.kind="get":tryContextual("set")&&(s.kind="set")),s.key||this.parsePropertyName(s);var $=s.key,ae=!1;return s.computed||s.static||!("Identifier"===$.type&&"constructor"===$.name||"Literal"===$.type&&"constructor"===$.value)?s.static&&"Identifier"===$.type&&"prototype"===$.name&&this.raise($.start,"Classes may not have a static property named prototype"):("method"!==s.kind&&this.raise($.start,"Constructor can't have get/set modifier"),v&&this.raise($.start,"Constructor can't be a generator"),_&&this.raise($.start,"Constructor can't be an async method"),s.kind="constructor",ae=i),this.parseClassMethod(s,v,_,ae),"get"===s.kind&&0!==s.value.params.length&&this.raiseRecoverable(s.value.start,"getter should have no params"),"set"===s.kind&&1!==s.value.params.length&&this.raiseRecoverable(s.value.start,"setter should have exactly one param"),"set"===s.kind&&"RestElement"===s.value.params[0].type&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params"),s},Ct.parseClassMethod=function(i,o,s,v){return i.value=this.parseMethod(o,s,v),this.finishNode(i,"MethodDefinition")},Ct.parseClassId=function(i,o){this.type===dt.name?(i.id=this.parseIdent(),o&&this.checkLVal(i.id,2,!1)):(!0===o&&this.unexpected(),i.id=null)},Ct.parseClassSuper=function(i){i.superClass=this.eat(dt._extends)?this.parseExprSubscripts():null},Ct.parseExport=function(i,o){if(this.next(),this.eat(dt.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(i.exported=this.parseIdent(!0),this.checkExport(o,i.exported.name,this.lastTokStart)):i.exported=null),this.expectContextual("from"),this.type!==dt.string&&this.unexpected(),i.source=this.parseExprAtom(),this.semicolon(),this.finishNode(i,"ExportAllDeclaration");if(this.eat(dt._default)){var s;if(this.checkExport(o,"default",this.lastTokStart),this.type===dt._function||(s=this.isAsyncFunction())){var v=this.startNode();this.next(),s&&this.next(),i.declaration=this.parseFunction(v,4|kt,!1,s)}else if(this.type===dt._class){var _=this.startNode();i.declaration=this.parseClass(_,"nullableID")}else i.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(i,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())i.declaration=this.parseStatement(null),"VariableDeclaration"===i.declaration.type?this.checkVariableExport(o,i.declaration.declarations):this.checkExport(o,i.declaration.id.name,i.declaration.id.start),i.specifiers=[],i.source=null;else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(o),this.eatContextual("from"))this.type!==dt.string&&this.unexpected(),i.source=this.parseExprAtom();else{for(var $=0,ae=i.specifiers;$=6&&i)switch(i.type){case"Identifier":this.inAsync&&"await"===i.name&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.toAssignable($,o),"RestElement"!==$.type||"ArrayPattern"!==$.argument.type&&"ObjectPattern"!==$.argument.type||this.raise($.argument.start,"Unexpected token")}break;case"Property":"init"!==i.kind&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,o);break;case"ArrayExpression":i.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(i.elements,o);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,o),"AssignmentPattern"===i.argument.type&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==i.operator&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,o);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(i.expression,o,s);break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!o)break;default:this.raise(i.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return i},Dt.toAssignableList=function(i,o){for(var s=i.length,v=0;v=6)switch(this.type){case dt.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(dt.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case dt.braceL:return this.parseObj(!0)}return this.parseIdent()},Dt.parseBindingList=function(i,o,s){for(var v=[],_=!0;!this.eat(i);)if(_?_=!1:this.expect(dt.comma),o&&this.type===dt.comma)v.push(null);else{if(s&&this.afterTrailingComma(i))break;if(this.type===dt.ellipsis){var $=this.parseRestBinding();this.parseBindingListItem($),v.push($),this.type===dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}var ae=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(ae),v.push(ae)}return v},Dt.parseBindingListItem=function(i){return i},Dt.parseMaybeDefault=function(i,o,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(dt.eq))return s;var v=this.startNodeAt(i,o);return v.left=s,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},Dt.checkLVal=function(i,o,s){switch(void 0===o&&(o=0),i.type){case"Identifier":2===o&&"let"===i.name&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(o?"Binding ":"Assigning to ")+i.name+" in strict mode"),s&&(has(s,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),s[i.name]=!0),0!==o&&5!==o&&this.declareName(i.name,o,i.start);break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":o&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ObjectPattern":for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.checkLVal($,o,s)}break;case"Property":this.checkLVal(i.value,o,s);break;case"ArrayPattern":for(var ae=0,pe=i.elements;ae=9&&"SpreadElement"===i.type||this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var v,_=i.key;switch(_.type){case"Identifier":v=_.name;break;case"Literal":v=String(_.value);break;default:return}var $=i.kind;if(this.options.ecmaVersion>=6)"__proto__"===v&&"init"===$&&(o.proto&&(s?s.doubleProto<0&&(s.doubleProto=_.start):this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),o.proto=!0);else{var ae=o[v="$"+v];if(ae)("init"===$?this.strict&&ae.init||ae.get||ae.set:ae.init||ae[$])&&this.raiseRecoverable(_.start,"Redefinition of property");else ae=o[v]={init:!1,get:!1,set:!1};ae[$]=!0}}},Pt.parseExpression=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeAssign(i,o);if(this.type===dt.comma){var $=this.startNodeAt(s,v);for($.expressions=[_];this.eat(dt.comma);)$.expressions.push(this.parseMaybeAssign(i,o));return this.finishNode($,"SequenceExpression")}return _},Pt.parseMaybeAssign=function(i,o,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var v=!1,_=-1,$=-1;o?(_=o.parenthesizedAssign,$=o.trailingComma,o.parenthesizedAssign=o.trailingComma=-1):(o=new DestructuringErrors,v=!0);var ae=this.start,pe=this.startLoc;this.type!==dt.parenL&&this.type!==dt.name||(this.potentialArrowAt=this.start);var we=this.parseMaybeConditional(i,o);if(s&&(we=s.call(this,we,ae,pe)),this.type.isAssign){var _e=this.startNodeAt(ae,pe);return _e.operator=this.value,_e.left=this.type===dt.eq?this.toAssignable(we,!1,o):we,v||(o.parenthesizedAssign=o.trailingComma=o.doubleProto=-1),o.shorthandAssign>=_e.left.start&&(o.shorthandAssign=-1),this.checkLVal(we),this.next(),_e.right=this.parseMaybeAssign(i),this.finishNode(_e,"AssignmentExpression")}return v&&this.checkExpressionErrors(o,!0),_>-1&&(o.parenthesizedAssign=_),$>-1&&(o.trailingComma=$),we},Pt.parseMaybeConditional=function(i,o){var s=this.start,v=this.startLoc,_=this.parseExprOps(i,o);if(this.checkExpressionErrors(o))return _;if(this.eat(dt.question)){var $=this.startNodeAt(s,v);return $.test=_,$.consequent=this.parseMaybeAssign(),this.expect(dt.colon),$.alternate=this.parseMaybeAssign(i),this.finishNode($,"ConditionalExpression")}return _},Pt.parseExprOps=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeUnary(o,!1);return this.checkExpressionErrors(o)||_.start===s&&"ArrowFunctionExpression"===_.type?_:this.parseExprOp(_,s,v,-1,i)},Pt.parseExprOp=function(i,o,s,v,_){var $=this.type.binop;if(null!=$&&(!_||this.type!==dt._in)&&$>v){var ae=this.type===dt.logicalOR||this.type===dt.logicalAND,pe=this.type===dt.coalesce;pe&&($=dt.logicalAND.binop);var we=this.value;this.next();var _e=this.start,et=this.startLoc,tt=this.parseExprOp(this.parseMaybeUnary(null,!1),_e,et,$,_),nt=this.buildBinary(o,s,i,tt,we,ae||pe);return(ae&&this.type===dt.coalesce||pe&&(this.type===dt.logicalOR||this.type===dt.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(nt,o,s,v,_)}return i},Pt.buildBinary=function(i,o,s,v,_,$){var ae=this.startNodeAt(i,o);return ae.left=s,ae.operator=_,ae.right=v,this.finishNode(ae,$?"LogicalExpression":"BinaryExpression")},Pt.parseMaybeUnary=function(i,o){var s,v=this.start,_=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))s=this.parseAwait(),o=!0;else if(this.type.prefix){var $=this.startNode(),ae=this.type===dt.incDec;$.operator=this.value,$.prefix=!0,this.next(),$.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(i,!0),ae?this.checkLVal($.argument):this.strict&&"delete"===$.operator&&"Identifier"===$.argument.type?this.raiseRecoverable($.start,"Deleting local variable in strict mode"):o=!0,s=this.finishNode($,ae?"UpdateExpression":"UnaryExpression")}else{if(s=this.parseExprSubscripts(i),this.checkExpressionErrors(i))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var pe=this.startNodeAt(v,_);pe.operator=this.value,pe.prefix=!1,pe.argument=s,this.checkLVal(s),this.next(),s=this.finishNode(pe,"UpdateExpression")}}return!o&&this.eat(dt.starstar)?this.buildBinary(v,_,s,this.parseMaybeUnary(null,!1),"**",!1):s},Pt.parseExprSubscripts=function(i){var o=this.start,s=this.startLoc,v=this.parseExprAtom(i);if("ArrowFunctionExpression"===v.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return v;var _=this.parseSubscripts(v,o,s);return i&&"MemberExpression"===_.type&&(i.parenthesizedAssign>=_.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=_.start&&(i.parenthesizedBind=-1)),_},Pt.parseSubscripts=function(i,o,s,v){for(var _=this.options.ecmaVersion>=8&&"Identifier"===i.type&&"async"===i.name&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&i.end-i.start==5&&this.potentialArrowAt===i.start,$=!1;;){var ae=this.parseSubscript(i,o,s,v,_,$);if(ae.optional&&($=!0),ae===i||"ArrowFunctionExpression"===ae.type){if($){var pe=this.startNodeAt(o,s);pe.expression=ae,ae=this.finishNode(pe,"ChainExpression")}return ae}i=ae}},Pt.parseSubscript=function(i,o,s,v,_,$){var ae=this.options.ecmaVersion>=11,pe=ae&&this.eat(dt.questionDot);v&&pe&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var we=this.eat(dt.bracketL);if(we||pe&&this.type!==dt.parenL&&this.type!==dt.backQuote||this.eat(dt.dot)){var _e=this.startNodeAt(o,s);_e.object=i,_e.property=we?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),_e.computed=!!we,we&&this.expect(dt.bracketR),ae&&(_e.optional=pe),i=this.finishNode(_e,"MemberExpression")}else if(!v&&this.eat(dt.parenL)){var et=new DestructuringErrors,tt=this.yieldPos,nt=this.awaitPos,rt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var it=this.parseExprList(dt.parenR,this.options.ecmaVersion>=8,!1,et);if(_&&!pe&&!this.canInsertSemicolon()&&this.eat(dt.arrow))return this.checkPatternErrors(et,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=tt,this.awaitPos=nt,this.awaitIdentPos=rt,this.parseArrowExpression(this.startNodeAt(o,s),it,!0);this.checkExpressionErrors(et,!0),this.yieldPos=tt||this.yieldPos,this.awaitPos=nt||this.awaitPos,this.awaitIdentPos=rt||this.awaitIdentPos;var ot=this.startNodeAt(o,s);ot.callee=i,ot.arguments=it,ae&&(ot.optional=pe),i=this.finishNode(ot,"CallExpression")}else if(this.type===dt.backQuote){(pe||$)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var st=this.startNodeAt(o,s);st.tag=i,st.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(st,"TaggedTemplateExpression")}return i},Pt.parseExprAtom=function(i){this.type===dt.slash&&this.readRegexp();var o,s=this.potentialArrowAt===this.start;switch(this.type){case dt._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),o=this.startNode(),this.next(),this.type!==dt.parenL||this.allowDirectSuper||this.raise(o.start,"super() call outside constructor of a subclass"),this.type!==dt.dot&&this.type!==dt.bracketL&&this.type!==dt.parenL&&this.unexpected(),this.finishNode(o,"Super");case dt._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case dt.name:var v=this.start,_=this.startLoc,$=this.containsEsc,ae=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!$&&"async"===ae.name&&!this.canInsertSemicolon()&&this.eat(dt._function))return this.parseFunction(this.startNodeAt(v,_),0,!1,!0);if(s&&!this.canInsertSemicolon()){if(this.eat(dt.arrow))return this.parseArrowExpression(this.startNodeAt(v,_),[ae],!1);if(this.options.ecmaVersion>=8&&"async"===ae.name&&this.type===dt.name&&!$)return ae=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(dt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,_),[ae],!0)}return ae;case dt.regexp:var pe=this.value;return(o=this.parseLiteral(pe.value)).regex={pattern:pe.pattern,flags:pe.flags},o;case dt.num:case dt.string:return this.parseLiteral(this.value);case dt._null:case dt._true:case dt._false:return(o=this.startNode()).value=this.type===dt._null?null:this.type===dt._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case dt.parenL:var we=this.start,_e=this.parseParenAndDistinguishExpression(s);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_e)&&(i.parenthesizedAssign=we),i.parenthesizedBind<0&&(i.parenthesizedBind=we)),_e;case dt.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(dt.bracketR,!0,!0,i),this.finishNode(o,"ArrayExpression");case dt.braceL:return this.parseObj(!1,i);case dt._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case dt._class:return this.parseClass(this.startNode(),!1);case dt._new:return this.parseNew();case dt.backQuote:return this.parseTemplate();case dt._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Pt.parseExprImport=function(){var i=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var o=this.parseIdent(!0);switch(this.type){case dt.parenL:return this.parseDynamicImport(i);case dt.dot:return i.meta=o,this.parseImportMeta(i);default:this.unexpected()}},Pt.parseDynamicImport=function(i){if(this.next(),i.source=this.parseMaybeAssign(),!this.eat(dt.parenR)){var o=this.start;this.eat(dt.comma)&&this.eat(dt.parenR)?this.raiseRecoverable(o,"Trailing comma is not allowed in import()"):this.unexpected(o)}return this.finishNode(i,"ImportExpression")},Pt.parseImportMeta=function(i){this.next();var o=this.containsEsc;return i.property=this.parseIdent(!0),"meta"!==i.property.name&&this.raiseRecoverable(i.property.start,"The only valid meta property for import is 'import.meta'"),o&&this.raiseRecoverable(i.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(i.start,"Cannot use 'import.meta' outside a module"),this.finishNode(i,"MetaProperty")},Pt.parseLiteral=function(i){var o=this.startNode();return o.value=i,o.raw=this.input.slice(this.start,this.end),110===o.raw.charCodeAt(o.raw.length-1)&&(o.bigint=o.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(o,"Literal")},Pt.parseParenExpression=function(){this.expect(dt.parenL);var i=this.parseExpression();return this.expect(dt.parenR),i},Pt.parseParenAndDistinguishExpression=function(i){var o,s=this.start,v=this.startLoc,_=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $,ae=this.start,pe=this.startLoc,we=[],_e=!0,et=!1,tt=new DestructuringErrors,nt=this.yieldPos,rt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==dt.parenR;){if(_e?_e=!1:this.expect(dt.comma),_&&this.afterTrailingComma(dt.parenR,!0)){et=!0;break}if(this.type===dt.ellipsis){$=this.start,we.push(this.parseParenItem(this.parseRestBinding())),this.type===dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}we.push(this.parseMaybeAssign(!1,tt,this.parseParenItem))}var it=this.start,ot=this.startLoc;if(this.expect(dt.parenR),i&&!this.canInsertSemicolon()&&this.eat(dt.arrow))return this.checkPatternErrors(tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nt,this.awaitPos=rt,this.parseParenArrowList(s,v,we);we.length&&!et||this.unexpected(this.lastTokStart),$&&this.unexpected($),this.checkExpressionErrors(tt,!0),this.yieldPos=nt||this.yieldPos,this.awaitPos=rt||this.awaitPos,we.length>1?((o=this.startNodeAt(ae,pe)).expressions=we,this.finishNodeAt(o,"SequenceExpression",it,ot)):o=we[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var st=this.startNodeAt(s,v);return st.expression=o,this.finishNode(st,"ParenthesizedExpression")}return o},Pt.parseParenItem=function(i){return i},Pt.parseParenArrowList=function(i,o,s){return this.parseArrowExpression(this.startNodeAt(i,o),s)};var Tt=[];Pt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var i=this.startNode(),o=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(dt.dot)){i.meta=o;var s=this.containsEsc;return i.property=this.parseIdent(!0),"target"!==i.property.name&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(i.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(i.start,"'new.target' can only be used in functions"),this.finishNode(i,"MetaProperty")}var v=this.start,_=this.startLoc,$=this.type===dt._import;return i.callee=this.parseSubscripts(this.parseExprAtom(),v,_,!0),$&&"ImportExpression"===i.callee.type&&this.raise(v,"Cannot use new with import()"),this.eat(dt.parenL)?i.arguments=this.parseExprList(dt.parenR,this.options.ecmaVersion>=8,!1):i.arguments=Tt,this.finishNode(i,"NewExpression")},Pt.parseTemplateElement=function(i){var o=i.isTagged,s=this.startNode();return this.type===dt.invalidTemplate?(o||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===dt.backQuote,this.finishNode(s,"TemplateElement")},Pt.parseTemplate=function(i){void 0===i&&(i={});var o=i.isTagged;void 0===o&&(o=!1);var s=this.startNode();this.next(),s.expressions=[];var v=this.parseTemplateElement({isTagged:o});for(s.quasis=[v];!v.tail;)this.type===dt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(dt.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(dt.braceR),s.quasis.push(v=this.parseTemplateElement({isTagged:o}));return this.next(),this.finishNode(s,"TemplateLiteral")},Pt.isAsyncProp=function(i){return!i.computed&&"Identifier"===i.key.type&&"async"===i.key.name&&(this.type===dt.name||this.type===dt.num||this.type===dt.string||this.type===dt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===dt.star)&&!ut.test(this.input.slice(this.lastTokEnd,this.start))},Pt.parseObj=function(i,o){var s=this.startNode(),v=!0,_={};for(s.properties=[],this.next();!this.eat(dt.braceR);){if(v)v=!1;else if(this.expect(dt.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(dt.braceR))break;var $=this.parseProperty(i,o);i||this.checkPropClash($,_,o),s.properties.push($)}return this.finishNode(s,i?"ObjectPattern":"ObjectExpression")},Pt.parseProperty=function(i,o){var s,v,_,$,ae=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(dt.ellipsis))return i?(ae.argument=this.parseIdent(!1),this.type===dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(ae,"RestElement")):(this.type===dt.parenL&&o&&(o.parenthesizedAssign<0&&(o.parenthesizedAssign=this.start),o.parenthesizedBind<0&&(o.parenthesizedBind=this.start)),ae.argument=this.parseMaybeAssign(!1,o),this.type===dt.comma&&o&&o.trailingComma<0&&(o.trailingComma=this.start),this.finishNode(ae,"SpreadElement"));this.options.ecmaVersion>=6&&(ae.method=!1,ae.shorthand=!1,(i||o)&&(_=this.start,$=this.startLoc),i||(s=this.eat(dt.star)));var pe=this.containsEsc;return this.parsePropertyName(ae),!i&&!pe&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(ae)?(v=!0,s=this.options.ecmaVersion>=9&&this.eat(dt.star),this.parsePropertyName(ae,o)):v=!1,this.parsePropertyValue(ae,i,s,v,_,$,o,pe),this.finishNode(ae,"Property")},Pt.parsePropertyValue=function(i,o,s,v,_,$,ae,pe){if((s||v)&&this.type===dt.colon&&this.unexpected(),this.eat(dt.colon))i.value=o?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,ae),i.kind="init";else if(this.options.ecmaVersion>=6&&this.type===dt.parenL)o&&this.unexpected(),i.kind="init",i.method=!0,i.value=this.parseMethod(s,v);else if(o||pe||!(this.options.ecmaVersion>=5)||i.computed||"Identifier"!==i.key.type||"get"!==i.key.name&&"set"!==i.key.name||this.type===dt.comma||this.type===dt.braceR||this.type===dt.eq)this.options.ecmaVersion>=6&&!i.computed&&"Identifier"===i.key.type?((s||v)&&this.unexpected(),this.checkUnreserved(i.key),"await"!==i.key.name||this.awaitIdentPos||(this.awaitIdentPos=_),i.kind="init",o?i.value=this.parseMaybeDefault(_,$,i.key):this.type===dt.eq&&ae?(ae.shorthandAssign<0&&(ae.shorthandAssign=this.start),i.value=this.parseMaybeDefault(_,$,i.key)):i.value=i.key,i.shorthand=!0):this.unexpected();else{(s||v)&&this.unexpected(),i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);var we="get"===i.kind?0:1;if(i.value.params.length!==we){var _e=i.value.start;"get"===i.kind?this.raiseRecoverable(_e,"getter should have no params"):this.raiseRecoverable(_e,"setter should have exactly one param")}else"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}},Pt.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(dt.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(dt.bracketR),i.key;i.computed=!1}return i.key=this.type===dt.num||this.type===dt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Pt.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},Pt.parseMethod=function(i,o,s){var v=this.startNode(),_=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.initFunction(v),this.options.ecmaVersion>=6&&(v.generator=i),this.options.ecmaVersion>=8&&(v.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(o,v.generator)|(s?128:0)),this.expect(dt.parenL),v.params=this.parseBindingList(dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(v,!1,!0),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(v,"FunctionExpression")},Pt.parseArrowExpression=function(i,o,s){var v=this.yieldPos,_=this.awaitPos,$=this.awaitIdentPos;return this.enterScope(16|functionFlags(s,!1)),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(o,!0),this.parseFunctionBody(i,!0,!1),this.yieldPos=v,this.awaitPos=_,this.awaitIdentPos=$,this.finishNode(i,"ArrowFunctionExpression")},Pt.parseFunctionBody=function(i,o,s){var v=o&&this.type!==dt.braceL,_=this.strict,$=!1;if(v)i.body=this.parseMaybeAssign(),i.expression=!0,this.checkParams(i,!1);else{var ae=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);_&&!ae||($=this.strictDirective(this.end))&&ae&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list");var pe=this.labels;this.labels=[],$&&(this.strict=!0),this.checkParams(i,!_&&!$&&!o&&!s&&this.isSimpleParamList(i.params)),this.strict&&i.id&&this.checkLVal(i.id,5),i.body=this.parseBlock(!1,void 0,$&&!_),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=pe}this.exitScope()},Pt.isSimpleParamList=function(i){for(var o=0,s=i;o-1||_.functions.indexOf(i)>-1||_.var.indexOf(i)>-1,_.lexical.push(i),this.inModule&&1&_.flags&&delete this.undefinedExports[i]}else if(4===o){this.currentScope().lexical.push(i)}else if(3===o){var $=this.currentScope();v=this.treatFunctionsAsVar?$.lexical.indexOf(i)>-1:$.lexical.indexOf(i)>-1||$.var.indexOf(i)>-1,$.functions.push(i)}else for(var ae=this.scopeStack.length-1;ae>=0;--ae){var pe=this.scopeStack[ae];if(pe.lexical.indexOf(i)>-1&&!(32&pe.flags&&pe.lexical[0]===i)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(i)>-1){v=!0;break}if(pe.var.push(i),this.inModule&&1&pe.flags&&delete this.undefinedExports[i],3&pe.flags)break}v&&this.raiseRecoverable(s,"Identifier '"+i+"' has already been declared")},Ft.checkLocalExport=function(i){-1===this.scopeStack[0].lexical.indexOf(i.name)&&-1===this.scopeStack[0].var.indexOf(i.name)&&(this.undefinedExports[i.name]=i)},Ft.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ft.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags)return o}},Ft.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags&&!(16&o.flags))return o}};var Bt=function Node(i,o,s){this.type="",this.start=o,this.end=0,i.options.locations&&(this.loc=new vt(i,s)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[o,0])},Lt=bt.prototype;function finishNodeAt(i,o,s,v){return i.type=o,i.end=s,this.options.locations&&(i.loc.end=v),this.options.ranges&&(i.range[1]=s),i}Lt.startNode=function(){return new Bt(this,this.start,this.startLoc)},Lt.startNodeAt=function(i,o){return new Bt(this,i,o)},Lt.finishNode=function(i,o){return finishNodeAt.call(this,i,o,this.lastTokEnd,this.lastTokEndLoc)},Lt.finishNodeAt=function(i,o,s,v){return finishNodeAt.call(this,i,o,s,v)};var jt=function TokContext(i,o,s,v,_){this.token=i,this.isExpr=!!o,this.preserveSpace=!!s,this.override=v,this.generator=!!_},Mt={b_stat:new jt("{",!1),b_expr:new jt("{",!0),b_tmpl:new jt("${",!1),p_stat:new jt("(",!1),p_expr:new jt("(",!0),q_tmpl:new jt("`",!0,!0,(function(i){return i.tryReadTemplateToken()})),f_stat:new jt("function",!1),f_expr:new jt("function",!0),f_expr_gen:new jt("function",!0,!1,null,!0),f_gen:new jt("function",!1,!1,null,!0)},Qt=bt.prototype;Qt.initialContext=function(){return[Mt.b_stat]},Qt.braceIsBlock=function(i){var o=this.curContext();return o===Mt.f_expr||o===Mt.f_stat||(i!==dt.colon||o!==Mt.b_stat&&o!==Mt.b_expr?i===dt._return||i===dt.name&&this.exprAllowed?ut.test(this.input.slice(this.lastTokEnd,this.start)):i===dt._else||i===dt.semi||i===dt.eof||i===dt.parenR||i===dt.arrow||(i===dt.braceL?o===Mt.b_stat:i!==dt._var&&i!==dt._const&&i!==dt.name&&!this.exprAllowed):!o.isExpr)},Qt.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var o=this.context[i];if("function"===o.token)return o.generator}return!1},Qt.updateContext=function(i){var o,s=this.type;s.keyword&&i===dt.dot?this.exprAllowed=!1:(o=s.updateContext)?o.call(this,i):this.exprAllowed=s.beforeExpr},dt.parenR.updateContext=dt.braceR.updateContext=function(){if(1!==this.context.length){var i=this.context.pop();i===Mt.b_stat&&"function"===this.curContext().token&&(i=this.context.pop()),this.exprAllowed=!i.isExpr}else this.exprAllowed=!0},dt.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?Mt.b_stat:Mt.b_expr),this.exprAllowed=!0},dt.dollarBraceL.updateContext=function(){this.context.push(Mt.b_tmpl),this.exprAllowed=!0},dt.parenL.updateContext=function(i){var o=i===dt._if||i===dt._for||i===dt._with||i===dt._while;this.context.push(o?Mt.p_stat:Mt.p_expr),this.exprAllowed=!0},dt.incDec.updateContext=function(){},dt._function.updateContext=dt._class.updateContext=function(i){!i.beforeExpr||i===dt.semi||i===dt._else||i===dt._return&&ut.test(this.input.slice(this.lastTokEnd,this.start))||(i===dt.colon||i===dt.braceL)&&this.curContext()===Mt.b_stat?this.context.push(Mt.f_stat):this.context.push(Mt.f_expr),this.exprAllowed=!1},dt.backQuote.updateContext=function(){this.curContext()===Mt.q_tmpl?this.context.pop():this.context.push(Mt.q_tmpl),this.exprAllowed=!1},dt.star.updateContext=function(i){if(i===dt._function){var o=this.context.length-1;this.context[o]===Mt.f_expr?this.context[o]=Mt.f_expr_gen:this.context[o]=Mt.f_gen}this.exprAllowed=!0},dt.name.updateContext=function(i){var o=!1;this.options.ecmaVersion>=6&&i!==dt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(o=!0),this.exprAllowed=o};var Vt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ut=Vt+" Extended_Pictographic",Wt={9:Vt,10:Ut,11:Ut},$t="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",qt="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",zt=qt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Zt={9:qt,10:zt,11:zt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},Ht={};function buildUnicodeData(i){var o=Ht[i]={binary:wordsRegexp(Wt[i]+" "+$t),nonBinary:{General_Category:wordsRegexp($t),Script:wordsRegexp(Zt[i])}};o.nonBinary.Script_Extensions=o.nonBinary.Script,o.nonBinary.gc=o.nonBinary.General_Category,o.nonBinary.sc=o.nonBinary.Script,o.nonBinary.scx=o.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var Gt=bt.prototype,Xt=function RegExpValidationState(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Ht[i.options.ecmaVersion>=11?11:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function isSyntaxCharacter(i){return 36===i||i>=40&&i<=43||46===i||63===i||i>=91&&i<=94||i>=123&&i<=125}function isRegExpIdentifierStart(i){return isIdentifierStart(i,!0)||36===i||95===i}function isRegExpIdentifierPart(i){return isIdentifierChar(i,!0)||36===i||95===i||8204===i||8205===i}function isControlLetter(i){return i>=65&&i<=90||i>=97&&i<=122}function isCharacterClassEscape(i){return 100===i||68===i||115===i||83===i||119===i||87===i}function isUnicodePropertyNameCharacter(i){return isControlLetter(i)||95===i}function isUnicodePropertyValueCharacter(i){return isUnicodePropertyNameCharacter(i)||isDecimalDigit(i)}function isDecimalDigit(i){return i>=48&&i<=57}function isHexDigit(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function hexToInt(i){return i>=65&&i<=70?i-65+10:i>=97&&i<=102?i-97+10:i-48}function isOctalDigit(i){return i>=48&&i<=55}Xt.prototype.reset=function reset(i,o,s){var v=-1!==s.indexOf("u");this.start=0|i,this.source=o+"",this.flags=s,this.switchU=v&&this.parser.options.ecmaVersion>=6,this.switchN=v&&this.parser.options.ecmaVersion>=9},Xt.prototype.raise=function raise(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)},Xt.prototype.at=function at(i,o){void 0===o&&(o=!1);var s=this.source,v=s.length;if(i>=v)return-1;var _=s.charCodeAt(i);if(!o&&!this.switchU||_<=55295||_>=57344||i+1>=v)return _;var $=s.charCodeAt(i+1);return $>=56320&&$<=57343?(_<<10)+$-56613888:_},Xt.prototype.nextIndex=function nextIndex(i,o){void 0===o&&(o=!1);var s=this.source,v=s.length;if(i>=v)return v;var _,$=s.charCodeAt(i);return!o&&!this.switchU||$<=55295||$>=57344||i+1>=v||(_=s.charCodeAt(i+1))<56320||_>57343?i+1:i+2},Xt.prototype.current=function current(i){return void 0===i&&(i=!1),this.at(this.pos,i)},Xt.prototype.lookahead=function lookahead(i){return void 0===i&&(i=!1),this.at(this.nextIndex(this.pos,i),i)},Xt.prototype.advance=function advance(i){void 0===i&&(i=!1),this.pos=this.nextIndex(this.pos,i)},Xt.prototype.eat=function eat(i,o){return void 0===o&&(o=!1),this.current(o)===i&&(this.advance(o),!0)},Gt.validateRegExpFlags=function(i){for(var o=i.validFlags,s=i.flags,v=0;v-1&&this.raise(i.start,"Duplicate regular expression flag")}},Gt.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&i.groupNames.length>0&&(i.switchN=!0,this.regexp_pattern(i))},Gt.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames.length=0,i.backReferenceNames.length=0,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var o=0,s=i.backReferenceNames;o=9&&(s=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!s,!0}return i.pos=o,!1},Gt.regexp_eatQuantifier=function(i,o){return void 0===o&&(o=!1),!!this.regexp_eatQuantifierPrefix(i,o)&&(i.eat(63),!0)},Gt.regexp_eatQuantifierPrefix=function(i,o){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,o)},Gt.regexp_eatBracedQuantifier=function(i,o){var s=i.pos;if(i.eat(123)){var v=0,_=-1;if(this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(_=i.lastIntValue),i.eat(125)))return-1!==_&&_=9?this.regexp_groupSpecifier(i):63===i.current()&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},Gt.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},Gt.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},Gt.regexp_eatSyntaxCharacter=function(i){var o=i.current();return!!isSyntaxCharacter(o)&&(i.lastIntValue=o,i.advance(),!0)},Gt.regexp_eatPatternCharacters=function(i){for(var o=i.pos,s=0;-1!==(s=i.current())&&!isSyntaxCharacter(s);)i.advance();return i.pos!==o},Gt.regexp_eatExtendedPatternCharacter=function(i){var o=i.current();return!(-1===o||36===o||o>=40&&o<=43||46===o||63===o||91===o||94===o||124===o)&&(i.advance(),!0)},Gt.regexp_groupSpecifier=function(i){if(i.eat(63)){if(this.regexp_eatGroupName(i))return-1!==i.groupNames.indexOf(i.lastStringValue)&&i.raise("Duplicate capture group name"),void i.groupNames.push(i.lastStringValue);i.raise("Invalid group")}},Gt.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},Gt.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=codePointToString(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=codePointToString(i.lastIntValue);return!0}return!1},Gt.regexp_eatRegExpIdentifierStart=function(i){var o=i.pos,s=this.options.ecmaVersion>=11,v=i.current(s);return i.advance(s),92===v&&this.regexp_eatRegExpUnicodeEscapeSequence(i,s)&&(v=i.lastIntValue),isRegExpIdentifierStart(v)?(i.lastIntValue=v,!0):(i.pos=o,!1)},Gt.regexp_eatRegExpIdentifierPart=function(i){var o=i.pos,s=this.options.ecmaVersion>=11,v=i.current(s);return i.advance(s),92===v&&this.regexp_eatRegExpUnicodeEscapeSequence(i,s)&&(v=i.lastIntValue),isRegExpIdentifierPart(v)?(i.lastIntValue=v,!0):(i.pos=o,!1)},Gt.regexp_eatAtomEscape=function(i){return!!(this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i))||(i.switchU&&(99===i.current()&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},Gt.regexp_eatBackReference=function(i){var o=i.pos;if(this.regexp_eatDecimalEscape(i)){var s=i.lastIntValue;if(i.switchU)return s>i.maxBackReference&&(i.maxBackReference=s),!0;if(s<=i.numCapturingParens)return!0;i.pos=o}return!1},Gt.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},Gt.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i,!1)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},Gt.regexp_eatCControlLetter=function(i){var o=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=o}return!1},Gt.regexp_eatZero=function(i){return 48===i.current()&&!isDecimalDigit(i.lookahead())&&(i.lastIntValue=0,i.advance(),!0)},Gt.regexp_eatControlEscape=function(i){var o=i.current();return 116===o?(i.lastIntValue=9,i.advance(),!0):110===o?(i.lastIntValue=10,i.advance(),!0):118===o?(i.lastIntValue=11,i.advance(),!0):102===o?(i.lastIntValue=12,i.advance(),!0):114===o&&(i.lastIntValue=13,i.advance(),!0)},Gt.regexp_eatControlLetter=function(i){var o=i.current();return!!isControlLetter(o)&&(i.lastIntValue=o%32,i.advance(),!0)},Gt.regexp_eatRegExpUnicodeEscapeSequence=function(i,o){void 0===o&&(o=!1);var s,v=i.pos,_=o||i.switchU;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var $=i.lastIntValue;if(_&&$>=55296&&$<=56319){var ae=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var pe=i.lastIntValue;if(pe>=56320&&pe<=57343)return i.lastIntValue=1024*($-55296)+(pe-56320)+65536,!0}i.pos=ae,i.lastIntValue=$}return!0}if(_&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&((s=i.lastIntValue)>=0&&s<=1114111))return!0;_&&i.raise("Invalid unicode escape"),i.pos=v}return!1},Gt.regexp_eatIdentityEscape=function(i){if(i.switchU)return!!this.regexp_eatSyntaxCharacter(i)||!!i.eat(47)&&(i.lastIntValue=47,!0);var o=i.current();return!(99===o||i.switchN&&107===o)&&(i.lastIntValue=o,i.advance(),!0)},Gt.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var o=i.current();if(o>=49&&o<=57){do{i.lastIntValue=10*i.lastIntValue+(o-48),i.advance()}while((o=i.current())>=48&&o<=57);return!0}return!1},Gt.regexp_eatCharacterClassEscape=function(i){var o=i.current();if(isCharacterClassEscape(o))return i.lastIntValue=-1,i.advance(),!0;if(i.switchU&&this.options.ecmaVersion>=9&&(80===o||112===o)){if(i.lastIntValue=-1,i.advance(),i.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(i)&&i.eat(125))return!0;i.raise("Invalid property name")}return!1},Gt.regexp_eatUnicodePropertyValueExpression=function(i){var o=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var s=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,s,v),!0}}if(i.pos=o,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var _=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,_),!0}return!1},Gt.regexp_validateUnicodePropertyNameAndValue=function(i,o,s){has(i.unicodeProperties.nonBinary,o)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[o].test(s)||i.raise("Invalid property value")},Gt.regexp_validateUnicodePropertyNameOrValue=function(i,o){i.unicodeProperties.binary.test(o)||i.raise("Invalid property name")},Gt.regexp_eatUnicodePropertyName=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyNameCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},Gt.regexp_eatUnicodePropertyValue=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyValueCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},Gt.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},Gt.regexp_eatCharacterClass=function(i){if(i.eat(91)){if(i.eat(94),this.regexp_classRanges(i),i.eat(93))return!0;i.raise("Unterminated character class")}return!1},Gt.regexp_classRanges=function(i){for(;this.regexp_eatClassAtom(i);){var o=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var s=i.lastIntValue;!i.switchU||-1!==o&&-1!==s||i.raise("Invalid character class"),-1!==o&&-1!==s&&o>s&&i.raise("Range out of order in character class")}}},Gt.regexp_eatClassAtom=function(i){var o=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var s=i.current();(99===s||isOctalDigit(s))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=o}var v=i.current();return 93!==v&&(i.lastIntValue=v,i.advance(),!0)},Gt.regexp_eatClassEscape=function(i){var o=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=o}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},Gt.regexp_eatClassControlLetter=function(i){var o=i.current();return!(!isDecimalDigit(o)&&95!==o)&&(i.lastIntValue=o%32,i.advance(),!0)},Gt.regexp_eatHexEscapeSequence=function(i){var o=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=o}return!1},Gt.regexp_eatDecimalDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isDecimalDigit(s=i.current());)i.lastIntValue=10*i.lastIntValue+(s-48),i.advance();return i.pos!==o},Gt.regexp_eatHexDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isHexDigit(s=i.current());)i.lastIntValue=16*i.lastIntValue+hexToInt(s),i.advance();return i.pos!==o},Gt.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var o=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var s=i.lastIntValue;o<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=64*o+8*s+i.lastIntValue:i.lastIntValue=8*o+s}else i.lastIntValue=o;return!0}return!1},Gt.regexp_eatOctalDigit=function(i){var o=i.current();return isOctalDigit(o)?(i.lastIntValue=o-48,i.advance(),!0):(i.lastIntValue=0,!1)},Gt.regexp_eatFixedHexDigits=function(i,o){var s=i.pos;i.lastIntValue=0;for(var v=0;v>10),56320+(1023&i)))}Kt.next=function(i){!i&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Yt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Kt.getToken=function(){return this.next(),new Yt(this)},"undefined"!=typeof Symbol&&(Kt[Symbol.iterator]=function(){var i=this;return{next:function(){var o=i.getToken();return{done:o.type===dt.eof,value:o}}}}),Kt.curContext=function(){return this.context[this.context.length-1]},Kt.nextToken=function(){var i=this.curContext();return i&&i.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(dt.eof):i.override?i.override(this):void this.readToken(this.fullCharCodeAtPos())},Kt.readToken=function(i){return isIdentifierStart(i,this.options.ecmaVersion>=6)||92===i?this.readWord():this.getTokenFromCode(i)},Kt.fullCharCodeAtPos=function(){var i=this.input.charCodeAt(this.pos);return i<=55295||i>=57344?i:(i<<10)+this.input.charCodeAt(this.pos+1)-56613888},Kt.skipBlockComment=function(){var i,o=this.options.onComment&&this.curPosition(),s=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(-1===v&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(lt.lastIndex=s;(i=lt.exec(this.input))&&i.index8&&i<14||i>=5760&&ct.test(String.fromCharCode(i))))break e;++this.pos}}},Kt.finishToken=function(i,o){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=i,this.value=o,this.updateContext(s)},Kt.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var o=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===i&&46===o?(this.pos+=3,this.finishToken(dt.ellipsis)):(++this.pos,this.finishToken(dt.dot))},Kt.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===i?this.finishOp(dt.assign,2):this.finishOp(dt.slash,1)},Kt.readToken_mult_modulo_exp=function(i){var o=this.input.charCodeAt(this.pos+1),s=1,v=42===i?dt.star:dt.modulo;return this.options.ecmaVersion>=7&&42===i&&42===o&&(++s,v=dt.starstar,o=this.input.charCodeAt(this.pos+2)),61===o?this.finishOp(dt.assign,s+1):this.finishOp(v,s)},Kt.readToken_pipe_amp=function(i){var o=this.input.charCodeAt(this.pos+1);if(o===i){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(dt.assign,3);return this.finishOp(124===i?dt.logicalOR:dt.logicalAND,2)}return 61===o?this.finishOp(dt.assign,2):this.finishOp(124===i?dt.bitwiseOR:dt.bitwiseAND,1)},Kt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(dt.assign,2):this.finishOp(dt.bitwiseXOR,1)},Kt.readToken_plus_min=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?45!==o||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!ut.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(dt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===o?this.finishOp(dt.assign,2):this.finishOp(dt.plusMin,1)},Kt.readToken_lt_gt=function(i){var o=this.input.charCodeAt(this.pos+1),s=1;return o===i?(s=62===i&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(dt.assign,s+1):this.finishOp(dt.bitShift,s)):33!==o||60!==i||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===o&&(s=2),this.finishOp(dt.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Kt.readToken_eq_excl=function(i){var o=this.input.charCodeAt(this.pos+1);return 61===o?this.finishOp(dt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===i&&62===o&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(dt.arrow)):this.finishOp(61===i?dt.eq:dt.prefix,1)},Kt.readToken_question=function(){var i=this.options.ecmaVersion;if(i>=11){var o=this.input.charCodeAt(this.pos+1);if(46===o){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(dt.questionDot,2)}if(63===o){if(i>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(dt.assign,3);return this.finishOp(dt.coalesce,2)}}return this.finishOp(dt.question,1)},Kt.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(dt.parenL);case 41:return++this.pos,this.finishToken(dt.parenR);case 59:return++this.pos,this.finishToken(dt.semi);case 44:return++this.pos,this.finishToken(dt.comma);case 91:return++this.pos,this.finishToken(dt.bracketL);case 93:return++this.pos,this.finishToken(dt.bracketR);case 123:return++this.pos,this.finishToken(dt.braceL);case 125:return++this.pos,this.finishToken(dt.braceR);case 58:return++this.pos,this.finishToken(dt.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(dt.backQuote);case 48:var o=this.input.charCodeAt(this.pos+1);if(120===o||88===o)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===o||79===o)return this.readRadixNumber(8);if(98===o||66===o)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 63:return this.readToken_question();case 126:return this.finishOp(dt.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(i)+"'")},Kt.finishOp=function(i,o){var s=this.input.slice(this.pos,this.pos+o);return this.pos+=o,this.finishToken(i,s)},Kt.readRegexp=function(){for(var i,o,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var v=this.input.charAt(this.pos);if(ut.test(v)&&this.raise(s,"Unterminated regular expression"),i)i=!1;else{if("["===v)o=!0;else if("]"===v&&o)o=!1;else if("/"===v&&!o)break;i="\\"===v}++this.pos}var _=this.input.slice(s,this.pos);++this.pos;var $=this.pos,ae=this.readWord1();this.containsEsc&&this.unexpected($);var pe=this.regexpState||(this.regexpState=new Xt(this));pe.reset(s,_,ae),this.validateRegExpFlags(pe),this.validateRegExpPattern(pe);var we=null;try{we=new RegExp(_,ae)}catch(i){}return this.finishToken(dt.regexp,{pattern:_,flags:ae,value:we})},Kt.readInt=function(i,o,s){for(var v=this.options.ecmaVersion>=12&&void 0===o,_=s&&48===this.input.charCodeAt(this.pos),$=this.pos,ae=0,pe=0,we=0,_e=null==o?1/0:o;we<_e;++we,++this.pos){var et=this.input.charCodeAt(this.pos),tt=void 0;if(v&&95===et)_&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===pe&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===we&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),pe=et;else{if((tt=et>=97?et-97+10:et>=65?et-65+10:et>=48&&et<=57?et-48:1/0)>=i)break;pe=et,ae=ae*i+tt}}return v&&95===pe&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===$||null!=o&&this.pos-$!==o?null:ae},Kt.readRadixNumber=function(i){var o=this.pos;this.pos+=2;var s=this.readInt(i);return null==s&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=stringToBigInt(this.input.slice(o,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(dt.num,s)},Kt.readNumber=function(i){var o=this.pos;i||null!==this.readInt(10,void 0,!0)||this.raise(o,"Invalid number");var s=this.pos-o>=2&&48===this.input.charCodeAt(o);s&&this.strict&&this.raise(o,"Invalid number");var v=this.input.charCodeAt(this.pos);if(!s&&!i&&this.options.ecmaVersion>=11&&110===v){var _=stringToBigInt(this.input.slice(o,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(dt.num,_)}s&&/[89]/.test(this.input.slice(o,this.pos))&&(s=!1),46!==v||s||(++this.pos,this.readInt(10),v=this.input.charCodeAt(this.pos)),69!==v&&101!==v||s||(43!==(v=this.input.charCodeAt(++this.pos))&&45!==v||++this.pos,null===this.readInt(10)&&this.raise(o,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var $,ae=($=this.input.slice(o,this.pos),s?parseInt($,8):parseFloat($.replace(/_/g,"")));return this.finishToken(dt.num,ae)},Kt.readCodePoint=function(){var i;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(o,"Code point out of bounds")}else i=this.readHexChar(4);return i},Kt.readString=function(i){for(var o="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var v=this.input.charCodeAt(this.pos);if(v===i)break;92===v?(o+=this.input.slice(s,this.pos),o+=this.readEscapedChar(!1),s=this.pos):(isNewLine(v,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return o+=this.input.slice(s,this.pos++),this.finishToken(dt.string,o)};var Jt={};Kt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i!==Jt)throw i;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Kt.invalidStringToken=function(i,o){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Jt;this.raise(i,o)},Kt.readTmplToken=function(){for(var i="",o=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==dt.template&&this.type!==dt.invalidTemplate?(i+=this.input.slice(o,this.pos),this.finishToken(dt.template,i)):36===s?(this.pos+=2,this.finishToken(dt.dollarBraceL)):(++this.pos,this.finishToken(dt.backQuote));if(92===s)i+=this.input.slice(o,this.pos),i+=this.readEscapedChar(!0),o=this.pos;else if(isNewLine(s)){switch(i+=this.input.slice(o,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:i+="\n";break;default:i+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),o=this.pos}else++this.pos}},Kt.readInvalidTemplateToken=function(){for(;this.pos=48&&o<=55){var v=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],_=parseInt(v,8);return _>255&&(v=v.slice(0,-1),_=parseInt(v,8)),this.pos+=v.length-1,o=this.input.charCodeAt(this.pos),"0"===v&&56!==o&&57!==o||!this.strict&&!i||this.invalidStringToken(this.pos-1-v.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(_)}return isNewLine(o)?"":String.fromCharCode(o)}},Kt.readHexChar=function(i){var o=this.pos,s=this.readInt(16,i);return null===s&&this.invalidStringToken(o,"Bad character escape sequence"),s},Kt.readWord1=function(){this.containsEsc=!1;for(var i="",o=!0,s=this.pos,v=this.options.ecmaVersion>=6;this.pos=2&&"-"===s[v-2]&&(v-=2),s=s.slice(0,v)}}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.canUseDOM=o.SafeNodeList=o.SafeHTMLCollection=void 0;var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(883)).default,_=v.canUseDOM?window.HTMLElement:{};o.SafeHTMLCollection=v.canUseDOM?window.HTMLCollection:{},o.SafeNodeList=v.canUseDOM?window.NodeList:{},o.canUseDOM=v.canUseDOM;o.default=_},function(i,o,s){"use strict";function sheetForTag(i){if(i.sheet)return i.sheet;for(var o=0;ope)&&(Ct=(Et=Et.replace(" ",":")).length),0v&&(v=(o=o.trim()).charCodeAt(0)),v){case 38:return o.replace(pe,"$1"+i.trim());case 58:return i.trim()+o.replace(pe,"$1"+i.trim());default:if(0<1*s&&0_e.charCodeAt(8))break;case 115:pe=pe.replace(_e,"-webkit-"+_e)+";"+pe;break;case 207:case 102:pe=pe.replace(_e,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0=4;++v,_-=4)o=1540483477*(65535&(o=255&i.charCodeAt(v)|(255&i.charCodeAt(++v))<<8|(255&i.charCodeAt(++v))<<16|(255&i.charCodeAt(++v))<<24))+(59797*(o>>>16)<<16),s=1540483477*(65535&(o^=o>>>24))+(59797*(o>>>16)<<16)^1540483477*(65535&s)+(59797*(s>>>16)<<16);switch(_){case 3:s^=(255&i.charCodeAt(v+2))<<16;case 2:s^=(255&i.charCodeAt(v+1))<<8;case 1:s=1540483477*(65535&(s^=255&i.charCodeAt(v)))+(59797*(s>>>16)<<16)}return(((s=1540483477*(65535&(s^=s>>>13))+(59797*(s>>>16)<<16))^s>>>15)>>>0).toString(36)},tt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var nt=/[A-Z]|^ms/g,rt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,it=function isCustomProperty(i){return 45===i.charCodeAt(1)},ot=function isProcessableValue(i){return null!=i&&"boolean"!=typeof i},st=function memoize(i){var o={};return function(s){return void 0===o[s]&&(o[s]=i(s)),o[s]}}((function(i){return it(i)?i:i.replace(nt,"-$&").toLowerCase()})),dt=function processStyleValue(i,o){switch(i){case"animation":case"animationName":if("string"==typeof o)return o.replace(rt,(function(i,o,s){return ut={name:o,styles:s,next:ut},o}))}return 1===tt[i]||it(i)||"number"!=typeof o||0===o?o:o+"px"};function handleInterpolation(i,o,s,v){if(null==s)return"";if(void 0!==s.__emotion_styles)return s;switch(typeof s){case"boolean":return"";case"object":if(1===s.anim)return ut={name:s.name,styles:s.styles,next:ut},s.name;if(void 0!==s.styles){var _=s.next;if(void 0!==_)for(;void 0!==_;)ut={name:_.name,styles:_.styles,next:ut},_=_.next;return s.styles+";"}return createStringFromObject(i,o,s);case"function":if(void 0!==i){var $=ut,ae=s(i);return ut=$,handleInterpolation(i,o,ae,v)}}if(null==o)return s;var pe=o[s];return void 0===pe||v?s:pe}function createStringFromObject(i,o,s){var v="";if(Array.isArray(s))for(var _=0;_=ae.reach);ut+=dt.value.length,dt=dt.next){var lt=dt.value;if(o.length>i.length)return;if(!(lt instanceof Token)){var ct,ht=1;if(rt){if(!(ct=matchPattern(st,ut,i,nt))||ct.index>=i.length)break;var pt=ct.index,ft=ct.index+ct[0].length,gt=ut;for(gt+=dt.value.length;pt>=gt;)gt+=(dt=dt.next).value.length;if(ut=gt-=dt.value.length,dt.value instanceof Token)continue;for(var mt=dt;mt!==o.tail&&(gtae.reach&&(ae.reach=bt);var Ot=dt.prev;if(vt&&(Ot=addAfter(o,Ot,vt),ut+=vt.length),removeRange(o,Ot,ht),dt=addAfter(o,Ot,new Token(pe,tt?_.tokenize(yt,tt):yt,it,yt)),Rt&&addAfter(o,dt,Rt),ht>1){var xt={cause:pe+","+_e,reach:bt};matchGrammar(i,o,s,dt.prev,ut,xt),ae&&xt.reach>ae.reach&&(ae.reach=xt.reach)}}}}}}function LinkedList(){var i={value:null,prev:null,next:null},o={value:null,prev:i,next:null};i.next=o,this.head=i,this.tail=o,this.length=0}function addAfter(i,o,s){var v=o.next,_={value:s,prev:o,next:v};return o.next=_,v.prev=_,i.length++,_}function removeRange(i,o,s){for(var v=o.next,_=0;_"+v.content+""},!i.document)return i.addEventListener?(_.disableWorkerMessageHandler||i.addEventListener("message",(function(o){var s=JSON.parse(o.data),v=s.language,$=s.code,ae=s.immediateClose;i.postMessage(_.highlight($,_.languages[v],v)),ae&&i.close()}),!1),_):_;var $=_.util.currentScript();function highlightAutomaticallyCallback(){_.manual||_.highlightAll()}if($&&(_.filename=$.src,$.hasAttribute("data-manual")&&(_.manual=!0)),!_.manual){var ae=document.readyState;"loading"===ae||"interactive"===ae&&$&&$.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return _}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});i.exports&&(i.exports=s),void 0!==o&&(o.Prism=s),s.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},s.languages.markup.tag.inside["attr-value"].inside.entity=s.languages.markup.entity,s.languages.markup.doctype.inside["internal-subset"].inside=s.languages.markup,s.hooks.add("wrap",(function(i){"entity"===i.type&&(i.attributes.title=i.content.replace(/&/,"&"))})),Object.defineProperty(s.languages.markup.tag,"addInlined",{value:function addInlined(i,o){var v={};v["language-"+o]={pattern:/(^$)/i,lookbehind:!0,inside:s.languages[o]},v.cdata=/^$/i;var _={"included-cdata":{pattern://i,inside:v}};_["language-"+o]={pattern:/[\s\S]+/,inside:s.languages[o]};var $={};$[i]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return i})),"i"),lookbehind:!0,greedy:!0,inside:_},s.languages.insertBefore("markup","cdata",$)}}),Object.defineProperty(s.languages.markup.tag,"addAttribute",{value:function(i,o){s.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:s.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),s.languages.html=s.languages.markup,s.languages.mathml=s.languages.markup,s.languages.svg=s.languages.markup,s.languages.xml=s.languages.extend("markup",{}),s.languages.ssml=s.languages.xml,s.languages.atom=s.languages.xml,s.languages.rss=s.languages.xml,function(i){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var s=i.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(s),s.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},s.languages.javascript=s.languages.extend("clike",{"class-name":[s.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),s.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,s.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:s.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:s.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:s.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:s.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:s.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),s.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:s.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),s.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),s.languages.markup&&(s.languages.markup.tag.addInlined("script","javascript"),s.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),s.languages.js=s.languages.javascript,function(){if(void 0!==s&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",v="loading",_="loaded",$="pre[data-src]:not(["+o+'="'+_+'"]):not(['+o+'="'+v+'"])';s.hooks.add("before-highlightall",(function(i){i.selector+=", "+$})),s.hooks.add("before-sanity-check",(function(ae){var pe=ae.element;if(pe.matches($)){ae.code="",pe.setAttribute(o,v);var we=pe.appendChild(document.createElement("CODE"));we.textContent="Loading…";var _e=pe.getAttribute("data-src"),et=ae.language;if("none"===et){var tt=(/\.(\w+)$/.exec(_e)||[,"none"])[1];et=i[tt]||tt}s.util.setLanguage(we,et),s.util.setLanguage(pe,et);var nt=s.plugins.autoloader;nt&&nt.loadLanguages(et),loadFile(_e,(function(i){pe.setAttribute(o,_);var v=parseRange(pe.getAttribute("data-range"));if(v){var $=i.split(/\r\n?|\n/g),ae=v[0],_e=null==v[1]?$.length:v[1];ae<0&&(ae+=$.length),ae=Math.max(0,Math.min(ae-1,$.length)),_e<0&&(_e+=$.length),_e=Math.max(0,Math.min(_e,$.length)),i=$.slice(ae,_e).join("\n"),pe.hasAttribute("data-start")||pe.setAttribute("data-start",String(ae+1))}we.textContent=i,s.highlightElement(we)}),(function(i){pe.setAttribute(o,"failed"),we.textContent=i}))}})),s.plugins.fileHighlight={highlight:function highlight(i){for(var o,v=(i||document).querySelectorAll($),_=0;o=v[_++];)s.highlightElement(o)}};var ae=!1;s.fileHighlight=function(){ae||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),ae=!0),s.plugins.fileHighlight.highlight.apply(this,arguments)}}function loadFile(i,o,s){var v=new XMLHttpRequest;v.open("GET",i,!0),v.onreadystatechange=function(){var i,_;4==v.readyState&&(v.status<400&&v.responseText?o(v.responseText):v.status>=400?s((i=v.status,_=v.statusText,"✖ Error "+i+" while fetching file: "+_)):s("✖ Error: File does not exist or is empty"))},v.send(null)}function parseRange(i){var o=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(i||"");if(o){var s=Number(o[1]),v=o[2],_=o[3];return v?_?[s,Number(_)]:[s,void 0]:[s,s]}}}()}).call(this,s(23))},function(i,o,s){var v=s(893);i.exports=pathToRegexp,i.exports.parse=parse,i.exports.compile=function compile(i,o){return tokensToFunction(parse(i,o),o)},i.exports.tokensToFunction=tokensToFunction,i.exports.tokensToRegExp=tokensToRegExp;var _=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse(i,o){for(var s,v=[],$=0,ae=0,pe="",we=o&&o.delimiter||"/";null!=(s=_.exec(i));){var _e=s[0],et=s[1],tt=s.index;if(pe+=i.slice(ae,tt),ae=tt+_e.length,et)pe+=et[1];else{var nt=i[ae],rt=s[2],it=s[3],ot=s[4],st=s[5],dt=s[6],ut=s[7];pe&&(v.push(pe),pe="");var lt=null!=rt&&null!=nt&&nt!==rt,ct="+"===dt||"*"===dt,ht="?"===dt||"*"===dt,pt=s[2]||we,ft=ot||st;v.push({name:it||$++,prefix:rt||"",delimiter:pt,optional:ht,repeat:ct,partial:lt,asterisk:!!ut,pattern:ft?escapeGroup(ft):ut?".*":"[^"+escapeString(pt)+"]+?"})}}return ae0?_(v(i),9007199254740991):0}},function(i,o,s){var v=s(47);i.exports=!!Object.getOwnPropertySymbols&&!v((function(){return!String(Symbol())}))},function(i,o,s){(function(o){var s="object"==typeof o&&o&&o.Object===Object&&o;i.exports=s}).call(this,s(23))},function(i,o){var s=Function.prototype.toString;i.exports=function toSource(i){if(null!=i){try{return s.call(i)}catch(i){}try{return i+""}catch(i){}}return""}},function(i,o,s){var v=s(123),_=s(68);i.exports=function assignMergeValue(i,o,s){(void 0!==s&&!_(i[o],s)||void 0===s&&!(o in i))&&v(i,o,s)}},function(i,o,s){var v=s(48),_=function(){try{var i=v(Object,"defineProperty");return i({},"",{}),i}catch(i){}}();i.exports=_},function(i,o,s){var v=s(313)();i.exports=v},function(i,o,s){var v=s(25).Uint8Array;i.exports=v},function(i,o,s){var v=s(178)(Object.getPrototypeOf,Object);i.exports=v},function(i,o){i.exports=function overArg(i,o){return function(s){return i(o(s))}}},function(i,o){i.exports=function safeGet(i,o){if(("constructor"!==o||"function"!=typeof i[o])&&"__proto__"!=o)return i[o]}},function(i,o,s){var v=s(181),_=s(332),$=s(44);i.exports=function keysIn(i){return $(i)?v(i,!0):_(i)}},function(i,o,s){var v=s(331),_=s(98),$=s(32),ae=s(99),pe=s(125),we=s(100),_e=Object.prototype.hasOwnProperty;i.exports=function arrayLikeKeys(i,o){var s=$(i),et=!s&&_(i),tt=!s&&!et&&ae(i),nt=!s&&!et&&!tt&&we(i),rt=s||et||tt||nt,it=rt?v(i.length,String):[],ot=it.length;for(var st in i)!o&&!_e.call(i,st)||rt&&("length"==st||tt&&("offset"==st||"parent"==st)||nt&&("buffer"==st||"byteLength"==st||"byteOffset"==st)||pe(st,ot))||it.push(st);return it}},function(i,o,s){!function(){"use strict";o.ast=s(349),o.code=s(183),o.keyword=s(350)}()},function(i,o){!function(){"use strict";var o,s,v,_,$,ae;function fromCodePoint(i){return i<=65535?String.fromCharCode(i):String.fromCharCode(Math.floor((i-65536)/1024)+55296)+String.fromCharCode((i-65536)%1024+56320)}for(s={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},o={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},v=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],_=new Array(128),ae=0;ae<128;++ae)_[ae]=ae>=97&&ae<=122||ae>=65&&ae<=90||36===ae||95===ae;for($=new Array(128),ae=0;ae<128;++ae)$[ae]=ae>=97&&ae<=122||ae>=65&&ae<=90||ae>=48&&ae<=57||36===ae||95===ae;i.exports={isDecimalDigit:function isDecimalDigit(i){return 48<=i&&i<=57},isHexDigit:function isHexDigit(i){return 48<=i&&i<=57||97<=i&&i<=102||65<=i&&i<=70},isOctalDigit:function isOctalDigit(i){return i>=48&&i<=55},isWhiteSpace:function isWhiteSpace(i){return 32===i||9===i||11===i||12===i||160===i||i>=5760&&v.indexOf(i)>=0},isLineTerminator:function isLineTerminator(i){return 10===i||13===i||8232===i||8233===i},isIdentifierStartES5:function isIdentifierStartES5(i){return i<128?_[i]:s.NonAsciiIdentifierStart.test(fromCodePoint(i))},isIdentifierPartES5:function isIdentifierPartES5(i){return i<128?$[i]:s.NonAsciiIdentifierPart.test(fromCodePoint(i))},isIdentifierStartES6:function isIdentifierStartES6(i){return i<128?_[i]:o.NonAsciiIdentifierStart.test(fromCodePoint(i))},isIdentifierPartES6:function isIdentifierPartES6(i){return i<128?$[i]:o.NonAsciiIdentifierPart.test(fromCodePoint(i))}}}()},function(i,o,s){!function(){"use strict";var i,v;function DoctrineError(i){this.name="DoctrineError",this.message=i}i=s(352).version,o.VERSION=i,DoctrineError.prototype=((v=function(){}).prototype=Error.prototype,new v),DoctrineError.prototype.constructor=DoctrineError,o.DoctrineError=DoctrineError,o.throwError=function throwError(i){throw new DoctrineError(i)},o.assert=s(353)}()},function(i,o){i.exports=function arrayMap(i,o){for(var s=-1,v=null==i?0:i.length,_=Array(v);++set))return!1;var nt=we.get(i),rt=we.get(o);if(nt&&rt)return nt==o&&rt==i;var it=-1,ot=!0,st=2&s?new v:void 0;for(we.set(i,o),we.set(o,i);++it2?s-2:0),_=2;_=0||(_[s]=i[s]);return _}var pe="unmounted";o.UNMOUNTED=pe;var we="exited";o.EXITED=we;var _e="entering";o.ENTERING=_e;var et="entered";o.ENTERED=et;var tt="exiting";o.EXITING=tt;var nt=function(i){var o,s;function Transition(o,s){var v;v=i.call(this,o,s)||this;var _,$=s.transitionGroup,ae=$&&!$.isMounting?o.enter:o.appear;return v.appearStatus=null,o.in?ae?(_=we,v.appearStatus=_e):_=et:_=o.unmountOnExit||o.mountOnEnter?pe:we,v.state={status:_},v.nextCallback=null,v}s=i,(o=Transition).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v=Transition.prototype;return v.getChildContext=function getChildContext(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function getDerivedStateFromProps(i,o){return i.in&&o.status===pe?{status:we}:null},v.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},v.componentDidUpdate=function componentDidUpdate(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==_e&&s!==et&&(o=_e):s!==_e&&s!==et||(o=tt)}this.updateStatus(!1,o)},v.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},v.getTimeouts=function getTimeouts(){var i,o,s,v=this.props.timeout;return i=o=s=v,null!=v&&"number"!=typeof v&&(i=v.exit,o=v.enter,s=void 0!==v.appear?v.appear:o),{exit:i,enter:o,appear:s}},v.updateStatus=function updateStatus(i,o){if(void 0===i&&(i=!1),null!==o){this.cancelNextCallback();var s=$.default.findDOMNode(this);o===_e?this.performEnter(s,i):this.performExit(s)}else this.props.unmountOnExit&&this.state.status===we&&this.setState({status:pe})},v.performEnter=function performEnter(i,o){var s=this,v=this.props.enter,_=this.context.transitionGroup?this.context.transitionGroup.isMounting:o,$=this.getTimeouts(),ae=_?$.appear:$.enter;o||v?(this.props.onEnter(i,_),this.safeSetState({status:_e},(function(){s.props.onEntering(i,_),s.onTransitionEnd(i,ae,(function(){s.safeSetState({status:et},(function(){s.props.onEntered(i,_)}))}))}))):this.safeSetState({status:et},(function(){s.props.onEntered(i)}))},v.performExit=function performExit(i){var o=this,s=this.props.exit,v=this.getTimeouts();s?(this.props.onExit(i),this.safeSetState({status:tt},(function(){o.props.onExiting(i),o.onTransitionEnd(i,v.exit,(function(){o.safeSetState({status:we},(function(){o.props.onExited(i)}))}))}))):this.safeSetState({status:we},(function(){o.props.onExited(i)}))},v.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},v.safeSetState=function safeSetState(i,o){o=this.setNextCallback(o),this.setState(i,o)},v.setNextCallback=function setNextCallback(i){var o=this,s=!0;return this.nextCallback=function(v){s&&(s=!1,o.nextCallback=null,i(v))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},v.onTransitionEnd=function onTransitionEnd(i,o,s){this.setNextCallback(s);var v=null==o&&!this.props.addEndListener;i&&!v?(this.props.addEndListener&&this.props.addEndListener(i,this.nextCallback),null!=o&&setTimeout(this.nextCallback,o)):setTimeout(this.nextCallback,0)},v.render=function render(){var i=this.state.status;if(i===pe)return null;var o=this.props,s=o.children,v=_objectWithoutPropertiesLoose(o,["children"]);if(delete v.in,delete v.mountOnEnter,delete v.unmountOnExit,delete v.appear,delete v.enter,delete v.exit,delete v.timeout,delete v.addEndListener,delete v.onEnter,delete v.onEntering,delete v.onEntered,delete v.onExit,delete v.onExiting,delete v.onExited,"function"==typeof s)return s(i,v);var $=_.default.Children.only(s);return _.default.cloneElement($,v)},Transition}(_.default.Component);function noop(){}nt.contextTypes={transitionGroup:v.object},nt.childContextTypes={transitionGroup:function transitionGroup(){}},nt.propTypes={},nt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},nt.UNMOUNTED=0,nt.EXITED=1,nt.ENTERING=2,nt.ENTERED=3,nt.EXITING=4;var rt=(0,ae.polyfill)(nt);o.default=rt},function(i,o,s){"use strict";o.__esModule=!0,o.classNamesShape=o.timeoutsShape=void 0;(function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}})(s(2));o.timeoutsShape=null;o.classNamesShape=null},function(i,o,s){"use strict";o.__esModule=!0,o.default=void 0;var v=_interopRequireDefault(s(2)),_=_interopRequireDefault(s(0)),$=s(130),ae=s(860);function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}function _extends(){return _extends=Object.assign||function(i){for(var o=1;o2){var ft=tt.indexOf("-x-");if(-1===ft)tt+=rt;else{var gt=tt.slice(0,ft),mt=tt.slice(ft,tt.length);tt=gt+rt+mt}tt=Intl.getCanonicalLocales(tt)[0]}return nt.locale=tt,nt}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function findTabbableDescendants(i){var o=[].slice.call(i.querySelectorAll("*"),0).reduce((function(i,o){return i.concat(o.shadowRoot?findTabbableDescendants(o.shadowRoot):[o])}),[]);return o.filter(tabbable)};var v="none",_="contents",$=/input|select|textarea|button|object|iframe/;function isNotOverflowing(i,o){return"visible"!==o.getPropertyValue("overflow")||i.scrollWidth<=0&&i.scrollHeight<=0}function hidesContents(i){var o=i.offsetWidth<=0&&i.offsetHeight<=0;if(o&&!i.innerHTML)return!0;try{var s=window.getComputedStyle(i),$=s.getPropertyValue("display");return o?$!==_&&isNotOverflowing(i,s):$===v}catch(i){return console.warn("Failed to inspect element style"),!1}}function visible(i){for(var o=i,s=i.getRootNode&&i.getRootNode();o&&o!==document.body;){if(s&&o===s&&(o=s.host.parentNode),hidesContents(o))return!1;o=o.parentNode}return!0}function focusable(i,o){var s=i.nodeName.toLowerCase();return($.test(s)&&!i.disabled||"a"===s&&i.href||o)&&visible(i)}function tabbable(i){var o=i.getAttribute("tabindex");null===o&&(o=void 0);var s=isNaN(o);return(s||o>=0)&&focusable(i,!s)}i.exports=o.default},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){$&&($.removeAttribute?$.removeAttribute("aria-hidden"):null!=$.length?$.forEach((function(i){return i.removeAttribute("aria-hidden")})):document.querySelectorAll($).forEach((function(i){return i.removeAttribute("aria-hidden")})));$=null},o.log=function log(){0},o.assertNodeList=assertNodeList,o.setElement=function setElement(i){var o=i;if("string"==typeof o&&_.canUseDOM){var s=document.querySelectorAll(o);assertNodeList(s,o),o=s}return $=o||$},o.validateElement=validateElement,o.hide=function hide(i){var o=!0,s=!1,v=void 0;try{for(var _,$=validateElement(i)[Symbol.iterator]();!(o=(_=$.next()).done);o=!0){_.value.setAttribute("aria-hidden","true")}}catch(i){s=!0,v=i}finally{try{!o&&$.return&&$.return()}finally{if(s)throw v}}},o.show=function show(i){var o=!0,s=!1,v=void 0;try{for(var _,$=validateElement(i)[Symbol.iterator]();!(o=(_=$.next()).done);o=!0){_.value.removeAttribute("aria-hidden")}}catch(i){s=!0,v=i}finally{try{!o&&$.return&&$.return()}finally{if(s)throw v}}},o.documentNotReadyOrSSRTesting=function documentNotReadyOrSSRTesting(){$=null};var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(882)),_=s(132);var $=null;function assertNodeList(i,o){if(!i||!i.length)throw new Error("react-modal: No elements were found for selector "+o+".")}function validateElement(i){var o=i||$;return o?Array.isArray(o)||o instanceof HTMLCollection||o instanceof NodeList?o:[o]:((0,v.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(i,o,s){"use strict";function _classCallCheck(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(o,"__esModule",{value:!0}),o.log=function log(){console.log("portalOpenInstances ----------"),console.log(_.openInstances.length),_.openInstances.forEach((function(i){return console.log(i)})),console.log("end portalOpenInstances ----------")},o.resetState=function resetState(){_=new v};var v=function PortalOpenInstances(){var i=this;_classCallCheck(this,PortalOpenInstances),this.register=function(o){-1===i.openInstances.indexOf(o)&&(i.openInstances.push(o),i.emit("register"))},this.deregister=function(o){var s=i.openInstances.indexOf(o);-1!==s&&(i.openInstances.splice(s,1),i.emit("deregister"))},this.subscribe=function(o){i.subscribers.push(o)},this.emit=function(o){i.subscribers.forEach((function(s){return s(o,i.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},_=new v;o.default=_},function(i,o,s){var v;v=function(){function IntroJs(i){this._targetElement=i,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function _introForElement(i,o){var v=i.querySelectorAll("*[data-intro]"),_=[];if(this._options.steps)_forEach(this._options.steps,function(i){var o=_cloneObject(i);if(o.step=_.length+1,"string"==typeof o.element&&(o.element=document.querySelector(o.element)),void 0===o.element||null===o.element){var s=document.querySelector(".introjsFloatingElement");null===s&&((s=document.createElement("div")).className="introjsFloatingElement",document.body.appendChild(s)),o.element=s,o.position="floating"}o.scrollTo=o.scrollTo||this._options.scrollTo,void 0===o.disableInteraction&&(o.disableInteraction=this._options.disableInteraction),null!==o.element&&_.push(o)}.bind(this));else{var $;if(v.length<1)return!1;_forEach(v,function(i){if((!o||i.getAttribute("data-intro-group")===o)&&"none"!==i.style.display){var s=parseInt(i.getAttribute("data-step"),10);$=void 0!==i.getAttribute("data-disable-interaction")?!!i.getAttribute("data-disable-interaction"):this._options.disableInteraction,s>0&&(_[s-1]={element:i,intro:i.getAttribute("data-intro"),step:parseInt(i.getAttribute("data-step"),10),tooltipClass:i.getAttribute("data-tooltipclass"),highlightClass:i.getAttribute("data-highlightclass"),position:i.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:i.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:$})}}.bind(this));var ae=0;_forEach(v,function(i){if((!o||i.getAttribute("data-intro-group")===o)&&null===i.getAttribute("data-step")){for(;void 0!==_[ae];)ae++;$=void 0!==i.getAttribute("data-disable-interaction")?!!i.getAttribute("data-disable-interaction"):this._options.disableInteraction,_[ae]={element:i,intro:i.getAttribute("data-intro"),step:ae+1,tooltipClass:i.getAttribute("data-tooltipclass"),highlightClass:i.getAttribute("data-highlightclass"),position:i.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:i.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:$}}}.bind(this))}for(var pe=[],we=0;we<_.length;we++)_[we]&&pe.push(_[we]);return(_=pe).sort((function(i,o){return i.step-o.step})),this._introItems=_,_addOverlayLayer.call(this,i)&&(_nextStep.call(this),this._options.keyboardNavigation&&s.on(window,"keydown",_onKeyDown,this,!0),s.on(window,"resize",_onResize,this,!0)),!1}function _onResize(){this.refresh.call(this)}function _onKeyDown(i){var o=null===i.code?i.which:i.code;if(null===o&&(o=null===i.charCode?i.keyCode:i.charCode),"Escape"!==o&&27!==o||!0!==this._options.exitOnEsc){if("ArrowLeft"===o||37===o)_previousStep.call(this);else if("ArrowRight"===o||39===o)_nextStep.call(this);else if("Enter"===o||13===o){var s=i.target||i.srcElement;s&&s.className.match("introjs-prevbutton")?_previousStep.call(this):s&&s.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),_exitIntro.call(this,this._targetElement)):s&&s.getAttribute("data-stepnumber")?s.click():_nextStep.call(this),i.preventDefault?i.preventDefault():i.returnValue=!1}}else _exitIntro.call(this,this._targetElement)}function _cloneObject(i){if(null===i||"object"!=typeof i||void 0!==i.nodeType)return i;var o={};for(var s in i)void 0!==window.jQuery&&i[s]instanceof window.jQuery?o[s]=i[s]:o[s]=_cloneObject(i[s]);return o}function _goToStep(i){this._currentStep=i-2,void 0!==this._introItems&&_nextStep.call(this)}function _goToStepNumber(i){this._currentStepNumber=i,void 0!==this._introItems&&_nextStep.call(this)}function _nextStep(){this._direction="forward",void 0!==this._currentStepNumber&&_forEach(this._introItems,function(i,o){i.step===this._currentStepNumber&&(this._currentStep=o-1,this._currentStepNumber=void 0)}.bind(this)),void 0===this._currentStep?this._currentStep=0:++this._currentStep;var i=this._introItems[this._currentStep],o=!0;return void 0!==this._introBeforeChangeCallback&&(o=this._introBeforeChangeCallback.call(this,i.element)),!1===o?(--this._currentStep,!1):this._introItems.length<=this._currentStep?("function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void _exitIntro.call(this,this._targetElement)):void _showElement.call(this,i)}function _previousStep(){if(this._direction="backward",0===this._currentStep)return!1;--this._currentStep;var i=this._introItems[this._currentStep],o=!0;if(void 0!==this._introBeforeChangeCallback&&(o=this._introBeforeChangeCallback.call(this,i.element)),!1===o)return++this._currentStep,!1;_showElement.call(this,i)}function _refresh(){if(_setHelperLayerPosition.call(this,document.querySelector(".introjs-helperLayer")),_setHelperLayerPosition.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),_setHelperLayerPosition.call(this,document.querySelector(".introjs-disableInteraction")),void 0!==this._currentStep&&null!==this._currentStep){var i=document.querySelector(".introjs-helperNumberLayer"),o=document.querySelector(".introjs-arrow"),s=document.querySelector(".introjs-tooltip");_placeTooltip.call(this,this._introItems[this._currentStep].element,s,o,i)}return _reAlignHints.call(this),this}function _exitIntro(i,o){var v=!0;if(void 0!==this._introBeforeExitCallback&&(v=this._introBeforeExitCallback.call(this)),o||!1!==v){var _=i.querySelectorAll(".introjs-overlay");_&&_.length&&_forEach(_,function(i){i.style.opacity=0,window.setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(i),500)}.bind(this));var $=i.querySelector(".introjs-helperLayer");$&&$.parentNode.removeChild($);var ae=i.querySelector(".introjs-tooltipReferenceLayer");ae&&ae.parentNode.removeChild(ae);var pe=i.querySelector(".introjs-disableInteraction");pe&&pe.parentNode.removeChild(pe);var we=document.querySelector(".introjsFloatingElement");we&&we.parentNode.removeChild(we),_removeShowElement(),_forEach(document.querySelectorAll(".introjs-fixParent"),(function(i){_removeClass(i,/introjs-fixParent/g)})),s.off(window,"keydown",_onKeyDown,this,!0),s.off(window,"resize",_onResize,this,!0),void 0!==this._introExitCallback&&this._introExitCallback.call(this),this._currentStep=void 0}}function _placeTooltip(i,o,s,v,_){var $,ae,pe,we,_e,et="";if(_=_||!1,o.style.top=null,o.style.right=null,o.style.bottom=null,o.style.left=null,o.style.marginLeft=null,o.style.marginTop=null,s.style.display="inherit",null!=v&&(v.style.top=null,v.style.left=null),this._introItems[this._currentStep])switch(et="string"==typeof($=this._introItems[this._currentStep]).tooltipClass?$.tooltipClass:this._options.tooltipClass,o.className=("introjs-tooltip "+et).replace(/^\s+|\s+$/g,""),o.setAttribute("role","dialog"),"floating"!==(_e=this._introItems[this._currentStep].position)&&(_e=_determineAutoPosition.call(this,i,o,_e)),pe=_getOffset(i),ae=_getOffset(o),we=_getWinSize(),_addClass(o,"introjs-"+_e),_e){case"top-right-aligned":s.className="introjs-arrow bottom-right";var tt=0;_checkLeft(pe,tt,ae,o),o.style.bottom=pe.height+20+"px";break;case"top-middle-aligned":s.className="introjs-arrow bottom-middle";var nt=pe.width/2-ae.width/2;_&&(nt+=5),_checkLeft(pe,nt,ae,o)&&(o.style.right=null,_checkRight(pe,nt,ae,we,o)),o.style.bottom=pe.height+20+"px";break;case"top-left-aligned":case"top":s.className="introjs-arrow bottom",_checkRight(pe,_?0:15,ae,we,o),o.style.bottom=pe.height+20+"px";break;case"right":o.style.left=pe.width+20+"px",pe.top+ae.height>we.height?(s.className="introjs-arrow left-bottom",o.style.top="-"+(ae.height-pe.height-20)+"px"):s.className="introjs-arrow left";break;case"left":_||!0!==this._options.showStepNumbers||(o.style.top="15px"),pe.top+ae.height>we.height?(o.style.top="-"+(ae.height-pe.height-20)+"px",s.className="introjs-arrow right-bottom"):s.className="introjs-arrow right",o.style.right=pe.width+20+"px";break;case"floating":s.style.display="none",o.style.left="50%",o.style.top="50%",o.style.marginLeft="-"+ae.width/2+"px",o.style.marginTop="-"+ae.height/2+"px",null!=v&&(v.style.left="-"+(ae.width/2+18)+"px",v.style.top="-"+(ae.height/2+18)+"px");break;case"bottom-right-aligned":s.className="introjs-arrow top-right",_checkLeft(pe,tt=0,ae,o),o.style.top=pe.height+20+"px";break;case"bottom-middle-aligned":s.className="introjs-arrow top-middle",nt=pe.width/2-ae.width/2,_&&(nt+=5),_checkLeft(pe,nt,ae,o)&&(o.style.right=null,_checkRight(pe,nt,ae,we,o)),o.style.top=pe.height+20+"px";break;default:s.className="introjs-arrow top",_checkRight(pe,0,ae,we,o),o.style.top=pe.height+20+"px"}}function _checkRight(i,o,s,v,_){return i.left+o+s.width>v.width?(_.style.left=v.width-s.width-i.left+"px",!1):(_.style.left=o+"px",!0)}function _checkLeft(i,o,s,v){return i.left+i.width-o-s.width<0?(v.style.left=-i.left+"px",!1):(v.style.right=o+"px",!0)}function _determineAutoPosition(i,o,s){var v=this._options.positionPrecedence.slice(),_=_getWinSize(),$=_getOffset(o).height+10,ae=_getOffset(o).width+20,pe=i.getBoundingClientRect(),we="floating";pe.bottom+$+$>_.height&&_removeEntry(v,"bottom"),pe.top-$<0&&_removeEntry(v,"top"),pe.right+ae>_.width&&_removeEntry(v,"right"),pe.left-ae<0&&_removeEntry(v,"left");var _e,et,tt=-1!==(et=(_e=s||"").indexOf("-"))?_e.substr(et):"";return s&&(s=s.split("-")[0]),v.length&&(we="auto"!==s&&v.indexOf(s)>-1?s:v[0]),-1!==["top","bottom"].indexOf(we)&&(we+=_determineAutoAlignment(pe.left,ae,_,tt)),we}function _determineAutoAlignment(i,o,s,v){var _=o/2,$=Math.min(s.width,window.screen.width),ae=["-left-aligned","-middle-aligned","-right-aligned"];return $-i-1&&i.splice(i.indexOf(o),1)}function _setHelperLayerPosition(i){if(i){if(!this._introItems[this._currentStep])return;var o=this._introItems[this._currentStep],s=_getOffset(o.element),v=this._options.helperElementPadding;_isFixed(o.element)?_addClass(i,"introjs-fixedTooltip"):_removeClass(i,"introjs-fixedTooltip"),"floating"===o.position&&(v=0),i.style.cssText="width: "+(s.width+v)+"px; height:"+(s.height+v)+"px; top:"+(s.top-v/2)+"px;left: "+(s.left-v/2)+"px;"}}function _disableInteraction(){var i=document.querySelector(".introjs-disableInteraction");null===i&&((i=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(i)),_setHelperLayerPosition.call(this,i)}function _setAnchorAsButton(i){i.setAttribute("role","button"),i.tabIndex=0}function _showElement(i){void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,i.element);var o,s,v,_,$=this,ae=document.querySelector(".introjs-helperLayer"),pe=document.querySelector(".introjs-tooltipReferenceLayer"),we="introjs-helperLayer";if("string"==typeof i.highlightClass&&(we+=" "+i.highlightClass),"string"==typeof this._options.highlightClass&&(we+=" "+this._options.highlightClass),null!==ae){var _e=pe.querySelector(".introjs-helperNumberLayer"),et=pe.querySelector(".introjs-tooltiptext"),tt=pe.querySelector(".introjs-arrow"),nt=pe.querySelector(".introjs-tooltip");if(v=pe.querySelector(".introjs-skipbutton"),s=pe.querySelector(".introjs-prevbutton"),o=pe.querySelector(".introjs-nextbutton"),ae.className=we,nt.style.opacity=0,nt.style.display="none",null!==_e){var rt=this._introItems[i.step-2>=0?i.step-2:0];(null!==rt&&"forward"===this._direction&&"floating"===rt.position||"backward"===this._direction&&"floating"===i.position)&&(_e.style.opacity=0)}(_=_getScrollParent(i.element))!==document.body&&_scrollParentToElement(_,i.element),_setHelperLayerPosition.call($,ae),_setHelperLayerPosition.call($,pe),_forEach(document.querySelectorAll(".introjs-fixParent"),(function(i){_removeClass(i,/introjs-fixParent/g)})),_removeShowElement(),$._lastShowElementTimer&&window.clearTimeout($._lastShowElementTimer),$._lastShowElementTimer=window.setTimeout((function(){null!==_e&&(_e.innerHTML=i.step),et.innerHTML=i.intro,nt.style.display="block",_placeTooltip.call($,i.element,nt,tt,_e),$._options.showBullets&&(pe.querySelector(".introjs-bullets li > a.active").className="",pe.querySelector('.introjs-bullets li > a[data-stepnumber="'+i.step+'"]').className="active"),pe.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+_getProgress.call($)+"%;",pe.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",_getProgress.call($)),nt.style.opacity=1,_e&&(_e.style.opacity=1),null!=v&&/introjs-donebutton/gi.test(v.className)?v.focus():null!=o&&o.focus(),_scrollTo.call($,i.scrollTo,i,et)}),350)}else{var it=document.createElement("div"),ot=document.createElement("div"),st=document.createElement("div"),dt=document.createElement("div"),ut=document.createElement("div"),lt=document.createElement("div"),ct=document.createElement("div"),ht=document.createElement("div");it.className=we,ot.className="introjs-tooltipReferenceLayer",(_=_getScrollParent(i.element))!==document.body&&_scrollParentToElement(_,i.element),_setHelperLayerPosition.call($,it),_setHelperLayerPosition.call($,ot),this._targetElement.appendChild(it),this._targetElement.appendChild(ot),st.className="introjs-arrow",ut.className="introjs-tooltiptext",ut.innerHTML=i.intro,lt.className="introjs-bullets",!1===this._options.showBullets&&(lt.style.display="none");var pt=document.createElement("ul");pt.setAttribute("role","tablist");var anchorClick=function(){$.goToStep(this.getAttribute("data-stepnumber"))};_forEach(this._introItems,(function(o,s){var v=document.createElement("li"),_=document.createElement("a");v.setAttribute("role","presentation"),_.setAttribute("role","tab"),_.onclick=anchorClick,s===i.step-1&&(_.className="active"),_setAnchorAsButton(_),_.innerHTML=" ",_.setAttribute("data-stepnumber",o.step),v.appendChild(_),pt.appendChild(v)})),lt.appendChild(pt),ct.className="introjs-progress",!1===this._options.showProgress&&(ct.style.display="none");var ft=document.createElement("div");ft.className="introjs-progressbar",ft.setAttribute("role","progress"),ft.setAttribute("aria-valuemin",0),ft.setAttribute("aria-valuemax",100),ft.setAttribute("aria-valuenow",_getProgress.call(this)),ft.style.cssText="width:"+_getProgress.call(this)+"%;",ct.appendChild(ft),ht.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(ht.style.display="none"),dt.className="introjs-tooltip",dt.appendChild(ut),dt.appendChild(lt),dt.appendChild(ct);var gt=document.createElement("span");!0===this._options.showStepNumbers&&(gt.className="introjs-helperNumberLayer",gt.innerHTML=i.step,ot.appendChild(gt)),dt.appendChild(st),ot.appendChild(dt),(o=document.createElement("a")).onclick=function(){$._introItems.length-1!==$._currentStep&&_nextStep.call($)},_setAnchorAsButton(o),o.innerHTML=this._options.nextLabel,(s=document.createElement("a")).onclick=function(){0!==$._currentStep&&_previousStep.call($)},_setAnchorAsButton(s),s.innerHTML=this._options.prevLabel,(v=document.createElement("a")).className=this._options.buttonClass+" introjs-skipbutton ",_setAnchorAsButton(v),v.innerHTML=this._options.skipLabel,v.onclick=function(){$._introItems.length-1===$._currentStep&&"function"==typeof $._introCompleteCallback&&$._introCompleteCallback.call($),$._introItems.length-1!==$._currentStep&&"function"==typeof $._introExitCallback&&$._introExitCallback.call($),"function"==typeof $._introSkipCallback&&$._introSkipCallback.call($),_exitIntro.call($,$._targetElement)},ht.appendChild(v),this._introItems.length>1&&(ht.appendChild(s),ht.appendChild(o)),dt.appendChild(ht),_placeTooltip.call($,i.element,dt,st,gt),_scrollTo.call(this,i.scrollTo,i,dt)}var mt=$._targetElement.querySelector(".introjs-disableInteraction");mt&&mt.parentNode.removeChild(mt),i.disableInteraction&&_disableInteraction.call($),0===this._currentStep&&this._introItems.length>1?(null!=v&&(v.className=this._options.buttonClass+" introjs-skipbutton"),null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?(null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),null!=o&&_addClass(o,"introjs-fullbutton")):null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),null!=v&&(v.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?(null!=v&&(v.innerHTML=this._options.doneLabel,_addClass(v,"introjs-donebutton")),null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?(null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),null!=s&&_addClass(s,"introjs-fullbutton")):null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):(null!=v&&(v.className=this._options.buttonClass+" introjs-skipbutton"),null!=s&&(s.className=this._options.buttonClass+" introjs-prevbutton"),null!=o&&(o.className=this._options.buttonClass+" introjs-nextbutton"),null!=v&&(v.innerHTML=this._options.skipLabel)),s.setAttribute("role","button"),o.setAttribute("role","button"),v.setAttribute("role","button"),null!=o&&o.focus(),_setShowElement(i),void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,i.element)}function _scrollTo(i,o,s){var v;if("off"!==i&&this._options.scrollToElement&&(v="tooltip"===i?s.getBoundingClientRect():o.element.getBoundingClientRect(),!_elementInViewport(o.element))){var _=_getWinSize().height;v.bottom-(v.bottom-v.top)<0||o.element.clientHeight>_?window.scrollBy(0,v.top-(_/2-v.height/2)-this._options.scrollPadding):window.scrollBy(0,v.top-(_/2-v.height/2)+this._options.scrollPadding)}}function _removeShowElement(){_forEach(document.querySelectorAll(".introjs-showElement"),(function(i){_removeClass(i,/introjs-[a-zA-Z]+/g)}))}function _setShowElement(i){var o;if(i.element instanceof SVGElement)for(o=i.element.parentNode;null!==i.element.parentNode&&o.tagName&&"body"!==o.tagName.toLowerCase();)"svg"===o.tagName.toLowerCase()&&_addClass(o,"introjs-showElement introjs-relativePosition"),o=o.parentNode;_addClass(i.element,"introjs-showElement");var s=_getPropValue(i.element,"position");for("absolute"!==s&&"relative"!==s&&"fixed"!==s&&_addClass(i.element,"introjs-relativePosition"),o=i.element.parentNode;null!==o&&o.tagName&&"body"!==o.tagName.toLowerCase();){var v=_getPropValue(o,"z-index"),_=parseFloat(_getPropValue(o,"opacity")),$=_getPropValue(o,"transform")||_getPropValue(o,"-webkit-transform")||_getPropValue(o,"-moz-transform")||_getPropValue(o,"-ms-transform")||_getPropValue(o,"-o-transform");(/[0-9]+/.test(v)||_<1||"none"!==$&&void 0!==$)&&_addClass(o,"introjs-fixParent"),o=o.parentNode}}function _forEach(i,o,s){if(i)for(var v=0,_=i.length;v<_;v++)o(i[v],v);"function"==typeof s&&s()}var i,o=(i={},function stamp(o,s){return i[s=s||"introjs-stamp"]=i[s]||0,void 0===o[s]&&(o[s]=i[s]++),o[s]}),s=new function s(){var i="introjs_event";this._id=function(i,s,v,_){return s+o(v)+(_?"_"+o(_):"")},this.on=function(o,s,v,_,$){var ae=this._id.apply(this,arguments),handler=function(i){return v.call(_||o,i||window.event)};"addEventListener"in o?o.addEventListener(s,handler,$):"attachEvent"in o&&o.attachEvent("on"+s,handler),o[i]=o[i]||{},o[i][ae]=handler},this.off=function(o,s,v,_,$){var ae=this._id.apply(this,arguments),pe=o[i]&&o[i][ae];pe&&("removeEventListener"in o?o.removeEventListener(s,pe,$):"detachEvent"in o&&o.detachEvent("on"+s,pe),o[i][ae]=null)}};function _addClass(i,o){if(i instanceof SVGElement){var s=i.getAttribute("class")||"";i.setAttribute("class",s+" "+o)}else void 0!==i.classList?_forEach(o.split(" "),(function(o){i.classList.add(o)})):i.className.match(o)||(i.className+=" "+o)}function _removeClass(i,o){if(i instanceof SVGElement){var s=i.getAttribute("class")||"";i.setAttribute("class",s.replace(o,"").replace(/^\s+|\s+$/g,""))}else i.className=i.className.replace(o,"").replace(/^\s+|\s+$/g,"")}function _getPropValue(i,o){var s="";return i.currentStyle?s=i.currentStyle[o]:document.defaultView&&document.defaultView.getComputedStyle&&(s=document.defaultView.getComputedStyle(i,null).getPropertyValue(o)),s&&s.toLowerCase?s.toLowerCase():s}function _isFixed(i){var o=i.parentNode;return!(!o||"HTML"===o.nodeName)&&("fixed"===_getPropValue(i,"position")||_isFixed(o))}function _getWinSize(){if(void 0!==window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var i=document.documentElement;return{width:i.clientWidth,height:i.clientHeight}}function _elementInViewport(i){var o=i.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom+80<=window.innerHeight&&o.right<=window.innerWidth}function _addOverlayLayer(i){var o=document.createElement("div"),s="",v=this;if(o.className="introjs-overlay",i.tagName&&"body"!==i.tagName.toLowerCase()){var _=_getOffset(i);_&&(s+="width: "+_.width+"px; height:"+_.height+"px; top:"+_.top+"px;left: "+_.left+"px;",o.style.cssText=s)}else s+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",o.style.cssText=s;return i.appendChild(o),o.onclick=function(){!0===v._options.exitOnOverlayClick&&_exitIntro.call(v,i)},window.setTimeout((function(){s+="opacity: "+v._options.overlayOpacity.toString()+";",o.style.cssText=s}),10),!0}function _removeHintTooltip(){var i=document.querySelector(".introjs-hintReference");if(i){var o=i.getAttribute("data-step");return i.parentNode.removeChild(i),o}}function _populateHints(i){if(this._introItems=[],this._options.hints)_forEach(this._options.hints,function(i){var o=_cloneObject(i);"string"==typeof o.element&&(o.element=document.querySelector(o.element)),o.hintPosition=o.hintPosition||this._options.hintPosition,o.hintAnimation=o.hintAnimation||this._options.hintAnimation,null!==o.element&&this._introItems.push(o)}.bind(this));else{var o=i.querySelectorAll("*[data-hint]");if(!o||!o.length)return!1;_forEach(o,function(i){var o=i.getAttribute("data-hintanimation");o=o?"true"===o:this._options.hintAnimation,this._introItems.push({element:i,hint:i.getAttribute("data-hint"),hintPosition:i.getAttribute("data-hintposition")||this._options.hintPosition,hintAnimation:o,tooltipClass:i.getAttribute("data-tooltipclass"),position:i.getAttribute("data-position")||this._options.tooltipPosition})}.bind(this))}_addHints.call(this),s.on(document,"click",_removeHintTooltip,this,!1),s.on(window,"resize",_reAlignHints,this,!0)}function _reAlignHints(){_forEach(this._introItems,function(i){void 0!==i.targetElement&&_alignHintPosition.call(this,i.hintPosition,i.element,i.targetElement)}.bind(this))}function _hintQuerySelectorAll(i){var o=document.querySelector(".introjs-hints");return o?o.querySelectorAll(i):[]}function _hideHint(i){var o=_hintQuerySelectorAll('.introjs-hint[data-step="'+i+'"]')[0];_removeHintTooltip.call(this),o&&_addClass(o,"introjs-hidehint"),void 0!==this._hintCloseCallback&&this._hintCloseCallback.call(this,i)}function _hideHints(){_forEach(_hintQuerySelectorAll(".introjs-hint"),function(i){_hideHint.call(this,i.getAttribute("data-step"))}.bind(this))}function _showHints(){var i=_hintQuerySelectorAll(".introjs-hint");i&&i.length?_forEach(i,function(i){_showHint.call(this,i.getAttribute("data-step"))}.bind(this)):_populateHints.call(this,this._targetElement)}function _showHint(i){var o=_hintQuerySelectorAll('.introjs-hint[data-step="'+i+'"]')[0];o&&_removeClass(o,/introjs-hidehint/g)}function _removeHints(){_forEach(_hintQuerySelectorAll(".introjs-hint"),function(i){_removeHint.call(this,i.getAttribute("data-step"))}.bind(this))}function _removeHint(i){var o=_hintQuerySelectorAll('.introjs-hint[data-step="'+i+'"]')[0];o&&o.parentNode.removeChild(o)}function _addHints(){var i=this,o=document.querySelector(".introjs-hints");null===o&&((o=document.createElement("div")).className="introjs-hints");var getHintClick=function(o){return function(s){var v=s||window.event;v.stopPropagation&&v.stopPropagation(),null!==v.cancelBubble&&(v.cancelBubble=!0),_showHintDialog.call(i,o)}};_forEach(this._introItems,function(i,s){if(!document.querySelector('.introjs-hint[data-step="'+s+'"]')){var v=document.createElement("a");_setAnchorAsButton(v),v.onclick=getHintClick(s),v.className="introjs-hint",i.hintAnimation||_addClass(v,"introjs-hint-no-anim"),_isFixed(i.element)&&_addClass(v,"introjs-fixedhint");var _=document.createElement("div");_.className="introjs-hint-dot";var $=document.createElement("div");$.className="introjs-hint-pulse",v.appendChild(_),v.appendChild($),v.setAttribute("data-step",s),i.targetElement=i.element,i.element=v,_alignHintPosition.call(this,i.hintPosition,v,i.targetElement),o.appendChild(v)}}.bind(this)),document.body.appendChild(o),void 0!==this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function _alignHintPosition(i,o,s){var v=_getOffset.call(this,s),_=20,$=20;switch(i){default:case"top-left":o.style.left=v.left+"px",o.style.top=v.top+"px";break;case"top-right":o.style.left=v.left+v.width-_+"px",o.style.top=v.top+"px";break;case"bottom-left":o.style.left=v.left+"px",o.style.top=v.top+v.height-$+"px";break;case"bottom-right":o.style.left=v.left+v.width-_+"px",o.style.top=v.top+v.height-$+"px";break;case"middle-left":o.style.left=v.left+"px",o.style.top=v.top+(v.height-$)/2+"px";break;case"middle-right":o.style.left=v.left+v.width-_+"px",o.style.top=v.top+(v.height-$)/2+"px";break;case"middle-middle":o.style.left=v.left+(v.width-_)/2+"px",o.style.top=v.top+(v.height-$)/2+"px";break;case"bottom-middle":o.style.left=v.left+(v.width-_)/2+"px",o.style.top=v.top+v.height-$+"px";break;case"top-middle":o.style.left=v.left+(v.width-_)/2+"px",o.style.top=v.top+"px"}}function _showHintDialog(i){var o=document.querySelector('.introjs-hint[data-step="'+i+'"]'),s=this._introItems[i];void 0!==this._hintClickCallback&&this._hintClickCallback.call(this,o,s,i);var v=_removeHintTooltip.call(this);if(parseInt(v,10)!==i){var _=document.createElement("div"),$=document.createElement("div"),ae=document.createElement("div"),pe=document.createElement("div");_.className="introjs-tooltip",_.onclick=function(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0},$.className="introjs-tooltiptext";var we=document.createElement("p");we.innerHTML=s.hint;var _e=document.createElement("a");_e.className=this._options.buttonClass,_e.setAttribute("role","button"),_e.innerHTML=this._options.hintButtonLabel,_e.onclick=_hideHint.bind(this,i),$.appendChild(we),$.appendChild(_e),ae.className="introjs-arrow",_.appendChild(ae),_.appendChild($),this._currentStep=o.getAttribute("data-step"),pe.className="introjs-tooltipReferenceLayer introjs-hintReference",pe.setAttribute("data-step",o.getAttribute("data-step")),_setHelperLayerPosition.call(this,pe),pe.appendChild(_),document.body.appendChild(pe),_placeTooltip.call(this,o,_,ae,null,!0)}}function _getOffset(i){var o=document.body,s=document.documentElement,v=window.pageYOffset||s.scrollTop||o.scrollTop,_=window.pageXOffset||s.scrollLeft||o.scrollLeft,$=i.getBoundingClientRect();return{top:$.top+v,width:$.width,height:$.height,left:$.left+_}}function _getScrollParent(i){var o=window.getComputedStyle(i),s="absolute"===o.position,v=/(auto|scroll)/;if("fixed"===o.position)return document.body;for(var _=i;_=_.parentElement;)if(o=window.getComputedStyle(_),(!s||"static"!==o.position)&&v.test(o.overflow+o.overflowY+o.overflowX))return _;return document.body}function _scrollParentToElement(i,o){i.scrollTop=o.offsetTop-i.offsetTop}function _getProgress(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}function _mergeOptions(i,o){var s,v={};for(s in i)v[s]=i[s];for(s in o)v[s]=o[s];return v}var introJs=function(i){var s;if("object"==typeof i)s=new IntroJs(i);else if("string"==typeof i){var v=document.querySelector(i);if(!v)throw new Error("There is no element with given selector.");s=new IntroJs(v)}else s=new IntroJs(document.body);return introJs.instances[o(s,"introjs-instance")]=s,s};return introJs.version="2.9.3",introJs.instances={},introJs.fn=IntroJs.prototype={clone:function(){return new IntroJs(this)},setOption:function(i,o){return this._options[i]=o,this},setOptions:function(i){return this._options=_mergeOptions(this._options,i),this},start:function(i){return _introForElement.call(this,this._targetElement,i),this},goToStep:function(i){return _goToStep.call(this,i),this},addStep:function(i){return this._options.steps||(this._options.steps=[]),this._options.steps.push(i),this},addSteps:function(i){if(i.length){for(var o=0;o=0||Object.prototype.hasOwnProperty.call(i,v)&&(s[v]=i[v]);return s}function _classCallCheck(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?i:o}function _inherits(i,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var ae="navigator"in i&&/Win/i.test(navigator.platform),pe="navigator"in i&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),we="npm__react-simple-code-editor__textarea",_e="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n."+we+":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n ."+we+" {\n color: transparent !important;\n }\n\n ."+we+"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n",et=function(i){function Editor(){var i,o,s;_classCallCheck(this,Editor);for(var _=arguments.length,$=Array(_),we=0;we<_;we++)$[we]=arguments[we];return o=s=_possibleConstructorReturn(this,(i=Editor.__proto__||Object.getPrototypeOf(Editor)).call.apply(i,[this].concat($))),s.state={capture:!0},s._recordCurrentState=function(){var i=s._input;if(i){var o=i.value,v=i.selectionStart,_=i.selectionEnd;s._recordChange({value:o,selectionStart:v,selectionEnd:_})}},s._getLines=function(i,o){return i.substring(0,o).split("\n")},s._recordChange=function(i){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_=s._history,$=_.stack,ae=_.offset;if($.length&&ae>-1){s._history.stack=$.slice(0,ae+1);var pe=s._history.stack.length;if(pe>100){var we=pe-100;s._history.stack=$.slice(we,pe),s._history.offset=Math.max(s._history.offset-we,0)}}var _e=Date.now();if(o){var et=s._history.stack[s._history.offset];if(et&&_e-et.timestamp<3e3){var tt=/[^a-z0-9]([a-z0-9]+)$/i,nt=s._getLines(et.value,et.selectionStart).pop().match(tt),rt=s._getLines(i.value,i.selectionStart).pop().match(tt);if(nt&&rt&&rt[1].startsWith(nt[1]))return void(s._history.stack[s._history.offset]=v({},i,{timestamp:_e}))}}s._history.stack.push(v({},i,{timestamp:_e})),s._history.offset++},s._updateInput=function(i){var o=s._input;o&&(o.value=i.value,o.selectionStart=i.selectionStart,o.selectionEnd=i.selectionEnd,s.props.onValueChange(i.value))},s._applyEdits=function(i){var o=s._input,_=s._history.stack[s._history.offset];_&&o&&(s._history.stack[s._history.offset]=v({},_,{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),s._recordChange(i),s._updateInput(i)},s._undoEdit=function(){var i=s._history,o=i.stack,v=i.offset,_=o[v-1];_&&(s._updateInput(_),s._history.offset=Math.max(v-1,0))},s._redoEdit=function(){var i=s._history,o=i.stack,v=i.offset,_=o[v+1];_&&(s._updateInput(_),s._history.offset=Math.min(v+1,o.length-1))},s._handleKeyDown=function(i){var o=s.props,v=o.tabSize,_=o.insertSpaces,$=o.ignoreTabKey,we=o.onKeyDown;if(!we||(we(i),!i.defaultPrevented)){27===i.keyCode&&i.target.blur();var _e=i.target,et=_e.value,tt=_e.selectionStart,nt=_e.selectionEnd,rt=(_?" ":"\t").repeat(v);if(9===i.keyCode&&!$&&s.state.capture)if(i.preventDefault(),i.shiftKey){var it=s._getLines(et,tt),ot=it.length-1,st=s._getLines(et,nt).length-1,dt=et.split("\n").map((function(i,o){return o>=ot&&o<=st&&i.startsWith(rt)?i.substring(rt.length):i})).join("\n");if(et!==dt){var ut=it[ot];s._applyEdits({value:dt,selectionStart:ut.startsWith(rt)?tt-rt.length:tt,selectionEnd:nt-(et.length-dt.length)})}}else if(tt!==nt){var lt=s._getLines(et,tt),ct=lt.length-1,ht=s._getLines(et,nt).length-1,pt=lt[ct];s._applyEdits({value:et.split("\n").map((function(i,o){return o>=ct&&o<=ht?rt+i:i})).join("\n"),selectionStart:/\S/.test(pt)?tt+rt.length:tt,selectionEnd:nt+rt.length*(ht-ct+1)})}else{var ft=tt+rt.length;s._applyEdits({value:et.substring(0,tt)+rt+et.substring(nt),selectionStart:ft,selectionEnd:ft})}else if(8===i.keyCode){var gt=tt!==nt;if(et.substring(0,tt).endsWith(rt)&&!gt){i.preventDefault();var mt=tt-rt.length;s._applyEdits({value:et.substring(0,tt-rt.length)+et.substring(nt),selectionStart:mt,selectionEnd:mt})}}else if(13===i.keyCode){if(tt===nt){var yt=s._getLines(et,tt).pop().match(/^\s+/);if(yt&&yt[0]){i.preventDefault();var vt="\n"+yt[0],Rt=tt+vt.length;s._applyEdits({value:et.substring(0,tt)+vt+et.substring(nt),selectionStart:Rt,selectionEnd:Rt})}}}else if(57===i.keyCode||219===i.keyCode||222===i.keyCode||192===i.keyCode){var bt=void 0;57===i.keyCode&&i.shiftKey?bt=["(",")"]:219===i.keyCode?bt=i.shiftKey?["{","}"]:["[","]"]:222===i.keyCode?bt=i.shiftKey?['"','"']:["'","'"]:192!==i.keyCode||i.shiftKey||(bt=["`","`"]),tt!==nt&&bt&&(i.preventDefault(),s._applyEdits({value:et.substring(0,tt)+bt[0]+et.substring(tt,nt)+bt[1]+et.substring(nt),selectionStart:tt,selectionEnd:nt+2}))}else!(pe?i.metaKey&&90===i.keyCode:i.ctrlKey&&90===i.keyCode)||i.shiftKey||i.altKey?(pe?i.metaKey&&90===i.keyCode&&i.shiftKey:ae?i.ctrlKey&&89===i.keyCode:i.ctrlKey&&90===i.keyCode&&i.shiftKey)&&!i.altKey?(i.preventDefault(),s._redoEdit()):77!==i.keyCode||!i.ctrlKey||pe&&!i.shiftKey||(i.preventDefault(),s.setState((function(i){return{capture:!i.capture}}))):(i.preventDefault(),s._undoEdit())}},s._handleChange=function(i){var o=i.target,v=o.value,_=o.selectionStart,$=o.selectionEnd;s._recordChange({value:v,selectionStart:_,selectionEnd:$},!0),s.props.onValueChange(v)},s._history={stack:[],offset:-1},_possibleConstructorReturn(s,o)}return _inherits(Editor,i),_(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var i=this,o=this.props,s=o.value,_=o.style,ae=o.padding,pe=o.highlight,et=o.textareaId,nt=o.autoFocus,rt=o.disabled,it=o.form,ot=o.maxLength,st=o.minLength,dt=o.name,ut=o.placeholder,lt=o.readOnly,ct=o.required,ht=o.onClick,pt=o.onFocus,ft=o.onBlur,gt=o.onKeyUp,mt=(o.onKeyDown,o.onValueChange,o.tabSize,o.insertSpaces,o.ignoreTabKey,_objectWithoutProperties(o,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),yt={paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae},vt=pe(s);return $.createElement("div",v({},mt,{style:v({},tt.container,_)}),$.createElement("textarea",{ref:function ref(o){return i._input=o},style:v({},tt.editor,tt.textarea,yt),className:we,id:et,value:s,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:ht,onKeyUp:gt,onFocus:pt,onBlur:ft,disabled:rt,form:it,maxLength:ot,minLength:st,name:dt,placeholder:ut,readOnly:lt,required:ct,autoFocus:nt,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),$.createElement("pre",v({"aria-hidden":"true",style:v({},tt.editor,tt.highlight,yt)},"string"==typeof vt?{dangerouslySetInnerHTML:{__html:vt+"
"}}:{children:vt})),$.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:_e}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(i){this._history=i.history}}]),Editor}($.Component);et.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},o.default=et;var tt={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,s(23))},function(i,o){var s=/[\'\"]/;i.exports=function unquote(i){return i?(s.test(i.charAt(0))&&(i=i.substr(1)),s.test(i.charAt(i.length-1))&&(i=i.substr(0,i.length-1)),i):""}},function(i,o,s){"use strict";i.exports=function stripHtmlComments(i){if("string"!=typeof i)throw new TypeError("strip-html-comments expected a string");return i.replace(/)/g,"")}},function(i,o,s){!function(){"use strict";var i,v,_,$,ae,pe;function sliceSource(i,o,s){return i.slice(o,s)}function isParamTitle(i){return"param"===i||"argument"===i||"arg"===i}function isReturnTitle(i){return"return"===i||"returns"===i}function isProperty(i){return"property"===i||"prop"===i}function isNameParameterRequired(i){return isParamTitle(i)||isProperty(i)||"alias"===i||"this"===i||"mixes"===i||"requires"===i}function isAllowedNested(i){return isProperty(i)||isParamTitle(i)}function isAllowedOptional(i){return isProperty(i)||isParamTitle(i)}function isTypeParameterRequired(i){return isParamTitle(i)||isReturnTitle(i)||"define"===i||"enum"===i||"implements"===i||"this"===i||"type"===i||"typedef"===i||isProperty(i)}$=s(182),i=s(351),v=s(184),pe=Object.prototype.hasOwnProperty,ae=function hasOwnProperty(i,o){return pe.call(i,o)};var we="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",_e="("+we+"*(?:\\*"+we+"?)?)(.+|[\r\n\u2028\u2029])";function unwrapComment(i){return i.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(_e,"g"),"$2").replace(/\s*$/,"")}function convertUnwrappedCommentIndex(i,o){for(var s,v=i.replace(/^\/\*\*?/,""),_=0,$=new RegExp(_e,"g");s=$.exec(v);)if(_+=s[1].length,s.index+s[0].length>o+_)return o+_+i.length-v.length;return i.replace(/\*\/$/,"").replace(/\s*$/,"").length}!function(o){var s,_,pe,we,_e,et,tt,nt,rt;function advance(){var i=_e.charCodeAt(_);return _+=1,!$.code.isLineTerminator(i)||13===i&&10===_e.charCodeAt(_)||(pe+=1),String.fromCharCode(i)}function scanTitle(){var i,o="";for(advance();_=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57);)o+=advance();return o}function seekContent(){var i,o,s=_;for(o=!1;s=i)return null;if(91===_e.charCodeAt(_)){if(!o)return null;v=!0,pe=advance()}if(pe+=scanIdentifier(i),s)for(58!==_e.charCodeAt(_)||"module"!==pe&&"external"!==pe&&"event"!==pe||(pe+=advance(),pe+=scanIdentifier(i)),91===_e.charCodeAt(_)&&93===_e.charCodeAt(_+1)&&(pe+=advance(),pe+=advance());46===_e.charCodeAt(_)||47===_e.charCodeAt(_)||35===_e.charCodeAt(_)||45===_e.charCodeAt(_)||126===_e.charCodeAt(_);)pe+=advance(),pe+=scanIdentifier(i);if(v){if(skipWhiteSpace(i),61===_e.charCodeAt(_)){var we;pe+=advance(),skipWhiteSpace(i);for(var et=1;_=i||93!==_e.charCodeAt(_))return null;pe+=advance()}return pe}function skipToTag(){for(;_=we)&&(v.assert(64===_e.charCodeAt(_)),!0)}function convertIndex(i){return _e===et?i:convertUnwrappedCommentIndex(et,i)}function TagParser(i,o){this._options=i,this._title=o.toLowerCase(),this._tag={title:o,description:null},this._options.lineNumbers&&(this._tag.lineNumber=pe),this._first=_-o.length-1,this._last=0,this._extra={}}function parseTag(i){var o,s;if(!skipToTag())return null;for(s=(o=new TagParser(i,scanTitle())).parse();_1&&(this._tag.default=i.slice(1).join("=")),this._tag.name=i[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!isNameParameterRequired(this._title))return!0;if(isParamTitle(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},TagParser.prototype.parseDescription=function parseDescription(){var i=sliceSource(_e,_,this._last).trim();return i&&(/^-\s+/.test(i)&&(i=i.substring(2)),this._tag.description=i),!0},TagParser.prototype.parseCaption=function parseDescription(){var i=sliceSource(_e,_,this._last).trim(),o="",s="",v=i.indexOf(o),$=i.indexOf(s);return v>=0&&$>=0?(this._tag.caption=i.substring(v+9,$).trim(),this._tag.description=i.substring($+10).trim()):this._tag.description=i,!0},TagParser.prototype.parseKind=function parseKind(){var i,o;return o={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},i=sliceSource(_e,_,this._last).trim(),this._tag.kind=i,!(!ae(o,i)&&!this.addError("Invalid kind name '%0'",i))},TagParser.prototype.parseAccess=function parseAccess(){var i;return i=sliceSource(_e,_,this._last).trim(),this._tag.access=i,!("private"!==i&&"protected"!==i&&"public"!==i&&!this.addError("Invalid access name '%0'",i))},TagParser.prototype.parseThis=function parseThis(){var i=sliceSource(_e,_,this._last).trim();return i&&"{"===i.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},TagParser.prototype.parseVariation=function parseVariation(){var i,o;return o=sliceSource(_e,_,this._last).trim(),i=parseFloat(o,10),this._tag.variation=i,!(isNaN(i)&&!this.addError("Invalid variation '%0'",o))},TagParser.prototype.ensureEnd=function(){var i=sliceSource(_e,_,this._last).trim();return!(i&&!this.addError("Unknown content '%0'",i))},TagParser.prototype.epilogue=function epilogue(){var i;return i=this._tag.description,!(isAllowedOptional(this._title)&&!this._tag.type&&i&&"["===i.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!nt&&!this.addError("Missing or invalid tag name")))},s={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},TagParser.prototype.parse=function parse(){var i,o,v;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=seekContent(this._title),this._options.range&&(this._tag.range=[this._first,_e.slice(0,this._last).replace(/\s*$/,"").length].map(convertIndex)),i=0,o=(v=ae(s,this._title)?s[this._title]:["parseType","parseName","parseDescription","epilogue"]).length;i=o||s<0||st&&i-it>=et}function timerExpired(){var i=_();if(shouldInvoke(i))return trailingEdge(i);nt=setTimeout(timerExpired,remainingWait(i))}function trailingEdge(i){return nt=void 0,dt&&we?invokeFunc(i):(we=_e=void 0,tt)}function debounced(){var i=_(),s=shouldInvoke(i);if(we=arguments,_e=this,rt=i,s){if(void 0===nt)return leadingEdge(rt);if(st)return clearTimeout(nt),nt=setTimeout(timerExpired,o),invokeFunc(rt)}return void 0===nt&&(nt=setTimeout(timerExpired,o)),tt}return o=$(o)||0,v(s)&&(ot=!!s.leading,et=(st="maxWait"in s)?ae($(s.maxWait)||0,o):et,dt="trailing"in s?!!s.trailing:dt),debounced.cancel=function cancel(){void 0!==nt&&clearTimeout(nt),it=0,we=rt=_e=nt=void 0},debounced.flush=function flush(){return void 0===nt?tt:trailingEdge(_())},debounced}},function(i,o,s){"use strict";const v=s(398),_=/^[\da-fA-F]+$/,$=/^\d+$/,ae=new WeakMap;function getJsxTokens(i){i=i.Parser.acorn||i;let o=ae.get(i);if(!o){const s=i.tokTypes,v=i.TokContext,_=i.TokenType,$=new v("...",!0,!0),_e={tc_oTag:$,tc_cTag:pe,tc_expr:we},et={jsxName:new _("jsxName"),jsxText:new _("jsxText",{beforeExpr:!0}),jsxTagStart:new _("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new _("jsxTagEnd")};et.jsxTagStart.updateContext=function(){this.context.push(we),this.context.push($),this.exprAllowed=!1},et.jsxTagEnd.updateContext=function(i){let o=this.context.pop();o===$&&i===s.slash||o===pe?(this.context.pop(),this.exprAllowed=this.curContext()===we):this.exprAllowed=!0},o={tokContexts:_e,tokTypes:et},ae.set(i,o)}return o}function getQualifiedJSXName(i){return i?"JSXIdentifier"===i.type?i.name:"JSXNamespacedName"===i.type?i.namespace.name+":"+i.name.name:"JSXMemberExpression"===i.type?getQualifiedJSXName(i.object)+"."+getQualifiedJSXName(i.property):void 0:i}function plugin(i,o){const ae=o.acorn||s(129),pe=getJsxTokens(ae),we=ae.tokTypes,_e=pe.tokTypes,et=ae.tokContexts,tt=pe.tokContexts.tc_oTag,nt=pe.tokContexts.tc_cTag,rt=pe.tokContexts.tc_expr,it=ae.isNewLine,ot=ae.isIdentifierStart,st=ae.isIdentifierChar;return class extends o{static get acornJsx(){return pe}jsx_readToken(){let i="",o=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let s=this.input.charCodeAt(this.pos);switch(s){case 60:case 123:return this.pos===this.start?60===s&&this.exprAllowed?(++this.pos,this.finishToken(_e.jsxTagStart)):this.getTokenFromCode(s):(i+=this.input.slice(o,this.pos),this.finishToken(_e.jsxText,i));case 38:i+=this.input.slice(o,this.pos),i+=this.jsx_readEntity(),o=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===s?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:it(s)?(i+=this.input.slice(o,this.pos),i+=this.jsx_readNewLine(!0),o=this.pos):++this.pos}}}jsx_readNewLine(i){let o,s=this.input.charCodeAt(this.pos);return++this.pos,13===s&&10===this.input.charCodeAt(this.pos)?(++this.pos,o=i?"\n":"\r\n"):o=String.fromCharCode(s),this.options.locations&&(++this.curLine,this.lineStart=this.pos),o}jsx_readString(i){let o="",s=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let v=this.input.charCodeAt(this.pos);if(v===i)break;38===v?(o+=this.input.slice(s,this.pos),o+=this.jsx_readEntity(),s=this.pos):it(v)?(o+=this.input.slice(s,this.pos),o+=this.jsx_readNewLine(!1),s=this.pos):++this.pos}return o+=this.input.slice(s,this.pos++),this.finishToken(we.string,o)}jsx_readEntity(){let i,o="",s=0,ae=this.input[this.pos];"&"!==ae&&this.raise(this.pos,"Entity must start with an ampersand");let pe=++this.pos;for(;this.pos")}let ae=_.name?"Element":"Fragment";return s["opening"+ae]=_,s["closing"+ae]=$,s.children=v,this.type===we.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(s,"JSX"+ae)}jsx_parseText(){let i=this.parseLiteral(this.value);return i.type="JSXText",i}jsx_parseElement(){let i=this.start,o=this.startLoc;return this.next(),this.jsx_parseElementAt(i,o)}parseExprAtom(i){return this.type===_e.jsxText?this.jsx_parseText():this.type===_e.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(i)}readToken(i){let o=this.curContext();if(o===rt)return this.jsx_readToken();if(o===tt||o===nt){if(ot(i))return this.jsx_readWord();if(62==i)return++this.pos,this.finishToken(_e.jsxTagEnd);if((34===i||39===i)&&o==tt)return this.jsx_readString(i)}return 60===i&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(_e.jsxTagStart)):super.readToken(i)}updateContext(i){if(this.type==we.braceL){var o=this.curContext();o==tt?this.context.push(et.b_expr):o==rt?this.context.push(et.b_tmpl):super.updateContext(i),this.exprAllowed=!0}else{if(this.type!==we.slash||i!==_e.jsxTagStart)return super.updateContext(i);this.context.length-=2,this.context.push(nt),this.exprAllowed=!1}}}}i.exports=function(i){return i=i||{},function(o){return plugin({allowNamespaces:!1!==i.allowNamespaces,allowNamespacedObjects:!!i.allowNamespacedObjects},o)}},Object.defineProperty(i.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(s(129)).tokTypes},configurable:!0,enumerable:!0})},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.DynamicImportKey=void 0;var v=function(){function defineProperties(i,o){for(var s=0;s>5]|=1<<(31&i)},_.prototype.has=function has(i){return!!(this.bits[i>>5]&1<<(31&i))};var $=function Chunk(i,o,s){this.start=i,this.end=o,this.original=s,this.intro="",this.outro="",this.content=s,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};$.prototype.appendLeft=function appendLeft(i){this.outro+=i},$.prototype.appendRight=function appendRight(i){this.intro=this.intro+i},$.prototype.clone=function clone(){var i=new $(this.start,this.end,this.original);return i.intro=this.intro,i.outro=this.outro,i.content=this.content,i.storeName=this.storeName,i.edited=this.edited,i},$.prototype.contains=function contains(i){return this.start=v.length)return"\t";var _=v.reduce((function(i,o){var s=/^ +/.exec(o)[0].length;return Math.min(s,i)}),1/0);return new Array(_+1).join(" ")}function getRelativePath(i,o){var s=i.split(/[/\\]/),v=o.split(/[/\\]/);for(s.pop();s[0]===v[0];)s.shift(),v.shift();if(s.length)for(var _=s.length;_--;)s[_]="..";return s.concat(v).join("/")}ae.prototype.toString=function toString(){return JSON.stringify(this)},ae.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var pe=Object.prototype.toString;function isObject(i){return"[object Object]"===pe.call(i)}function getLocator(i){for(var o=i.split("\n"),s=[],v=0,_=0;v>1;i=0&&_.push(v),this.rawSegments.push(_)}else this.pending&&this.rawSegments.push(this.pending);this.advance(o),this.pending=null},we.prototype.addUneditedChunk=function addUneditedChunk(i,o,s,v,_){for(var $=o.start,ae=!0;$1){for(var s=0;s=i&&s<=o)throw new Error("Cannot move a selection inside itself");this._split(i),this._split(o),this._split(s);var v=this.byStart[i],_=this.byEnd[o],$=v.previous,ae=_.next,pe=this.byStart[s];if(!pe&&_===this.lastChunk)return this;var we=pe?pe.previous:this.lastChunk;return $&&($.next=ae),ae&&(ae.previous=$),we&&(we.next=v),pe&&(pe.previous=_),v.previous||(this.firstChunk=_.next),_.next||(this.lastChunk=v.previous,this.lastChunk.next=null),v.previous=we,_.next=pe||null,we||(this.firstChunk=v),pe||(this.lastChunk=_),this},tt.prototype.overwrite=function overwrite(i,o,s,v){if("string"!=typeof s)throw new TypeError("replacement content must be a string");for(;i<0;)i+=this.original.length;for(;o<0;)o+=this.original.length;if(o>this.original.length)throw new Error("end is out of bounds");if(i===o)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(i),this._split(o),!0===v&&(et.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),et.storeName=!0),v={storeName:!0});var _=void 0!==v&&v.storeName,ae=void 0!==v&&v.contentOnly;if(_){var pe=this.original.slice(i,o);Object.defineProperty(this.storedNames,pe,{writable:!0,value:!0,enumerable:!0})}var we=this.byStart[i],_e=this.byEnd[o];if(we){for(var tt=we;tt!==_e;){if(tt.next!==this.byStart[tt.end])throw new Error("Cannot overwrite across a split point");(tt=tt.next).edit("",!1)}we.edit(s,_,ae)}else{var nt=new $(i,o,"").edit(s,_);_e.next=nt,nt.previous=_e}return this},tt.prototype.prepend=function prepend(i){if("string"!=typeof i)throw new TypeError("outro content must be a string");return this.intro=i+this.intro,this},tt.prototype.prependLeft=function prependLeft(i,o){if("string"!=typeof o)throw new TypeError("inserted content must be a string");this._split(i);var s=this.byEnd[i];return s?s.prependLeft(o):this.intro=o+this.intro,this},tt.prototype.prependRight=function prependRight(i,o){if("string"!=typeof o)throw new TypeError("inserted content must be a string");this._split(i);var s=this.byStart[i];return s?s.prependRight(o):this.outro=o+this.outro,this},tt.prototype.remove=function remove(i,o){for(;i<0;)i+=this.original.length;for(;o<0;)o+=this.original.length;if(i===o)return this;if(i<0||o>this.original.length)throw new Error("Character is out of bounds");if(i>o)throw new Error("end must be greater than start");this._split(i),this._split(o);for(var s=this.byStart[i];s;)s.intro="",s.outro="",s.edit(""),s=o>s.end?this.byStart[s.end]:null;return this},tt.prototype.lastChar=function lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];var i=this.lastChunk;do{if(i.outro.length)return i.outro[i.outro.length-1];if(i.content.length)return i.content[i.content.length-1];if(i.intro.length)return i.intro[i.intro.length-1]}while(i=i.previous);return this.intro.length?this.intro[this.intro.length-1]:""},tt.prototype.lastLine=function lastLine(){var i=this.outro.lastIndexOf(_e);if(-1!==i)return this.outro.substr(i+1);var o=this.outro,s=this.lastChunk;do{if(s.outro.length>0){if(-1!==(i=s.outro.lastIndexOf(_e)))return s.outro.substr(i+1)+o;o=s.outro+o}if(s.content.length>0){if(-1!==(i=s.content.lastIndexOf(_e)))return s.content.substr(i+1)+o;o=s.content+o}if(s.intro.length>0){if(-1!==(i=s.intro.lastIndexOf(_e)))return s.intro.substr(i+1)+o;o=s.intro+o}}while(s=s.previous);return-1!==(i=this.intro.lastIndexOf(_e))?this.intro.substr(i+1)+o:this.intro+o},tt.prototype.slice=function slice(i,o){for(void 0===i&&(i=0),void 0===o&&(o=this.original.length);i<0;)i+=this.original.length;for(;o<0;)o+=this.original.length;for(var s="",v=this.firstChunk;v&&(v.start>i||v.end<=i);){if(v.start=o)return s;v=v.next}if(v&&v.edited&&v.start!==i)throw new Error("Cannot use replaced character "+i+" as slice start anchor.");for(var _=v;v;){!v.intro||_===v&&v.start!==i||(s+=v.intro);var $=v.start=o;if($&&v.edited&&v.end!==o)throw new Error("Cannot use replaced character "+o+" as slice end anchor.");var ae=_===v?i-v.start:0,pe=$?v.content.length+o-v.end:v.content.length;if(s+=v.content.slice(ae,pe),!v.outro||$&&v.end!==o||(s+=v.outro),$)break;v=v.next}return s},tt.prototype.snip=function snip(i,o){var s=this.clone();return s.remove(0,i),s.remove(o,s.original.length),s},tt.prototype._split=function _split(i){if(!this.byStart[i]&&!this.byEnd[i])for(var o=this.lastSearchedChunk,s=i>o.end;o;){if(o.contains(i))return this._splitChunk(o,i);o=s?this.byStart[o.end]:this.byEnd[o.start]}},tt.prototype._splitChunk=function _splitChunk(i,o){if(i.edited&&i.content.length){var s=getLocator(this.original)(o);throw new Error("Cannot split a chunk that has already been edited ("+s.line+":"+s.column+' – "'+i.original+'")')}var v=i.split(o);return this.byEnd[o]=i,this.byStart[o]=v,this.byEnd[v.end]=v,i===this.lastChunk&&(this.lastChunk=v),this.lastSearchedChunk=i,!0},tt.prototype.toString=function toString(){for(var i=this.intro,o=this.firstChunk;o;)i+=o.toString(),o=o.next;return i+this.outro},tt.prototype.isEmpty=function isEmpty(){var i=this.firstChunk;do{if(i.intro.length&&i.intro.trim()||i.content.length&&i.content.trim()||i.outro.length&&i.outro.trim())return!1}while(i=i.next);return!0},tt.prototype.length=function length(){var i=this.firstChunk,length=0;do{length+=i.intro.length+i.content.length+i.outro.length}while(i=i.next);return length},tt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},tt.prototype.trim=function trim(i){return this.trimStart(i).trimEnd(i)},tt.prototype.trimEndAborted=function trimEndAborted(i){var o=new RegExp((i||"\\s")+"+$");if(this.outro=this.outro.replace(o,""),this.outro.length)return!0;var s=this.lastChunk;do{var v=s.end,_=s.trimEnd(o);if(s.end!==v&&(this.lastChunk===s&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),_)return!0;s=s.previous}while(s);return!1},tt.prototype.trimEnd=function trimEnd(i){return this.trimEndAborted(i),this},tt.prototype.trimStartAborted=function trimStartAborted(i){var o=new RegExp("^"+(i||"\\s")+"+");if(this.intro=this.intro.replace(o,""),this.intro.length)return!0;var s=this.firstChunk;do{var v=s.end,_=s.trimStart(o);if(s.end!==v&&(s===this.lastChunk&&(this.lastChunk=s.next),this.byEnd[s.end]=s,this.byStart[s.next.start]=s.next,this.byEnd[s.next.end]=s.next),_)return!0;s=s.next}while(s);return!1},tt.prototype.trimStart=function trimStart(i){return this.trimStartAborted(i),this};var nt=Object.prototype.hasOwnProperty,rt=function Bundle(i){void 0===i&&(i={}),this.intro=i.intro||"",this.separator=void 0!==i.separator?i.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};rt.prototype.addSource=function addSource(i){if(i instanceof tt)return this.addSource({content:i,filename:i.filename,separator:this.separator});if(!isObject(i)||!i.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((function(o){nt.call(i,o)||(i[o]=i.content[o])})),void 0===i.separator&&(i.separator=this.separator),i.filename)if(nt.call(this.uniqueSourceIndexByFilename,i.filename)){var o=this.uniqueSources[this.uniqueSourceIndexByFilename[i.filename]];if(i.content.original!==o.content)throw new Error("Illegal source: same filename ("+i.filename+"), different contents")}else this.uniqueSourceIndexByFilename[i.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:i.filename,content:i.content.original});return this.sources.push(i),this},rt.prototype.append=function append(i,o){return this.addSource({content:new tt(i),separator:o&&o.separator||""}),this},rt.prototype.clone=function clone(){var i=new rt({intro:this.intro,separator:this.separator});return this.sources.forEach((function(o){i.addSource({filename:o.filename,content:o.content.clone(),separator:o.separator})})),i},rt.prototype.generateDecodedMap=function generateDecodedMap(i){var o=this;void 0===i&&(i={});var s=[];this.sources.forEach((function(i){Object.keys(i.content.storedNames).forEach((function(i){~s.indexOf(i)||s.push(i)}))}));var v=new we(i.hires);return this.intro&&v.advance(this.intro),this.sources.forEach((function(i,_){_>0&&v.advance(o.separator);var $=i.filename?o.uniqueSourceIndexByFilename[i.filename]:-1,ae=i.content,pe=getLocator(ae.original);ae.intro&&v.advance(ae.intro),ae.firstChunk.eachNext((function(o){var _=pe(o.start);o.intro.length&&v.advance(o.intro),i.filename?o.edited?v.addEdit($,o.content,_,o.storeName?s.indexOf(o.original):-1):v.addUneditedChunk($,o,ae.original,_,ae.sourcemapLocations):v.advance(o.content),o.outro.length&&v.advance(o.outro)})),ae.outro&&v.advance(ae.outro)})),{file:i.file?i.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(o){return i.file?getRelativePath(i.file,o.filename):o.filename})),sourcesContent:this.uniqueSources.map((function(o){return i.includeContent?o.content:null})),names:s,mappings:v.raw}},rt.prototype.generateMap=function generateMap(i){return new ae(this.generateDecodedMap(i))},rt.prototype.getIndentString=function getIndentString(){var i={};return this.sources.forEach((function(o){var s=o.content.indentStr;null!==s&&(i[s]||(i[s]=0),i[s]+=1)})),Object.keys(i).sort((function(o,s){return i[o]-i[s]}))[0]||"\t"},rt.prototype.indent=function indent(i){var o=this;if(arguments.length||(i=this.getIndentString()),""===i)return this;var s=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(v,_){var $=void 0!==v.separator?v.separator:o.separator,ae=s||_>0&&/\r?\n$/.test($);v.content.indent(i,{exclude:v.indentExclusionRanges,indentStart:ae}),s="\n"===v.content.lastChar()})),this.intro&&(this.intro=i+this.intro.replace(/^[^\n]/gm,(function(o,s){return s>0?i+o:o}))),this},rt.prototype.prepend=function prepend(i){return this.intro=i+this.intro,this},rt.prototype.toString=function toString(){var i=this,o=this.sources.map((function(o,s){var v=void 0!==o.separator?o.separator:i.separator;return(s>0?v:"")+o.content.toString()})).join("");return this.intro+o},rt.prototype.isEmpty=function isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((function(i){return!i.content.isEmpty()}))},rt.prototype.length=function length(){return this.sources.reduce((function(i,o){return i+o.content.length()}),this.intro.length)},rt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},rt.prototype.trim=function trim(i){return this.trimStart(i).trimEnd(i)},rt.prototype.trimStart=function trimStart(i){var o=new RegExp("^"+(i||"\\s")+"+");if(this.intro=this.intro.replace(o,""),!this.intro){var s,v=0;do{if(!(s=this.sources[v++]))break}while(!s.content.trimStartAborted(i))}return this},rt.prototype.trimEnd=function trimEnd(i){var o,s=new RegExp((i||"\\s")+"+$"),v=this.sources.length-1;do{if(!(o=this.sources[v--])){this.intro=this.intro.replace(s,"");break}}while(!o.content.trimEndAborted(i));return this}}).call(this,s(399).Buffer)},function(i,o,s){"use strict";s.d(o,"a",(function(){return encode}));for(var v={},_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",$=0;$<_.length;$++)v[_.charCodeAt($)]=$;function encode(i){for(var o=0,s=0,v=0,_=0,$="",ae=0;ae0&&($+=";"),0!==pe.length){for(var we=0,_e=[],et=0,tt=pe;et1&&(rt+=encodeInteger(nt[1]-o)+encodeInteger(nt[2]-s)+encodeInteger(nt[3]-v),o=nt[1],s=nt[2],v=nt[3]),5===nt.length&&(rt+=encodeInteger(nt[4]-_),_=nt[4]),_e.push(rt)}$+=_e.join(",")}}return $}function encodeInteger(i){var o="";i=i<0?-i<<1|1:i<<1;do{var s=31&i;(i>>>=5)>0&&(s|=32),o+=_[s]}while(i>0);return o}},function(i,o,s){"use strict";const v=s(403).generate,_=s(404).parse,$=s(1),ae=s(405),pe=s(408),we=s(410),_e=s(411),et=$().addRange(0,1114111),tt=$().addRange(0,65535),nt=et.clone().remove(10,13,8232,8233),rt=nt.clone().intersection(tt),getCharacterClassEscapeSet=(i,o,s)=>o?s?_e.UNICODE_IGNORE_CASE.get(i):_e.UNICODE.get(i):_e.REGULAR.get(i),getUnicodePropertyValueSet=(i,o)=>{const v=o?"".concat(i,"/").concat(o):"Binary_Property/".concat(i);try{return s(412)("./".concat(v,".js"))}catch(s){throw new Error("Failed to recognize value `".concat(o,"` for property ")+"`".concat(i,"`."))}},handleLoneUnicodePropertyNameOrValue=i=>{try{const o="General_Category",s=pe(o,i);return getUnicodePropertyValueSet(o,s)}catch(i){}const o=ae(i);return getUnicodePropertyValueSet(o)},getUnicodePropertyEscapeSet=(i,o)=>{const s=i.split("="),v=s[0];let _;if(1==s.length)_=handleLoneUnicodePropertyNameOrValue(v);else{const i=ae(v),o=pe(i,s[1]);_=getUnicodePropertyValueSet(i,o)}return o?et.clone().remove(_):_.clone()};$.prototype.iuAddRange=function(i,o){const s=this;do{const o=caseFold(i);o&&s.add(o)}while(++i<=o);return s};const update=(i,o)=>{let s=_(o,it.useUnicodeFlag?"u":"");switch(s.type){case"characterClass":case"group":case"value":break;default:s=wrap(s,o)}Object.assign(i,s)},wrap=(i,o)=>({type:"group",behavior:"ignore",body:[i],raw:"(?:".concat(o,")")}),caseFold=i=>we.get(i)||!1,processCharacterClass=(i,o)=>{let s=$();for(const o of i.body)switch(o.type){case"value":if(s.add(o.codePoint),it.ignoreCase&&it.unicode&&!it.useUnicodeFlag){const i=caseFold(o.codePoint);i&&s.add(i)}break;case"characterClassRange":const i=o.min.codePoint,v=o.max.codePoint;s.addRange(i,v),it.ignoreCase&&it.unicode&&!it.useUnicodeFlag&&s.iuAddRange(i,v);break;case"characterClassEscape":s.add(getCharacterClassEscapeSet(o.value,it.unicode,it.ignoreCase));break;case"unicodePropertyEscape":s.add(getUnicodePropertyEscapeSet(o.value,o.negative));break;default:throw new Error("Unknown term type: ".concat(o.type))}return i.negative&&(s=(it.unicode?et:tt).clone().remove(s)),update(i,s.toString(o)),i},updateNamedReference=(i,o)=>{delete i.name,i.matchIndex=o},assertNoUnmatchedReferences=i=>{const o=Object.keys(i.unmatchedReferences);if(o.length>0)throw new Error("Unknown group names: ".concat(o))},processTerm=(i,o,s)=>{switch(i.type){case"dot":update(i,(v=it.unicode,_=it.dotAll,_?v?et:tt:v?nt:rt).toString(o));break;case"characterClass":i=processCharacterClass(i,o);break;case"unicodePropertyEscape":update(i,getUnicodePropertyEscapeSet(i.value,i.negative).toString(o));break;case"characterClassEscape":update(i,getCharacterClassEscapeSet(i.value,it.unicode,it.ignoreCase).toString(o));break;case"group":if(s.lastIndex++,i.name){const o=i.name.value;if(s.names[o])throw new Error("Multiple groups with the same name (".concat(o,") are not allowed."));const v=s.lastIndex;delete i.name,s.names[o]=v,s.onNamedGroup&&s.onNamedGroup.call(null,o,v),s.unmatchedReferences[o]&&(s.unmatchedReferences[o].forEach((i=>{updateNamedReference(i,v)})),delete s.unmatchedReferences[o])}case"alternative":case"disjunction":case"quantifier":i.body=i.body.map((i=>processTerm(i,o,s)));break;case"value":const ae=i.codePoint,pe=$(ae);if(it.ignoreCase&&it.unicode&&!it.useUnicodeFlag){const i=caseFold(ae);i&&pe.add(i)}update(i,pe.toString(o));break;case"reference":if(i.name){const o=i.name.value,v=s.names[o];if(v){updateNamedReference(i,v);break}s.unmatchedReferences[o]||(s.unmatchedReferences[o]=[]),s.unmatchedReferences[o].push(i)}break;case"anchor":case"empty":case"group":break;default:throw new Error("Unknown term type: ".concat(i.type))}var v,_;return i},it={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};i.exports=(i,o,s)=>{const $={unicodePropertyEscape:s&&s.unicodePropertyEscape,namedGroups:s&&s.namedGroup,lookbehind:s&&s.lookbehind};it.ignoreCase=o&&o.includes("i"),it.unicode=o&&o.includes("u");const ae=s&&s.dotAllFlag;it.dotAll=ae&&o&&o.includes("s"),it.useUnicodeFlag=s&&s.useUnicodeFlag;const pe={hasUnicodeFlag:it.useUnicodeFlag,bmpOnly:!it.unicode},we={onNamedGroup:s&&s.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},_e=_(i,o,$);return processTerm(_e,pe,we),assertNoUnmatchedReferences(we),v(_e)}},function(i,o){i.exports=function clipboardCopy(i){if(navigator.clipboard)return navigator.clipboard.writeText(i).catch((function(i){throw void 0!==i?i:new DOMException("The request is not allowed","NotAllowedError")}));var o=document.createElement("span");o.textContent=i,o.style.whiteSpace="pre",o.style.webkitUserSelect="auto",o.style.userSelect="all",document.body.appendChild(o);var s=window.getSelection(),v=window.document.createRange();s.removeAllRanges(),v.selectNode(o),s.addRange(v);var _=!1;try{_=window.document.execCommand("copy")}catch(i){console.log("error",i)}return s.removeAllRanges(),window.document.body.removeChild(o),_?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}},function(i,o,s){var v=s(25).isFinite;i.exports=function isFinite(i){return"number"==typeof i&&v(i)}},function(i,o,s){var v;!function(){"use strict";var s={}.hasOwnProperty;function classNames(){for(var i=[],o=0;o=0||(_[s]=i[s]);return _},i.exports.__esModule=!0,i.exports.default=i.exports},function(i,o,s){"use strict";s.d(o,"a",(function(){return content}));var v=s(7);function events(i){var{type:o="scroll",events:s}=i;return v.e.fromClass(class{constructor(i){this.dom=void 0,this.view=void 0,this.view=i,this.dom="dom"===o?i.dom:"content"===o?i.contentDOM:i.scrollDOM,Object.keys(s||{}).forEach((i=>{s&&s[i]&&this.dom&&this.dom.addEventListener(i,s[i])}))}destroy(){Object.keys(s||{}).forEach((i=>{s&&s[i]&&this.dom&&this.dom.removeEventListener(i,s[i])}))}})}function content(i){return events({type:"content",events:i})}},function(i,o,s){"use strict";function t(){return t=Object.assign?Object.assign.bind():function(i){for(var o=1;o0&&(i.strPos=i.currentElContent.length-1,i.strings.unshift(i.currentElContent)),i.sequence=[],i.strings)i.sequence[pe]=pe;i.arrayPos=0,i.stopNum=0,i.loop=i.options.loop,i.loopCount=i.options.loopCount,i.curLoop=0,i.shuffle=i.options.shuffle,i.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},i.typingComplete=!1,i.autoInsertCss=i.options.autoInsertCss,i.autoInsertCss&&(this.appendCursorAnimationCss(i),this.appendFadeOutAnimationCss(i))},i.getCurrentElContent=function(i){return i.attr?i.el.getAttribute(i.attr):i.isInput?i.el.value:"html"===i.contentType?i.el.innerHTML:i.el.textContent},i.appendCursorAnimationCss=function(i){var o="data-typed-js-cursor-css";if(i.showCursor&&!document.querySelector("["+o+"]")){var s=document.createElement("style");s.setAttribute(o,"true"),s.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(s)}},i.appendFadeOutAnimationCss=function(i){var o="data-typed-fadeout-js-css";if(i.fadeOut&&!document.querySelector("["+o+"]")){var s=document.createElement("style");s.setAttribute(o,"true"),s.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(s)}},e}()),$=new(function(){function t(){}var i=t.prototype;return i.typeHtmlChars=function(i,o,s){if("html"!==s.contentType)return o;var v=i.substring(o).charAt(0);if("<"===v||"&"===v){var _;for(_="<"===v?">":";";i.substring(o+1).charAt(0)!==_&&!(1+ ++o>i.length););o++}return o},i.backSpaceHtmlChars=function(i,o,s){if("html"!==s.contentType)return o;var v=i.substring(o).charAt(0);if(">"===v||";"===v){var _;for(_=">"===v?"<":"&";i.substring(o-1).charAt(0)!==_&&!(--o<0););o--}return o},t}()),ae=function(){function t(i,o){_.load(this,o,i),this.begin()}var i=t.prototype;return i.toggle=function(){this.pause.status?this.start():this.stop()},i.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},i.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},i.destroy=function(){this.reset(!1),this.options.onDestroy(this)},i.reset=function(i){void 0===i&&(i=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,i&&(this.insertCursor(),this.options.onReset(this),this.begin())},i.begin=function(){var i=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){0===i.strPos?i.typewrite(i.strings[i.sequence[i.arrayPos]],i.strPos):i.backspace(i.strings[i.sequence[i.arrayPos]],i.strPos)}),this.startDelay)},i.typewrite=function(i,o){var s=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var v=this.humanizer(this.typeSpeed),_=1;!0!==this.pause.status?this.timeout=setTimeout((function(){o=$.typeHtmlChars(i,o,s);var v=0,ae=i.substring(o);if("^"===ae.charAt(0)&&/^\^\d+/.test(ae)){var pe=1;pe+=(ae=/\d+/.exec(ae)[0]).length,v=parseInt(ae),s.temporaryPause=!0,s.options.onTypingPaused(s.arrayPos,s),i=i.substring(0,o)+i.substring(o+pe),s.toggleBlinking(!0)}if("`"===ae.charAt(0)){for(;"`"!==i.substring(o+_).charAt(0)&&(_++,!(o+_>i.length)););var we=i.substring(0,o),_e=i.substring(we.length+1,o+_),et=i.substring(o+_+1);i=we+_e+et,_--}s.timeout=setTimeout((function(){s.toggleBlinking(!1),o>=i.length?s.doneTyping(i,o):s.keepTyping(i,o,_),s.temporaryPause&&(s.temporaryPause=!1,s.options.onTypingResumed(s.arrayPos,s))}),v)}),v):this.setPauseStatus(i,o,!0)},i.keepTyping=function(i,o,s){0===o&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var v=i.substring(0,o+=s);this.replaceText(v),this.typewrite(i,o)},i.doneTyping=function(i,o){var s=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){s.backspace(i,o)}),this.backDelay))},i.backspace=function(i,o){var s=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var v=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){o=$.backSpaceHtmlChars(i,o,s);var v=i.substring(0,o);if(s.replaceText(v),s.smartBackspace){var _=s.strings[s.arrayPos+1];s.stopNum=_&&v===_.substring(0,o)?o:0}o>s.stopNum?(o--,s.backspace(i,o)):o<=s.stopNum&&(s.arrayPos++,s.arrayPos===s.strings.length?(s.arrayPos=0,s.options.onLastStringBackspaced(),s.shuffleStringsIfNeeded(),s.begin()):s.typewrite(s.strings[s.sequence[s.arrayPos]],o))}),v)}else this.setPauseStatus(i,o,!1)},i.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},i.setPauseStatus=function(i,o,s){this.pause.typewrite=s,this.pause.curString=i,this.pause.curStrPos=o},i.toggleBlinking=function(i){this.cursor&&(this.pause.status||this.cursorBlinking!==i&&(this.cursorBlinking=i,i?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},i.humanizer=function(i){return Math.round(Math.random()*i/2)+i},i.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))},i.initFadeOut=function(){var i=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){i.arrayPos++,i.replaceText(""),i.strings.length>i.arrayPos?i.typewrite(i.strings[i.sequence[i.arrayPos]],0):(i.typewrite(i.strings[0],0),i.arrayPos=0)}),this.fadeOutDelay)},i.replaceText=function(i){this.attr?this.el.setAttribute(this.attr,i):this.isInput?this.el.value=i:"html"===this.contentType?this.el.innerHTML=i:this.el.textContent=i},i.bindFocusEvents=function(){var i=this;this.isInput&&(this.el.addEventListener("focus",(function(o){i.stop()})),this.el.addEventListener("blur",(function(o){i.el.value&&0!==i.el.value.length||i.start()})))},i.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},t}()},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var v=function _interopRequireWildcard(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var v=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(i,s):{};v.get||v.set?Object.defineProperty(o,s,v):o[s]=i[s]}return o.default=i,o}(s(0)),_=_interopRequireDefault(s(2)),$=s(853),ae=s(133),pe=_interopRequireDefault(s(861)),we=_interopRequireDefault(s(862));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(i){return typeof i}:function _typeof(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}function _toConsumableArray(i){return _arrayWithoutHoles(i)||_iterableToArray(i)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(i){if(Symbol.iterator in Object(i)||"[object Arguments]"===Object.prototype.toString.call(i))return Array.from(i)}function _arrayWithoutHoles(i){if(Array.isArray(i)){for(var o=0,s=new Array(i.length);o1?v-1:0),$=1;${let{state:v,dispatch:_}=s;if(v.readOnly)return!1;let $=i(o,v);return!!$&&(_(v.update($)),!0)}}const nt=command(changeLineComment,0),rt=command(changeBlockComment,0),it=command(((i,o)=>changeBlockComment(i,o,selectedLineRanges(o))),0);function getConfig(i,o){let s=i.languageDataAt("commentTokens",o);return s.length?s[0]:{}}const ot=50;function findBlockComment(i,o,s,v){let _,$,{open:ae,close:pe}=o,we=i.sliceDoc(s-ot,s),_e=i.sliceDoc(v,v+ot),et=/\s*$/.exec(we)[0].length,tt=/^\s*/.exec(_e)[0].length,nt=we.length-et;if(we.slice(nt-ae.length,nt)==ae&&_e.slice(tt,tt+pe.length)==pe)return{open:{pos:s-et,margin:et&&1},close:{pos:v+tt,margin:tt&&1}};v-s<=2*ot?_=$=i.sliceDoc(s,v):(_=i.sliceDoc(s,s+ot),$=i.sliceDoc(v-ot,v));let rt=/^\s*/.exec(_)[0].length,it=/\s*$/.exec($)[0].length,st=$.length-it-pe.length;return _.slice(rt,rt+ae.length)==ae&&$.slice(st,st+pe.length)==pe?{open:{pos:s+rt+ae.length,margin:/\s/.test(_.charAt(rt+ae.length))?1:0},close:{pos:v-it-pe.length,margin:/\s/.test($.charAt(st-1))?1:0}}:null}function selectedLineRanges(i){let o=[];for(let s of i.selection.ranges){let v=i.doc.lineAt(s.from),_=s.to<=v.to?v:i.doc.lineAt(s.to),$=o.length-1;$>=0&&o[$].to>v.from?o[$].to=_.to:o.push({from:v.from+/^\s*/.exec(v.text)[0].length,to:_.to})}return o}function changeBlockComment(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.selection.ranges,v=s.map((i=>getConfig(o,i.from).block));if(!v.every((i=>i)))return null;let _=s.map(((i,s)=>findBlockComment(o,v[s],i.from,i.to)));if(2!=i&&!_.every((i=>i)))return{changes:o.changes(s.map(((i,o)=>_[o]?[]:[{from:i.from,insert:v[o].open+" "},{from:i.to,insert:" "+v[o].close}])))};if(1!=i&&_.some((i=>i))){let i=[];for(let o,s=0;s<_.length;s++)if(o=_[s]){let _=v[s],{open:$,close:ae}=o;i.push({from:$.pos-_.open.length,to:$.pos+$.margin},{from:ae.pos-ae.margin,to:ae.pos+_.close.length})}return{changes:i}}return null}function changeLineComment(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.selection.ranges,v=[],_=-1;for(let{from:i,to:$}of s){let s=v.length,ae=1e9,pe=getConfig(o,i).line;if(pe){for(let s=i;s<=$;){let we=o.doc.lineAt(s);if(we.from>_&&(i==$||$>we.from)){_=we.from;let i=/^\s*/.exec(we.text)[0].length,o=i==we.length,s=we.text.slice(i,i+pe.length)==pe?i:-1;ii.comment<0&&(!i.empty||i.single)))){let i=[];for(let{line:o,token:s,indent:_,empty:$,single:ae}of v)!ae&&$||i.push({from:o.from+_,insert:s+" "});let s=o.changes(i);return{changes:s,selection:o.selection.map(s,1)}}if(1!=i&&v.some((i=>i.comment>=0))){let i=[];for(let{line:o,comment:s,token:_}of v)if(s>=0){let v=o.from+s,$=v+_.length;" "==o.text[$-o.from]&&$++,i.push({from:v,to:$})}return{changes:i}}return null}const st=we.a.define(),dt=we.a.define(),ut=we.g.define(),lt=we.g.define({combine:i=>Object(we.s)(i,{minDepth:100,newGroupDelay:500,joinToEvent:(i,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(i,o)=>(s,v)=>i(s,v)||o(s,v)})}),ct=we.n.define({create:()=>bt.empty,update(i,o){let s=o.state.facet(lt),v=o.annotation(st);if(v){let _=mt.fromTransaction(o,v.selection),$=v.side,ae=0==$?i.undone:i.done;return ae=_?updateBranch(ae,ae.length,s.minDepth,_):addSelection(ae,o.startState.selection),new bt(0==$?v.rest:ae,0==$?ae:v.rest)}let _=o.annotation(dt);if("full"!=_&&"before"!=_||(i=i.isolate()),!1===o.annotation(we.p.addToHistory))return o.changes.empty?i:i.addMapping(o.changes.desc);let $=mt.fromTransaction(o),ae=o.annotation(we.p.time),pe=o.annotation(we.p.userEvent);return $?i=i.addChanges($,ae,pe,s,o):o.selection&&(i=i.addSelection(o.startState.selection,ae,pe,s.newGroupDelay)),"full"!=_&&"after"!=_||(i=i.isolate()),i},toJSON:i=>({done:i.done.map((i=>i.toJSON())),undone:i.undone.map((i=>i.toJSON()))}),fromJSON:i=>new bt(i.done.map(mt.fromJSON),i.undone.map(mt.fromJSON))});function dist_history(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[ct,lt.of(i),_e.c.domEventHandlers({beforeinput(i,o){let s="historyUndo"==i.inputType?ht:"historyRedo"==i.inputType?pt:null;return!!s&&(i.preventDefault(),s(o))}})]}function cmd(i,o){return function(s){let{state:v,dispatch:_}=s;if(!o&&v.readOnly)return!1;let $=v.field(ct,!1);if(!$)return!1;let ae=$.pop(i,v,o);return!!ae&&(_(ae),!0)}}const ht=cmd(0,!1),pt=cmd(1,!1),ft=cmd(0,!0),gt=cmd(1,!0);class mt{constructor(i,o,s,v,_){this.changes=i,this.effects=o,this.mapped=s,this.startSelection=v,this.selectionsAfter=_}setSelAfter(i){return new mt(this.changes,this.effects,this.mapped,this.startSelection,i)}toJSON(){var i,o,s;return{changes:null===(i=this.changes)||void 0===i?void 0:i.toJSON(),mapped:null===(o=this.mapped)||void 0===o?void 0:o.toJSON(),startSelection:null===(s=this.startSelection)||void 0===s?void 0:s.toJSON(),selectionsAfter:this.selectionsAfter.map((i=>i.toJSON()))}}static fromJSON(i){return new mt(i.changes&&we.c.fromJSON(i.changes),[],i.mapped&&we.b.fromJSON(i.mapped),i.startSelection&&we.e.fromJSON(i.startSelection),i.selectionsAfter.map(we.e.fromJSON))}static fromTransaction(i,o){let s=yt;for(let o of i.startState.facet(ut)){let v=o(i);v.length&&(s=s.concat(v))}return!s.length&&i.changes.empty?null:new mt(i.changes.invert(i.startState.doc),s,void 0,o||i.startState.selection,yt)}static selection(i){return new mt(void 0,yt,void 0,void 0,i)}}function updateBranch(i,o,s,v){let _=o+1>s+20?o-s-1:0,$=i.slice(_,o);return $.push(v),$}function isAdjacent(i,o){let s=[],v=!1;return i.iterChangedRanges(((i,o)=>s.push(i,o))),o.iterChangedRanges(((i,o,_,$)=>{for(let i=0;i=o&&_<=ae&&(v=!0)}})),v}function conc(i,o){return i.length?o.length?i.concat(o):i:o}const yt=[],vt=200;function addSelection(i,o){if(i.length){let s=i[i.length-1],v=s.selectionsAfter.slice(Math.max(0,s.selectionsAfter.length-vt));return v.length&&v[v.length-1].eq(o)?i:(v.push(o),updateBranch(i,i.length-1,1e9,s.setSelAfter(v)))}return[mt.selection([o])]}function popSelection(i){let o=i[i.length-1],s=i.slice();return s[i.length-1]=o.setSelAfter(o.selectionsAfter.slice(0,o.selectionsAfter.length-1)),s}function addMappingToBranch(i,o){if(!i.length)return i;let s=i.length,v=yt;for(;s;){let _=mapEvent(i[s-1],o,v);if(_.changes&&!_.changes.empty||_.effects.length){let o=i.slice(0,s);return o[s-1]=_,o}o=_.mapped,s--,v=_.selectionsAfter}return v.length?[mt.selection(v)]:yt}function mapEvent(i,o,s){let v=conc(i.selectionsAfter.length?i.selectionsAfter.map((i=>i.map(o))):yt,s);if(!i.changes)return mt.selection(v);let _=i.changes.map(o),$=o.mapDesc(i.changes,!0),ae=i.mapped?i.mapped.composeDesc($):$;return new mt(_,we.m.mapEffects(i.effects,o),ae,i.startSelection.map($),v)}const Rt=/^(input\.type|delete)($|\.)/;class bt{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=i,this.undone=o,this.prevTime=s,this.prevUserEvent=v}isolate(){return this.prevTime?new bt(this.done,this.undone):this}addChanges(i,o,s,v,_){let $=this.done,ae=$[$.length-1];return $=ae&&ae.changes&&!ae.changes.empty&&i.changes&&(!s||Rt.test(s))&&(!ae.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimei.empty!=ae.ranges[o].empty)).length)?this:new bt(addSelection(this.done,i),this.undone,o,s);var $,ae}addMapping(i){return new bt(addMappingToBranch(this.done,i),addMappingToBranch(this.undone,i),this.prevTime,this.prevUserEvent)}pop(i,o,s){let v=0==i?this.done:this.undone;if(0==v.length)return null;let _=v[v.length-1],$=_.selectionsAfter[0]||o.selection;if(s&&_.selectionsAfter.length)return o.update({selection:_.selectionsAfter[_.selectionsAfter.length-1],annotations:st.of({side:i,rest:popSelection(v),selection:$}),userEvent:0==i?"select.undo":"select.redo",scrollIntoView:!0});if(_.changes){let s=1==v.length?yt:v.slice(0,v.length-1);return _.mapped&&(s=addMappingToBranch(s,_.mapped)),o.update({changes:_.changes,selection:_.startSelection,effects:_.effects,annotations:st.of({side:i,rest:s,selection:$}),filter:!1,userEvent:0==i?"undo":"redo",scrollIntoView:!0})}return null}}bt.empty=new bt(yt,yt);const Ot=[{key:"Mod-z",run:ht,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:pt,preventDefault:!0},{linux:"Ctrl-Shift-z",run:pt,preventDefault:!0},{key:"Mod-u",run:ft,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:gt,preventDefault:!0}];function updateSel(i,o){return we.e.create(i.ranges.map(o),i.mainIndex)}function setSel(i,o){return i.update({selection:o,scrollIntoView:!0,userEvent:"select"})}function moveSel(i,o){let{state:s,dispatch:v}=i,_=updateSel(s.selection,o);return!_.eq(s.selection)&&(v(setSel(s,_)),!0)}function rangeEnd(i,o){return we.e.cursor(o?i.to:i.from)}function cursorByChar(i,o){return moveSel(i,(s=>s.empty?i.moveByChar(s,o):rangeEnd(s,o)))}function ltrAtCursor(i){return i.textDirectionAt(i.state.selection.main.head)==_e.b.LTR}const cursorCharLeft=i=>cursorByChar(i,!ltrAtCursor(i)),cursorCharRight=i=>cursorByChar(i,ltrAtCursor(i));function cursorByGroup(i,o){return moveSel(i,(s=>s.empty?i.moveByGroup(s,o):rangeEnd(s,o)))}"undefined"!=typeof Intl&&Intl.Segmenter;function interestingNode(i,o,s){if(o.type.prop(s))return!0;let v=o.to-o.from;return v&&(v>2||/[^\s,.;:]/.test(i.sliceDoc(o.from,o.to)))||o.firstChild}function moveBySyntax(i,o,s){let v,_,$=Object(et.x)(i).resolveInner(o.head),ae=s?tt.c.closedBy:tt.c.openedBy;for(let v=o.head;;){let o=s?$.childAfter(v):$.childBefore(v);if(!o)break;interestingNode(i,o,ae)?$=o:v=s?o.to:o.from}return _=$.type.prop(ae)&&(v=s?Object(et.u)(i,$.from,1):Object(et.u)(i,$.to,-1))&&v.matched?s?v.end.to:v.end.from:s?$.to:$.from,we.e.cursor(_,s?-1:1)}function cursorByLine(i,o){return moveSel(i,(s=>{if(!s.empty)return rangeEnd(s,o);let v=i.moveVertically(s,o);return v.head!=s.head?v:i.moveToLineBoundary(s,o)}))}const cursorLineUp=i=>cursorByLine(i,!1),cursorLineDown=i=>cursorByLine(i,!0);function pageInfo(i){let o,s=i.scrollDOM.clientHeights.empty?i.moveVertically(s,o,v.height):rangeEnd(s,o)));if($.eq(_.selection))return!1;if(v.selfScroll){let o=i.coordsAtPos(_.selection.main.head),ae=i.scrollDOM.getBoundingClientRect(),pe=ae.top+v.marginTop,we=ae.bottom-v.marginBottom;o&&o.top>pe&&o.bottomcursorByPage(i,!1),cursorPageDown=i=>cursorByPage(i,!0);function moveByLineBoundary(i,o,s){let v=i.lineBlockAt(o.head),_=i.moveToLineBoundary(o,s);if(_.head==o.head&&_.head!=(s?v.to:v.from)&&(_=i.moveToLineBoundary(o,s,!1)),!s&&_.head==v.from&&v.length){let s=/^\s*/.exec(i.state.sliceDoc(v.from,Math.min(v.from+100,v.to)))[0].length;s&&o.head!=v.from+s&&(_=we.e.cursor(v.from+s))}return _}function toMatchingBracket(i,o,s){let v=!1,_=updateSel(i.selection,(o=>{let _=Object(et.u)(i,o.head,-1)||Object(et.u)(i,o.head,1)||o.head>0&&Object(et.u)(i,o.head-1,1)||o.head{let s=o(i);return we.e.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)}));return!s.eq(i.state.selection)&&(i.dispatch(setSel(i.state,s)),!0)}function selectByChar(i,o){return extendSel(i,(s=>i.moveByChar(s,o)))}const selectCharLeft=i=>selectByChar(i,!ltrAtCursor(i)),selectCharRight=i=>selectByChar(i,ltrAtCursor(i));function selectByGroup(i,o){return extendSel(i,(s=>i.moveByGroup(s,o)))}function selectByLine(i,o){return extendSel(i,(s=>i.moveVertically(s,o)))}const selectLineUp=i=>selectByLine(i,!1),selectLineDown=i=>selectByLine(i,!0);function selectByPage(i,o){return extendSel(i,(s=>i.moveVertically(s,o,pageInfo(i).height)))}const selectPageUp=i=>selectByPage(i,!1),selectPageDown=i=>selectByPage(i,!0),cursorDocStart=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:0})),!0},cursorDocEnd=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:o.doc.length})),!0},selectDocStart=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:o.selection.main.anchor,head:0})),!0},selectDocEnd=i=>{let{state:o,dispatch:s}=i;return s(setSel(o,{anchor:o.selection.main.anchor,head:o.doc.length})),!0};function deleteBy(i,o){if(i.state.readOnly)return!1;let s="delete.selection",{state:v}=i,_=v.changeByRange((v=>{let{from:_,to:$}=v;if(_==$){let ae=o(v);ae<_?(s="delete.backward",ae=skipAtomic(i,ae,!1)):ae>_&&(s="delete.forward",ae=skipAtomic(i,ae,!0)),_=Math.min(_,ae),$=Math.max($,ae)}else _=skipAtomic(i,_,!1),$=skipAtomic(i,$,!0);return _==$?{range:v}:{changes:{from:_,to:$},range:we.e.cursor(_,_o(i))))v.between(o,o,((i,v)=>{io&&(o=s?v:i)}));return o}const deleteByChar=(i,o)=>deleteBy(i,(s=>{let v,_,$=s.from,{state:ae}=i,pe=ae.doc.lineAt($);if(!o&&$>pe.from&&$deleteByChar(i,!1),deleteCharForward=i=>deleteByChar(i,!0),deleteByGroup=(i,o)=>deleteBy(i,(s=>{let v=s.head,{state:_}=i,$=_.doc.lineAt(v),ae=_.charCategorizer(v);for(let i=null;;){if(v==(o?$.to:$.from)){v==s.head&&$.number!=(o?_.doc.lines:1)&&(v+=o?1:-1);break}let pe=Object(we.u)($.text,v-$.from,o)+$.from,_e=$.text.slice(Math.min(v,pe)-$.from,Math.max(v,pe)-$.from),et=ae(_e);if(null!=i&&et!=i)break;" "==_e&&v==s.head||(i=et),v=pe}return v})),deleteGroupBackward=i=>deleteByGroup(i,!1);function selectedLineBlocks(i){let o=[],s=-1;for(let v of i.selection.ranges){let _=i.doc.lineAt(v.from),$=i.doc.lineAt(v.to);if(v.empty||v.to!=$.from||($=i.doc.lineAt(v.to-1)),s>=_.number){let i=o[o.length-1];i.to=$.to,i.ranges.push(v)}else o.push({from:_.from,to:$.to,ranges:[v]});s=$.number+1}return o}function moveLine(i,o,s){if(i.readOnly)return!1;let v=[],_=[];for(let o of selectedLineBlocks(i)){if(s?o.to==i.doc.length:0==o.from)continue;let $=i.doc.lineAt(s?o.to+1:o.from-1),ae=$.length+1;if(s){v.push({from:o.to,to:$.to},{from:o.from,insert:$.text+i.lineBreak});for(let s of o.ranges)_.push(we.e.range(Math.min(i.doc.length,s.anchor+ae),Math.min(i.doc.length,s.head+ae)))}else{v.push({from:$.from,to:o.from},{from:o.to,insert:i.lineBreak+$.text});for(let i of o.ranges)_.push(we.e.range(i.anchor-ae,i.head-ae))}}return!!v.length&&(o(i.update({changes:v,scrollIntoView:!0,selection:we.e.create(_,i.selection.mainIndex),userEvent:"move.line"})),!0)}function copyLine(i,o,s){if(i.readOnly)return!1;let v=[];for(let o of selectedLineBlocks(i))s?v.push({from:o.from,insert:i.doc.slice(o.from,o.to)+i.lineBreak}):v.push({from:o.to,insert:i.lineBreak+i.doc.slice(o.from,o.to)});return o(i.update({changes:v,scrollIntoView:!0,userEvent:"input.copyline"})),!0}function isBetweenBrackets(i,o){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(o-1,o+1)))return{from:o,to:o};let s,v=Object(et.x)(i).resolveInner(o),_=v.childBefore(o),$=v.childAfter(o);return _&&$&&_.to<=o&&$.from>=o&&(s=_.type.prop(tt.c.closedBy))&&s.indexOf($.name)>-1&&i.doc.lineAt(_.to).from==i.doc.lineAt($.from).from&&!/\S/.test(i.sliceDoc(_.to,$.from))?{from:_.to,to:$.from}:null}const xt=newlineAndIndent(!1);function newlineAndIndent(i){return o=>{let{state:s,dispatch:v}=o;if(s.readOnly)return!1;let _=s.changeByRange((o=>{let{from:v,to:_}=o,$=s.doc.lineAt(v),ae=!i&&v==_&&isBetweenBrackets(s,v);i&&(v=_=(_<=$.to?$:s.doc.lineAt(_)).to);let pe=new et.b(s,{simulateBreak:v,simulateDoubleBreak:!!ae}),_e=Object(et.p)(pe,v);for(null==_e&&(_e=Object(we.t)(/^\s*/.exec(s.doc.lineAt(v).text)[0],s.tabSize));_<$.to&&/\s/.test($.text[_-$.from]);)_++;ae?({from:v,to:_}=ae):v>$.from&&v<$.from+100&&!/\S/.test($.text.slice(0,v))&&(v=$.from);let tt=["",Object(et.s)(s,_e)];return ae&&tt.push(Object(et.s)(s,pe.lineIndent($.from,-1))),{changes:{from:v,to:_,insert:we.o.of(tt)},range:we.e.cursor(v+1+tt[1].length)}}));return v(s.update(_,{scrollIntoView:!0,userEvent:"input"})),!0}}function changeBySelectedLine(i,o){let s=-1;return i.changeByRange((v=>{let _=[];for(let $=v.from;$<=v.to;){let ae=i.doc.lineAt($);ae.number>s&&(v.empty||v.to>ae.from)&&(o(ae,_,v),s=ae.number),$=ae.to+1}let $=i.changes(_);return{changes:_,range:we.e.range($.mapPos(v.anchor,1),$.mapPos(v.head,1))}}))}const indentMore=i=>{let{state:o,dispatch:s}=i;return!o.readOnly&&(s(o.update(changeBySelectedLine(o,((i,s)=>{s.push({from:i.from,insert:o.facet(et.t)})})),{userEvent:"input.indent"})),!0)},indentLess=i=>{let{state:o,dispatch:s}=i;return!o.readOnly&&(s(o.update(changeBySelectedLine(o,((i,s)=>{let v=/^\s*/.exec(i.text)[0];if(!v)return;let _=Object(we.t)(v,o.tabSize),$=0,ae=Object(et.s)(o,Math.max(0,_-Object(et.o)(o)));for(;$moveSel(i,(o=>moveBySyntax(i.state,o,!ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveBySyntax(i.state,o,!ltrAtCursor(i))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:i=>moveSel(i,(o=>moveBySyntax(i.state,o,ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveBySyntax(i.state,o,ltrAtCursor(i))))},{key:"Alt-ArrowUp",run:i=>{let{state:o,dispatch:s}=i;return moveLine(o,s,!1)}},{key:"Shift-Alt-ArrowUp",run:i=>{let{state:o,dispatch:s}=i;return copyLine(o,s,!1)}},{key:"Alt-ArrowDown",run:i=>{let{state:o,dispatch:s}=i;return moveLine(o,s,!0)}},{key:"Shift-Alt-ArrowDown",run:i=>{let{state:o,dispatch:s}=i;return copyLine(o,s,!0)}},{key:"Escape",run:i=>{let{state:o,dispatch:s}=i,v=o.selection,_=null;return v.ranges.length>1?_=we.e.create([v.main]):v.main.empty||(_=we.e.create([we.e.cursor(v.main.head)])),!!_&&(s(setSel(o,_)),!0)}},{key:"Mod-Enter",run:newlineAndIndent(!0)},{key:"Alt-l",mac:"Ctrl-l",run:i=>{let{state:o,dispatch:s}=i,v=selectedLineBlocks(o).map((i=>{let{from:s,to:v}=i;return we.e.range(s,Math.min(v+1,o.doc.length))}));return s(o.update({selection:we.e.create(v),userEvent:"select"})),!0}},{key:"Mod-i",run:i=>{let{state:o,dispatch:s}=i,v=updateSel(o.selection,(i=>{var s;for(let v=Object(et.x)(o).resolveStack(i.from,1);v;v=v.next){let{node:o}=v;if((o.from=i.to||o.to>i.to&&o.from<=i.from)&&(null===(s=o.parent)||void 0===s?void 0:s.parent))return we.e.range(o.to,o.from)}return i}));return s(setSel(o,v)),!0},preventDefault:!0},{key:"Mod-[",run:indentLess},{key:"Mod-]",run:indentMore},{key:"Mod-Alt-\\",run:i=>{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let v=Object.create(null),_=new et.b(o,{overrideIndentation:i=>{let o=v[i];return null==o?-1:o}}),$=changeBySelectedLine(o,((i,s,$)=>{let ae=Object(et.p)(_,i.from);if(null==ae)return;/\S/.test(i.text)||(ae=0);let pe=/^\s*/.exec(i.text)[0],we=Object(et.s)(o,ae);(pe!=we||$.from{if(i.state.readOnly)return!1;let{state:o}=i,s=o.changes(selectedLineBlocks(o).map((i=>{let{from:s,to:v}=i;return s>0?s--:vi.moveVertically(o,!0))).map(s);return i.dispatch({changes:s,selection:v,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:i=>{let{state:o,dispatch:s}=i;return toMatchingBracket(o,s,!1)}},{key:"Mod-/",run:i=>{let{state:o}=i,s=o.doc.lineAt(o.selection.main.from),v=getConfig(i.state,s.from);return v.line?nt(i):!!v.block&&it(i)}},{key:"Alt-A",run:rt}].concat([{key:"ArrowLeft",run:cursorCharLeft,shift:selectCharLeft,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:i=>cursorByGroup(i,!ltrAtCursor(i)),shift:i=>selectByGroup(i,!ltrAtCursor(i)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,!ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,!ltrAtCursor(i)))),preventDefault:!0},{key:"ArrowRight",run:cursorCharRight,shift:selectCharRight,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:i=>cursorByGroup(i,ltrAtCursor(i)),shift:i=>selectByGroup(i,ltrAtCursor(i)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,ltrAtCursor(i)))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,ltrAtCursor(i)))),preventDefault:!0},{key:"ArrowUp",run:cursorLineUp,shift:selectLineUp,preventDefault:!0},{mac:"Cmd-ArrowUp",run:cursorDocStart,shift:selectDocStart},{mac:"Ctrl-ArrowUp",run:cursorPageUp,shift:selectPageUp},{key:"ArrowDown",run:cursorLineDown,shift:selectLineDown,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cursorDocEnd,shift:selectDocEnd},{mac:"Ctrl-ArrowDown",run:cursorPageDown,shift:selectPageDown},{key:"PageUp",run:cursorPageUp,shift:selectPageUp},{key:"PageDown",run:cursorPageDown,shift:selectPageDown},{key:"Home",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,!1))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,!1))),preventDefault:!0},{key:"Mod-Home",run:cursorDocStart,shift:selectDocStart},{key:"End",run:i=>moveSel(i,(o=>moveByLineBoundary(i,o,!0))),shift:i=>extendSel(i,(o=>moveByLineBoundary(i,o,!0))),preventDefault:!0},{key:"Mod-End",run:cursorDocEnd,shift:selectDocEnd},{key:"Enter",run:xt},{key:"Mod-a",run:i=>{let{state:o,dispatch:s}=i;return s(o.update({selection:{anchor:0,head:o.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:deleteCharBackward,shift:deleteCharBackward},{key:"Delete",run:deleteCharForward},{key:"Mod-Backspace",mac:"Alt-Backspace",run:deleteGroupBackward},{key:"Mod-Delete",mac:"Alt-Delete",run:i=>deleteByGroup(i,!0)},{mac:"Mod-Backspace",run:i=>deleteBy(i,(o=>{let s=i.moveToLineBoundary(o,!1).head;return o.head>s?s:Math.max(0,o.head-1)}))},{mac:"Mod-Delete",run:i=>deleteBy(i,(o=>{let s=i.moveToLineBoundary(o,!0).head;return o.headmoveSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).from,1))),shift:i=>extendSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).from)))},{key:"Ctrl-e",run:i=>moveSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).to,-1))),shift:i=>extendSel(i,(o=>we.e.cursor(i.lineBlockAt(o.head).to)))},{key:"Ctrl-d",run:deleteCharForward},{key:"Ctrl-h",run:deleteCharBackward},{key:"Ctrl-k",run:i=>deleteBy(i,(o=>{let s=i.lineBlockAt(o.head).to;return o.head{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let v=o.changeByRange((i=>({changes:{from:i.from,to:i.to,insert:we.o.of(["",""])},range:we.e.cursor(i.from)})));return s(o.update(v,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:i=>{let{state:o,dispatch:s}=i;if(o.readOnly)return!1;let v=o.changeByRange((i=>{if(!i.empty||0==i.from||i.from==o.doc.length)return{range:i};let s=i.from,v=o.doc.lineAt(s),_=s==v.from?s-1:Object(we.u)(v.text,s-v.from,!1)+v.from,$=s==v.to?s+1:Object(we.u)(v.text,s-v.from,!0)+v.from;return{changes:{from:_,to:$,insert:o.doc.slice(s,$).append(o.doc.slice(_,s))},range:we.e.cursor($)}}));return!v.changes.empty&&(s(o.update(v,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:cursorPageDown}].map((i=>({mac:i.key,run:i.run,shift:i.shift}))))),Ct={key:"Tab",run:indentMore,shift:indentLess};function crelt(){var i=arguments[0];"string"==typeof i&&(i=document.createElement(i));var o=1,s=arguments[1];if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){for(var v in s)if(Object.prototype.hasOwnProperty.call(s,v)){var _=s[v];"string"==typeof _?i.setAttribute(v,_):null!=_&&(i[v]=_)}o++}for(;oi.normalize("NFKD"):i=>i;class _t{constructor(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.length,_=arguments.length>4?arguments[4]:void 0,$=arguments.length>5?arguments[5]:void 0;this.test=$,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=i.iterRange(s,v),this.bufferStart=s,this.normalize=_?i=>_(St(i)):St,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Object(we.q)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let i=this.peek();if(i<0)return this.done=!0,this;let o=Object(we.w)(i),s=this.bufferStart+this.bufferPos;this.bufferPos+=Object(we.r)(i);let v=this.normalize(o);for(let i=0,_=s;;i++){let $=v.charCodeAt(i),ae=this.match($,_);if(i==v.length-1){if(ae)return this.value=ae,this;break}_==s&&i3&&void 0!==arguments[3]?arguments[3]:0,_=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.length;if(this.text=i,this.to=_,this.curLine="",this.done=!1,this.value=Et,/\\[sWDnr]|\n|\r|\[\^/.test(o))return new Tt(i,o,s,v,_);this.re=new RegExp(o,kt+((null==s?void 0:s.ignoreCase)?"i":"")),this.test=null==s?void 0:s.test,this.iter=i.iter();let $=i.lineAt(v);this.curLineStart=$.from,this.matchPos=toCharEnd(i,v),this.getLine(this.curLineStart)}getLine(i){this.iter.next(i),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let i=this.matchPos-this.curLineStart;;){this.re.lastIndex=i;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let s=this.curLineStart+o.index,v=s+o[0].length;if(this.matchPos=toCharEnd(this.text,v+(s==v?1:0)),s==this.curLineStart+this.curLine.length&&this.nextLine(),(sthis.value.to)&&(!this.test||this.test(s,v,o)))return this.value={from:s,to:v,match:o},this;i=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=s||v.to<=o){let v=new Pt(o,i.sliceString(o,s));return Dt.set(i,v),v}if(v.from==o&&v.to==s)return v;let{text:_,from:$}=v;return $>o&&(_=i.sliceString(o,$)+_,$=o),v.to=this.to?this.to:this.text.lineAt(i).to}next(){for(;;){let i=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==i&&(this.re.lastIndex=i+1,o=this.re.exec(this.flat.text)),o){let i=this.flat.from+o.index,s=i+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,o)))return this.value={from:i,to:s,match:o},this.matchPos=toCharEnd(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Pt.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function validRegExp(i){try{return new RegExp(i,kt),!0}catch(i){return!1}}function toCharEnd(i,o){if(o>=i.length)return o;let s,v=i.lineAt(o);for(;o=56320&&s<57344;)o++;return o}function createLineDialog(i){let o=crelt("input",{class:"cm-textfield",name:"line",value:String(i.state.doc.lineAt(i.state.selection.main.head).number)});function go(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!s)return;let{state:v}=i,_=v.doc.lineAt(v.selection.main.head),[,$,ae,pe,et]=s,tt=pe?+pe.slice(1):0,nt=ae?+ae:_.number;if(ae&&et){let i=nt/100;$&&(i=i*("-"==$?-1:1)+_.number/v.doc.lines),nt=Math.round(v.doc.lines*i)}else ae&&$&&(nt=nt*("-"==$?-1:1)+_.number);let rt=v.doc.line(Math.max(1,Math.min(v.doc.lines,nt))),it=we.e.cursor(rt.from+Math.max(0,Math.min(tt,rt.length)));i.dispatch({effects:[It.of(!1),_e.c.scrollIntoView(it.from,{y:"center"})],selection:it}),i.focus()}return{dom:crelt("form",{class:"cm-gotoLine",onkeydown:o=>{27==o.keyCode?(o.preventDefault(),i.dispatch({effects:It.of(!1)}),i.focus()):13==o.keyCode&&(o.preventDefault(),go())},onsubmit:i=>{i.preventDefault(),go()}},crelt("label",i.state.phrase("Go to line"),": ",o)," ",crelt("button",{class:"cm-button",type:"submit"},i.state.phrase("go")))}}"undefined"!=typeof Symbol&&(At.prototype[Symbol.iterator]=Tt.prototype[Symbol.iterator]=function(){return this});const It=we.m.define(),Ft=we.n.define({create:()=>!0,update(i,o){for(let s of o.effects)s.is(It)&&(i=s.value);return i},provide:i=>_e.w.from(i,(i=>i?createLineDialog:null))}),Nt=_e.c.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Bt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Lt=we.g.define({combine:i=>Object(we.s)(i,Bt,{highlightWordAroundCursor:(i,o)=>i||o,minSelectionLength:Math.min,maxMatches:Math.min})});function highlightSelectionMatches(i){let o=[Vt,Qt];return i&&o.push(Lt.of(i)),o}const jt=_e.a.mark({class:"cm-selectionMatch"}),Mt=_e.a.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function insideWordBoundaries(i,o,s,v){return!(0!=s&&i(o.sliceDoc(s-1,s))==we.d.Word||v!=o.doc.length&&i(o.sliceDoc(v,v+1))==we.d.Word)}function insideWord(i,o,s,v){return i(o.sliceDoc(s,s+1))==we.d.Word&&i(o.sliceDoc(v-1,v))==we.d.Word}const Qt=_e.e.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.selectionSet||i.docChanged||i.viewportChanged)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let o=i.state.facet(Lt),{state:s}=i,v=s.selection;if(v.ranges.length>1)return _e.a.none;let _,$=v.main,ae=null;if($.empty){if(!o.highlightWordAroundCursor)return _e.a.none;let i=s.wordAt($.head);if(!i)return _e.a.none;ae=s.charCategorizer($.head),_=s.sliceDoc(i.from,i.to)}else{let i=$.to-$.from;if(i200)return _e.a.none;if(o.wholeWords){if(_=s.sliceDoc($.from,$.to),ae=s.charCategorizer($.head),!insideWordBoundaries(ae,s,$.from,$.to)||!insideWord(ae,s,$.from,$.to))return _e.a.none}else if(_=s.sliceDoc($.from,$.to).trim(),!_)return _e.a.none}let pe=[];for(let v of i.visibleRanges){let i=new _t(s.doc,_,v.from,v.to);for(;!i.next().done;){let{from:v,to:_}=i.value;if((!ae||insideWordBoundaries(ae,s,v,_))&&($.empty&&v<=$.from&&_>=$.to?pe.push(Mt.range(v,_)):(v>=$.to||_<=$.from)&&pe.push(jt.range(v,_)),pe.length>o.maxMatches))return _e.a.none}}return _e.a.set(pe)}},{decorations:i=>i.decorations}),Vt=_e.c.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),selectWord=i=>{let{state:o,dispatch:s}=i,{selection:v}=o,_=we.e.create(v.ranges.map((i=>o.wordAt(i.head)||we.e.cursor(i.head))),v.mainIndex);return!_.eq(v)&&(s(o.update({selection:_})),!0)};function findNextOccurrence(i,o){let{main:s,ranges:v}=i.selection,_=i.wordAt(s.head),$=_&&_.from==s.from&&_.to==s.to;for(let s=!1,_=new _t(i.doc,o,v[v.length-1].to);;){if(_.next(),!_.done){if(s&&v.some((i=>i.from==_.value.from)))continue;if($){let o=i.wordAt(_.value.from);if(!o||o.from!=_.value.from||o.to!=_.value.to)continue}return _.value}if(s)return null;_=new _t(i.doc,o,0,Math.max(0,v[v.length-1].from-1)),s=!0}}const Ut=we.g.define({combine:i=>Object(we.s)(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:i=>new ia(i),scrollToMatch:i=>_e.c.scrollIntoView(i)})});class Wt{constructor(i){this.search=i.search,this.caseSensitive=!!i.caseSensitive,this.literal=!!i.literal,this.regexp=!!i.regexp,this.replace=i.replace||"",this.valid=!!this.search&&(!this.regexp||validRegExp(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!i.wholeWord}unquote(i){return this.literal?i:i.replace(/\\([nrt\\])/g,((i,o)=>"n"==o?"\n":"r"==o?"\r":"t"==o?"\t":"\\"))}eq(i){return this.search==i.search&&this.replace==i.replace&&this.caseSensitive==i.caseSensitive&&this.regexp==i.regexp&&this.wholeWord==i.wholeWord}create(){return this.regexp?new zt(this):new qt(this)}getCursor(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2?arguments[2]:void 0,v=i.doc?i:we.f.create({doc:i});return null==s&&(s=v.doc.length),this.regexp?regexpCursor(this,v,o,s):stringCursor(this,v,o,s)}}class $t{constructor(i){this.spec=i}}function stringCursor(i,o,s,v){return new _t(o.doc,i.unquoted,s,v,i.caseSensitive?void 0:i=>i.toLowerCase(),i.wholeWord?(_=o.doc,$=o.charCategorizer(o.selection.main.head),(i,o,s,v)=>((v>i||v+s.length=o)return null;v.push(s.value)}return v}highlight(i,o,s,v){let _=stringCursor(this.spec,i,Math.max(0,o-this.spec.unquoted.length),Math.min(s+this.spec.unquoted.length,i.doc.length));for(;!_.next().done;)v(_.value.from,_.value.to)}}function regexpCursor(i,o,s,v){return new At(o.doc,i.search,{ignoreCase:!i.caseSensitive,test:i.wholeWord?(_=o.charCategorizer(o.selection.main.head),(i,o,s)=>!s[0].length||(_(charBefore(s.input,s.index))!=we.d.Word||_(charAfter(s.input,s.index))!=we.d.Word)&&(_(charAfter(s.input,s.index+s[0].length))!=we.d.Word||_(charBefore(s.input,s.index+s[0].length))!=we.d.Word)):void 0},s,v);var _}function charBefore(i,o){return i.slice(Object(we.u)(i,o,!1),o)}function charAfter(i,o){return i.slice(o,Object(we.u)(i,o))}class zt extends $t{nextMatch(i,o,s){let v=regexpCursor(this.spec,i,s,i.doc.length).next();return v.done&&(v=regexpCursor(this.spec,i,0,o).next()),v.done?null:v.value}prevMatchInRange(i,o,s){for(let v=1;;v++){let _=Math.max(o,s-1e4*v),$=regexpCursor(this.spec,i,_,s),ae=null;for(;!$.next().done;)ae=$.value;if(ae&&(_==o||ae.from>_+10))return ae;if(_==o)return null}}prevMatch(i,o,s){return this.prevMatchInRange(i,0,o)||this.prevMatchInRange(i,s,i.doc.length)}getReplacement(i){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((o,s)=>"$"==s?"$":"&"==s?i.match[0]:"0"!=s&&+s=o)return null;v.push(s.value)}return v}highlight(i,o,s,v){let _=regexpCursor(this.spec,i,Math.max(0,o-250),Math.min(s+250,i.doc.length));for(;!_.next().done;)v(_.value.from,_.value.to)}}const Zt=we.m.define(),Ht=we.m.define(),Gt=we.n.define({create:i=>new Xt(defaultQuery(i).create(),null),update(i,o){for(let s of o.effects)s.is(Zt)?i=new Xt(s.value.create(),i.panel):s.is(Ht)&&(i=new Xt(i.query,s.value?createSearchPanel:null));return i},provide:i=>_e.w.from(i,(i=>i.panel))});class Xt{constructor(i,o){this.query=i,this.panel=o}}const Yt=_e.a.mark({class:"cm-searchMatch"}),Kt=_e.a.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Jt=_e.e.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(Gt))}update(i){let o=i.state.field(Gt);(o!=i.startState.field(Gt)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(o))}highlight(i){let{query:o,panel:s}=i;if(!s||!o.spec.valid)return _e.a.none;let{view:v}=this,_=new we.k;for(let i=0,s=v.visibleRanges,$=s.length;i<$;i++){let{from:ae,to:pe}=s[i];for(;i<$-1&&pe>s[i+1].from-500;)pe=s[++i].to;o.highlight(v.state,ae,pe,((i,o)=>{let s=v.state.selection.ranges.some((s=>s.from==i&&s.to==o));_.add(i,o,s?Kt:Yt)}))}return _.finish()}},{decorations:i=>i.decorations});function searchCommand(i){return o=>{let s=o.state.field(Gt,!1);return s&&s.query.spec.valid?i(o,s):openSearchPanel(o)}}const nn=searchCommand(((i,o)=>{let{query:s}=o,{to:v}=i.state.selection.main,_=s.nextMatch(i.state,v,v);if(!_)return!1;let $=we.e.single(_.from,_.to),ae=i.state.facet(Ut);return i.dispatch({selection:$,effects:[announceMatch(i,_),ae.scrollToMatch($.main,i)],userEvent:"select.search"}),selectSearchInput(i),!0})),_n=searchCommand(((i,o)=>{let{query:s}=o,{state:v}=i,{from:_}=v.selection.main,$=s.prevMatch(v,_,_);if(!$)return!1;let ae=we.e.single($.from,$.to),pe=i.state.facet(Ut);return i.dispatch({selection:ae,effects:[announceMatch(i,$),pe.scrollToMatch(ae.main,i)],userEvent:"select.search"}),selectSearchInput(i),!0})),An=searchCommand(((i,o)=>{let{query:s}=o,v=s.matchAll(i.state,1e3);return!(!v||!v.length)&&(i.dispatch({selection:we.e.create(v.map((i=>we.e.range(i.from,i.to)))),userEvent:"select.search.matches"}),!0)})),Zn=searchCommand(((i,o)=>{let{query:s}=o,{state:v}=i,{from:_,to:$}=v.selection.main;if(v.readOnly)return!1;let ae=s.nextMatch(v,_,_);if(!ae)return!1;let pe,et,tt=[],nt=[];if(ae.from==_&&ae.to==$&&(et=v.toText(s.getReplacement(ae)),tt.push({from:ae.from,to:ae.to,insert:et}),ae=s.nextMatch(v,ae.from,ae.to),nt.push(_e.c.announce.of(v.phrase("replaced match on line $",v.doc.lineAt(_).number)+"."))),ae){let o=0==tt.length||tt[0].from>=ae.to?0:ae.to-ae.from-et.length;pe=we.e.single(ae.from-o,ae.to-o),nt.push(announceMatch(i,ae)),nt.push(v.facet(Ut).scrollToMatch(pe.main,i))}return i.dispatch({changes:tt,selection:pe,effects:nt,userEvent:"input.replace"}),!0})),aa=searchCommand(((i,o)=>{let{query:s}=o;if(i.state.readOnly)return!1;let v=s.matchAll(i.state,1e9).map((i=>{let{from:o,to:v}=i;return{from:o,to:v,insert:s.getReplacement(i)}}));if(!v.length)return!1;let _=i.state.phrase("replaced $ matches",v.length)+".";return i.dispatch({changes:v,effects:_e.c.announce.of(_),userEvent:"input.replace.all"}),!0}));function createSearchPanel(i){return i.state.facet(Ut).createPanel(i)}function defaultQuery(i,o){var s,v,_,$,ae;let pe=i.selection.main,we=pe.empty||pe.to>pe.from+100?"":i.sliceDoc(pe.from,pe.to);if(o&&!we)return o;let _e=i.facet(Ut);return new Wt({search:(null!==(s=null==o?void 0:o.literal)&&void 0!==s?s:_e.literal)?we:we.replace(/\n/g,"\\n"),caseSensitive:null!==(v=null==o?void 0:o.caseSensitive)&&void 0!==v?v:_e.caseSensitive,literal:null!==(_=null==o?void 0:o.literal)&&void 0!==_?_:_e.literal,regexp:null!==($=null==o?void 0:o.regexp)&&void 0!==$?$:_e.regexp,wholeWord:null!==(ae=null==o?void 0:o.wholeWord)&&void 0!==ae?ae:_e.wholeWord})}function getSearchInput(i){let o=Object(_e.j)(i,createSearchPanel);return o&&o.dom.querySelector("[main-field]")}function selectSearchInput(i){let o=getSearchInput(i);o&&o==i.root.activeElement&&o.select()}const openSearchPanel=i=>{let o=i.state.field(Gt,!1);if(o&&o.panel){let s=getSearchInput(i);if(s&&s!=i.root.activeElement){let v=defaultQuery(i.state,o.query.spec);v.valid&&i.dispatch({effects:Zt.of(v)}),s.focus(),s.select()}}else i.dispatch({effects:[Ht.of(!0),o?Zt.of(defaultQuery(i.state,o.query.spec)):we.m.appendConfig.of(va)]});return!0},closeSearchPanel=i=>{let o=i.state.field(Gt,!1);if(!o||!o.panel)return!1;let s=Object(_e.j)(i,createSearchPanel);return s&&s.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:Ht.of(!1)}),!0},ra=[{key:"Mod-f",run:openSearchPanel,scope:"editor search-panel"},{key:"F3",run:nn,shift:_n,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:nn,shift:_n,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:closeSearchPanel,scope:"editor search-panel"},{key:"Mod-Shift-l",run:i=>{let{state:o,dispatch:s}=i,v=o.selection;if(v.ranges.length>1||v.main.empty)return!1;let{from:_,to:$}=v.main,ae=[],pe=0;for(let i=new _t(o.doc,o.sliceDoc(_,$));!i.next().done;){if(ae.length>1e3)return!1;i.value.from==_&&(pe=ae.length),ae.push(we.e.range(i.value.from,i.value.to))}return s(o.update({selection:we.e.create(ae,pe),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:i=>{let o=Object(_e.j)(i,createLineDialog);if(!o){let s=[It.of(!0)];null==i.state.field(Ft,!1)&&s.push(we.m.appendConfig.of([Ft,Nt])),i.dispatch({effects:s}),o=Object(_e.j)(i,createLineDialog)}return o&&o.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:i=>{let{state:o,dispatch:s}=i,{ranges:v}=o.selection;if(v.some((i=>i.from===i.to)))return selectWord({state:o,dispatch:s});let _=o.sliceDoc(v[0].from,v[0].to);if(o.selection.ranges.some((i=>o.sliceDoc(i.from,i.to)!=_)))return!1;let $=findNextOccurrence(o,_);return!!$&&(s(o.update({selection:o.selection.addRange(we.e.range($.from,$.to),!1),effects:_e.c.scrollIntoView($.to)})),!0)},preventDefault:!0}];class ia{constructor(i){this.view=i;let o=this.query=i.state.field(Gt).query.spec;function button(i,o,s){return crelt("button",{class:"cm-button",name:i,onclick:o,type:"button"},s)}this.commit=this.commit.bind(this),this.searchField=crelt("input",{value:o.search,placeholder:phrase(i,"Find"),"aria-label":phrase(i,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=crelt("input",{value:o.replace,placeholder:phrase(i,"Replace"),"aria-label":phrase(i,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=crelt("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=crelt("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=crelt("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit}),this.dom=crelt("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,button("next",(()=>nn(i)),[phrase(i,"next")]),button("prev",(()=>_n(i)),[phrase(i,"previous")]),button("select",(()=>An(i)),[phrase(i,"all")]),crelt("label",null,[this.caseField,phrase(i,"match case")]),crelt("label",null,[this.reField,phrase(i,"regexp")]),crelt("label",null,[this.wordField,phrase(i,"by word")]),...i.state.readOnly?[]:[crelt("br"),this.replaceField,button("replace",(()=>Zn(i)),[phrase(i,"replace")]),button("replaceAll",(()=>aa(i)),[phrase(i,"replace all")])],crelt("button",{name:"close",onclick:()=>closeSearchPanel(i),"aria-label":phrase(i,"close"),type:"button"},["×"])])}commit(){let i=new Wt({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});i.eq(this.query)||(this.query=i,this.view.dispatch({effects:Zt.of(i)}))}keydown(i){Object(_e.v)(this.view,i,"search-panel")?i.preventDefault():13==i.keyCode&&i.target==this.searchField?(i.preventDefault(),(i.shiftKey?_n:nn)(this.view)):13==i.keyCode&&i.target==this.replaceField&&(i.preventDefault(),Zn(this.view))}update(i){for(let o of i.transactions)for(let i of o.effects)i.is(Zt)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(i){this.query=i,this.searchField.value=i.search,this.replaceField.value=i.replace,this.caseField.checked=i.caseSensitive,this.reField.checked=i.regexp,this.wordField.checked=i.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Ut).top}}function phrase(i,o){return i.state.phrase(o)}const ca=30,ha=/[\s\.,:;?!]/;function announceMatch(i,o){let{from:s,to:v}=o,_=i.state.doc.lineAt(s),$=i.state.doc.lineAt(v).to,ae=Math.max(_.from,s-ca),pe=Math.min($,v+ca),we=i.state.sliceDoc(ae,pe);if(ae!=_.from)for(let i=0;iwe.length-ca;i--)if(!ha.test(we[i-1])&&ha.test(we[i])){we=we.slice(0,i);break}return _e.c.announce.of("".concat(i.state.phrase("current match"),". ").concat(we," ").concat(i.state.phrase("on line")," ").concat(_.number,"."))}const ga=_e.c.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),va=[Gt,we.i.low(Jt),ga];var Oa=s(16);class xa{constructor(i,o,s){this.from=i,this.to=o,this.diagnostic=s}}class _a{constructor(i,o,s){this.diagnostics=i,this.panel=o,this.selected=s}static init(i,o,s){let v=i,_=s.facet(ir).markerFilter;_&&(v=_(v));let $=_e.a.set(v.map((i=>i.from==i.to||i.from==i.to-1&&s.doc.lineAt(i.from).to==i.from?_e.a.widget({widget:new or(i),diagnostic:i}).range(i.from):_e.a.mark({attributes:{class:"cm-lintRange cm-lintRange-"+i.severity+(i.markClass?" "+i.markClass:"")},diagnostic:i}).range(i.from,i.to))),!0);return new _a($,o,findDiagnostic($))}}function findDiagnostic(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,v=null;return i.between(s,1e9,((i,s,_)=>{let{spec:$}=_;if(!o||$.diagnostic==o)return v=new xa(i,s,$.diagnostic),!1})),v}function hideTooltip(i,o){let s=i.startState.doc.lineAt(o.pos);return!(!i.effects.some((i=>i.is(ja)))&&!i.changes.touchesRange(s.from,s.to))}function maybeEnableLint(i,o){return i.field(nr,!1)?o:o.concat(we.m.appendConfig.of(lr))}const ja=we.m.define(),er=we.m.define(),tr=we.m.define(),nr=we.n.define({create:()=>new _a(_e.a.none,null,null),update(i,o){if(o.docChanged){let s=i.diagnostics.map(o.changes),v=null;if(i.selected){let _=o.changes.mapPos(i.selected.from,1);v=findDiagnostic(s,i.selected.diagnostic,_)||findDiagnostic(s,null,_)}i=new _a(s,i.panel,v)}for(let s of o.effects)s.is(ja)?i=_a.init(s.value,i.panel,o.state):s.is(er)?i=new _a(i.diagnostics,s.value?dr.open:null,i.selected):s.is(tr)&&(i=new _a(i.diagnostics,i.panel,s.value));return i},provide:i=>[_e.w.from(i,(i=>i.panel)),_e.c.decorations.from(i,(i=>i.diagnostics))]});const ar=_e.a.mark({class:"cm-lintRange cm-lintRange-active"});function lintTooltip(i,o,s){let{diagnostics:v}=i.state.field(nr),_=[],$=2e8,ae=0;v.between(o-(s<0?1:0),o+(s>0?1:0),((i,v,pe)=>{let{spec:we}=pe;o>=i&&o<=v&&(i==v||(o>i||s>0)&&(o({dom:diagnosticsTooltip(i,_)})}:null}function diagnosticsTooltip(i,o){return crelt("ul",{class:"cm-tooltip-lint"},o.map((o=>renderDiagnostic(i,o,!1))))}const closeLintPanel=i=>{let o=i.state.field(nr,!1);return!(!o||!o.panel)&&(i.dispatch({effects:er.of(!1)}),!0)},rr=[{key:"Mod-Shift-m",run:i=>{let o=i.state.field(nr,!1);o&&o.panel||i.dispatch({effects:maybeEnableLint(i.state,[er.of(!0)])});let s=Object(_e.j)(i,dr.open);return s&&s.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:i=>{let o=i.state.field(nr,!1);if(!o)return!1;let s=i.state.selection.main,v=o.diagnostics.iter(s.to+1);return!(!v.value&&(v=o.diagnostics.iter(0),!v.value||v.from==s.from&&v.to==s.to))&&(i.dispatch({selection:{anchor:v.from,head:v.to},scrollIntoView:!0}),!0)}}],ir=we.g.define({combine:i=>Object.assign({sources:i.map((i=>i.source))},Object(we.s)(i.map((i=>i.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(i,o)=>i?o?s=>i(s)||o(s):i:o}))});function assignKeys(i){let o=[];if(i)e:for(let{name:s}of i){for(let i=0;ii.toLowerCase()==v.toLowerCase()))){o.push(v);continue e}}o.push("")}return o}function renderDiagnostic(i,o,s){var v;let _=s?assignKeys(o.actions):[];return crelt("li",{class:"cm-diagnostic cm-diagnostic-"+o.severity},crelt("span",{class:"cm-diagnosticText"},o.renderMessage?o.renderMessage():o.message),null===(v=o.actions)||void 0===v?void 0:v.map(((s,v)=>{let $=!1,click=v=>{if(v.preventDefault(),$)return;$=!0;let _=findDiagnostic(i.state.field(nr).diagnostics,o);_&&s.apply(i,_.from,_.to)},{name:ae}=s,pe=_[v]?ae.indexOf(_[v]):-1,we=pe<0?ae:[ae.slice(0,pe),crelt("u",ae.slice(pe,pe+1)),ae.slice(pe+1)];return crelt("button",{type:"button",class:"cm-diagnosticAction",onclick:click,onmousedown:click,"aria-label":" Action: ".concat(ae).concat(pe<0?"":' (access key "'.concat(_[v],')"'),".")},we)})),o.source&&crelt("div",{class:"cm-diagnosticSource"},o.source))}class or extends _e.f{constructor(i){super(),this.diagnostic=i}eq(i){return i.diagnostic==this.diagnostic}toDOM(){return crelt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class sr{constructor(i,o){this.diagnostic=o,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=renderDiagnostic(i,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class dr{constructor(i){this.view=i,this.items=[];this.list=crelt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:o=>{if(27==o.keyCode)closeLintPanel(this.view),this.view.focus();else if(38==o.keyCode||33==o.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==o.keyCode||34==o.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==o.keyCode)this.moveSelection(0);else if(35==o.keyCode)this.moveSelection(this.items.length-1);else if(13==o.keyCode)this.view.focus();else{if(!(o.keyCode>=65&&o.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:s}=this.items[this.selectedIndex],v=assignKeys(s.actions);for(let _=0;_{for(let o=0;ocloseLintPanel(this.view)},"×")),this.update()}get selectedIndex(){let i=this.view.state.field(nr).selected;if(!i)return-1;for(let o=0;o{let pe,{spec:we}=ae,_e=-1;for(let i=s;is&&(this.items.splice(s,_e-s),v=!0)),o&&pe.diagnostic==o.diagnostic?pe.dom.hasAttribute("aria-selected")||(pe.dom.setAttribute("aria-selected","true"),_=pe):pe.dom.hasAttribute("aria-selected")&&pe.dom.removeAttribute("aria-selected"),s++}));s({sel:_.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:i=>{let{sel:o,panel:s}=i,v=s.height/this.list.offsetHeight;o.tops.bottom&&(this.list.scrollTop+=(o.bottom-s.bottom)/v)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),v&&this.sync()}sync(){let i=this.list.firstChild;function rm(){let o=i;i=o.nextSibling,o.remove()}for(let o of this.items)if(o.dom.parentNode==this.list){for(;i!=o.dom;)rm();i=o.dom.nextSibling}else this.list.insertBefore(o.dom,i);for(;i;)rm()}moveSelection(i){if(this.selectedIndex<0)return;let o=findDiagnostic(this.view.state.field(nr).diagnostics,this.items[i].diagnostic);o&&this.view.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:tr.of(o)})}static open(i){return new dr(i)}}function svg(i){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(i),"')")}function underline(i){return svg(''),'width="6" height="3"')}const ur=_e.c.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:underline("#d11")},".cm-lintRange-warning":{backgroundImage:underline("orange")},".cm-lintRange-info":{backgroundImage:underline("#999")},".cm-lintRange-hint":{backgroundImage:underline("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});_e.d;const lr=[nr,_e.c.decorations.compute([nr],(i=>{let{selected:o,panel:s}=i.field(nr);return o&&s&&o.from!=o.to?_e.a.set([ar.range(o.from,o.to)]):_e.a.none})),Object(_e.p)(lintTooltip,{hideOn:hideTooltip}),ur];var cr=function basicSetup(i){void 0===i&&(i={});var{crosshairCursor:o=!1}=i,s=[];!1!==i.closeBracketsKeymap&&(s=s.concat(Oa.c)),!1!==i.defaultKeymap&&(s=s.concat(wt)),!1!==i.searchKeymap&&(s=s.concat(ra)),!1!==i.historyKeymap&&(s=s.concat(Ot)),!1!==i.foldKeymap&&(s=s.concat(et.m)),!1!==i.completionKeymap&&(s=s.concat(Oa.e)),!1!==i.lintKeymap&&(s=s.concat(rr));var v=[];return!1!==i.lineNumbers&&v.push(Object(_e.r)()),!1!==i.highlightActiveLineGutter&&v.push(Object(_e.n)()),!1!==i.highlightSpecialChars&&v.push(Object(_e.o)()),!1!==i.history&&v.push(dist_history()),!1!==i.foldGutter&&v.push(Object(et.k)()),!1!==i.drawSelection&&v.push(Object(_e.h)()),!1!==i.dropCursor&&v.push(Object(_e.i)()),!1!==i.allowMultipleSelections&&v.push(we.f.allowMultipleSelections.of(!0)),!1!==i.indentOnInput&&v.push(Object(et.r)()),!1!==i.syntaxHighlighting&&v.push(Object(et.w)(et.g,{fallback:!0})),!1!==i.bracketMatching&&v.push(Object(et.e)()),!1!==i.closeBrackets&&v.push(Object(Oa.b)()),!1!==i.autocompletion&&v.push(Object(Oa.a)()),!1!==i.rectangularSelection&&v.push(Object(_e.u)()),!1!==o&&v.push(Object(_e.g)()),!1!==i.highlightActiveLine&&v.push(Object(_e.m)()),!1!==i.highlightSelectionMatches&&v.push(highlightSelectionMatches()),i.tabSize&&"number"==typeof i.tabSize&&v.push(et.t.of(" ".repeat(i.tabSize))),v.concat([_e.q.of(s.flat())]).filter(Boolean)},hr=s(6);const pr="#e5c07b",fr="#e06c75",gr="#56b6c2",mr="#ffffff",yr="#abb2bf",vr="#7d8799",Rr="#61afef",br="#98c379",Or="#d19a66",xr="#c678dd",wr="#21252b",Cr="#2c313a",Sr="#282c34",_r="#353a42",Er="#3E4451",kr="#528bff",Ar=_e.c.theme({"&":{color:yr,backgroundColor:Sr},".cm-content":{caretColor:kr},".cm-cursor, .cm-dropCursor":{borderLeftColor:kr},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Er},".cm-panels":{backgroundColor:wr,color:yr},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Sr,color:vr,border:"none"},".cm-activeLineGutter":{backgroundColor:Cr},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:_r},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:_r,borderBottomColor:_r},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Cr,color:yr}}},{dark:!0}),Dr=et.a.define([{tag:hr.d.keyword,color:xr},{tag:[hr.d.name,hr.d.deleted,hr.d.character,hr.d.propertyName,hr.d.macroName],color:fr},{tag:[hr.d.function(hr.d.variableName),hr.d.labelName],color:Rr},{tag:[hr.d.color,hr.d.constant(hr.d.name),hr.d.standard(hr.d.name)],color:Or},{tag:[hr.d.definition(hr.d.name),hr.d.separator],color:yr},{tag:[hr.d.typeName,hr.d.className,hr.d.number,hr.d.changed,hr.d.annotation,hr.d.modifier,hr.d.self,hr.d.namespace],color:pr},{tag:[hr.d.operator,hr.d.operatorKeyword,hr.d.url,hr.d.escape,hr.d.regexp,hr.d.link,hr.d.special(hr.d.string)],color:gr},{tag:[hr.d.meta,hr.d.comment],color:vr},{tag:hr.d.strong,fontWeight:"bold"},{tag:hr.d.emphasis,fontStyle:"italic"},{tag:hr.d.strikethrough,textDecoration:"line-through"},{tag:hr.d.link,color:vr,textDecoration:"underline"},{tag:hr.d.heading,fontWeight:"bold",color:fr},{tag:[hr.d.atom,hr.d.bool,hr.d.special(hr.d.variableName)],color:Or},{tag:[hr.d.processingInstruction,hr.d.string,hr.d.inserted],color:br},{tag:hr.d.invalid,color:mr}]),Pr=[Ar,Object(et.w)(Dr)];var Tr=_e.c.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Ir=function getDefaultExtensions(i){void 0===i&&(i={});var{indentWithTab:o=!0,editable:s=!0,readOnly:v=!1,theme:_="light",placeholder:$="",basicSetup:ae=!0}=i,pe=[];switch(o&&pe.unshift(_e.q.of([Ct])),ae&&("boolean"==typeof ae?pe.unshift(cr()):pe.unshift(cr(ae))),$&&pe.unshift(Object(_e.t)($)),_){case"light":pe.push(Tr);break;case"dark":pe.push(Pr);break;case"none":break;default:pe.push(_)}return!1===s&&pe.push(_e.c.editable.of(!1)),v&&pe.push(we.f.readOnly.of(!0)),[...pe]},getStatistics=i=>({line:i.state.doc.lineAt(i.state.selection.main.from),lineCount:i.state.doc.lines,lineBreak:i.state.lineBreak,length:i.state.doc.length,readOnly:i.state.readOnly,tabSize:i.state.tabSize,selection:i.state.selection,selectionAsSingle:i.state.selection.asSingle().main,ranges:i.state.selection.ranges,selectionCode:i.state.sliceDoc(i.state.selection.main.from,i.state.selection.main.to),selections:i.state.selection.ranges.map((o=>i.state.sliceDoc(o.from,o.to))),selectedText:i.state.selection.ranges.some((i=>!i.empty))}),Fr=we.a.define(),Nr=[];function useCodeMirror(i){var{value:o,selection:s,onChange:v,onStatistics:_,onCreateEditor:$,onUpdate:ae,extensions:et=Nr,autoFocus:tt,theme:nt="light",height:rt=null,minHeight:it=null,maxHeight:ot=null,width:st=null,minWidth:dt=null,maxWidth:ut=null,placeholder:lt="",editable:ct=!0,readOnly:ht=!1,indentWithTab:pt=!0,basicSetup:ft=!0,root:gt,initialState:mt}=i,[yt,vt]=Object(pe.useState)(),[Rt,bt]=Object(pe.useState)(),[Ot,xt]=Object(pe.useState)(),wt=_e.c.theme({"&":{height:rt,minHeight:it,maxHeight:ot,width:st,minWidth:dt,maxWidth:ut},"& .cm-scroller":{height:"100% !important"}}),Ct=[_e.c.updateListener.of((i=>{if(i.docChanged&&"function"==typeof v&&!i.transactions.some((i=>i.annotation(Fr)))){var o=i.state.doc.toString();v(o,i)}_&&_(getStatistics(i))})),wt,...Ir({theme:nt,editable:ct,readOnly:ht,placeholder:lt,indentWithTab:pt,basicSetup:ft})];return ae&&"function"==typeof ae&&Ct.push(_e.c.updateListener.of(ae)),Ct=Ct.concat(et),Object(pe.useEffect)((()=>{if(yt&&!Ot){var i={doc:o,selection:s,extensions:Ct},v=mt?we.f.fromJSON(mt.json,i,mt.fields):we.f.create(i);if(xt(v),!Rt){var _=new _e.c({state:v,parent:yt,root:gt});bt(_),$&&$(_,v)}}return()=>{Rt&&(xt(void 0),bt(void 0))}}),[yt,Ot]),Object(pe.useEffect)((()=>vt(i.container)),[i.container]),Object(pe.useEffect)((()=>()=>{Rt&&(Rt.destroy(),bt(void 0))}),[Rt]),Object(pe.useEffect)((()=>{tt&&Rt&&Rt.focus()}),[tt,Rt]),Object(pe.useEffect)((()=>{Rt&&Rt.dispatch({effects:we.m.reconfigure.of(Ct)})}),[nt,et,rt,it,ot,st,dt,ut,lt,ct,ht,pt,ft,v,ae]),Object(pe.useEffect)((()=>{if(void 0!==o){var i=Rt?Rt.state.doc.toString():"";Rt&&o!==i&&Rt.dispatch({changes:{from:0,to:i.length,insert:o||""},annotations:[Fr.of(!0)]})}}),[o,Rt]),{state:Ot,setState:xt,view:Rt,setView:bt,container:yt,setContainer:vt}}var Br=s(4),Lr=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],jr=Object(pe.forwardRef)(((i,o)=>{var{className:s,value:v="",selection:$,extensions:we=[],onChange:_e,onStatistics:et,onCreateEditor:tt,onUpdate:nt,autoFocus:rt,theme:it="light",height:ot,minHeight:st,maxHeight:dt,width:ut,minWidth:lt,maxWidth:ct,basicSetup:ht,placeholder:pt,indentWithTab:ft,editable:gt,readOnly:mt,root:yt,initialState:vt}=i,Rt=ae()(i,Lr),bt=Object(pe.useRef)(null),{state:Ot,view:xt,container:wt}=useCodeMirror({container:bt.current,root:yt,value:v,autoFocus:rt,theme:it,height:ot,minHeight:st,maxHeight:dt,width:ut,minWidth:lt,maxWidth:ct,basicSetup:ht,placeholder:pt,indentWithTab:ft,editable:gt,readOnly:mt,selection:$,onChange:_e,onStatistics:et,onCreateEditor:tt,onUpdate:nt,extensions:we,initialState:vt});if(Object(pe.useImperativeHandle)(o,(()=>({editor:bt.current,state:Ot,view:xt})),[bt,wt,Ot,xt]),"string"!=typeof v)throw new Error("value must be typeof string but got "+typeof v);var Ct="string"==typeof it?"cm-theme-"+it:"cm-theme";return Object(Br.jsx)("div",_()({ref:bt,className:Ct+(s?" "+s:"")},Rt))}));jr.displayName="CodeMirror";o.a=jr},function(i,o,s){"use strict";s.d(o,"a",(function(){return mt}));var v=s(62),_=s.n(v),$=s(6),ae=s(7),pe=s(10),createTheme=i=>{var{theme:o,settings:s={},styles:v=[]}=i,_={".cm-gutters":{}},$={};s.background&&($.backgroundColor=s.background),s.backgroundImage&&($.backgroundImage=s.backgroundImage),s.foreground&&($.color=s.foreground),(s.background||s.foreground)&&(_["&"]=$),s.fontFamily&&(_["&.cm-editor .cm-scroller"]={fontFamily:s.fontFamily}),s.gutterBackground&&(_[".cm-gutters"].backgroundColor=s.gutterBackground),s.gutterForeground&&(_[".cm-gutters"].color=s.gutterForeground),s.gutterBorder&&(_[".cm-gutters"].borderRightColor=s.gutterBorder),s.caret&&(_[".cm-content"]={caretColor:s.caret},_[".cm-cursor, .cm-dropCursor"]={borderLeftColor:s.caret});var we={};s.gutterActiveForeground&&(we.color=s.gutterActiveForeground),s.lineHighlight&&(_[".cm-activeLine"]={backgroundColor:s.lineHighlight},we.backgroundColor=s.lineHighlight),_[".cm-activeLineGutter"]=we,s.selection&&(_["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:s.selection+" !important"}),s.selectionMatch&&(_["& .cm-selectionMatch"]={backgroundColor:s.selectionMatch});var _e=ae.c.theme(_,{dark:"dark"===o}),et=pe.a.define(v);return[_e,Object(pe.w)(et)]},we="#002B36",_e="#839496",et="#004454AA",tt="#859900",nt="#268BD2",rt="#268BD2",it="#2AA198",ot="#CB4B16",st="#859900",dt="#268BD2",ut="#D33682",lt="#586E75",ct="#268BD2",ht="#DC322F",pt="#DC322F",ft="#268BD2",gt={background:we,foreground:_e,caret:"#D30102",selection:et,selectionMatch:et,gutterBackground:we,gutterForeground:_e,gutterBorder:"transparent",lineHighlight:"#00cafe11"},mt=(i=>{var{theme:o="dark",settings:s={},styles:v=[]}=i||{};return createTheme({theme:o,settings:_()({},gt,s),styles:[{tag:$.d.keyword,color:tt},{tag:[$.d.name,$.d.deleted,$.d.character,$.d.macroName],color:nt},{tag:[$.d.propertyName],color:rt},{tag:[$.d.processingInstruction,$.d.string,$.d.inserted,$.d.special($.d.string)],color:it},{tag:[$.d.function($.d.variableName),$.d.labelName],color:rt},{tag:[$.d.color,$.d.constant($.d.name),$.d.standard($.d.name)],color:ot},{tag:[$.d.definition($.d.name),$.d.separator],color:nt},{tag:[$.d.className],color:dt},{tag:[$.d.number,$.d.changed,$.d.annotation,$.d.modifier,$.d.self,$.d.namespace],color:ut},{tag:[$.d.typeName],color:st,fontStyle:st},{tag:[$.d.operator,$.d.operatorKeyword],color:tt},{tag:[$.d.url,$.d.escape,$.d.regexp,$.d.link],color:pt},{tag:[$.d.meta,$.d.comment],color:lt},{tag:$.d.tagName,color:ft},{tag:$.d.strong,fontWeight:"bold"},{tag:$.d.emphasis,fontStyle:"italic"},{tag:$.d.link,textDecoration:"underline"},{tag:$.d.heading,fontWeight:"bold",color:ct},{tag:[$.d.atom,$.d.bool,$.d.special($.d.variableName)],color:nt},{tag:$.d.invalid,color:ht},{tag:$.d.strikethrough,textDecoration:"line-through"},...v]})})(),yt="#FDF6E3",vt="#657B83",Rt="#859900",bt="#268BD2",Ot="#268BD2",xt="#2AA198",wt="#CB4B16",Ct="#859900",St="#268BD2",_t="#D33682",Et="#93A1A1",kt="#268BD2",At="#DC322F",Dt="#DC322F",Pt="#268BD2",Tt={background:yt,foreground:vt,caret:"#657B83",selection:"#EEE8D5",selectionMatch:"#EEE8D5",gutterBackground:yt,gutterForeground:vt,gutterBorder:"transparent",lineHighlight:"#3d392d11"};(i=>{var{theme:o="light",settings:s={},styles:v=[]}=i||{};createTheme({theme:o,settings:_()({},Tt,s),styles:[{tag:$.d.keyword,color:Rt},{tag:[$.d.name,$.d.deleted,$.d.character,$.d.macroName],color:bt},{tag:[$.d.propertyName],color:Ot},{tag:[$.d.processingInstruction,$.d.string,$.d.inserted,$.d.special($.d.string)],color:xt},{tag:[$.d.function($.d.variableName),$.d.labelName],color:Ot},{tag:[$.d.color,$.d.constant($.d.name),$.d.standard($.d.name)],color:wt},{tag:[$.d.definition($.d.name),$.d.separator],color:bt},{tag:[$.d.className],color:St},{tag:[$.d.number,$.d.changed,$.d.annotation,$.d.modifier,$.d.self,$.d.namespace],color:_t},{tag:[$.d.typeName],color:Ct,fontStyle:Ct},{tag:[$.d.operator,$.d.operatorKeyword],color:Rt},{tag:[$.d.url,$.d.escape,$.d.regexp,$.d.link],color:Dt},{tag:[$.d.meta,$.d.comment],color:Et},{tag:$.d.tagName,color:Pt},{tag:$.d.strong,fontWeight:"bold"},{tag:$.d.emphasis,fontStyle:"italic"},{tag:$.d.link,textDecoration:"underline"},{tag:$.d.heading,fontWeight:"bold",color:kt},{tag:[$.d.atom,$.d.bool,$.d.special($.d.variableName)],color:bt},{tag:$.d.invalid,color:At},{tag:$.d.strikethrough,textDecoration:"line-through"},...v]})})()},function(i,o,s){"use strict";s.d(o,"a",(function(){return javascript}));var v=s(42),_=s(6);const $=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ae=new v.a({start:!1,shift:(i,o)=>4==o||5==o||312==o?i:313==o,strict:!1}),pe=new v.b(((i,o)=>{let{next:s}=i;(125==s||-1==s||o.context)&&i.acceptToken(310)}),{contextual:!0,fallback:!0}),we=new v.b(((i,o)=>{let s,{next:v}=i;$.indexOf(v)>-1||(47!=v||47!=(s=i.peek(1))&&42!=s)&&(125==v||59==v||-1==v||o.context||i.acceptToken(309))}),{contextual:!0}),_e=new v.b(((i,o)=>{let{next:s}=i;if((43==s||45==s)&&(i.advance(),s==i.next)){i.advance();let s=!o.context&&o.canShift(1);i.acceptToken(s?1:2)}}),{contextual:!0});function identifierChar(i,o){return i>=65&&i<=90||i>=97&&i<=122||95==i||i>=192||!o&&i>=48&&i<=57}const et=new v.b(((i,o)=>{if(60!=i.next||!o.dialectEnabled(0))return;if(i.advance(),47==i.next)return;let s=0;for(;$.indexOf(i.next)>-1;)i.advance(),s++;if(identifierChar(i.next,!0)){for(i.advance(),s++;identifierChar(i.next,!1);)i.advance(),s++;for(;$.indexOf(i.next)>-1;)i.advance(),s++;if(44==i.next)return;for(let o=0;;o++){if(7==o){if(!identifierChar(i.next,!0))return;break}if(i.next!="extends".charCodeAt(o))break;i.advance(),s++}}i.acceptToken(3,-s)})),tt=Object(_.b)({"get set async static":_.d.modifier,"for while do if else switch try catch finally return throw break continue default case":_.d.controlKeyword,"in of await yield void typeof delete instanceof":_.d.operatorKeyword,"let var const using function class extends":_.d.definitionKeyword,"import export from":_.d.moduleKeyword,"with debugger as new":_.d.keyword,TemplateString:_.d.special(_.d.string),super:_.d.atom,BooleanLiteral:_.d.bool,this:_.d.self,null:_.d.null,Star:_.d.modifier,VariableName:_.d.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":_.d.function(_.d.variableName),VariableDefinition:_.d.definition(_.d.variableName),Label:_.d.labelName,PropertyName:_.d.propertyName,PrivatePropertyName:_.d.special(_.d.propertyName),"CallExpression/MemberExpression/PropertyName":_.d.function(_.d.propertyName),"FunctionDeclaration/VariableDefinition":_.d.function(_.d.definition(_.d.variableName)),"ClassDeclaration/VariableDefinition":_.d.definition(_.d.className),PropertyDefinition:_.d.definition(_.d.propertyName),PrivatePropertyDefinition:_.d.definition(_.d.special(_.d.propertyName)),UpdateOp:_.d.updateOperator,"LineComment Hashbang":_.d.lineComment,BlockComment:_.d.blockComment,Number:_.d.number,String:_.d.string,Escape:_.d.escape,ArithOp:_.d.arithmeticOperator,LogicOp:_.d.logicOperator,BitOp:_.d.bitwiseOperator,CompareOp:_.d.compareOperator,RegExp:_.d.regexp,Equals:_.d.definitionOperator,Arrow:_.d.function(_.d.punctuation),": Spread":_.d.punctuation,"( )":_.d.paren,"[ ]":_.d.squareBracket,"{ }":_.d.brace,"InterpolationStart InterpolationEnd":_.d.special(_.d.brace),".":_.d.derefOperator,", ;":_.d.separator,"@":_.d.meta,TypeName:_.d.typeName,TypeDefinition:_.d.definition(_.d.typeName),"type enum interface implements namespace module declare":_.d.definitionKeyword,"abstract global Privacy readonly override":_.d.modifier,"is keyof unique infer":_.d.operatorKeyword,JSXAttributeValue:_.d.attributeValue,JSXText:_.d.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":_.d.angleBracket,"JSXIdentifier JSXNameSpacedName":_.d.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":_.d.attributeName,"JSXBuiltin/JSXIdentifier":_.d.standard(_.d.tagName)}),nt={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},rt={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},it={__proto__:null,"<":143},ot=v.c.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EpQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-EkQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&gQWO<}AN>}O%[Q^OAN?ZOOQO<eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:ae,nodeProps:[["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[tt],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#nt[i]||-1},{term:334,get:i=>rt[i]||-1},{term:70,get:i=>it[i]||-1}],tokenPrec:14626});var st=s(10),dt=s(3),ut=s(7),lt=s(16),ct=s(11);const ht=[Object(lt.g)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Object(lt.g)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Object(lt.g)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Object(lt.g)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Object(lt.g)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Object(lt.g)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Object(lt.g)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Object(lt.g)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Object(lt.g)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Object(lt.g)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Object(lt.g)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],pt=ht.concat([Object(lt.g)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Object(lt.g)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Object(lt.g)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ft=new ct.f,gt=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function defID(i){return(o,s)=>{let v=o.node.getChild("VariableDefinition");return v&&s(v,i),!0}}const mt=["FunctionDeclaration"],yt={FunctionDeclaration:defID("function"),ClassDeclaration:defID("class"),ClassExpression:()=>!0,EnumDeclaration:defID("constant"),TypeAliasDeclaration:defID("type"),NamespaceDeclaration:defID("namespace"),VariableDefinition(i,o){i.matchContext(mt)||o(i,"variable")},TypeDefinition(i,o){o(i,"type")},__proto__:null};function getScope(i,o){let s=ft.get(o);if(s)return s;let v=[],_=!0;function def(o,s){let _=i.sliceString(o.from,o.to);v.push({label:_,type:s})}return o.cursor(ct.b.IncludeAnonymous).iterate((o=>{if(_)_=!1;else if(o.name){let i=yt[o.name];if(i&&i(o,def)||gt.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of getScope(i,o.node))v.push(s);return!1}})),ft.set(o,v),v}const vt=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Rt=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function localCompletionSource(i){let o=Object(st.x)(i.state).resolveInner(i.pos,-1);if(Rt.indexOf(o.name)>-1)return null;let s="VariableName"==o.name||o.to-o.from<20&&vt.test(i.state.sliceDoc(o.from,o.to));if(!s&&!i.explicit)return null;let v=[];for(let s=o;s;s=s.parent)gt.has(s.name)&&(v=v.concat(getScope(i.state.doc,s)));return{options:v,from:s?o.from:i.pos,validFor:vt}}const bt=st.c.define({name:"javascript",parser:ot.configure({props:[st.q.add({IfStatement:Object(st.f)({except:/^\s*({|else\b)/}),TryStatement:Object(st.f)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:st.j,SwitchBody:i=>{let o=i.textAfter,s=/^\s*\}/.test(o),v=/^\s*(case|default)\b/.test(o);return i.baseIndent+(s?0:v?1:2)*i.unit},Block:Object(st.i)({closing:"}"}),ArrowFunction:i=>i.baseIndent+i.unit,"TemplateString BlockComment":()=>null,"Statement Property":Object(st.f)({except:/^{/}),JSXElement(i){let o=/^\s*<\//.test(i.textAfter);return i.lineIndent(i.node.from)+(o?0:i.unit)},JSXEscape(i){let o=/\s*\}/.test(i.textAfter);return i.lineIndent(i.node.from)+(o?0:i.unit)},"JSXOpenTag JSXSelfClosingTag":i=>i.column(i.node.from)+i.unit}),st.n.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":st.l,BlockComment:i=>({from:i.from+2,to:i.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Ot={test:i=>/^JSX/.test(i.name),facet:Object(st.h)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},xt=bt.configure({dialect:"ts"},"typescript"),wt=bt.configure({dialect:"jsx",props:[st.v.add((i=>i.isTop?[Ot]:void 0))]}),Ct=bt.configure({dialect:"jsx ts",props:[st.v.add((i=>i.isTop?[Ot]:void 0))]},"typescript");let kwCompletion=i=>({label:i,type:"keyword"});const St="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kwCompletion),_t=St.concat(["declare","implements","private","protected","public"].map(kwCompletion));function javascript(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.jsx?i.typescript?Ct:wt:i.typescript?xt:bt,s=i.typescript?pt.concat(_t):ht.concat(St);return new st.d(o,[bt.data.of({autocomplete:Object(lt.f)(Rt,Object(lt.d)(s))}),bt.data.of({autocomplete:localCompletionSource}),i.jsx?kt:[]])}function findOpenTag(i){for(;;){if("JSXOpenTag"==i.name||"JSXSelfClosingTag"==i.name||"JSXFragmentTag"==i.name)return i;if("JSXEscape"==i.name||!i.parent)return null;i=i.parent}}function elementName(i,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.length;for(let v=null==o?void 0:o.firstChild;v;v=v.nextSibling)if("JSXIdentifier"==v.name||"JSXBuiltin"==v.name||"JSXNamespacedName"==v.name||"JSXMemberExpression"==v.name)return i.sliceString(v.from,Math.min(v.to,s));return""}const Et="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),kt=ut.c.inputHandler.of(((i,o,s,v,_)=>{if((Et?i.composing:i.compositionStarted)||i.state.readOnly||o!=s||">"!=v&&"/"!=v||!bt.isActiveAt(i.state,o,-1))return!1;let $=_(),{state:ae}=$,pe=ae.changeByRange((i=>{var o;let s,{head:_}=i,$=Object(st.x)(ae).resolveInner(_-1,-1);if("JSXStartTag"==$.name&&($=$.parent),ae.doc.sliceString(_-1,_)!=v||"JSXAttributeValue"==$.name&&$.to>_);else{if(">"==v&&"JSXFragmentTag"==$.name)return{range:i,changes:{from:_,insert:""}};if("/"==v&&"JSXStartCloseTag"==$.name){let i=$.parent,v=i.parent;if(v&&i.from==_-2&&((s=elementName(ae.doc,v.firstChild,_))||"JSXFragmentTag"==(null===(o=v.firstChild)||void 0===o?void 0:o.name))){let i="".concat(s,">");return{range:dt.e.cursor(_+i.length,-1),changes:{from:_,insert:i}}}}else if(">"==v){let o=findOpenTag($);if(o&&!/^\/?>|^<\//.test(ae.doc.sliceString(_,_+2))&&(s=elementName(ae.doc,o,_)))return{range:i,changes:{from:_,insert:"")}}}}return{range:i}}));return!pe.changes.empty&&(i.dispatch([$,ae.update(pe,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))},function(i,o,s){"use strict";s.d(o,"a",(function(){return useIntl}));var v=s(0),_=s(56),$=s(113);function useIntl(){var i=v.useContext(_.a);return Object($.a)(i),i}},,,,,,,,,,,function(i,o){!function(){var i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^\(\s\/]*)\s*/;function _name(){var o,s;return this===Function||this===Function.prototype.constructor?s="Function":this!==Function.prototype&&(s=(o=(""+this).match(i))&&o[1]),s||""}var o=!("name"in Function.prototype&&"name"in function x(){}),s="function"==typeof Object.defineProperty&&function(){var i;try{Object.defineProperty(Function.prototype,"_xyz",{get:function(){return"blah"},configurable:!0}),i="blah"===Function.prototype._xyz,delete Function.prototype._xyz}catch(o){i=!1}return i}(),v="function"==typeof Object.prototype.__defineGetter__&&function(){var i;try{Function.prototype.__defineGetter__("_abc",(function(){return"foo"})),i="foo"===Function.prototype._abc,delete Function.prototype._abc}catch(o){i=!1}return i}();Function.prototype._name=_name,o&&(s?Object.defineProperty(Function.prototype,"name",{get:function(){var i=_name.call(this);return this!==Function.prototype&&Object.defineProperty(this,"name",{value:i,configurable:!0}),i},configurable:!0}):v&&Function.prototype.__defineGetter__("name",(function(){var i=_name.call(this);return this!==Function.prototype&&this.__defineGetter__("name",(function(){return i})),i})))}()},function(i,o,s){"use strict";s(247).polyfill()},function(i,o,s){"use strict";function assign(i,o){if(null==i)throw new TypeError("Cannot convert first argument to object");for(var s=Object(i),v=1;vo}return!1}function B(i,o,s,v,_,$,ae){this.acceptsBooleans=2===o||3===o||4===o,this.attributeName=v,this.attributeNamespace=_,this.mustUseProperty=s,this.propertyName=i,this.type=o,this.sanitizeURL=$,this.removeEmptyString=ae}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(i){rt[i]=new B(i,0,!1,i,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(i){var o=i[0];rt[o]=new B(o,1,!1,i[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(i){rt[i]=new B(i,2,!1,i.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(i){rt[i]=new B(i,2,!1,i,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(i){rt[i]=new B(i,3,!1,i.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(i){rt[i]=new B(i,3,!0,i,null,!1,!1)})),["capture","download"].forEach((function(i){rt[i]=new B(i,4,!1,i,null,!1,!1)})),["cols","rows","size","span"].forEach((function(i){rt[i]=new B(i,6,!1,i,null,!1,!1)})),["rowSpan","start"].forEach((function(i){rt[i]=new B(i,5,!1,i.toLowerCase(),null,!1,!1)}));var it=/[\-:]([a-z])/g;function pa(i){return i[1].toUpperCase()}function qa(i,o,s,v){var _=rt.hasOwnProperty(o)?rt[o]:null;(null!==_?0===_.type:!v&&(2--pe||_[ae]!==$[pe])return"\n"+_[ae].replace(" at new "," at ")}while(1<=ae&&0<=pe);break}}}finally{Et=!1,Error.prepareStackTrace=s}return(i=i?i.displayName||i.name:"")?Na(i):""}function Qa(i){switch(i.tag){case 5:return Na(i.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return i=Pa(i.type,!1);case 11:return i=Pa(i.type.render,!1);case 22:return i=Pa(i.type._render,!1);case 1:return i=Pa(i.type,!0);default:return""}}function Ra(i){if(null==i)return null;if("function"==typeof i)return i.displayName||i.name||null;if("string"==typeof i)return i;switch(i){case ut:return"Fragment";case dt:return"Portal";case ct:return"Profiler";case lt:return"StrictMode";case gt:return"Suspense";case mt:return"SuspenseList"}if("object"==typeof i)switch(i.$$typeof){case pt:return(i.displayName||"Context")+".Consumer";case ht:return(i._context.displayName||"Context")+".Provider";case ft:var o=i.render;return o=o.displayName||o.name||"",i.displayName||(""!==o?"ForwardRef("+o+")":"ForwardRef");case yt:return Ra(i.type);case Rt:return Ra(i._render);case vt:o=i._payload,i=i._init;try{return Ra(i(o))}catch(i){}}return null}function Sa(i){switch(typeof i){case"boolean":case"number":case"object":case"string":case"undefined":return i;default:return""}}function Ta(i){var o=i.type;return(i=i.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o||"radio"===o)}function Ua(i){var o=Ta(i)?"checked":"value",s=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),v=""+i[o];if(!i.hasOwnProperty(o)&&void 0!==s&&"function"==typeof s.get&&"function"==typeof s.set){var _=s.get,$=s.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return _.call(this)},set:function(i){v=""+i,$.call(this,i)}}),Object.defineProperty(i,o,{enumerable:s.enumerable}),{getValue:function(){return v},setValue:function(i){v=""+i},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Va(i){i._valueTracker||(i._valueTracker=Ua(i))}function Wa(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var s=o.getValue(),v="";return i&&(v=Ta(i)?i.checked?"true":"false":i.value),(i=v)!==s&&(o.setValue(i),!0)}function Xa(i){if(void 0===(i=i||("undefined"!=typeof document?document:void 0)))return null;try{return i.activeElement||i.body}catch(o){return i.body}}function Ya(i,o){var s=o.checked;return _({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=s?s:i._wrapperState.initialChecked})}function Za(i,o){var s=null==o.defaultValue?"":o.defaultValue,v=null!=o.checked?o.checked:o.defaultChecked;s=Sa(null!=o.value?o.value:s),i._wrapperState={initialChecked:v,initialValue:s,controlled:"checkbox"===o.type||"radio"===o.type?null!=o.checked:null!=o.value}}function $a(i,o){null!=(o=o.checked)&&qa(i,"checked",o,!1)}function ab(i,o){$a(i,o);var s=Sa(o.value),v=o.type;if(null!=s)"number"===v?(0===s&&""===i.value||i.value!=s)&&(i.value=""+s):i.value!==""+s&&(i.value=""+s);else if("submit"===v||"reset"===v)return void i.removeAttribute("value");o.hasOwnProperty("value")?bb(i,o.type,s):o.hasOwnProperty("defaultValue")&&bb(i,o.type,Sa(o.defaultValue)),null==o.checked&&null!=o.defaultChecked&&(i.defaultChecked=!!o.defaultChecked)}function cb(i,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var v=o.type;if(!("submit"!==v&&"reset"!==v||void 0!==o.value&&null!==o.value))return;o=""+i._wrapperState.initialValue,s||o===i.value||(i.value=o),i.defaultValue=o}""!==(s=i.name)&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,""!==s&&(i.name=s)}function bb(i,o,s){"number"===o&&Xa(i.ownerDocument)===i||(null==s?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+s&&(i.defaultValue=""+s))}function db(i){var o="";return v.Children.forEach(i,(function(i){null!=i&&(o+=i)})),o}function eb(i,o){return i=_({children:void 0},o),(o=db(o.children))&&(i.children=o),i}function fb(i,o,s,v){if(i=i.options,o){o={};for(var _=0;_=s.length))throw Error(y(93));s=s[0]}o=s}null==o&&(o=""),s=o}i._wrapperState={initialValue:Sa(s)}}function ib(i,o){var s=Sa(o.value),v=Sa(o.defaultValue);null!=s&&((s=""+s)!==i.value&&(i.value=s),null==o.defaultValue&&i.defaultValue!==s&&(i.defaultValue=s)),null!=v&&(i.defaultValue=""+v)}function jb(i){var o=i.textContent;o===i._wrapperState.initialValue&&""!==o&&null!==o&&(i.value=o)}var kt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lb(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mb(i,o){return null==i||"http://www.w3.org/1999/xhtml"===i?lb(o):"http://www.w3.org/2000/svg"===i&&"foreignObject"===o?"http://www.w3.org/1999/xhtml":i}var At,Dt,Pt=(Dt=function(i,o){if(i.namespaceURI!==kt.svg||"innerHTML"in i)i.innerHTML=o;else{for((At=At||document.createElement("div")).innerHTML=""+o.valueOf().toString()+"",o=At.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(i,o,s,v){MSApp.execUnsafeLocalFunction((function(){return Dt(i,o)}))}:Dt);function pb(i,o){if(o){var s=i.firstChild;if(s&&s===i.lastChild&&3===s.nodeType)return void(s.nodeValue=o)}i.textContent=o}var Tt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},It=["Webkit","ms","Moz","O"];function sb(i,o,s){return null==o||"boolean"==typeof o||""===o?"":s||"number"!=typeof o||0===o||Tt.hasOwnProperty(i)&&Tt[i]?(""+o).trim():o+"px"}function tb(i,o){for(var s in i=i.style,o)if(o.hasOwnProperty(s)){var v=0===s.indexOf("--"),_=sb(s,o[s],v);"float"===s&&(s="cssFloat"),v?i.setProperty(s,_):i[s]=_}}Object.keys(Tt).forEach((function(i){It.forEach((function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),Tt[o]=Tt[i]}))}));var Ft=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vb(i,o){if(o){if(Ft[i]&&(null!=o.children||null!=o.dangerouslySetInnerHTML))throw Error(y(137,i));if(null!=o.dangerouslySetInnerHTML){if(null!=o.children)throw Error(y(60));if("object"!=typeof o.dangerouslySetInnerHTML||!("__html"in o.dangerouslySetInnerHTML))throw Error(y(61))}if(null!=o.style&&"object"!=typeof o.style)throw Error(y(62))}}function wb(i,o){if(-1===i.indexOf("-"))return"string"==typeof o.is;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xb(i){return(i=i.target||i.srcElement||window).correspondingUseElement&&(i=i.correspondingUseElement),3===i.nodeType?i.parentNode:i}var Nt=null,Bt=null,Lt=null;function Bb(i){if(i=Cb(i)){if("function"!=typeof Nt)throw Error(y(280));var o=i.stateNode;o&&(o=Db(o),Nt(i.stateNode,i.type,o))}}function Eb(i){Bt?Lt?Lt.push(i):Lt=[i]:Bt=i}function Fb(){if(Bt){var i=Bt,o=Lt;if(Lt=Bt=null,Bb(i),o)for(i=0;i(v=31-ar(v))?0:1<s;s++)o.push(i);return o}function $c(i,o,s){i.pendingLanes|=o;var v=o-1;i.suspendedLanes&=v,i.pingedLanes&=v,(i=i.eventTimes)[o=31-ar(o)]=s}var ar=Math.clz32?Math.clz32:function ad(i){return 0===i?32:31-(rr(i)/ir|0)|0},rr=Math.log,ir=Math.LN2;var or=$.unstable_UserBlockingPriority,sr=$.unstable_runWithPriority,dr=!0;function gd(i,o,s,v){Mt||Ib();var _=hd,$=Mt;Mt=!0;try{Hb(_,i,o,s,v)}finally{(Mt=$)||Mb()}}function id(i,o,s,v){sr(or,hd.bind(null,i,o,s,v))}function hd(i,o,s,v){var _;if(dr)if((_=0==(4&o))&&0=Mr),Ur=String.fromCharCode(32),Wr=!1;function ge(i,o){switch(i){case"keyup":return-1!==Lr.indexOf(o.keyCode);case"keydown":return 229!==o.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(i){return"object"==typeof(i=i.detail)&&"data"in i?i.data:null}var $r=!1;function je(i,o){switch(i){case"compositionend":return he(o);case"keypress":return 32!==o.which?null:(Wr=!0,Ur);case"textInput":return(i=o.data)===Ur&&Wr?null:i;default:return null}}function ke(i,o){if($r)return"compositionend"===i||!jr&&ge(i,o)?(i=nd(),cr=lr=ur=null,$r=!1,i):null;switch(i){case"paste":default:return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:v,offset:o-i};i=s}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Ke(v)}}function Me(i,o){return!(!i||!o)&&(i===o||(!i||3!==i.nodeType)&&(o&&3===o.nodeType?Me(i,o.parentNode):"contains"in i?i.contains(o):!!i.compareDocumentPosition&&!!(16&i.compareDocumentPosition(o))))}function Ne(){for(var i=window,o=Xa();o instanceof i.HTMLIFrameElement;){try{var s="string"==typeof o.contentWindow.location.href}catch(i){s=!1}if(!s)break;o=Xa((i=o.contentWindow).document)}return o}function Oe(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&("input"===o&&("text"===i.type||"search"===i.type||"tel"===i.type||"url"===i.type||"password"===i.type)||"textarea"===o||"true"===i.contentEditable)}var _i=we&&"documentMode"in document&&11>=document.documentMode,Ei=null,Ui=null,Ji=null,no=!1;function Ue(i,o,s){var v=s.window===s?s.document:9===s.nodeType?s:s.ownerDocument;no||null==Ei||Ei!==Xa(v)||("selectionStart"in(v=Ei)&&Oe(v)?v={start:v.selectionStart,end:v.selectionEnd}:v={anchorNode:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset},Ji&&Je(Ji,v)||(Ji=v,0<(v=oe(Ui,"onSelect")).length&&(o=new mr("onSelect","select",null,o,s),i.push({event:o,listeners:v}),o.target=Ei)))}Pc("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Pc("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Pc(tr,2);for(var io="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),oo=0;ooNo||(i.current=Fo[No],Fo[No]=null,No--)}function I(i,o){No++,Fo[No]=i.current,i.current=o}var Bo={},jo=Bf(Bo),Mo=Bf(!1),Qo=Bo;function Ef(i,o){var s=i.type.contextTypes;if(!s)return Bo;var v=i.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===o)return v.__reactInternalMemoizedMaskedChildContext;var _,$={};for(_ in s)$[_]=o[_];return v&&((i=i.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=$),$}function Ff(i){return null!=(i=i.childContextTypes)}function Gf(){H(Mo),H(jo)}function Hf(i,o,s){if(jo.current!==Bo)throw Error(y(168));I(jo,o),I(Mo,s)}function If(i,o,s){var v=i.stateNode;if(i=o.childContextTypes,"function"!=typeof v.getChildContext)return s;for(var $ in v=v.getChildContext())if(!($ in i))throw Error(y(108,Ra(o)||"Unknown",$));return _({},s,v)}function Jf(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Bo,Qo=jo.current,I(jo,i),I(Mo,Mo.current),!0}function Kf(i,o,s){var v=i.stateNode;if(!v)throw Error(y(169));s?(i=If(i,o,Qo),v.__reactInternalMemoizedMergedChildContext=i,H(Mo),H(jo),I(jo,i)):H(Mo),I(Mo,s)}var Vo=null,Uo=null,Wo=$.unstable_runWithPriority,$o=$.unstable_scheduleCallback,qo=$.unstable_cancelCallback,Zo=$.unstable_shouldYield,Xo=$.unstable_requestPaint,Yo=$.unstable_now,es=$.unstable_getCurrentPriorityLevel,ts=$.unstable_ImmediatePriority,ns=$.unstable_UserBlockingPriority,as=$.unstable_NormalPriority,rs=$.unstable_LowPriority,os=$.unstable_IdlePriority,ss={},ds=void 0!==Xo?Xo:function(){},us=null,ls=null,cs=!1,hs=Yo(),ps=1e4>hs?Yo:function(){return Yo()-hs};function eg(){switch(es()){case ts:return 99;case ns:return 98;case as:return 97;case rs:return 96;case os:return 95;default:throw Error(y(332))}}function fg(i){switch(i){case 99:return ts;case 98:return ns;case 97:return as;case 96:return rs;case 95:return os;default:throw Error(y(332))}}function gg(i,o){return i=fg(i),Wo(i,o)}function hg(i,o,s){return i=fg(i),$o(i,o,s)}function ig(){if(null!==ls){var i=ls;ls=null,qo(i)}jg()}function jg(){if(!cs&&null!==us){cs=!0;var i=0;try{var o=us;gg(99,(function(){for(;iwe?(_e=pe,pe=null):_e=pe.sibling;var et=p(o,pe,v[we],_);if(null===et){null===pe&&(pe=_e);break}i&&pe&&null===et.alternate&&b(o,pe),s=f(et,s,we),null===ae?$=et:ae.sibling=et,ae=et,pe=_e}if(we===v.length)return c(o,pe),$;if(null===pe){for(;wewe?(_e=pe,pe=null):_e=pe.sibling;var tt=p(o,pe,et.value,_);if(null===tt){null===pe&&(pe=_e);break}i&&pe&&null===tt.alternate&&b(o,pe),s=f(tt,s,we),null===ae?$=tt:ae.sibling=tt,ae=tt,pe=_e}if(et.done)return c(o,pe),$;if(null===pe){for(;!et.done;we++,et=v.next())null!==(et=A(o,et.value,_))&&(s=f(et,s,we),null===ae?$=et:ae.sibling=et,ae=et);return $}for(pe=d(o,pe);!et.done;we++,et=v.next())null!==(et=C(pe,o,we,et.value,_))&&(i&&null!==et.alternate&&pe.delete(null===et.key?we:et.key),s=f(et,s,we),null===ae?$=et:ae.sibling=et,ae=et);return i&&pe.forEach((function(i){return b(o,i)})),$}return function(i,o,s,v){var _="object"==typeof s&&null!==s&&s.type===ut&&null===s.key;_&&(s=s.props.children);var $="object"==typeof s&&null!==s;if($)switch(s.$$typeof){case st:e:{for($=s.key,_=o;null!==_;){if(_.key===$){if(7===_.tag){if(s.type===ut){c(i,_.sibling),(o=e(_,s.props.children)).return=i,i=o;break e}}else if(_.elementType===s.type){c(i,_.sibling),(o=e(_,s.props)).ref=Qg(i,_,s),o.return=i,i=o;break e}c(i,_);break}b(i,_),_=_.sibling}s.type===ut?((o=Xg(s.props.children,i.mode,v,s.key)).return=i,i=o):((v=Vg(s.type,s.key,s.props,null,i.mode,v)).ref=Qg(i,o,s),v.return=i,i=v)}return g(i);case dt:e:{for(_=s.key;null!==o;){if(o.key===_){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){c(i,o.sibling),(o=e(o,s.children||[])).return=i,i=o;break e}c(i,o);break}b(i,o),o=o.sibling}(o=Wg(s,i.mode,v)).return=i,i=o}return g(i)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==o&&6===o.tag?(c(i,o.sibling),(o=e(o,s)).return=i,i=o):(c(i,o),(o=Ug(s,i.mode,v)).return=i,i=o),g(i);if(xs(s))return x(i,o,s,v);if(La(s))return w(i,o,s,v);if($&&Rg(i,s),void 0===s&&!_)switch(i.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y(152,Ra(i.type)||"Component"))}return c(i,o)}}var ws=Sg(!0),Cs=Sg(!1),Ss={},_s=Bf(Ss),Es=Bf(Ss),ks=Bf(Ss);function dh(i){if(i===Ss)throw Error(y(174));return i}function eh(i,o){switch(I(ks,o),I(Es,i),I(_s,Ss),i=o.nodeType){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:mb(null,"");break;default:o=mb(o=(i=8===i?o.parentNode:o).namespaceURI||null,i=i.tagName)}H(_s),I(_s,o)}function fh(){H(_s),H(Es),H(ks)}function gh(i){dh(ks.current);var o=dh(_s.current),s=mb(o,i.type);o!==s&&(I(Es,i),I(_s,s))}function hh(i){Es.current===i&&(H(_s),H(Es))}var As=Bf(0);function ih(i){for(var o=i;null!==o;){if(13===o.tag){var s=o.memoizedState;if(null!==s&&(null===(s=s.dehydrated)||"$?"===s.data||"$!"===s.data))return o}else if(19===o.tag&&void 0!==o.memoizedProps.revealOrder){if(0!=(64&o.flags))return o}else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===i)break;for(;null===o.sibling;){if(null===o.return||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ds=null,Ps=null,Ts=!1;function mh(i,o){var s=nh(5,null,null,0);s.elementType="DELETED",s.type="DELETED",s.stateNode=o,s.return=i,s.flags=8,null!==i.lastEffect?(i.lastEffect.nextEffect=s,i.lastEffect=s):i.firstEffect=i.lastEffect=s}function oh(i,o){switch(i.tag){case 5:var s=i.type;return null!==(o=1!==o.nodeType||s.toLowerCase()!==o.nodeName.toLowerCase()?null:o)&&(i.stateNode=o,!0);case 6:return null!==(o=""===i.pendingProps||3!==o.nodeType?null:o)&&(i.stateNode=o,!0);default:return!1}}function ph(i){if(Ts){var o=Ps;if(o){var s=o;if(!oh(i,o)){if(!(o=rf(s.nextSibling))||!oh(i,o))return i.flags=-1025&i.flags|2,Ts=!1,void(Ds=i);mh(Ds,s)}Ds=i,Ps=rf(o.firstChild)}else i.flags=-1025&i.flags|2,Ts=!1,Ds=i}}function qh(i){for(i=i.return;null!==i&&5!==i.tag&&3!==i.tag&&13!==i.tag;)i=i.return;Ds=i}function rh(i){if(i!==Ds)return!1;if(!Ts)return qh(i),Ts=!0,!1;var o=i.type;if(5!==i.tag||"head"!==o&&"body"!==o&&!nf(o,i.memoizedProps))for(o=Ps;o;)mh(i,o),o=rf(o.nextSibling);if(qh(i),13===i.tag){if(!(i=null!==(i=i.memoizedState)?i.dehydrated:null))throw Error(y(317));e:{for(i=i.nextSibling,o=0;i;){if(8===i.nodeType){var s=i.data;if("/$"===s){if(0===o){Ps=rf(i.nextSibling);break e}o--}else"$"!==s&&"$!"!==s&&"$?"!==s||o++}i=i.nextSibling}Ps=null}}else Ps=Ds?rf(i.stateNode.nextSibling):null;return!0}function sh(){Ps=Ds=null,Ts=!1}var Is=[];function uh(){for(var i=0;i$))throw Error(y(301));$+=1,Ms=js=null,o.updateQueue=null,Fs.current=qs,i=s(v,_)}while(Vs)}if(Fs.current=Us,o=null!==js&&null!==js.next,Bs=0,Ms=js=Ls=null,Qs=!1,o)throw Error(y(300));return i}function Hh(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ms?Ls.memoizedState=Ms=i:Ms=Ms.next=i,Ms}function Ih(){if(null===js){var i=Ls.alternate;i=null!==i?i.memoizedState:null}else i=js.next;var o=null===Ms?Ls.memoizedState:Ms.next;if(null!==o)Ms=o,js=i;else{if(null===i)throw Error(y(310));i={memoizedState:(js=i).memoizedState,baseState:js.baseState,baseQueue:js.baseQueue,queue:js.queue,next:null},null===Ms?Ls.memoizedState=Ms=i:Ms=Ms.next=i}return Ms}function Jh(i,o){return"function"==typeof o?o(i):o}function Kh(i){var o=Ih(),s=o.queue;if(null===s)throw Error(y(311));s.lastRenderedReducer=i;var v=js,_=v.baseQueue,$=s.pending;if(null!==$){if(null!==_){var ae=_.next;_.next=$.next,$.next=ae}v.baseQueue=_=$,s.pending=null}if(null!==_){_=_.next,v=v.baseState;var pe=ae=$=null,we=_;do{var _e=we.lane;if((Bs&_e)===_e)null!==pe&&(pe=pe.next={lane:0,action:we.action,eagerReducer:we.eagerReducer,eagerState:we.eagerState,next:null}),v=we.eagerReducer===i?we.eagerState:i(v,we.action);else{var et={lane:_e,action:we.action,eagerReducer:we.eagerReducer,eagerState:we.eagerState,next:null};null===pe?(ae=pe=et,$=v):pe=pe.next=et,Ls.lanes|=_e,Yd|=_e}we=we.next}while(null!==we&&we!==_);null===pe?$=v:pe.next=ae,Kr(v,o.memoizedState)||(Zs=!0),o.memoizedState=v,o.baseState=$,o.baseQueue=pe,s.lastRenderedState=v}return[o.memoizedState,s.dispatch]}function Lh(i){var o=Ih(),s=o.queue;if(null===s)throw Error(y(311));s.lastRenderedReducer=i;var v=s.dispatch,_=s.pending,$=o.memoizedState;if(null!==_){s.pending=null;var ae=_=_.next;do{$=i($,ae.action),ae=ae.next}while(ae!==_);Kr($,o.memoizedState)||(Zs=!0),o.memoizedState=$,null===o.baseQueue&&(o.baseState=$),s.lastRenderedState=$}return[$,v]}function Mh(i,o,s){var v=o._getVersion;v=v(o._source);var _=o._workInProgressVersionPrimary;if(null!==_?i=_===v:(i=i.mutableReadLanes,(i=(Bs&i)===i)&&(o._workInProgressVersionPrimary=v,Is.push(o))),i)return s(o._source);throw Is.push(o),Error(y(350))}function Nh(i,o,s,v){var _=Cd;if(null===_)throw Error(y(349));var $=o._getVersion,ae=$(o._source),pe=Fs.current,we=pe.useState((function(){return Mh(_,o,s)})),_e=we[1],et=we[0];we=Ms;var tt=i.memoizedState,nt=tt.refs,rt=nt.getSnapshot,it=tt.source;tt=tt.subscribe;var ot=Ls;return i.memoizedState={refs:nt,source:o,subscribe:v},pe.useEffect((function(){nt.getSnapshot=s,nt.setSnapshot=_e;var i=$(o._source);if(!Kr(ae,i)){i=s(o._source),Kr(et,i)||(_e(i),i=Ig(ot),_.mutableReadLanes|=i&_.pendingLanes),i=_.mutableReadLanes,_.entangledLanes|=i;for(var v=_.entanglements,pe=i;0s?98:s,(function(){i(!0)})),gg(97<\/script>",i=i.removeChild(i.firstChild)):"string"==typeof v.is?i=we.createElement(s,{is:v.is}):(i=we.createElement(s),"select"===s&&(we=i,v.multiple?we.multiple=!0:v.size&&(we.size=v.size))):i=we.createElementNS(i,s),i[Ao]=o,i[Po]=v,Hs(i,o,!1,!1),o.stateNode=i,we=wb(s,v),s){case"dialog":G("cancel",i),G("close",i),$=v;break;case"iframe":case"object":case"embed":G("load",i),$=v;break;case"video":case"audio":for($=0;$ru&&(o.flags|=64,ae=!0,Fi(v,!1),o.lanes=33554432)}else{if(!ae)if(null!==(i=ih(we))){if(o.flags|=64,ae=!0,null!==(s=i.updateQueue)&&(o.updateQueue=s,o.flags|=4),Fi(v,!0),null===v.tail&&"hidden"===v.tailMode&&!we.alternate&&!Ts)return null!==(o=o.lastEffect=v.lastEffect)&&(o.nextEffect=null),null}else 2*ps()-v.renderingStartTime>ru&&1073741824!==s&&(o.flags|=64,ae=!0,Fi(v,!1),o.lanes=33554432);v.isBackwards?(we.sibling=o.child,o.child=we):(null!==(s=v.last)?s.sibling=we:o.child=we,v.last=we)}return null!==v.tail?(s=v.tail,v.rendering=s,v.tail=s.sibling,v.lastEffect=o.lastEffect,v.renderingStartTime=ps(),s.sibling=null,o=As.current,I(As,ae?1&o|2:1&o),s):null;case 23:case 24:return Ki(),null!==i&&null!==i.memoizedState!=(null!==o.memoizedState)&&"unstable-defer-without-hiding"!==v.mode&&(o.flags|=4),null}throw Error(y(156,o.tag))}function Li(i){switch(i.tag){case 1:Ff(i.type)&&Gf();var o=i.flags;return 4096&o?(i.flags=-4097&o|64,i):null;case 3:if(fh(),H(Mo),H(jo),uh(),0!=(64&(o=i.flags)))throw Error(y(285));return i.flags=-4097&o|64,i;case 5:return hh(i),null;case 13:return H(As),4096&(o=i.flags)?(i.flags=-4097&o|64,i):null;case 19:return H(As),null;case 4:return fh(),null;case 10:return rg(i),null;case 23:case 24:return Ki(),null;default:return null}}function Mi(i,o){try{var s="",v=o;do{s+=Qa(v),v=v.return}while(v);var _=s}catch(i){_="\nError generating stack: "+i.message+"\n"+i.stack}return{value:i,source:o,stack:_}}function Ni(i,o){try{console.error(o.value)}catch(i){setTimeout((function(){throw i}))}}Hs=function(i,o){for(var s=o.child;null!==s;){if(5===s.tag||6===s.tag)i.appendChild(s.stateNode);else if(4!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===o)break;for(;null===s.sibling;){if(null===s.return||s.return===o)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Gs=function(){},Xs=function(i,o,s,v){var $=i.memoizedProps;if($!==v){i=o.stateNode,dh(_s.current);var ae,we=null;switch(s){case"input":$=Ya(i,$),v=Ya(i,v),we=[];break;case"option":$=eb(i,$),v=eb(i,v),we=[];break;case"select":$=_({},$,{value:void 0}),v=_({},v,{value:void 0}),we=[];break;case"textarea":$=gb(i,$),v=gb(i,v),we=[];break;default:"function"!=typeof $.onClick&&"function"==typeof v.onClick&&(i.onclick=jf)}for(tt in vb(s,v),s=null,$)if(!v.hasOwnProperty(tt)&&$.hasOwnProperty(tt)&&null!=$[tt])if("style"===tt){var _e=$[tt];for(ae in _e)_e.hasOwnProperty(ae)&&(s||(s={}),s[ae]="")}else"dangerouslySetInnerHTML"!==tt&&"children"!==tt&&"suppressContentEditableWarning"!==tt&&"suppressHydrationWarning"!==tt&&"autoFocus"!==tt&&(pe.hasOwnProperty(tt)?we||(we=[]):(we=we||[]).push(tt,null));for(tt in v){var et=v[tt];if(_e=null!=$?$[tt]:void 0,v.hasOwnProperty(tt)&&et!==_e&&(null!=et||null!=_e))if("style"===tt)if(_e){for(ae in _e)!_e.hasOwnProperty(ae)||et&&et.hasOwnProperty(ae)||(s||(s={}),s[ae]="");for(ae in et)et.hasOwnProperty(ae)&&_e[ae]!==et[ae]&&(s||(s={}),s[ae]=et[ae])}else s||(we||(we=[]),we.push(tt,s)),s=et;else"dangerouslySetInnerHTML"===tt?(et=et?et.__html:void 0,_e=_e?_e.__html:void 0,null!=et&&_e!==et&&(we=we||[]).push(tt,et)):"children"===tt?"string"!=typeof et&&"number"!=typeof et||(we=we||[]).push(tt,""+et):"suppressContentEditableWarning"!==tt&&"suppressHydrationWarning"!==tt&&(pe.hasOwnProperty(tt)?(null!=et&&"onScroll"===tt&&G("scroll",i),we||_e===et||(we=[])):"object"==typeof et&&null!==et&&et.$$typeof===bt?et.toString():(we=we||[]).push(tt,et))}s&&(we=we||[]).push("style",s);var tt=we;(o.updateQueue=tt)&&(o.flags|=4)}},Ys=function(i,o,s,v){s!==v&&(o.flags|=4)};var Js="function"==typeof WeakMap?WeakMap:Map;function Pi(i,o,s){(s=zg(-1,s)).tag=3,s.payload={element:null};var v=o.value;return s.callback=function(){su||(su=!0,du=v),Ni(0,o)},s}function Si(i,o,s){(s=zg(-1,s)).tag=3;var v=i.type.getDerivedStateFromError;if("function"==typeof v){var _=o.value;s.payload=function(){return Ni(0,o),v(_)}}var $=i.stateNode;return null!==$&&"function"==typeof $.componentDidCatch&&(s.callback=function(){"function"!=typeof v&&(null===uu?uu=new Set([this]):uu.add(this),Ni(0,o));var i=o.stack;this.componentDidCatch(o.value,{componentStack:null!==i?i:""})}),s}var ed="function"==typeof WeakSet?WeakSet:Set;function Vi(i){var o=i.ref;if(null!==o)if("function"==typeof o)try{o(null)}catch(o){Wi(i,o)}else o.current=null}function Xi(i,o){switch(o.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&o.flags&&null!==i){var s=i.memoizedProps,v=i.memoizedState;o=(i=o.stateNode).getSnapshotBeforeUpdate(o.elementType===o.type?s:lg(o.type,s),v),i.__reactInternalSnapshotBeforeUpdate=o}return;case 3:return void(256&o.flags&&qf(o.stateNode.containerInfo))}throw Error(y(163))}function Yi(i,o,s){switch(s.tag){case 0:case 11:case 15:case 22:if(null!==(o=null!==(o=s.updateQueue)?o.lastEffect:null)){i=o=o.next;do{if(3==(3&i.tag)){var v=i.create;i.destroy=v()}i=i.next}while(i!==o)}if(null!==(o=null!==(o=s.updateQueue)?o.lastEffect:null)){i=o=o.next;do{var _=i;v=_.next,0!=(4&(_=_.tag))&&0!=(1&_)&&(Zi(s,i),$i(s,i)),i=v}while(i!==o)}return;case 1:return i=s.stateNode,4&s.flags&&(null===o?i.componentDidMount():(v=s.elementType===s.type?o.memoizedProps:lg(s.type,o.memoizedProps),i.componentDidUpdate(v,o.memoizedState,i.__reactInternalSnapshotBeforeUpdate))),void(null!==(o=s.updateQueue)&&Eg(s,o,i));case 3:if(null!==(o=s.updateQueue)){if(i=null,null!==s.child)switch(s.child.tag){case 5:case 1:i=s.child.stateNode}Eg(s,o,i)}return;case 5:return i=s.stateNode,void(null===o&&4&s.flags&&mf(s.type,s.memoizedProps)&&i.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===s.memoizedState&&(s=s.alternate,null!==s&&(s=s.memoizedState,null!==s&&(s=s.dehydrated,null!==s&&Cc(s)))))}throw Error(y(163))}function aj(i,o){for(var s=i;;){if(5===s.tag){var v=s.stateNode;if(o)"function"==typeof(v=v.style).setProperty?v.setProperty("display","none","important"):v.display="none";else{v=s.stateNode;var _=s.memoizedProps.style;_=null!=_&&_.hasOwnProperty("display")?_.display:null,v.style.display=sb("display",_)}}else if(6===s.tag)s.stateNode.nodeValue=o?"":s.memoizedProps;else if((23!==s.tag&&24!==s.tag||null===s.memoizedState||s===i)&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===i)break;for(;null===s.sibling;){if(null===s.return||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}}function bj(i,o){if(Uo&&"function"==typeof Uo.onCommitFiberUnmount)try{Uo.onCommitFiberUnmount(Vo,o)}catch(i){}switch(o.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(i=o.updateQueue)&&null!==(i=i.lastEffect)){var s=i=i.next;do{var v=s,_=v.destroy;if(v=v.tag,void 0!==_)if(0!=(4&v))Zi(o,s);else{v=o;try{_()}catch(i){Wi(v,i)}}s=s.next}while(s!==i)}break;case 1:if(Vi(o),"function"==typeof(i=o.stateNode).componentWillUnmount)try{i.props=o.memoizedProps,i.state=o.memoizedState,i.componentWillUnmount()}catch(i){Wi(o,i)}break;case 5:Vi(o);break;case 4:cj(i,o)}}function dj(i){i.alternate=null,i.child=null,i.dependencies=null,i.firstEffect=null,i.lastEffect=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.return=null,i.updateQueue=null}function ej(i){return 5===i.tag||3===i.tag||4===i.tag}function fj(i){e:{for(var o=i.return;null!==o;){if(ej(o))break e;o=o.return}throw Error(y(160))}var s=o;switch(o=s.stateNode,s.tag){case 5:var v=!1;break;case 3:case 4:o=o.containerInfo,v=!0;break;default:throw Error(y(161))}16&s.flags&&(pb(o,""),s.flags&=-17);e:t:for(s=i;;){for(;null===s.sibling;){if(null===s.return||ej(s.return)){s=null;break e}s=s.return}for(s.sibling.return=s.return,s=s.sibling;5!==s.tag&&6!==s.tag&&18!==s.tag;){if(2&s.flags)continue t;if(null===s.child||4===s.tag)continue t;s.child.return=s,s=s.child}if(!(2&s.flags)){s=s.stateNode;break e}}v?gj(i,s,o):hj(i,s,o)}function gj(i,o,s){var v=i.tag,_=5===v||6===v;if(_)i=_?i.stateNode:i.stateNode.instance,o?8===s.nodeType?s.parentNode.insertBefore(i,o):s.insertBefore(i,o):(8===s.nodeType?(o=s.parentNode).insertBefore(i,s):(o=s).appendChild(i),null!=(s=s._reactRootContainer)||null!==o.onclick||(o.onclick=jf));else if(4!==v&&null!==(i=i.child))for(gj(i,o,s),i=i.sibling;null!==i;)gj(i,o,s),i=i.sibling}function hj(i,o,s){var v=i.tag,_=5===v||6===v;if(_)i=_?i.stateNode:i.stateNode.instance,o?s.insertBefore(i,o):s.appendChild(i);else if(4!==v&&null!==(i=i.child))for(hj(i,o,s),i=i.sibling;null!==i;)hj(i,o,s),i=i.sibling}function cj(i,o){for(var s,v,_=o,$=!1;;){if(!$){$=_.return;e:for(;;){if(null===$)throw Error(y(160));switch(s=$.stateNode,$.tag){case 5:v=!1;break e;case 3:case 4:s=s.containerInfo,v=!0;break e}$=$.return}$=!0}if(5===_.tag||6===_.tag){e:for(var ae=i,pe=_,we=pe;;)if(bj(ae,we),null!==we.child&&4!==we.tag)we.child.return=we,we=we.child;else{if(we===pe)break e;for(;null===we.sibling;){if(null===we.return||we.return===pe)break e;we=we.return}we.sibling.return=we.return,we=we.sibling}v?(ae=s,pe=_.stateNode,8===ae.nodeType?ae.parentNode.removeChild(pe):ae.removeChild(pe)):s.removeChild(_.stateNode)}else if(4===_.tag){if(null!==_.child){s=_.stateNode.containerInfo,v=!0,_.child.return=_,_=_.child;continue}}else if(bj(i,_),null!==_.child){_.child.return=_,_=_.child;continue}if(_===o)break;for(;null===_.sibling;){if(null===_.return||_.return===o)return;4===(_=_.return).tag&&($=!1)}_.sibling.return=_.return,_=_.sibling}}function ij(i,o){switch(o.tag){case 0:case 11:case 14:case 15:case 22:var s=o.updateQueue;if(null!==(s=null!==s?s.lastEffect:null)){var v=s=s.next;do{3==(3&v.tag)&&(i=v.destroy,v.destroy=void 0,void 0!==i&&i()),v=v.next}while(v!==s)}return;case 1:case 12:case 17:return;case 5:if(null!=(s=o.stateNode)){v=o.memoizedProps;var _=null!==i?i.memoizedProps:v;i=o.type;var $=o.updateQueue;if(o.updateQueue=null,null!==$){for(s[Po]=v,"input"===i&&"radio"===v.type&&null!=v.name&&$a(s,v),wb(i,_),o=wb(i,v),_=0;_<$.length;_+=2){var ae=$[_],pe=$[_+1];"style"===ae?tb(s,pe):"dangerouslySetInnerHTML"===ae?Pt(s,pe):"children"===ae?pb(s,pe):qa(s,ae,pe,o)}switch(i){case"input":ab(s,v);break;case"textarea":ib(s,v);break;case"select":i=s._wrapperState.wasMultiple,s._wrapperState.wasMultiple=!!v.multiple,null!=($=v.value)?fb(s,!!v.multiple,$,!1):i!==!!v.multiple&&(null!=v.defaultValue?fb(s,!!v.multiple,v.defaultValue,!0):fb(s,!!v.multiple,v.multiple?[]:"",!1))}}}return;case 6:if(null===o.stateNode)throw Error(y(162));return void(o.stateNode.nodeValue=o.memoizedProps);case 3:return void((s=o.stateNode).hydrate&&(s.hydrate=!1,Cc(s.containerInfo)));case 13:return null!==o.memoizedState&&(au=ps(),aj(o.child,!0)),void kj(o);case 19:return void kj(o);case 23:case 24:return void aj(o,null!==o.memoizedState)}throw Error(y(163))}function kj(i){var o=i.updateQueue;if(null!==o){i.updateQueue=null;var s=i.stateNode;null===s&&(s=i.stateNode=new ed),o.forEach((function(o){var v=lj.bind(null,i,o);s.has(o)||(s.add(o),o.then(v,v))}))}}function mj(i,o){return null!==i&&(null===(i=i.memoizedState)||null!==i.dehydrated)&&(null!==(o=o.memoizedState)&&null===o.dehydrated)}var dd=Math.ceil,ld=ot.ReactCurrentDispatcher,cd=ot.ReactCurrentOwner,md=0,Cd=null,_d=null,kd=0,Ad=0,Md=Bf(0),Wd=0,Zd=null,Xd=0,Yd=0,eu=0,tu=0,nu=null,au=0,ru=1/0;function wj(){ru=ps()+500}var iu,ou=null,su=!1,du=null,uu=null,lu=!1,cu=null,hu=90,pu=[],fu=[],gu=null,mu=0,yu=null,vu=-1,Ru=0,bu=0,Ou=null,xu=!1;function Hg(){return 0!=(48&md)?ps():-1!==vu?vu:vu=ps()}function Ig(i){if(0==(2&(i=i.mode)))return 1;if(0==(4&i))return 99===eg()?1:2;if(0===Ru&&(Ru=Xd),0!==fs.transition){0!==bu&&(bu=null!==nu?nu.pendingLanes:0),i=Ru;var o=4186112&~bu;return 0===(o&=-o)&&(0===(o=(i=4186112&~i)&-i)&&(o=8192)),o}return i=eg(),0!=(4&md)&&98===i?i=Xc(12,Ru):i=Xc(i=Sc(i),Ru),i}function Jg(i,o,s){if(50_&&(_=ae),s&=~$}if(s=_,10<(s=(120>(s=ps()-s)?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*dd(s/1960))-s)){i.timeoutHandle=So(Uj.bind(null,i),s);break}Uj(i);break;default:throw Error(y(329))}}return Mj(i,ps()),i.callbackNode===o?Nj.bind(null,i):null}function Ii(i,o){for(o&=~tu,o&=~eu,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Wd&&(Wd=2),we=Mi(we,pe),nt=ae;do{switch(nt.tag){case 3:$=we,nt.flags|=4096,o&=-o,nt.lanes|=o,Bg(nt,Pi(0,$,o));break e;case 1:$=we;var ht=nt.type,pt=nt.stateNode;if(0==(64&nt.flags)&&("function"==typeof ht.getDerivedStateFromError||null!==pt&&"function"==typeof pt.componentDidCatch&&(null===uu||!uu.has(pt)))){nt.flags|=4096,o&=-o,nt.lanes|=o,Bg(nt,Si(nt,$,o));break e}}nt=nt.return}while(null!==nt)}Zj(s)}catch(i){o=i,_d===s&&null!==s&&(_d=s=s.return);continue}break}}function Pj(){var i=ld.current;return ld.current=Us,null===i?Us:i}function Tj(i,o){var s=md;md|=16;var v=Pj();for(Cd===i&&kd===o||Qj(i,o);;)try{ak();break}catch(o){Sj(i,o)}if(qg(),md=s,ld.current=v,null!==_d)throw Error(y(261));return Cd=null,kd=0,Wd}function ak(){for(;null!==_d;)bk(_d)}function Rj(){for(;null!==_d&&!Zo();)bk(_d)}function bk(i){var o=iu(i.alternate,i,Ad);i.memoizedProps=i.pendingProps,null===o?Zj(i):_d=o,cd.current=null}function Zj(i){var o=i;do{var s=o.alternate;if(i=o.return,0==(2048&o.flags)){if(null!==(s=Gi(s,o,Ad)))return void(_d=s);if(24!==(s=o).tag&&23!==s.tag||null===s.memoizedState||0!=(1073741824&Ad)||0==(4&s.mode)){for(var v=0,_=s.child;null!==_;)v|=_.lanes|_.childLanes,_=_.sibling;s.childLanes=v}null!==i&&0==(2048&i.flags)&&(null===i.firstEffect&&(i.firstEffect=o.firstEffect),null!==o.lastEffect&&(null!==i.lastEffect&&(i.lastEffect.nextEffect=o.firstEffect),i.lastEffect=o.lastEffect),1ae&&(pe=ae,ae=ht,ht=pe),pe=Le(ut,ht),$=Le(ut,ae),pe&&$&&(1!==ct.rangeCount||ct.anchorNode!==pe.node||ct.anchorOffset!==pe.offset||ct.focusNode!==$.node||ct.focusOffset!==$.offset)&&((lt=lt.createRange()).setStart(pe.node,pe.offset),ct.removeAllRanges(),ht>ae?(ct.addRange(lt),ct.extend($.node,$.offset)):(lt.setEnd($.node,$.offset),ct.addRange(lt))))),lt=[];for(ct=ut;ct=ct.parentNode;)1===ct.nodeType&<.push({element:ct,left:ct.scrollLeft,top:ct.scrollTop});for("function"==typeof ut.focus&&ut.focus(),ut=0;utps()-au?Qj(i,0):tu|=s),Mj(i,o)}function lj(i,o){var s=i.stateNode;null!==s&&s.delete(o),0===(o=0)&&(0==(2&(o=i.mode))?o=1:0==(4&o)?o=99===eg()?1:2:(0===Ru&&(Ru=Xd),0===(o=Yc(62914560&~Ru))&&(o=4194304))),s=Hg(),null!==(i=Kj(i,o))&&($c(i,o,s),Mj(i,s))}function ik(i,o,s,v){this.tag=i,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function nh(i,o,s,v){return new ik(i,o,s,v)}function ji(i){return!(!(i=i.prototype)||!i.isReactComponent)}function hk(i){if("function"==typeof i)return ji(i)?1:0;if(null!=i){if((i=i.$$typeof)===ft)return 11;if(i===yt)return 14}return 2}function Tg(i,o){var s=i.alternate;return null===s?((s=nh(i.tag,o,i.key,i.mode)).elementType=i.elementType,s.type=i.type,s.stateNode=i.stateNode,s.alternate=i,i.alternate=s):(s.pendingProps=o,s.type=i.type,s.flags=0,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null),s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,o=i.dependencies,s.dependencies=null===o?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=i.sibling,s.index=i.index,s.ref=i.ref,s}function Vg(i,o,s,v,_,$){var ae=2;if(v=i,"function"==typeof i)ji(i)&&(ae=1);else if("string"==typeof i)ae=5;else e:switch(i){case ut:return Xg(s.children,_,$,o);case Ot:ae=8,_|=16;break;case lt:ae=8,_|=1;break;case ct:return(i=nh(12,s,o,8|_)).elementType=ct,i.type=ct,i.lanes=$,i;case gt:return(i=nh(13,s,o,_)).type=gt,i.elementType=gt,i.lanes=$,i;case mt:return(i=nh(19,s,o,_)).elementType=mt,i.lanes=$,i;case xt:return vi(s,_,$,o);case wt:return(i=nh(24,s,o,_)).elementType=wt,i.lanes=$,i;default:if("object"==typeof i&&null!==i)switch(i.$$typeof){case ht:ae=10;break e;case pt:ae=9;break e;case ft:ae=11;break e;case yt:ae=14;break e;case vt:ae=16,v=null;break e;case Rt:ae=22;break e}throw Error(y(130,null==i?i:typeof i,""))}return(o=nh(ae,s,o,_)).elementType=i,o.type=v,o.lanes=$,o}function Xg(i,o,s,v){return(i=nh(7,i,v,o)).lanes=s,i}function vi(i,o,s,v){return(i=nh(23,i,v,o)).elementType=xt,i.lanes=s,i}function Ug(i,o,s){return(i=nh(6,i,null,o)).lanes=s,i}function Wg(i,o,s){return(o=nh(4,null!==i.children?i.children:[],i.key,o)).lanes=s,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function jk(i,o,s){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=s,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Zc(0),this.expirationTimes=Zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc(0),this.mutableSourceEagerHydrationData=null}function kk(i,o,s){var v=3=lt},ae=function(){},o.unstable_forceFrameRate=function(i){0>i||125>>1,_=i[v];if(!(void 0!==_&&0I(ae,s))void 0!==we&&0>I(we,ae)?(i[v]=we,i[pe]=s,v=pe):(i[v]=ae,i[$]=s,v=$);else{if(!(void 0!==we&&0>I(we,s)))break e;i[v]=we,i[pe]=s,v=pe}}}return o}return null}function I(i,o){var s=i.sortIndex-o.sortIndex;return 0!==s?s:i.id-o.id}var pt=[],ft=[],gt=1,mt=null,yt=3,vt=!1,Rt=!1,bt=!1;function T(i){for(var o=J(ft);null!==o;){if(null===o.callback)K(ft);else{if(!(o.startTime<=i))break;K(ft),o.sortIndex=o.expirationTime,H(pt,o)}o=J(ft)}}function U(i){if(bt=!1,T(i),!Rt)if(null!==J(pt))Rt=!0,v(V);else{var o=J(ft);null!==o&&_(U,o.startTime-i)}}function V(i,s){Rt=!1,bt&&(bt=!1,$()),vt=!0;var v=yt;try{for(T(s),mt=J(pt);null!==mt&&(!(mt.expirationTime>s)||i&&!o.unstable_shouldYield());){var ae=mt.callback;if("function"==typeof ae){mt.callback=null,yt=mt.priorityLevel;var pe=ae(mt.expirationTime<=s);s=o.unstable_now(),"function"==typeof pe?mt.callback=pe:mt===J(pt)&&K(pt),T(s)}else K(pt);mt=J(pt)}if(null!==mt)var we=!0;else{var _e=J(ft);null!==_e&&_(U,_e.startTime-s),we=!1}return we}finally{mt=null,yt=v,vt=!1}}var Ot=ae;o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(i){i.callback=null},o.unstable_continueExecution=function(){Rt||vt||(Rt=!0,v(V))},o.unstable_getCurrentPriorityLevel=function(){return yt},o.unstable_getFirstCallbackNode=function(){return J(pt)},o.unstable_next=function(i){switch(yt){case 1:case 2:case 3:var o=3;break;default:o=yt}var s=yt;yt=o;try{return i()}finally{yt=s}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=Ot,o.unstable_runWithPriority=function(i,o){switch(i){case 1:case 2:case 3:case 4:case 5:break;default:i=3}var s=yt;yt=i;try{return o()}finally{yt=s}},o.unstable_scheduleCallback=function(i,s,ae){var pe=o.unstable_now();switch("object"==typeof ae&&null!==ae?ae="number"==typeof(ae=ae.delay)&&0pe?(i.sortIndex=ae,H(ft,i),null===J(pt)&&i===J(ft)&&(bt?$():bt=!0,_(U,ae-pe))):(i.sortIndex=we,H(pt,i),Rt||vt||(Rt=!0,v(V))),i},o.unstable_wrapCallback=function(i){var o=yt;return function(){var s=yt;yt=o;try{return i.apply(this,arguments)}finally{yt=s}}}},function(i,o,s){"use strict";function pad(i,o){for(;i.length")})),et="$0"==="a".replace(/./,"$0"),tt=$("replace"),nt=!!/./[tt]&&""===/./[tt]("a","$0"),rt=!_((function(){var i=/(?:)/,o=i.exec;i.exec=function(){return o.apply(this,arguments)};var s="ab".split(i);return 2!==s.length||"a"!==s[0]||"b"!==s[1]}));i.exports=function(i,o,s,tt){var it=$(i),ot=!_((function(){var o={};return o[it]=function(){return 7},7!=""[i](o)})),st=ot&&!_((function(){var o=!1,s=/a/;return"split"===i&&((s={}).constructor={},s.constructor[we]=function(){return s},s.flags="",s[it]=/./[it]),s.exec=function(){return o=!0,null},s[it](""),!o}));if(!ot||!st||"replace"===i&&(!_e||!et||nt)||"split"===i&&!rt){var dt=/./[it],ut=s(it,""[i],(function(i,o,s,v,_){return o.exec===ae?ot&&!_?{done:!0,value:dt.call(o,s,v)}:{done:!0,value:i.call(s,o,v)}:{done:!1}}),{REPLACE_KEEPS_$0:et,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:nt}),lt=ut[0],ct=ut[1];v(String.prototype,i,lt),v(RegExp.prototype,it,2==o?function(i,o){return ct.call(i,this,o)}:function(i){return ct.call(i,this)})}tt&&pe(RegExp.prototype[it],"sham",!0)}},function(i,o,s){"use strict";var v=s(257),_=s(118);v({target:"RegExp",proto:!0,forced:/./.exec!==_},{exec:_})},function(i,o,s){var v=s(34),_=s(157).f,$=s(67),ae=s(163),pe=s(117),we=s(265),_e=s(275);i.exports=function(i,o){var s,et,tt,nt,rt,it=i.target,ot=i.global,st=i.stat;if(s=ot?v:st?v[it]||pe(it,{}):(v[it]||{}).prototype)for(et in o){if(nt=o[et],tt=i.noTargetGet?(rt=_(s,et))&&rt.value:s[et],!_e(ot?et:it+(st?".":"#")+et,i.forced)&&void 0!==tt){if(typeof nt==typeof tt)continue;we(nt,tt)}(i.sham||tt&&tt.sham)&&$(nt,"sham",!0),ae(s,et,nt,i)}}},function(i,o,s){"use strict";var v={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,$=_&&!v.call({1:2},1);o.f=$?function propertyIsEnumerable(i){var o=_(this,i);return!!o&&o.enumerable}:v},function(i,o,s){var v=s(47),_=s(159),$="".split;i.exports=v((function(){return!Object("z").propertyIsEnumerable(0)}))?function(i){return"String"==_(i)?$.call(i,""):Object(i)}:Object},function(i,o,s){var v=s(34),_=s(89),$=v.document,ae=_($)&&_($.createElement);i.exports=function(i){return ae?$.createElement(i):{}}},function(i,o,s){var v,_,$,ae=s(262),pe=s(34),we=s(89),_e=s(67),et=s(58),tt=s(263),nt=s(168),rt=pe.WeakMap;if(ae){var it=new rt,ot=it.get,st=it.has,dt=it.set;v=function(i,o){return dt.call(it,i,o),o},_=function(i){return ot.call(it,i)||{}},$=function(i){return st.call(it,i)}}else{var ut=tt("state");nt[ut]=!0,v=function(i,o){return _e(i,ut,o),o},_=function(i){return et(i,ut)?i[ut]:{}},$=function(i){return et(i,ut)}}i.exports={set:v,get:_,has:$,enforce:function(i){return $(i)?_(i):v(i,{})},getterFor:function(i){return function(o){var s;if(!we(o)||(s=_(o)).type!==i)throw TypeError("Incompatible receiver, "+i+" required");return s}}}},function(i,o,s){var v=s(34),_=s(164),$=v.WeakMap;i.exports="function"==typeof $&&/native code/.test(_($))},function(i,o,s){var v=s(166),_=s(167),$=v("keys");i.exports=function(i){return $[i]||($[i]=_(i))}},function(i,o){i.exports=!1},function(i,o,s){var v=s(58),_=s(266),$=s(157),ae=s(162);i.exports=function(i,o){for(var s=_(o),pe=ae.f,we=$.f,_e=0;_ewe;)v(pe,s=o[we++])&&(~$(_e,s)||_e.push(s));return _e}},function(i,o,s){var v=s(116),_=s(169),$=s(272),createMethod=function(i){return function(o,s,ae){var pe,we=v(o),_e=_(we.length),et=$(ae,_e);if(i&&s!=s){for(;_e>et;)if((pe=we[et++])!=pe)return!0}else for(;_e>et;et++)if((i||et in we)&&we[et]===s)return i||et||0;return!i&&-1}};i.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},function(i,o,s){var v=s(91),_=Math.max,$=Math.min;i.exports=function(i,o){var s=v(i);return s<0?_(s+o,0):$(s,o)}},function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(i,o){o.f=Object.getOwnPropertySymbols},function(i,o,s){var v=s(47),_=/#|\.prototype\./,isForced=function(i,o){var s=ae[$(i)];return s==we||s!=pe&&("function"==typeof o?v(o):!!o)},$=isForced.normalize=function(i){return String(i).replace(_,".").toLowerCase()},ae=isForced.data={},pe=isForced.NATIVE="N",we=isForced.POLYFILL="P";i.exports=isForced},function(i,o,s){"use strict";var v=s(90);i.exports=function(){var i=v(this),o="";return i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.sticky&&(o+="y"),o}},function(i,o,s){"use strict";var v=s(47);function RE(i,o){return RegExp(i,o)}o.UNSUPPORTED_Y=v((function(){var i=RE("a","y");return i.lastIndex=2,null!=i.exec("abcd")})),o.BROKEN_CARET=v((function(){var i=RE("^r","gy");return i.lastIndex=2,null!=i.exec("str")}))},function(i,o,s){var v=s(34),_=s(166),$=s(58),ae=s(167),pe=s(170),we=s(279),_e=_("wks"),et=v.Symbol,tt=we?et:et&&et.withoutSetter||ae;i.exports=function(i){return $(_e,i)||(pe&&$(et,i)?_e[i]=et[i]:_e[i]=tt("Symbol."+i)),_e[i]}},function(i,o,s){var v=s(170);i.exports=v&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(i,o,s){var v=s(88);i.exports=function(i){return Object(v(i))}},function(i,o,s){"use strict";var v=s(282).charAt;i.exports=function(i,o,s){return o+(s?v(i,o).length:1)}},function(i,o,s){var v=s(91),_=s(88),createMethod=function(i){return function(o,s){var $,ae,pe=String(_(o)),we=v(s),_e=pe.length;return we<0||we>=_e?i?"":void 0:($=pe.charCodeAt(we))<55296||$>56319||we+1===_e||(ae=pe.charCodeAt(we+1))<56320||ae>57343?i?pe.charAt(we):$:i?pe.slice(we,we+2):ae-56320+($-55296<<10)+65536}};i.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},function(i,o,s){var v=s(159),_=s(118);i.exports=function(i,o){var s=i.exec;if("function"==typeof s){var $=s.call(i,o);if("object"!=typeof $)throw TypeError("RegExp exec method returned something other than an Object or null");return $}if("RegExp"!==v(i))throw TypeError("RegExp#exec called on incompatible receiver");return _.call(i,o)}},function(i,o,s){var v=s(119),_=s(173),$=s(175),ae=s(314),pe=s(35),we=s(180),_e=s(179);i.exports=function baseMerge(i,o,s,et,tt){i!==o&&$(o,(function($,we){if(tt||(tt=new v),pe($))ae(i,o,we,s,baseMerge,et,tt);else{var nt=et?et(_e(i,we),$,we+"",i,o,tt):void 0;void 0===nt&&(nt=$),_(i,we,nt)}}),we)}},function(i,o){i.exports=function listCacheClear(){this.__data__=[],this.size=0}},function(i,o,s){var v=s(93),_=Array.prototype.splice;i.exports=function listCacheDelete(i){var o=this.__data__,s=v(o,i);return!(s<0)&&(s==o.length-1?o.pop():_.call(o,s,1),--this.size,!0)}},function(i,o,s){var v=s(93);i.exports=function listCacheGet(i){var o=this.__data__,s=v(o,i);return s<0?void 0:o[s][1]}},function(i,o,s){var v=s(93);i.exports=function listCacheHas(i){return v(this.__data__,i)>-1}},function(i,o,s){var v=s(93);i.exports=function listCacheSet(i,o){var s=this.__data__,_=v(s,i);return _<0?(++this.size,s.push([i,o])):s[_][1]=o,this}},function(i,o,s){var v=s(92);i.exports=function stackClear(){this.__data__=new v,this.size=0}},function(i,o){i.exports=function stackDelete(i){var o=this.__data__,s=o.delete(i);return this.size=o.size,s}},function(i,o){i.exports=function stackGet(i){return this.__data__.get(i)}},function(i,o){i.exports=function stackHas(i){return this.__data__.has(i)}},function(i,o,s){var v=s(92),_=s(120),$=s(122);i.exports=function stackSet(i,o){var s=this.__data__;if(s instanceof v){var ae=s.__data__;if(!_||ae.length<199)return ae.push([i,o]),this.size=++s.size,this;s=this.__data__=new $(ae)}return s.set(i,o),this.size=s.size,this}},function(i,o,s){var v=s(121),_=s(298),$=s(35),ae=s(172),pe=/^\[object .+?Constructor\]$/,we=Function.prototype,_e=Object.prototype,et=we.toString,tt=_e.hasOwnProperty,nt=RegExp("^"+et.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");i.exports=function baseIsNative(i){return!(!$(i)||_(i))&&(v(i)?nt:pe).test(ae(i))}},function(i,o,s){var v=s(94),_=Object.prototype,$=_.hasOwnProperty,ae=_.toString,pe=v?v.toStringTag:void 0;i.exports=function getRawTag(i){var o=$.call(i,pe),s=i[pe];try{i[pe]=void 0;var v=!0}catch(i){}var _=ae.call(i);return v&&(o?i[pe]=s:delete i[pe]),_}},function(i,o){var s=Object.prototype.toString;i.exports=function objectToString(i){return s.call(i)}},function(i,o,s){var v,_=s(299),$=(v=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"";i.exports=function isMasked(i){return!!$&&$ in i}},function(i,o,s){var v=s(25)["__core-js_shared__"];i.exports=v},function(i,o){i.exports=function getValue(i,o){return null==i?void 0:i[o]}},function(i,o,s){var v=s(302),_=s(92),$=s(120);i.exports=function mapCacheClear(){this.size=0,this.__data__={hash:new v,map:new($||_),string:new v}}},function(i,o,s){var v=s(303),_=s(304),$=s(305),ae=s(306),pe=s(307);function Hash(i){var o=-1,s=null==i?0:i.length;for(this.clear();++o1?s[$-1]:void 0,pe=$>2?s[2]:void 0;for(ae=i.length>3&&"function"==typeof ae?($--,ae):void 0,pe&&_(s[0],s[1],pe)&&(ae=$<3?void 0:ae,$=1),o=Object(o);++v<$;){var we=s[v];we&&i(o,we,v,ae)}return o}))}},function(i,o,s){var v=s(126),_=s(336),$=s(338);i.exports=function baseRest(i,o){return $(_(i,o,v),i+"")}},function(i,o,s){var v=s(337),_=Math.max;i.exports=function overRest(i,o,s){return o=_(void 0===o?i.length-1:o,0),function(){for(var $=arguments,ae=-1,pe=_($.length-o,0),we=Array(pe);++ae0){if(++o>=800)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}},function(i,o,s){var v=s(68),_=s(44),$=s(125),ae=s(35);i.exports=function isIterateeCall(i,o,s){if(!ae(s))return!1;var pe=typeof o;return!!("number"==pe?_(s)&&$(o,s.length):"string"==pe&&o in s)&&v(s[o],i)}},function(i,o){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},function(i,o){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(i){"entity"===i.type&&(i.attributes.title=i.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function addInlined(i,o){var s={};s["language-"+o]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[o]},s.cdata=/^$/i;var v={"included-cdata":{pattern://i,inside:s}};v["language-"+o]={pattern:/[\s\S]+/,inside:Prism.languages[o]};var _={};_[i]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return i})),"i"),lookbehind:!0,greedy:!0,inside:v},Prism.languages.insertBefore("markup","cdata",_)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(i,o){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:Prism.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},function(i,o){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},function(i,o){!function(i){var o=i.util.clone(i.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,v=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,_=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re(i,o){return i=i.replace(//g,(function(){return s})).replace(//g,(function(){return v})).replace(//g,(function(){return _})),RegExp(i,o)}_=re(_).source,i.languages.jsx=i.languages.extend("markup",o),i.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),i.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,i.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,i.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,i.languages.jsx.tag.inside.comment=o.comment,i.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:i.languages.jsx}},i.languages.jsx.tag),i.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:i.languages.jsx}}},i.languages.jsx.tag);var stringifyToken=function(i){return i?"string"==typeof i?i:"string"==typeof i.content?i.content:i.content.map(stringifyToken).join(""):""},walkTokens=function(o){for(var s=[],v=0;v0&&s[s.length-1].tagName===stringifyToken(_.content[0].content[1])&&s.pop():"/>"===_.content[_.content.length-1].content||s.push({tagName:stringifyToken(_.content[0].content[1]),openedBraces:0}):s.length>0&&"punctuation"===_.type&&"{"===_.content?s[s.length-1].openedBraces++:s.length>0&&s[s.length-1].openedBraces>0&&"punctuation"===_.type&&"}"===_.content?s[s.length-1].openedBraces--:$=!0),($||"string"==typeof _)&&s.length>0&&0===s[s.length-1].openedBraces){var ae=stringifyToken(_);v0&&("string"==typeof o[v-1]||"plain-text"===o[v-1].type)&&(ae=stringifyToken(o[v-1])+ae,o.splice(v-1,1),v--),o[v]=new i.Token("plain-text",ae,null,ae)}_.content&&"string"!=typeof _.content&&walkTokens(_.content)}};i.hooks.add("after-tokenize",(function(i){"jsx"!==i.language&&"tsx"!==i.language||walkTokens(i.tokens)}))}(Prism)},function(i,o,s){"use strict";var v=s(348);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,i.exports=function(){function shim(i,o,s,_,$,ae){if(ae!==v){var pe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw pe.name="Invariant Violation",pe}}function getShim(){return shim}shim.isRequired=shim;var i={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return i.PropTypes=i,i}},function(i,o,s){"use strict";i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(i,o){!function(){"use strict";function isStatement(i){if(null==i)return!1;switch(i.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function trailingStatement(i){switch(i.type){case"IfStatement":return null!=i.alternate?i.alternate:i.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return i.body}return null}i.exports={isExpression:function isExpression(i){if(null==i)return!1;switch(i.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:isStatement,isIterationStatement:function isIterationStatement(i){if(null==i)return!1;switch(i.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(i){return isStatement(i)||null!=i&&"FunctionDeclaration"===i.type},isProblematicIfStatement:function isProblematicIfStatement(i){var o;if("IfStatement"!==i.type)return!1;if(null==i.alternate)return!1;o=i.consequent;do{if("IfStatement"===o.type&&null==o.alternate)return!0;o=trailingStatement(o)}while(o);return!1},trailingStatement:trailingStatement}}()},function(i,o,s){!function(){"use strict";var o=s(183);function isStrictModeReservedWordES6(i){switch(i){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function isKeywordES5(i,o){return!(!o&&"yield"===i)&&isKeywordES6(i,o)}function isKeywordES6(i,o){if(o&&isStrictModeReservedWordES6(i))return!0;switch(i.length){case 2:return"if"===i||"in"===i||"do"===i;case 3:return"var"===i||"for"===i||"new"===i||"try"===i;case 4:return"this"===i||"else"===i||"case"===i||"void"===i||"with"===i||"enum"===i;case 5:return"while"===i||"break"===i||"catch"===i||"throw"===i||"const"===i||"yield"===i||"class"===i||"super"===i;case 6:return"return"===i||"typeof"===i||"delete"===i||"switch"===i||"export"===i||"import"===i;case 7:return"default"===i||"finally"===i||"extends"===i;case 8:return"function"===i||"continue"===i||"debugger"===i;case 10:return"instanceof"===i;default:return!1}}function isReservedWordES5(i,o){return"null"===i||"true"===i||"false"===i||isKeywordES5(i,o)}function isReservedWordES6(i,o){return"null"===i||"true"===i||"false"===i||isKeywordES6(i,o)}function isIdentifierNameES5(i){var s,v,_;if(0===i.length)return!1;if(_=i.charCodeAt(0),!o.isIdentifierStartES5(_))return!1;for(s=1,v=i.length;s=v)return!1;if(!(56320<=($=i.charCodeAt(s))&&$<=57343))return!1;_=1024*(_-55296)+($-56320)+65536}if(!ae(_))return!1;ae=o.isIdentifierPartES6}return!0}i.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:function isRestrictedWord(i){return"eval"===i||"arguments"===i},isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:function isIdentifierES5(i,o){return isIdentifierNameES5(i)&&!isReservedWordES5(i,o)},isIdentifierES6:function isIdentifierES6(i,o){return isIdentifierNameES6(i)&&!isReservedWordES6(i,o)}}}()},function(i,o,s){!function(){"use strict";var i,v,_,$,ae,pe,we,_e,et,tt,nt,rt;function isTypeName(i){return-1==="><(){}[],:*|?!=".indexOf(String.fromCharCode(i))&&!et.code.isWhiteSpace(i)&&!et.code.isLineTerminator(i)}function Context(i,o,s,v){this._previous=i,this._index=o,this._token=s,this._value=v}function maybeAddRange(i,o){return rt&&(i.range=[o[0]+nt,o[1]+nt]),i}function advance(){var i=_.charAt(ae);return ae+=1,i}function scanHexEscape(i){var o,s,v,pe=0;for(s="u"===i?4:2,o=0;o=0&&ae<$&&et.code.isOctalDigit(_.charCodeAt(ae))&&(s=8*s+"01234567".indexOf(advance()))),nt+=String.fromCharCode(s)):nt+=o}else{if(et.code.isLineTerminator(o.charCodeAt(0)))break;nt+=o}}return""!==i&&tt.throwError("unexpected quote"),_e=nt,v.STRING}function scanNumber(){var i,o;if(i="",46!==(o=_.charCodeAt(ae))){if(i=advance(),o=_.charCodeAt(ae),"0"===i){if(120===o||88===o){for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isHexDigit(o));)i+=advance();return i.length<=2&&tt.throwError("unexpected token"),ae<$&&(o=_.charCodeAt(ae),et.code.isIdentifierStartES5(o)&&tt.throwError("unexpected token")),_e=parseInt(i,16),v.NUMBER}if(et.code.isOctalDigit(o)){for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isOctalDigit(o));)i+=advance();return ae<$&&(o=_.charCodeAt(ae),(et.code.isIdentifierStartES5(o)||et.code.isDecimalDigit(o))&&tt.throwError("unexpected token")),_e=parseInt(i,8),v.NUMBER}et.code.isDecimalDigit(o)&&tt.throwError("unexpected token")}for(;ae<$&&(o=_.charCodeAt(ae),et.code.isDecimalDigit(o));)i+=advance()}if(46===o)for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isDecimalDigit(o));)i+=advance();if(101===o||69===o)if(i+=advance(),43!==(o=_.charCodeAt(ae))&&45!==o||(i+=advance()),o=_.charCodeAt(ae),et.code.isDecimalDigit(o))for(i+=advance();ae<$&&(o=_.charCodeAt(ae),et.code.isDecimalDigit(o));)i+=advance();else tt.throwError("unexpected token");return ae<$&&(o=_.charCodeAt(ae),et.code.isIdentifierStartES5(o)&&tt.throwError("unexpected token")),_e=parseFloat(i),v.NUMBER}function scanTypeName(){for(_e=advance();ae<$&&isTypeName(_.charCodeAt(ae));){if(46===_.charCodeAt(ae)){if(ae+1>=$)return v.ILLEGAL;if(60===_.charCodeAt(ae+1))break}_e+=advance()}return v.NAME}function next(){var i;for(pe=ae;ae<$&&et.code.isWhiteSpace(_.charCodeAt(ae));)advance();if(ae>=$)return we=v.EOF;switch(i=_.charCodeAt(ae)){case 39:case 34:return we=scanString();case 58:return advance(),we=v.COLON;case 44:return advance(),we=v.COMMA;case 40:return advance(),we=v.LPAREN;case 41:return advance(),we=v.RPAREN;case 91:return advance(),we=v.LBRACK;case 93:return advance(),we=v.RBRACK;case 123:return advance(),we=v.LBRACE;case 125:return advance(),we=v.RBRACE;case 46:if(ae+1<$){if(60===(i=_.charCodeAt(ae+1)))return advance(),advance(),we=v.DOT_LT;if(46===i&&ae+2<$&&46===_.charCodeAt(ae+2))return advance(),advance(),advance(),we=v.REST;if(et.code.isDecimalDigit(i))return we=scanNumber()}return we=v.ILLEGAL;case 60:return advance(),we=v.LT;case 62:return advance(),we=v.GT;case 42:return advance(),we=v.STAR;case 124:return advance(),we=v.PIPE;case 63:return advance(),we=v.QUESTION;case 33:return advance(),we=v.BANG;case 61:return advance(),we=v.EQUAL;case 45:return we=scanNumber();default:return et.code.isDecimalDigit(i)?we=scanNumber():(tt.assert(isTypeName(i)),we=scanTypeName())}}function consume(i,o){tt.assert(we===i,o||"consumed token not matched"),next()}function expect(i,o){we!==i&&tt.throwError(o||"unexpected token"),next()}function parseUnionType(){var o,s=ae-1;if(consume(v.LPAREN,"UnionType should start with ("),o=[],we!==v.RPAREN)for(;o.push(parseTypeExpression()),we!==v.RPAREN;)expect(v.PIPE);return consume(v.RPAREN,"UnionType should end with )"),maybeAddRange({type:i.UnionType,elements:o},[s,pe])}function parseArrayType(){var o,s,_=ae-1;for(consume(v.LBRACK,"ArrayType should start with ["),o=[];we!==v.RBRACK;){if(we===v.REST){s=ae-3,consume(v.REST),o.push(maybeAddRange({type:i.RestType,expression:parseTypeExpression()},[s,pe]));break}o.push(parseTypeExpression()),we!==v.RBRACK&&expect(v.COMMA)}return expect(v.RBRACK),maybeAddRange({type:i.ArrayType,elements:o},[_,pe])}function parseFieldType(){var o,s,_=pe;return s=_e,o=we===v.NAME||we===v.STRING?(next(),s):we===v.NUMBER?(consume(v.NUMBER),String(s)):void tt.throwError("unexpected token"),we===v.COLON?(consume(v.COLON),maybeAddRange({type:i.FieldType,key:o,value:parseTypeExpression()},[_,pe])):maybeAddRange({type:i.FieldType,key:o,value:null},[_,pe])}function parseRecordType(){var o,s,_=ae-1;if(consume(v.LBRACE,"RecordType should start with {"),o=[],we===v.COMMA)consume(v.COMMA);else for(;we!==v.RBRACE;)o.push(parseFieldType()),we!==v.RBRACE&&expect(v.COMMA);return s=ae,expect(v.RBRACE),maybeAddRange({type:i.RecordType,fields:o},[_,s])}function parseTypeExpressionList(){var i=[];for(i.push(parseTop());we===v.COMMA;)consume(v.COMMA),i.push(parseTop());return i}function parseTypeName(){var o,s,_,$,et=ae-_e.length;return $=ae-(_=_e).length,expect(v.NAME),we!==v.COLON||"module"!==_&&"external"!==_&&"event"!==_||(consume(v.COLON),_+=":"+_e,expect(v.NAME)),o=maybeAddRange({type:i.NameExpression,name:_},[$,pe]),we===v.DOT_LT||we===v.LT?(next(),s=parseTypeExpressionList(),expect(v.GT),maybeAddRange({type:i.TypeApplication,expression:o,applications:s},[et,pe])):o}function parseParametersType(){for(var o,s,_,$=[],_e=!1,et=!1,nt=ae-3;we!==v.RPAREN;)we===v.REST&&(consume(v.REST),et=!0),s=pe,(o=parseTypeExpression()).type===i.NameExpression&&we===v.COLON&&(_=pe-o.name.length,consume(v.COLON),o=maybeAddRange({type:i.ParameterType,name:o.name,expression:parseTypeExpression()},[_,pe])),we===v.EQUAL?(consume(v.EQUAL),o=maybeAddRange({type:i.OptionalType,expression:o},[s,pe]),_e=!0):_e&&tt.throwError("unexpected token"),et&&(o=maybeAddRange({type:i.RestType,expression:o},[nt,pe])),$.push(o),we!==v.RPAREN&&expect(v.COMMA);return $}function parseFunctionType(){var o,s,_,$,et,nt=ae-_e.length;return tt.assert(we===v.NAME&&"function"===_e,"FunctionType should start with 'function'"),consume(v.NAME),expect(v.LPAREN),o=!1,_=[],s=null,we!==v.RPAREN&&(we!==v.NAME||"this"!==_e&&"new"!==_e?_=parseParametersType():(o="new"===_e,consume(v.NAME),expect(v.COLON),s=parseTypeName(),we===v.COMMA&&(consume(v.COMMA),_=parseParametersType()))),expect(v.RPAREN),$=null,we===v.COLON&&(consume(v.COLON,"ResultType should start with :"),$=we===v.NAME&&"void"===_e?(consume(v.NAME),{type:i.VoidLiteral}):parseTypeExpression()),et=maybeAddRange({type:i.FunctionType,params:_,result:$},[nt,pe]),s&&(et.this=s,o&&(et.new=!0)),et}function parseBasicTypeExpression(){var o,s;switch(we){case v.STAR:return consume(v.STAR),maybeAddRange({type:i.AllLiteral},[pe-1,pe]);case v.LPAREN:return parseUnionType();case v.LBRACK:return parseArrayType();case v.LBRACE:return parseRecordType();case v.NAME:if(s=ae-_e.length,"null"===_e)return consume(v.NAME),maybeAddRange({type:i.NullLiteral},[s,pe]);if("undefined"===_e)return consume(v.NAME),maybeAddRange({type:i.UndefinedLiteral},[s,pe]);if("true"===_e||"false"===_e)return consume(v.NAME),maybeAddRange({type:i.BooleanLiteralType,value:"true"===_e},[s,pe]);if(o=Context.save(),"function"===_e)try{return parseFunctionType()}catch(i){o.restore()}return parseTypeName();case v.STRING:return next(),maybeAddRange({type:i.StringLiteralType,value:_e},[pe-_e.length-2,pe]);case v.NUMBER:return next(),maybeAddRange({type:i.NumericLiteralType,value:_e},[pe-String(_e).length,pe]);default:tt.throwError("unexpected token")}}function parseTypeExpression(){var o,s;return we===v.QUESTION?(s=ae-1,consume(v.QUESTION),we===v.COMMA||we===v.EQUAL||we===v.RBRACE||we===v.RPAREN||we===v.PIPE||we===v.EOF||we===v.RBRACK||we===v.GT?maybeAddRange({type:i.NullableLiteral},[s,pe]):maybeAddRange({type:i.NullableType,expression:parseBasicTypeExpression(),prefix:!0},[s,pe])):we===v.BANG?(s=ae-1,consume(v.BANG),maybeAddRange({type:i.NonNullableType,expression:parseBasicTypeExpression(),prefix:!0},[s,pe])):(s=pe,o=parseBasicTypeExpression(),we===v.BANG?(consume(v.BANG),maybeAddRange({type:i.NonNullableType,expression:o,prefix:!1},[s,pe])):we===v.QUESTION?(consume(v.QUESTION),maybeAddRange({type:i.NullableType,expression:o,prefix:!1},[s,pe])):we===v.LBRACK?(consume(v.LBRACK),expect(v.RBRACK,"expected an array-style type declaration ("+_e+"[])"),maybeAddRange({type:i.TypeApplication,expression:maybeAddRange({type:i.NameExpression,name:"Array"},[s,pe]),applications:[o]},[s,pe])):o)}function parseTop(){var o,s;if(o=parseTypeExpression(),we!==v.PIPE)return o;for(s=[o],consume(v.PIPE);s.push(parseTypeExpression()),we===v.PIPE;)consume(v.PIPE);return maybeAddRange({type:i.UnionType,elements:s},[0,ae])}function parseTopParamType(){var o;return we===v.REST?(consume(v.REST),maybeAddRange({type:i.RestType,expression:parseTop()},[0,ae])):(o=parseTop(),we===v.EQUAL?(consume(v.EQUAL),maybeAddRange({type:i.OptionalType,expression:o},[0,ae])):o)}function stringifyImpl(o,s,v){var _,$,ae;switch(o.type){case i.NullableLiteral:_="?";break;case i.AllLiteral:_="*";break;case i.NullLiteral:_="null";break;case i.UndefinedLiteral:_="undefined";break;case i.VoidLiteral:_="void";break;case i.UnionType:for(_=v?"":"(",$=0,ae=o.elements.length;$=6.0.0"},"directories":{"lib":"./lib"},"files":["lib"],"maintainers":[{"name":"Nicholas C. Zakas","email":"nicholas+npm@nczconsulting.com","web":"https://www.nczonline.net"},{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","web":"https://github.com/Constellation"}],"repository":"eslint/doctrine","devDependencies":{"coveralls":"^3.0.1","dateformat":"^1.0.11","eslint":"^1.10.3","eslint-release":"^1.0.0","linefix":"^0.1.1","mocha":"^3.4.2","npm-license":"^0.3.1","nyc":"^10.3.2","semver":"^5.0.3","shelljs":"^0.5.3","shelljs-nodecli":"^0.1.1","should":"^5.0.1"},"license":"Apache-2.0","scripts":{"pretest":"npm run lint","test":"nyc mocha","coveralls":"nyc report --reporter=text-lcov | coveralls","lint":"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},"dependencies":{"esutils":"^2.0.2"}}')},function(i,o,s){"use strict";(function(o){var v=s(66);function compare(i,o){if(i===o)return 0;for(var s=i.length,v=o.length,_=0,$=Math.min(s,v);_<$;++_)if(i[_]!==o[_]){s=i[_],v=o[_];break}return s=0;_e--)if(tt[_e]!==nt[_e])return!1;for(_e=tt.length-1;_e>=0;_e--)if(!_deepEqual(i[we=tt[_e]],o[we],s,v))return!1;return!0}function expectedException(i,o){if(!i||!o)return!1;if("[object RegExp]"==Object.prototype.toString.call(o))return o.test(i);try{if(i instanceof o)return!0}catch(i){}return!Error.isPrototypeOf(o)&&!0===o.call({},i)}function _tryBlock(i){var o;try{i()}catch(i){o=i}return o}function _throws(i,o,s,v){var $;if("function"!=typeof o)throw new TypeError('"block" argument must be a function');"string"==typeof s&&(v=s,s=null),$=_tryBlock(o),v=(s&&s.name?" ("+s.name+").":".")+(v?" "+v:"."),i&&!$&&fail($,s,"Missing expected exception"+v);var ae="string"==typeof v,pe=!i&&$&&!s;if((!i&&_.isError($)&&ae&&expectedException($,s)||pe)&&fail($,s,"Got unwanted exception"+v),i&&$&&s&&!expectedException($,s)||!i&&$)throw $}we.AssertionError=function AssertionError(i){this.name="AssertionError",this.actual=i.actual,this.expected=i.expected,this.operator=i.operator,i.message?(this.message=i.message,this.generatedMessage=!1):(this.message=getMessage(this),this.generatedMessage=!0);var o=i.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,o);else{var s=new Error;if(s.stack){var v=s.stack,_=getName(o),$=v.indexOf("\n"+_);if($>=0){var ae=v.indexOf("\n",$+1);v=v.substring(ae+1)}this.stack=v}}},_.inherits(we.AssertionError,Error),we.fail=fail,we.ok=ok,we.equal=function equal(i,o,s){i!=o&&fail(i,o,s,"==",we.equal)},we.notEqual=function notEqual(i,o,s){i==o&&fail(i,o,s,"!=",we.notEqual)},we.deepEqual=function deepEqual(i,o,s){_deepEqual(i,o,!1)||fail(i,o,s,"deepEqual",we.deepEqual)},we.deepStrictEqual=function deepStrictEqual(i,o,s){_deepEqual(i,o,!0)||fail(i,o,s,"deepStrictEqual",we.deepStrictEqual)},we.notDeepEqual=function notDeepEqual(i,o,s){_deepEqual(i,o,!1)&&fail(i,o,s,"notDeepEqual",we.notDeepEqual)},we.notDeepStrictEqual=function notDeepStrictEqual(i,o,s){_deepEqual(i,o,!0)&&fail(i,o,s,"notDeepStrictEqual",notDeepStrictEqual)},we.strictEqual=function strictEqual(i,o,s){i!==o&&fail(i,o,s,"===",we.strictEqual)},we.notStrictEqual=function notStrictEqual(i,o,s){i===o&&fail(i,o,s,"!==",we.notStrictEqual)},we.throws=function(i,o,s){_throws(!0,i,o,s)},we.doesNotThrow=function(i,o,s){_throws(!1,i,o,s)},we.ifError=function(i){if(i)throw i},we.strict=v((function strict(i,o){i||fail(i,!0,o,"==",strict)}),we,{equal:we.strictEqual,deepEqual:we.deepStrictEqual,notEqual:we.notStrictEqual,notDeepEqual:we.notDeepStrictEqual}),we.strict.strict=we.strict;var et=Object.keys||function(i){var o=[];for(var s in i)$.call(i,s)&&o.push(s);return o}}).call(this,s(23))},function(i,o,s){(function(i){var v=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(i){for(var o=Object.keys(i),s={},v=0;v=$)return i;switch(i){case"%s":return String(v[s++]);case"%d":return Number(v[s++]);case"%j":try{return JSON.stringify(v[s++])}catch(i){return"[Circular]"}default:return i}})),pe=v[s];s<$;pe=v[++s])isNull(pe)||!isObject(pe)?ae+=" "+pe:ae+=" "+inspect(pe);return ae},o.deprecate=function(s,v){if(void 0!==i&&!0===i.noDeprecation)return s;if(void 0===i)return function(){return o.deprecate(s,v).apply(this,arguments)};var _=!1;return function deprecated(){if(!_){if(i.throwDeprecation)throw new Error(v);i.traceDeprecation?console.trace(v):console.error(v),_=!0}return s.apply(this,arguments)}};var $,ae={};function inspect(i,s){var v={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(v.depth=arguments[2]),arguments.length>=4&&(v.colors=arguments[3]),isBoolean(s)?v.showHidden=s:s&&o._extend(v,s),isUndefined(v.showHidden)&&(v.showHidden=!1),isUndefined(v.depth)&&(v.depth=2),isUndefined(v.colors)&&(v.colors=!1),isUndefined(v.customInspect)&&(v.customInspect=!0),v.colors&&(v.stylize=stylizeWithColor),formatValue(v,i,v.depth)}function stylizeWithColor(i,o){var s=inspect.styles[o];return s?"["+inspect.colors[s][0]+"m"+i+"["+inspect.colors[s][1]+"m":i}function stylizeNoColor(i,o){return i}function arrayToHash(i){var o={};return i.forEach((function(i,s){o[i]=!0})),o}function formatValue(i,s,v){if(i.customInspect&&s&&isFunction(s.inspect)&&s.inspect!==o.inspect&&(!s.constructor||s.constructor.prototype!==s)){var _=s.inspect(v,i);return isString(_)||(_=formatValue(i,_,v)),_}var $=formatPrimitive(i,s);if($)return $;var ae=Object.keys(s),pe=arrayToHash(ae);if(i.showHidden&&(ae=Object.getOwnPropertyNames(s)),isError(s)&&(ae.indexOf("message")>=0||ae.indexOf("description")>=0))return formatError(s);if(0===ae.length){if(isFunction(s)){var we=s.name?": "+s.name:"";return i.stylize("[Function"+we+"]","special")}if(isRegExp(s))return i.stylize(RegExp.prototype.toString.call(s),"regexp");if(isDate(s))return i.stylize(Date.prototype.toString.call(s),"date");if(isError(s))return formatError(s)}var _e,et="",tt=!1,nt=["{","}"];(isArray(s)&&(tt=!0,nt=["[","]"]),isFunction(s))&&(et=" [Function"+(s.name?": "+s.name:"")+"]");return isRegExp(s)&&(et=" "+RegExp.prototype.toString.call(s)),isDate(s)&&(et=" "+Date.prototype.toUTCString.call(s)),isError(s)&&(et=" "+formatError(s)),0!==ae.length||tt&&0!=s.length?v<0?isRegExp(s)?i.stylize(RegExp.prototype.toString.call(s),"regexp"):i.stylize("[Object]","special"):(i.seen.push(s),_e=tt?formatArray(i,s,v,pe,ae):ae.map((function(o){return formatProperty(i,s,v,pe,o,tt)})),i.seen.pop(),reduceToSingleString(_e,et,nt)):nt[0]+et+nt[1]}function formatPrimitive(i,o){if(isUndefined(o))return i.stylize("undefined","undefined");if(isString(o)){var s="'"+JSON.stringify(o).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return i.stylize(s,"string")}return isNumber(o)?i.stylize(""+o,"number"):isBoolean(o)?i.stylize(""+o,"boolean"):isNull(o)?i.stylize("null","null"):void 0}function formatError(i){return"["+Error.prototype.toString.call(i)+"]"}function formatArray(i,o,s,v,_){for(var $=[],ae=0,pe=o.length;ae-1&&(pe=$?pe.split("\n").map((function(i){return" "+i})).join("\n").substr(2):"\n"+pe.split("\n").map((function(i){return" "+i})).join("\n")):pe=i.stylize("[Circular]","special")),isUndefined(ae)){if($&&_.match(/^\d+$/))return pe;(ae=JSON.stringify(""+_)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=i.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=i.stylize(ae,"string"))}return ae+": "+pe}function reduceToSingleString(i,o,s){return i.reduce((function(i,o){return o.indexOf("\n")>=0&&0,i+o.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?s[0]+(""===o?"":o+"\n ")+" "+i.join(",\n ")+" "+s[1]:s[0]+o+" "+i.join(", ")+" "+s[1]}function isArray(i){return Array.isArray(i)}function isBoolean(i){return"boolean"==typeof i}function isNull(i){return null===i}function isNumber(i){return"number"==typeof i}function isString(i){return"string"==typeof i}function isUndefined(i){return void 0===i}function isRegExp(i){return isObject(i)&&"[object RegExp]"===objectToString(i)}function isObject(i){return"object"==typeof i&&null!==i}function isDate(i){return isObject(i)&&"[object Date]"===objectToString(i)}function isError(i){return isObject(i)&&("[object Error]"===objectToString(i)||i instanceof Error)}function isFunction(i){return"function"==typeof i}function objectToString(i){return Object.prototype.toString.call(i)}function pad(i){return i<10?"0"+i.toString(10):i.toString(10)}o.debuglog=function(s){if(isUndefined($)&&($=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).NODE_DEBUG||""),s=s.toUpperCase(),!ae[s])if(new RegExp("\\b"+s+"\\b","i").test($)){var v=i.pid;ae[s]=function(){var i=o.format.apply(o,arguments);console.error("%s %d: %s",s,v,i)}}else ae[s]=function(){};return ae[s]},o.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.isArray=isArray,o.isBoolean=isBoolean,o.isNull=isNull,o.isNullOrUndefined=function isNullOrUndefined(i){return null==i},o.isNumber=isNumber,o.isString=isString,o.isSymbol=function isSymbol(i){return"symbol"==typeof i},o.isUndefined=isUndefined,o.isRegExp=isRegExp,o.isObject=isObject,o.isDate=isDate,o.isError=isError,o.isFunction=isFunction,o.isPrimitive=function isPrimitive(i){return null===i||"boolean"==typeof i||"number"==typeof i||"string"==typeof i||"symbol"==typeof i||void 0===i},o.isBuffer=s(355);var pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(i,o){return Object.prototype.hasOwnProperty.call(i,o)}o.log=function(){var i,s;console.log("%s - %s",(i=new Date,s=[pad(i.getHours()),pad(i.getMinutes()),pad(i.getSeconds())].join(":"),[i.getDate(),pe[i.getMonth()],s].join(" ")),o.format.apply(o,arguments))},o.inherits=s(356),o._extend=function(i,o){if(!o||!isObject(o))return i;for(var s=Object.keys(o),v=s.length;v--;)i[s[v]]=o[s[v]];return i};var we="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(i,o){if(!i){var s=new Error("Promise was rejected with a falsy value");s.reason=i,i=s}return o(i)}o.promisify=function promisify(i){if("function"!=typeof i)throw new TypeError('The "original" argument must be of type Function');if(we&&i[we]){var o;if("function"!=typeof(o=i[we]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(o,we,{value:o,enumerable:!1,writable:!1,configurable:!0}),o}function o(){for(var o,s,v=new Promise((function(i,v){o=i,s=v})),_=[],$=0;$",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},function(i,o,s){"use strict";(function(i){var v=s(400),_=s(401),$=s(402);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(i,o){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|i}function byteLength(i,o){if(Buffer.isBuffer(i))return i.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(i)||i instanceof ArrayBuffer))return i.byteLength;"string"!=typeof i&&(i=""+i);var s=i.length;if(0===s)return 0;for(var v=!1;;)switch(o){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return utf8ToBytes(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*s;case"hex":return s>>>1;case"base64":return base64ToBytes(i).length;default:if(v)return utf8ToBytes(i).length;o=(""+o).toLowerCase(),v=!0}}function slowToString(i,o,s){var v=!1;if((void 0===o||o<0)&&(o=0),o>this.length)return"";if((void 0===s||s>this.length)&&(s=this.length),s<=0)return"";if((s>>>=0)<=(o>>>=0))return"";for(i||(i="utf8");;)switch(i){case"hex":return hexSlice(this,o,s);case"utf8":case"utf-8":return utf8Slice(this,o,s);case"ascii":return asciiSlice(this,o,s);case"latin1":case"binary":return latin1Slice(this,o,s);case"base64":return base64Slice(this,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,o,s);default:if(v)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),v=!0}}function swap(i,o,s){var v=i[o];i[o]=i[s],i[s]=v}function bidirectionalIndexOf(i,o,s,v,_){if(0===i.length)return-1;if("string"==typeof s?(v=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,isNaN(s)&&(s=_?0:i.length-1),s<0&&(s=i.length+s),s>=i.length){if(_)return-1;s=i.length-1}else if(s<0){if(!_)return-1;s=0}if("string"==typeof o&&(o=Buffer.from(o,v)),Buffer.isBuffer(o))return 0===o.length?-1:arrayIndexOf(i,o,s,v,_);if("number"==typeof o)return o&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?_?Uint8Array.prototype.indexOf.call(i,o,s):Uint8Array.prototype.lastIndexOf.call(i,o,s):arrayIndexOf(i,[o],s,v,_);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(i,o,s,v,_){var $,ae=1,pe=i.length,we=o.length;if(void 0!==v&&("ucs2"===(v=String(v).toLowerCase())||"ucs-2"===v||"utf16le"===v||"utf-16le"===v)){if(i.length<2||o.length<2)return-1;ae=2,pe/=2,we/=2,s/=2}function read(i,o){return 1===ae?i[o]:i.readUInt16BE(o*ae)}if(_){var _e=-1;for($=s;$pe&&(s=pe-we),$=s;$>=0;$--){for(var et=!0,tt=0;tt_&&(v=_):v=_;var $=o.length;if($%2!=0)throw new TypeError("Invalid hex string");v>$/2&&(v=$/2);for(var ae=0;ae239?4:_e>223?3:_e>191?2:1;if(_+tt<=s)switch(tt){case 1:_e<128&&(et=_e);break;case 2:128==(192&($=i[_+1]))&&(we=(31&_e)<<6|63&$)>127&&(et=we);break;case 3:$=i[_+1],ae=i[_+2],128==(192&$)&&128==(192&ae)&&(we=(15&_e)<<12|(63&$)<<6|63&ae)>2047&&(we<55296||we>57343)&&(et=we);break;case 4:$=i[_+1],ae=i[_+2],pe=i[_+3],128==(192&$)&&128==(192&ae)&&128==(192&pe)&&(we=(15&_e)<<18|(63&$)<<12|(63&ae)<<6|63&pe)>65535&&we<1114112&&(et=we)}null===et?(et=65533,tt=1):et>65535&&(et-=65536,v.push(et>>>10&1023|55296),et=56320|1023&et),v.push(et),_+=tt}return decodeCodePointsArray(v)}o.Buffer=Buffer,o.SlowBuffer=function SlowBuffer(i){+i!=i&&(i=0);return Buffer.alloc(+i)},o.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==i.TYPED_ARRAY_SUPPORT?i.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var i=new Uint8Array(1);return i.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===i.foo()&&"function"==typeof i.subarray&&0===i.subarray(1,1).byteLength}catch(i){return!1}}(),o.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(i){return i.__proto__=Buffer.prototype,i},Buffer.from=function(i,o,s){return from(null,i,o,s)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(i,o,s){return alloc(null,i,o,s)},Buffer.allocUnsafe=function(i){return allocUnsafe(null,i)},Buffer.allocUnsafeSlow=function(i){return allocUnsafe(null,i)},Buffer.isBuffer=function isBuffer(i){return!(null==i||!i._isBuffer)},Buffer.compare=function compare(i,o){if(!Buffer.isBuffer(i)||!Buffer.isBuffer(o))throw new TypeError("Arguments must be Buffers");if(i===o)return 0;for(var s=i.length,v=o.length,_=0,$=Math.min(s,v);_<$;++_)if(i[_]!==o[_]){s=i[_],v=o[_];break}return s0&&(i=this.toString("hex",0,s).match(/.{2}/g).join(" "),this.length>s&&(i+=" ... ")),""},Buffer.prototype.compare=function compare(i,o,s,v,_){if(!Buffer.isBuffer(i))throw new TypeError("Argument must be a Buffer");if(void 0===o&&(o=0),void 0===s&&(s=i?i.length:0),void 0===v&&(v=0),void 0===_&&(_=this.length),o<0||s>i.length||v<0||_>this.length)throw new RangeError("out of range index");if(v>=_&&o>=s)return 0;if(v>=_)return-1;if(o>=s)return 1;if(this===i)return 0;for(var $=(_>>>=0)-(v>>>=0),ae=(s>>>=0)-(o>>>=0),pe=Math.min($,ae),we=this.slice(v,_),_e=i.slice(o,s),et=0;et_)&&(s=_),i.length>0&&(s<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var $=!1;;)switch(v){case"hex":return hexWrite(this,i,o,s);case"utf8":case"utf-8":return utf8Write(this,i,o,s);case"ascii":return asciiWrite(this,i,o,s);case"latin1":case"binary":return latin1Write(this,i,o,s);case"base64":return base64Write(this,i,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,i,o,s);default:if($)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),$=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ae=4096;function decodeCodePointsArray(i){var o=i.length;if(o<=ae)return String.fromCharCode.apply(String,i);for(var s="",v=0;vv)&&(s=v);for(var _="",$=o;$s)throw new RangeError("Trying to access beyond buffer length")}function checkInt(i,o,s,v,_,$){if(!Buffer.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>_||o<$)throw new RangeError('"value" argument is out of bounds');if(s+v>i.length)throw new RangeError("Index out of range")}function objectWriteUInt16(i,o,s,v){o<0&&(o=65535+o+1);for(var _=0,$=Math.min(i.length-s,2);_<$;++_)i[s+_]=(o&255<<8*(v?_:1-_))>>>8*(v?_:1-_)}function objectWriteUInt32(i,o,s,v){o<0&&(o=4294967295+o+1);for(var _=0,$=Math.min(i.length-s,4);_<$;++_)i[s+_]=o>>>8*(v?_:3-_)&255}function checkIEEE754(i,o,s,v,_,$){if(s+v>i.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function writeFloat(i,o,s,v,$){return $||checkIEEE754(i,0,s,4),_.write(i,o,s,v,23,4),s+4}function writeDouble(i,o,s,v,$){return $||checkIEEE754(i,0,s,8),_.write(i,o,s,v,52,8),s+8}Buffer.prototype.slice=function slice(i,o){var s,v=this.length;if((i=~~i)<0?(i+=v)<0&&(i=0):i>v&&(i=v),(o=void 0===o?v:~~o)<0?(o+=v)<0&&(o=0):o>v&&(o=v),o0&&(_*=256);)v+=this[i+--o]*_;return v},Buffer.prototype.readUInt8=function readUInt8(i,o){return o||checkOffset(i,1,this.length),this[i]},Buffer.prototype.readUInt16LE=function readUInt16LE(i,o){return o||checkOffset(i,2,this.length),this[i]|this[i+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(i,o){return o||checkOffset(i,2,this.length),this[i]<<8|this[i+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(i,o){return o||checkOffset(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+16777216*this[i+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(i,o){return o||checkOffset(i,4,this.length),16777216*this[i]+(this[i+1]<<16|this[i+2]<<8|this[i+3])},Buffer.prototype.readIntLE=function readIntLE(i,o,s){i|=0,o|=0,s||checkOffset(i,o,this.length);for(var v=this[i],_=1,$=0;++$=(_*=128)&&(v-=Math.pow(2,8*o)),v},Buffer.prototype.readIntBE=function readIntBE(i,o,s){i|=0,o|=0,s||checkOffset(i,o,this.length);for(var v=o,_=1,$=this[i+--v];v>0&&(_*=256);)$+=this[i+--v]*_;return $>=(_*=128)&&($-=Math.pow(2,8*o)),$},Buffer.prototype.readInt8=function readInt8(i,o){return o||checkOffset(i,1,this.length),128&this[i]?-1*(255-this[i]+1):this[i]},Buffer.prototype.readInt16LE=function readInt16LE(i,o){o||checkOffset(i,2,this.length);var s=this[i]|this[i+1]<<8;return 32768&s?4294901760|s:s},Buffer.prototype.readInt16BE=function readInt16BE(i,o){o||checkOffset(i,2,this.length);var s=this[i+1]|this[i]<<8;return 32768&s?4294901760|s:s},Buffer.prototype.readInt32LE=function readInt32LE(i,o){return o||checkOffset(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(i,o){return o||checkOffset(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},Buffer.prototype.readFloatLE=function readFloatLE(i,o){return o||checkOffset(i,4,this.length),_.read(this,i,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(i,o){return o||checkOffset(i,4,this.length),_.read(this,i,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(i,o){return o||checkOffset(i,8,this.length),_.read(this,i,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(i,o){return o||checkOffset(i,8,this.length),_.read(this,i,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(i,o,s,v){(i=+i,o|=0,s|=0,v)||checkInt(this,i,o,s,Math.pow(2,8*s)-1,0);var _=1,$=0;for(this[o]=255&i;++$=0&&($*=256);)this[o+_]=i/$&255;return o+s},Buffer.prototype.writeUInt8=function writeUInt8(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(i=Math.floor(i)),this[o]=255&i,o+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=255&i,this[o+1]=i>>>8):objectWriteUInt16(this,i,o,!0),o+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>8,this[o+1]=255&i):objectWriteUInt16(this,i,o,!1),o+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o+3]=i>>>24,this[o+2]=i>>>16,this[o+1]=i>>>8,this[o]=255&i):objectWriteUInt32(this,i,o,!0),o+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>24,this[o+1]=i>>>16,this[o+2]=i>>>8,this[o+3]=255&i):objectWriteUInt32(this,i,o,!1),o+4},Buffer.prototype.writeIntLE=function writeIntLE(i,o,s,v){if(i=+i,o|=0,!v){var _=Math.pow(2,8*s-1);checkInt(this,i,o,s,_-1,-_)}var $=0,ae=1,pe=0;for(this[o]=255&i;++$>0)-pe&255;return o+s},Buffer.prototype.writeIntBE=function writeIntBE(i,o,s,v){if(i=+i,o|=0,!v){var _=Math.pow(2,8*s-1);checkInt(this,i,o,s,_-1,-_)}var $=s-1,ae=1,pe=0;for(this[o+$]=255&i;--$>=0&&(ae*=256);)i<0&&0===pe&&0!==this[o+$+1]&&(pe=1),this[o+$]=(i/ae>>0)-pe&255;return o+s},Buffer.prototype.writeInt8=function writeInt8(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(i=Math.floor(i)),i<0&&(i=255+i+1),this[o]=255&i,o+1},Buffer.prototype.writeInt16LE=function writeInt16LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=255&i,this[o+1]=i>>>8):objectWriteUInt16(this,i,o,!0),o+2},Buffer.prototype.writeInt16BE=function writeInt16BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>8,this[o+1]=255&i):objectWriteUInt16(this,i,o,!1),o+2},Buffer.prototype.writeInt32LE=function writeInt32LE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=255&i,this[o+1]=i>>>8,this[o+2]=i>>>16,this[o+3]=i>>>24):objectWriteUInt32(this,i,o,!0),o+4},Buffer.prototype.writeInt32BE=function writeInt32BE(i,o,s){return i=+i,o|=0,s||checkInt(this,i,o,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),Buffer.TYPED_ARRAY_SUPPORT?(this[o]=i>>>24,this[o+1]=i>>>16,this[o+2]=i>>>8,this[o+3]=255&i):objectWriteUInt32(this,i,o,!1),o+4},Buffer.prototype.writeFloatLE=function writeFloatLE(i,o,s){return writeFloat(this,i,o,!0,s)},Buffer.prototype.writeFloatBE=function writeFloatBE(i,o,s){return writeFloat(this,i,o,!1,s)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(i,o,s){return writeDouble(this,i,o,!0,s)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(i,o,s){return writeDouble(this,i,o,!1,s)},Buffer.prototype.copy=function copy(i,o,s,v){if(s||(s=0),v||0===v||(v=this.length),o>=i.length&&(o=i.length),o||(o=0),v>0&&v=this.length)throw new RangeError("sourceStart out of bounds");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),i.length-o=0;--_)i[_+o]=this[_+s];else if($<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(_=0;_<$;++_)i[_+o]=this[_+s];else Uint8Array.prototype.set.call(i,this.subarray(s,s+$),o);return $},Buffer.prototype.fill=function fill(i,o,s,v){if("string"==typeof i){if("string"==typeof o?(v=o,o=0,s=this.length):"string"==typeof s&&(v=s,s=this.length),1===i.length){var _=i.charCodeAt(0);_<256&&(i=_)}if(void 0!==v&&"string"!=typeof v)throw new TypeError("encoding must be a string");if("string"==typeof v&&!Buffer.isEncoding(v))throw new TypeError("Unknown encoding: "+v)}else"number"==typeof i&&(i&=255);if(o<0||this.length>>=0,s=void 0===s?this.length:s>>>0,i||(i=0),"number"==typeof i)for($=o;$55295&&s<57344){if(!_){if(s>56319){(o-=3)>-1&&$.push(239,191,189);continue}if(ae+1===v){(o-=3)>-1&&$.push(239,191,189);continue}_=s;continue}if(s<56320){(o-=3)>-1&&$.push(239,191,189),_=s;continue}s=65536+(_-55296<<10|s-56320)}else _&&(o-=3)>-1&&$.push(239,191,189);if(_=null,s<128){if((o-=1)<0)break;$.push(s)}else if(s<2048){if((o-=2)<0)break;$.push(s>>6|192,63&s|128)}else if(s<65536){if((o-=3)<0)break;$.push(s>>12|224,s>>6&63|128,63&s|128)}else{if(!(s<1114112))throw new Error("Invalid code point");if((o-=4)<0)break;$.push(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}}return $}function asciiToBytes(i){for(var o=[],s=0;s>8,_=s%256,$.push(_),$.push(v);return $}function base64ToBytes(i){return v.toByteArray(base64clean(i))}function blitBuffer(i,o,s,v){for(var _=0;_=o.length||_>=i.length);++_)o[_+s]=i[_];return _}}).call(this,s(23))},function(i,o,s){"use strict";o.byteLength=function byteLength(i){var o=getLens(i),s=o[0],v=o[1];return 3*(s+v)/4-v},o.toByteArray=function toByteArray(i){var o,s,v=getLens(i),ae=v[0],pe=v[1],we=new $(_byteLength(i,ae,pe)),_e=0,et=pe>0?ae-4:ae;for(s=0;s>16&255,we[_e++]=o>>8&255,we[_e++]=255&o;2===pe&&(o=_[i.charCodeAt(s)]<<2|_[i.charCodeAt(s+1)]>>4,we[_e++]=255&o);1===pe&&(o=_[i.charCodeAt(s)]<<10|_[i.charCodeAt(s+1)]<<4|_[i.charCodeAt(s+2)]>>2,we[_e++]=o>>8&255,we[_e++]=255&o);return we},o.fromByteArray=function fromByteArray(i){for(var o,s=i.length,_=s%3,$=[],ae=16383,pe=0,we=s-_;pewe?we:pe+ae));1===_?(o=i[s-1],$.push(v[o>>2]+v[o<<4&63]+"==")):2===_&&(o=(i[s-2]<<8)+i[s-1],$.push(v[o>>10]+v[o>>4&63]+v[o<<2&63]+"="));return $.join("")};for(var v=[],_=[],$="undefined"!=typeof Uint8Array?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pe=0;pe<64;++pe)v[pe]=ae[pe],_[ae.charCodeAt(pe)]=pe;function getLens(i){var o=i.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=i.indexOf("=");return-1===s&&(s=o),[s,s===o?0:4-s%4]}function _byteLength(i,o,s){return 3*(o+s)/4-s}function encodeChunk(i,o,s){for(var _,$,ae=[],pe=o;pe>18&63]+v[$>>12&63]+v[$>>6&63]+v[63&$]);return ae.join("")}_["-".charCodeAt(0)]=62,_["_".charCodeAt(0)]=63},function(i,o){o.read=function(i,o,s,v,_){var $,ae,pe=8*_-v-1,we=(1<>1,et=-7,tt=s?_-1:0,nt=s?-1:1,rt=i[o+tt];for(tt+=nt,$=rt&(1<<-et)-1,rt>>=-et,et+=pe;et>0;$=256*$+i[o+tt],tt+=nt,et-=8);for(ae=$&(1<<-et)-1,$>>=-et,et+=v;et>0;ae=256*ae+i[o+tt],tt+=nt,et-=8);if(0===$)$=1-_e;else{if($===we)return ae?NaN:1/0*(rt?-1:1);ae+=Math.pow(2,v),$-=_e}return(rt?-1:1)*ae*Math.pow(2,$-v)},o.write=function(i,o,s,v,_,$){var ae,pe,we,_e=8*$-_-1,et=(1<<_e)-1,tt=et>>1,nt=23===_?Math.pow(2,-24)-Math.pow(2,-77):0,rt=v?0:$-1,it=v?1:-1,ot=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(pe=isNaN(o)?1:0,ae=et):(ae=Math.floor(Math.log(o)/Math.LN2),o*(we=Math.pow(2,-ae))<1&&(ae--,we*=2),(o+=ae+tt>=1?nt/we:nt*Math.pow(2,1-tt))*we>=2&&(ae++,we/=2),ae+tt>=et?(pe=0,ae=et):ae+tt>=1?(pe=(o*we-1)*Math.pow(2,_),ae+=tt):(pe=o*Math.pow(2,tt-1)*Math.pow(2,_),ae=0));_>=8;i[s+rt]=255&pe,rt+=it,pe/=256,_-=8);for(ae=ae<<_|pe,_e+=_;_e>0;i[s+rt]=255&ae,rt+=it,ae/=256,_e-=8);i[s+rt-it]|=128*ot}},function(i,o){var s={}.toString;i.exports=Array.isArray||function(i){return"[object Array]"==s.call(i)}},function(i,o,s){(function(i,v){var _;(function(){"use strict";var $={function:!0,object:!0},ae=$[typeof window]&&window||this,pe=$[typeof o]&&o&&!o.nodeType&&o,we=$[typeof i]&&i&&!i.nodeType,_e=pe&&we&&"object"==typeof v&&v;!_e||_e.global!==_e&&_e.window!==_e&&_e.self!==_e||(ae=_e);var et=Object.prototype.hasOwnProperty;function fromCodePoint(){var i=Number(arguments[0]);if(!isFinite(i)||i<0||i>1114111||Math.floor(i)!=i)throw RangeError("Invalid code point: "+i);if(i<=65535)return String.fromCharCode(i);var o=55296+((i-=65536)>>10),s=i%1024+56320;return String.fromCharCode(o,s)}var tt={};function assertType(i,o){if(-1==o.indexOf("|")){if(i==o)return;throw Error("Invalid node type: "+i+"; expected type: "+o)}if(!(o=et.call(tt,o)?tt[o]:tt[o]=RegExp("^(?:"+o+")$")).test(i))throw Error("Invalid node type: "+i+"; expected types: "+o)}function generate(i){var o=i.type;if(et.call(nt,o))return nt[o](i);throw Error("Invalid node type: "+o)}function generateSequence(i,o){for(var s,v=-1,_=o.length,$="";++v<_;)s=o[v],v+1<_&&"value"==o[v].type&&"null"==o[v].kind&&"value"==o[v+1].type&&"symbol"==o[v+1].kind&&o[v+1].codePoint>=48&&o[v+1].codePoint<=57?$+="\\000":$+=i(s);return $}function generateAtom(i){return assertType(i.type,"anchor|characterClass|characterClassEscape|dot|group|reference|value"),generate(i)}function generateClassAtom(i){return assertType(i.type,"anchor|characterClassEscape|characterClassRange|dot|value"),generate(i)}function generateIdentifier(i){return assertType(i.type,"identifier"),i.value}function generateTerm(i){return assertType(i.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|unicodePropertyEscape|value|dot"),generate(i)}var nt={alternative:function generateAlternative(i){return assertType(i.type,"alternative"),generateSequence(generateTerm,i.body)},anchor:function generateAnchor(i){switch(assertType(i.type,"anchor"),i.kind){case"start":return"^";case"end":return"$";case"boundary":return"\\b";case"not-boundary":return"\\B";default:throw Error("Invalid assertion")}},characterClass:function generateCharacterClass(i){return assertType(i.type,"characterClass"),"["+(i.negative?"^":"")+generateSequence(generateClassAtom,i.body)+"]"},characterClassEscape:function generateCharacterClassEscape(i){return assertType(i.type,"characterClassEscape"),"\\"+i.value},characterClassRange:function generateCharacterClassRange(i){assertType(i.type,"characterClassRange");var o=i.min,s=i.max;if("characterClassRange"==o.type||"characterClassRange"==s.type)throw Error("Invalid character class range");return generateClassAtom(o)+"-"+generateClassAtom(s)},disjunction:function generateDisjunction(i){assertType(i.type,"disjunction");for(var o=i.body,s=-1,v=o.length,_="";++s");break;case"ignore":o+="?:";break;case"lookahead":o+="?=";break;case"negativeLookahead":o+="?!";break;case"lookbehind":o+="?<=";break;case"negativeLookbehind":o+="?";throw new Error("Unknown reference type")},unicodePropertyEscape:function generateUnicodePropertyEscape(i){return assertType(i.type,"unicodePropertyEscape"),"\\"+(i.negative?"P":"p")+"{"+i.value+"}"},value:function generateValue(i){assertType(i.type,"value");var o=i.kind,s=i.codePoint;if("number"!=typeof s)throw new Error("Invalid code point: "+s);switch(o){case"controlLetter":return"\\c"+fromCodePoint(s+64);case"hexadecimalEscape":return"\\x"+("00"+s.toString(16).toUpperCase()).slice(-2);case"identifier":return"\\"+fromCodePoint(s);case"null":return"\\"+s;case"octal":return"\\"+("000"+s.toString(8)).slice(-3);case"singleEscape":switch(s){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r";case 45:return"\\-";default:throw Error("Invalid code point: "+s)}case"symbol":return fromCodePoint(s);case"unicodeEscape":return"\\u"+("0000"+s.toString(16).toUpperCase()).slice(-4);case"unicodeCodePointEscape":return"\\u{"+s.toString(16).toUpperCase()+"}";default:throw Error("Unsupported node kind: "+o)}}},rt={generate:generate};void 0===(_=function(){return rt}.call(o,s,o,i))||(i.exports=_),ae.regjsgen=rt}).call(this)}).call(this,s(60)(i),s(23))},function(i,o,s){var v,_,$,ae;$=String.fromCodePoint||(v=String.fromCharCode,_=Math.floor,function fromCodePoint(){var i,o,s=[],$=-1,ae=arguments.length;if(!ae)return"";for(var pe="";++$1114111||_(we)!=we)throw RangeError("Invalid code point: "+we);we<=65535?s.push(we):(i=55296+((we-=65536)>>10),o=we%1024+56320,s.push(i,o)),($+1==ae||s.length>16384)&&(pe+=v.apply(null,s),s.length=0)}return pe}),ae={parse:function parse(i,o,s){function addRaw(o){return o.raw=i.substring(o.range[0],o.range[1]),o}function updateRawStart(i,o){return i.range[0]=o,addRaw(i)}function createAnchor(i,o){return addRaw({type:"anchor",kind:i,range:[we-o,we]})}function createValue(i,o,s,v){return addRaw({type:"value",kind:i,codePoint:o,range:[s,v]})}function createEscaped(i,o,s,v){return v=v||0,createValue(i,o,we-(s.length+v),we)}function createCharacter(i){var o,s=i[0],v=s.charCodeAt(0);return pe&&1===s.length&&v>=55296&&v<=56319&&(o=lookahead().charCodeAt(0))>=56320&&o<=57343?createValue("symbol",1024*(v-55296)+o-56320+65536,++we-2,we):createValue("symbol",v,we-1,we)}function createDisjunction(i,o,s){return addRaw({type:"disjunction",body:i,range:[o,s]})}function createNamedReference(i){return addRaw({type:"reference",name:i,range:[i.range[0]-3,we]})}function createGroup(i,o,s,v){return addRaw({type:"group",behavior:i,body:o,range:[s,v]})}function createQuantifier(i,o,s,v){return null==v&&(s=we-1,v=we),addRaw({type:"quantifier",min:i,max:o,greedy:!0,body:null,range:[s,v]})}function createAlternative(i,o,s){return addRaw({type:"alternative",body:i,range:[o,s]})}function createCharacterClass(i,o,s,v){return addRaw({type:"characterClass",body:i,negative:o,range:[s,v]})}function createClassRange(i,o,s,v){return i.codePoint>o.codePoint&&bail("invalid range in character class",i.raw+"-"+o.raw,s,v),addRaw({type:"characterClassRange",min:i,max:o,range:[s,v]})}function flattenBody(i){return"alternative"===i.type?i.body:[i]}function incr(o){o=o||1;var s=i.substring(we,we+o);return we+=o||1,s}function skip(i){match(i)||bail("character",i)}function match(o){if(i.indexOf(o,we)===we)return incr(o.length)}function lookahead(){return i[we]}function current(o){return i.indexOf(o,we)===we}function next(o){return i[we+1]===o}function matchReg(o){var s=i.substring(we).match(o);return s&&(s.range=[],s.range[0]=we,incr(s[0].length),s.range[1]=we),s}function parseDisjunction(){var i=[],o=we;for(i.push(parseAlternative());match("|");)i.push(parseAlternative());return 1===i.length?i[0]:createDisjunction(i,o,we)}function parseAlternative(){for(var i,o=[],s=we;i=parseTerm();)o.push(i);return 1===o.length?o[0]:createAlternative(o,s,we)}function parseTerm(){if(we>=i.length||current("|")||current(")"))return null;var o=match("^")?createAnchor("start",1):match("$")?createAnchor("end",1):match("\\b")?createAnchor("boundary",2):match("\\B")?createAnchor("not-boundary",2):parseGroup("(?=","lookahead","(?!","negativeLookahead");if(o)return o;var s,v=parseAtomAndExtendedAtom();return v||(pos_backup=we,(s=parseQuantifier()||!1)&&(we=pos_backup,bail("Expected atom")),!pe&&(res=matchReg(/^{/))?v=createCharacter(res):bail("Expected atom")),(s=parseQuantifier()||!1)?(s.body=flattenBody(v),updateRawStart(s,v.range[0]),s):v}function parseGroup(i,o,s,v){var _=null,$=we;if(match(i))_=o;else{if(!match(s))return!1;_=v}return finishGroup(_,$)}function finishGroup(i,o){var s=parseDisjunction();s||bail("Expected disjunction"),skip(")");var v=createGroup(i,flattenBody(s),o,we);return"normal"==i&&ae&&_++,v}function parseQuantifier(){var i,o,s,v,_=we;return match("*")?o=createQuantifier(0):match("+")?o=createQuantifier(1):match("?")?o=createQuantifier(0,1):(i=matchReg(/^\{([0-9]+)\}/))?o=createQuantifier(s=parseInt(i[1],10),s,i.range[0],i.range[1]):(i=matchReg(/^\{([0-9]+),\}/))?o=createQuantifier(s=parseInt(i[1],10),void 0,i.range[0],i.range[1]):(i=matchReg(/^\{([0-9]+),([0-9]+)\}/))&&((s=parseInt(i[1],10))>(v=parseInt(i[2],10))&&bail("numbers out of order in {} quantifier","",_,we),o=createQuantifier(s,v,i.range[0],i.range[1])),o&&match("?")&&(o.greedy=!1,o.range[1]+=1),o}function parseAtomAndExtendedAtom(){var i;if(i=matchReg(/^[^^$\\.*+?()[\]{}|]/))return createCharacter(i);if(!pe&&(i=matchReg(/^(?:]|})/)))return createCharacter(i);if(match("."))return addRaw({type:"dot",range:[we-1,we]});if(match("\\")){if(!(i=parseAtomEscape())){if(!pe&&"c"==lookahead())return createValue("symbol",92,we-1,we);bail("atomEscape")}return i}if(i=parseCharacterClass())return i;if(s.lookbehind&&(i=parseGroup("(?<=","lookbehind","(?");var v=finishGroup("normal",o.range[0]-3);return v.name=o,v}return parseGroup("(?:","ignore","(","normal")}function parseUnicodeSurrogatePairEscape(i){var o,s;if(pe&&"unicodeEscape"==i.kind&&(o=i.codePoint)>=55296&&o<=56319&¤t("\\")&&next("u")){var v=we;we++;var _=parseClassEscape();"unicodeEscape"==_.kind&&(s=_.codePoint)>=56320&&s<=57343?(i.range[1]=_.range[1],i.codePoint=1024*(o-55296)+s-56320+65536,i.type="value",i.kind="unicodeCodePointEscape",addRaw(i)):we=v}return i}function parseClassEscape(){return parseAtomEscape(!0)}function parseAtomEscape(i){var o,s=we;if(o=parseDecimalEscape()||parseNamedReference())return o;if(i){if(match("b"))return createEscaped("singleEscape",8,"\\b");if(match("B"))bail("\\B not possible inside of CharacterClass","",s);else{if(!pe&&(o=matchReg(/^c([0-9])/)))return createEscaped("controlLetter",o[1]+16,o[1],2);if(!pe&&(o=matchReg(/^c_/)))return createEscaped("controlLetter",31,"_",2)}if(pe&&match("-"))return createEscaped("singleEscape",45,"\\-")}return o=parseCharacterEscape()}function parseDecimalEscape(){var i,o,s;if(i=matchReg(/^(?!0)\d+/)){o=i[0];var $=parseInt(i[0],10);return $<=_?(s=i[0],addRaw({type:"reference",matchIndex:parseInt(s,10),range:[we-1-s.length,we]})):(v.push($),incr(-i[0].length),(i=matchReg(/^[0-7]{1,3}/))?createEscaped("octal",parseInt(i[0],8),i[0],1):updateRawStart(i=createCharacter(matchReg(/^[89]/)),i.range[0]-1))}return(i=matchReg(/^[0-7]{1,3}/))?(o=i[0],/^0{1,3}$/.test(o)?createEscaped("null",0,"0",o.length):createEscaped("octal",parseInt(o,8),o,1)):!!(i=matchReg(/^[dDsSwW]/))&&addRaw({type:"characterClassEscape",value:i[0],range:[we-2,we]})}function parseNamedReference(){if(s.namedGroups&&matchReg(/^k<(?=.*?>)/)){var i=parseIdentifier();return skip(">"),createNamedReference(i)}}function parseRegExpUnicodeEscapeSequence(){var i;return(i=matchReg(/^u([0-9a-fA-F]{4})/))?parseUnicodeSurrogatePairEscape(createEscaped("unicodeEscape",parseInt(i[1],16),i[1],2)):pe&&(i=matchReg(/^u\{([0-9a-fA-F]+)\}/))?createEscaped("unicodeCodePointEscape",parseInt(i[1],16),i[1],4):void 0}function parseCharacterEscape(){var i,o,v,_=we;if(i=matchReg(/^[fnrtv]/)){var $=0;switch(i[0]){case"t":$=9;break;case"n":$=10;break;case"v":$=11;break;case"f":$=12;break;case"r":$=13}return createEscaped("singleEscape",$,"\\"+i[0])}return(i=matchReg(/^c([a-zA-Z])/))?createEscaped("controlLetter",i[1].charCodeAt(0)%32,i[1],2):(i=matchReg(/^x([0-9a-fA-F]{2})/))?createEscaped("hexadecimalEscape",parseInt(i[1],16),i[1],2):(i=parseRegExpUnicodeEscapeSequence())?((!i||i.codePoint>1114111)&&bail("Invalid escape sequence",null,_,we),i):s.unicodePropertyEscape&&pe&&(i=matchReg(/^([pP])\{([^\}]+)\}/))?addRaw({type:"unicodePropertyEscape",negative:"P"===i[1],value:i[2],range:[i.range[0]-1,i.range[1]],raw:i[0]}):(v=lookahead(),pe&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(v)||!pe&&"c"!==v?"k"===v&&s.lookbehind?null:createEscaped("identifier",(o=incr()).charCodeAt(0),o,1):null)}function parseIdentifierAtom(o){var s=lookahead(),v=we;if("\\"===s){incr();var _=parseRegExpUnicodeEscapeSequence();return _&&o(_.codePoint)||bail("Invalid escape sequence",null,v,we),$(_.codePoint)}var ae=s.charCodeAt(0);if(ae>=55296&&ae<=56319){var pe=(s+=i[we+1]).charCodeAt(1);pe>=56320&&pe<=57343&&(ae=1024*(ae-55296)+pe-56320+65536)}if(o(ae))return incr(),ae>65535&&incr(),s}function parseIdentifier(){var i,o=we,s=parseIdentifierAtom(isIdentifierStart);for(s||bail("Invalid identifier");i=parseIdentifierAtom(isIdentifierPart);)s+=i;return addRaw({type:"identifier",value:s,range:[o,we]})}function isIdentifierStart(i){return 36===i||95===i||i>=65&&i<=90||i>=97&&i<=122||i>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test($(i))}function isIdentifierPart(i){return isIdentifierStart(i)||i>=48&&i<=57||i>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test($(i))}function parseCharacterClass(){var i,o=we;return(i=matchReg(/^\[\^/))?(i=parseClassRanges(),skip("]"),createCharacterClass(i,!0,o,we)):match("[")?(i=parseClassRanges(),skip("]"),createCharacterClass(i,!1,o,we)):null}function parseClassRanges(){var i,o;return current("]")?[]:((o=parseClassAtom())||bail("classAtom"),(i=current("]")?[o]:parseHelperClassRanges(o))||bail("nonEmptyClassRanges"),i)}function parseHelperClassRanges(i){var o,s,v,_,$;if(current("-")&&!next("]")){o=i.range[0],$=createCharacter(match("-")),(_=parseClassAtom())||bail("classAtom"),s=we;var ae=parseClassRanges();return ae||bail("classRanges"),"codePoint"in i&&"codePoint"in _?v=[createClassRange(i,_,o,s)]:pe?bail("invalid character class"):v=[i,$,_],"empty"===ae.type?v:v.concat(ae)}return(v=parseNonemptyClassRangesNoDash())||bail("nonEmptyClassRangesNoDash"),[i].concat(v)}function parseNonemptyClassRangesNoDash(){var i=parseClassAtom();return i||bail("classAtom"),current("]")?i:parseHelperClassRanges(i)}function parseClassAtom(){return match("-")?createCharacter("-"):parseClassAtomNoDash()}function parseClassAtomNoDash(){var i;return(i=matchReg(/^[^\\\]-]/))?createCharacter(i[0]):match("\\")?((i=parseClassEscape())||bail("classEscape"),parseUnicodeSurrogatePairEscape(i)):void 0}function bail(o,s,v,_){v=null==v?we:v,_=null==_?v:_;var $=Math.max(0,v-10),ae=Math.min(_+10,i.length),pe=" "+i.substring($,ae),_e=" "+new Array(v-$+1).join(" ")+"^";throw SyntaxError(o+" at position "+v+(s?": "+s:"")+"\n"+pe+"\n"+_e)}s||(s={});var v=[],_=0,ae=!0,pe=-1!==(o||"").indexOf("u"),we=0;""===(i=String(i))&&(i="(?:)");var _e=parseDisjunction();_e.range[1]!==i.length&&bail("Could not parse entire input - got stuck","",_e.range[1]);for(var et=0;et-1?pe[we?o[_e]:_e]:void 0}}},function(i,o,s){var v=s(820),_=s(127),$=s(821),ae=Math.max;i.exports=function findIndex(i,o,s){var pe=null==i?0:i.length;if(!pe)return-1;var we=null==s?0:$(s);return we<0&&(we=ae(pe+we,0)),v(i,_(o,3),we)}},function(i,o){i.exports=function baseFindIndex(i,o,s,v){for(var _=i.length,$=s+(v?1:-1);v?$--:++$<_;)if(o(i[$],$,i))return $;return-1}},function(i,o,s){var v=s(822);i.exports=function toInteger(i){var o=v(i),s=o%1;return o==o?s?o-s:o:0}},function(i,o,s){var v=s(195),_=1/0;i.exports=function toFinite(i){return i?(i=v(i))===_||i===-1/0?17976931348623157e292*(i<0?-1:1):i==i?i:0:0===i?i:0}},function(i,o,s){i.exports={config:{compilerConfig:{objectAssign:"Object.assign",target:{ie:11},transforms:{modules:!1,dangerousTaggedTemplateString:!0,asyncAwait:!1}},tocMode:"expand",mountPointId:"rsg-root",pagePerSection:!1,previewDelay:500,ribbon:void 0,showSidebar:!0,styles:{},theme:{},title:"Testable Webapp Style Guide",version:void 0},welcomeScreen:!1,patterns:void 0,sections:[{name:"User Interface",components:[{filepath:"src/components/ui/interface/achievement/AchievementContainer.tsx",slug:"achievementcontainer",pathLine:"src/components/ui/interface/achievement/AchievementContainer.tsx",module:s(71),props:s(832),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/achievement/AchievementItem.tsx",slug:"achievementitem",pathLine:"src/components/ui/interface/achievement/AchievementItem.tsx",module:s(73),props:s(834),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/achievement/AchievementList.tsx",slug:"achievementlist",pathLine:"src/components/ui/interface/achievement/AchievementList.tsx",module:s(72),props:s(836),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/background/Background.tsx",slug:"background",pathLine:"src/components/ui/interface/background/Background.tsx",module:s(838),props:s(843),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/editor-manager/EditorManager.tsx",slug:"editormanager",pathLine:"src/components/ui/interface/editor-manager/EditorManager.tsx",module:s(74),props:s(846),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/editor/Editor.tsx",slug:"editor",pathLine:"src/components/ui/interface/editor/Editor.tsx",module:s(104),props:s(848),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/guide/Guide.tsx",slug:"guide",pathLine:"src/components/ui/interface/guide/Guide.tsx",module:s(150),props:s(852),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/header/Header.tsx",slug:"header",pathLine:"src/components/ui/interface/header/Header.tsx",module:s(139),props:s(902),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/intro/Intro.tsx",slug:"intro",pathLine:"src/components/ui/interface/intro/Intro.tsx",module:s(145),props:s(907),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/language-selector/LanguageSelector.tsx",slug:"languageselector",pathLine:"src/components/ui/interface/language-selector/LanguageSelector.tsx",module:s(152),props:s(908),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/level/Level.tsx",slug:"level",pathLine:"src/components/ui/interface/level/Level.tsx",module:s(77),props:s(909),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/loading/Loading.tsx",slug:"loading",pathLine:"src/components/ui/interface/loading/Loading.tsx",module:s(83),props:s(911),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/modal/Modal.tsx",slug:"modal",pathLine:"src/components/ui/interface/modal/Modal.tsx",module:s(63),props:s(912),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/profile/container/Profile.tsx",slug:"profile",pathLine:"src/components/ui/interface/profile/container/Profile.tsx",module:s(75),props:s(913),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/profile/options/Options.tsx",slug:"options",pathLine:"src/components/ui/interface/profile/options/Options.tsx",module:s(151),props:s(915),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/ranking/Ranking.tsx",slug:"ranking",pathLine:"src/components/ui/interface/ranking/Ranking.tsx",module:s(142),props:s(916),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/rocket/Rocket.tsx",slug:"rocket",pathLine:"src/components/ui/interface/rocket/Rocket.tsx",module:s(955),props:s(918),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/scene-manager/Scene.tsx",slug:"scene",pathLine:"src/components/ui/interface/scene-manager/Scene.tsx",module:s(146),props:s(920),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/scene-manager/SceneContentManager.tsx",slug:"scenecontentmanager",pathLine:"src/components/ui/interface/scene-manager/SceneContentManager.tsx",module:s(921),props:s(922),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/scene-manager/SceneManager.tsx",slug:"scenemanager",pathLine:"src/components/ui/interface/scene-manager/SceneManager.tsx",module:s(147),props:s(923),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/sidebar/Sidebar.tsx",slug:"sidebar",pathLine:"src/components/ui/interface/sidebar/Sidebar.tsx",module:s(956),props:s(927),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/survey/index.tsx",slug:"survey",pathLine:"src/components/ui/interface/survey/index.tsx",module:s(143),props:s(928),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/survey/Survey.tsx",slug:"survey-1",pathLine:"src/components/ui/interface/survey/Survey.tsx",module:s(144),props:s(929),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/test-execution-animation/TestExecutionAnimation.tsx",slug:"testexecutionanimation",pathLine:"src/components/ui/interface/test-execution-animation/TestExecutionAnimation.tsx",module:s(930),props:s(932),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/text-keyboard-animation/AnimatedText.tsx",slug:"animatedtext",pathLine:"src/components/ui/interface/text-keyboard-animation/AnimatedText.tsx",module:s(82),props:s(933),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/text-keyboard-animation/TypedText.tsx",slug:"typedtext",pathLine:"src/components/ui/interface/text-keyboard-animation/TypedText.tsx",module:s(137),props:s(934),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/interface/title/Title.tsx",slug:"title",pathLine:"src/components/ui/interface/title/Title.tsx",module:s(51),props:s(935),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/interface/user-menu/UserMenu.tsx",slug:"usermenu",pathLine:"src/components/ui/interface/user-menu/UserMenu.tsx",module:s(140),props:s(937),hasExamples:!1,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-user-interface",sections:[],href:void 0,content:void 0},{name:"Icons",components:[{filepath:"src/components/ui/icons/Achievement.tsx",slug:"achievement",pathLine:"src/components/ui/icons/Achievement.tsx",module:s(79),props:s(938),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/Check.tsx",slug:"check",pathLine:"src/components/ui/icons/Check.tsx",module:s(149),props:s(939),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/Close.tsx",slug:"close",pathLine:"src/components/ui/icons/Close.tsx",module:s(80),props:s(940),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/Cup.tsx",slug:"cup",pathLine:"src/components/ui/icons/Cup.tsx",module:s(112),props:s(941),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/icons/load/Load.tsx",slug:"load",pathLine:"src/components/ui/icons/load/Load.tsx",module:s(76),props:s(942),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/icons/Next.tsx",slug:"next",pathLine:"src/components/ui/icons/Next.tsx",module:s(138),props:s(944),hasExamples:!1,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-icons",sections:[],href:void 0,content:void 0},{name:"Images",components:[{filepath:"src/components/ui/images/alien/AlienSvg.tsx",slug:"aliensvg",pathLine:"src/components/ui/images/alien/AlienSvg.tsx",module:s(78),props:s(945),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/images/buggy/Buggy.tsx",slug:"buggy",pathLine:"src/components/ui/images/buggy/Buggy.tsx",module:s(30),props:s(947),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/images/logo/Logo.tsx",slug:"logo",pathLine:"src/components/ui/images/logo/Logo.tsx",module:s(148),props:s(948),hasExamples:!1,metadata:{}},{filepath:"src/components/ui/images/profile/PlaceholderImage.tsx",slug:"placeholderimage",pathLine:"src/components/ui/images/profile/PlaceholderImage.tsx",module:s(141),props:s(949),hasExamples:!1,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-images",sections:[],href:void 0,content:void 0},{name:"Buttons",components:[{filepath:"src/components/ui/buttons/debug/Debug.tsx",slug:"debug",pathLine:"src/components/ui/buttons/debug/Debug.tsx",module:s(21),props:s(950),hasExamples:!0,metadata:{}},{filepath:"src/components/ui/buttons/primary/Primary.tsx",slug:"primary",pathLine:"src/components/ui/buttons/primary/Primary.tsx",module:s(40),props:s(952),hasExamples:!0,metadata:{}}],exampleMode:"expand",usageMode:"expand",sectionDepth:0,slug:"section-buttons",sections:[],href:void 0,content:void 0}]}},function(i,o,s){"use strict";s(66);var v=s(0),_=60103;if(o.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var $=Symbol.for;_=$("react.element"),o.Fragment=$("react.fragment")}var ae=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pe=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0};function q(i,o,s){var v,$={},_e=null,et=null;for(v in void 0!==s&&(_e=""+s),void 0!==o.key&&(_e=""+o.key),void 0!==o.ref&&(et=o.ref),o)pe.call(o,v)&&!we.hasOwnProperty(v)&&($[v]=o[v]);if(i&&i.defaultProps)for(v in o=i.defaultProps)void 0===$[v]&&($[v]=o[v]);return{$$typeof:_,type:i,key:_e,ref:et,props:$,_owner:ae.current}}o.jsx=q,o.jsxs=q},function(i,o,s){var v={EventEmitter:s(826),EmitterSubscription:s(196)};i.exports=v},function(i,o,s){"use strict";var v=s(196),_=s(828),$=s(197),ae=s(829),pe=function(){function BaseEventEmitter(){this._subscriber=new _,this._currentSubscription=null}var i=BaseEventEmitter.prototype;return i.addListener=function addListener(i,o,s){return this._subscriber.addSubscription(i,new v(this._subscriber,o,s))},i.once=function once(i,o,s){var v=this;return this.addListener(i,(function(){v.removeCurrentListener(),o.apply(s,arguments)}))},i.removeAllListeners=function removeAllListeners(i){this._subscriber.removeAllSubscriptions(i)},i.removeCurrentListener=function removeCurrentListener(){this._currentSubscription||$(!1),this._subscriber.removeSubscription(this._currentSubscription)},i.listeners=function listeners(i){var o=this._subscriber.getSubscriptionsForType(i);return o?o.filter(ae.thatReturnsTrue).map((function(i){return i.listener})):[]},i.emit=function emit(i){var o=this._subscriber.getSubscriptionsForType(i);if(o){for(var s=Object.keys(o),v=0;v(v.default.isString(i)&&(i={min:i}),v.default.isArray(i)||(i=[i]),(0,v.default)(i).filter((i=>v.default.has(i,"min")||v.default.has(i,"min-width"))).map((i=>v.default.get(i,"min-width",i.min))).value()))));var pe;const we=v.default.map(ae,(i=>({["@media (min-width: ".concat(i,")")]:{".container":{"max-width":i}}})));s([{".container":Object.assign({width:"100%"},v.default.get(i,"center",!1)?{marginRight:"auto",marginLeft:"auto"}:{},v.default.has(i,"padding")?{paddingRight:i.padding,paddingLeft:i.padding}:{})},...we])}}},,,,,,,,function(i,o,s){"use strict";i.exports=s(840)},function(i,o,s){"use strict";var v="function"==typeof Symbol&&Symbol.for,_=v?Symbol.for("react.element"):60103,$=v?Symbol.for("react.portal"):60106,ae=v?Symbol.for("react.fragment"):60107,pe=v?Symbol.for("react.strict_mode"):60108,we=v?Symbol.for("react.profiler"):60114,_e=v?Symbol.for("react.provider"):60109,et=v?Symbol.for("react.context"):60110,tt=v?Symbol.for("react.async_mode"):60111,nt=v?Symbol.for("react.concurrent_mode"):60111,rt=v?Symbol.for("react.forward_ref"):60112,it=v?Symbol.for("react.suspense"):60113,ot=v?Symbol.for("react.suspense_list"):60120,st=v?Symbol.for("react.memo"):60115,dt=v?Symbol.for("react.lazy"):60116,ut=v?Symbol.for("react.block"):60121,lt=v?Symbol.for("react.fundamental"):60117,ct=v?Symbol.for("react.responder"):60118,ht=v?Symbol.for("react.scope"):60119;function z(i){if("object"==typeof i&&null!==i){var o=i.$$typeof;switch(o){case _:switch(i=i.type){case tt:case nt:case ae:case we:case pe:case it:return i;default:switch(i=i&&i.$$typeof){case et:case rt:case dt:case st:case _e:return i;default:return o}}case $:return o}}}function A(i){return z(i)===nt}o.AsyncMode=tt,o.ConcurrentMode=nt,o.ContextConsumer=et,o.ContextProvider=_e,o.Element=_,o.ForwardRef=rt,o.Fragment=ae,o.Lazy=dt,o.Memo=st,o.Portal=$,o.Profiler=we,o.StrictMode=pe,o.Suspense=it,o.isAsyncMode=function(i){return A(i)||z(i)===tt},o.isConcurrentMode=A,o.isContextConsumer=function(i){return z(i)===et},o.isContextProvider=function(i){return z(i)===_e},o.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===_},o.isForwardRef=function(i){return z(i)===rt},o.isFragment=function(i){return z(i)===ae},o.isLazy=function(i){return z(i)===dt},o.isMemo=function(i){return z(i)===st},o.isPortal=function(i){return z(i)===$},o.isProfiler=function(i){return z(i)===we},o.isStrictMode=function(i){return z(i)===pe},o.isSuspense=function(i){return z(i)===it},o.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===ae||i===nt||i===we||i===pe||i===it||i===ot||"object"==typeof i&&null!==i&&(i.$$typeof===dt||i.$$typeof===st||i.$$typeof===_e||i.$$typeof===et||i.$$typeof===rt||i.$$typeof===lt||i.$$typeof===ct||i.$$typeof===ht||i.$$typeof===ut)},o.typeOf=z},function(i,o,s){"use strict";var v=60103,_=60106,$=60107,ae=60108,pe=60114,we=60109,_e=60110,et=60112,tt=60113,nt=60120,rt=60115,it=60116,ot=60121,st=60122,dt=60117,ut=60129,lt=60131;if("function"==typeof Symbol&&Symbol.for){var ct=Symbol.for;v=ct("react.element"),_=ct("react.portal"),$=ct("react.fragment"),ae=ct("react.strict_mode"),pe=ct("react.profiler"),we=ct("react.provider"),_e=ct("react.context"),et=ct("react.forward_ref"),tt=ct("react.suspense"),nt=ct("react.suspense_list"),rt=ct("react.memo"),it=ct("react.lazy"),ot=ct("react.block"),st=ct("react.server.block"),dt=ct("react.fundamental"),ut=ct("react.debug_trace_mode"),lt=ct("react.legacy_hidden")}function y(i){if("object"==typeof i&&null!==i){var o=i.$$typeof;switch(o){case v:switch(i=i.type){case $:case pe:case ae:case tt:case nt:return i;default:switch(i=i&&i.$$typeof){case _e:case et:case it:case rt:case we:return i;default:return o}}case _:return o}}}var ht=we,pt=v,ft=et,gt=$,mt=it,yt=rt,vt=_,Rt=pe,bt=ae,Ot=tt;o.ContextConsumer=_e,o.ContextProvider=ht,o.Element=pt,o.ForwardRef=ft,o.Fragment=gt,o.Lazy=mt,o.Memo=yt,o.Portal=vt,o.Profiler=Rt,o.StrictMode=bt,o.Suspense=Ot,o.isAsyncMode=function(){return!1},o.isConcurrentMode=function(){return!1},o.isContextConsumer=function(i){return y(i)===_e},o.isContextProvider=function(i){return y(i)===we},o.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===v},o.isForwardRef=function(i){return y(i)===et},o.isFragment=function(i){return y(i)===$},o.isLazy=function(i){return y(i)===it},o.isMemo=function(i){return y(i)===rt},o.isPortal=function(i){return y(i)===_},o.isProfiler=function(i){return y(i)===pe},o.isStrictMode=function(i){return y(i)===ae},o.isSuspense=function(i){return y(i)===tt},o.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===$||i===pe||i===ut||i===ae||i===tt||i===nt||i===lt||"object"==typeof i&&null!==i&&(i.$$typeof===it||i.$$typeof===rt||i.$$typeof===we||i.$$typeof===_e||i.$$typeof===et||i.$$typeof===dt||i.$$typeof===ot||i[0]===st)},o.typeOf=y},,,,,,,,,function(i,o,s){"use strict";var v=s(66),_=s(0);function p(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,s=1;smt;mt++)gt[mt]=mt+1;gt[15]=0;var yt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vt=Object.prototype.hasOwnProperty,Rt={},bt={};function sa(i){return!!vt.call(bt,i)||!vt.call(Rt,i)&&(yt.test(i)?bt[i]=!0:(Rt[i]=!0,!1))}function ta(i,o,s,v){if(null!==s&&0===s.type)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return!v&&(null!==s?!s.acceptsBooleans:"data-"!==(i=i.toLowerCase().slice(0,5))&&"aria-"!==i);default:return!1}}function ua(i,o,s,v){if(null==o||ta(i,o,s,v))return!0;if(v)return!1;if(null!==s)switch(s.type){case 3:return!o;case 4:return!1===o;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function M(i,o,s,v,_,$,ae){this.acceptsBooleans=2===o||3===o||4===o,this.attributeName=v,this.attributeNamespace=_,this.mustUseProperty=s,this.propertyName=i,this.type=o,this.sanitizeURL=$,this.removeEmptyString=ae}var Ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(i){Ot[i]=new M(i,0,!1,i,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(i){var o=i[0];Ot[o]=new M(o,1,!1,i[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(i){Ot[i]=new M(i,2,!1,i.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(i){Ot[i]=new M(i,2,!1,i,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(i){Ot[i]=new M(i,3,!1,i.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(i){Ot[i]=new M(i,3,!0,i,null,!1,!1)})),["capture","download"].forEach((function(i){Ot[i]=new M(i,4,!1,i,null,!1,!1)})),["cols","rows","size","span"].forEach((function(i){Ot[i]=new M(i,6,!1,i,null,!1,!1)})),["rowSpan","start"].forEach((function(i){Ot[i]=new M(i,5,!1,i.toLowerCase(),null,!1,!1)}));var xt=/[\-:]([a-z])/g;function wa(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(i){var o=i.replace(xt,wa);Ot[o]=new M(o,1,!1,i,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(i){var o=i.replace(xt,wa);Ot[o]=new M(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(i){var o=i.replace(xt,wa);Ot[o]=new M(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(i){Ot[i]=new M(i,1,!1,i.toLowerCase(),null,!1,!1)})),Ot.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(i){Ot[i]=new M(i,1,!1,i.toLowerCase(),null,!0,!0)}));var wt=/["'&<>]/;function O(i){if("boolean"==typeof i||"number"==typeof i)return""+i;i=""+i;var o=wt.exec(i);if(o){var s,v="",_=0;for(s=o.index;sPt))throw Error(p(301));if(i===St)if(At=!0,i={action:s,next:null},null===Dt&&(Dt=new Map),void 0===(s=Dt.get(o)))Dt.set(o,i);else{for(o=s;null!==o.next;)o=o.next;o.next=i}}function Ja(){}var Tt=null,It={readContext:function(i){var o=Tt.threadID;return I(i,o),i[o]},useContext:function(i){W();var o=Tt.threadID;return I(i,o),i[o]},useMemo:Ia,useReducer:Ga,useRef:function(i){St=W();var o=(Et=Ca()).memoizedState;return null===o?(i={current:i},Et.memoizedState=i):o},useState:function(i){return Ga(Fa,i)},useLayoutEffect:function(){},useCallback:function(i,o){return Ia((function(){return i}),o)},useImperativeHandle:Ja,useEffect:Ja,useDebugValue:Ja,useDeferredValue:function(i){return W(),i},useTransition:function(){return W(),[function(i){i()},!1]},useOpaqueIdentifier:function(){return(Tt.identifierPrefix||"")+"R:"+(Tt.uniqueID++).toString(36)},useMutableSource:function(i,o){return W(),o(i._source)}},Ft="http://www.w3.org/1999/xhtml";function Ma(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Nt={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Bt=v({menuitem:!0},Nt),Lt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jt=["Webkit","ms","Moz","O"];Object.keys(Lt).forEach((function(i){jt.forEach((function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),Lt[o]=Lt[i]}))}));var Mt=/([A-Z])/g,Qt=/^ms-/,Vt=_.Children.toArray,Ut=pt.ReactCurrentDispatcher,Wt={listing:!0,pre:!0,textarea:!0},$t=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,qt={},zt={};function Xa(i){if(null==i)return i;var o="";return _.Children.forEach(i,(function(i){null!=i&&(o+=i)})),o}var Zt=Object.prototype.hasOwnProperty,Ht={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function $a(i,o){if(void 0===i)throw Error(p(152,F(o)||"Component"))}function ab(i,o,s){function d(_,$){var ae=$.prototype&&$.prototype.isReactComponent,pe=na($,o,s,ae),we=[],_e=!1,et={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===we)return null},enqueueReplaceState:function(i,o){_e=!0,we=[o]},enqueueSetState:function(i,o){if(null===we)return null;we.push(o)}};if(ae){if(ae=new $(_.props,pe,et),"function"==typeof $.getDerivedStateFromProps){var tt=$.getDerivedStateFromProps.call(null,_.props,ae.state);null!=tt&&(ae.state=v({},ae.state,tt))}}else if(St={},ae=$(_.props,pe,et),null==(ae=Da($,_.props,ae,pe))||null==ae.render)return void $a(i=ae,$);if(ae.props=_.props,ae.context=pe,ae.updater=et,void 0===(et=ae.state)&&(ae.state=et=null),"function"==typeof ae.UNSAFE_componentWillMount||"function"==typeof ae.componentWillMount)if("function"==typeof ae.componentWillMount&&"function"!=typeof $.getDerivedStateFromProps&&ae.componentWillMount(),"function"==typeof ae.UNSAFE_componentWillMount&&"function"!=typeof $.getDerivedStateFromProps&&ae.UNSAFE_componentWillMount(),we.length){et=we;var nt=_e;if(we=null,_e=!1,nt&&1===et.length)ae.state=et[0];else{tt=nt?et[0]:ae.state;var rt=!0;for(nt=nt?1:0;nt=pe))throw Error(p(304));var we=new Uint16Array(pe);for(we.set($),(gt=we)[0]=v+1,$=v;$=ae.children.length){var pe=ae.footer;if(""!==pe&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===ae.type)this.currentSelectValue=null;else if(null!=ae.type&&null!=ae.type.type&&ae.type.type.$$typeof===_e)this.popProvider(ae.type);else if(ae.type===nt){this.suspenseDepth--;var we=v.pop();if(_){_=!1;var et=ae.fallbackFrame;if(!et)throw Error(p(303));this.stack.push(et),v[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}v[this.suspenseDepth]+=we}v[this.suspenseDepth]+=pe}else{var tt=ae.children[ae.childIndex++],rt="";try{rt+=this.render(tt,ae.context,ae.domNamespace)}catch(i){if(null!=i&&"function"==typeof i.then)throw Error(p(294));throw i}v.length<=this.suspenseDepth&&v.push(""),v[this.suspenseDepth]+=rt}}return v[0]}finally{Ut.current=s,Tt=o,Ea()}},i.render=function(i,o,s){if("string"==typeof i||"number"==typeof i)return""===(s=""+i)?"":this.makeStaticMarkup?O(s):this.previousWasTextNode?"\x3c!-- --\x3e"+O(s):(this.previousWasTextNode=!0,O(s));if(i=(o=ab(i,o,this.threadID)).child,o=o.context,null===i||!1===i)return"";if(!_.isValidElement(i)){if(null!=i&&null!=i.$$typeof){if((s=i.$$typeof)===$)throw Error(p(257));throw Error(p(258,s.toString()))}return i=Vt(i),this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),""}var st=i.type;if("string"==typeof st)return this.renderDOM(i,o,s);switch(st){case ct:case lt:case pe:case we:case rt:case ae:return i=Vt(i.props.children),this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),"";case nt:throw Error(p(294));case ut:throw Error(p(343))}if("object"==typeof st&&null!==st)switch(st.$$typeof){case tt:St={};var ht=st.render(i.props,i.ref);return ht=Da(st.render,i.props,ht,i.ref),ht=Vt(ht),this.stack.push({type:null,domNamespace:s,children:ht,childIndex:0,context:o,footer:""}),"";case it:return i=[_.createElement(st.type,v({ref:i.ref},i.props))],this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),"";case _e:return s={type:i,domNamespace:s,children:st=Vt(i.props.children),childIndex:0,context:o,footer:""},this.pushProvider(i),this.stack.push(s),"";case et:st=i.type,ht=i.props;var pt=this.threadID;return I(st,pt),st=Vt(ht.children(st[pt])),this.stack.push({type:i,domNamespace:s,children:st,childIndex:0,context:o,footer:""}),"";case dt:throw Error(p(338));case ot:return st=(ht=(st=i.type)._init)(st._payload),i=[_.createElement(st,v({ref:i.ref},i.props))],this.stack.push({type:null,domNamespace:s,children:i,childIndex:0,context:o,footer:""}),""}throw Error(p(130,null==st?st:typeof st,""))},i.renderDOM=function(i,o,s){var _=i.type.toLowerCase();if(s===Ft&&Ma(_),!qt.hasOwnProperty(_)){if(!$t.test(_))throw Error(p(65,_));qt[_]=!0}var $=i.props;if("input"===_)$=v({type:void 0},$,{defaultChecked:void 0,defaultValue:void 0,value:null!=$.value?$.value:$.defaultValue,checked:null!=$.checked?$.checked:$.defaultChecked});else if("textarea"===_){var ae=$.value;if(null==ae){ae=$.defaultValue;var pe=$.children;if(null!=pe){if(null!=ae)throw Error(p(92));if(Array.isArray(pe)){if(!(1>=pe.length))throw Error(p(93));pe=pe[0]}ae=""+pe}null==ae&&(ae="")}$=v({},$,{value:void 0,children:""+ae})}else if("select"===_)this.currentSelectValue=null!=$.value?$.value:$.defaultValue,$=v({},$,{value:void 0});else if("option"===_){pe=this.currentSelectValue;var we=Xa($.children);if(null!=pe){var _e=null!=$.value?$.value+"":we;if(ae=!1,Array.isArray(pe)){for(var et=0;et":(lt+=">",ae="");e:{if(null!=(pe=$.dangerouslySetInnerHTML)){if(null!=pe.__html){pe=pe.__html;break e}}else if("string"==typeof(pe=$.children)||"number"==typeof pe){pe=O(pe);break e}pe=null}return null!=pe?($=[],Wt.hasOwnProperty(_)&&"\n"===pe.charAt(0)&&(lt+="\n"),lt+=pe):$=Vt($.children),i=i.type,s=null==s||"http://www.w3.org/1999/xhtml"===s?Ma(i):"http://www.w3.org/2000/svg"===s&&"foreignObject"===i?"http://www.w3.org/1999/xhtml":s,this.stack.push({domNamespace:s,type:_,children:$,childIndex:0,context:o,footer:ae}),this.previousWasTextNode=!1,lt},a}();o.renderToNodeStream=function(){throw Error(p(207))},o.renderToStaticMarkup=function(i,o){i=new Gt(i,!0,o);try{return i.read(1/0)}finally{i.destroy()}},o.renderToStaticNodeStream=function(){throw Error(p(208))},o.renderToString=function(i,o){i=new Gt(i,!1,o);try{return i.read(1/0)}finally{i.destroy()}},o.version="17.0.2"},,,function(i,o,s){"use strict";var v=_interopRequireDefault(s(854)),_=_interopRequireDefault(s(859)),$=_interopRequireDefault(s(200)),ae=_interopRequireDefault(s(198));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}i.exports={Transition:ae.default,TransitionGroup:$.default,ReplaceTransition:_.default,CSSTransition:v.default}},function(i,o,s){"use strict";o.__esModule=!0,o.default=void 0;(function _interopRequireWildcard(i){if(i&&i.__esModule)return i;var o={};if(null!=i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var v=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(i,s):{};v.get||v.set?Object.defineProperty(o,s,v):o[s]=i[s]}return o.default=i,o})(s(2));var v=_interopRequireDefault(s(855)),_=_interopRequireDefault(s(858)),$=_interopRequireDefault(s(0)),ae=_interopRequireDefault(s(198));s(199);function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _extends(){return _extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var ae=function(i){var o,s;function ReplaceTransition(){for(var o,s=arguments.length,v=new Array(s),_=0;_0&&0===(ut-=1)&&et.show(s),o.props.shouldFocusAfterRender&&(o.props.shouldReturnFocusAfterClose?(we.returnFocus(o.props.preventScroll),we.teardownScopedFocus()):we.popWithoutFocus()),o.props.onAfterClose&&o.props.onAfterClose(),it.default.deregister(o)},o.open=function(){o.beforeOpen(),o.state.afterOpen&&o.state.beforeClose?(clearTimeout(o.closeTimer),o.setState({beforeClose:!1})):(o.props.shouldFocusAfterRender&&(we.setupScopedFocus(o.node),we.markForFocusLater()),o.setState({isOpen:!0},(function(){o.openAnimationFrame=requestAnimationFrame((function(){o.setState({afterOpen:!0}),o.props.isOpen&&o.props.onAfterOpen&&o.props.onAfterOpen({overlayEl:o.overlay,contentEl:o.content})}))})))},o.close=function(){o.props.closeTimeoutMS>0?o.closeWithTimeout():o.closeWithoutTimeout()},o.focusContent=function(){return o.content&&!o.contentHasFocus()&&o.content.focus({preventScroll:!0})},o.closeWithTimeout=function(){var i=Date.now()+o.props.closeTimeoutMS;o.setState({beforeClose:!0,closesAt:i},(function(){o.closeTimer=setTimeout(o.closeWithoutTimeout,o.state.closesAt-Date.now())}))},o.closeWithoutTimeout=function(){o.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},o.afterClose)},o.handleKeyDown=function(i){st(i)&&(0,_e.default)(o.content,i),o.props.shouldCloseOnEsc&&dt(i)&&(i.stopPropagation(),o.requestClose(i))},o.handleOverlayOnClick=function(i){null===o.shouldClose&&(o.shouldClose=!0),o.shouldClose&&o.props.shouldCloseOnOverlayClick&&(o.ownerHandlesClose()?o.requestClose(i):o.focusContent()),o.shouldClose=null},o.handleContentOnMouseUp=function(){o.shouldClose=!1},o.handleOverlayOnMouseDown=function(i){o.props.shouldCloseOnOverlayClick||i.target!=o.overlay||i.preventDefault()},o.handleContentOnClick=function(){o.shouldClose=!1},o.handleContentOnMouseDown=function(){o.shouldClose=!1},o.requestClose=function(i){return o.ownerHandlesClose()&&o.props.onRequestClose(i)},o.ownerHandlesClose=function(){return o.props.onRequestClose},o.shouldBeClosed=function(){return!o.state.isOpen&&!o.state.beforeClose},o.contentHasFocus=function(){return document.activeElement===o.content||o.content.contains(document.activeElement)},o.buildClassName=function(i,s){var v="object"===(void 0===s?"undefined":_(s))?s:{base:ot[i],afterOpen:ot[i]+"--after-open",beforeClose:ot[i]+"--before-close"},$=v.base;return o.state.afterOpen&&($=$+" "+v.afterOpen),o.state.beforeClose&&($=$+" "+v.beforeClose),"string"==typeof s&&s?$+" "+s:$},o.attributesFromObject=function(i,o){return Object.keys(o).reduce((function(s,v){return s[i+"-"+v]=o[v],s}),{})},o.state={afterOpen:!1,beforeClose:!1},o.shouldClose=null,o.moveFromContentToOverlay=null,o}return _inherits(ModalPortal,i),$(ModalPortal,[{key:"componentDidMount",value:function componentDidMount(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function componentDidUpdate(i,o){this.props.isOpen&&!i.isOpen?this.open():!this.props.isOpen&&i.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!o.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function beforeOpen(){var i=this.props,o=i.appElement,s=i.ariaHideApp,v=i.htmlOpenClassName,_=i.bodyOpenClassName,$=i.parentSelector,ae=$&&$().ownerDocument||document;_&&tt.add(ae.body,_),v&&tt.add(ae.getElementsByTagName("html")[0],v),s&&(ut+=1,et.hide(o)),it.default.register(this)}},{key:"render",value:function render(){var i=this.props,o=i.id,s=i.className,_=i.overlayClassName,$=i.defaultStyles,ae=i.children,pe=s?{}:$.content,we=_?{}:$.overlay;if(this.shouldBeClosed())return null;var _e={ref:this.setOverlayRef,className:this.buildClassName("overlay",_),style:v({},we,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},et=v({id:o,ref:this.setContentRef,style:v({},pe,this.props.style.content),className:this.buildClassName("content",s),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",v({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),tt=this.props.contentElement(et,ae);return this.props.overlayElement(_e,tt)}}]),ModalPortal}(ae.Component);lt.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},lt.propTypes={isOpen:pe.default.bool.isRequired,defaultStyles:pe.default.shape({content:pe.default.object,overlay:pe.default.object}),style:pe.default.shape({content:pe.default.object,overlay:pe.default.object}),className:pe.default.oneOfType([pe.default.string,pe.default.object]),overlayClassName:pe.default.oneOfType([pe.default.string,pe.default.object]),parentSelector:pe.default.func,bodyOpenClassName:pe.default.string,htmlOpenClassName:pe.default.string,ariaHideApp:pe.default.bool,appElement:pe.default.oneOfType([pe.default.instanceOf(rt.default),pe.default.instanceOf(nt.SafeHTMLCollection),pe.default.instanceOf(nt.SafeNodeList),pe.default.arrayOf(pe.default.instanceOf(rt.default))]),onAfterOpen:pe.default.func,onAfterClose:pe.default.func,onRequestClose:pe.default.func,closeTimeoutMS:pe.default.number,shouldFocusAfterRender:pe.default.bool,shouldCloseOnOverlayClick:pe.default.bool,shouldReturnFocusAfterClose:pe.default.bool,preventScroll:pe.default.bool,role:pe.default.string,contentLabel:pe.default.string,aria:pe.default.object,data:pe.default.object,children:pe.default.node,shouldCloseOnEsc:pe.default.bool,overlayRef:pe.default.func,contentRef:pe.default.func,id:pe.default.string,overlayElement:pe.default.func,contentElement:pe.default.func,testId:pe.default.string},o.default=lt,i.exports=o.default},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){_=[]},o.log=function log(){0},o.handleBlur=handleBlur,o.handleFocus=handleFocus,o.markForFocusLater=function markForFocusLater(){_.push(document.activeElement)},o.returnFocus=function returnFocus(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=null;try{return void(0!==_.length&&(o=_.pop()).focus({preventScroll:i}))}catch(i){console.warn(["You tried to return focus to",o,"but it is not in the DOM anymore"].join(" "))}},o.popWithoutFocus=function popWithoutFocus(){_.length>0&&_.pop()},o.setupScopedFocus=function setupScopedFocus(i){$=i,window.addEventListener?(window.addEventListener("blur",handleBlur,!1),document.addEventListener("focus",handleFocus,!0)):(window.attachEvent("onBlur",handleBlur),document.attachEvent("onFocus",handleFocus))},o.teardownScopedFocus=function teardownScopedFocus(){$=null,window.addEventListener?(window.removeEventListener("blur",handleBlur),document.removeEventListener("focus",handleFocus)):(window.detachEvent("onBlur",handleBlur),document.detachEvent("onFocus",handleFocus))};var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(202));var _=[],$=null,ae=!1;function handleBlur(){ae=!0}function handleFocus(){if(ae){if(ae=!1,!$)return;setTimeout((function(){$.contains(document.activeElement)||((0,v.default)($)[0]||$).focus()}),0)}}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function scopeTab(i,o){var s=(0,v.default)(i);if(!s.length)return void o.preventDefault();var _=void 0,$=o.shiftKey,ae=s[0],pe=s[s.length-1],we=getActiveElement();if(i===we){if(!$)return;_=pe}pe!==we||$||(_=ae);ae===we&&$&&(_=pe);if(_)return o.preventDefault(),void _.focus();var _e=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==_e||"Chrome"==_e[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var et=s.indexOf(we);et>-1&&(et+=$?-1:1);if(void 0===(_=s[et]))return o.preventDefault(),void(_=$?pe:ae).focus();o.preventDefault(),_.focus()};var v=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(s(202));function getActiveElement(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return i.activeElement.shadowRoot?getActiveElement(i.activeElement.shadowRoot):i.activeElement}i.exports=o.default},function(i,o,s){"use strict";var warning=function(){};i.exports=warning},function(i,o,s){var v;!function(){"use strict";var _=!("undefined"==typeof window||!window.document||!window.document.createElement),$={canUseDOM:_,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:_&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:_&&!!window.screen};void 0===(v=function(){return $}.call(o,s,o,i))||(i.exports=v)}()},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){var i=document.getElementsByTagName("html")[0];for(var o in v)removeClass(i,v[o]);var s=document.body;for(var $ in _)removeClass(s,_[$]);v={},_={}},o.log=function log(){0};var v={},_={};function removeClass(i,o){i.classList.remove(o)}var $=function incrementReference(i,o){return i[o]||(i[o]=0),i[o]+=1,o},ae=function decrementReference(i,o){return i[o]&&(i[o]-=1),o},pe=function trackClass(i,o,s){s.forEach((function(s){$(o,s),i.add(s)}))},we=function untrackClass(i,o,s){s.forEach((function(s){ae(o,s),0===o[s]&&i.remove(s)}))};o.add=function add(i,o){return pe(i.classList,"html"==i.nodeName.toLowerCase()?v:_,o.split(" "))},o.remove=function remove(i,o){return we(i.classList,"html"==i.nodeName.toLowerCase()?v:_,o.split(" "))}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function resetState(){for(var i=[_,$],o=0;o0?(document.body.firstChild!==_&&document.body.insertBefore(_,document.body.firstChild),document.body.lastChild!==$&&document.body.appendChild($)):(_.parentElement&&_.parentElement.removeChild(_),$.parentElement&&$.parentElement.removeChild($))}))},,function(i,o,s){"use strict";s.r(o);s(888)},function(i,o,s){"use strict";(function(i){var o=s(13);(function(){var s,v="function"==typeof Object.defineProperties?Object.defineProperty:function(i,o,s){i!=Array.prototype&&i!=Object.prototype&&(i[o]=s.value)};var _=function ba(o){o=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof i&&i,o];for(var s=0;s>>0),et=0;function sa(i,o,s){return i.call.apply(i.bind,arguments)}function ta(i,o,s){if(!i)throw Error();if(2i.b&&(i.b++,o.next=i.a,i.a=o)}function Ja(){this.b=this.a=null}nt=Ca("__EID__")?"__EID__":void 0,r(u,Error),u.prototype.name="CustomError",r(Fa,u),Fa.prototype.name="AssertionError",Ha.prototype.get=function(){if(0o?null:"string"==typeof i?i.charAt(o):i[o]}function Va(i,o){return 0<=dt(i,o)}function Wa(i,o){var s;return(s=0<=(o=dt(i,o)))&&Array.prototype.splice.call(i,o,1),s}function Xa(i,o){Pa(i,(function(s,v){o.call(void 0,s,v,i)&&1==Array.prototype.splice.call(i,v,1).length&&0}))}function Ya(i){return Array.prototype.concat.apply([],arguments)}function Za(i){var o=i.length;if(0/g,vt=/"/g,Rt=/'/g,bt=/\x00/g,Ot=/[\x00&<>"']/;function x(i,o){return-1!=i.indexOf(o)}function hb(i,o){return io?1:0}e:{var xt=ae.navigator;if(xt){var wt=xt.userAgent;if(wt){pt=wt;break e}}pt=""}function y(i){return x(pt,i)}function lb(i,o){for(var s in i)o.call(void 0,i[s],s,i)}function mb(i){for(var o in i)return!1;return!0}function nb(i){var o,s={};for(o in i)s[o]=i[o];return s}var Ct="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function z(i,o){for(var s,v,_=1;_"}else $=void 0===i?"undefined":null===i?"null":typeof i;Ga("Argument is not a %s (or a non-Element, non-Location mock); got: %s",o,$)}}function qb(i,o){this.a=i===Et&&o||"",this.b=_t}function tb(i){return i instanceof qb&&i.constructor===qb&&i.b===_t?i.a:(Ga("expected object of type Const, got '"+i+"'"),"type_error:Const")}qb.prototype.ta=!0,qb.prototype.sa=function(){return this.a},qb.prototype.toString=function(){return"Const{"+this.a+"}"};var St,_t={},Et={};function vb(){if(void 0===St){var i=null,o=ae.trustedTypes;if(o&&o.createPolicy){try{i=o.createPolicy("goog#html",{createHTML:wa,createScript:wa,createScriptURL:wa})}catch(i){ae.console&&ae.console.error(i.message)}St=i}else St=i}return St}function wb(i,o){this.a=o===Dt?i:""}function yb(i){return i instanceof wb&&i.constructor===wb?i.a:(Ga("expected object of type TrustedResourceUrl, got '"+i+"' of type "+ma(i)),"type_error:TrustedResourceUrl")}function zb(i,o){var s=tb(i);if(!At.test(s))throw Error("Invalid TrustedResourceUrl format: "+s);return Cb(i=s.replace(kt,(function(i,v){if(!Object.prototype.hasOwnProperty.call(o,v))throw Error('Found marker, "'+v+'", in format string, "'+s+'", but no valid label mapping found in args: '+JSON.stringify(o));return(i=o[v])instanceof qb?tb(i):encodeURIComponent(String(i))})))}wb.prototype.ta=!0,wb.prototype.sa=function(){return this.a.toString()},wb.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var kt=/%{(\w+)}/g,At=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Dt={};function Cb(i){var o=vb();return new wb(i=o?o.createScriptURL(i):i,Dt)}function C(i,o){this.a=o===Ft?i:""}function Eb(i){return i instanceof C&&i.constructor===C?i.a:(Ga("expected object of type SafeUrl, got '"+i+"' of type "+ma(i)),"type_error:SafeUrl")}C.prototype.ta=!0,C.prototype.sa=function(){return this.a.toString()},C.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Pt=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Tt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,It=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ib(i){if(i instanceof C)return i;if(i="object"==typeof i&&i.ta?i.sa():String(i),It.test(i))i=new C(i,Ft);else{var o=(i=(i=String(i)).replace(/(%0A|%0D)/g,"")).match(Tt);i=o&&Pt.test(o[1])?new C(i,Ft):null}return i}function Jb(i){return i instanceof C?i:(i="object"==typeof i&&i.ta?i.sa():String(i),It.test(i)||(i="about:invalid#zClosurez"),new C(i,Ft))}var Ft={},Nt=new C("about:invalid#zClosurez",Ft);function Lb(i,o,s){this.a=s===Bt?i:""}function Nb(i){return i instanceof Lb&&i.constructor===Lb?i.a:(Ga("expected object of type SafeHtml, got '"+i+"' of type "+ma(i)),"type_error:SafeHtml")}Lb.prototype.ta=!0,Lb.prototype.sa=function(){return this.a.toString()},Lb.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Bt={};function Ob(i,o){pb(i,"HTMLScriptElement"),i.src=yb(o),(o=i.ownerDocument&&i.ownerDocument.defaultView)&&o!=ae?o=ka(o.document):(null===we&&(we=ka(ae.document)),o=we),o&&i.setAttribute("nonce",o)}function Pb(i,o,s,v){return i=i instanceof C?i:Jb(i),o=o||ae,s=s instanceof qb?tb(s):s||"",o.open(Eb(i),s,v,void 0)}function Qb(i,o){for(var s=i.split("%s"),v="",_=Array.prototype.slice.call(arguments,1);_.length&&1")&&(i=i.replace(yt,">")),-1!=i.indexOf('"')&&(i=i.replace(vt,""")),-1!=i.indexOf("'")&&(i=i.replace(Rt,"'")),-1!=i.indexOf("\0")&&(i=i.replace(bt,"�"))),i}function Sb(i){return Sb[" "](i),i}function Tb(i,o){var s=Gt;return Object.prototype.hasOwnProperty.call(s,i)?s[i]:s[i]=o(i)}Sb[" "]=la;var Lt,jt,Mt=y("Opera"),Qt=y("Trident")||y("MSIE"),Vt=y("Edge"),Ut=Vt||Qt,Wt=y("Gecko")&&!(x(pt.toLowerCase(),"webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),$t=x(pt.toLowerCase(),"webkit")&&!y("Edge");function ac(){var i=ae.document;return i?i.documentMode:void 0}e:{var qt="",zt=(jt=pt,Wt?/rv:([^\);]+)(\)|;)/.exec(jt):Vt?/Edge\/([\d\.]+)/.exec(jt):Qt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(jt):$t?/WebKit\/(\S+)/.exec(jt):Mt?/(?:Version)[ \/]?(\S+)/.exec(jt):void 0);if(zt&&(qt=zt?zt[1]:""),Qt){var Zt=ac();if(null!=Zt&&Zt>parseFloat(qt)){Lt=String(Zt);break e}}Lt=qt}var Ht,Gt={};function fc(i){return Tb(i,(function(){for(var o=0,s=ft(String(Lt)).split("."),v=ft(String(i)).split("."),_=Math.max(s.length,v.length),$=0;0==o&&$<_;$++){var ae=s[$]||"",pe=v[$]||"";do{if(ae=/(\d*)(\D*)(.*)/.exec(ae)||["","","",""],pe=/(\d*)(\D*)(.*)/.exec(pe)||["","","",""],0==ae[0].length&&0==pe[0].length)break;o=hb(0==ae[1].length?0:parseInt(ae[1],10),0==pe[1].length?0:parseInt(pe[1],10))||hb(0==ae[2].length,0==pe[2].length)||hb(ae[2],pe[2]),ae=ae[3],pe=pe[3]}while(0==o)}return 0<=o}))}if(ae.document&&Qt){var Xt=ac();Ht=Xt||(parseInt(Lt,10)||void 0)}else Ht=void 0;var Yt=Ht;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(jt){}var Kt=!Qt||9<=Number(Yt);function kc(i){var o=document;return"string"==typeof i?o.getElementById(i):i}function lc(i,o){lb(o,(function(o,s){o&&"object"==typeof o&&o.ta&&(o=o.sa()),"style"==s?i.style.cssText=o:"class"==s?i.className=o:"for"==s?i.htmlFor=o:_n.hasOwnProperty(s)?i.setAttribute(_n[s],o):0==s.lastIndexOf("aria-",0)||0==s.lastIndexOf("data-",0)?i.setAttribute(s,o):i[s]=o}))}var Jt,nn,_n={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function nc(i,o,s){var v=arguments,_=document,$=String(v[0]),ae=v[1];if(!Kt&&ae&&(ae.name||ae.type)){if($=["<",$],ae.name&&$.push(' name="',Rb(ae.name),'"'),ae.type){$.push(' type="',Rb(ae.type),'"');var pe={};z(pe,ae),delete pe.type,ae=pe}$.push(">"),$=$.join("")}return $=oc(_,$),ae&&("string"==typeof ae?$.className=ae:Array.isArray(ae)?$.className=ae.join(" "):lc($,ae)),2=i.keyCode)&&(i.keyCode=-1)}catch(i){}},bd.prototype.g=function(){return this.a};var tr="closure_listenable_"+(1e6*Math.random()|0),nr=0;function fd(i,o,s,v,_){this.listener=i,this.proxy=null,this.src=o,this.type=s,this.capture=!!v,this.Wa=_,this.key=++nr,this.wa=this.Qa=!1}function gd(i){i.wa=!0,i.listener=null,i.proxy=null,i.src=null,i.Wa=null}function hd(i){this.src=i,this.a={},this.b=0}function jd(i,o){var s=o.type;s in i.a&&Wa(i.a[s],o)&&(gd(o),0==i.a[s].length&&(delete i.a[s],i.b--))}function id(i,o,s,v){for(var _=0;_v.keyCode||null!=v.returnValue)){e:{var _=!1;if(0==v.keyCode)try{v.keyCode=-1;break e}catch(i){_=!0}(_||null==v.returnValue)&&(v.returnValue=!0)}for(v=[],_=o.b;_;_=_.parentNode)v.push(_);for(i=i.type,_=v.length-1;0<=_;_--){o.b=v[_];var $=zd(v[_],i,!0,o);s=s&&$}for(_=0;_>>0);function pd(i){return oa(i)?i:(i[ir]||(i[ir]=function(o){return i.handleEvent(o)}),i[ir])}function H(){Uc.call(this),this.v=new hd(this),this.bc=this,this.hb=null}function qd(i,o,s,v,_){i.v.add(String(o),s,!1,v,_)}function wd(i,o,s,v,_){i.v.add(String(o),s,!0,v,_)}function Dd(i,o,s,v){if(!(o=i.v.a[String(o)]))return!0;o=o.concat();for(var _=!0,$=0;$o)throw Error("Bad port number "+o);i.g=o}else i.g=null}function Rd(i,o,s){o instanceof Ud?(i.b=o,$d(i.b,i.i)):(s||(o=Vd(o,lr)),i.b=new Ud(o,i.i))}function I(i,o,s){i.b.set(o,s)}function be(i,o){return i.b.get(o)}function J(i){return i instanceof Od?new Od(i):new Od(i,void 0)}function ce(i,o,s,v){var _=new Od(null,void 0);return i&&Pd(_,i),o&&(_.a=o),s&&Qd(_,s),v&&(_.f=v),_}function Td(i,o){return i?o?decodeURI(i.replace(/%25/g,"%2525")):decodeURIComponent(i):""}function Vd(i,o,s){return"string"==typeof i?(i=encodeURI(i).replace(o,de),s&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function de(i){return"%"+((i=i.charCodeAt(0))>>4&15).toString(16)+(15&i).toString(16)}Od.prototype.toString=function(){var i=[],o=this.c;o&&i.push(Vd(o,sr,!0),":");var s=this.a;return(s||"file"==o)&&(i.push("//"),(o=this.l)&&i.push(Vd(o,sr,!0),"@"),i.push(encodeURIComponent(String(s)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(s=this.g)&&i.push(":",String(s))),(s=this.f)&&(this.a&&"/"!=s.charAt(0)&&i.push("/"),i.push(Vd(s,"/"==s.charAt(0)?ur:dr,!0))),(s=this.b.toString())&&i.push("?",s),(s=this.h)&&i.push("#",Vd(s,cr)),i.join("")},Od.prototype.resolve=function(i){var o=new Od(this),s=!!i.c;s?Pd(o,i.c):s=!!i.l,s?o.l=i.l:s=!!i.a,s?o.a=i.a:s=null!=i.g;var v=i.f;if(s)Qd(o,i.g);else if(s=!!i.f){if("/"!=v.charAt(0))if(this.a&&!this.f)v="/"+v;else{var _=o.f.lastIndexOf("/");-1!=_&&(v=o.f.substr(0,_+1)+v)}if(".."==(_=v)||"."==_)v="";else if(x(_,"./")||x(_,"/.")){v=0==_.lastIndexOf("/",0),_=_.split("/");for(var $=[],ae=0;ae<_.length;){var pe=_[ae++];"."==pe?v&&ae==_.length&&$.push(""):".."==pe?((1<$.length||1==$.length&&""!=$[0])&&$.pop(),v&&ae==_.length&&$.push("")):($.push(pe),v=!0)}v=$.join("/")}else v=_}return s?o.f=v:s=""!==i.b.toString(),s?Rd(o,Sd(i.b)):s=!!i.h,s&&(o.h=i.h),o};var sr=/[#\/\?@]/g,dr=/[#\?:]/g,ur=/[#\?]/g,lr=/[#\?@]/g,cr=/#/g;function Ud(i,o){this.b=this.a=null,this.c=i||null,this.f=!!o}function ee(i){i.a||(i.a=new Jd,i.b=0,i.c&&Nd(i.c,(function(o,s){i.add(decodeURIComponent(o.replace(/\+/g," ")),s)})))}function fe(i){var o=Hd(i);if(void 0===o)throw Error("Keys are undefined");var s=new Ud(null,void 0);i=Gd(i);for(var v=0;v2*i.c&&Kd(i)))}function je(i,o){return ee(i),o=he(i,o),Ld(i.a.b,o)}function ge(i,o,s){ie(i,o),0i)&&(!Qt||!Yt||9',i=new Lb(i=(v=vb())?v.createHTML(i):i,null,Bt),v=ae.document)&&(v.write(Nb(i)),v.close())):(ae=Pb(o,v,s,ae))&&i.noopener&&(ae.opener=null),ae)try{ae.focus()}catch(i){}return ae}function Be(i){return new D((function(o){return function c(){Fd(2e3).then((function(){if(i&&!i.closed)return c();o()}))}()}))}var fr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,gr=/^[^@]+@[^@]+$/;function Ee(){var i=null;return new D((function(o){"complete"==ae.document.readyState?o():(i=function(){o()},od(window,"load",i))})).o((function(o){throw xd(window,"load",i),o}))}function Ge(i){return i=i||K(),!("file:"!==He()&&"ionic:"!==He()||!i.toLowerCase().match(/iphone|ipad|ipod|android/))}function Ie(){var i=ae.window;try{return!(!i||i==i.top)}catch(i){return!1}}function Je(){return void 0!==ae.WorkerGlobalScope&&"function"==typeof ae.importScripts}function Ke(){return o.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":o.a.INTERNAL.hasOwnProperty("node")?"Node":Je()?"Worker":"Browser"}function Le(){var i=Ke();return"ReactNative"===i||"Node"===i}function Me(){for(var i=50,o=[];0o)throw Error("Short delay should be less than long delay!");this.a=i,this.c=o,i=K(),o=Ke(),this.b=xe(i)||"ReactNative"===o}function $e(){var i=ae.document;return!i||void 0===i.visibilityState||"visible"==i.visibilityState}function af(){var i=ae.document,o=null;return $e()||!i?E():new D((function(s){o=function(){$e()&&(i.removeEventListener("visibilitychange",o,!1),s())},i.addEventListener("visibilitychange",o,!1)})).o((function(s){throw i.removeEventListener("visibilitychange",o,!1),s}))}function bf(i){try{var o=new Date(parseInt(i,10));if(!isNaN(o.getTime())&&!/[^0-9]/.test(i))return o.toUTCString()}catch(i){}return null}function cf(){return!(!L("fireauth.oauthhelper",ae)&&!L("fireauth.iframe",ae))}function df(){var i=ae.navigator;return i&&i.serviceWorker&&i.serviceWorker.controller||null}function ef(){var i=ae.navigator;return i&&i.serviceWorker?E().then((function(){return i.serviceWorker.ready})).then((function(i){return i.active||null})).o((function(){return null})):E(null)}Ze.prototype.get=function(){var i=ae.navigator;return!i||"boolean"!=typeof i.onLine||!Se()&&"chrome-extension:"!==He()&&void 0===i.connection||i.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Rr,br={};function gf(i){br[i]||(br[i]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(i))}try{var Or={};Object.defineProperty(Or,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Or,"abcd",{configurable:!0,enumerable:!0,value:2}),Rr=2==Or.abcd}catch(jt){Rr=!1}function M(i,o,s){Rr?Object.defineProperty(i,o,{configurable:!0,enumerable:!0,value:s}):i[o]=s}function N(i,o){if(o)for(var s in o)o.hasOwnProperty(s)&&M(i,s,o[s])}function kf(i){var o={};return N(o,i),o}function lf(i){var o,s={};for(o in i)i.hasOwnProperty(o)&&(s[o]=i[o]);return s}function mf(i,o){if(!o||!o.length)return!0;if(!i)return!1;for(var s=0;s>4),64!=$&&(o(_<<4&240|$>>2),64!=ae&&o($<<6&192|ae))}}function gg(){if(!Ei){Ei={};for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),o=["+/=","+/","-_=","-_.","-_"],s=0;5>s;s++)for(var v=i.concat(o[s].split("")),_=0;_this.a?this.a:i),this.b=o.provider_id||o.firebase&&o.firebase.sign_in_provider||null,this.f=o.firebase&&o.firebase.tenant||null,this.c=!!o.is_anonymous||"anonymous"==this.b}function jg(i){try{return new hg(i)}catch(i){return null}}function ig(i){if(!i)return null;if(3!=(i=i.split(".")).length)return null;for(var o=(4-(i=i[1]).length%4)%4,s=0;s_)i[s++]=String.fromCharCode(_);else if(191<_&&224>_){var $=v[o++];i[s++]=String.fromCharCode((31&_)<<6|63&$)}else if(239<_&&365>_){$=v[o++];var ae=v[o++],pe=((7&_)<<18|(63&$)<<12|(63&ae)<<6|63&v[o++])-65536;i[s++]=String.fromCharCode(55296+(pe>>10)),i[s++]=String.fromCharCode(56320+(1023&pe))}else $=v[o++],ae=v[o++],i[s++]=String.fromCharCode((15&_)<<12|(63&$)<<6|63&ae)}return JSON.parse(i.join(""))}catch(i){}return null}hg.prototype.T=function(){return this.f},hg.prototype.l=function(){return this.c},hg.prototype.toString=function(){return this.h};var Ui="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Ji=["client_id","response_type","scope","redirect_uri","state"],no={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:Ji},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:Ji},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:Ji},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:Ui},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function ng(i){for(var o in no)if(no[o].fa==i)return no[o];return null}function og(i){var o={};o["facebook.com"]=pg,o["google.com"]=qg,o["github.com"]=rg,o["twitter.com"]=sg;var s=i&&i[oo];try{if(s)return o[s]?new o[s](i):new ug(i);if(void 0!==i[io])return new wg(i)}catch(i){}return null}var io="idToken",oo="providerId";function wg(i){var o=i[oo];if(!o&&i[io]){var s=jg(i[io]);s&&s.b&&(o=s.b)}if(!o)throw Error("Invalid additional user info!");"anonymous"!=o&&"custom"!=o||(o=null),s=!1,void 0!==i.isNewUser?s=!!i.isNewUser:"identitytoolkit#SignupNewUserResponse"===i.kind&&(s=!0),M(this,"providerId",o),M(this,"isNewUser",s)}function ug(i){wg.call(this,i),M(this,"profile",nf((i=We(i.rawUserInfo||"{}"))||{}))}function pg(i){if(ug.call(this,i),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function rg(i){if(ug.call(this,i),"github.com"!=this.providerId)throw Error("Invalid provider ID!");M(this,"username",this.profile&&this.profile.login||null)}function qg(i){if(ug.call(this,i),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function sg(i){if(ug.call(this,i),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");M(this,"username",i.screenName||null)}function xg(i){var o=J(i),s=be(o,"link"),v=be(J(s),"link");return o=be(o,"deep_link_id"),be(J(o),"link")||o||v||s||i}function yg(i,o){if(!i&&!o)throw new t("internal-error","Internal assert: no raw session string available");if(i&&o)throw new t("internal-error","Internal assert: unable to determine the session type");this.a=i||null,this.b=o||null,this.type=this.a?mo:Ro}r(ug,wg),r(pg,ug),r(rg,ug),r(qg,ug),r(sg,ug);var mo="enroll",Ro="signin";function Bg(){}function Cg(i,o){return i.then((function(i){if(i[Qo]){var s=jg(i[Qo]);if(!s||o!=s.i)throw new t("user-mismatch");return i}throw new t("user-mismatch")})).o((function(i){throw i&&i.code&&i.code==rt+"user-not-found"?new t("user-mismatch"):i}))}function Eg(i,o){if(!o)throw new t("internal-error","failed to construct a credential");this.a=o,M(this,"providerId",i),M(this,"signInMethod",i)}function Gg(i){return{pendingToken:i.a,requestUri:"http://localhost"}}function Jg(i){if(i&&i.providerId&&i.signInMethod&&0==i.providerId.indexOf("saml.")&&i.pendingToken)try{return new Eg(i.providerId,i.pendingToken)}catch(i){}return null}function Kg(i,o,s){if(this.a=null,o.idToken||o.accessToken)o.idToken&&M(this,"idToken",o.idToken),o.accessToken&&M(this,"accessToken",o.accessToken),o.nonce&&!o.pendingToken&&M(this,"nonce",o.nonce),o.pendingToken&&(this.a=o.pendingToken);else{if(!o.oauthToken||!o.oauthTokenSecret)throw new t("internal-error","failed to construct a credential");M(this,"accessToken",o.oauthToken),M(this,"secret",o.oauthTokenSecret)}M(this,"providerId",i),M(this,"signInMethod",s)}function Lg(i){var o={};return i.idToken&&(o.id_token=i.idToken),i.accessToken&&(o.access_token=i.accessToken),i.secret&&(o.oauth_token_secret=i.secret),o.providerId=i.providerId,i.nonce&&!i.a&&(o.nonce=i.nonce),o={postBody:fe(o).toString(),requestUri:"http://localhost"},i.a&&(delete o.postBody,o.pendingToken=i.a),o}function Mg(i){if(i&&i.providerId&&i.signInMethod){var o={idToken:i.oauthIdToken,accessToken:i.oauthTokenSecret?null:i.oauthAccessToken,oauthTokenSecret:i.oauthTokenSecret,oauthToken:i.oauthTokenSecret&&i.oauthAccessToken,nonce:i.nonce,pendingToken:i.pendingToken};try{return new Kg(i.providerId,o,i.signInMethod)}catch(i){}}return null}function Ng(i,o){this.Qc=o||[],N(this,{providerId:i,isOAuthProvider:!0}),this.Jb={},this.qb=(ng(i)||{}).Ja||null,this.pb=null}function Og(i){if("string"!=typeof i||0!=i.indexOf("saml."))throw new t("argument-error",'SAML provider IDs must be prefixed with "saml."');Ng.call(this,i,[])}function Pg(i){Ng.call(this,i,Ji),this.a=[]}function Qg(){Pg.call(this,"facebook.com")}function Rg(i){if(!i)throw new t("argument-error","credential failed: expected 1 argument (the OAuth access token).");var o=i;return n(i)&&(o=i.accessToken),(new Qg).credential({accessToken:o})}function Sg(){Pg.call(this,"github.com")}function Tg(i){if(!i)throw new t("argument-error","credential failed: expected 1 argument (the OAuth access token).");var o=i;return n(i)&&(o=i.accessToken),(new Sg).credential({accessToken:o})}function Ug(){Pg.call(this,"google.com"),this.Ca("profile")}function Vg(i,o){var s=i;return n(i)&&(s=i.idToken,o=i.accessToken),(new Ug).credential({idToken:s,accessToken:o})}function Wg(){Ng.call(this,"twitter.com",Ui)}function Xg(i,o){var s=i;if(n(s)||(s={oauthToken:i,oauthTokenSecret:o}),!s.oauthToken||!s.oauthTokenSecret)throw new t("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Kg("twitter.com",s,"twitter.com")}function Yg(i,o,s){this.a=i,this.f=o,M(this,"providerId","password"),M(this,"signInMethod",s===Zg.EMAIL_LINK_SIGN_IN_METHOD?Zg.EMAIL_LINK_SIGN_IN_METHOD:Zg.EMAIL_PASSWORD_SIGN_IN_METHOD)}function dh(i){return i&&i.email&&i.password?new Yg(i.email,i.password,i.signInMethod):null}function Zg(){N(this,{providerId:"password",isOAuthProvider:!1})}function eh(i,o){if(!(o=fh(o)))throw new t("argument-error","Invalid email link!");return new Yg(i,o.code,Zg.EMAIL_LINK_SIGN_IN_METHOD)}function fh(i){return(i=Rf(i=xg(i)))&&i.operation===Er?i:null}function gh(i){if(!(i.fb&&i.eb||i.La&&i.ea))throw new t("internal-error");this.a=i,M(this,"providerId","phone"),this.fa="phone",M(this,"signInMethod","phone")}function kh(i){if(i&&"phone"===i.providerId&&(i.verificationId&&i.verificationCode||i.temporaryProof&&i.phoneNumber)){var o={};return ut(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(s){i[s]&&(o[s]=i[s])})),new gh(o)}return null}function hh(i){return i.a.La&&i.a.ea?{temporaryProof:i.a.La,phoneNumber:i.a.ea}:{sessionInfo:i.a.fb,code:i.a.eb}}function lh(i){try{this.a=i||o.a.auth()}catch(i){throw new t("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}N(this,{providerId:"phone",isOAuthProvider:!1})}function ph(i,o){if(!i)throw new t("missing-verification-id");if(!o)throw new t("missing-verification-code");return new gh({fb:i,eb:o})}function qh(i){if(i.temporaryProof&&i.phoneNumber)return new gh({La:i.temporaryProof,ea:i.phoneNumber});var o=i&&i.providerId;if(!o||"password"===o)return null;var s=i&&i.oauthAccessToken,v=i&&i.oauthTokenSecret,_=i&&i.nonce,$=i&&i.oauthIdToken,ae=i&&i.pendingToken;try{switch(o){case"google.com":return Vg($,s);case"facebook.com":return Rg(s);case"github.com":return Tg(s);case"twitter.com":return Xg(s,v);default:return s||v||$||ae?ae?0==o.indexOf("saml.")?new Eg(o,ae):new Kg(o,{pendingToken:ae,idToken:i.oauthIdToken,accessToken:i.oauthAccessToken},o):new Pg(o).credential({idToken:$,accessToken:s,rawNonce:_}):null}}catch(i){return null}}function rh(i){if(!i.isOAuthProvider)throw new t("invalid-oauth-provider")}function sh(i,o,s,v,_,$,ae){if(this.c=i,this.b=o||null,this.g=s||null,this.f=v||null,this.i=$||null,this.h=ae||null,this.a=_||null,!this.g&&!this.a)throw new t("invalid-auth-event");if(this.g&&this.a)throw new t("invalid-auth-event");if(this.g&&!this.f)throw new t("invalid-auth-event")}function th(i){return(i=i||{}).type?new sh(i.type,i.eventId,i.urlResponse,i.sessionId,i.error&&Aa(i.error),i.postBody,i.tenantId):null}function uh(){this.b=null,this.a=[]}yg.prototype.Ha=function(){return this.a?E(this.a):E(this.b)},yg.prototype.w=function(){return this.type==mo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},Bg.prototype.ka=function(){},Bg.prototype.b=function(){},Bg.prototype.c=function(){},Bg.prototype.w=function(){},Eg.prototype.ka=function(i){return Fg(i,Gg(this))},Eg.prototype.b=function(i,o){var s=Gg(this);return s.idToken=o,Hg(i,s)},Eg.prototype.c=function(i,o){return Cg(Ig(i,Gg(this)),o)},Eg.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},Kg.prototype.ka=function(i){return Fg(i,Lg(this))},Kg.prototype.b=function(i,o){var s=Lg(this);return s.idToken=o,Hg(i,s)},Kg.prototype.c=function(i,o){return Cg(Ig(i,Lg(this)),o)},Kg.prototype.w=function(){var i={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(i.oauthIdToken=this.idToken),this.accessToken&&(i.oauthAccessToken=this.accessToken),this.secret&&(i.oauthTokenSecret=this.secret),this.nonce&&(i.nonce=this.nonce),this.a&&(i.pendingToken=this.a),i},Ng.prototype.Ka=function(i){return this.Jb=nb(i),this},r(Og,Ng),r(Pg,Ng),Pg.prototype.Ca=function(i){return Va(this.a,i)||this.a.push(i),this},Pg.prototype.Rb=function(){return Za(this.a)},Pg.prototype.credential=function(i,o){var s;if(!(s=n(i)?{idToken:i.idToken||null,accessToken:i.accessToken||null,nonce:i.rawNonce||null}:{idToken:i||null,accessToken:o||null}).idToken&&!s.accessToken)throw new t("argument-error","credential failed: must provide the ID token and/or the access token.");return new Kg(this.providerId,s,this.providerId)},r(Qg,Pg),M(Qg,"PROVIDER_ID","facebook.com"),M(Qg,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),r(Sg,Pg),M(Sg,"PROVIDER_ID","github.com"),M(Sg,"GITHUB_SIGN_IN_METHOD","github.com"),r(Ug,Pg),M(Ug,"PROVIDER_ID","google.com"),M(Ug,"GOOGLE_SIGN_IN_METHOD","google.com"),r(Wg,Ng),M(Wg,"PROVIDER_ID","twitter.com"),M(Wg,"TWITTER_SIGN_IN_METHOD","twitter.com"),Yg.prototype.ka=function(i){return this.signInMethod==Zg.EMAIL_LINK_SIGN_IN_METHOD?O(i,os,{email:this.a,oobCode:this.f}):O(i,ks,{email:this.a,password:this.f})},Yg.prototype.b=function(i,o){return this.signInMethod==Zg.EMAIL_LINK_SIGN_IN_METHOD?O(i,ss,{idToken:o,email:this.a,oobCode:this.f}):O(i,bs,{idToken:o,email:this.a,password:this.f})},Yg.prototype.c=function(i,o){return Cg(this.ka(i),o)},Yg.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},N(Zg,{PROVIDER_ID:"password"}),N(Zg,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),N(Zg,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),gh.prototype.ka=function(i){return i.gb(hh(this))},gh.prototype.b=function(i,o){var s=hh(this);return s.idToken=o,O(i,Ds,s)},gh.prototype.c=function(i,o){var s=hh(this);return s.operation="REAUTH",Cg(i=O(i,Ps,s),o)},gh.prototype.w=function(){var i={providerId:"phone"};return this.a.fb&&(i.verificationId=this.a.fb),this.a.eb&&(i.verificationCode=this.a.eb),this.a.La&&(i.temporaryProof=this.a.La),this.a.ea&&(i.phoneNumber=this.a.ea),i},lh.prototype.gb=function(i,o){var s=this.a.a;return E(o.verify()).then((function(v){if("string"!=typeof v)throw new t("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===o.type){var _=n(i)?i.session:null,$=n(i)?i.phoneNumber:i;return(_&&_.type==mo?_.Ha().then((function(i){return mh(s,{idToken:i,phoneEnrollmentInfo:{phoneNumber:$,recaptchaToken:v}})})):_&&_.type==Ro?_.Ha().then((function(o){return nh(s,{mfaPendingCredential:o,mfaEnrollmentId:i.multiFactorHint&&i.multiFactorHint.uid||i.multiFactorUid,phoneSignInInfo:{recaptchaToken:v}})})):oh(s,{phoneNumber:$,recaptchaToken:v})).then((function(i){return"function"==typeof o.reset&&o.reset(),i}),(function(i){throw"function"==typeof o.reset&&o.reset(),i}))}throw new t("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}))},N(lh,{PROVIDER_ID:"phone"}),N(lh,{PHONE_SIGN_IN_METHOD:"phone"}),sh.prototype.getUid=function(){var i=[];return i.push(this.c),this.b&&i.push(this.b),this.f&&i.push(this.f),this.h&&i.push(this.h),i.join("-")},sh.prototype.T=function(){return this.h},sh.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Oo,wo=null;function wh(i){var o=wo;o.a.push(i),o.b||(o.b=function(i){for(var s=0;s Auth section -> Sign in method tab.",i):"http"==v||"https"==v?s=Qb("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",i):o="operation-not-supported-in-this-environment",t.call(this,o,s)}function yh(i,o,s){t.call(this,i,s),(i=o||{}).Kb&&M(this,"email",i.Kb),i.ea&&M(this,"phoneNumber",i.ea),i.credential&&M(this,"credential",i.credential),i.$b&&M(this,"tenantId",i.$b)}function zh(i){if(i.code){var o=i.code||"";0==o.indexOf(rt)&&(o=o.substring(rt.length));var s={credential:qh(i),$b:i.tenantId};if(i.email)s.Kb=i.email;else if(i.phoneNumber)s.ea=i.phoneNumber;else if(!s.credential)return new t(o,i.message||void 0);return new yh(o,s,i.message)}return null}function Ah(){}function Bh(i){return i.c||(i.c=i.b())}function Dh(){}function Eh(i){if(!i.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var o=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],s=0;s=Qh(this).value)for(oa(o)&&(o=o()),i=new Ih(i,String(o),this.f),s&&(i.a=s),s=this;s;)s=s.a};var ko={},Ao=null;function Th(i){var o;if(Ao||(Ao=new Kh(""),ko[""]=Ao,Ao.c=_o),!(o=ko[i])){o=new Kh(i);var s=i.lastIndexOf("."),v=i.substr(s+1);(s=Th(i.substr(0,s))).b||(s.b={}),s.b[v]=o,o.a=s,ko[i]=o}return o}function Uh(i,o){i&&i.log(Eo,o,void 0)}function Vh(i){this.f=i}function Wh(i){H.call(this),this.u=i,this.h=void 0,this.readyState=Po,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=Th("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}r(Vh,Ah),Vh.prototype.a=function(){return new Wh(this.f)},Vh.prototype.b=function(i){return function(){return i}}({}),r(Wh,H);var Po=0;function $h(i){i.c.read().then(i.pc.bind(i)).catch(i.Va.bind(i))}function Zh(i){i.readyState=4,i.g=null,i.c=null,i.m=null,Yh(i)}function Yh(i){i.onreadystatechange&&i.onreadystatechange.call(i)}function ai(i){H.call(this),this.headers=new Jd,this.D=i||null,this.c=!1,this.C=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.J=!1,this.g=0,this.s=null,this.m=To,this.u=this.S=!1}(s=Wh.prototype).open=function(i,o){if(this.readyState!=Po)throw this.abort(),Error("Error reopening a connection");this.s=i,this.f=o,this.readyState=1,Yh(this)},s.send=function(i){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var o={headers:this.l,method:this.s,credentials:this.h,cache:void 0};i&&(o.body=i),this.u.fetch(new Request(this.f,o)).then(this.uc.bind(this),this.Va.bind(this))},s.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Zh(this)),this.readyState=Po},s.uc=function(i){this.a&&(this.g=i,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=i.headers,this.readyState=2,Yh(this)),this.a&&(this.readyState=3,Yh(this),this.a&&("arraybuffer"===this.responseType?i.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):void 0!==ae.ReadableStream&&"body"in i?(this.response=this.responseText="",this.c=i.body.getReader(),this.m=new TextDecoder,$h(this)):i.text().then(this.tc.bind(this),this.Va.bind(this)))))},s.pc=function(i){if(this.a){var o=this.m.decode(i.value?i.value:new Uint8Array(0),{stream:!i.done});o&&(this.response=this.responseText+=o),i.done?Zh(this):Yh(this),3==this.readyState&&$h(this)}},s.tc=function(i){this.a&&(this.response=this.responseText=i,Zh(this))},s.sc=function(i){this.a&&(this.response=i,Zh(this))},s.Va=function(i){var o=this.i;o&&o.log(So,"Failed to fetch url "+this.f,i instanceof Error?i:Error(i)),this.a&&Zh(this)},s.setRequestHeader=function(i,o){this.l.append(i,o)},s.getResponseHeader=function(i){return this.b?this.b.get(i.toLowerCase())||"":((i=this.i)&&i.log(So,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},s.getAllResponseHeaders=function(){if(!this.b){var i=this.i;return i&&i.log(So,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}i=[];for(var o=this.b.entries(),s=o.next();!s.done;)s=s.value,i.push(s[0]+": "+s[1]),s=o.next();return i.join("\r\n")},Object.defineProperty(Wh.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(i){this.h=i?"include":"same-origin"}}),r(ai,H);var To="";ai.prototype.b=Th("goog.net.XhrIo");var Io=/^https?$/i,Fo=["POST","PUT"];function ei(i,o,s,v,_){if(i.a)throw Error("[goog.net.XhrIo] Object is active with another request="+i.l+"; newUri="+o);s=s?s.toUpperCase():"GET",i.l=o,i.h="",i.P=s,i.J=!1,i.c=!0,i.a=i.D?i.D.a():Oo.a(),i.C=i.D?Bh(i.D):Bh(Oo),i.a.onreadystatechange=q(i.Wb,i);try{Uh(i.b,fi(i,"Opening Xhr")),i.N=!0,i.a.open(s,String(o),!0),i.N=!1}catch(o){return Uh(i.b,fi(i,"Error opening Xhr: "+o.message)),void gi(i,o)}o=v||"";var $=new Jd(i.headers);_&&Id(_,(function(i,o){$.set(o,i)})),_=Ta($.Y()),v=ae.FormData&&o instanceof ae.FormData,!Va(Fo,s)||_||v||$.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),$.forEach((function(i,o){this.a.setRequestHeader(o,i)}),i),i.m&&(i.a.responseType=i.m),"withCredentials"in i.a&&i.a.withCredentials!==i.S&&(i.a.withCredentials=i.S);try{hi(i),0=o.l&&o.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(i=new ri(this),si(this),ti(this,!1,i))}},pi.prototype.m=function(i,o){this.i=!1,ti(this,i,o)},pi.prototype.then=function(i,o,s){var v,_,$=new D((function(i,o){v=i,_=o}));return xi(this,v,(function(i){i instanceof ri?$.cancel():_(i)})),$.then(i,o,s)},pi.prototype.$goog_Thenable=!0,r(vi,u),vi.prototype.message="Deferred has already fired",vi.prototype.name="AlreadyCalledError",r(ri,u),ri.prototype.message="Deferred was canceled",ri.prototype.name="CanceledError",Ai.prototype.c=function(){throw delete No[this.a],this.b};var No={};function Bi(i){var o={},s=o.document||document,v=yb(i).toString(),_=oc(document,"SCRIPT"),$={Xb:_,Ma:void 0},ae=new pi($),pe=null,we=null!=o.timeout?o.timeout:5e3;return 0o;o++){_=0|s[o-15],v=0|s[o-2];var $=(0|s[o-16])+((_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3)|0,ae=(0|s[o-7])+((v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)|0;s[o]=$+ae|0}v=0|i.a[0],_=0|i.a[1];var pe=0|i.a[2],we=0|i.a[3],_e=0|i.a[4],et=0|i.a[5],tt=0|i.a[6];for($=0|i.a[7],o=0;64>o;o++){var nt=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&_^v&pe^_&pe)|0;ae=($=$+((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))|0)+((ae=(ae=_e&et^~_e&tt)+(0|zs[o])|0)+(0|s[o])|0)|0,$=tt,tt=et,et=_e,_e=we+ae|0,we=pe,pe=_,_=v,v=ae+nt|0}i.a[0]=i.a[0]+v|0,i.a[1]=i.a[1]+_|0,i.a[2]=i.a[2]+pe|0,i.a[3]=i.a[3]+we|0,i.a[4]=i.a[4]+_e|0,i.a[5]=i.a[5]+et|0,i.a[6]=i.a[6]+tt|0,i.a[7]=i.a[7]+$|0}function pl(i,o,s){void 0===s&&(s=o.length);var v=0,_=i.c;if("string"==typeof o)for(;v=$&&$==(0|$)))throw Error("message must be a byte array");i.f[_++]=$,_==i.b&&(ol(i),_=0)}}i.c=_,i.g+=s}gl.prototype.reset=function(){this.g=this.c=0,this.a=ae.Int32Array?new Int32Array(this.h):Za(this.h)};var Js=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ql(){gl.call(this,8,ed)}r(ql,gl);var ed=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function sl(i,o,s,v,_,$){this.v=i,this.i=o,this.l=s,this.m=v||null,this.u=_||null,this.s=$,this.h=o+":"+s,this.C=new el,this.g=new bl(this.h),this.f=null,this.b=[],this.a=this.c=null}function tl(i){return new t("invalid-cordova-configuration",i)}function ul(){for(var i=20,o=[];0o.c?pl(o,Ks,56-o.c):pl(o,Ks,o.b-(o.c-56));for(var v=63;56<=v;v--)o.f[v]=255&s,s/=256;for(ol(o),v=s=0;v>_&255;return cg(i)}function xl(i,o,s,v,_){var $=ul(),pe=new sh(o,v,null,$,new t("no-auth-event"),null,_),we=L("BuildInfo.packageName",ae);if("string"!=typeof we)throw new t("invalid-cordova-configuration");var _e=L("BuildInfo.displayName",ae),et={};if(K().toLowerCase().match(/iphone|ipad|ipod/))et.ibi=we;else{if(!K().toLowerCase().match(/android/))return F(new t("operation-not-supported-in-this-environment"));et.apn=we}_e&&(et.appDisplayName=_e),$=vl($),et.sessionId=$;var tt=ek(i.v,i.i,i.l,o,s,null,v,i.m,et,i.u,_,i.s);return i.ma().then((function(){var o=i.h;return i.C.a.set(Zs,pe.w(),o)})).then((function(){var o=L("cordova.plugins.browsertab.isAvailable",ae);if("function"!=typeof o)throw new t("invalid-cordova-configuration");var s=null;o((function(o){if(o){if("function"!=typeof(s=L("cordova.plugins.browsertab.openUrl",ae)))throw new t("invalid-cordova-configuration");s(tt)}else{if("function"!=typeof(s=L("cordova.InAppBrowser.open",ae)))throw new t("invalid-cordova-configuration");o=K(),i.a=s(tt,o.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||o.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}function zl(i,o){for(var s=0;si.f&&(i.a=i.f),o)}function ym(i,o){i.stop(),i.b=Fd(zm(i,o)).then((function(){return af()})).then((function(){return i.h()})).then((function(){ym(i,!0)})).o((function(o){i.i(o)&&ym(i,!1)}))}function Am(i){this.f=i,this.b=this.a=null,this.c=Date.now()}function Bm(i,o){void 0===o&&(i.b?o=(o=i.b).a-o.g:o=0),i.c=Date.now()+1e3*o}function Cm(i,o){i.b=jg(o[Qo]||""),i.a=o.refreshToken,Bm(i,void 0!==(o=o.expiresIn)?Number(o):void 0)}function Dm(i,o){i.b=o.b,i.a=o.a,i.c=o.c}function Em(i,o){return Wi(i.f,o).then((function(o){return i.b=jg(o.access_token),i.a=o.refresh_token,Bm(i,o.expires_in),{accessToken:i.b.toString(),refreshToken:i.a}})).o((function(o){throw"auth/user-token-expired"==o.code&&(i.a=null),o}))}function Fm(i,o){this.a=i||null,this.b=o||null,N(this,{lastSignInTime:bf(o||null),creationTime:bf(i||null)})}function Gm(i){return new Fm(i.a,i.b)}function Hm(i,o,s,v,_,$){N(this,{uid:i,displayName:v||null,photoURL:_||null,email:s||null,phoneNumber:$||null,providerId:o})}function Im(i,s,v){this.N=[],this.l=i.apiKey,this.m=i.appName,this.s=i.authDomain||null;var _=o.a.SDK_VERSION?Oe(o.a.SDK_VERSION):null;this.a=new Ii(this.l,Ca(nt),_),(this.u=i.emulatorConfig||null)&&Pi(this.a,this.u),this.h=new Am(this.a),Jm(this,s[Qo]),Cm(this.h,s),M(this,"refreshToken",this.h.a),Km(this,v||{}),H.call(this),this.P=!1,this.s&&Re()&&(this.b=Xl(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=Lm(this),this.ba=q(this.ib,this);var $=this;this.za=null,this.Pa=function(i){$.xa(i.h)},this.qa=null,this.Ba=function(i){Mm($,i.c)},this.$=null,this.aa=[],this.Oa=function(i){Nm($,i.f)},this.ja=null,this.S=new tm(this,v),M(this,"multiFactor",this.S)}function Mm(i,o){i.u=o,Pi(i.a,o),i.b&&(o=i.b,i.b=Xl(i.s,i.l,i.m,i.u),i.P&&(Ql(o,i),Pl(i.b,i)))}function Om(i,o){i.qa&&xd(i.qa,"languageCodeChanged",i.Pa),(i.qa=o)&&nd(o,"languageCodeChanged",i.Pa)}function Pm(i,o){i.$&&xd(i.$,"emulatorConfigChanged",i.Ba),(i.$=o)&&nd(o,"emulatorConfigChanged",i.Ba)}function Nm(i,s){i.aa=s,Ri(i.a,o.a.SDK_VERSION?Oe(o.a.SDK_VERSION,i.aa):null)}function Qm(i,o){i.ja&&xd(i.ja,"frameworkChanged",i.Oa),(i.ja=o)&&nd(o,"frameworkChanged",i.Oa)}function Rm(i){try{return o.a.app(i.m).auth()}catch(o){throw new t("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+i.m+"'!")}}function Lm(i){return new xm((function(){return i.I(!0)}),(function(i){return!(!i||"auth/network-request-failed"!=i.code)}),(function(){var o=i.h.c-Date.now()-3e5;return 0this.c-3e4?this.a?Em(this,{grant_type:"refresh_token",refresh_token:this.a}):E(null):E({accessToken:this.b.toString(),refreshToken:this.a})},Fm.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},r(Im,H),Im.prototype.xa=function(i){this.za=i,Oi(this.a,i)},Im.prototype.la=function(){return this.za},Im.prototype.Ga=function(){return Za(this.aa)},Im.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},M(Im.prototype,"providerId","firebase"),(s=Im.prototype).reload=function(){var i=this;return R(this,Ym(this).then((function(){return dn(i).then((function(){return Vm(i)})).then(Xm)})))},s.oc=function(i){return this.I(i).then((function(i){return new hm(i)}))},s.I=function(i){var o=this;return R(this,Ym(this).then((function(){return o.h.getToken(i)})).then((function(i){if(!i)throw new t("internal-error");return i.accessToken!=o.Aa&&(Jm(o,i.accessToken),o.dispatchEvent(new sm("tokenChanged"))),bn(o,"refreshToken",i.refreshToken),i.accessToken})))},s.Kc=function(i){if(!(i=i.users)||!i.length)throw new t("internal-error");Km(this,{uid:(i=i[0]).localId,displayName:i.displayName,photoURL:i.photoUrl,email:i.email,emailVerified:!!i.emailVerified,phoneNumber:i.phoneNumber,lastLoginAt:i.lastLoginAt,createdAt:i.createdAt,tenantId:i.tenantId});for(var o=fn(i),s=0;sthis.u&&(this.u=0),0==this.u&&U(this)&&Tm(U(this)),this.removeAuthTokenListener(i)},s.addAuthTokenListener=function(i){var o=this;this.s.push(i),T(this,this.h.then((function(){o.l||Va(o.s,i)&&i(Wn(o))})))},s.removeAuthTokenListener=function(i){Xa(this.s,(function(o){return o==i}))},s.delete=function(){this.l=!0;for(var i=0;i_||_>=ru.length)throw new t("internal-error","Argument validator received an unsupported number of arguments.");s=ru[_],v=(v?"":s+" argument ")+(o.name?'"'+o.name+'" ':"")+"must be "+o.K+".";break e}v=null}}if(v)throw new t("argument-error",i+" failed: "+v)}(s=lo.prototype).Ia=function(){var i=this;return this.f?this.f:this.f=so(this,E().then((function(){if(Se()&&!Je())return Ee();throw new t("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return i.m.g(i.u())})).then((function(o){return i.g=o,O(i.s,ms,{})})).then((function(o){i.a[nu]=o.recaptchaSiteKey})).o((function(o){throw i.f=null,o})))},s.render=function(){to(this);var i=this;return so(this,this.Ia().then((function(){if(null===i.c){var o=i.v;if(!i.i){var s=kc(o);o=nc("DIV"),s.appendChild(o)}i.c=i.g.render(o,i.a)}return i.c})))},s.verify=function(){to(this);var i=this;return so(this,this.render().then((function(o){return new D((function(s){var v=i.g.getResponse(o);if(v)s(v);else{var e=function(o){o&&(ro(i,e),s(o))};i.l.push(e),i.i&&i.g.execute(i.c)}}))})))},s.reset=function(){to(this),null!==this.c&&this.g.reset(this.c)},s.clear=function(){to(this),this.J=!0,this.m.c();for(var i=0;is?v.push(i.substring(_,s)):v.push(i.substring(_,_+o));return v};function each(i,o){for(var s in i)i.hasOwnProperty(s)&&o(s,i[s])}var doubleToIEEE754String=function(i){Object($.d)(!isInvalidJSONNumber(i),"Invalid JSON number");var o,s,v,_,ae,pe=1023;0===i?(s=0,v=0,o=1/i==-1/0?1:0):(o=i<0,(i=Math.abs(i))>=Math.pow(2,-1022)?(s=(_=Math.min(Math.floor(Math.log(i)/Math.LN2),pe))+pe,v=Math.round(i*Math.pow(2,52-_)-Math.pow(2,52))):(s=0,v=Math.round(i/Math.pow(2,-1074))));var we=[];for(ae=52;ae;ae-=1)we.push(v%2?1:0),v=Math.floor(v/2);for(ae=11;ae;ae-=1)we.push(s%2?1:0),s=Math.floor(s/2);we.push(o?1:0),we.reverse();var _e=we.join(""),et="";for(ae=0;ae<64;ae+=8){var tt=parseInt(_e.substr(ae,8),2).toString(16);1===tt.length&&(tt="0"+tt),et+=tt}return et.toLowerCase()};function errorForServerCode(i,o){var s="Unknown Error";"too_big"===i?s="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===i?s="Client doesn't have permission to access the desired data.":"unavailable"===i&&(s="The service is unavailable");var v=new Error(i+" at "+o._path.toString()+": "+s);return v.code=i.toUpperCase(),v}var ct=new RegExp("^-?(0*)\\d{1,10}$"),ht=-2147483648,pt=2147483647,tryParseInt=function(i){if(ct.test(i)){var o=Number(i);if(o>=ht&&o<=pt)return o}return null},exceptionGuard=function(i){try{i()}catch(i){setTimeout((function(){var o=i.stack||"";throw warn("Exception was thrown by user callback.",o),i}),Math.floor(0))}},setTimeoutNonBlocking=function(i,o){var s=setTimeout(i,o);return"object"==typeof s&&s.unref&&s.unref(),s},ft=function(){function AppCheckTokenProvider(i,o){var s=this;this.appName_=i,this.appCheckProvider=o,this.appCheck=null==o?void 0:o.getImmediate({optional:!0}),this.appCheck||null==o||o.get().then((function(i){return s.appCheck=i}))}return AppCheckTokenProvider.prototype.getToken=function(i){var o=this;return this.appCheck?this.appCheck.getToken(i):new Promise((function(s,v){setTimeout((function(){o.appCheck?o.getToken(i).then(s,v):s(null)}),0)}))},AppCheckTokenProvider.prototype.addTokenChangeListener=function(i){var o;null===(o=this.appCheckProvider)||void 0===o||o.get().then((function(o){return o.addTokenListener(i)}))},AppCheckTokenProvider.prototype.notifyForInvalidToken=function(){warn('Provided AppCheck credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly.')},AppCheckTokenProvider}(),gt=function(){function FirebaseAuthTokenProvider(i,o,s){var v=this;this.appName_=i,this.firebaseOptions_=o,this.authProvider_=s,this.auth_=null,this.auth_=s.getImmediate({optional:!0}),this.auth_||s.onInit((function(i){return v.auth_=i}))}return FirebaseAuthTokenProvider.prototype.getToken=function(i){var o=this;return this.auth_?this.auth_.getToken(i).catch((function(i){return i&&"auth/token-not-initialized"===i.code?(log("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(i)})):new Promise((function(s,v){setTimeout((function(){o.auth_?o.getToken(i).then(s,v):s(null)}),0)}))},FirebaseAuthTokenProvider.prototype.addTokenChangeListener=function(i){this.auth_?this.auth_.addAuthTokenListener(i):this.authProvider_.get().then((function(o){return o.addAuthTokenListener(i)}))},FirebaseAuthTokenProvider.prototype.removeTokenChangeListener=function(i){this.authProvider_.get().then((function(o){return o.removeAuthTokenListener(i)}))},FirebaseAuthTokenProvider.prototype.notifyForInvalidToken=function(){var i='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?i+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?i+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':i+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',warn(i)},FirebaseAuthTokenProvider}(),mt=function(){function EmulatorTokenProvider(i){this.accessToken=i}return EmulatorTokenProvider.prototype.getToken=function(i){return Promise.resolve({accessToken:this.accessToken})},EmulatorTokenProvider.prototype.addTokenChangeListener=function(i){i(this.accessToken)},EmulatorTokenProvider.prototype.removeTokenChangeListener=function(i){},EmulatorTokenProvider.prototype.notifyForInvalidToken=function(){},EmulatorTokenProvider.OWNER="owner",EmulatorTokenProvider}(),yt="5",vt=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Rt="ac",bt="websocket",Ot="long_polling",xt=function(){function RepoInfo(i,o,s,v,_,$,ae){void 0===_&&(_=!1),void 0===$&&($=""),void 0===ae&&(ae=!1),this.secure=o,this.namespace=s,this.webSocketOnly=v,this.nodeAdmin=_,this.persistenceKey=$,this.includeNamespaceInQueryParams=ae,this._host=i.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=nt.get("host:"+i)||this._host}return RepoInfo.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},RepoInfo.prototype.isCustomHost=function(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain},Object.defineProperty(RepoInfo.prototype,"host",{get:function(){return this._host},set:function(i){i!==this.internalHost&&(this.internalHost=i,this.isCacheableHost()&&nt.set("host:"+this._host,this.internalHost))},enumerable:!1,configurable:!0}),RepoInfo.prototype.toString=function(){var i=this.toURLString();return this.persistenceKey&&(i+="<"+this.persistenceKey+">"),i},RepoInfo.prototype.toURLString=function(){var i=this.secure?"https://":"http://",o=this.includeNamespaceInQueryParams?"?ns="+this.namespace:"";return""+i+this.host+"/"+o},RepoInfo}();function repoInfoNeedsQueryParam(i){return i.host!==i.internalHost||i.isCustomHost()||i.includeNamespaceInQueryParams}function repoInfoConnectionURL(i,o,s){var v;if(Object($.d)("string"==typeof o,"typeof type must == string"),Object($.d)("object"==typeof s,"typeof params must == object"),o===bt)v=(i.secure?"wss://":"ws://")+i.internalHost+"/.ws?";else{if(o!==Ot)throw new Error("Unknown connection type: "+o);v=(i.secure?"https://":"http://")+i.internalHost+"/.lp?"}repoInfoNeedsQueryParam(i)&&(s.ns=i.namespace);var _=[];return each(s,(function(i,o){_.push(i+"="+o)})),v+_.join("&")}var wt=function(){function StatsCollection(){this.counters_={}}return StatsCollection.prototype.incrementCounter=function(i,o){void 0===o&&(o=1),Object($.h)(this.counters_,i)||(this.counters_[i]=0),this.counters_[i]+=o},StatsCollection.prototype.get=function(){return Object($.k)(this.counters_)},StatsCollection}(),Ct={},St={};function statsManagerGetCollection(i){var o=i.toString();return Ct[o]||(Ct[o]=new wt),Ct[o]}var _t=function(){function PacketReceiver(i){this.onMessage_=i,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return PacketReceiver.prototype.closeAfter=function(i,o){this.closeAfterResponse=i,this.onClose=o,this.closeAfterResponsedocument.domain="'+document.domain+'";<\/script>';var ae=""+_+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(ae),this.myIFrame.doc.close()}catch(i){log("frame writing exception"),i.stack&&log(i.stack),log(i)}}}return FirebaseIFrameScriptHolder.createIFrame_=function(){var i=document.createElement("iframe");if(i.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(i);try{i.contentWindow.document||log("No IE domain setting required")}catch(s){var o=document.domain;i.src="javascript:void((function(){document.open();document.domain='"+o+"';document.close();})())"}return i.contentDocument?i.doc=i.contentDocument:i.contentWindow?i.doc=i.contentWindow.document:i.document&&(i.doc=i.document),i},FirebaseIFrameScriptHolder.prototype.close=function(){var i=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==i.myIFrame&&(document.body.removeChild(i.myIFrame),i.myIFrame=null)}),Math.floor(0)));var o=this.onDisconnect;o&&(this.onDisconnect=null,o())},FirebaseIFrameScriptHolder.prototype.startLongPoll=function(i,o){for(this.myID=i,this.myPW=o,this.alive=!0;this.newRequest_(););},FirebaseIFrameScriptHolder.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var i={};i.id=this.myID,i.pw=this.myPW,i.ser=this.currentSerial;for(var o=this.urlFn(i),s="",v=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+s.length<=1870))break;var _=this.pendingSegs.shift();s=s+"&seg"+v+"="+_.seg+"&ts"+v+"="+_.ts+"&d"+v+"="+_.d,v++}return o+=s,this.addLongPollTag_(o,this.currentSerial),!0}return!1},FirebaseIFrameScriptHolder.prototype.enqueueSegment=function(i,o,s){this.pendingSegs.push({seg:i,ts:o,d:s}),this.alive&&this.newRequest_()},FirebaseIFrameScriptHolder.prototype.addLongPollTag_=function(i,o){var s=this;this.outstandingRequests.add(o);var doNewRequest=function(){s.outstandingRequests.delete(o),s.newRequest_()},v=setTimeout(doNewRequest,Math.floor(25e3));this.addTag(i,(function(){clearTimeout(v),doNewRequest()}))},FirebaseIFrameScriptHolder.prototype.addTag=function(i,o){var s=this;Object($.t)()?this.doNodeLongPoll(i,o):setTimeout((function(){try{if(!s.sendNewPolls)return;var v=s.myIFrame.doc.createElement("script");v.type="text/javascript",v.async=!0,v.src=i,v.onload=v.onreadystatechange=function(){var i=v.readyState;i&&"loaded"!==i&&"complete"!==i||(v.onload=v.onreadystatechange=null,v.parentNode&&v.parentNode.removeChild(v),o())},v.onerror=function(){log("Long-poll script failed to load: "+i),s.sendNewPolls=!1,s.close()},s.myIFrame.doc.body.appendChild(v)}catch(i){}}),Math.floor(1))},FirebaseIFrameScriptHolder}(),Dt=null;"undefined"!=typeof MozWebSocket?Dt=MozWebSocket:"undefined"!=typeof WebSocket&&(Dt=WebSocket);var Pt=function(){function WebSocketConnection(i,o,s,v,_,$,ae){this.connId=i,this.applicationId=s,this.appCheckToken=v,this.authToken=_,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=logWrapper(this.connId),this.stats_=statsManagerGetCollection(o),this.connURL=WebSocketConnection.connectionURL_(o,$,ae,v),this.nodeAdmin=o.nodeAdmin}return WebSocketConnection.connectionURL_=function(i,o,s,v){var _={};return _.v=yt,!Object($.t)()&&"undefined"!=typeof location&&location.hostname&&vt.test(location.hostname)&&(_.r="f"),o&&(_.s=o),s&&(_.ls=s),v&&(_[Rt]=v),repoInfoConnectionURL(i,bt,_)},WebSocketConnection.prototype.open=function(o,s){var v=this;this.onDisconnect=s,this.onMessage=o,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,nt.set("previous_websocket_failure",!0);try{if(Object($.t)()){var _=this.nodeAdmin?"AdminNode":"Node",ae={headers:{"User-Agent":"Firebase/5/"+we+"/"+i.platform+"/"+_,"X-Firebase-GMPID":this.applicationId||""}};this.authToken&&(ae.headers.Authorization="Bearer "+this.authToken),this.appCheckToken&&(ae.headers["X-Firebase-AppCheck"]=this.appCheckToken);var pe=Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}),_e=0===this.connURL.indexOf("wss://")?pe.HTTPS_PROXY||pe.https_proxy:pe.HTTP_PROXY||pe.http_proxy;_e&&(ae.proxy={origin:_e}),this.mySock=new Dt(this.connURL,[],ae)}else{ae={headers:{"X-Firebase-GMPID":this.applicationId||"","X-Firebase-AppCheck":this.appCheckToken||""}};this.mySock=new Dt(this.connURL,[],ae)}}catch(i){this.log_("Error instantiating WebSocket.");var et=i.message||i.data;return et&&this.log_(et),void this.onClosed_()}this.mySock.onopen=function(){v.log_("Websocket connected."),v.everConnected_=!0},this.mySock.onclose=function(){v.log_("Websocket connection was disconnected."),v.mySock=null,v.onClosed_()},this.mySock.onmessage=function(i){v.handleIncomingFrame(i)},this.mySock.onerror=function(i){v.log_("WebSocket error. Closing connection.");var o=i.message||i.data;o&&v.log_(o),v.onClosed_()}},WebSocketConnection.prototype.start=function(){},WebSocketConnection.forceDisallow=function(){WebSocketConnection.forceDisallow_=!0},WebSocketConnection.isAvailable=function(){var i=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var o=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);o&&o.length>1&&parseFloat(o[1])<4.4&&(i=!0)}return!i&&null!==Dt&&!WebSocketConnection.forceDisallow_},WebSocketConnection.previouslyFailed=function(){return nt.isInMemoryStorage||!0===nt.get("previous_websocket_failure")},WebSocketConnection.prototype.markConnectionHealthy=function(){nt.remove("previous_websocket_failure")},WebSocketConnection.prototype.appendFrame_=function(i){if(this.frames.push(i),this.frames.length===this.totalFrames){var o=this.frames.join("");this.frames=null;var s=Object($.w)(o);this.onMessage(s)}},WebSocketConnection.prototype.handleNewFrameCount_=function(i){this.totalFrames=i,this.frames=[]},WebSocketConnection.prototype.extractFrameCount_=function(i){if(Object($.d)(null===this.frames,"We already have a frame buffer"),i.length<=6){var o=Number(i);if(!isNaN(o))return this.handleNewFrameCount_(o),null}return this.handleNewFrameCount_(1),i},WebSocketConnection.prototype.handleIncomingFrame=function(i){if(null!==this.mySock){var o=i.data;if(this.bytesReceived+=o.length,this.stats_.incrementCounter("bytes_received",o.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(o);else{var s=this.extractFrameCount_(o);null!==s&&this.appendFrame_(s)}}},WebSocketConnection.prototype.send=function(i){this.resetKeepAlive();var o=Object($.C)(i);this.bytesSent+=o.length,this.stats_.incrementCounter("bytes_sent",o.length);var s=splitStringBySize(o,16384);s.length>1&&this.sendString_(String(s.length));for(var v=0;v0)return this.transports_[0];throw new Error("No transports available")},TransportManager.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},TransportManager}(),It=function(){function Connection(i,o,s,v,_,$,ae,pe,we,_e){this.id=i,this.repoInfo_=o,this.applicationId_=s,this.appCheckToken_=v,this.authToken_=_,this.onMessage_=$,this.onReady_=ae,this.onDisconnect_=pe,this.onKill_=we,this.lastSessionId=_e,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=logWrapper("c:"+this.id+":"),this.transportManager_=new Tt(o),this.log_("Connection created"),this.start_()}return Connection.prototype.start_=function(){var i=this,o=this.transportManager_.initialTransport();this.conn_=new o(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=o.responsesRequiredToBeHealthy||0;var s=this.connReceiver_(this.conn_),v=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){i.conn_&&i.conn_.open(s,v)}),Math.floor(0));var _=o.healthyTimeout||0;_>0&&(this.healthyTimeout_=setTimeoutNonBlocking((function(){i.healthyTimeout_=null,i.isHealthy_||(i.conn_&&i.conn_.bytesReceived>102400?(i.log_("Connection exceeded healthy timeout but has received "+i.conn_.bytesReceived+" bytes. Marking connection healthy."),i.isHealthy_=!0,i.conn_.markConnectionHealthy()):i.conn_&&i.conn_.bytesSent>10240?i.log_("Connection exceeded healthy timeout but has sent "+i.conn_.bytesSent+" bytes. Leaving connection alive."):(i.log_("Closing unhealthy connection after timeout."),i.close()))}),Math.floor(_)))},Connection.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},Connection.prototype.disconnReceiver_=function(i){var o=this;return function(s){i===o.conn_?o.onConnectionLost_(s):i===o.secondaryConn_?(o.log_("Secondary connection lost."),o.onSecondaryConnectionLost_()):o.log_("closing an old connection")}},Connection.prototype.connReceiver_=function(i){var o=this;return function(s){2!==o.state_&&(i===o.rx_?o.onPrimaryMessageReceived_(s):i===o.secondaryConn_?o.onSecondaryMessageReceived_(s):o.log_("message on old connection"))}},Connection.prototype.sendRequest=function(i){var o={t:"d",d:i};this.sendData_(o)},Connection.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},Connection.prototype.onSecondaryControl_=function(i){if("t"in i){var o=i.t;"a"===o?this.upgradeIfSecondaryHealthy_():"r"===o?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===o&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},Connection.prototype.onSecondaryMessageReceived_=function(i){var o=requireKey("t",i),s=requireKey("d",i);if("c"===o)this.onSecondaryControl_(s);else{if("d"!==o)throw new Error("Unknown protocol layer: "+o);this.pendingDataMessages.push(s)}},Connection.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},Connection.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},Connection.prototype.onPrimaryMessageReceived_=function(i){var o=requireKey("t",i),s=requireKey("d",i);"c"===o?this.onControl_(s):"d"===o&&this.onDataMessage_(s)},Connection.prototype.onDataMessage_=function(i){this.onPrimaryResponse_(),this.onMessage_(i)},Connection.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},Connection.prototype.onControl_=function(i){var o=requireKey("t",i);if("d"in i){var s=i.d;if("h"===o)this.onHandshake_(s);else if("n"===o){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var v=0;v0,"Requires a non-empty array")}return EventEmitter.prototype.trigger=function(i){for(var o=[],s=1;s0&&(this.pieces_[s]=this.pieces_[v],s++);this.pieces_.length=s,this.pieceNum_=0}else this.pieces_=i,this.pieceNum_=o}return Path.prototype.toString=function(){for(var i="",o=this.pieceNum_;o=i.pieces_.length?null:i.pieces_[i.pieceNum_]}function pathGetLength(i){return i.pieces_.length-i.pieceNum_}function pathPopFront(i){var o=i.pieceNum_;return o=i.pieces_.length)return null;for(var o=[],s=i.pieceNum_;s0&&s.push(_[v])}return new Mt(s,0)}function pathIsEmpty(i){return i.pieceNum_>=i.pieces_.length}function newRelativePath(i,o){var s=pathGetFront(i),v=pathGetFront(o);if(null===s)return o;if(s===v)return newRelativePath(pathPopFront(i),pathPopFront(o));throw new Error("INTERNAL ERROR: innerPath ("+o+") is not within outerPath ("+i+")")}function pathCompare(i,o){for(var s=pathSlice(i,0),v=pathSlice(o,0),_=0;_pathGetLength(o))return!1;for(;s0&&(i.byteLength_+=1),i.parts_.push(o),i.byteLength_+=Object($.A)(o),validationPathCheckValid(i)}function validationPathCheckValid(i){if(i.byteLength_>jt)throw new Error(i.errorPrefix_+"has a key path longer than "+jt+" bytes ("+i.byteLength_+").");if(i.parts_.length>Lt)throw new Error(i.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+Lt+") or object contains a cycle "+validationPathToErrorString(i))}function validationPathToErrorString(i){return 0===i.parts_.length?"":"in property '"+i.parts_.join(".")+"'"}var Vt,Ut,Wt=function(i){function VisibilityMonitor(){var o,s,v=i.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(s="visibilitychange",o="hidden"):void 0!==document.mozHidden?(s="mozvisibilitychange",o="mozHidden"):void 0!==document.msHidden?(s="msvisibilitychange",o="msHidden"):void 0!==document.webkitHidden&&(s="webkitvisibilitychange",o="webkitHidden")),v.visible_=!0,s&&document.addEventListener(s,(function(){var i=!document[o];i!==v.visible_&&(v.visible_=i,v.trigger("visible",i))}),!1),v}return Object(ae.__extends)(VisibilityMonitor,i),VisibilityMonitor.getInstance=function(){return new VisibilityMonitor},VisibilityMonitor.prototype.getInitialEvent=function(i){return Object($.d)("visible"===i,"Unknown event type: "+i),[this.visible_]},VisibilityMonitor}(Nt),$t=1e3,qt=function(i){function PersistentConnection(o,s,v,_,ae,pe,we,_e){var et=i.call(this)||this;if(et.repoInfo_=o,et.applicationId_=s,et.onDataUpdate_=v,et.onConnectStatus_=_,et.onServerInfoUpdate_=ae,et.authTokenProvider_=pe,et.appCheckTokenProvider_=we,et.authOverride_=_e,et.id=PersistentConnection.nextPersistentConnectionId_++,et.log_=logWrapper("p:"+et.id+":"),et.interruptReasons_={},et.listens=new Map,et.outstandingPuts_=[],et.outstandingGets_=[],et.outstandingPutCount_=0,et.outstandingGetCount_=0,et.onDisconnectRequestQueue_=[],et.connected_=!1,et.reconnectDelay_=$t,et.maxReconnectDelay_=3e5,et.securityDebugCallback_=null,et.lastSessionId=null,et.establishConnectionTimer_=null,et.visible_=!1,et.requestCBHash_={},et.requestNumber_=0,et.realtime_=null,et.authToken_=null,et.appCheckToken_=null,et.forceTokenRefresh_=!1,et.invalidAuthTokenCount_=0,et.invalidAppCheckTokenCount_=0,et.firstConnection_=!0,et.lastConnectionAttemptTime_=null,et.lastConnectionEstablishedTime_=null,_e&&!Object($.t)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return Wt.getInstance().on("visible",et.onVisible_,et),-1===o.host.indexOf("fblocal")&&Bt.getInstance().on("online",et.onOnline_,et),et}return Object(ae.__extends)(PersistentConnection,i),PersistentConnection.prototype.sendRequest=function(i,o,s){var v=++this.requestNumber_,_={r:v,a:i,b:o};this.log_(Object($.C)(_)),Object($.d)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(_),s&&(this.requestCBHash_[v]=s)},PersistentConnection.prototype.get=function(i){var o=this;this.initConnection_();var s=new $.a,v={p:i._path.toString(),q:i._queryObject},_={action:"g",request:v,onComplete:function(i){var _=i.d;"ok"===i.s?(o.onDataUpdate_(v.p,_,!1,null),s.resolve(_)):s.reject(_)}};this.outstandingGets_.push(_),this.outstandingGetCount_++;var ae=this.outstandingGets_.length-1;return this.connected_||setTimeout((function(){var i=o.outstandingGets_[ae];void 0!==i&&_===i&&(delete o.outstandingGets_[ae],o.outstandingGetCount_--,0===o.outstandingGetCount_&&(o.outstandingGets_=[]),o.log_("get "+ae+" timed out on connection"),s.reject(new Error("Client is offline.")))}),3e3),this.connected_&&this.sendGet_(ae),s.promise},PersistentConnection.prototype.listen=function(i,o,s,v){this.initConnection_();var _=i._queryIdentifier,ae=i._path.toString();this.log_("Listen called for "+ae+" "+_),this.listens.has(ae)||this.listens.set(ae,new Map),Object($.d)(i._queryParams.isDefault()||!i._queryParams.loadsAllData(),"listen() called for non-default but complete query"),Object($.d)(!this.listens.get(ae).has(_),"listen() called twice for same path/queryId.");var pe={onComplete:v,hashFn:o,query:i,tag:s};this.listens.get(ae).set(_,pe),this.connected_&&this.sendListen_(pe)},PersistentConnection.prototype.sendGet_=function(i){var o=this,s=this.outstandingGets_[i];this.sendRequest("g",s.request,(function(v){delete o.outstandingGets_[i],o.outstandingGetCount_--,0===o.outstandingGetCount_&&(o.outstandingGets_=[]),s.onComplete&&s.onComplete(v)}))},PersistentConnection.prototype.sendListen_=function(i){var o=this,s=i.query,v=s._path.toString(),_=s._queryIdentifier;this.log_("Listen on "+v+" for "+_);var $={p:v};i.tag&&($.q=s._queryObject,$.t=i.tag),$.h=i.hashFn(),this.sendRequest("q",$,(function($){var ae=$.d,pe=$.s;PersistentConnection.warnOnListenWarnings_(ae,s),(o.listens.get(v)&&o.listens.get(v).get(_))===i&&(o.log_("listen response",$),"ok"!==pe&&o.removeListen_(v,_),i.onComplete&&i.onComplete(pe,ae))}))},PersistentConnection.warnOnListenWarnings_=function(i,o){if(i&&"object"==typeof i&&Object($.h)(i,"w")){var s=Object($.z)(i,"w");if(Array.isArray(s)&&~s.indexOf("no_index")){var v='".indexOn": "'+o._queryParams.getIndex().toString()+'"',_=o._path.toString();warn("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+v+" at "+_+" to your security rules for better performance.")}}},PersistentConnection.prototype.refreshAuthToken=function(i){this.authToken_=i,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(i)},PersistentConnection.prototype.reduceReconnectDelayIfAdminCredential_=function(i){(i&&40===i.length||Object($.o)(i))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},PersistentConnection.prototype.refreshAppCheckToken=function(i){this.appCheckToken_=i,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(function(){}))},PersistentConnection.prototype.tryAuth=function(){var i=this;if(this.connected_&&this.authToken_){var o=this.authToken_,s=Object($.v)(o)?"auth":"gauth",v={cred:o};null===this.authOverride_?v.noauth=!0:"object"==typeof this.authOverride_&&(v.authvar=this.authOverride_),this.sendRequest(s,v,(function(s){var v=s.s,_=s.d||"error";i.authToken_===o&&("ok"===v?i.invalidAuthTokenCount_=0:i.onAuthRevoked_(v,_))}))}},PersistentConnection.prototype.tryAppCheck=function(){var i=this;this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(function(o){var s=o.s,v=o.d||"error";"ok"===s?i.invalidAppCheckTokenCount_=0:i.onAppCheckRevoked_(s,v)}))},PersistentConnection.prototype.unlisten=function(i,o){var s=i._path.toString(),v=i._queryIdentifier;this.log_("Unlisten called for "+s+" "+v),Object($.d)(i._queryParams.isDefault()||!i._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(s,v)&&this.connected_&&this.sendUnlisten_(s,v,i._queryObject,o)},PersistentConnection.prototype.sendUnlisten_=function(i,o,s,v){this.log_("Unlisten on "+i+" for "+o);var _={p:i};v&&(_.q=s,_.t=v),this.sendRequest("n",_)},PersistentConnection.prototype.onDisconnectPut=function(i,o,s){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",i,o,s):this.onDisconnectRequestQueue_.push({pathString:i,action:"o",data:o,onComplete:s})},PersistentConnection.prototype.onDisconnectMerge=function(i,o,s){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",i,o,s):this.onDisconnectRequestQueue_.push({pathString:i,action:"om",data:o,onComplete:s})},PersistentConnection.prototype.onDisconnectCancel=function(i,o){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",i,null,o):this.onDisconnectRequestQueue_.push({pathString:i,action:"oc",data:null,onComplete:o})},PersistentConnection.prototype.sendOnDisconnect_=function(i,o,s,v){var _={p:o,d:s};this.log_("onDisconnect "+i,_),this.sendRequest(i,_,(function(i){v&&setTimeout((function(){v(i.s,i.d)}),Math.floor(0))}))},PersistentConnection.prototype.put=function(i,o,s,v){this.putInternal("p",i,o,s,v)},PersistentConnection.prototype.merge=function(i,o,s,v){this.putInternal("m",i,o,s,v)},PersistentConnection.prototype.putInternal=function(i,o,s,v,_){this.initConnection_();var $={p:o,d:s};void 0!==_&&($.h=_),this.outstandingPuts_.push({action:i,request:$,onComplete:v}),this.outstandingPutCount_++;var ae=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(ae):this.log_("Buffering put: "+o)},PersistentConnection.prototype.sendPut_=function(i){var o=this,s=this.outstandingPuts_[i].action,v=this.outstandingPuts_[i].request,_=this.outstandingPuts_[i].onComplete;this.outstandingPuts_[i].queued=this.connected_,this.sendRequest(s,v,(function(v){o.log_(s+" response",v),delete o.outstandingPuts_[i],o.outstandingPutCount_--,0===o.outstandingPutCount_&&(o.outstandingPuts_=[]),_&&_(v.s,v.d)}))},PersistentConnection.prototype.reportStats=function(i){var o=this;if(this.connected_){var s={c:i};this.log_("reportStats",s),this.sendRequest("s",s,(function(i){if("ok"!==i.s){var s=i.d;o.log_("reportStats","Error sending stats: "+s)}}))}},PersistentConnection.prototype.onDataMessage_=function(i){if("r"in i){this.log_("from server: "+Object($.C)(i));var o=i.r,s=this.requestCBHash_[o];s&&(delete this.requestCBHash_[o],s(i.b))}else{if("error"in i)throw"A server-side error has occurred: "+i.error;"a"in i&&this.onDataPush_(i.a,i.b)}},PersistentConnection.prototype.onDataPush_=function(i,o){this.log_("handleServerMessage",i,o),"d"===i?this.onDataUpdate_(o.p,o.d,!1,o.t):"m"===i?this.onDataUpdate_(o.p,o.d,!0,o.t):"c"===i?this.onListenRevoked_(o.p,o.q):"ac"===i?this.onAuthRevoked_(o.s,o.d):"apc"===i?this.onAppCheckRevoked_(o.s,o.d):"sd"===i?this.onSecurityDebugPacket_(o):error("Unrecognized action received from server: "+Object($.C)(i)+"\nAre you using the latest client?")},PersistentConnection.prototype.onReady_=function(i,o){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(i),this.lastSessionId=o,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},PersistentConnection.prototype.scheduleConnect_=function(i){var o=this;Object($.d)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){o.establishConnectionTimer_=null,o.establishConnection_()}),Math.floor(i))},PersistentConnection.prototype.initConnection_=function(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)},PersistentConnection.prototype.onVisible_=function(i){i&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0)),this.visible_=i},PersistentConnection.prototype.onOnline_=function(i){i?(this.log_("Browser went online."),this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},PersistentConnection.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=$t),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var i=(new Date).getTime()-this.lastConnectionAttemptTime_,o=Math.max(0,this.reconnectDelay_-i);o=Math.random()*o,this.log_("Trying to reconnect in "+o+"ms"),this.scheduleConnect_(o),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},PersistentConnection.prototype.establishConnection_=function(){return Object(ae.__awaiter)(this,void 0,void 0,(function(){var i,o,s,v,_,pe,we,_e,et,tt,nt,rt,it,ot,st=this;return Object(ae.__generator)(this,(function(dt){switch(dt.label){case 0:if(!this.shouldReconnect_())return[3,4];this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null,i=this.onDataMessage_.bind(this),o=this.onReady_.bind(this),s=this.onRealtimeDisconnect_.bind(this),v=this.id+":"+PersistentConnection.nextConnectionId_++,_=this.lastSessionId,pe=!1,we=null,_e=function(){we?we.close():(pe=!0,s())},et=function(i){Object($.d)(we,"sendRequest call when we're not connected not allowed."),we.sendRequest(i)},this.realtime_={close:_e,sendRequest:et},tt=this.forceTokenRefresh_,this.forceTokenRefresh_=!1,dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,Promise.all([this.authTokenProvider_.getToken(tt),this.appCheckTokenProvider_.getToken(tt)])];case 2:return nt=ae.__read.apply(void 0,[dt.sent(),2]),rt=nt[0],it=nt[1],pe?log("getToken() completed but was canceled"):(log("getToken() completed. Creating connection."),this.authToken_=rt&&rt.accessToken,this.appCheckToken_=it&&it.token,we=new It(v,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,i,o,s,(function(i){warn(i+" ("+st.repoInfo_.toString()+")"),st.interrupt("server_kill")}),_)),[3,4];case 3:return ot=dt.sent(),this.log_("Failed to get token: "+ot),pe||(this.repoInfo_.nodeAdmin&&warn(ot),_e()),[3,4];case 4:return[2]}}))}))},PersistentConnection.prototype.interrupt=function(i){log("Interrupting connection for reason: "+i),this.interruptReasons_[i]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},PersistentConnection.prototype.resume=function(i){log("Resuming connection for reason: "+i),delete this.interruptReasons_[i],Object($.q)(this.interruptReasons_)&&(this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0))},PersistentConnection.prototype.handleTimestamp_=function(i){var o=i-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:o})},PersistentConnection.prototype.cancelSentTransactions_=function(){for(var i=0;i=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},PersistentConnection.prototype.onAppCheckRevoked_=function(i,o){log("App check token revoked: "+i+"/"+o),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==i&&"permission_denied"!==i||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())},PersistentConnection.prototype.onSecurityDebugPacket_=function(i){this.securityDebugCallback_?this.securityDebugCallback_(i):"msg"in i&&console.log("FIREBASE: "+i.msg.replace("\n","\nFIREBASE: "))},PersistentConnection.prototype.restoreState_=function(){var i,o,s,v;this.tryAuth(),this.tryAppCheck();try{for(var _=Object(ae.__values)(this.listens.values()),$=_.next();!$.done;$=_.next()){var pe=$.value;try{for(var we=(s=void 0,Object(ae.__values)(pe.values())),_e=we.next();!_e.done;_e=we.next()){var et=_e.value;this.sendListen_(et)}}catch(i){s={error:i}}finally{try{_e&&!_e.done&&(v=we.return)&&v.call(we)}finally{if(s)throw s.error}}}}catch(o){i={error:o}}finally{try{$&&!$.done&&(o=_.return)&&o.call(_)}finally{if(i)throw i.error}}for(var tt=0;tt0},SortedMapIterator.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var i=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(i.key,i.value):{key:i.key,value:i.value}},SortedMapIterator}(),Yt=function(){function LLRBNode(i,o,s,v,_){this.key=i,this.value=o,this.color=null!=s?s:LLRBNode.RED,this.left=null!=v?v:Jt.EMPTY_NODE,this.right=null!=_?_:Jt.EMPTY_NODE}return LLRBNode.prototype.copy=function(i,o,s,v,_){return new LLRBNode(null!=i?i:this.key,null!=o?o:this.value,null!=s?s:this.color,null!=v?v:this.left,null!=_?_:this.right)},LLRBNode.prototype.count=function(){return this.left.count()+1+this.right.count()},LLRBNode.prototype.isEmpty=function(){return!1},LLRBNode.prototype.inorderTraversal=function(i){return this.left.inorderTraversal(i)||!!i(this.key,this.value)||this.right.inorderTraversal(i)},LLRBNode.prototype.reverseTraversal=function(i){return this.right.reverseTraversal(i)||i(this.key,this.value)||this.left.reverseTraversal(i)},LLRBNode.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},LLRBNode.prototype.minKey=function(){return this.min_().key},LLRBNode.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},LLRBNode.prototype.insert=function(i,o,s){var v=this,_=s(i,v.key);return(v=_<0?v.copy(null,null,null,v.left.insert(i,o,s),null):0===_?v.copy(null,o,null,null,null):v.copy(null,null,null,null,v.right.insert(i,o,s))).fixUp_()},LLRBNode.prototype.removeMin_=function(){if(this.left.isEmpty())return Jt.EMPTY_NODE;var i=this;return i.left.isRed_()||i.left.left.isRed_()||(i=i.moveRedLeft_()),(i=i.copy(null,null,null,i.left.removeMin_(),null)).fixUp_()},LLRBNode.prototype.remove=function(i,o){var s,v;if(o(i,(s=this).key)<0)s.left.isEmpty()||s.left.isRed_()||s.left.left.isRed_()||(s=s.moveRedLeft_()),s=s.copy(null,null,null,s.left.remove(i,o),null);else{if(s.left.isRed_()&&(s=s.rotateRight_()),s.right.isEmpty()||s.right.isRed_()||s.right.left.isRed_()||(s=s.moveRedRight_()),0===o(i,s.key)){if(s.right.isEmpty())return Jt.EMPTY_NODE;v=s.right.min_(),s=s.copy(v.key,v.value,null,null,s.right.removeMin_())}s=s.copy(null,null,null,null,s.right.remove(i,o))}return s.fixUp_()},LLRBNode.prototype.isRed_=function(){return this.color},LLRBNode.prototype.fixUp_=function(){var i=this;return i.right.isRed_()&&!i.left.isRed_()&&(i=i.rotateLeft_()),i.left.isRed_()&&i.left.left.isRed_()&&(i=i.rotateRight_()),i.left.isRed_()&&i.right.isRed_()&&(i=i.colorFlip_()),i},LLRBNode.prototype.moveRedLeft_=function(){var i=this.colorFlip_();return i.right.left.isRed_()&&(i=(i=(i=i.copy(null,null,null,null,i.right.rotateRight_())).rotateLeft_()).colorFlip_()),i},LLRBNode.prototype.moveRedRight_=function(){var i=this.colorFlip_();return i.left.left.isRed_()&&(i=(i=i.rotateRight_()).colorFlip_()),i},LLRBNode.prototype.rotateLeft_=function(){var i=this.copy(null,null,LLRBNode.RED,null,this.right.left);return this.right.copy(null,null,this.color,i,null)},LLRBNode.prototype.rotateRight_=function(){var i=this.copy(null,null,LLRBNode.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,i)},LLRBNode.prototype.colorFlip_=function(){var i=this.left.copy(null,null,!this.left.color,null,null),o=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,i,o)},LLRBNode.prototype.checkMaxDepth_=function(){var i=this.check_();return Math.pow(2,i)<=this.count()+1},LLRBNode.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var i=this.left.check_();if(i!==this.right.check_())throw new Error("Black depths differ");return i+(this.isRed_()?0:1)},LLRBNode.RED=!0,LLRBNode.BLACK=!1,LLRBNode}(),Kt=function(){function LLRBEmptyNode(){}return LLRBEmptyNode.prototype.copy=function(i,o,s,v,_){return this},LLRBEmptyNode.prototype.insert=function(i,o,s){return new Yt(i,o,null)},LLRBEmptyNode.prototype.remove=function(i,o){return this},LLRBEmptyNode.prototype.count=function(){return 0},LLRBEmptyNode.prototype.isEmpty=function(){return!0},LLRBEmptyNode.prototype.inorderTraversal=function(i){return!1},LLRBEmptyNode.prototype.reverseTraversal=function(i){return!1},LLRBEmptyNode.prototype.minKey=function(){return null},LLRBEmptyNode.prototype.maxKey=function(){return null},LLRBEmptyNode.prototype.check_=function(){return 0},LLRBEmptyNode.prototype.isRed_=function(){return!1},LLRBEmptyNode}(),Jt=function(){function SortedMap(i,o){void 0===o&&(o=SortedMap.EMPTY_NODE),this.comparator_=i,this.root_=o}return SortedMap.prototype.insert=function(i,o){return new SortedMap(this.comparator_,this.root_.insert(i,o,this.comparator_).copy(null,null,Yt.BLACK,null,null))},SortedMap.prototype.remove=function(i){return new SortedMap(this.comparator_,this.root_.remove(i,this.comparator_).copy(null,null,Yt.BLACK,null,null))},SortedMap.prototype.get=function(i){for(var o,s=this.root_;!s.isEmpty();){if(0===(o=this.comparator_(i,s.key)))return s.value;o<0?s=s.left:o>0&&(s=s.right)}return null},SortedMap.prototype.getPredecessorKey=function(i){for(var o,s=this.root_,v=null;!s.isEmpty();){if(0===(o=this.comparator_(i,s.key))){if(s.left.isEmpty())return v?v.key:null;for(s=s.left;!s.right.isEmpty();)s=s.right;return s.key}o<0?s=s.left:o>0&&(v=s,s=s.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},SortedMap.prototype.isEmpty=function(){return this.root_.isEmpty()},SortedMap.prototype.count=function(){return this.root_.count()},SortedMap.prototype.minKey=function(){return this.root_.minKey()},SortedMap.prototype.maxKey=function(){return this.root_.maxKey()},SortedMap.prototype.inorderTraversal=function(i){return this.root_.inorderTraversal(i)},SortedMap.prototype.reverseTraversal=function(i){return this.root_.reverseTraversal(i)},SortedMap.prototype.getIterator=function(i){return new Xt(this.root_,null,this.comparator_,!1,i)},SortedMap.prototype.getIteratorFrom=function(i,o){return new Xt(this.root_,i,this.comparator_,!1,o)},SortedMap.prototype.getReverseIteratorFrom=function(i,o){return new Xt(this.root_,i,this.comparator_,!0,o)},SortedMap.prototype.getReverseIterator=function(i){return new Xt(this.root_,null,this.comparator_,!0,i)},SortedMap.EMPTY_NODE=new Kt,SortedMap}();function NAME_ONLY_COMPARATOR(i,o){return nameCompare(i.name,o.name)}function NAME_COMPARATOR(i,o){return nameCompare(i,o)}var nn,_n,An,priorityHashText=function(i){return"number"==typeof i?"number:"+doubleToIEEE754String(i):"string:"+i},validatePriorityNode=function(i){if(i.isLeafNode()){var o=i.val();Object($.d)("string"==typeof o||"number"==typeof o||"object"==typeof o&&Object($.h)(o,".sv"),"Priority must be a string or number.")}else Object($.d)(i===Ut||i.isEmpty(),"priority of unexpected type.");Object($.d)(i===Ut||i.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Zn=function(){function LeafNode(i,o){void 0===o&&(o=LeafNode.__childrenNodeConstructor.EMPTY_NODE),this.value_=i,this.priorityNode_=o,this.lazyHash_=null,Object($.d)(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),validatePriorityNode(this.priorityNode_)}return Object.defineProperty(LeafNode,"__childrenNodeConstructor",{get:function(){return nn},set:function(i){nn=i},enumerable:!1,configurable:!0}),LeafNode.prototype.isLeafNode=function(){return!0},LeafNode.prototype.getPriority=function(){return this.priorityNode_},LeafNode.prototype.updatePriority=function(i){return new LeafNode(this.value_,i)},LeafNode.prototype.getImmediateChild=function(i){return".priority"===i?this.priorityNode_:LeafNode.__childrenNodeConstructor.EMPTY_NODE},LeafNode.prototype.getChild=function(i){return pathIsEmpty(i)?this:".priority"===pathGetFront(i)?this.priorityNode_:LeafNode.__childrenNodeConstructor.EMPTY_NODE},LeafNode.prototype.hasChild=function(){return!1},LeafNode.prototype.getPredecessorChildName=function(i,o){return null},LeafNode.prototype.updateImmediateChild=function(i,o){return".priority"===i?this.updatePriority(o):o.isEmpty()&&".priority"!==i?this:LeafNode.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(i,o).updatePriority(this.priorityNode_)},LeafNode.prototype.updateChild=function(i,o){var s=pathGetFront(i);return null===s?o:o.isEmpty()&&".priority"!==s?this:(Object($.d)(".priority"!==s||1===pathGetLength(i),".priority must be the last token in a path"),this.updateImmediateChild(s,LeafNode.__childrenNodeConstructor.EMPTY_NODE.updateChild(pathPopFront(i),o)))},LeafNode.prototype.isEmpty=function(){return!1},LeafNode.prototype.numChildren=function(){return 0},LeafNode.prototype.forEachChild=function(i,o){return!1},LeafNode.prototype.val=function(i){return i&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},LeafNode.prototype.hash=function(){if(null===this.lazyHash_){var i="";this.priorityNode_.isEmpty()||(i+="priority:"+priorityHashText(this.priorityNode_.val())+":");var o=typeof this.value_;i+=o+":",i+="number"===o?doubleToIEEE754String(this.value_):this.value_,this.lazyHash_=sha1(i)}return this.lazyHash_},LeafNode.prototype.getValue=function(){return this.value_},LeafNode.prototype.compareTo=function(i){return i===LeafNode.__childrenNodeConstructor.EMPTY_NODE?1:i instanceof LeafNode.__childrenNodeConstructor?-1:(Object($.d)(i.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(i))},LeafNode.prototype.compareToLeafNode_=function(i){var o=typeof i.value_,s=typeof this.value_,v=LeafNode.VALUE_TYPE_ORDER.indexOf(o),_=LeafNode.VALUE_TYPE_ORDER.indexOf(s);return Object($.d)(v>=0,"Unknown leaf type: "+o),Object($.d)(_>=0,"Unknown leaf type: "+s),v===_?"object"===s?0:this.value_0;)v.getNext(),_=v.peek();return v},ChildrenNode.prototype.compareTo=function(i){return this.isEmpty()?i.isEmpty()?0:-1:i.isLeafNode()||i.isEmpty()?1:i===_a?-1:0},ChildrenNode.prototype.withIndex=function(i){if(i===Gt||this.indexMap_.hasIndex(i))return this;var o=this.indexMap_.addIndex(i,this.children_);return new ChildrenNode(this.children_,this.priorityNode_,o)},ChildrenNode.prototype.isIndexed=function(i){return i===Gt||this.indexMap_.hasIndex(i)},ChildrenNode.prototype.equals=function(i){if(i===this)return!0;if(i.isLeafNode())return!1;var o=i;if(this.getPriority().equals(o.getPriority())){if(this.children_.count()===o.children_.count()){for(var s=this.getIterator(ca),v=o.getIterator(ca),_=s.getNext(),$=v.getNext();_&&$;){if(_.name!==$.name||!_.node.equals($.node))return!1;_=s.getNext(),$=v.getNext()}return null===_&&null===$}return!1}return!1},ChildrenNode.prototype.resolveIndex_=function(i){return i===Gt?null:this.indexMap_.get(i.toString())},ChildrenNode.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,ChildrenNode}(),_a=new(function(i){function MaxNode(){return i.call(this,new Jt(NAME_COMPARATOR),xa.EMPTY_NODE,Oa.Default)||this}return Object(ae.__extends)(MaxNode,i),MaxNode.prototype.compareTo=function(i){return i===this?0:1},MaxNode.prototype.equals=function(i){return i===this},MaxNode.prototype.getPriority=function(){return this},MaxNode.prototype.getImmediateChild=function(i){return xa.EMPTY_NODE},MaxNode.prototype.isEmpty=function(){return!1},MaxNode}(xa));Object.defineProperties(zt,{MIN:{value:new zt(ut,xa.EMPTY_NODE)},MAX:{value:new zt(lt,_a)}}),Ht.__EMPTY_NODE=xa.EMPTY_NODE,Zn.__childrenNodeConstructor=xa,function setMaxNode$1(i){Ut=i}(_a),function setMaxNode(i){An=i}(_a);var ja=!0;function nodeFromJSON(i,o){if(void 0===o&&(o=null),null===i)return xa.EMPTY_NODE;if("object"==typeof i&&".priority"in i&&(o=i[".priority"]),Object($.d)(null===o||"string"==typeof o||"number"==typeof o||"object"==typeof o&&".sv"in o,"Invalid priority type found: "+typeof o),"object"==typeof i&&".value"in i&&null!==i[".value"]&&(i=i[".value"]),"object"!=typeof i||".sv"in i)return new Zn(i,nodeFromJSON(o));if(i instanceof Array||!ja){var s=xa.EMPTY_NODE;return each(i,(function(o,v){if(Object($.h)(i,o)&&"."!==o.substring(0,1)){var _=nodeFromJSON(v);!_.isLeafNode()&&_.isEmpty()||(s=s.updateImmediateChild(o,_))}})),s.updatePriority(nodeFromJSON(o))}var v=[],_=!1;if(each(i,(function(i,o){if("."!==i.substring(0,1)){var s=nodeFromJSON(o);s.isEmpty()||(_=_||!s.getPriority().isEmpty(),v.push(new zt(i,s)))}})),0===v.length)return xa.EMPTY_NODE;var ae=buildChildSet(v,NAME_ONLY_COMPARATOR,(function(i){return i.name}),NAME_COMPARATOR);if(_){var pe=buildChildSet(v,ca.getCompare());return new xa(ae,nodeFromJSON(o),new Oa({".priority":pe},{".priority":ca}))}return new xa(ae,nodeFromJSON(o),Oa.Default)}!function setNodeFromJSON(i){_n=i}(nodeFromJSON);var er,tr,nr=function(i){function PathIndex(o){var s=i.call(this)||this;return s.indexPath_=o,Object($.d)(!pathIsEmpty(o)&&".priority"!==pathGetFront(o),"Can't create PathIndex with empty path or .priority key"),s}return Object(ae.__extends)(PathIndex,i),PathIndex.prototype.extractChild=function(i){return i.getChild(this.indexPath_)},PathIndex.prototype.isDefinedOn=function(i){return!i.getChild(this.indexPath_).isEmpty()},PathIndex.prototype.compare=function(i,o){var s=this.extractChild(i.node),v=this.extractChild(o.node),_=s.compareTo(v);return 0===_?nameCompare(i.name,o.name):_},PathIndex.prototype.makePost=function(i,o){var s=nodeFromJSON(i),v=xa.EMPTY_NODE.updateChild(this.indexPath_,s);return new zt(o,v)},PathIndex.prototype.maxPost=function(){var i=xa.EMPTY_NODE.updateChild(this.indexPath_,_a);return new zt(lt,i)},PathIndex.prototype.toString=function(){return pathSlice(this.indexPath_,0).join("/")},PathIndex}(Zt),ar=function(i){function ValueIndex(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(ValueIndex,i),ValueIndex.prototype.compare=function(i,o){var s=i.node.compareTo(o.node);return 0===s?nameCompare(i.name,o.name):s},ValueIndex.prototype.isDefinedOn=function(i){return!0},ValueIndex.prototype.indexedValueChanged=function(i,o){return!i.equals(o)},ValueIndex.prototype.minPost=function(){return zt.MIN},ValueIndex.prototype.maxPost=function(){return zt.MAX},ValueIndex.prototype.makePost=function(i,o){var s=nodeFromJSON(i);return new zt(o,s)},ValueIndex.prototype.toString=function(){return".value"},ValueIndex}(Zt),rr=new ar,ir="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",or=(er=0,tr=[],function(i){var o,s=i===er;er=i;var v=new Array(8);for(o=7;o>=0;o--)v[o]=ir.charAt(i%64),i=Math.floor(i/64);Object($.d)(0===i,"Cannot push at time == 0");var _=v.join("");if(s){for(o=11;o>=0&&63===tr[o];o--)tr[o]=0;tr[o]++}else for(o=0;o<12;o++)tr[o]=Math.floor(64*Math.random());for(o=0;o<12;o++)_+=ir.charAt(tr[o]);return Object($.d)(20===_.length,"nextPushId: Length should be 20."),_}),successor=function(i){if(i===""+pt)return"-";var o=tryParseInt(i);if(null!=o)return""+(o+1);for(var s=new Array(i.length),v=0;v=0&&"z"===s[_];)_--;if(-1===_)return lt;var $=s[_],ae=ir.charAt(ir.indexOf($)+1);return s[_]=ae,s.slice(0,_+1).join("")},predecessor=function(i){if(i===""+ht)return ut;var o=tryParseInt(i);if(null!=o)return""+(o-1);for(var s=new Array(i.length),v=0;v=0)return null!=_&&_.trackChildChange(changeChildChanged(o,s,nt)),we.updateImmediateChild(o,s);null!=_&&_.trackChildChange(changeChildRemoved(o,nt));var ot=we.updateImmediateChild(o,xa.EMPTY_NODE);return null!=rt&&this.rangedFilter_.matches(rt)?(null!=_&&_.trackChildChange(changeChildAdded(rt.name,rt.node)),ot.updateImmediateChild(rt.name,rt.node)):ot}return s.isEmpty()?i:tt&&ae(et,_e)>=0?(null!=_&&(_.trackChildChange(changeChildRemoved(et.name,et.node)),_.trackChildChange(changeChildAdded(o,s))),we.updateImmediateChild(o,s).updateImmediateChild(et.name,xa.EMPTY_NODE)):i},LimitedFilter}(),lr=function(){function QueryParams(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=ca}return QueryParams.prototype.hasStart=function(){return this.startSet_},QueryParams.prototype.hasStartAfter=function(){return this.startAfterSet_},QueryParams.prototype.hasEndBefore=function(){return this.endBeforeSet_},QueryParams.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_},QueryParams.prototype.getIndexStartValue=function(){return Object($.d)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},QueryParams.prototype.getIndexStartName=function(){return Object($.d)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:ut},QueryParams.prototype.hasEnd=function(){return this.endSet_},QueryParams.prototype.getIndexEndValue=function(){return Object($.d)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},QueryParams.prototype.getIndexEndName=function(){return Object($.d)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:lt},QueryParams.prototype.hasLimit=function(){return this.limitSet_},QueryParams.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},QueryParams.prototype.getLimit=function(){return Object($.d)(this.limitSet_,"Only valid if limit has been set"),this.limit_},QueryParams.prototype.getIndex=function(){return this.index_},QueryParams.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},QueryParams.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===ca},QueryParams.prototype.copy=function(){var i=new QueryParams;return i.limitSet_=this.limitSet_,i.limit_=this.limit_,i.startSet_=this.startSet_,i.indexStartValue_=this.indexStartValue_,i.startNameSet_=this.startNameSet_,i.indexStartName_=this.indexStartName_,i.endSet_=this.endSet_,i.indexEndValue_=this.indexEndValue_,i.endNameSet_=this.endNameSet_,i.indexEndName_=this.indexEndName_,i.index_=this.index_,i.viewFrom_=this.viewFrom_,i},QueryParams}();function queryParamsStartAt(i,o,s){var v=i.copy();return v.startSet_=!0,void 0===o&&(o=null),v.indexStartValue_=o,null!=s?(v.startNameSet_=!0,v.indexStartName_=s):(v.startNameSet_=!1,v.indexStartName_=""),v}function queryParamsStartAfter(i,o,s){var v;if(i.index_===Gt)"string"==typeof o&&(o=successor(o)),v=queryParamsStartAt(i,o,s);else{v=queryParamsStartAt(i,o,null==s?lt:successor(s))}return v.startAfterSet_=!0,v}function queryParamsEndAt(i,o,s){var v=i.copy();return v.endSet_=!0,void 0===o&&(o=null),v.indexEndValue_=o,void 0!==s?(v.endNameSet_=!0,v.indexEndName_=s):(v.endNameSet_=!1,v.indexEndName_=""),v}function queryParamsOrderBy(i,o){var s=i.copy();return s.index_=o,s}function queryParamsToRestQueryStringParameters(i){var o,s={};return i.isDefault()||(i.index_===ca?o="$priority":i.index_===rr?o="$value":i.index_===Gt?o="$key":(Object($.d)(i.index_ instanceof nr,"Unrecognized index type!"),o=i.index_.toString()),s.orderBy=Object($.C)(o),i.startSet_&&(s.startAt=Object($.C)(i.indexStartValue_),i.startNameSet_&&(s.startAt+=","+Object($.C)(i.indexStartName_))),i.endSet_&&(s.endAt=Object($.C)(i.indexEndValue_),i.endNameSet_&&(s.endAt+=","+Object($.C)(i.indexEndName_))),i.limitSet_&&(i.isViewFromLeft()?s.limitToFirst=i.limit_:s.limitToLast=i.limit_)),s}function queryParamsGetQueryObject(i){var o={};if(i.startSet_&&(o.sp=i.indexStartValue_,i.startNameSet_&&(o.sn=i.indexStartName_)),i.endSet_&&(o.ep=i.indexEndValue_,i.endNameSet_&&(o.en=i.indexEndName_)),i.limitSet_){o.l=i.limit_;var s=i.viewFrom_;""===s&&(s=i.isViewFromLeft()?"l":"r"),o.vf=s}return i.index_!==ca&&(o.i=i.index_.toString()),o}var cr=function(i){function ReadonlyRestClient(o,s,v,_){var $=i.call(this)||this;return $.repoInfo_=o,$.onDataUpdate_=s,$.authTokenProvider_=v,$.appCheckTokenProvider_=_,$.log_=logWrapper("p:rest:"),$.listens_={},$}return Object(ae.__extends)(ReadonlyRestClient,i),ReadonlyRestClient.prototype.reportStats=function(i){throw new Error("Method not implemented.")},ReadonlyRestClient.getListenId_=function(i,o){return void 0!==o?"tag$"+o:(Object($.d)(i._queryParams.isDefault(),"should have a tag if it's not a default query."),i._path.toString())},ReadonlyRestClient.prototype.listen=function(i,o,s,v){var _=this,ae=i._path.toString();this.log_("Listen called for "+ae+" "+i._queryIdentifier);var pe=ReadonlyRestClient.getListenId_(i,s),we={};this.listens_[pe]=we;var _e=queryParamsToRestQueryStringParameters(i._queryParams);this.restRequest_(ae+".json",_e,(function(i,o){var _e=o;(404===i&&(_e=null,i=null),null===i&&_.onDataUpdate_(ae,_e,!1,s),Object($.z)(_.listens_,pe)===we)&&v(i?401===i?"permission_denied":"rest_error:"+i:"ok",null)}))},ReadonlyRestClient.prototype.unlisten=function(i,o){var s=ReadonlyRestClient.getListenId_(i,o);delete this.listens_[s]},ReadonlyRestClient.prototype.get=function(i){var o=this,s=queryParamsToRestQueryStringParameters(i._queryParams),v=i._path.toString(),_=new $.a;return this.restRequest_(v+".json",s,(function(i,s){var $=s;404===i&&($=null,i=null),null===i?(o.onDataUpdate_(v,$,!1,null),_.resolve($)):_.reject(new Error($))})),_.promise},ReadonlyRestClient.prototype.refreshAuthToken=function(i){},ReadonlyRestClient.prototype.restRequest_=function(i,o,s){var v=this;return void 0===o&&(o={}),o.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((function(_){var pe=Object(ae.__read)(_,2),we=pe[0],_e=pe[1];we&&we.accessToken&&(o.auth=we.accessToken),_e&&_e.token&&(o.ac=_e.token);var et=(v.repoInfo_.secure?"https://":"http://")+v.repoInfo_.host+i+"?ns="+v.repoInfo_.namespace+Object($.y)(o);v.log_("Sending REST request for "+et);var tt=new XMLHttpRequest;tt.onreadystatechange=function(){if(s&&4===tt.readyState){v.log_("REST Response for "+et+" received. status:",tt.status,"response:",tt.responseText);var i=null;if(tt.status>=200&&tt.status<300){try{i=Object($.w)(tt.responseText)}catch(i){warn("Failed to parse JSON response for "+et+": "+tt.responseText)}s(null,i)}else 401!==tt.status&&404!==tt.status&&warn("Got unsuccessful REST response for "+et+" Status: "+tt.status),s(tt.status);s=null}},tt.open("GET",et,!0),tt.send()}))},ReadonlyRestClient}(Ft),hr=function(){function SnapshotHolder(){this.rootNode_=xa.EMPTY_NODE}return SnapshotHolder.prototype.getNode=function(i){return this.rootNode_.getChild(i)},SnapshotHolder.prototype.updateSnapshot=function(i,o){this.rootNode_=this.rootNode_.updateChild(i,o)},SnapshotHolder}();function newSparseSnapshotTree(){return{value:null,children:new Map}}function sparseSnapshotTreeRemember(i,o,s){if(pathIsEmpty(o))i.value=s,i.children.clear();else if(null!==i.value)i.value=i.value.updateChild(o,s);else{var v=pathGetFront(o);i.children.has(v)||i.children.set(v,newSparseSnapshotTree()),sparseSnapshotTreeRemember(i.children.get(v),o=pathPopFront(o),s)}}function sparseSnapshotTreeForget(i,o){if(pathIsEmpty(o))return i.value=null,i.children.clear(),!0;if(null!==i.value){if(i.value.isLeafNode())return!1;var s=i.value;return i.value=null,s.forEachChild(ca,(function(o,s){sparseSnapshotTreeRemember(i,new Mt(o),s)})),sparseSnapshotTreeForget(i,o)}if(i.children.size>0){var v=pathGetFront(o);if(o=pathPopFront(o),i.children.has(v))sparseSnapshotTreeForget(i.children.get(v),o)&&i.children.delete(v);return 0===i.children.size}return!0}function sparseSnapshotTreeForEachTree(i,o,s){null!==i.value?s(o,i.value):sparseSnapshotTreeForEachChild(i,(function(i,v){sparseSnapshotTreeForEachTree(v,new Mt(o.toString()+"/"+i),s)}))}function sparseSnapshotTreeForEachChild(i,o){i.children.forEach((function(i,s){o(s,i)}))}var pr,fr=function(){function StatsListener(i){this.collection_=i,this.last_=null}return StatsListener.prototype.get=function(){var i=this.collection_.get(),o=Object(ae.__assign)({},i);return this.last_&&each(this.last_,(function(i,s){o[i]=o[i]-s})),this.last_=i,o},StatsListener}(),gr=function(){function StatsReporter(i,o){this.server_=o,this.statsToReport_={},this.statsListener_=new fr(i);var s=1e4+2e4*Math.random();setTimeoutNonBlocking(this.reportStats_.bind(this),Math.floor(s))}return StatsReporter.prototype.reportStats_=function(){var i=this,o=this.statsListener_.get(),s={},v=!1;each(o,(function(o,_){_>0&&Object($.h)(i.statsToReport_,o)&&(s[o]=_,v=!0)})),v&&this.server_.reportStats(s),setTimeoutNonBlocking(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},StatsReporter}();function newOperationSourceServerTaggedQuery(i){return{fromUser:!1,fromServer:!0,queryId:i,tagged:!0}}!function(i){i[i.OVERWRITE=0]="OVERWRITE",i[i.MERGE=1]="MERGE",i[i.ACK_USER_WRITE=2]="ACK_USER_WRITE",i[i.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(pr||(pr={}));var mr,yr=function(){function AckUserWrite(i,o,s){this.path=i,this.affectedTree=o,this.revert=s,this.type=pr.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}return AckUserWrite.prototype.operationForChild=function(i){if(pathIsEmpty(this.path)){if(null!=this.affectedTree.value)return Object($.d)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var o=this.affectedTree.subtree(new Mt(i));return new AckUserWrite(newEmptyPath(),o,this.revert)}return Object($.d)(pathGetFront(this.path)===i,"operationForChild called for unrelated child."),new AckUserWrite(pathPopFront(this.path),this.affectedTree,this.revert)},AckUserWrite}(),vr=function(){function ListenComplete(i,o){this.source=i,this.path=o,this.type=pr.LISTEN_COMPLETE}return ListenComplete.prototype.operationForChild=function(i){return pathIsEmpty(this.path)?new ListenComplete(this.source,newEmptyPath()):new ListenComplete(this.source,pathPopFront(this.path))},ListenComplete}(),Rr=function(){function Overwrite(i,o,s){this.source=i,this.path=o,this.snap=s,this.type=pr.OVERWRITE}return Overwrite.prototype.operationForChild=function(i){return pathIsEmpty(this.path)?new Overwrite(this.source,newEmptyPath(),this.snap.getImmediateChild(i)):new Overwrite(this.source,pathPopFront(this.path),this.snap)},Overwrite}(),br=function(){function Merge(i,o,s){this.source=i,this.path=o,this.children=s,this.type=pr.MERGE}return Merge.prototype.operationForChild=function(i){if(pathIsEmpty(this.path)){var o=this.children.subtree(new Mt(i));return o.isEmpty()?null:o.value?new Rr(this.source,newEmptyPath(),o.value):new Merge(this.source,newEmptyPath(),o)}return Object($.d)(pathGetFront(this.path)===i,"Can't get a merge for a child not on the path of the operation"),new Merge(this.source,pathPopFront(this.path),this.children)},Merge.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},Merge}(),Or=function(){function CacheNode(i,o,s){this.node_=i,this.fullyInitialized_=o,this.filtered_=s}return CacheNode.prototype.isFullyInitialized=function(){return this.fullyInitialized_},CacheNode.prototype.isFiltered=function(){return this.filtered_},CacheNode.prototype.isCompleteForPath=function(i){if(pathIsEmpty(i))return this.isFullyInitialized()&&!this.filtered_;var o=pathGetFront(i);return this.isCompleteForChild(o)},CacheNode.prototype.isCompleteForChild=function(i){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(i)},CacheNode.prototype.getNode=function(){return this.node_},CacheNode}(),xr=function xr(i){this.query_=i,this.index_=this.query_._queryParams.getIndex()};function eventGeneratorGenerateEventsForChanges(i,o,s,v){var _=[],$=[];return o.forEach((function(o){var s;"child_changed"===o.type&&i.index_.indexedValueChanged(o.oldSnap,o.snapshotNode)&&$.push((s=o.childName,{type:"child_moved",snapshotNode:o.snapshotNode,childName:s}))})),eventGeneratorGenerateEventsForType(i,_,"child_removed",o,v,s),eventGeneratorGenerateEventsForType(i,_,"child_added",o,v,s),eventGeneratorGenerateEventsForType(i,_,"child_moved",$,v,s),eventGeneratorGenerateEventsForType(i,_,"child_changed",o,v,s),eventGeneratorGenerateEventsForType(i,_,"value",o,v,s),_}function eventGeneratorGenerateEventsForType(i,o,s,v,_,$){var ae=v.filter((function(i){return i.type===s}));ae.sort((function(o,s){return eventGeneratorCompareChanges(i,o,s)})),ae.forEach((function(s){var v=eventGeneratorMaterializeSingleChange(i,s,$);_.forEach((function(_){_.respondsTo(s.type)&&o.push(_.createEvent(v,i.query_))}))}))}function eventGeneratorMaterializeSingleChange(i,o,s){return"value"===o.type||"child_removed"===o.type||(o.prevName=s.getPredecessorChildName(o.childName,o.snapshotNode,i.index_)),o}function eventGeneratorCompareChanges(i,o,s){if(null==o.childName||null==s.childName)throw Object($.e)("Should only compare child_ events.");var v=new zt(o.childName,o.snapshotNode),_=new zt(s.childName,s.snapshotNode);return i.index_.compare(v,_)}function newViewCache(i,o){return{eventCache:i,serverCache:o}}function viewCacheUpdateEventSnap(i,o,s,v){return newViewCache(new Or(o,s,v),i.serverCache)}function viewCacheUpdateServerSnap(i,o,s,v){return newViewCache(i.eventCache,new Or(o,s,v))}function viewCacheGetCompleteEventSnap(i){return i.eventCache.isFullyInitialized()?i.eventCache.getNode():null}function viewCacheGetCompleteServerSnap(i){return i.serverCache.isFullyInitialized()?i.serverCache.getNode():null}var wr=function(){function ImmutableTree(i,o){void 0===o&&(mr||(mr=new Jt(stringCompare)),o=mr),this.value=i,this.children=o}return ImmutableTree.fromObject=function(i){var o=new ImmutableTree(null);return each(i,(function(i,s){o=o.set(new Mt(i),s)})),o},ImmutableTree.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},ImmutableTree.prototype.findRootMostMatchingPathAndValue=function(i,o){if(null!=this.value&&o(this.value))return{path:newEmptyPath(),value:this.value};if(pathIsEmpty(i))return null;var s=pathGetFront(i),v=this.children.get(s);if(null!==v){var _=v.findRootMostMatchingPathAndValue(pathPopFront(i),o);return null!=_?{path:pathChild(new Mt(s),_.path),value:_.value}:null}return null},ImmutableTree.prototype.findRootMostValueAndPath=function(i){return this.findRootMostMatchingPathAndValue(i,(function(){return!0}))},ImmutableTree.prototype.subtree=function(i){if(pathIsEmpty(i))return this;var o=pathGetFront(i),s=this.children.get(o);return null!==s?s.subtree(pathPopFront(i)):new ImmutableTree(null)},ImmutableTree.prototype.set=function(i,o){if(pathIsEmpty(i))return new ImmutableTree(o,this.children);var s=pathGetFront(i),v=(this.children.get(s)||new ImmutableTree(null)).set(pathPopFront(i),o),_=this.children.insert(s,v);return new ImmutableTree(this.value,_)},ImmutableTree.prototype.remove=function(i){if(pathIsEmpty(i))return this.children.isEmpty()?new ImmutableTree(null):new ImmutableTree(null,this.children);var o=pathGetFront(i),s=this.children.get(o);if(s){var v=s.remove(pathPopFront(i)),_=void 0;return _=v.isEmpty()?this.children.remove(o):this.children.insert(o,v),null===this.value&&_.isEmpty()?new ImmutableTree(null):new ImmutableTree(this.value,_)}return this},ImmutableTree.prototype.get=function(i){if(pathIsEmpty(i))return this.value;var o=pathGetFront(i),s=this.children.get(o);return s?s.get(pathPopFront(i)):null},ImmutableTree.prototype.setTree=function(i,o){if(pathIsEmpty(i))return o;var s=pathGetFront(i),v=(this.children.get(s)||new ImmutableTree(null)).setTree(pathPopFront(i),o),_=void 0;return _=v.isEmpty()?this.children.remove(s):this.children.insert(s,v),new ImmutableTree(this.value,_)},ImmutableTree.prototype.fold=function(i){return this.fold_(newEmptyPath(),i)},ImmutableTree.prototype.fold_=function(i,o){var s={};return this.children.inorderTraversal((function(v,_){s[v]=_.fold_(pathChild(i,v),o)})),o(i,this.value,s)},ImmutableTree.prototype.findOnPath=function(i,o){return this.findOnPath_(i,newEmptyPath(),o)},ImmutableTree.prototype.findOnPath_=function(i,o,s){var v=!!this.value&&s(o,this.value);if(v)return v;if(pathIsEmpty(i))return null;var _=pathGetFront(i),$=this.children.get(_);return $?$.findOnPath_(pathPopFront(i),pathChild(o,_),s):null},ImmutableTree.prototype.foreachOnPath=function(i,o){return this.foreachOnPath_(i,newEmptyPath(),o)},ImmutableTree.prototype.foreachOnPath_=function(i,o,s){if(pathIsEmpty(i))return this;this.value&&s(o,this.value);var v=pathGetFront(i),_=this.children.get(v);return _?_.foreachOnPath_(pathPopFront(i),pathChild(o,v),s):new ImmutableTree(null)},ImmutableTree.prototype.foreach=function(i){this.foreach_(newEmptyPath(),i)},ImmutableTree.prototype.foreach_=function(i,o){this.children.inorderTraversal((function(s,v){v.foreach_(pathChild(i,s),o)})),this.value&&o(i,this.value)},ImmutableTree.prototype.foreachChild=function(i){this.children.inorderTraversal((function(o,s){s.value&&i(o,s.value)}))},ImmutableTree}(),Cr=function(){function CompoundWrite(i){this.writeTree_=i}return CompoundWrite.empty=function(){return new CompoundWrite(new wr(null))},CompoundWrite}();function compoundWriteAddWrite(i,o,s){if(pathIsEmpty(o))return new Cr(new wr(s));var v=i.writeTree_.findRootMostValueAndPath(o);if(null!=v){var _=v.path,$=v.value,ae=newRelativePath(_,o);return $=$.updateChild(ae,s),new Cr(i.writeTree_.set(_,$))}var pe=new wr(s),we=i.writeTree_.setTree(o,pe);return new Cr(we)}function compoundWriteAddWrites(i,o,s){var v=i;return each(s,(function(i,s){v=compoundWriteAddWrite(v,pathChild(o,i),s)})),v}function compoundWriteRemoveWrite(i,o){if(pathIsEmpty(o))return Cr.empty();var s=i.writeTree_.setTree(o,new wr(null));return new Cr(s)}function compoundWriteHasCompleteWrite(i,o){return null!=compoundWriteGetCompleteNode(i,o)}function compoundWriteGetCompleteNode(i,o){var s=i.writeTree_.findRootMostValueAndPath(o);return null!=s?i.writeTree_.get(s.path).getChild(newRelativePath(s.path,o)):null}function compoundWriteGetCompleteChildren(i){var o=[],s=i.writeTree_.value;return null!=s?s.isLeafNode()||s.forEachChild(ca,(function(i,s){o.push(new zt(i,s))})):i.writeTree_.children.inorderTraversal((function(i,s){null!=s.value&&o.push(new zt(i,s.value))})),o}function compoundWriteChildCompoundWrite(i,o){if(pathIsEmpty(o))return i;var s=compoundWriteGetCompleteNode(i,o);return new Cr(null!=s?new wr(s):i.writeTree_.subtree(o))}function compoundWriteIsEmpty(i){return i.writeTree_.isEmpty()}function compoundWriteApply(i,o){return applySubtreeWrite(newEmptyPath(),i.writeTree_,o)}function applySubtreeWrite(i,o,s){if(null!=o.value)return s.updateChild(i,o.value);var v=null;return o.children.inorderTraversal((function(o,_){".priority"===o?(Object($.d)(null!==_.value,"Priority writes must always be leaf nodes"),v=_.value):s=applySubtreeWrite(pathChild(i,o),_,s)})),s.getChild(i).isEmpty()||null===v||(s=s.updateChild(pathChild(i,".priority"),v)),s}function writeTreeChildWrites(i,o){return newWriteTreeRef(o,i)}function writeTreeAddOverwrite(i,o,s,v,_){Object($.d)(v>i.lastWriteId,"Stacking an older write on top of newer ones"),void 0===_&&(_=!0),i.allWrites.push({path:o,snap:s,writeId:v,visible:_}),_&&(i.visibleWrites=compoundWriteAddWrite(i.visibleWrites,o,s)),i.lastWriteId=v}function writeTreeAddMerge(i,o,s,v){Object($.d)(v>i.lastWriteId,"Stacking an older merge on top of newer ones"),i.allWrites.push({path:o,children:s,writeId:v,visible:!0}),i.visibleWrites=compoundWriteAddWrites(i.visibleWrites,o,s),i.lastWriteId=v}function writeTreeGetWrite(i,o){for(var s=0;s=0,"removeWrite called with nonexistent writeId.");var v=i.allWrites[s];i.allWrites.splice(s,1);for(var _=v.visible,ae=!1,pe=i.allWrites.length-1;_&&pe>=0;){var we=i.allWrites[pe];we.visible&&(pe>=s&&writeTreeRecordContainsPath_(we,v.path)?_=!1:pathContains(v.path,we.path)&&(ae=!0)),pe--}if(_){if(ae)return writeTreeResetTree_(i),!0;v.snap?i.visibleWrites=compoundWriteRemoveWrite(i.visibleWrites,v.path):each(v.children,(function(o){i.visibleWrites=compoundWriteRemoveWrite(i.visibleWrites,pathChild(v.path,o))}));return!0}return!1}function writeTreeRecordContainsPath_(i,o){if(i.snap)return pathContains(i.path,o);for(var s in i.children)if(i.children.hasOwnProperty(s)&&pathContains(pathChild(i.path,s),o))return!0;return!1}function writeTreeResetTree_(i){i.visibleWrites=writeTreeLayerTree_(i.allWrites,writeTreeDefaultFilter_,newEmptyPath()),i.allWrites.length>0?i.lastWriteId=i.allWrites[i.allWrites.length-1].writeId:i.lastWriteId=-1}function writeTreeDefaultFilter_(i){return i.visible}function writeTreeLayerTree_(i,o,s){for(var v=Cr.empty(),_=0;_0||!i.eventCache.isFullyInitialized()||_&&!v.getNode().equals($)||!v.getNode().getPriority().equals($.getPriority()))&&s.push(changeValue(viewCacheGetCompleteEventSnap(o)))}}function viewProcessorGenerateEventCacheAfterServerEvent(i,o,s,v,_,ae){var pe=o.eventCache;if(null!=writeTreeRefShadowingWrite(v,s))return o;var we=void 0,_e=void 0;if(pathIsEmpty(s))if(Object($.d)(o.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),o.serverCache.isFiltered()){var et=viewCacheGetCompleteServerSnap(o),tt=writeTreeRefCalcCompleteEventChildren(v,et instanceof xa?et:xa.EMPTY_NODE);we=i.filter.updateFullNode(o.eventCache.getNode(),tt,ae)}else{var nt=writeTreeRefCalcCompleteEventCache(v,viewCacheGetCompleteServerSnap(o));we=i.filter.updateFullNode(o.eventCache.getNode(),nt,ae)}else{var rt=pathGetFront(s);if(".priority"===rt){Object($.d)(1===pathGetLength(s),"Can't have a priority with additional path components");var it=pe.getNode(),ot=writeTreeRefCalcEventCacheAfterServerOverwrite(v,s,it,_e=o.serverCache.getNode());we=null!=ot?i.filter.updatePriority(it,ot):pe.getNode()}else{var st=pathPopFront(s),dt=void 0;if(pe.isCompleteForChild(rt)){_e=o.serverCache.getNode();var ut=writeTreeRefCalcEventCacheAfterServerOverwrite(v,s,pe.getNode(),_e);dt=null!=ut?pe.getNode().getImmediateChild(rt).updateChild(st,ut):pe.getNode().getImmediateChild(rt)}else dt=writeTreeRefCalcCompleteChild(v,rt,o.serverCache);we=null!=dt?i.filter.updateChild(pe.getNode(),rt,dt,st,_,ae):pe.getNode()}}return viewCacheUpdateEventSnap(o,we,pe.isFullyInitialized()||pathIsEmpty(s),i.filter.filtersNodes())}function viewProcessorApplyServerOverwrite(i,o,s,v,_,$,ae,pe){var we,_e=o.serverCache,et=ae?i.filter:i.filter.getIndexedFilter();if(pathIsEmpty(s))we=et.updateFullNode(_e.getNode(),v,null);else if(et.filtersNodes()&&!_e.isFiltered()){var tt=_e.getNode().updateChild(s,v);we=et.updateFullNode(_e.getNode(),tt,null)}else{var nt=pathGetFront(s);if(!_e.isCompleteForPath(s)&&pathGetLength(s)>1)return o;var rt=pathPopFront(s),it=_e.getNode().getImmediateChild(nt).updateChild(rt,v);we=".priority"===nt?et.updatePriority(_e.getNode(),it):et.updateChild(_e.getNode(),nt,it,rt,_r,null)}var ot=viewCacheUpdateServerSnap(o,we,_e.isFullyInitialized()||pathIsEmpty(s),et.filtersNodes());return viewProcessorGenerateEventCacheAfterServerEvent(i,ot,s,_,new Er(_,ot,$),pe)}function viewProcessorApplyUserOverwrite(i,o,s,v,_,$,ae){var pe,we,_e=o.eventCache,et=new Er(_,o,$);if(pathIsEmpty(s))we=i.filter.updateFullNode(o.eventCache.getNode(),v,ae),pe=viewCacheUpdateEventSnap(o,we,!0,i.filter.filtersNodes());else{var tt=pathGetFront(s);if(".priority"===tt)we=i.filter.updatePriority(o.eventCache.getNode(),v),pe=viewCacheUpdateEventSnap(o,we,_e.isFullyInitialized(),_e.isFiltered());else{var nt=pathPopFront(s),rt=_e.getNode().getImmediateChild(tt),it=void 0;if(pathIsEmpty(nt))it=v;else{var ot=et.getCompleteChild(tt);it=null!=ot?".priority"===pathGetBack(nt)&&ot.getChild(pathParent(nt)).isEmpty()?ot:ot.updateChild(nt,v):xa.EMPTY_NODE}if(rt.equals(it))pe=o;else pe=viewCacheUpdateEventSnap(o,i.filter.updateChild(_e.getNode(),tt,it,nt,et,ae),_e.isFullyInitialized(),i.filter.filtersNodes())}}return pe}function viewProcessorCacheHasChild(i,o){return i.eventCache.isCompleteForChild(o)}function viewProcessorApplyUserMerge(i,o,s,v,_,$,ae){var pe=o;return v.foreach((function(v,we){var _e=pathChild(s,v);viewProcessorCacheHasChild(o,pathGetFront(_e))&&(pe=viewProcessorApplyUserOverwrite(i,pe,_e,we,_,$,ae))})),v.foreach((function(v,we){var _e=pathChild(s,v);viewProcessorCacheHasChild(o,pathGetFront(_e))||(pe=viewProcessorApplyUserOverwrite(i,pe,_e,we,_,$,ae))})),pe}function viewProcessorApplyMerge(i,o,s){return s.foreach((function(i,s){o=o.updateChild(i,s)})),o}function viewProcessorApplyServerMerge(i,o,s,v,_,$,ae,pe){if(o.serverCache.getNode().isEmpty()&&!o.serverCache.isFullyInitialized())return o;var we,_e=o;we=pathIsEmpty(s)?v:new wr(null).setTree(s,v);var et=o.serverCache.getNode();return we.children.inorderTraversal((function(s,v){if(et.hasChild(s)){var we=viewProcessorApplyMerge(0,o.serverCache.getNode().getImmediateChild(s),v);_e=viewProcessorApplyServerOverwrite(i,_e,new Mt(s),we,_,$,ae,pe)}})),we.children.inorderTraversal((function(s,v){var we=!o.serverCache.isCompleteForChild(s)&&void 0===v.value;if(!et.hasChild(s)&&!we){var tt=viewProcessorApplyMerge(0,o.serverCache.getNode().getImmediateChild(s),v);_e=viewProcessorApplyServerOverwrite(i,_e,new Mt(s),tt,_,$,ae,pe)}})),_e}function viewProcessorAckUserWrite(i,o,s,v,_,$,ae){if(null!=writeTreeRefShadowingWrite(_,s))return o;var pe=o.serverCache.isFiltered(),we=o.serverCache;if(null!=v.value){if(pathIsEmpty(s)&&we.isFullyInitialized()||we.isCompleteForPath(s))return viewProcessorApplyServerOverwrite(i,o,s,we.getNode().getChild(s),_,$,pe,ae);if(pathIsEmpty(s)){var _e=new wr(null);return we.getNode().forEachChild(Gt,(function(i,o){_e=_e.set(new Mt(i),o)})),viewProcessorApplyServerMerge(i,o,s,_e,_,$,pe,ae)}return o}var et=new wr(null);return v.foreach((function(i,o){var v=pathChild(s,i);we.isCompleteForPath(v)&&(et=et.set(i,we.getNode().getChild(v)))})),viewProcessorApplyServerMerge(i,o,s,et,_,$,pe,ae)}function viewProcessorListenComplete(i,o,s,v,_){var $=o.serverCache;return viewProcessorGenerateEventCacheAfterServerEvent(i,viewCacheUpdateServerSnap(o,$.getNode(),$.isFullyInitialized()||pathIsEmpty(s),$.isFiltered()),s,v,_r,_)}function viewProcessorRevertUserWrite(i,o,s,v,_,ae){var pe;if(null!=writeTreeRefShadowingWrite(v,s))return o;var we=new Er(v,o,_),_e=o.eventCache.getNode(),et=void 0;if(pathIsEmpty(s)||".priority"===pathGetFront(s)){var tt=void 0;if(o.serverCache.isFullyInitialized())tt=writeTreeRefCalcCompleteEventCache(v,viewCacheGetCompleteServerSnap(o));else{var nt=o.serverCache.getNode();Object($.d)(nt instanceof xa,"serverChildren would be complete if leaf node"),tt=writeTreeRefCalcCompleteEventChildren(v,nt)}et=i.filter.updateFullNode(_e,tt,ae)}else{var rt=pathGetFront(s),it=writeTreeRefCalcCompleteChild(v,rt,o.serverCache);null==it&&o.serverCache.isCompleteForChild(rt)&&(it=_e.getImmediateChild(rt)),(et=null!=it?i.filter.updateChild(_e,rt,it,pathPopFront(s),we,ae):o.eventCache.getNode().hasChild(rt)?i.filter.updateChild(_e,rt,xa.EMPTY_NODE,pathPopFront(s),we,ae):_e).isEmpty()&&o.serverCache.isFullyInitialized()&&(pe=writeTreeRefCalcCompleteEventCache(v,viewCacheGetCompleteServerSnap(o))).isLeafNode()&&(et=i.filter.updateFullNode(et,pe,ae))}return pe=o.serverCache.isFullyInitialized()||null!=writeTreeRefShadowingWrite(v,newEmptyPath()),viewCacheUpdateEventSnap(o,et,pe,i.filter.filtersNodes())}var kr,Ar=function(){function View(i,o){this.query_=i,this.eventRegistrations_=[];var s,v=this.query_._queryParams,_=new sr(v.getIndex()),$=(s=v).loadsAllData()?new sr(s.getIndex()):s.hasLimit()?new ur(s):new dr(s);this.processor_=newViewProcessor($);var ae=o.serverCache,pe=o.eventCache,we=_.updateFullNode(xa.EMPTY_NODE,ae.getNode(),null),_e=$.updateFullNode(xa.EMPTY_NODE,pe.getNode(),null),et=new Or(we,ae.isFullyInitialized(),_.filtersNodes()),tt=new Or(_e,pe.isFullyInitialized(),$.filtersNodes());this.viewCache_=newViewCache(tt,et),this.eventGenerator_=new xr(this.query_)}return Object.defineProperty(View.prototype,"query",{get:function(){return this.query_},enumerable:!1,configurable:!0}),View}();function viewGetServerCache(i){return i.viewCache_.serverCache.getNode()}function viewGetCompleteNode(i){return viewCacheGetCompleteEventSnap(i.viewCache_)}function viewGetCompleteServerCache(i,o){var s=viewCacheGetCompleteServerSnap(i.viewCache_);return s&&(i.query._queryParams.loadsAllData()||!pathIsEmpty(o)&&!s.getImmediateChild(pathGetFront(o)).isEmpty())?s.getChild(o):null}function viewIsEmpty(i){return 0===i.eventRegistrations_.length}function viewAddEventRegistration(i,o){i.eventRegistrations_.push(o)}function viewRemoveEventRegistration(i,o,s){var v=[];if(s){Object($.d)(null==o,"A cancel should cancel all event registrations.");var _=i.query._path;i.eventRegistrations_.forEach((function(i){var o=i.createCancelEvent(s,_);o&&v.push(o)}))}if(o){for(var ae=[],pe=0;pe0&&!v)if(_e){i.listenProvider_.stopListening(syncTreeQueryForListening_(o),null)}else we.forEach((function(o){var s=i.queryToTagMap.get(syncTreeMakeQueryKey_(o));i.listenProvider_.stopListening(syncTreeQueryForListening_(o),s)}));syncTreeRemoveTags_(i,we)}return ae}function syncTreeApplyTaggedQueryOverwrite(i,o,s,v){var _=syncTreeQueryKeyForTag_(i,v);if(null!=_){var $=syncTreeParseQueryKey_(_),ae=$.path,pe=$.queryId,we=newRelativePath(ae,o);return syncTreeApplyTaggedOperation_(i,ae,new Rr(newOperationSourceServerTaggedQuery(pe),we,s))}return[]}function syncTreeApplyTaggedQueryMerge(i,o,s,v){var _=syncTreeQueryKeyForTag_(i,v);if(_){var $=syncTreeParseQueryKey_(_),ae=$.path,pe=$.queryId,we=newRelativePath(ae,o),_e=wr.fromObject(s);return syncTreeApplyTaggedOperation_(i,ae,new br(newOperationSourceServerTaggedQuery(pe),we,_e))}return[]}function syncTreeAddEventRegistration(i,o,s){var v=o._path,_=null,ae=!1;i.syncPointTree_.foreachOnPath(v,(function(i,o){var s=newRelativePath(i,v);_=_||syncPointGetCompleteServerCache(o,s),ae=ae||syncPointHasCompleteView(o)}));var pe,we=i.syncPointTree_.get(v);(we?(ae=ae||syncPointHasCompleteView(we),_=_||syncPointGetCompleteServerCache(we,newEmptyPath())):(we=new Pr,i.syncPointTree_=i.syncPointTree_.set(v,we)),null!=_)?pe=!0:(pe=!1,_=xa.EMPTY_NODE,i.syncPointTree_.subtree(v).foreachChild((function(i,o){var s=syncPointGetCompleteServerCache(o,newEmptyPath());s&&(_=_.updateImmediateChild(i,s))})));var _e=syncPointViewExistsForQuery(we,o);if(!_e&&!o._queryParams.loadsAllData()){var et=syncTreeMakeQueryKey_(o);Object($.d)(!i.queryToTagMap.has(et),"View does not exist, but we have a tag");var tt=Tr++;i.queryToTagMap.set(et,tt),i.tagToQueryMap.set(tt,et)}var nt=syncPointAddEventRegistration(we,o,s,writeTreeChildWrites(i.pendingWriteTree_,v),_,pe);if(!_e&&!ae){var rt=syncPointViewForQuery(we,o);nt=nt.concat(syncTreeSetupListener_(i,o,rt))}return nt}function syncTreeCalcCompleteEventCache(i,o,s){var v=i.pendingWriteTree_,_=i.syncPointTree_.findOnPath(o,(function(i,s){var v=syncPointGetCompleteServerCache(s,newRelativePath(i,o));if(v)return v}));return writeTreeCalcCompleteEventCache(v,o,_,s,!0)}function syncTreeGetServerValue(i,o){var s=o._path,v=null;i.syncPointTree_.foreachOnPath(s,(function(i,o){var _=newRelativePath(i,s);v=v||syncPointGetCompleteServerCache(o,_)}));var _=i.syncPointTree_.get(s);_?v=v||syncPointGetCompleteServerCache(_,newEmptyPath()):(_=new Pr,i.syncPointTree_=i.syncPointTree_.set(s,_));var $=null!=v,ae=$?new Or(v,!0,!1):null;return viewGetCompleteNode(syncPointGetView(_,o,writeTreeChildWrites(i.pendingWriteTree_,o._path),$?ae.getNode():xa.EMPTY_NODE,$))}function syncTreeApplyOperationToSyncPoints_(i,o){return syncTreeApplyOperationHelper_(o,i.syncPointTree_,null,writeTreeChildWrites(i.pendingWriteTree_,newEmptyPath()))}function syncTreeApplyOperationHelper_(i,o,s,v){if(pathIsEmpty(i.path))return syncTreeApplyOperationDescendantsHelper_(i,o,s,v);var _=o.get(newEmptyPath());null==s&&null!=_&&(s=syncPointGetCompleteServerCache(_,newEmptyPath()));var $=[],ae=pathGetFront(i.path),pe=i.operationForChild(ae),we=o.children.get(ae);if(we&&pe){var _e=s?s.getImmediateChild(ae):null,et=writeTreeRefChild(v,ae);$=$.concat(syncTreeApplyOperationHelper_(pe,we,_e,et))}return _&&($=$.concat(syncPointApplyOperation(_,i,v,s))),$}function syncTreeApplyOperationDescendantsHelper_(i,o,s,v){var _=o.get(newEmptyPath());null==s&&null!=_&&(s=syncPointGetCompleteServerCache(_,newEmptyPath()));var $=[];return o.children.inorderTraversal((function(o,_){var ae=s?s.getImmediateChild(o):null,pe=writeTreeRefChild(v,o),we=i.operationForChild(o);we&&($=$.concat(syncTreeApplyOperationDescendantsHelper_(we,_,ae,pe)))})),_&&($=$.concat(syncPointApplyOperation(_,i,v,s))),$}function syncTreeCreateListenerForView_(i,o){var s=o.query,v=syncTreeTagForQuery_(i,s);return{hashFn:function(){return(viewGetServerCache(o)||xa.EMPTY_NODE).hash()},onComplete:function(o){if("ok"===o)return v?syncTreeApplyTaggedListenComplete(i,s._path,v):syncTreeApplyListenComplete(i,s._path);var _=errorForServerCode(o,s);return syncTreeRemoveEventRegistration(i,s,null,_)}}}function syncTreeTagForQuery_(i,o){var s=syncTreeMakeQueryKey_(o);return i.queryToTagMap.get(s)}function syncTreeMakeQueryKey_(i){return i._path.toString()+"$"+i._queryIdentifier}function syncTreeQueryKeyForTag_(i,o){return i.tagToQueryMap.get(o)}function syncTreeParseQueryKey_(i){var o=i.indexOf("$");return Object($.d)(-1!==o&&o0}function treeIsEmpty(i){return void 0===treeGetValue(i)&&!treeHasChildren(i)}function treeForEachChild(i,o){each(i.node.children,(function(s,v){o(new Br(s,i,v))}))}function treeForEachDescendant(i,o,s,v){s&&!v&&o(i),treeForEachChild(i,(function(i){treeForEachDescendant(i,o,!0,v)})),s&&v&&o(i)}function treeForEachAncestor(i,o,s){for(var v=s?i:i.parent;null!==v;){if(o(v))return!0;v=v.parent}return!1}function treeGetPath(i){return new Mt(null===i.parent?i.name:treeGetPath(i.parent)+"/"+i.name)}function treeUpdateParents(i){null!==i.parent&&treeUpdateChild(i.parent,i.name,i)}function treeUpdateChild(i,o,s){var v=treeIsEmpty(s),_=Object($.h)(i.node.children,o);v&&_?(delete i.node.children[o],i.node.childCount--,treeUpdateParents(i)):v||_||(i.node.children[o]=s.node,i.node.childCount++,treeUpdateParents(i))}var Lr=/[\[\].#$\/\u0000-\u001F\u007F]/,jr=/[\[\].#$\u0000-\u001F\u007F]/,Mr=10485760,isValidKey=function(i){return"string"==typeof i&&0!==i.length&&!Lr.test(i)},isValidPathString=function(i){return"string"==typeof i&&0!==i.length&&!jr.test(i)},isValidRootPathString=function(i){return i&&(i=i.replace(/^\/*\.info(\/|$)/,"/")),isValidPathString(i)},isValidPriority=function(i){return null===i||"string"==typeof i||"number"==typeof i&&!isInvalidJSONNumber(i)||i&&"object"==typeof i&&Object($.h)(i,".sv")},validateFirebaseDataArg=function(i,o,s,v){v&&void 0===o||validateFirebaseData(Object($.m)(i,"value"),o,s)},validateFirebaseData=function(i,o,s){var v=s instanceof Mt?new Qt(s,i):s;if(void 0===o)throw new Error(i+"contains undefined "+validationPathToErrorString(v));if("function"==typeof o)throw new Error(i+"contains a function "+validationPathToErrorString(v)+" with contents = "+o.toString());if(isInvalidJSONNumber(o))throw new Error(i+"contains "+o.toString()+" "+validationPathToErrorString(v));if("string"==typeof o&&o.length>Mr/3&&Object($.A)(o)>Mr)throw new Error(i+"contains a string greater than "+Mr+" utf8 bytes "+validationPathToErrorString(v)+" ('"+o.substring(0,50)+"...')");if(o&&"object"==typeof o){var _=!1,ae=!1;if(each(o,(function(o,s){if(".value"===o)_=!0;else if(".priority"!==o&&".sv"!==o&&(ae=!0,!isValidKey(o)))throw new Error(i+" contains an invalid key ("+o+") "+validationPathToErrorString(v)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');var pe,we;validationPathPush(v,o),validateFirebaseData(i,s,v),we=(pe=v).parts_.pop(),pe.byteLength_-=Object($.A)(we),pe.parts_.length>0&&(pe.byteLength_-=1)})),_&&ae)throw new Error(i+' contains ".value" child '+validationPathToErrorString(v)+" in addition to actual children.")}},validateFirebaseMergePaths=function(i,o){var s,v;for(s=0;s=0)i.server_=new cr(i.repoInfo_,(function(o,s,v,_){repoOnDataUpdate(i,o,s,v,_)}),i.authTokenProvider_,i.appCheckProvider_),setTimeout((function(){return repoOnConnectStatus(i,!0)}),0);else{if(null!=s){if("object"!=typeof s)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Object($.C)(s)}catch(i){throw new Error("Invalid authOverride provided: "+i)}}i.persistentConnection_=new qt(i.repoInfo_,o,(function(o,s,v,_){repoOnDataUpdate(i,o,s,v,_)}),(function(o){repoOnConnectStatus(i,o)}),(function(o){repoOnServerInfoUpdate(i,o)}),i.authTokenProvider_,i.appCheckProvider_,s),i.server_=i.persistentConnection_}var v,_,ae;i.authTokenProvider_.addTokenChangeListener((function(o){i.server_.refreshAuthToken(o)})),i.appCheckProvider_.addTokenChangeListener((function(o){i.server_.refreshAppCheckToken(o.token)})),i.statsReporter_=(v=i.repoInfo_,_=function(){return new gr(i.stats_,i.server_)},ae=v.toString(),St[ae]||(St[ae]=_()),St[ae]),i.infoData_=new hr,i.infoSyncTree_=new Ir({startListening:function(o,s,v,_){var $=[],ae=i.infoData_.getNode(o._path);return ae.isEmpty()||($=syncTreeApplyServerOverwrite(i.infoSyncTree_,o._path,ae),setTimeout((function(){_("ok")}),0)),$},stopListening:function(){}}),repoUpdateInfo(i,"connected",!1),i.serverSyncTree_=new Ir({startListening:function(o,s,v,_){return i.server_.listen(o,v,s,(function(s,v){var $=_(s,v);eventQueueRaiseEventsForChangedPath(i.eventQueue_,o._path,$)})),[]},stopListening:function(o,s){i.server_.unlisten(o,s)}})}function repoServerTime(i){var o=i.infoData_.getNode(new Mt(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+o}function repoGenerateServerValues(i){return generateWithValues({timestamp:repoServerTime(i)})}function repoOnDataUpdate(i,o,s,v,_){i.dataUpdateCount++;var ae=new Mt(o);s=i.interceptServerDataCallback_?i.interceptServerDataCallback_(o,s):s;var pe=[];if(_)if(v){var we=Object($.x)(s,(function(i){return nodeFromJSON(i)}));pe=syncTreeApplyTaggedQueryMerge(i.serverSyncTree_,ae,we,_)}else{var _e=nodeFromJSON(s);pe=syncTreeApplyTaggedQueryOverwrite(i.serverSyncTree_,ae,_e,_)}else if(v){var et=Object($.x)(s,(function(i){return nodeFromJSON(i)}));pe=syncTreeApplyServerMerge(i.serverSyncTree_,ae,et)}else{var tt=nodeFromJSON(s);pe=syncTreeApplyServerOverwrite(i.serverSyncTree_,ae,tt)}var nt=ae;pe.length>0&&(nt=repoRerunTransactions(i,ae)),eventQueueRaiseEventsForChangedPath(i.eventQueue_,nt,pe)}function repoInterceptServerData(i,o){i.interceptServerDataCallback_=o}function repoOnConnectStatus(i,o){repoUpdateInfo(i,"connected",o),!1===o&&repoRunOnDisconnectEvents(i)}function repoOnServerInfoUpdate(i,o){each(o,(function(o,s){repoUpdateInfo(i,o,s)}))}function repoUpdateInfo(i,o,s){var v=new Mt("/.info/"+o),_=nodeFromJSON(s);i.infoData_.updateSnapshot(v,_);var $=syncTreeApplyServerOverwrite(i.infoSyncTree_,v,_);eventQueueRaiseEventsForChangedPath(i.eventQueue_,v,$)}function repoGetNextWriteId(i){return i.nextWriteId_++}function repoGetValue(i,o){var s=syncTreeGetServerValue(i.serverSyncTree_,o);return null!=s?Promise.resolve(s):i.server_.get(o).then((function(s){var v=nodeFromJSON(s).withIndex(o._queryParams.getIndex()),_=syncTreeApplyServerOverwrite(i.serverSyncTree_,o._path,v);return eventQueueRaiseEventsAtPath(i.eventQueue_,o._path,_),Promise.resolve(v)}),(function(s){return repoLog(i,"get for query "+Object($.C)(o)+" failed: "+s),Promise.reject(new Error(s))}))}function repoSetWithPriority(i,o,s,v,_){repoLog(i,"set",{path:o.toString(),value:s,priority:v});var $=repoGenerateServerValues(i),ae=nodeFromJSON(s,v),pe=syncTreeCalcCompleteEventCache(i.serverSyncTree_,o),we=resolveDeferredValueSnapshot(ae,pe,$),_e=repoGetNextWriteId(i),et=syncTreeApplyUserOverwrite(i.serverSyncTree_,o,we,_e,!0);eventQueueQueueEvents(i.eventQueue_,et),i.server_.put(o.toString(),ae.val(!0),(function(s,v){var $="ok"===s;$||warn("set at "+o+" failed: "+s);var ae=syncTreeAckUserWrite(i.serverSyncTree_,_e,!$);eventQueueRaiseEventsForChangedPath(i.eventQueue_,o,ae),repoCallOnCompleteCallback(i,_,s,v)}));var tt=repoAbortTransactions(i,o);repoRerunTransactions(i,tt),eventQueueRaiseEventsForChangedPath(i.eventQueue_,tt,[])}function repoUpdate(i,o,s,v){repoLog(i,"update",{path:o.toString(),value:s});var _=!0,$=repoGenerateServerValues(i),ae={};if(each(s,(function(s,v){_=!1,ae[s]=resolveDeferredValueTree(pathChild(o,s),nodeFromJSON(v),i.serverSyncTree_,$)})),_)log("update() called with empty data. Don't do anything."),repoCallOnCompleteCallback(i,v,"ok",void 0);else{var pe=repoGetNextWriteId(i),we=syncTreeApplyUserMerge(i.serverSyncTree_,o,ae,pe);eventQueueQueueEvents(i.eventQueue_,we),i.server_.merge(o.toString(),s,(function(s,_){var $="ok"===s;$||warn("update at "+o+" failed: "+s);var ae=syncTreeAckUserWrite(i.serverSyncTree_,pe,!$),we=ae.length>0?repoRerunTransactions(i,o):o;eventQueueRaiseEventsForChangedPath(i.eventQueue_,we,ae),repoCallOnCompleteCallback(i,v,s,_)})),each(s,(function(s){var v=repoAbortTransactions(i,pathChild(o,s));repoRerunTransactions(i,v)})),eventQueueRaiseEventsForChangedPath(i.eventQueue_,o,[])}}function repoRunOnDisconnectEvents(i){repoLog(i,"onDisconnectEvents");var o=repoGenerateServerValues(i),s=newSparseSnapshotTree();sparseSnapshotTreeForEachTree(i.onDisconnect_,newEmptyPath(),(function(v,_){var $=resolveDeferredValueTree(v,_,i.serverSyncTree_,o);sparseSnapshotTreeRemember(s,v,$)}));var v=[];sparseSnapshotTreeForEachTree(s,newEmptyPath(),(function(o,s){v=v.concat(syncTreeApplyServerOverwrite(i.serverSyncTree_,o,s));var _=repoAbortTransactions(i,o);repoRerunTransactions(i,_)})),i.onDisconnect_=newSparseSnapshotTree(),eventQueueRaiseEventsForChangedPath(i.eventQueue_,newEmptyPath(),v)}function repoOnDisconnectSet(i,o,s,v){var _=nodeFromJSON(s);i.server_.onDisconnectPut(o.toString(),_.val(!0),(function(s,$){"ok"===s&&sparseSnapshotTreeRemember(i.onDisconnect_,o,_),repoCallOnCompleteCallback(i,v,s,$)}))}function repoOnDisconnectSetWithPriority(i,o,s,v,_){var $=nodeFromJSON(s,v);i.server_.onDisconnectPut(o.toString(),$.val(!0),(function(s,v){"ok"===s&&sparseSnapshotTreeRemember(i.onDisconnect_,o,$),repoCallOnCompleteCallback(i,_,s,v)}))}function repoOnDisconnectUpdate(i,o,s,v){if(Object($.q)(s))return log("onDisconnect().update() called with empty data. Don't do anything."),void repoCallOnCompleteCallback(i,v,"ok",void 0);i.server_.onDisconnectMerge(o.toString(),s,(function(_,$){"ok"===_&&each(s,(function(s,v){var _=nodeFromJSON(v);sparseSnapshotTreeRemember(i.onDisconnect_,pathChild(o,s),_)})),repoCallOnCompleteCallback(i,v,_,$)}))}function repoAddEventCallbackForQuery(i,o,s){var v;v=".info"===pathGetFront(o._path)?syncTreeAddEventRegistration(i.infoSyncTree_,o,s):syncTreeAddEventRegistration(i.serverSyncTree_,o,s),eventQueueRaiseEventsAtPath(i.eventQueue_,o._path,v)}function repoRemoveEventCallbackForQuery(i,o,s){var v;v=".info"===pathGetFront(o._path)?syncTreeRemoveEventRegistration(i.infoSyncTree_,o,s):syncTreeRemoveEventRegistration(i.serverSyncTree_,o,s),eventQueueRaiseEventsAtPath(i.eventQueue_,o._path,v)}function repoInterrupt(i){i.persistentConnection_&&i.persistentConnection_.interrupt(Vr)}function repoStats(i,o){if(void 0===o&&(o=!1),"undefined"!=typeof console){var s;o?(i.statsListener_||(i.statsListener_=new fr(i.stats_)),s=i.statsListener_.get()):s=i.stats_.get();var v=Object.keys(s).reduce((function(i,o){return Math.max(o.length,i)}),0);each(s,(function(i,o){for(var s=i,_=i.length;_0,"Sending zero length transaction queue"),s.every((function(i){return 0===i.status}))&&repoSendTransactionQueue(i,treeGetPath(o),s)}else treeHasChildren(o)&&treeForEachChild(o,(function(o){repoSendReadyTransactions(i,o)}))}function repoSendTransactionQueue(i,o,s){for(var v=s.map((function(i){return i.currentWriteId})),_=repoGetLatestState(i,o,v),ae=_,pe=_.hash(),we=0;we=Ur)nt=!0,we="maxretry",_=_.concat(syncTreeAckUserWrite(i.serverSyncTree_,et.currentWriteId,!0));else{var rt=repoGetLatestState(i,et.path,ae);et.currentInputSnapshot=rt;var it=o[pe].update(rt.val());if(void 0!==it){validateFirebaseData("transaction failed: Data returned ",it,et.path);var ot=nodeFromJSON(it);"object"==typeof it&&null!=it&&Object($.h)(it,".priority")||(ot=ot.updatePriority(rt.getPriority()));var st=et.currentWriteId,dt=repoGenerateServerValues(i),ut=resolveDeferredValueSnapshot(ot,rt,dt);et.currentOutputSnapshotRaw=ot,et.currentOutputSnapshotResolved=ut,et.currentWriteId=repoGetNextWriteId(i),ae.splice(ae.indexOf(st),1),_=(_=_.concat(syncTreeApplyUserOverwrite(i.serverSyncTree_,et.path,ut,et.currentWriteId,et.applyLocally))).concat(syncTreeAckUserWrite(i.serverSyncTree_,st,!0))}else nt=!0,we="nodata",_=_.concat(syncTreeAckUserWrite(i.serverSyncTree_,et.currentWriteId,!0))}eventQueueRaiseEventsForChangedPath(i.eventQueue_,s,_),_=[],nt&&(o[pe].status=2,_e=o[pe].unwatcher,setTimeout(_e,Math.floor(0)),o[pe].onComplete&&("nodata"===we?v.push((function(){return o[pe].onComplete(null,!1,o[pe].currentInputSnapshot)})):v.push((function(){return o[pe].onComplete(new Error(we),!1,null)}))))},pe=0;pe0?s:void 0)}treeForEachChild(o,(function(o){repoPruneCompletedTransactionsBelowNode(i,o)}))}function repoAbortTransactions(i,o){var s=treeGetPath(repoGetAncestorTransactionNode(i,o)),v=treeSubTree(i.transactionQueueTree_,o);return treeForEachAncestor(v,(function(o){repoAbortTransactionsOnNode(i,o)})),repoAbortTransactionsOnNode(i,v),treeForEachDescendant(v,(function(o){repoAbortTransactionsOnNode(i,o)})),s}function repoAbortTransactionsOnNode(i,o){var s=treeGetValue(o);if(s){for(var v=[],_=[],ae=-1,pe=0;pe0){var _=s[v];try{_=decodeURIComponent(_.replace(/\+/g," "))}catch(i){}o+="/"+_}return o}function decodeQuery(i){var o,s,v={};"?"===i.charAt(0)&&(i=i.substring(1));try{for(var _=Object(ae.__values)(i.split("&")),$=_.next();!$.done;$=_.next()){var pe=$.value;if(0!==pe.length){var we=pe.split("=");2===we.length?v[decodeURIComponent(we[0])]=decodeURIComponent(we[1]):warn("Invalid query segment '"+pe+"' in query '"+i+"'")}}}catch(i){o={error:i}}finally{try{$&&!$.done&&(s=_.return)&&s.call(_)}finally{if(o)throw o.error}}return v}var parseRepoInfo=function(i,o){var s=parseDatabaseURL(i),v=s.namespace;"firebase.com"===s.domain&&fatal(s.host+" is no longer supported. Please use .firebaseio.com instead"),v&&"undefined"!==v||"localhost"===s.domain||fatal("Cannot parse Firebase url. Please use https://.firebaseio.com"),s.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&warn("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var _="ws"===s.scheme||"wss"===s.scheme;return{repoInfo:new xt(s.host,s.secure,v,o,_,"",v!==s.subdomain),path:new Mt(s.pathString)}},parseDatabaseURL=function(i){var o="",s="",v="",_="",$="",ae=!0,pe="https",we=443;if("string"==typeof i){var _e=i.indexOf("//");_e>=0&&(pe=i.substring(0,_e-1),i=i.substring(_e+2));var et=i.indexOf("/");-1===et&&(et=i.length);var tt=i.indexOf("?");-1===tt&&(tt=i.length),o=i.substring(0,Math.min(et,tt)),et=0?(ae="https"===pe||"wss"===pe,we=parseInt(o.substring(_e+1),10)):_e=o.length;var rt=o.slice(0,_e);if("localhost"===rt.toLowerCase())s="localhost";else if(rt.split(".").length<=2)s=rt;else{var it=o.indexOf(".");v=o.substring(0,it).toLowerCase(),s=o.substring(it+1),$=v}"ns"in nt&&($=nt.ns)}return{host:o,port:we,domain:s,subdomain:v,secure:ae,scheme:pe,pathString:_,namespace:$}},$r=function(){function DataEvent(i,o,s,v){this.eventType=i,this.eventRegistration=o,this.snapshot=s,this.prevName=v}return DataEvent.prototype.getPath=function(){var i=this.snapshot.ref;return"value"===this.eventType?i._path:i.parent._path},DataEvent.prototype.getEventType=function(){return this.eventType},DataEvent.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},DataEvent.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+Object($.C)(this.snapshot.exportVal())},DataEvent}(),qr=function(){function CancelEvent(i,o,s){this.eventRegistration=i,this.error=o,this.path=s}return CancelEvent.prototype.getPath=function(){return this.path},CancelEvent.prototype.getEventType=function(){return"cancel"},CancelEvent.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},CancelEvent.prototype.toString=function(){return this.path.toString()+":cancel"},CancelEvent}(),zr=function(){function CallbackContext(i,o){this.snapshotCallback=i,this.cancelCallback=o}return CallbackContext.prototype.onValue=function(i,o){this.snapshotCallback.call(null,i,o)},CallbackContext.prototype.onCancel=function(i){return Object($.d)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,i)},Object.defineProperty(CallbackContext.prototype,"hasCancelCallback",{get:function(){return!!this.cancelCallback},enumerable:!1,configurable:!0}),CallbackContext.prototype.matches=function(i){return this.snapshotCallback===i.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===i.snapshotCallback.userCallback&&this.snapshotCallback.context===i.snapshotCallback.context},CallbackContext}(),Zr=function(){function OnDisconnect(i,o){this._repo=i,this._path=o}return OnDisconnect.prototype.cancel=function(){var i,o,s,v=new $.a;return i=this._repo,o=this._path,s=v.wrapCallback((function(){})),i.server_.onDisconnectCancel(o.toString(),(function(v,_){"ok"===v&&sparseSnapshotTreeForget(i.onDisconnect_,o),repoCallOnCompleteCallback(0,s,v,_)})),v.promise},OnDisconnect.prototype.remove=function(){validateWritablePath("OnDisconnect.remove",this._path);var i=new $.a;return repoOnDisconnectSet(this._repo,this._path,null,i.wrapCallback((function(){}))),i.promise},OnDisconnect.prototype.set=function(i){validateWritablePath("OnDisconnect.set",this._path),validateFirebaseDataArg("OnDisconnect.set",i,this._path,!1);var o=new $.a;return repoOnDisconnectSet(this._repo,this._path,i,o.wrapCallback((function(){}))),o.promise},OnDisconnect.prototype.setWithPriority=function(i,o){validateWritablePath("OnDisconnect.setWithPriority",this._path),validateFirebaseDataArg("OnDisconnect.setWithPriority",i,this._path,!1),validatePriority("OnDisconnect.setWithPriority",o,!1);var s=new $.a;return repoOnDisconnectSetWithPriority(this._repo,this._path,i,o,s.wrapCallback((function(){}))),s.promise},OnDisconnect.prototype.update=function(i){validateWritablePath("OnDisconnect.update",this._path),validateFirebaseMergeDataArg("OnDisconnect.update",i,this._path,!1);var o=new $.a;return repoOnDisconnectUpdate(this._repo,this._path,i,o.wrapCallback((function(){}))),o.promise},OnDisconnect}(),Hr=function(){function QueryImpl(i,o,s,v){this._repo=i,this._path=o,this._queryParams=s,this._orderByCalled=v}return Object.defineProperty(QueryImpl.prototype,"key",{get:function(){return pathIsEmpty(this._path)?null:pathGetBack(this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(QueryImpl.prototype,"ref",{get:function(){return new Gr(this._repo,this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(QueryImpl.prototype,"_queryIdentifier",{get:function(){var i=queryParamsGetQueryObject(this._queryParams),o=ObjectToUniqueKey(i);return"{}"===o?"default":o},enumerable:!1,configurable:!0}),Object.defineProperty(QueryImpl.prototype,"_queryObject",{get:function(){return queryParamsGetQueryObject(this._queryParams)},enumerable:!1,configurable:!0}),QueryImpl.prototype.isEqual=function(i){if(!((i=Object($.n)(i))instanceof QueryImpl))return!1;var o=this._repo===i._repo,s=pathEquals(this._path,i._path),v=this._queryIdentifier===i._queryIdentifier;return o&&s&&v},QueryImpl.prototype.toJSON=function(){return this.toString()},QueryImpl.prototype.toString=function(){return this._repo.toString()+pathToUrlEncodedString(this._path)},QueryImpl}();function validateNoPreviousOrderByCall(i,o){if(!0===i._orderByCalled)throw new Error(o+": You can't combine multiple orderBy calls.")}function validateQueryEndpoints(i){var o=null,s=null;if(i.hasStart()&&(o=i.getIndexStartValue()),i.hasEnd()&&(s=i.getIndexEndValue()),i.getIndex()===Gt){var v="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",_="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(i.hasStart()){if(i.getIndexStartName()!==ut)throw new Error(v);if("string"!=typeof o)throw new Error(_)}if(i.hasEnd()){if(i.getIndexEndName()!==lt)throw new Error(v);if("string"!=typeof s)throw new Error(_)}}else if(i.getIndex()===ca){if(null!=o&&!isValidPriority(o)||null!=s&&!isValidPriority(s))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(Object($.d)(i.getIndex()instanceof nr||i.getIndex()===rr,"unknown index type."),null!=o&&"object"==typeof o||null!=s&&"object"==typeof s)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function validateLimit(i){if(i.hasStart()&&i.hasEnd()&&i.hasLimit()&&!i.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}var Gr=function(i){function ReferenceImpl(o,s){return i.call(this,o,s,new lr,!1)||this}return Object(ae.__extends)(ReferenceImpl,i),Object.defineProperty(ReferenceImpl.prototype,"parent",{get:function(){var i=pathParent(this._path);return null===i?null:new ReferenceImpl(this._repo,i)},enumerable:!1,configurable:!0}),Object.defineProperty(ReferenceImpl.prototype,"root",{get:function(){for(var i=this;null!==i.parent;)i=i.parent;return i},enumerable:!1,configurable:!0}),ReferenceImpl}(Hr),Xr=function(){function DataSnapshot(i,o,s){this._node=i,this.ref=o,this._index=s}return Object.defineProperty(DataSnapshot.prototype,"priority",{get:function(){return this._node.getPriority().val()},enumerable:!1,configurable:!0}),Object.defineProperty(DataSnapshot.prototype,"key",{get:function(){return this.ref.key},enumerable:!1,configurable:!0}),Object.defineProperty(DataSnapshot.prototype,"size",{get:function(){return this._node.numChildren()},enumerable:!1,configurable:!0}),DataSnapshot.prototype.child=function(i){var o=new Mt(i),s=child(this.ref,i);return new DataSnapshot(this._node.getChild(o),s,ca)},DataSnapshot.prototype.exists=function(){return!this._node.isEmpty()},DataSnapshot.prototype.exportVal=function(){return this._node.val(!0)},DataSnapshot.prototype.forEach=function(i){var o=this;return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(function(s,v){return i(new DataSnapshot(v,child(o.ref,s),ca))}))},DataSnapshot.prototype.hasChild=function(i){var o=new Mt(i);return!this._node.getChild(o).isEmpty()},DataSnapshot.prototype.hasChildren=function(){return!this._node.isLeafNode()&&!this._node.isEmpty()},DataSnapshot.prototype.toJSON=function(){return this.exportVal()},DataSnapshot.prototype.val=function(){return this._node.val()},DataSnapshot}();function ref(i,o){return(i=Object($.n)(i))._checkNotDeleted("ref"),void 0!==o?child(i._root,o):i._root}function refFromURL(i,o){(i=Object($.n)(i))._checkNotDeleted("refFromURL");var s=parseRepoInfo(o,i._repo.repoInfo_.nodeAdmin);validateUrl("refFromURL",s);var v=s.repoInfo;return i._repo.repoInfo_.isCustomHost()||v.host===i._repo.repoInfo_.host||fatal("refFromURL: Host name does not match the current database: (found "+v.host+" but expected "+i._repo.repoInfo_.host+")"),ref(i,s.path.toString())}function child(i,o){return null===pathGetFront((i=Object($.n)(i))._path)?validateRootPathString("child","path",o,!1):validatePathString("child","path",o,!1),new Gr(i._repo,pathChild(i._path,o))}function push(i,o){i=Object($.n)(i),validateWritablePath("push",i._path),validateFirebaseDataArg("push",o,i._path,!0);var s,v=repoServerTime(i._repo),_=or(v),ae=child(i,_),pe=child(i,_);return s=null!=o?set(pe,o).then((function(){return pe})):Promise.resolve(pe),ae.then=s.then.bind(s),ae.catch=s.then.bind(s,void 0),ae}function remove(i){return validateWritablePath("remove",i._path),set(i,null)}function set(i,o){i=Object($.n)(i),validateWritablePath("set",i._path),validateFirebaseDataArg("set",o,i._path,!1);var s=new $.a;return repoSetWithPriority(i._repo,i._path,o,null,s.wrapCallback((function(){}))),s.promise}function setPriority(i,o){i=Object($.n)(i),validateWritablePath("setPriority",i._path),validatePriority("setPriority",o,!1);var s=new $.a;return repoSetWithPriority(i._repo,pathChild(i._path,".priority"),o,null,s.wrapCallback((function(){}))),s.promise}function setWithPriority(i,o,s){if(validateWritablePath("setWithPriority",i._path),validateFirebaseDataArg("setWithPriority",o,i._path,!1),validatePriority("setWithPriority",s,!1),".length"===i.key||".keys"===i.key)throw"setWithPriority failed: "+i.key+" is a read-only object.";var v=new $.a;return repoSetWithPriority(i._repo,i._path,o,s,v.wrapCallback((function(){}))),v.promise}function update(i,o){validateFirebaseMergeDataArg("update",o,i._path,!1);var s=new $.a;return repoUpdate(i._repo,i._path,o,s.wrapCallback((function(){}))),s.promise}function get(i){return repoGetValue((i=Object($.n)(i))._repo,i).then((function(o){return new Xr(o,new Gr(i._repo,i._path),i._queryParams.getIndex())}))}var Yr=function(){function ValueEventRegistration(i){this.callbackContext=i}return ValueEventRegistration.prototype.respondsTo=function(i){return"value"===i},ValueEventRegistration.prototype.createEvent=function(i,o){var s=o._queryParams.getIndex();return new $r("value",this,new Xr(i.snapshotNode,new Gr(o._repo,o._path),s))},ValueEventRegistration.prototype.getEventRunner=function(i){var o=this;return"cancel"===i.getEventType()?function(){return o.callbackContext.onCancel(i.error)}:function(){return o.callbackContext.onValue(i.snapshot,null)}},ValueEventRegistration.prototype.createCancelEvent=function(i,o){return this.callbackContext.hasCancelCallback?new qr(this,i,o):null},ValueEventRegistration.prototype.matches=function(i){return i instanceof ValueEventRegistration&&(!i.callbackContext||!this.callbackContext||i.callbackContext.matches(this.callbackContext))},ValueEventRegistration.prototype.hasAnyCallback=function(){return null!==this.callbackContext},ValueEventRegistration}(),Kr=function(){function ChildEventRegistration(i,o){this.eventType=i,this.callbackContext=o}return ChildEventRegistration.prototype.respondsTo=function(i){var o="children_added"===i?"child_added":i;return o="children_removed"===o?"child_removed":o,this.eventType===o},ChildEventRegistration.prototype.createCancelEvent=function(i,o){return this.callbackContext.hasCancelCallback?new qr(this,i,o):null},ChildEventRegistration.prototype.createEvent=function(i,o){Object($.d)(null!=i.childName,"Child events should have a childName.");var s=child(new Gr(o._repo,o._path),i.childName),v=o._queryParams.getIndex();return new $r(i.type,this,new Xr(i.snapshotNode,s,v),i.prevName)},ChildEventRegistration.prototype.getEventRunner=function(i){var o=this;return"cancel"===i.getEventType()?function(){return o.callbackContext.onCancel(i.error)}:function(){return o.callbackContext.onValue(i.snapshot,i.prevName)}},ChildEventRegistration.prototype.matches=function(i){return i instanceof ChildEventRegistration&&(this.eventType===i.eventType&&(!this.callbackContext||!i.callbackContext||this.callbackContext.matches(i.callbackContext)))},ChildEventRegistration.prototype.hasAnyCallback=function(){return!!this.callbackContext},ChildEventRegistration}();function addEventListener(i,o,s,v,_){var $;if("object"==typeof v&&($=void 0,_=v),"function"==typeof v&&($=v),_&&_.onlyOnce){var ae=s,onceCallback=function(o,s){repoRemoveEventCallbackForQuery(i._repo,i,we),ae(o,s)};onceCallback.userCallback=s.userCallback,onceCallback.context=s.context,s=onceCallback}var pe=new zr(s,$||void 0),we="value"===o?new Yr(pe):new Kr(o,pe);return repoAddEventCallbackForQuery(i._repo,i,we),function(){return repoRemoveEventCallbackForQuery(i._repo,i,we)}}function onValue(i,o,s,v){return addEventListener(i,"value",o,s,v)}function onChildAdded(i,o,s,v){return addEventListener(i,"child_added",o,s,v)}function onChildChanged(i,o,s,v){return addEventListener(i,"child_changed",o,s,v)}function onChildMoved(i,o,s,v){return addEventListener(i,"child_moved",o,s,v)}function onChildRemoved(i,o,s,v){return addEventListener(i,"child_removed",o,s,v)}function off(i,o,s){var v=null,_=s?new zr(s):null;"value"===o?v=new Yr(_):o&&(v=new Kr(o,_)),repoRemoveEventCallbackForQuery(i._repo,i,v)}var Jr=function Jr(){},_i=function(i){function QueryEndAtConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryEndAtConstraint,i),QueryEndAtConstraint.prototype._apply=function(i){validateFirebaseDataArg("endAt",this._value,i._path,!0);var o=queryParamsEndAt(i._queryParams,this._value,this._key);if(validateLimit(o),validateQueryEndpoints(o),i._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Hr(i._repo,i._path,o,i._orderByCalled)},QueryEndAtConstraint}(Jr);function endAt(i,o){return validateKey("endAt","key",o,!0),new _i(i,o)}var Ei=function(i){function QueryEndBeforeConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryEndBeforeConstraint,i),QueryEndBeforeConstraint.prototype._apply=function(i){validateFirebaseDataArg("endBefore",this._value,i._path,!1);var o,s,v,_,$=(o=i._queryParams,s=this._value,v=this._key,o.index_===Gt?("string"==typeof s&&(s=predecessor(s)),_=queryParamsEndAt(o,s,v)):_=queryParamsEndAt(o,s,null==v?ut:predecessor(v)),_.endBeforeSet_=!0,_);if(validateLimit($),validateQueryEndpoints($),i._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Hr(i._repo,i._path,$,i._orderByCalled)},QueryEndBeforeConstraint}(Jr);function endBefore(i,o){return validateKey("endBefore","key",o,!0),new Ei(i,o)}var Ui=function(i){function QueryStartAtConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryStartAtConstraint,i),QueryStartAtConstraint.prototype._apply=function(i){validateFirebaseDataArg("startAt",this._value,i._path,!0);var o=queryParamsStartAt(i._queryParams,this._value,this._key);if(validateLimit(o),validateQueryEndpoints(o),i._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new Hr(i._repo,i._path,o,i._orderByCalled)},QueryStartAtConstraint}(Jr);function startAt(i,o){return void 0===i&&(i=null),validateKey("startAt","key",o,!0),new Ui(i,o)}var Ji=function(i){function QueryStartAfterConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryStartAfterConstraint,i),QueryStartAfterConstraint.prototype._apply=function(i){validateFirebaseDataArg("startAfter",this._value,i._path,!1);var o=queryParamsStartAfter(i._queryParams,this._value,this._key);if(validateLimit(o),validateQueryEndpoints(o),i._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new Hr(i._repo,i._path,o,i._orderByCalled)},QueryStartAfterConstraint}(Jr);function startAfter(i,o){return validateKey("startAfter","key",o,!0),new Ji(i,o)}var no=function(i){function QueryLimitToFirstConstraint(o){var s=i.call(this)||this;return s._limit=o,s}return Object(ae.__extends)(QueryLimitToFirstConstraint,i),QueryLimitToFirstConstraint.prototype._apply=function(i){if(i._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new Hr(i._repo,i._path,(o=i._queryParams,s=this._limit,(v=o.copy()).limitSet_=!0,v.limit_=s,v.viewFrom_="l",v),i._orderByCalled);var o,s,v},QueryLimitToFirstConstraint}(Jr);function limitToFirst(i){if("number"!=typeof i||Math.floor(i)!==i||i<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new no(i)}var io=function(i){function QueryLimitToLastConstraint(o){var s=i.call(this)||this;return s._limit=o,s}return Object(ae.__extends)(QueryLimitToLastConstraint,i),QueryLimitToLastConstraint.prototype._apply=function(i){if(i._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new Hr(i._repo,i._path,(o=i._queryParams,s=this._limit,(v=o.copy()).limitSet_=!0,v.limit_=s,v.viewFrom_="r",v),i._orderByCalled);var o,s,v},QueryLimitToLastConstraint}(Jr);function limitToLast(i){if("number"!=typeof i||Math.floor(i)!==i||i<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new io(i)}var oo=function(i){function QueryOrderByChildConstraint(o){var s=i.call(this)||this;return s._path=o,s}return Object(ae.__extends)(QueryOrderByChildConstraint,i),QueryOrderByChildConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByChild");var o=new Mt(this._path);if(pathIsEmpty(o))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");var s=new nr(o),v=queryParamsOrderBy(i._queryParams,s);return validateQueryEndpoints(v),new Hr(i._repo,i._path,v,!0)},QueryOrderByChildConstraint}(Jr);function orderByChild(i){if("$key"===i)throw new Error('orderByChild: "$key" is invalid. Use orderByKey() instead.');if("$priority"===i)throw new Error('orderByChild: "$priority" is invalid. Use orderByPriority() instead.');if("$value"===i)throw new Error('orderByChild: "$value" is invalid. Use orderByValue() instead.');return validatePathString("orderByChild","path",i,!1),new oo(i)}var mo=function(i){function QueryOrderByKeyConstraint(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(QueryOrderByKeyConstraint,i),QueryOrderByKeyConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByKey");var o=queryParamsOrderBy(i._queryParams,Gt);return validateQueryEndpoints(o),new Hr(i._repo,i._path,o,!0)},QueryOrderByKeyConstraint}(Jr);var Ro=function(i){function QueryOrderByPriorityConstraint(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(QueryOrderByPriorityConstraint,i),QueryOrderByPriorityConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByPriority");var o=queryParamsOrderBy(i._queryParams,ca);return validateQueryEndpoints(o),new Hr(i._repo,i._path,o,!0)},QueryOrderByPriorityConstraint}(Jr);var Oo=function(i){function QueryOrderByValueConstraint(){return null!==i&&i.apply(this,arguments)||this}return Object(ae.__extends)(QueryOrderByValueConstraint,i),QueryOrderByValueConstraint.prototype._apply=function(i){validateNoPreviousOrderByCall(i,"orderByValue");var o=queryParamsOrderBy(i._queryParams,rr);return validateQueryEndpoints(o),new Hr(i._repo,i._path,o,!0)},QueryOrderByValueConstraint}(Jr);var wo=function(i){function QueryEqualToValueConstraint(o,s){var v=i.call(this)||this;return v._value=o,v._key=s,v}return Object(ae.__extends)(QueryEqualToValueConstraint,i),QueryEqualToValueConstraint.prototype._apply=function(i){if(validateFirebaseDataArg("equalTo",this._value,i._path,!1),i._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(i._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new _i(this._value,this._key)._apply(new Ui(this._value,this._key)._apply(i))},QueryEqualToValueConstraint}(Jr);function equalTo(i,o){return validateKey("equalTo","key",o,!0),new wo(i,o)}function query(i){for(var o,s,v=[],_=1;_0&&!this.isVisible?(this.introJs.start(),this.isVisible=!0,this.introJs.goToStepNumber(s+1),_&&_(this.introJs._currentStep)):!o&&this.isVisible&&(this.isVisible=!1,this.introJs.exit())}},{key:"render",value:function render(){return null}}])&&_defineProperties(_.prototype,pe),we&&_defineProperties(_,we),Steps}($.Component);o.default=et,_defineProperty(et,"propTypes",{enabled:_.default.bool,initialStep:_.default.number.isRequired,steps:_.default.arrayOf(_.default.shape({element:_.default.oneOfType([_.default.string,"undefined"==typeof Element?_.default.any:_.default.instanceOf(Element)]),intro:_.default.node.isRequired,position:pe.tooltipPosition,tooltipClass:_.default.string,highlightClass:_.default.string})).isRequired,onStart:_.default.func,onExit:_.default.func.isRequired,onBeforeExit:_.default.func,onBeforeChange:_.default.func,onAfterChange:_.default.func,onChange:_.default.func,onPreventChange:_.default.func,onComplete:_.default.func,options:pe.options}),_defineProperty(et,"defaultProps",{enabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:we.options})},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var v=_interopRequireDefault(s(205)),_=_interopRequireDefault(s(2)),$=s(0),ae=_interopRequireWildcard(s(206)),pe=_interopRequireWildcard(s(207)),we=s(208);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var i=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return i},i}function _interopRequireWildcard(i){if(i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var o=_getRequireWildcardCache();if(o&&o.has(i))return o.get(i);var s={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in i)if(Object.prototype.hasOwnProperty.call(i,_)){var $=v?Object.getOwnPropertyDescriptor(i,_):null;$&&($.get||$.set)?Object.defineProperty(s,_,$):s[_]=i[_]}return s.default=i,o&&o.set(i,s),s}function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(i){return typeof i}:function _typeof(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}function ownKeys(i,o){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(i);o&&(v=v.filter((function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable}))),s.push.apply(s,v)}return s}function _objectSpread(i){for(var o=1;o0?this.introJs.showHints():o||this.introJs.hideHints()}},{key:"render",value:function render(){return null}}])&&_defineProperties(_.prototype,$),ae&&_defineProperties(_,ae),Hints}($.Component);o.default=_e,_defineProperty(_e,"propTypes",{enabled:_.default.bool,hints:_.default.arrayOf(_.default.shape({element:_.default.string.isRequired,hint:_.default.string.isRequired,hintPosition:ae.hintPosition})).isRequired,onClick:_.default.func,onClose:_.default.func,options:ae.options}),_defineProperty(_e,"defaultProps",{enabled:!1,onClick:null,onClose:null,options:pe.options})},function(i,o,s){},,,,,,,,,,,,function(i,o,s){!function webpackUniversalModuleDefinition(o,s){i.exports=s()}(0,(function(){return function(i){var o={};function __webpack_require__(s){if(o[s])return o[s].exports;var v=o[s]={exports:{},id:s,loaded:!1};return i[s].call(v.exports,v,v.exports,__webpack_require__),v.loaded=!0,v.exports}return __webpack_require__.m=i,__webpack_require__.c=o,__webpack_require__.p="",__webpack_require__(0)}([function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(1),_=s(3),$=s(8),ae=s(15);function parse(i,o,s){var ae=null,proxyDelegate=function(i,o){s&&s(i,o),ae&&ae.visit(i,o)},pe="function"==typeof s?proxyDelegate:null,we=!1;if(o){we="boolean"==typeof o.comment&&o.comment;var _e="boolean"==typeof o.attachComment&&o.attachComment;(we||_e)&&((ae=new v.CommentHandler).attach=_e,o.comment=!0,pe=proxyDelegate)}var et,tt=!1;o&&"string"==typeof o.sourceType&&(tt="module"===o.sourceType),et=o&&"boolean"==typeof o.jsx&&o.jsx?new _.JSXParser(i,o,pe):new $.Parser(i,o,pe);var nt=tt?et.parseModule():et.parseScript();return we&&ae&&(nt.comments=ae.comments),et.config.tokens&&(nt.tokens=et.tokens),et.config.tolerant&&(nt.errors=et.errorHandler.errors),nt}o.parse=parse,o.parseModule=function parseModule(i,o,s){var v=o||{};return v.sourceType="module",parse(i,v,s)},o.parseScript=function parseScript(i,o,s){var v=o||{};return v.sourceType="script",parse(i,v,s)},o.tokenize=function tokenize(i,o,s){var v,_=new ae.Tokenizer(i,o);v=[];try{for(;;){var $=_.getNextToken();if(!$)break;s&&($=s($)),v.push($)}}catch(i){_.errorHandler.tolerate(i)}return _.errorHandler.tolerant&&(v.errors=_.errors()),v};var pe=s(2);o.Syntax=pe.Syntax,o.version="4.0.1"},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(2),_=function(){function CommentHandler(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return CommentHandler.prototype.insertInnerComments=function(i,o){if(i.type===v.Syntax.BlockStatement&&0===i.body.length){for(var s=[],_=this.leading.length-1;_>=0;--_){var $=this.leading[_];o.end.offset>=$.start&&(s.unshift($.comment),this.leading.splice(_,1),this.trailing.splice(_,1))}s.length&&(i.innerComments=s)}},CommentHandler.prototype.findTrailingComments=function(i){var o=[];if(this.trailing.length>0){for(var s=this.trailing.length-1;s>=0;--s){var v=this.trailing[s];v.start>=i.end.offset&&o.unshift(v.comment)}return this.trailing.length=0,o}var _=this.stack[this.stack.length-1];if(_&&_.node.trailingComments){var $=_.node.trailingComments[0];$&&$.range[0]>=i.end.offset&&(o=_.node.trailingComments,delete _.node.trailingComments)}return o},CommentHandler.prototype.findLeadingComments=function(i){for(var o,s=[];this.stack.length>0;){if(!(($=this.stack[this.stack.length-1])&&$.start>=i.start.offset))break;o=$.node,this.stack.pop()}if(o){for(var v=(o.leadingComments?o.leadingComments.length:0)-1;v>=0;--v){var _=o.leadingComments[v];_.range[1]<=i.start.offset&&(s.unshift(_),o.leadingComments.splice(v,1))}return o.leadingComments&&0===o.leadingComments.length&&delete o.leadingComments,s}for(v=this.leading.length-1;v>=0;--v){var $;($=this.leading[v]).start<=i.start.offset&&(s.unshift($.comment),this.leading.splice(v,1))}return s},CommentHandler.prototype.visitNode=function(i,o){if(!(i.type===v.Syntax.Program&&i.body.length>0)){this.insertInnerComments(i,o);var s=this.findTrailingComments(o),_=this.findLeadingComments(o);_.length>0&&(i.leadingComments=_),s.length>0&&(i.trailingComments=s),this.stack.push({node:i,start:o.start.offset})}},CommentHandler.prototype.visitComment=function(i,o){var s="L"===i.type[0]?"Line":"Block",v={type:s,value:i.value};if(i.range&&(v.range=i.range),i.loc&&(v.loc=i.loc),this.comments.push(v),this.attach){var _={comment:{type:s,value:i.value,range:[o.start.offset,o.end.offset]},start:o.start.offset};i.loc&&(_.comment.loc=i.loc),i.type=s,this.leading.push(_),this.trailing.push(_)}},CommentHandler.prototype.visit=function(i,o){"LineComment"===i.type||"BlockComment"===i.type?this.visitComment(i,o):this.attach&&this.visitNode(i,o)},CommentHandler}();o.CommentHandler=_},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(i,o,s){"use strict";var v,_=this&&this.__extends||(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])},function(i,o){function __(){this.constructor=i}v(i,o),i.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)});Object.defineProperty(o,"__esModule",{value:!0});var $=s(4),ae=s(5),pe=s(6),we=s(7),_e=s(8),et=s(13),tt=s(14);function getQualifiedElementName(i){var o;switch(i.type){case pe.JSXSyntax.JSXIdentifier:o=i.name;break;case pe.JSXSyntax.JSXNamespacedName:var s=i;o=getQualifiedElementName(s.namespace)+":"+getQualifiedElementName(s.name);break;case pe.JSXSyntax.JSXMemberExpression:var v=i;o=getQualifiedElementName(v.object)+"."+getQualifiedElementName(v.property)}return o}et.TokenName[100]="JSXIdentifier",et.TokenName[101]="JSXText";var nt=function(i){function JSXParser(o,s,v){return i.call(this,o,s,v)||this}return _(JSXParser,i),JSXParser.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():i.prototype.parsePrimaryExpression.call(this)},JSXParser.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},JSXParser.prototype.finishJSX=function(){this.nextToken()},JSXParser.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},JSXParser.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},JSXParser.prototype.scanXHTMLEntity=function(i){for(var o="&",s=!0,v=!1,_=!1,ae=!1;!this.scanner.eof()&&s&&!v;){var pe=this.scanner.source[this.scanner.index];if(pe===i)break;if(v=";"===pe,o+=pe,++this.scanner.index,!v)switch(o.length){case 2:_="#"===pe;break;case 3:_&&(s=(ae="x"===pe)||$.Character.isDecimalDigit(pe.charCodeAt(0)),_=_&&!ae);break;default:s=(s=s&&!(_&&!$.Character.isDecimalDigit(pe.charCodeAt(0))))&&!(ae&&!$.Character.isHexDigit(pe.charCodeAt(0)))}}if(s&&v&&o.length>2){var we=o.substr(1,o.length-2);_&&we.length>1?o=String.fromCharCode(parseInt(we.substr(1),10)):ae&&we.length>2?o=String.fromCharCode(parseInt("0"+we.substr(1),16)):_||ae||!tt.XHTMLEntities[we]||(o=tt.XHTMLEntities[we])}return o},JSXParser.prototype.lexJSX=function(){var i=this.scanner.source.charCodeAt(this.scanner.index);if(60===i||62===i||47===i||58===i||61===i||123===i||125===i)return{type:7,value:pe=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===i||39===i){for(var o=this.scanner.index,s=this.scanner.source[this.scanner.index++],v="";!this.scanner.eof();){if((we=this.scanner.source[this.scanner.index++])===s)break;v+="&"===we?this.scanXHTMLEntity(s):we}return{type:8,value:v,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:o,end:this.scanner.index}}if(46===i){var _=this.scanner.source.charCodeAt(this.scanner.index+1),ae=this.scanner.source.charCodeAt(this.scanner.index+2),pe=46===_&&46===ae?"...":".";o=this.scanner.index;return this.scanner.index+=pe.length,{type:7,value:pe,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:o,end:this.scanner.index}}if(96===i)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if($.Character.isIdentifierStart(i)&&92!==i){o=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var we=this.scanner.source.charCodeAt(this.scanner.index);if($.Character.isIdentifierPart(we)&&92!==we)++this.scanner.index;else{if(45!==we)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(o,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:o,end:this.scanner.index}}return this.scanner.lex()},JSXParser.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var i=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(i)),i},JSXParser.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var i=this.scanner.index,o="";!this.scanner.eof();){var s=this.scanner.source[this.scanner.index];if("{"===s||"<"===s)break;++this.scanner.index,o+=s,$.Character.isLineTerminator(s.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===s&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var v={type:101,value:o,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:i,end:this.scanner.index};return o.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(v)),v},JSXParser.prototype.peekJSXToken=function(){var i=this.scanner.saveState();this.scanner.scanComments();var o=this.lexJSX();return this.scanner.restoreState(i),o},JSXParser.prototype.expectJSX=function(i){var o=this.nextJSXToken();7===o.type&&o.value===i||this.throwUnexpectedToken(o)},JSXParser.prototype.matchJSX=function(i){var o=this.peekJSXToken();return 7===o.type&&o.value===i},JSXParser.prototype.parseJSXIdentifier=function(){var i=this.createJSXNode(),o=this.nextJSXToken();return 100!==o.type&&this.throwUnexpectedToken(o),this.finalize(i,new ae.JSXIdentifier(o.value))},JSXParser.prototype.parseJSXElementName=function(){var i=this.createJSXNode(),o=this.parseJSXIdentifier();if(this.matchJSX(":")){var s=o;this.expectJSX(":");var v=this.parseJSXIdentifier();o=this.finalize(i,new ae.JSXNamespacedName(s,v))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var _=o;this.expectJSX(".");var $=this.parseJSXIdentifier();o=this.finalize(i,new ae.JSXMemberExpression(_,$))}return o},JSXParser.prototype.parseJSXAttributeName=function(){var i,o=this.createJSXNode(),s=this.parseJSXIdentifier();if(this.matchJSX(":")){var v=s;this.expectJSX(":");var _=this.parseJSXIdentifier();i=this.finalize(o,new ae.JSXNamespacedName(v,_))}else i=s;return i},JSXParser.prototype.parseJSXStringLiteralAttribute=function(){var i=this.createJSXNode(),o=this.nextJSXToken();8!==o.type&&this.throwUnexpectedToken(o);var s=this.getTokenRaw(o);return this.finalize(i,new we.Literal(o.value,s))},JSXParser.prototype.parseJSXExpressionAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var o=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new ae.JSXExpressionContainer(o))},JSXParser.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},JSXParser.prototype.parseJSXNameValueAttribute=function(){var i=this.createJSXNode(),o=this.parseJSXAttributeName(),s=null;return this.matchJSX("=")&&(this.expectJSX("="),s=this.parseJSXAttributeValue()),this.finalize(i,new ae.JSXAttribute(o,s))},JSXParser.prototype.parseJSXSpreadAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var o=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new ae.JSXSpreadAttribute(o))},JSXParser.prototype.parseJSXAttributes=function(){for(var i=[];!this.matchJSX("/")&&!this.matchJSX(">");){var o=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();i.push(o)}return i},JSXParser.prototype.parseJSXOpeningElement=function(){var i=this.createJSXNode();this.expectJSX("<");var o=this.parseJSXElementName(),s=this.parseJSXAttributes(),v=this.matchJSX("/");return v&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new ae.JSXOpeningElement(o,v,s))},JSXParser.prototype.parseJSXBoundaryElement=function(){var i=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var o=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(i,new ae.JSXClosingElement(o))}var s=this.parseJSXElementName(),v=this.parseJSXAttributes(),_=this.matchJSX("/");return _&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new ae.JSXOpeningElement(s,_,v))},JSXParser.prototype.parseJSXEmptyExpression=function(){var i=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(i,new ae.JSXEmptyExpression)},JSXParser.prototype.parseJSXExpressionContainer=function(){var i,o=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(i=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),i=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(o,new ae.JSXExpressionContainer(i))},JSXParser.prototype.parseJSXChildren=function(){for(var i=[];!this.scanner.eof();){var o=this.createJSXChildNode(),s=this.nextJSXText();if(s.start0))break;$=this.finalize(i.node,new ae.JSXElement(i.opening,i.children,i.closing));(i=o[o.length-1]).children.push($),o.pop()}}return i},JSXParser.prototype.parseJSXElement=function(){var i=this.createJSXNode(),o=this.parseJSXOpeningElement(),s=[],v=null;if(!o.selfClosing){var _=this.parseComplexJSXElement({node:i,opening:o,closing:v,children:s});s=_.children,v=_.closing}return this.finalize(i,new ae.JSXElement(o,s,v))},JSXParser.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var i=this.parseJSXElement();return this.finishJSX(),i},JSXParser.prototype.isStartOfExpression=function(){return i.prototype.isStartOfExpression.call(this)||this.match("<")},JSXParser}(_e.Parser);o.JSXParser=nt},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};o.Character={fromCodePoint:function(i){return i<65536?String.fromCharCode(i):String.fromCharCode(55296+(i-65536>>10))+String.fromCharCode(56320+(i-65536&1023))},isWhiteSpace:function(i){return 32===i||9===i||11===i||12===i||160===i||i>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(i)>=0},isLineTerminator:function(i){return 10===i||13===i||8232===i||8233===i},isIdentifierStart:function(i){return 36===i||95===i||i>=65&&i<=90||i>=97&&i<=122||92===i||i>=128&&s.NonAsciiIdentifierStart.test(o.Character.fromCodePoint(i))},isIdentifierPart:function(i){return 36===i||95===i||i>=65&&i<=90||i>=97&&i<=122||i>=48&&i<=57||92===i||i>=128&&s.NonAsciiIdentifierPart.test(o.Character.fromCodePoint(i))},isDecimalDigit:function(i){return i>=48&&i<=57},isHexDigit:function(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102},isOctalDigit:function(i){return i>=48&&i<=55}}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(6),_=function _(i){this.type=v.JSXSyntax.JSXClosingElement,this.name=i};o.JSXClosingElement=_;var $=function $(i,o,s){this.type=v.JSXSyntax.JSXElement,this.openingElement=i,this.children=o,this.closingElement=s};o.JSXElement=$;var ae=function ae(){this.type=v.JSXSyntax.JSXEmptyExpression};o.JSXEmptyExpression=ae;var pe=function pe(i){this.type=v.JSXSyntax.JSXExpressionContainer,this.expression=i};o.JSXExpressionContainer=pe;var we=function we(i){this.type=v.JSXSyntax.JSXIdentifier,this.name=i};o.JSXIdentifier=we;var _e=function _e(i,o){this.type=v.JSXSyntax.JSXMemberExpression,this.object=i,this.property=o};o.JSXMemberExpression=_e;var et=function et(i,o){this.type=v.JSXSyntax.JSXAttribute,this.name=i,this.value=o};o.JSXAttribute=et;var tt=function tt(i,o){this.type=v.JSXSyntax.JSXNamespacedName,this.namespace=i,this.name=o};o.JSXNamespacedName=tt;var nt=function nt(i,o,s){this.type=v.JSXSyntax.JSXOpeningElement,this.name=i,this.selfClosing=o,this.attributes=s};o.JSXOpeningElement=nt;var rt=function rt(i){this.type=v.JSXSyntax.JSXSpreadAttribute,this.argument=i};o.JSXSpreadAttribute=rt;var it=function it(i,o){this.type=v.JSXSyntax.JSXText,this.value=i,this.raw=o};o.JSXText=it},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(2),_=function _(i){this.type=v.Syntax.ArrayExpression,this.elements=i};o.ArrayExpression=_;var $=function $(i){this.type=v.Syntax.ArrayPattern,this.elements=i};o.ArrayPattern=$;var ae=function ae(i,o,s){this.type=v.Syntax.ArrowFunctionExpression,this.id=null,this.params=i,this.body=o,this.generator=!1,this.expression=s,this.async=!1};o.ArrowFunctionExpression=ae;var pe=function pe(i,o,s){this.type=v.Syntax.AssignmentExpression,this.operator=i,this.left=o,this.right=s};o.AssignmentExpression=pe;var we=function we(i,o){this.type=v.Syntax.AssignmentPattern,this.left=i,this.right=o};o.AssignmentPattern=we;var _e=function _e(i,o,s){this.type=v.Syntax.ArrowFunctionExpression,this.id=null,this.params=i,this.body=o,this.generator=!1,this.expression=s,this.async=!0};o.AsyncArrowFunctionExpression=_e;var et=function et(i,o,s){this.type=v.Syntax.FunctionDeclaration,this.id=i,this.params=o,this.body=s,this.generator=!1,this.expression=!1,this.async=!0};o.AsyncFunctionDeclaration=et;var tt=function tt(i,o,s){this.type=v.Syntax.FunctionExpression,this.id=i,this.params=o,this.body=s,this.generator=!1,this.expression=!1,this.async=!0};o.AsyncFunctionExpression=tt;var nt=function nt(i){this.type=v.Syntax.AwaitExpression,this.argument=i};o.AwaitExpression=nt;var rt=function rt(i,o,s){var _="||"===i||"&&"===i;this.type=_?v.Syntax.LogicalExpression:v.Syntax.BinaryExpression,this.operator=i,this.left=o,this.right=s};o.BinaryExpression=rt;var it=function it(i){this.type=v.Syntax.BlockStatement,this.body=i};o.BlockStatement=it;var ot=function ot(i){this.type=v.Syntax.BreakStatement,this.label=i};o.BreakStatement=ot;var st=function st(i,o){this.type=v.Syntax.CallExpression,this.callee=i,this.arguments=o};o.CallExpression=st;var dt=function dt(i,o){this.type=v.Syntax.CatchClause,this.param=i,this.body=o};o.CatchClause=dt;var ut=function ut(i){this.type=v.Syntax.ClassBody,this.body=i};o.ClassBody=ut;var lt=function lt(i,o,s){this.type=v.Syntax.ClassDeclaration,this.id=i,this.superClass=o,this.body=s};o.ClassDeclaration=lt;var ct=function ct(i,o,s){this.type=v.Syntax.ClassExpression,this.id=i,this.superClass=o,this.body=s};o.ClassExpression=ct;var ht=function ht(i,o){this.type=v.Syntax.MemberExpression,this.computed=!0,this.object=i,this.property=o};o.ComputedMemberExpression=ht;var pt=function pt(i,o,s){this.type=v.Syntax.ConditionalExpression,this.test=i,this.consequent=o,this.alternate=s};o.ConditionalExpression=pt;var ft=function ft(i){this.type=v.Syntax.ContinueStatement,this.label=i};o.ContinueStatement=ft;var gt=function gt(){this.type=v.Syntax.DebuggerStatement};o.DebuggerStatement=gt;var mt=function mt(i,o){this.type=v.Syntax.ExpressionStatement,this.expression=i,this.directive=o};o.Directive=mt;var yt=function yt(i,o){this.type=v.Syntax.DoWhileStatement,this.body=i,this.test=o};o.DoWhileStatement=yt;var vt=function vt(){this.type=v.Syntax.EmptyStatement};o.EmptyStatement=vt;var Rt=function Rt(i){this.type=v.Syntax.ExportAllDeclaration,this.source=i};o.ExportAllDeclaration=Rt;var bt=function bt(i){this.type=v.Syntax.ExportDefaultDeclaration,this.declaration=i};o.ExportDefaultDeclaration=bt;var Ot=function Ot(i,o,s){this.type=v.Syntax.ExportNamedDeclaration,this.declaration=i,this.specifiers=o,this.source=s};o.ExportNamedDeclaration=Ot;var xt=function xt(i,o){this.type=v.Syntax.ExportSpecifier,this.exported=o,this.local=i};o.ExportSpecifier=xt;var wt=function wt(i){this.type=v.Syntax.ExpressionStatement,this.expression=i};o.ExpressionStatement=wt;var Ct=function Ct(i,o,s){this.type=v.Syntax.ForInStatement,this.left=i,this.right=o,this.body=s,this.each=!1};o.ForInStatement=Ct;var St=function St(i,o,s){this.type=v.Syntax.ForOfStatement,this.left=i,this.right=o,this.body=s};o.ForOfStatement=St;var _t=function _t(i,o,s,_){this.type=v.Syntax.ForStatement,this.init=i,this.test=o,this.update=s,this.body=_};o.ForStatement=_t;var Et=function Et(i,o,s,_){this.type=v.Syntax.FunctionDeclaration,this.id=i,this.params=o,this.body=s,this.generator=_,this.expression=!1,this.async=!1};o.FunctionDeclaration=Et;var kt=function kt(i,o,s,_){this.type=v.Syntax.FunctionExpression,this.id=i,this.params=o,this.body=s,this.generator=_,this.expression=!1,this.async=!1};o.FunctionExpression=kt;var At=function At(i){this.type=v.Syntax.Identifier,this.name=i};o.Identifier=At;var Dt=function Dt(i,o,s){this.type=v.Syntax.IfStatement,this.test=i,this.consequent=o,this.alternate=s};o.IfStatement=Dt;var Pt=function Pt(i,o){this.type=v.Syntax.ImportDeclaration,this.specifiers=i,this.source=o};o.ImportDeclaration=Pt;var Tt=function Tt(i){this.type=v.Syntax.ImportDefaultSpecifier,this.local=i};o.ImportDefaultSpecifier=Tt;var It=function It(i){this.type=v.Syntax.ImportNamespaceSpecifier,this.local=i};o.ImportNamespaceSpecifier=It;var Ft=function Ft(i,o){this.type=v.Syntax.ImportSpecifier,this.local=i,this.imported=o};o.ImportSpecifier=Ft;var Nt=function Nt(i,o){this.type=v.Syntax.LabeledStatement,this.label=i,this.body=o};o.LabeledStatement=Nt;var Bt=function Bt(i,o){this.type=v.Syntax.Literal,this.value=i,this.raw=o};o.Literal=Bt;var Lt=function Lt(i,o){this.type=v.Syntax.MetaProperty,this.meta=i,this.property=o};o.MetaProperty=Lt;var jt=function jt(i,o,s,_,$){this.type=v.Syntax.MethodDefinition,this.key=i,this.computed=o,this.value=s,this.kind=_,this.static=$};o.MethodDefinition=jt;var Mt=function Mt(i){this.type=v.Syntax.Program,this.body=i,this.sourceType="module"};o.Module=Mt;var Qt=function Qt(i,o){this.type=v.Syntax.NewExpression,this.callee=i,this.arguments=o};o.NewExpression=Qt;var Vt=function Vt(i){this.type=v.Syntax.ObjectExpression,this.properties=i};o.ObjectExpression=Vt;var Ut=function Ut(i){this.type=v.Syntax.ObjectPattern,this.properties=i};o.ObjectPattern=Ut;var Wt=function Wt(i,o,s,_,$,ae){this.type=v.Syntax.Property,this.key=o,this.computed=s,this.value=_,this.kind=i,this.method=$,this.shorthand=ae};o.Property=Wt;var $t=function $t(i,o,s,_){this.type=v.Syntax.Literal,this.value=i,this.raw=o,this.regex={pattern:s,flags:_}};o.RegexLiteral=$t;var qt=function qt(i){this.type=v.Syntax.RestElement,this.argument=i};o.RestElement=qt;var zt=function zt(i){this.type=v.Syntax.ReturnStatement,this.argument=i};o.ReturnStatement=zt;var Zt=function Zt(i){this.type=v.Syntax.Program,this.body=i,this.sourceType="script"};o.Script=Zt;var Ht=function Ht(i){this.type=v.Syntax.SequenceExpression,this.expressions=i};o.SequenceExpression=Ht;var Gt=function Gt(i){this.type=v.Syntax.SpreadElement,this.argument=i};o.SpreadElement=Gt;var Xt=function Xt(i,o){this.type=v.Syntax.MemberExpression,this.computed=!1,this.object=i,this.property=o};o.StaticMemberExpression=Xt;var Yt=function Yt(){this.type=v.Syntax.Super};o.Super=Yt;var Kt=function Kt(i,o){this.type=v.Syntax.SwitchCase,this.test=i,this.consequent=o};o.SwitchCase=Kt;var Jt=function Jt(i,o){this.type=v.Syntax.SwitchStatement,this.discriminant=i,this.cases=o};o.SwitchStatement=Jt;var nn=function nn(i,o){this.type=v.Syntax.TaggedTemplateExpression,this.tag=i,this.quasi=o};o.TaggedTemplateExpression=nn;var _n=function _n(i,o){this.type=v.Syntax.TemplateElement,this.value=i,this.tail=o};o.TemplateElement=_n;var An=function An(i,o){this.type=v.Syntax.TemplateLiteral,this.quasis=i,this.expressions=o};o.TemplateLiteral=An;var Zn=function Zn(){this.type=v.Syntax.ThisExpression};o.ThisExpression=Zn;var aa=function aa(i){this.type=v.Syntax.ThrowStatement,this.argument=i};o.ThrowStatement=aa;var ra=function ra(i,o,s){this.type=v.Syntax.TryStatement,this.block=i,this.handler=o,this.finalizer=s};o.TryStatement=ra;var ia=function ia(i,o){this.type=v.Syntax.UnaryExpression,this.operator=i,this.argument=o,this.prefix=!0};o.UnaryExpression=ia;var ca=function ca(i,o,s){this.type=v.Syntax.UpdateExpression,this.operator=i,this.argument=o,this.prefix=s};o.UpdateExpression=ca;var ha=function ha(i,o){this.type=v.Syntax.VariableDeclaration,this.declarations=i,this.kind=o};o.VariableDeclaration=ha;var ga=function ga(i,o){this.type=v.Syntax.VariableDeclarator,this.id=i,this.init=o};o.VariableDeclarator=ga;var va=function va(i,o){this.type=v.Syntax.WhileStatement,this.test=i,this.body=o};o.WhileStatement=va;var Oa=function Oa(i,o){this.type=v.Syntax.WithStatement,this.object=i,this.body=o};o.WithStatement=Oa;var xa=function xa(i,o){this.type=v.Syntax.YieldExpression,this.argument=i,this.delegate=o};o.YieldExpression=xa},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(9),_=s(10),$=s(11),ae=s(7),pe=s(12),we=s(2),_e=s(13),et="ArrowParameterPlaceHolder",tt=function(){function Parser(i,o,s){void 0===o&&(o={}),this.config={range:"boolean"==typeof o.range&&o.range,loc:"boolean"==typeof o.loc&&o.loc,source:null,tokens:"boolean"==typeof o.tokens&&o.tokens,comment:"boolean"==typeof o.comment&&o.comment,tolerant:"boolean"==typeof o.tolerant&&o.tolerant},this.config.loc&&o.source&&null!==o.source&&(this.config.source=String(o.source)),this.delegate=s,this.errorHandler=new _.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new pe.Scanner(i,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return Parser.prototype.throwError=function(i){for(var o=[],s=1;s0&&this.delegate)for(var o=0;o>="===i||">>>="===i||"&="===i||"^="===i||"|="===i},Parser.prototype.isolateCoverGrammar=function(i){var o=this.context.isBindingElement,s=this.context.isAssignmentTarget,v=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var _=i.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=o,this.context.isAssignmentTarget=s,this.context.firstCoverInitializedNameError=v,_},Parser.prototype.inheritCoverGrammar=function(i){var o=this.context.isBindingElement,s=this.context.isAssignmentTarget,v=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var _=i.call(this);return this.context.isBindingElement=this.context.isBindingElement&&o,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&s,this.context.firstCoverInitializedNameError=v||this.context.firstCoverInitializedNameError,_},Parser.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},Parser.prototype.parsePrimaryExpression=function(){var i,o,s,v=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),i=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(v,new ae.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,$.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,o=this.nextToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.Literal(o.value,s));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,o=this.nextToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.Literal("true"===o.value,s));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,o=this.nextToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.Literal(null,s));break;case 10:i=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,i=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":i=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":i=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,o=this.nextRegexToken(),s=this.getTokenRaw(o),i=this.finalize(v,new ae.RegexLiteral(o.regex,s,o.pattern,o.flags));break;default:i=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?i=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?i=this.finalize(v,new ae.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?i=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),i=this.finalize(v,new ae.ThisExpression)):i=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:i=this.throwUnexpectedToken(this.nextToken())}return i},Parser.prototype.parseSpreadElement=function(){var i=this.createNode();this.expect("...");var o=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(i,new ae.SpreadElement(o))},Parser.prototype.parseArrayInitializer=function(){var i=this.createNode(),o=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),o.push(null);else if(this.match("...")){var s=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),o.push(s)}else o.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(i,new ae.ArrayExpression(o))},Parser.prototype.parsePropertyMethod=function(i){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var o=this.context.strict,s=this.context.allowStrictDirective;this.context.allowStrictDirective=i.simple;var v=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&i.firstRestricted&&this.tolerateUnexpectedToken(i.firstRestricted,i.message),this.context.strict&&i.stricted&&this.tolerateUnexpectedToken(i.stricted,i.message),this.context.strict=o,this.context.allowStrictDirective=s,v},Parser.prototype.parsePropertyMethodFunction=function(){var i=this.createNode(),o=this.context.allowYield;this.context.allowYield=!0;var s=this.parseFormalParameters(),v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,!1))},Parser.prototype.parsePropertyMethodAsyncFunction=function(){var i=this.createNode(),o=this.context.allowYield,s=this.context.await;this.context.allowYield=!1,this.context.await=!0;var v=this.parseFormalParameters(),_=this.parsePropertyMethod(v);return this.context.allowYield=o,this.context.await=s,this.finalize(i,new ae.AsyncFunctionExpression(null,v.params,_))},Parser.prototype.parseObjectPropertyKey=function(){var i,o=this.createNode(),s=this.nextToken();switch(s.type){case 8:case 6:this.context.strict&&s.octal&&this.tolerateUnexpectedToken(s,$.Messages.StrictOctalLiteral);var v=this.getTokenRaw(s);i=this.finalize(o,new ae.Literal(s.value,v));break;case 3:case 1:case 5:case 4:i=this.finalize(o,new ae.Identifier(s.value));break;case 7:"["===s.value?(i=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):i=this.throwUnexpectedToken(s);break;default:i=this.throwUnexpectedToken(s)}return i},Parser.prototype.isPropertyKey=function(i,o){return i.type===we.Syntax.Identifier&&i.name===o||i.type===we.Syntax.Literal&&i.value===o},Parser.prototype.parseObjectProperty=function(i){var o,s=this.createNode(),v=this.lookahead,_=null,pe=null,we=!1,_e=!1,et=!1,tt=!1;if(3===v.type){var nt=v.value;this.nextToken(),we=this.match("["),_=(tt=!(this.hasLineTerminator||"async"!==nt||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(s,new ae.Identifier(nt))}else this.match("*")?this.nextToken():(we=this.match("["),_=this.parseObjectPropertyKey());var rt=this.qualifiedPropertyName(this.lookahead);if(3===v.type&&!tt&&"get"===v.value&&rt)o="get",we=this.match("["),_=this.parseObjectPropertyKey(),this.context.allowYield=!1,pe=this.parseGetterMethod();else if(3===v.type&&!tt&&"set"===v.value&&rt)o="set",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseSetterMethod();else if(7===v.type&&"*"===v.value&&rt)o="init",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseGeneratorMethod(),_e=!0;else if(_||this.throwUnexpectedToken(this.lookahead),o="init",this.match(":")&&!tt)!we&&this.isPropertyKey(_,"__proto__")&&(i.value&&this.tolerateError($.Messages.DuplicateProtoProperty),i.value=!0),this.nextToken(),pe=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))pe=tt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),_e=!0;else if(3===v.type){nt=this.finalize(s,new ae.Identifier(v.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),et=!0;var it=this.isolateCoverGrammar(this.parseAssignmentExpression);pe=this.finalize(s,new ae.AssignmentPattern(nt,it))}else et=!0,pe=nt}else this.throwUnexpectedToken(this.nextToken());return this.finalize(s,new ae.Property(o,_,we,pe,_e,et))},Parser.prototype.parseObjectInitializer=function(){var i=this.createNode();this.expect("{");for(var o=[],s={value:!1};!this.match("}");)o.push(this.parseObjectProperty(s)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(i,new ae.ObjectExpression(o))},Parser.prototype.parseTemplateHead=function(){v.assert(this.lookahead.head,"Template literal must start with a template head");var i=this.createNode(),o=this.nextToken(),s=o.value,_=o.cooked;return this.finalize(i,new ae.TemplateElement({raw:s,cooked:_},o.tail))},Parser.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var i=this.createNode(),o=this.nextToken(),s=o.value,v=o.cooked;return this.finalize(i,new ae.TemplateElement({raw:s,cooked:v},o.tail))},Parser.prototype.parseTemplateLiteral=function(){var i=this.createNode(),o=[],s=[],v=this.parseTemplateHead();for(s.push(v);!v.tail;)o.push(this.parseExpression()),v=this.parseTemplateElement(),s.push(v);return this.finalize(i,new ae.TemplateLiteral(s,o))},Parser.prototype.reinterpretExpressionAsPattern=function(i){switch(i.type){case we.Syntax.Identifier:case we.Syntax.MemberExpression:case we.Syntax.RestElement:case we.Syntax.AssignmentPattern:break;case we.Syntax.SpreadElement:i.type=we.Syntax.RestElement,this.reinterpretExpressionAsPattern(i.argument);break;case we.Syntax.ArrayExpression:i.type=we.Syntax.ArrayPattern;for(var o=0;o")||this.expect("=>"),i={type:et,params:[],async:!1};else{var o=this.lookahead,s=[];if(this.match("..."))i=this.parseRestElement(s),this.expect(")"),this.match("=>")||this.expect("=>"),i={type:et,params:[i],async:!1};else{var v=!1;if(this.context.isBindingElement=!0,i=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var _=[];for(this.context.isAssignmentTarget=!1,_.push(i);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var $=0;$<_.length;$++)this.reinterpretExpressionAsPattern(_[$]);v=!0,i={type:et,params:_,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),_.push(this.parseRestElement(s)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for($=0;$<_.length;$++)this.reinterpretExpressionAsPattern(_[$]);v=!0,i={type:et,params:_,async:!1}}else _.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(v)break}v||(i=this.finalize(this.startNode(o),new ae.SequenceExpression(_)))}if(!v){if(this.expect(")"),this.match("=>")&&(i.type===we.Syntax.Identifier&&"yield"===i.name&&(v=!0,i={type:et,params:[i],async:!1}),!v)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.type===we.Syntax.SequenceExpression)for($=0;$")){for(var we=0;we0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var _=[i,this.lookahead],$=o,pe=this.isolateCoverGrammar(this.parseExponentiationExpression),we=[$,s.value,pe],_e=[v];!((v=this.binaryPrecedence(this.lookahead))<=0);){for(;we.length>2&&v<=_e[_e.length-1];){pe=we.pop();var et=we.pop();_e.pop(),$=we.pop(),_.pop();var tt=this.startNode(_[_.length-1]);we.push(this.finalize(tt,new ae.BinaryExpression(et,$,pe)))}we.push(this.nextToken().value),_e.push(v),_.push(this.lookahead),we.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var nt=we.length-1;o=we[nt];for(var rt=_.pop();nt>1;){var it=_.pop(),ot=rt&&rt.lineStart;tt=this.startNode(it,ot),et=we[nt-1];o=this.finalize(tt,new ae.BinaryExpression(et,we[nt-2],o)),nt-=2,rt=it}}return o},Parser.prototype.parseConditionalExpression=function(){var i=this.lookahead,o=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var s=this.context.allowIn;this.context.allowIn=!0;var v=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=s,this.expect(":");var _=this.isolateCoverGrammar(this.parseAssignmentExpression);o=this.finalize(this.startNode(i),new ae.ConditionalExpression(o,v,_)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return o},Parser.prototype.checkPatternParam=function(i,o){switch(o.type){case we.Syntax.Identifier:this.validateParam(i,o,o.name);break;case we.Syntax.RestElement:this.checkPatternParam(i,o.argument);break;case we.Syntax.AssignmentPattern:this.checkPatternParam(i,o.left);break;case we.Syntax.ArrayPattern:for(var s=0;s")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var _=i.async,pe=this.reinterpretAsCoverFormalsList(i);if(pe){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var _e=this.context.strict,tt=this.context.allowStrictDirective;this.context.allowStrictDirective=pe.simple;var nt=this.context.allowYield,rt=this.context.await;this.context.allowYield=!0,this.context.await=_;var it=this.startNode(o);this.expect("=>");var ot=void 0;if(this.match("{")){var st=this.context.allowIn;this.context.allowIn=!0,ot=this.parseFunctionSourceElements(),this.context.allowIn=st}else ot=this.isolateCoverGrammar(this.parseAssignmentExpression);var dt=ot.type!==we.Syntax.BlockStatement;this.context.strict&&pe.firstRestricted&&this.throwUnexpectedToken(pe.firstRestricted,pe.message),this.context.strict&&pe.stricted&&this.tolerateUnexpectedToken(pe.stricted,pe.message),i=_?this.finalize(it,new ae.AsyncArrowFunctionExpression(pe.params,ot,dt)):this.finalize(it,new ae.ArrowFunctionExpression(pe.params,ot,dt)),this.context.strict=_e,this.context.allowStrictDirective=tt,this.context.allowYield=nt,this.context.await=rt}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError($.Messages.InvalidLHSInAssignment),this.context.strict&&i.type===we.Syntax.Identifier){var ut=i;this.scanner.isRestrictedWord(ut.name)&&this.tolerateUnexpectedToken(s,$.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(ut.name)&&this.tolerateUnexpectedToken(s,$.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(i):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var lt=(s=this.nextToken()).value,ct=this.isolateCoverGrammar(this.parseAssignmentExpression);i=this.finalize(this.startNode(o),new ae.AssignmentExpression(lt,i,ct)),this.context.firstCoverInitializedNameError=null}}return i},Parser.prototype.parseExpression=function(){var i=this.lookahead,o=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var s=[];for(s.push(o);2!==this.lookahead.type&&this.match(",");)this.nextToken(),s.push(this.isolateCoverGrammar(this.parseAssignmentExpression));o=this.finalize(this.startNode(i),new ae.SequenceExpression(s))}return o},Parser.prototype.parseStatementListItem=function(){var i;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,$.Messages.IllegalExportDeclaration),i=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,$.Messages.IllegalImportDeclaration),i=this.parseImportDeclaration();break;case"const":i=this.parseLexicalDeclaration({inFor:!1});break;case"function":i=this.parseFunctionDeclaration();break;case"class":i=this.parseClassDeclaration();break;case"let":i=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:i=this.parseStatement()}else i=this.parseStatement();return i},Parser.prototype.parseBlock=function(){var i=this.createNode();this.expect("{");for(var o=[];!this.match("}");)o.push(this.parseStatementListItem());return this.expect("}"),this.finalize(i,new ae.BlockStatement(o))},Parser.prototype.parseLexicalBinding=function(i,o){var s=this.createNode(),v=this.parsePattern([],i);this.context.strict&&v.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(v.name)&&this.tolerateError($.Messages.StrictVarName);var _=null;return"const"===i?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),_=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError($.Messages.DeclarationMissingInitializer,"const")):(!o.inFor&&v.type!==we.Syntax.Identifier||this.match("="))&&(this.expect("="),_=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(s,new ae.VariableDeclarator(v,_))},Parser.prototype.parseBindingList=function(i,o){for(var s=[this.parseLexicalBinding(i,o)];this.match(",");)this.nextToken(),s.push(this.parseLexicalBinding(i,o));return s},Parser.prototype.isLexicalDeclaration=function(){var i=this.scanner.saveState();this.scanner.scanComments();var o=this.scanner.lex();return this.scanner.restoreState(i),3===o.type||7===o.type&&"["===o.value||7===o.type&&"{"===o.value||4===o.type&&"let"===o.value||4===o.type&&"yield"===o.value},Parser.prototype.parseLexicalDeclaration=function(i){var o=this.createNode(),s=this.nextToken().value;v.assert("let"===s||"const"===s,"Lexical declaration must be either let or const");var _=this.parseBindingList(s,i);return this.consumeSemicolon(),this.finalize(o,new ae.VariableDeclaration(_,s))},Parser.prototype.parseBindingRestElement=function(i,o){var s=this.createNode();this.expect("...");var v=this.parsePattern(i,o);return this.finalize(s,new ae.RestElement(v))},Parser.prototype.parseArrayPattern=function(i,o){var s=this.createNode();this.expect("[");for(var v=[];!this.match("]");)if(this.match(","))this.nextToken(),v.push(null);else{if(this.match("...")){v.push(this.parseBindingRestElement(i,o));break}v.push(this.parsePatternWithDefault(i,o)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(s,new ae.ArrayPattern(v))},Parser.prototype.parsePropertyPattern=function(i,o){var s,v,_=this.createNode(),$=!1,pe=!1;if(3===this.lookahead.type){var we=this.lookahead;s=this.parseVariableIdentifier();var _e=this.finalize(_,new ae.Identifier(we.value));if(this.match("=")){i.push(we),pe=!0,this.nextToken();var et=this.parseAssignmentExpression();v=this.finalize(this.startNode(we),new ae.AssignmentPattern(_e,et))}else this.match(":")?(this.expect(":"),v=this.parsePatternWithDefault(i,o)):(i.push(we),pe=!0,v=_e)}else $=this.match("["),s=this.parseObjectPropertyKey(),this.expect(":"),v=this.parsePatternWithDefault(i,o);return this.finalize(_,new ae.Property("init",s,$,v,!1,pe))},Parser.prototype.parseObjectPattern=function(i,o){var s=this.createNode(),v=[];for(this.expect("{");!this.match("}");)v.push(this.parsePropertyPattern(i,o)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(s,new ae.ObjectPattern(v))},Parser.prototype.parsePattern=function(i,o){var s;return this.match("[")?s=this.parseArrayPattern(i,o):this.match("{")?s=this.parseObjectPattern(i,o):(!this.matchKeyword("let")||"const"!==o&&"let"!==o||this.tolerateUnexpectedToken(this.lookahead,$.Messages.LetInLexicalBinding),i.push(this.lookahead),s=this.parseVariableIdentifier(o)),s},Parser.prototype.parsePatternWithDefault=function(i,o){var s=this.lookahead,v=this.parsePattern(i,o);if(this.match("=")){this.nextToken();var _=this.context.allowYield;this.context.allowYield=!0;var $=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=_,v=this.finalize(this.startNode(s),new ae.AssignmentPattern(v,$))}return v},Parser.prototype.parseVariableIdentifier=function(i){var o=this.createNode(),s=this.nextToken();return 4===s.type&&"yield"===s.value?this.context.strict?this.tolerateUnexpectedToken(s,$.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(s):3!==s.type?this.context.strict&&4===s.type&&this.scanner.isStrictModeReservedWord(s.value)?this.tolerateUnexpectedToken(s,$.Messages.StrictReservedWord):(this.context.strict||"let"!==s.value||"var"!==i)&&this.throwUnexpectedToken(s):(this.context.isModule||this.context.await)&&3===s.type&&"await"===s.value&&this.tolerateUnexpectedToken(s),this.finalize(o,new ae.Identifier(s.value))},Parser.prototype.parseVariableDeclaration=function(i){var o=this.createNode(),s=this.parsePattern([],"var");this.context.strict&&s.type===we.Syntax.Identifier&&this.scanner.isRestrictedWord(s.name)&&this.tolerateError($.Messages.StrictVarName);var v=null;return this.match("=")?(this.nextToken(),v=this.isolateCoverGrammar(this.parseAssignmentExpression)):s.type===we.Syntax.Identifier||i.inFor||this.expect("="),this.finalize(o,new ae.VariableDeclarator(s,v))},Parser.prototype.parseVariableDeclarationList=function(i){var o={inFor:i.inFor},s=[];for(s.push(this.parseVariableDeclaration(o));this.match(",");)this.nextToken(),s.push(this.parseVariableDeclaration(o));return s},Parser.prototype.parseVariableStatement=function(){var i=this.createNode();this.expectKeyword("var");var o=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(i,new ae.VariableDeclaration(o,"var"))},Parser.prototype.parseEmptyStatement=function(){var i=this.createNode();return this.expect(";"),this.finalize(i,new ae.EmptyStatement)},Parser.prototype.parseExpressionStatement=function(){var i=this.createNode(),o=this.parseExpression();return this.consumeSemicolon(),this.finalize(i,new ae.ExpressionStatement(o))},Parser.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError($.Messages.StrictFunction),this.parseStatement()},Parser.prototype.parseIfStatement=function(){var i,o=this.createNode(),s=null;this.expectKeyword("if"),this.expect("(");var v=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),i=this.finalize(this.createNode(),new ae.EmptyStatement)):(this.expect(")"),i=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),s=this.parseIfClause())),this.finalize(o,new ae.IfStatement(v,i,s))},Parser.prototype.parseDoWhileStatement=function(){var i=this.createNode();this.expectKeyword("do");var o=this.context.inIteration;this.context.inIteration=!0;var s=this.parseStatement();this.context.inIteration=o,this.expectKeyword("while"),this.expect("(");var v=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(i,new ae.DoWhileStatement(s,v))},Parser.prototype.parseWhileStatement=function(){var i,o=this.createNode();this.expectKeyword("while"),this.expect("(");var s=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),i=this.finalize(this.createNode(),new ae.EmptyStatement);else{this.expect(")");var v=this.context.inIteration;this.context.inIteration=!0,i=this.parseStatement(),this.context.inIteration=v}return this.finalize(o,new ae.WhileStatement(s,i))},Parser.prototype.parseForStatement=function(){var i,o,s,v=null,_=null,pe=null,_e=!0,et=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){v=this.createNode(),this.nextToken();var tt=this.context.allowIn;this.context.allowIn=!1;var nt=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=tt,1===nt.length&&this.matchKeyword("in")){var rt=nt[0];rt.init&&(rt.id.type===we.Syntax.ArrayPattern||rt.id.type===we.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError($.Messages.ForInOfLoopInitializer,"for-in"),v=this.finalize(v,new ae.VariableDeclaration(nt,"var")),this.nextToken(),i=v,o=this.parseExpression(),v=null}else 1===nt.length&&null===nt[0].init&&this.matchContextualKeyword("of")?(v=this.finalize(v,new ae.VariableDeclaration(nt,"var")),this.nextToken(),i=v,o=this.parseAssignmentExpression(),v=null,_e=!1):(v=this.finalize(v,new ae.VariableDeclaration(nt,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){v=this.createNode();var it=this.nextToken().value;if(this.context.strict||"in"!==this.lookahead.value){tt=this.context.allowIn;this.context.allowIn=!1;nt=this.parseBindingList(it,{inFor:!0});this.context.allowIn=tt,1===nt.length&&null===nt[0].init&&this.matchKeyword("in")?(v=this.finalize(v,new ae.VariableDeclaration(nt,it)),this.nextToken(),i=v,o=this.parseExpression(),v=null):1===nt.length&&null===nt[0].init&&this.matchContextualKeyword("of")?(v=this.finalize(v,new ae.VariableDeclaration(nt,it)),this.nextToken(),i=v,o=this.parseAssignmentExpression(),v=null,_e=!1):(this.consumeSemicolon(),v=this.finalize(v,new ae.VariableDeclaration(nt,it)))}else v=this.finalize(v,new ae.Identifier(it)),this.nextToken(),i=v,o=this.parseExpression(),v=null}else{var ot=this.lookahead;tt=this.context.allowIn;if(this.context.allowIn=!1,v=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=tt,this.matchKeyword("in"))this.context.isAssignmentTarget&&v.type!==we.Syntax.AssignmentExpression||this.tolerateError($.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(v),i=v,o=this.parseExpression(),v=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&v.type!==we.Syntax.AssignmentExpression||this.tolerateError($.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(v),i=v,o=this.parseAssignmentExpression(),v=null,_e=!1;else{if(this.match(",")){for(var st=[v];this.match(",");)this.nextToken(),st.push(this.isolateCoverGrammar(this.parseAssignmentExpression));v=this.finalize(this.startNode(ot),new ae.SequenceExpression(st))}this.expect(";")}}if(void 0===i&&(this.match(";")||(_=this.parseExpression()),this.expect(";"),this.match(")")||(pe=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),s=this.finalize(this.createNode(),new ae.EmptyStatement);else{this.expect(")");var dt=this.context.inIteration;this.context.inIteration=!0,s=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=dt}return void 0===i?this.finalize(et,new ae.ForStatement(v,_,pe,s)):_e?this.finalize(et,new ae.ForInStatement(i,o,s)):this.finalize(et,new ae.ForOfStatement(i,o,s))},Parser.prototype.parseContinueStatement=function(){var i=this.createNode();this.expectKeyword("continue");var o=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var s=this.parseVariableIdentifier();o=s;var v="$"+s.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,v)||this.throwError($.Messages.UnknownLabel,s.name)}return this.consumeSemicolon(),null!==o||this.context.inIteration||this.throwError($.Messages.IllegalContinue),this.finalize(i,new ae.ContinueStatement(o))},Parser.prototype.parseBreakStatement=function(){var i=this.createNode();this.expectKeyword("break");var o=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var s=this.parseVariableIdentifier(),v="$"+s.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,v)||this.throwError($.Messages.UnknownLabel,s.name),o=s}return this.consumeSemicolon(),null!==o||this.context.inIteration||this.context.inSwitch||this.throwError($.Messages.IllegalBreak),this.finalize(i,new ae.BreakStatement(o))},Parser.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError($.Messages.IllegalReturn);var i=this.createNode();this.expectKeyword("return");var o=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&2!==this.lookahead.type||8===this.lookahead.type||10===this.lookahead.type?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(i,new ae.ReturnStatement(o))},Parser.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError($.Messages.StrictModeWith);var i,o=this.createNode();this.expectKeyword("with"),this.expect("(");var s=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),i=this.finalize(this.createNode(),new ae.EmptyStatement)):(this.expect(")"),i=this.parseStatement()),this.finalize(o,new ae.WithStatement(s,i))},Parser.prototype.parseSwitchCase=function(){var i,o=this.createNode();this.matchKeyword("default")?(this.nextToken(),i=null):(this.expectKeyword("case"),i=this.parseExpression()),this.expect(":");for(var s=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)s.push(this.parseStatementListItem());return this.finalize(o,new ae.SwitchCase(i,s))},Parser.prototype.parseSwitchStatement=function(){var i=this.createNode();this.expectKeyword("switch"),this.expect("(");var o=this.parseExpression();this.expect(")");var s=this.context.inSwitch;this.context.inSwitch=!0;var v=[],_=!1;for(this.expect("{");!this.match("}");){var pe=this.parseSwitchCase();null===pe.test&&(_&&this.throwError($.Messages.MultipleDefaultsInSwitch),_=!0),v.push(pe)}return this.expect("}"),this.context.inSwitch=s,this.finalize(i,new ae.SwitchStatement(o,v))},Parser.prototype.parseLabelledStatement=function(){var i,o=this.createNode(),s=this.parseExpression();if(s.type===we.Syntax.Identifier&&this.match(":")){this.nextToken();var v=s,_="$"+v.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,_)&&this.throwError($.Messages.Redeclaration,"Label",v.name),this.context.labelSet[_]=!0;var pe=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),pe=this.parseClassDeclaration();else if(this.matchKeyword("function")){var _e=this.lookahead,et=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(_e,$.Messages.StrictFunction):et.generator&&this.tolerateUnexpectedToken(_e,$.Messages.GeneratorInLegacyContext),pe=et}else pe=this.parseStatement();delete this.context.labelSet[_],i=new ae.LabeledStatement(v,pe)}else this.consumeSemicolon(),i=new ae.ExpressionStatement(s);return this.finalize(o,i)},Parser.prototype.parseThrowStatement=function(){var i=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError($.Messages.NewlineAfterThrow);var o=this.parseExpression();return this.consumeSemicolon(),this.finalize(i,new ae.ThrowStatement(o))},Parser.prototype.parseCatchClause=function(){var i=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var o=[],s=this.parsePattern(o),v={},_=0;_0&&this.tolerateError($.Messages.BadGetterArity);var v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,false))},Parser.prototype.parseSetterMethod=function(){var i=this.createNode(),o=this.context.allowYield;this.context.allowYield=!0;var s=this.parseFormalParameters();1!==s.params.length?this.tolerateError($.Messages.BadSetterArity):s.params[0]instanceof ae.RestElement&&this.tolerateError($.Messages.BadSetterRestParameter);var v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,false))},Parser.prototype.parseGeneratorMethod=function(){var i=this.createNode(),o=this.context.allowYield;this.context.allowYield=!0;var s=this.parseFormalParameters();this.context.allowYield=!1;var v=this.parsePropertyMethod(s);return this.context.allowYield=o,this.finalize(i,new ae.FunctionExpression(null,s.params,v,!0))},Parser.prototype.isStartOfExpression=function(){var i=!0,o=this.lookahead.value;switch(this.lookahead.type){case 7:i="["===o||"("===o||"{"===o||"+"===o||"-"===o||"!"===o||"~"===o||"++"===o||"--"===o||"/"===o||"/="===o;break;case 4:i="class"===o||"delete"===o||"function"===o||"let"===o||"new"===o||"super"===o||"this"===o||"typeof"===o||"void"===o||"yield"===o}return i},Parser.prototype.parseYieldExpression=function(){var i=this.createNode();this.expectKeyword("yield");var o=null,s=!1;if(!this.hasLineTerminator){var v=this.context.allowYield;this.context.allowYield=!1,(s=this.match("*"))?(this.nextToken(),o=this.parseAssignmentExpression()):this.isStartOfExpression()&&(o=this.parseAssignmentExpression()),this.context.allowYield=v}return this.finalize(i,new ae.YieldExpression(o,s))},Parser.prototype.parseClassElement=function(i){var o=this.lookahead,s=this.createNode(),v="",_=null,pe=null,we=!1,_e=!1,et=!1,tt=!1;if(this.match("*"))this.nextToken();else if(we=this.match("["),"static"===(_=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(o=this.lookahead,et=!0,we=this.match("["),this.match("*")?this.nextToken():_=this.parseObjectPropertyKey()),3===o.type&&!this.hasLineTerminator&&"async"===o.value){var nt=this.lookahead.value;":"!==nt&&"("!==nt&&"*"!==nt&&(tt=!0,o=this.lookahead,_=this.parseObjectPropertyKey(),3===o.type&&"constructor"===o.value&&this.tolerateUnexpectedToken(o,$.Messages.ConstructorIsAsync))}var rt=this.qualifiedPropertyName(this.lookahead);return 3===o.type?"get"===o.value&&rt?(v="get",we=this.match("["),_=this.parseObjectPropertyKey(),this.context.allowYield=!1,pe=this.parseGetterMethod()):"set"===o.value&&rt&&(v="set",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseSetterMethod()):7===o.type&&"*"===o.value&&rt&&(v="init",we=this.match("["),_=this.parseObjectPropertyKey(),pe=this.parseGeneratorMethod(),_e=!0),!v&&_&&this.match("(")&&(v="init",pe=tt?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),_e=!0),v||this.throwUnexpectedToken(this.lookahead),"init"===v&&(v="method"),we||(et&&this.isPropertyKey(_,"prototype")&&this.throwUnexpectedToken(o,$.Messages.StaticPrototype),!et&&this.isPropertyKey(_,"constructor")&&(("method"!==v||!_e||pe&&pe.generator)&&this.throwUnexpectedToken(o,$.Messages.ConstructorSpecialMethod),i.value?this.throwUnexpectedToken(o,$.Messages.DuplicateConstructor):i.value=!0,v="constructor")),this.finalize(s,new ae.MethodDefinition(_,we,pe,v,et))},Parser.prototype.parseClassElementList=function(){var i=[],o={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():i.push(this.parseClassElement(o));return this.expect("}"),i},Parser.prototype.parseClassBody=function(){var i=this.createNode(),o=this.parseClassElementList();return this.finalize(i,new ae.ClassBody(o))},Parser.prototype.parseClassDeclaration=function(i){var o=this.createNode(),s=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var v=i&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),_=null;this.matchKeyword("extends")&&(this.nextToken(),_=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var $=this.parseClassBody();return this.context.strict=s,this.finalize(o,new ae.ClassDeclaration(v,_,$))},Parser.prototype.parseClassExpression=function(){var i=this.createNode(),o=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var s=3===this.lookahead.type?this.parseVariableIdentifier():null,v=null;this.matchKeyword("extends")&&(this.nextToken(),v=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var _=this.parseClassBody();return this.context.strict=o,this.finalize(i,new ae.ClassExpression(s,v,_))},Parser.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var i=this.createNode(),o=this.parseDirectivePrologues();2!==this.lookahead.type;)o.push(this.parseStatementListItem());return this.finalize(i,new ae.Module(o))},Parser.prototype.parseScript=function(){for(var i=this.createNode(),o=this.parseDirectivePrologues();2!==this.lookahead.type;)o.push(this.parseStatementListItem());return this.finalize(i,new ae.Script(o))},Parser.prototype.parseModuleSpecifier=function(){var i=this.createNode();8!==this.lookahead.type&&this.throwError($.Messages.InvalidModuleSpecifier);var o=this.nextToken(),s=this.getTokenRaw(o);return this.finalize(i,new ae.Literal(o.value,s))},Parser.prototype.parseImportSpecifier=function(){var i,o,s=this.createNode();return 3===this.lookahead.type?(o=i=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),o=this.parseVariableIdentifier())):(o=i=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),o=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(s,new ae.ImportSpecifier(o,i))},Parser.prototype.parseNamedImports=function(){this.expect("{");for(var i=[];!this.match("}");)i.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),i},Parser.prototype.parseImportDefaultSpecifier=function(){var i=this.createNode(),o=this.parseIdentifierName();return this.finalize(i,new ae.ImportDefaultSpecifier(o))},Parser.prototype.parseImportNamespaceSpecifier=function(){var i=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError($.Messages.NoAsAfterImportNamespace),this.nextToken();var o=this.parseIdentifierName();return this.finalize(i,new ae.ImportNamespaceSpecifier(o))},Parser.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError($.Messages.IllegalImportDeclaration);var i,o=this.createNode();this.expectKeyword("import");var s=[];if(8===this.lookahead.type)i=this.parseModuleSpecifier();else{if(this.match("{")?s=s.concat(this.parseNamedImports()):this.match("*")?s.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(s.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?s.push(this.parseImportNamespaceSpecifier()):this.match("{")?s=s.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var v=this.lookahead.value?$.Messages.UnexpectedToken:$.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}this.nextToken(),i=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(o,new ae.ImportDeclaration(s,i))},Parser.prototype.parseExportSpecifier=function(){var i=this.createNode(),o=this.parseIdentifierName(),s=o;return this.matchContextualKeyword("as")&&(this.nextToken(),s=this.parseIdentifierName()),this.finalize(i,new ae.ExportSpecifier(o,s))},Parser.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError($.Messages.IllegalExportDeclaration);var i,o=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var s=this.parseFunctionDeclaration(!0);i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else if(this.matchKeyword("class")){s=this.parseClassDeclaration(!0);i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else if(this.matchContextualKeyword("async")){s=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else{this.matchContextualKeyword("from")&&this.throwError($.Messages.UnexpectedToken,this.lookahead.value);s=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),i=this.finalize(o,new ae.ExportDefaultDeclaration(s))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var v=this.lookahead.value?$.Messages.UnexpectedToken:$.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}this.nextToken();var _=this.parseModuleSpecifier();this.consumeSemicolon(),i=this.finalize(o,new ae.ExportAllDeclaration(_))}else if(4===this.lookahead.type){s=void 0;switch(this.lookahead.value){case"let":case"const":s=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":s=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}i=this.finalize(o,new ae.ExportNamedDeclaration(s,[],null))}else if(this.matchAsyncFunction()){s=this.parseFunctionDeclaration();i=this.finalize(o,new ae.ExportNamedDeclaration(s,[],null))}else{var pe=[],we=null,_e=!1;for(this.expect("{");!this.match("}");)_e=_e||this.matchKeyword("default"),pe.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),we=this.parseModuleSpecifier(),this.consumeSemicolon();else if(_e){v=this.lookahead.value?$.Messages.UnexpectedToken:$.Messages.MissingFromClause;this.throwError(v,this.lookahead.value)}else this.consumeSemicolon();i=this.finalize(o,new ae.ExportNamedDeclaration(null,pe,we))}return i},Parser}();o.Parser=tt},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.assert=function assert(i,o){if(!i)throw new Error("ASSERT: "+o)}},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s=function(){function ErrorHandler(){this.errors=[],this.tolerant=!1}return ErrorHandler.prototype.recordError=function(i){this.errors.push(i)},ErrorHandler.prototype.tolerate=function(i){if(!this.tolerant)throw i;this.recordError(i)},ErrorHandler.prototype.constructError=function(i,o){var s=new Error(i);try{throw s}catch(i){Object.create&&Object.defineProperty&&(s=Object.create(i),Object.defineProperty(s,"column",{value:o}))}return s},ErrorHandler.prototype.createError=function(i,o,s,v){var _="Line "+o+": "+v,$=this.constructError(_,s);return $.index=i,$.lineNumber=o,$.description=v,$},ErrorHandler.prototype.throwError=function(i,o,s,v){throw this.createError(i,o,s,v)},ErrorHandler.prototype.tolerateError=function(i,o,s,v){var _=this.createError(i,o,s,v);if(!this.tolerant)throw _;this.recordError(_)},ErrorHandler}();o.ErrorHandler=s},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(9),_=s(4),$=s(11);function hexValue(i){return"0123456789abcdef".indexOf(i.toLowerCase())}function octalValue(i){return"01234567".indexOf(i)}var ae=function(){function Scanner(i,o){this.source=i,this.errorHandler=o,this.trackComment=!1,this.isModule=!1,this.length=i.length,this.index=0,this.lineNumber=i.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return Scanner.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},Scanner.prototype.restoreState=function(i){this.index=i.index,this.lineNumber=i.lineNumber,this.lineStart=i.lineStart},Scanner.prototype.eof=function(){return this.index>=this.length},Scanner.prototype.throwUnexpectedToken=function(i){return void 0===i&&(i=$.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,i)},Scanner.prototype.tolerateUnexpectedToken=function(i){void 0===i&&(i=$.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,i)},Scanner.prototype.skipSingleLineComment=function(i){var o,s,v=[];for(this.trackComment&&(v=[],o=this.index-i,s={start:{line:this.lineNumber,column:this.index-this.lineStart-i},end:{}});!this.eof();){var $=this.source.charCodeAt(this.index);if(++this.index,_.Character.isLineTerminator($)){if(this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart-1};var ae={multiLine:!1,slice:[o+i,this.index-1],range:[o,this.index-1],loc:s};v.push(ae)}return 13===$&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,v}}if(this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart};ae={multiLine:!1,slice:[o+i,this.index],range:[o,this.index],loc:s};v.push(ae)}return v},Scanner.prototype.skipMultiLineComment=function(){var i,o,s=[];for(this.trackComment&&(s=[],i=this.index-2,o={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var v=this.source.charCodeAt(this.index);if(_.Character.isLineTerminator(v))13===v&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===v){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){o.end={line:this.lineNumber,column:this.index-this.lineStart};var $={multiLine:!0,slice:[i+2,this.index-2],range:[i,this.index],loc:o};s.push($)}return s}++this.index}else++this.index}if(this.trackComment){o.end={line:this.lineNumber,column:this.index-this.lineStart};$={multiLine:!0,slice:[i+2,this.index],range:[i,this.index],loc:o};s.push($)}return this.tolerateUnexpectedToken(),s},Scanner.prototype.scanComments=function(){var i;this.trackComment&&(i=[]);for(var o=0===this.index;!this.eof();){var s=this.source.charCodeAt(this.index);if(_.Character.isWhiteSpace(s))++this.index;else if(_.Character.isLineTerminator(s))++this.index,13===s&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,o=!0;else if(47===s)if(47===(s=this.source.charCodeAt(this.index+1))){this.index+=2;var v=this.skipSingleLineComment(2);this.trackComment&&(i=i.concat(v)),o=!0}else{if(42!==s)break;this.index+=2;v=this.skipMultiLineComment();this.trackComment&&(i=i.concat(v))}else if(o&&45===s){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3;v=this.skipSingleLineComment(3);this.trackComment&&(i=i.concat(v))}else{if(60!==s||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4;v=this.skipSingleLineComment(4);this.trackComment&&(i=i.concat(v))}}return i},Scanner.prototype.isFutureReservedWord=function(i){switch(i){case"enum":case"export":case"import":case"super":return!0;default:return!1}},Scanner.prototype.isStrictModeReservedWord=function(i){switch(i){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},Scanner.prototype.isRestrictedWord=function(i){return"eval"===i||"arguments"===i},Scanner.prototype.isKeyword=function(i){switch(i.length){case 2:return"if"===i||"in"===i||"do"===i;case 3:return"var"===i||"for"===i||"new"===i||"try"===i||"let"===i;case 4:return"this"===i||"else"===i||"case"===i||"void"===i||"with"===i||"enum"===i;case 5:return"while"===i||"break"===i||"catch"===i||"throw"===i||"const"===i||"yield"===i||"class"===i||"super"===i;case 6:return"return"===i||"typeof"===i||"delete"===i||"switch"===i||"export"===i||"import"===i;case 7:return"default"===i||"finally"===i||"extends"===i;case 8:return"function"===i||"continue"===i||"debugger"===i;case 10:return"instanceof"===i;default:return!1}},Scanner.prototype.codePointAt=function(i){var o=this.source.charCodeAt(i);if(o>=55296&&o<=56319){var s=this.source.charCodeAt(i+1);if(s>=56320&&s<=57343)o=1024*(o-55296)+s-56320+65536}return o},Scanner.prototype.scanHexEscape=function(i){for(var o="u"===i?4:2,s=0,v=0;v1114111||"}"!==i)&&this.throwUnexpectedToken(),_.Character.fromCodePoint(o)},Scanner.prototype.getIdentifier=function(){for(var i=this.index++;!this.eof();){var o=this.source.charCodeAt(this.index);if(92===o)return this.index=i,this.getComplexIdentifier();if(o>=55296&&o<57343)return this.index=i,this.getComplexIdentifier();if(!_.Character.isIdentifierPart(o))break;++this.index}return this.source.slice(i,this.index)},Scanner.prototype.getComplexIdentifier=function(){var i,o=this.codePointAt(this.index),s=_.Character.fromCodePoint(o);for(this.index+=s.length,92===o&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,i=this.scanUnicodeCodePointEscape()):null!==(i=this.scanHexEscape("u"))&&"\\"!==i&&_.Character.isIdentifierStart(i.charCodeAt(0))||this.throwUnexpectedToken(),s=i);!this.eof()&&(o=this.codePointAt(this.index),_.Character.isIdentifierPart(o));)s+=i=_.Character.fromCodePoint(o),this.index+=i.length,92===o&&(s=s.substr(0,s.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,i=this.scanUnicodeCodePointEscape()):null!==(i=this.scanHexEscape("u"))&&"\\"!==i&&_.Character.isIdentifierPart(i.charCodeAt(0))||this.throwUnexpectedToken(),s+=i);return s},Scanner.prototype.octalToDecimal=function(i){var o="0"!==i,s=octalValue(i);return!this.eof()&&_.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(o=!0,s=8*s+octalValue(this.source[this.index++]),"0123".indexOf(i)>=0&&!this.eof()&&_.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(s=8*s+octalValue(this.source[this.index++]))),{code:s,octal:o}},Scanner.prototype.scanIdentifier=function(){var i,o=this.index,s=92===this.source.charCodeAt(o)?this.getComplexIdentifier():this.getIdentifier();if(3!==(i=1===s.length?3:this.isKeyword(s)?4:"null"===s?5:"true"===s||"false"===s?1:3)&&o+s.length!==this.index){var v=this.index;this.index=o,this.tolerateUnexpectedToken($.Messages.InvalidEscapedReservedWord),this.index=v}return{type:i,value:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:o,end:this.index}},Scanner.prototype.scanPunctuator=function(){var i=this.index,o=this.source[this.index];switch(o){case"(":case"{":"{"===o&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,o="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(o=this.source.substr(this.index,4))?this.index+=4:"==="===(o=o.substr(0,3))||"!=="===o||">>>"===o||"<<="===o||">>="===o||"**="===o?this.index+=3:"&&"===(o=o.substr(0,2))||"||"===o||"=="===o||"!="===o||"+="===o||"-="===o||"*="===o||"/="===o||"++"===o||"--"===o||"<<"===o||">>"===o||"&="===o||"|="===o||"^="===o||"%="===o||"<="===o||">="===o||"=>"===o||"**"===o?this.index+=2:(o=this.source[this.index],"<>=!+-*%&|^/".indexOf(o)>=0&&++this.index)}return this.index===i&&this.throwUnexpectedToken(),{type:7,value:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}},Scanner.prototype.scanHexLiteral=function(i){for(var o="";!this.eof()&&_.Character.isHexDigit(this.source.charCodeAt(this.index));)o+=this.source[this.index++];return 0===o.length&&this.throwUnexpectedToken(),_.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+o,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}},Scanner.prototype.scanBinaryLiteral=function(i){for(var o,s="";!this.eof()&&("0"===(o=this.source[this.index])||"1"===o);)s+=this.source[this.index++];return 0===s.length&&this.throwUnexpectedToken(),this.eof()||(o=this.source.charCodeAt(this.index),(_.Character.isIdentifierStart(o)||_.Character.isDecimalDigit(o))&&this.throwUnexpectedToken()),{type:6,value:parseInt(s,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:i,end:this.index}},Scanner.prototype.scanOctalLiteral=function(i,o){var s="",v=!1;for(_.Character.isOctalDigit(i.charCodeAt(0))?(v=!0,s="0"+this.source[this.index++]):++this.index;!this.eof()&&_.Character.isOctalDigit(this.source.charCodeAt(this.index));)s+=this.source[this.index++];return v||0!==s.length||this.throwUnexpectedToken(),(_.Character.isIdentifierStart(this.source.charCodeAt(this.index))||_.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(s,8),octal:v,lineNumber:this.lineNumber,lineStart:this.lineStart,start:o,end:this.index}},Scanner.prototype.isImplicitOctalLiteral=function(){for(var i=this.index+1;i=0&&(s=s.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(i,o,s){var _=parseInt(o||s,16);return _>1114111&&v.throwUnexpectedToken($.Messages.InvalidRegExp),_<=65535?String.fromCharCode(_):"￿"})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"￿"));try{RegExp(s)}catch(i){this.throwUnexpectedToken($.Messages.InvalidRegExp)}try{return new RegExp(i,o)}catch(i){return null}},Scanner.prototype.scanRegExpBody=function(){var i=this.source[this.index];v.assert("/"===i,"Regular expression literal must start with a slash");for(var o=this.source[this.index++],s=!1,ae=!1;!this.eof();)if(o+=i=this.source[this.index++],"\\"===i)i=this.source[this.index++],_.Character.isLineTerminator(i.charCodeAt(0))&&this.throwUnexpectedToken($.Messages.UnterminatedRegExp),o+=i;else if(_.Character.isLineTerminator(i.charCodeAt(0)))this.throwUnexpectedToken($.Messages.UnterminatedRegExp);else if(s)"]"===i&&(s=!1);else{if("/"===i){ae=!0;break}"["===i&&(s=!0)}return ae||this.throwUnexpectedToken($.Messages.UnterminatedRegExp),o.substr(1,o.length-2)},Scanner.prototype.scanRegExpFlags=function(){for(var i="";!this.eof();){var o=this.source[this.index];if(!_.Character.isIdentifierPart(o.charCodeAt(0)))break;if(++this.index,"\\"!==o||this.eof())i+=o,o;else if("u"===(o=this.source[this.index])){++this.index;var s=this.index,v=this.scanHexEscape("u");if(null!==v)for(i+=v,"\\u";s=55296&&i<57343&&_.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},Scanner}();o.Scanner=ae},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TokenName={},o.TokenName[1]="Boolean",o.TokenName[2]="",o.TokenName[3]="Identifier",o.TokenName[4]="Keyword",o.TokenName[5]="Null",o.TokenName[6]="Numeric",o.TokenName[7]="Punctuator",o.TokenName[8]="String",o.TokenName[9]="RegularExpression",o.TokenName[10]="Template"},function(i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(i,o,s){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var v=s(10),_=s(12),$=s(13),ae=function(){function Reader(){this.values=[],this.curly=this.paren=-1}return Reader.prototype.beforeFunctionExpression=function(i){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(i)>=0},Reader.prototype.isRegexStart=function(){var i=this.values[this.values.length-1],o=null!==i;switch(i){case"this":case"]":o=!1;break;case")":var s=this.values[this.paren-1];o="if"===s||"while"===s||"for"===s||"with"===s;break;case"}":if(o=!1,"function"===this.values[this.curly-3])o=!!(v=this.values[this.curly-4])&&!this.beforeFunctionExpression(v);else if("function"===this.values[this.curly-4]){var v;o=!(v=this.values[this.curly-5])||!this.beforeFunctionExpression(v)}}return o},Reader.prototype.push=function(i){7===i.type||4===i.type?("{"===i.value?this.curly=this.values.length:"("===i.value&&(this.paren=this.values.length),this.values.push(i.value)):this.values.push(null)},Reader}(),pe=function(){function Tokenizer(i,o){this.errorHandler=new v.ErrorHandler,this.errorHandler.tolerant=!!o&&("boolean"==typeof o.tolerant&&o.tolerant),this.scanner=new _.Scanner(i,this.errorHandler),this.scanner.trackComment=!!o&&("boolean"==typeof o.comment&&o.comment),this.trackRange=!!o&&("boolean"==typeof o.range&&o.range),this.trackLoc=!!o&&("boolean"==typeof o.loc&&o.loc),this.buffer=[],this.reader=new ae}return Tokenizer.prototype.errors=function(){return this.errorHandler.errors},Tokenizer.prototype.getNextToken=function(){if(0===this.buffer.length){var i=this.scanner.scanComments();if(this.scanner.trackComment)for(var o=0;o",lt:"<",nbsp:" ",quot:"“"},mt=["style","script"],yt=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,vt=/mailto:/i,Rt=/\n{2,}$/,bt=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,Ot=/^ *> ?/gm,xt=/^ {2,}\n/,wt=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,Ct=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,St=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,_t=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Et=/^(?:\n *)*\n/,kt=/\r\n?/g,At=/^\[\^([^\]]+)](:.*)\n/,Dt=/^\[\^([^\]]+)]/,Pt=/\f/g,Tt=/^\s*?\[(x|\s)\]/,It=/^ *(#{1,6}) *([^\n]+)\n{0,2}/,Ft=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Nt=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,Bt=/&([a-z]+);/g,Lt=/^/,jt=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Mt=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Qt=/^\{.*\}$/,Vt=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ut=/^<([^ >]+@[^ >]+)>/,Wt=/^<([^ >]+:\/[^ >]+)>/,$t=/ *\n+$/,qt=/(?:^|\n)( *)$/,zt=/-([a-z])?/gi,Zt=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,Ht=/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/,Gt=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,Xt=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Yt=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Kt=/(\[|\])/g,Jt=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,nn=/\t/g,_n=/^ *\| */,An=/(^ *\||\| *$)/g,Zn=/ *$/,aa=/^ *:-+: *$/,ra=/^ *:-+ *$/,ia=/^ *-+: *$/,ca=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ha=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1)/,ga=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,va=/^\\([^0-9A-Za-z\s])/,Oa=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,xa=/(^\n+|\n+$|\s+$)/g,_a=/^([ \t]*)/,ja=/\\([^0-9A-Z\s])/gi,er=/^( *)((?:[*+-]|\d+\.)) +/,tr=/( *)((?:[*+-]|\d+\.)) +[^\n]*(?:\n(?!\1(?:[*+-]|\d+\.) )[^\n]*)*(\n|$)/gm,nr=/^( *)((?:[*+-]|\d+\.)) [\s\S]+?(?:\n{2,}(?! )(?!\1(?:[*+-]|\d+\.) (?!(?:[*+-]|\d+\.) ))\n*|\s*\n*$)/,ar=/^\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,rr=/^!\[((?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*)\]\(\s*?(?:\s+['"]([\s\S]*?)['"])?\s*\)/,ir=[bt,St,Ct,It,Ft,Nt,Lt,Mt,tr,nr,Zt,Ht];function containsBlockSyntax(i){return ir.some((function(o){return o.test(i)}))}function slugify(i){return i.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function parseTableAlignCapture(i){return ia.test(i)?"right":aa.test(i)?"center":ra.test(i)?"left":null}function parseTableRow(i,o,s){var v=s.inTable;s.inTable=!0;var _=o(i.trim(),s);s.inTable=v;var $=[[]];return _.forEach((function(i,o){"tableSeparator"===i.type?0!==o&&o!==_.length-1&&$.push([]):("text"===i.type&&(null==_[o+1]||"tableSeparator"===_[o+1].type)&&(i.content=i.content.replace(Zn,"")),$[$.length-1].push(i))})),$}function parseTableAlign(i){return i.replace(An,"").split("|").map(parseTableAlignCapture)}function parseTableCells(i,o,s){return i.trim().split("\n").map((function(i){return parseTableRow(i,o,s)}))}function parseTable(i,o,s){s.inline=!0;var v=parseTableRow(i[1],o,s),_=parseTableAlign(i[2]),$=parseTableCells(i[3],o,s);return s.inline=!1,{align:_,cells:$,header:v,type:"table"}}function getTableStyle(i,o){return null==i.align[o]?{}:{textAlign:i.align[o]}}function normalizeAttributeKey(i){return-1!==i.indexOf("-")&&null===i.match(jt)&&(i=i.replace(zt,(function(i,o){return o.toUpperCase()}))),i}function attributeValueToJSXPropValue(i,o){return"style"===i?o.split(/;\s?/).reduce((function(i,o){var s=o.slice(0,o.indexOf(":")),v=s.replace(/(-[a-z])/g,(function(i){return i[1].toUpperCase()}));return i[v]=o.slice(s.length+1).trim(),i}),{}):"href"===i?sanitizeUrl(o):(o.match(Qt)&&(o=o.slice(1,o.length-1)),"true"===o||"false"!==o&&o)}function normalizeWhitespace(i){return i.replace(kt,"\n").replace(Pt,"").replace(nn," ")}function parserFor(i){function b(s,v){for(var _=[],$="";s;)for(var ae=0;ae2?$-2:0),pe=2;pe<$;pe++)ae[pe-2]=arguments[pe];return s.apply(void 0,[getTag(i,o.overrides),ht({},v,_,{className:cx(v&&v.className,_.className)||void 0})].concat(ae))}function c(i){var s=!1;o.forceInline?s=!0:!o.forceBlock&&(s=!1===Jt.test(i));var v=we(ae(s?i:i.replace(xa,"")+"\n\n",{inline:s})),_=void 0;return v.length>1?_=d(s?"span":"div",{key:"outer"},v):1===v.length?"string"==typeof(_=v[0])&&(_=d("span",{key:"outer"},_)):_=d("span",{key:"outer"}),_}function e(i){var o=i.match(yt);return o?o.reduce((function(i,o,s){var v=o.indexOf("=");if(-1!==v){var _=normalizeAttributeKey(o.slice(0,v)).trim(),$=ct()(o.slice(v+1).trim()),ae=ft[_]||_,we=i[ae]=attributeValueToJSXPropValue(_,$);(Nt.test(we)||Mt.test(we))&&(i[ae]=pe.a.cloneElement(c(we.trim()),{key:s}))}else"style"!==o&&(i[ft[o]||o]=!0);return i}),{}):void 0}(o=o||{}).overrides=o.overrides||{},o.slugify=o.slugify||slugify,o.namedCodesToUnicode=o.namedCodesToUnicode?ht({},gt,o.namedCodesToUnicode):gt;var s=o.createElement||pe.a.createElement;var v=[],_={},$={blockQuote:{match:blockRegex(bt),order:sr,parse:function d(i,o,s){return{content:o(i[0].replace(Ot,""),s)}},react:function e(i,o,s){return d("blockquote",{key:s.key},o(i.content,s))}},breakLine:{match:anyScopeRegex(xt),order:sr,parse:captureNothing,react:function e(i,o,s){return d("br",{key:s.key})}},breakThematic:{match:blockRegex(wt),order:sr,parse:captureNothing,react:function e(i,o,s){return d("hr",{key:s.key})}},codeBlock:{match:blockRegex(St),order:or,parse:function c(i){return{content:i[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},react:function e(i,o,s){return d("pre",{key:s.key},d("code",{className:i.lang?"lang-"+i.lang:""},i.content))}},codeFenced:{match:blockRegex(Ct),order:or,parse:function b(i){return{content:i[3],lang:i[2]||void 0,type:"codeBlock"}}},codeInline:{match:simpleInlineRegex(_t),order:ur,parse:function b(i){return{content:i[2]}},react:function e(i,o,s){return d("code",{key:s.key},i.content)}},footnote:{match:blockRegex(At),order:or,parse:function b(i){return v.push({footnote:i[2],identifier:i[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(Dt),order:sr,parse:function c(i){return{content:i[1],target:"#"+o.slugify(i[1])}},react:function e(i,o,s){return d("a",{key:s.key,href:sanitizeUrl(i.target)},d("sup",{key:s.key},i.content))}},gfmTask:{match:inlineRegex(Tt),order:sr,parse:function b(i){return{completed:"x"===i[1].toLowerCase()}},react:function e(i,o,s){return d("input",{checked:i.completed,key:s.key,readOnly:!0,type:"checkbox"})}},heading:{match:blockRegex(It),order:sr,parse:function e(i,s,v){return{content:parseInline(s,i[2],v),id:o.slugify(i[2]),level:i[1].length}},react:function f(i,o,s){return d("h"+i.level,{id:i.id,key:s.key},o(i.content,s))}},headingSetext:{match:blockRegex(Ft),order:or,parse:function d(i,o,s){return{content:parseInline(o,i[1],s),level:"="===i[2]?1:2,type:"heading"}}},htmlComment:{match:anyScopeRegex(Lt),order:sr,parse:function a(){return{}},react:renderNothing},image:{match:simpleInlineRegex(rr),order:sr,parse:function b(i){return{alt:i[1],target:unescapeUrl(i[2]),title:i[3]}},react:function e(i,o,s){return d("img",{key:s.key,alt:i.alt||void 0,title:i.title||void 0,src:sanitizeUrl(i.target)})}},link:{match:inlineRegex(ar),order:ur,parse:function d(i,o,s){return{content:parseSimpleInline(o,i[1],s),target:unescapeUrl(i[2]),title:i[3]}},react:function e(i,o,s){return d("a",{key:s.key,href:sanitizeUrl(i.target),title:i.title},o(i.content,s))}},linkAngleBraceStyleDetector:{match:inlineRegex(Wt),order:or,parse:function b(i){return{content:[{content:i[1],type:"text"}],target:i[1],type:"link"}}},linkBareUrlDetector:{match:inlineRegex(Vt),order:or,parse:function b(i){return{content:[{content:i[1],type:"text"}],target:i[1],title:void 0,type:"link"}}},linkMailtoDetector:{match:inlineRegex(Ut),order:or,parse:function d(i){var o=i[1],s=i[1];return vt.test(s)||(s="mailto:"+s),{content:[{content:o.replace("mailto:",""),type:"text"}],target:s,type:"link"}}},list:{match:function f(i,o,s){var v=qt.exec(s),_=o._list||!o.inline;return v&&_?(i=v[1]+i,nr.exec(i)):null},order:sr,parse:function j(i,o,s){var v=i[2],_=v.length>1,$=_?+v:void 0,ae=i[0].replace(Rt,"\n").match(tr),pe=!1,we=ae.map((function(i,v){var _=er.exec(i)[0].length,$=new RegExp("^ {1,"+_+"}","gm"),we=i.replace($,"").replace(er,""),_e=v===ae.length-1,et=-1!==we.indexOf("\n\n")||_e&&pe;pe=et;var tt,nt=s.inline,rt=s._list;s._list=!0,et?(s.inline=!1,tt=we.replace($t,"\n\n")):(s.inline=!0,tt=we.replace($t,""));var it=o(tt,s);return s.inline=nt,s._list=rt,it}));return{items:we,ordered:_,start:$}},react:function f(i,o,s){return d(i.ordered?"ol":"ul",{key:s.key,start:i.start},i.items.map((function(i,v){return d("li",{key:v},o(i,s))})))}},newlineCoalescer:{match:blockRegex(Et),order:ur,parse:captureNothing,react:function a(){return"\n"}},paragraph:{match:blockRegex(Ht),order:ur,parse:parseCaptureInline,react:function e(i,o,s){return d("p",{key:s.key},o(i.content,s))}},ref:{match:inlineRegex(Gt),order:or,parse:function b(i){return _[i[1]]={target:i[2],title:i[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(Xt),order:or,parse:function b(i){return{alt:i[1]||void 0,ref:i[2]}},react:function e(i,o,s){return d("img",{key:s.key,alt:i.alt,src:sanitizeUrl(_[i.ref].target),title:_[i.ref].title})}},refLink:{match:inlineRegex(Yt),order:or,parse:function d(i,o,s){return{content:o(i[1],s),fallbackContent:o(i[0].replace(Kt,"\\$1"),s),ref:i[2]}},react:function e(i,o,s){return _[i.ref]?d("a",{key:s.key,href:sanitizeUrl(_[i.ref].target),title:_[i.ref].title},o(i.content,s)):d("span",{key:s.key},o(i.fallbackContent,s))}},table:{match:blockRegex(Zt),order:sr,parse:parseTable,react:function f(i,o,s){return d("table",{key:s.key},d("thead",null,d("tr",null,i.header.map((function(v,_){return d("th",{key:_,style:getTableStyle(i,_)},o(v,s))})))),d("tbody",null,i.cells.map((function(v,_){return d("tr",{key:_},v.map((function(v,_){return d("td",{key:_,style:getTableStyle(i,_)},o(v,s))})))}))))}},tableSeparator:{match:function c(i,o){return o.inTable?_n.exec(i):null},order:sr,parse:function a(){return{type:"tableSeparator"}},react:function a(){return" | "}},text:{match:anyScopeRegex(Oa),order:lr,parse:function c(i){return{content:i[0].replace(Bt,(function(i,s){return o.namedCodesToUnicode[s]?o.namedCodesToUnicode[s]:i}))}},react:function b(i){return i.content}},textBolded:{match:simpleInlineRegex(ca),order:dr,parse:function d(i,o,s){return{content:o(i[2],s)}},react:function e(i,o,s){return d("strong",{key:s.key},o(i.content,s))}},textEmphasized:{match:simpleInlineRegex(ha),order:ur,parse:function d(i,o,s){return{content:o(i[2],s)}},react:function e(i,o,s){return d("em",{key:s.key},o(i.content,s))}},textEscaped:{match:simpleInlineRegex(va),order:sr,parse:function b(i){return{content:i[1],type:"text"}}},textStrikethroughed:{match:simpleInlineRegex(ga),order:ur,parse:parseCaptureInline,react:function e(i,o,s){return d("del",{key:s.key},o(i.content,s))}}};!0!==o.disableParsingRawHTML&&($.htmlBlock={match:anyScopeRegex(Nt),order:sr,parse:function l(i,o,s){var v=i[3].match(_a)[1],_=new RegExp("^"+v,"gm"),$=i[3].replace(_,""),ae=containsBlockSyntax($)?parseBlock:parseInline,pe=i[1].toLowerCase(),we=-1!==mt.indexOf(pe);return{attrs:e(i[2]),content:we?i[3]:ae(o,$,s),noInnerParse:we,tag:we?pe:i[1]}},react:function e(i,o,s){return d(i.tag,ht({key:s.key},i.attrs),i.noInnerParse?i.content:o(i.content,s))}},$.htmlSelfClosing={match:anyScopeRegex(Mt),order:sr,parse:function b(i){return{attrs:e(i[2]||""),tag:i[1]}},react:function e(i,o,s){return d(i.tag,ht({},i.attrs,{key:s.key}))}});var ae=parserFor($),we=reactFor(ruleOutput($)),_e=c(function(i){return i.replace(/)/g,"")}(i));return v.length&&_e.props.children.push(d("footer",{key:"footer"},v.map((function(i){return d("div",{id:o.slugify(i.identifier),key:i.identifier},i.identifier,we(ae(i.footnote,{inline:!0})))})))),_e}var cr=s(211),hr=s.n(cr),pr=s(15);function LinkRenderer_extends(){return LinkRenderer_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var fr=function LinkRenderer(i){var o=i.classes,s=i.children,v=_objectWithoutPropertiesLoose(i,["classes","children"]);return pe.a.createElement("a",LinkRenderer_extends({},v,{className:Object(pr.a)(o.link,v.className)}),s)};fr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node,className:_e.a.string,href:_e.a.string};var gr=Object(et.a)((function styles(i){var o=i.color;return{link:{"&, &:link, &:visited":{fontSize:"inherit",color:o.link,textDecoration:"none"},"&:hover, &:active":{isolate:!1,color:o.linkHover,cursor:"pointer"}}}}))(fr),mr=s(33),yr=function ParaRenderer(i){var o=i.classes,s=i.semantic,v=i.children,_=s||"div";return pe.a.createElement(_,{className:o.para},v)};yr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,semantic:_e.a.oneOf(["p"]),children:_e.a.node.isRequired};var vr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily,_=i.fontSize;return{para:{marginTop:0,marginBottom:o[2],color:s.base,fontFamily:v.base,fontSize:_.text,lineHeight:1.5}}}))(yr);function HeadingRenderer_extends(){return HeadingRenderer_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var Rr=function HeadingRenderer(i){var o=i.classes,s=i.level,v=i.children,_=HeadingRenderer_objectWithoutPropertiesLoose(i,["classes","level","children"]),$="h"+s,ae=Object(pr.a)(o.heading,o["heading"+s]);return pe.a.createElement($,HeadingRenderer_extends({},_,{className:ae}),v)};Rr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,level:_e.a.oneOf([1,2,3,4,5,6]).isRequired,children:_e.a.node};var br=Object(et.a)((function styles(i){var o=i.color,s=i.fontFamily,v=i.fontSize;return{heading:{margin:0,color:o.base,fontFamily:s.base,fontWeight:"normal"},heading1:{fontSize:v.h1},heading2:{fontSize:v.h2},heading3:{fontSize:v.h3},heading4:{fontSize:v.h4},heading5:{fontSize:v.h5,fontWeight:"bold"},heading6:{fontSize:v.h6,fontStyle:"italic"}}}))(Rr),Or=function MarkdownHeadingRenderer(i){var o=i.classes,s=i.level,v=i.children,_=i.id;return pe.a.createElement("div",{className:o.spacing},pe.a.createElement(br,{level:s,id:_},v))};Or.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,level:_e.a.oneOf([1,2,3,4,5,6]).isRequired,children:_e.a.node,id:_e.a.string};var xr=Object(et.a)((function styles(i){return{spacing:{marginBottom:i.space[2]}}}))(Or),wr=function ListRenderer(i){var o=i.classes,s=i.ordered,v=i.children,_=s?"ol":"ul",$=Object(pr.a)(o.list,s&&o.ordered);return pe.a.createElement(_,{className:$},ae.Children.map(v,(function(i){return pe.a.isValidElement(i)?Object(ae.cloneElement)(i,{className:o.li}):i})))};wr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,ordered:_e.a.bool,children:_e.a.node.isRequired},wr.defaultProps={ordered:!1};var Cr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily;return{list:{marginTop:0,marginBottom:o[2],paddingLeft:o[3],fontSize:"inherit"},ordered:{listStyleType:"decimal"},li:{color:s.base,fontFamily:v.base,fontSize:"inherit",lineHeight:1.5,listStyleType:"inherit"}}}))(wr),Sr=function BlockquoteRenderer(i){var o=i.classes,s=i.className,v=i.children,_=Object(pr.a)(o.blockquote,s);return pe.a.createElement("blockquote",{className:_},v)};Sr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,className:_e.a.string,children:_e.a.node.isRequired};var _r=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{blockquote:{margin:[[o[2],o[4]]],padding:0,color:s.base,fontFamily:_.base,fontSize:v.base,lineHeight:1.5}}}))(Sr),Er=function PreRenderer(i){var o=i.classes,s=i.className,v=i.children,_=Object(pr.a)(s,o.pre);return s&&-1!==s.indexOf("lang-")&&v?pe.a.createElement("pre",{className:_,dangerouslySetInnerHTML:{__html:v.toString()}}):pe.a.createElement("pre",{className:_},v)};Er.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,className:_e.a.string,children:_e.a.node.isRequired};var kr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily,$=i.borderRadius;return{pre:Object.assign({fontFamily:_.monospace,fontSize:v.small,lineHeight:1.5,color:s.base,whiteSpace:"pre-wrap",wordWrap:"normal",tabSize:2,hyphens:"none",backgroundColor:s.codeBackground,padding:[[o[1],o[2]]],border:[[1,s.codeBackground,"solid"]],borderRadius:$,marginTop:0,marginBottom:o[2],overflow:"auto"},ot({color:s}))}}))(Er),Ar=s(54);function CheckboxRenderer_extends(){return CheckboxRenderer_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}var Dr=function CheckboxRenderer(i){var o=i.classes,s=CheckboxRenderer_objectWithoutPropertiesLoose(i,["classes"]);return pe.a.createElement("input",CheckboxRenderer_extends({},s,{type:"checkbox",className:o.input}))};Dr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired};var Pr=Object(et.a)((function styles(){return{input:{isolate:!1,display:"inline-block",verticalAlign:"middle"}}}))(Dr),Tr=function HrRenderer(i){var o=i.classes;return pe.a.createElement("hr",{className:o.hr})};Tr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired};var Ir=Object(et.a)((function styles(i){var o=i.space;return{hr:{borderBottom:[[1,i.color.border,"solid"]],marginTop:0,marginBottom:o[2]}}}))(Tr),Fr=function DetailsRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("details",{className:o.details},s)};Fr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Nr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{details:{marginBottom:o[2],fontFamily:_.base,fontSize:v.base,color:s.base}}}))(Fr),Br=function DetailsSummaryRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("summary",{className:o.summary},s)};Br.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Lr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{summary:{marginBottom:o[1],fontFamily:_.base,fontSize:v.base,color:s.base,cursor:"pointer","&:focus":{isolate:!1,outline:[[1,"dotted",s.linkHover]],outlineOffset:2}}}}))(Br),jr=function TableRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("table",{className:o.table},s)};jr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Mr=Object(et.a)((function styles(i){return{table:{marginTop:0,marginBottom:i.space[2],borderCollapse:"collapse"}}}))(jr),Qr=function TableHeadRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("thead",{className:o.thead},s)};Qr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Vr=Object(et.a)((function styles(i){return{thead:{borderBottom:[[1,i.color.border,"solid"]]}}}))(Qr),Ur=function TableBodyRenderer(i){var o=i.children;return pe.a.createElement("tbody",null,o)};Ur.propTypes={children:_e.a.node.isRequired};var Wr=Ur,$r=function TableRowRenderer(i){var o=i.children;return pe.a.createElement("tr",null,o)};$r.propTypes={children:_e.a.node.isRequired};var qr=$r,zr=function TableCellRenderer(i){var o=i.classes,s=i.header,v=i.children;return s?pe.a.createElement("th",{className:o.th},v):pe.a.createElement("td",{className:o.td},v)};zr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,header:_e.a.bool,children:_e.a.node.isRequired},zr.defaultProps={header:!1};var Zr=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontSize,_=i.fontFamily;return{td:{padding:[[o[0],o[2],o[0],0]],fontFamily:_.base,fontSize:v.base,color:s.base,lineHeight:1.5},th:{composes:"$td",fontWeight:"bold"}}}))(zr),Hr=function Pre(i){return Object(ae.isValidElement)(i.children)?pe.a.createElement(kr,i.children.props):pe.a.createElement(kr,i)};Hr.propTypes={children:_e.a.node};var Gr={a:{component:gr},h1:{component:xr,props:{level:1}},h2:{component:xr,props:{level:2}},h3:{component:xr,props:{level:3}},h4:{component:xr,props:{level:4}},h5:{component:xr,props:{level:5}},h6:{component:xr,props:{level:6}},p:{component:vr,props:{semantic:"p"}},em:{component:mr.a,props:{semantic:"em"}},strong:{component:mr.a,props:{semantic:"strong"}},ul:{component:Cr},ol:{component:Cr,props:{ordered:!0}},blockquote:{component:_r},code:{component:Ar.a},pre:{component:Hr},input:{component:Pr},hr:{component:Ir},table:{component:Mr},thead:{component:Vr},th:{component:Zr,props:{header:!0}},tbody:{component:Wr},tr:{component:qr},td:{component:Zr},details:{component:Nr},summary:{component:Lr}},Xr=Object.assign({},Gr,{p:{component:mr.a}}),Yr=function Markdown(i){var o=i.text,s=i.inline?Xr:Gr;return compiler(hr()(o),{overrides:s,forceBlock:!0})};Yr.propTypes={text:_e.a.string.isRequired,inline:_e.a.bool};var Kr=Yr,Jr=function NameRenderer(i){var o,s=i.classes,v=i.children,_=i.deprecated,$=Object(pr.a)(s.name,((o={})[s.isDeprecated]=_,o));return pe.a.createElement("code",{className:$},v)};Jr.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired,deprecated:_e.a.bool};var _i=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{name:{fontFamily:o.monospace,fontSize:s.small,color:v.name},isDeprecated:{color:v.light,textDecoration:"line-through"}}}))(Jr),Ei=function TypeRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("span",{className:o.type},s)};Ei.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node.isRequired};var Ui=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{type:{fontFamily:o.monospace,fontSize:s.small,color:v.type}}}))(Ei),Ji=s(85),no=s.n(Ji),io=s(212),oo=s.n(io);function ArgumentRenderer_objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}var mo=function ArgumentRenderer(i){var o=i.classes,s=i.name,v=i.type,_=i.description,$=i.returns,ae=i.block,we=ArgumentRenderer_objectWithoutPropertiesLoose(i,["classes","name","type","description","returns","block"]),_e=v&&"OptionalType"===v.type,et=we.default;_e&&(v=v.expression);var tt=v?oo.a.type.stringify(v):"",nt=pe.a.createElement(no.a,null,$&&"Returns",s&&pe.a.createElement("span",null,pe.a.createElement(_i,null,s),v&&":"),v&&pe.a.createElement(Ui,null,tt,_e&&"?",!!et&&"="+et),v&&_&&"—",_&&pe.a.createElement(Kr,{text:""+_,inline:!0}));return ae?pe.a.createElement("div",{className:o.block},nt):nt};mo.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string,type:_e.a.object,default:_e.a.string,description:_e.a.string,returns:_e.a.bool,block:_e.a.bool};var Ro=Object(et.a)((function styles(i){return{block:{marginBottom:i.space[2]}}}))(mo);function ArgumentsRenderer_extends(){return ArgumentsRenderer_extends=Object.assign||function(i){for(var o=1;o0&&jo(v.width)/i.offsetWidth||1,$=i.offsetHeight>0&&jo(v.height)/i.offsetHeight||1);var ae=(isElement(i)?getWindow(i):window).visualViewport,pe=!isLayoutViewport()&&s,we=(v.left+(pe&&ae?ae.offsetLeft:0))/_,_e=(v.top+(pe&&ae?ae.offsetTop:0))/$,et=v.width/_,tt=v.height/$;return{width:et,height:tt,top:_e,right:we+et,bottom:_e+tt,left:we,x:we,y:_e}}function getWindowScroll(i){var o=getWindow(i);return{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function getNodeName(i){return i?(i.nodeName||"").toLowerCase():null}function getDocumentElement(i){return((isElement(i)?i.ownerDocument:i.document)||window.document).documentElement}function getWindowScrollBarX(i){return getBoundingClientRect(getDocumentElement(i)).left+getWindowScroll(i).scrollLeft}function getComputedStyle(i){return getWindow(i).getComputedStyle(i)}function isScrollParent(i){var o=getComputedStyle(i),s=o.overflow,v=o.overflowX,_=o.overflowY;return/auto|scroll|overlay|hidden/.test(s+_+v)}function isElementScaled(i){var o=i.getBoundingClientRect(),s=jo(o.width)/i.offsetWidth||1,v=jo(o.height)/i.offsetHeight||1;return 1!==s||1!==v}function getCompositeRect(i,o,s){void 0===s&&(s=!1);var v,_,$=isHTMLElement(o),ae=isHTMLElement(o)&&isElementScaled(o),pe=getDocumentElement(o),we=getBoundingClientRect(i,ae,s),_e={scrollLeft:0,scrollTop:0},et={x:0,y:0};return($||!$&&!s)&&(("body"!==getNodeName(o)||isScrollParent(pe))&&(_e=(v=o)!==getWindow(v)&&isHTMLElement(v)?{scrollLeft:(_=v).scrollLeft,scrollTop:_.scrollTop}:getWindowScroll(v)),isHTMLElement(o)?((et=getBoundingClientRect(o,!0)).x+=o.clientLeft,et.y+=o.clientTop):pe&&(et.x=getWindowScrollBarX(pe))),{x:we.left+_e.scrollLeft-et.x,y:we.top+_e.scrollTop-et.y,width:we.width,height:we.height}}function getLayoutRect(i){var o=getBoundingClientRect(i),s=i.offsetWidth,v=i.offsetHeight;return Math.abs(o.width-s)<=1&&(s=o.width),Math.abs(o.height-v)<=1&&(v=o.height),{x:i.offsetLeft,y:i.offsetTop,width:s,height:v}}function getParentNode(i){return"html"===getNodeName(i)?i:i.assignedSlot||i.parentNode||(isShadowRoot(i)?i.host:null)||getDocumentElement(i)}function getScrollParent(i){return["html","body","#document"].indexOf(getNodeName(i))>=0?i.ownerDocument.body:isHTMLElement(i)&&isScrollParent(i)?i:getScrollParent(getParentNode(i))}function listScrollParents(i,o){var s;void 0===o&&(o=[]);var v=getScrollParent(i),_=v===(null==(s=i.ownerDocument)?void 0:s.body),$=getWindow(v),ae=_?[$].concat($.visualViewport||[],isScrollParent(v)?v:[]):v,pe=o.concat(ae);return _?pe:pe.concat(listScrollParents(getParentNode(ae)))}function isTableElement(i){return["table","td","th"].indexOf(getNodeName(i))>=0}function getTrueOffsetParent(i){return isHTMLElement(i)&&"fixed"!==getComputedStyle(i).position?i.offsetParent:null}function getContainingBlock(i){var o=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(i)&&"fixed"===getComputedStyle(i).position)return null;var s=getParentNode(i);for(isShadowRoot(s)&&(s=s.host);isHTMLElement(s)&&["html","body"].indexOf(getNodeName(s))<0;){var v=getComputedStyle(s);if("none"!==v.transform||"none"!==v.perspective||"paint"===v.contain||-1!==["transform","perspective"].indexOf(v.willChange)||o&&"filter"===v.willChange||o&&v.filter&&"none"!==v.filter)return s;s=s.parentNode}return null}function getOffsetParent(i){for(var o=getWindow(i),s=getTrueOffsetParent(i);s&&isTableElement(s)&&"static"===getComputedStyle(s).position;)s=getTrueOffsetParent(s);return s&&("html"===getNodeName(s)||"body"===getNodeName(s)&&"static"===getComputedStyle(s).position)?o:s||getContainingBlock(i)||o}var Mo="top",Qo="bottom",Vo="right",Uo="left",Wo="auto",$o=[Mo,Qo,Vo,Uo],qo="start",Zo="end",Xo="clippingParents",Yo="viewport",es="popper",ts="reference",ns=$o.reduce((function(i,o){return i.concat([o+"-"+qo,o+"-"+Zo])}),[]),as=[].concat($o,[Wo]).reduce((function(i,o){return i.concat([o,o+"-"+qo,o+"-"+Zo])}),[]),rs=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function order(i){var o=new Map,s=new Set,v=[];function sort(i){s.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(i){if(!s.has(i)){var v=o.get(i);v&&sort(v)}})),v.push(i)}return i.forEach((function(i){o.set(i.name,i)})),i.forEach((function(i){s.has(i.name)||sort(i)})),v}function orderModifiers(i){var o=order(i);return rs.reduce((function(i,s){return i.concat(o.filter((function(i){return i.phase===s})))}),[])}var os={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var i=arguments.length,o=new Array(i),s=0;s=0?"x":"y"}function computeOffsets(i){var o,s=i.reference,v=i.element,_=i.placement,$=_?getBasePlacement(_):null,ae=_?getVariation(_):null,pe=s.x+s.width/2-v.width/2,we=s.y+s.height/2-v.height/2;switch($){case Mo:o={x:pe,y:s.y-v.height};break;case Qo:o={x:pe,y:s.y+s.height};break;case Vo:o={x:s.x+s.width,y:we};break;case Uo:o={x:s.x-v.width,y:we};break;default:o={x:s.x,y:s.y}}var _e=$?getMainAxisFromPlacement($):null;if(null!=_e){var et="y"===_e?"height":"width";switch(ae){case qo:o[_e]=o[_e]-(s[et]/2-v[et]/2);break;case Zo:o[_e]=o[_e]+(s[et]/2-v[et]/2)}}return o}var ds={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(i,o){var s=i.x,v=i.y,_=o.devicePixelRatio||1;return{x:jo(s*_)/_||0,y:jo(v*_)/_||0}}function mapToStyles(i){var o,s=i.popper,v=i.popperRect,_=i.placement,$=i.variation,ae=i.offsets,pe=i.position,we=i.gpuAcceleration,_e=i.adaptive,et=i.roundOffsets,tt=i.isFixed,nt=ae.x,rt=void 0===nt?0:nt,it=ae.y,ot=void 0===it?0:it,st="function"==typeof et?et({x:rt,y:ot}):{x:rt,y:ot};rt=st.x,ot=st.y;var dt=ae.hasOwnProperty("x"),ut=ae.hasOwnProperty("y"),lt=Uo,ct=Mo,ht=window;if(_e){var pt=getOffsetParent(s),ft="clientHeight",gt="clientWidth";if(pt===getWindow(s)&&"static"!==getComputedStyle(pt=getDocumentElement(s)).position&&"absolute"===pe&&(ft="scrollHeight",gt="scrollWidth"),_===Mo||(_===Uo||_===Vo)&&$===Zo)ct=Qo,ot-=(tt&&pt===ht&&ht.visualViewport?ht.visualViewport.height:pt[ft])-v.height,ot*=we?1:-1;if(_===Uo||(_===Mo||_===Qo)&&$===Zo)lt=Vo,rt-=(tt&&pt===ht&&ht.visualViewport?ht.visualViewport.width:pt[gt])-v.width,rt*=we?1:-1}var mt,yt=Object.assign({position:pe},_e&&ds),vt=!0===et?roundOffsetsByDPR({x:rt,y:ot},getWindow(s)):{x:rt,y:ot};return rt=vt.x,ot=vt.y,we?Object.assign({},yt,((mt={})[ct]=ut?"0":"",mt[lt]=dt?"0":"",mt.transform=(ht.devicePixelRatio||1)<=1?"translate("+rt+"px, "+ot+"px)":"translate3d("+rt+"px, "+ot+"px, 0)",mt)):Object.assign({},yt,((o={})[ct]=ut?ot+"px":"",o[lt]=dt?rt+"px":"",o.transform="",o))}var us={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(i){var o=i.state;Object.keys(o.elements).forEach((function(i){var s=o.styles[i]||{},v=o.attributes[i]||{},_=o.elements[i];isHTMLElement(_)&&getNodeName(_)&&(Object.assign(_.style,s),Object.keys(v).forEach((function(i){var o=v[i];!1===o?_.removeAttribute(i):_.setAttribute(i,!0===o?"":o)})))}))},effect:function applyStyles_effect(i){var o=i.state,s={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,s.popper),o.styles=s,o.elements.arrow&&Object.assign(o.elements.arrow.style,s.arrow),function(){Object.keys(o.elements).forEach((function(i){var v=o.elements[i],_=o.attributes[i]||{},$=Object.keys(o.styles.hasOwnProperty(i)?o.styles[i]:s[i]).reduce((function(i,o){return i[o]="",i}),{});isHTMLElement(v)&&getNodeName(v)&&(Object.assign(v.style,$),Object.keys(_).forEach((function(i){v.removeAttribute(i)})))}))}},requires:["computeStyles"]};function distanceAndSkiddingToXY(i,o,s){var v=getBasePlacement(i),_=[Uo,Mo].indexOf(v)>=0?-1:1,$="function"==typeof s?s(Object.assign({},o,{placement:i})):s,ae=$[0],pe=$[1];return ae=ae||0,pe=(pe||0)*_,[Uo,Vo].indexOf(v)>=0?{x:pe,y:ae}:{x:ae,y:pe}}var ls={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(i){return i.replace(/left|right|bottom|top/g,(function(i){return ls[i]}))}var cs={start:"end",end:"start"};function getOppositeVariationPlacement(i){return i.replace(/start|end/g,(function(i){return cs[i]}))}function getViewportRect(i,o){var s=getWindow(i),v=getDocumentElement(i),_=s.visualViewport,$=v.clientWidth,ae=v.clientHeight,pe=0,we=0;if(_){$=_.width,ae=_.height;var _e=isLayoutViewport();(_e||!_e&&"fixed"===o)&&(pe=_.offsetLeft,we=_.offsetTop)}return{width:$,height:ae,x:pe+getWindowScrollBarX(i),y:we}}function getDocumentRect(i){var o,s=getDocumentElement(i),v=getWindowScroll(i),_=null==(o=i.ownerDocument)?void 0:o.body,$=No(s.scrollWidth,s.clientWidth,_?_.scrollWidth:0,_?_.clientWidth:0),ae=No(s.scrollHeight,s.clientHeight,_?_.scrollHeight:0,_?_.clientHeight:0),pe=-v.scrollLeft+getWindowScrollBarX(i),we=-v.scrollTop;return"rtl"===getComputedStyle(_||s).direction&&(pe+=No(s.clientWidth,_?_.clientWidth:0)-$),{width:$,height:ae,x:pe,y:we}}function contains(i,o){var s=o.getRootNode&&o.getRootNode();if(i.contains(o))return!0;if(s&&isShadowRoot(s)){var v=o;do{if(v&&i.isSameNode(v))return!0;v=v.parentNode||v.host}while(v)}return!1}function rectToClientRect(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function getInnerBoundingClientRect(i,o){var s=getBoundingClientRect(i,!1,"fixed"===o);return s.top=s.top+i.clientTop,s.left=s.left+i.clientLeft,s.bottom=s.top+i.clientHeight,s.right=s.left+i.clientWidth,s.width=i.clientWidth,s.height=i.clientHeight,s.x=s.left,s.y=s.top,s}function getClientRectFromMixedType(i,o,s){return o===Yo?rectToClientRect(getViewportRect(i,s)):isElement(o)?getInnerBoundingClientRect(o,s):rectToClientRect(getDocumentRect(getDocumentElement(i)))}function getClippingParents(i){var o=listScrollParents(getParentNode(i)),s=["absolute","fixed"].indexOf(getComputedStyle(i).position)>=0&&isHTMLElement(i)?getOffsetParent(i):i;return isElement(s)?o.filter((function(i){return isElement(i)&&contains(i,s)&&"body"!==getNodeName(i)})):[]}function getClippingRect(i,o,s,v){var _="clippingParents"===o?getClippingParents(i):[].concat(o),$=[].concat(_,[s]),ae=$[0],pe=$.reduce((function(o,s){var _=getClientRectFromMixedType(i,s,v);return o.top=No(_.top,o.top),o.right=Bo(_.right,o.right),o.bottom=Bo(_.bottom,o.bottom),o.left=No(_.left,o.left),o}),getClientRectFromMixedType(i,ae,v));return pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top,pe.x=pe.left,pe.y=pe.top,pe}function mergePaddingObject(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function expandToHashMap(i,o){return o.reduce((function(o,s){return o[s]=i,o}),{})}function detectOverflow(i,o){void 0===o&&(o={});var s=o,v=s.placement,_=void 0===v?i.placement:v,$=s.strategy,ae=void 0===$?i.strategy:$,pe=s.boundary,we=void 0===pe?Xo:pe,_e=s.rootBoundary,et=void 0===_e?Yo:_e,tt=s.elementContext,nt=void 0===tt?es:tt,rt=s.altBoundary,it=void 0!==rt&&rt,ot=s.padding,st=void 0===ot?0:ot,dt=mergePaddingObject("number"!=typeof st?st:expandToHashMap(st,$o)),ut=nt===es?ts:es,lt=i.rects.popper,ct=i.elements[it?ut:nt],ht=getClippingRect(isElement(ct)?ct:ct.contextElement||getDocumentElement(i.elements.popper),we,et,ae),pt=getBoundingClientRect(i.elements.reference),ft=computeOffsets({reference:pt,element:lt,strategy:"absolute",placement:_}),gt=rectToClientRect(Object.assign({},lt,ft)),mt=nt===es?gt:pt,yt={top:ht.top-mt.top+dt.top,bottom:mt.bottom-ht.bottom+dt.bottom,left:ht.left-mt.left+dt.left,right:mt.right-ht.right+dt.right},vt=i.modifiersData.offset;if(nt===es&&vt){var Rt=vt[_];Object.keys(yt).forEach((function(i){var o=[Vo,Qo].indexOf(i)>=0?1:-1,s=[Mo,Qo].indexOf(i)>=0?"y":"x";yt[i]+=Rt[s]*o}))}return yt}function computeAutoPlacement(i,o){void 0===o&&(o={});var s=o,v=s.placement,_=s.boundary,$=s.rootBoundary,ae=s.padding,pe=s.flipVariations,we=s.allowedAutoPlacements,_e=void 0===we?as:we,et=getVariation(v),tt=et?pe?ns:ns.filter((function(i){return getVariation(i)===et})):$o,nt=tt.filter((function(i){return _e.indexOf(i)>=0}));0===nt.length&&(nt=tt);var rt=nt.reduce((function(o,s){return o[s]=detectOverflow(i,{placement:s,boundary:_,rootBoundary:$,padding:ae})[getBasePlacement(s)],o}),{});return Object.keys(rt).sort((function(i,o){return rt[i]-rt[o]}))}function getExpandedFallbackPlacements(i){if(getBasePlacement(i)===Wo)return[];var o=getOppositePlacement(i);return[getOppositeVariationPlacement(i),o,getOppositeVariationPlacement(o)]}function within(i,o,s){return No(i,Bo(o,s))}function withinMaxClamp(i,o,s){var v=within(i,o,s);return v>s?s:v}var hs=function toPaddingObject(i,o){return mergePaddingObject("number"!=typeof(i="function"==typeof i?i(Object.assign({},o.rects,{placement:o.placement})):i)?i:expandToHashMap(i,$o))};function getSideOffsets(i,o,s){return void 0===s&&(s={x:0,y:0}),{top:i.top-o.height-s.y,right:i.right-o.width+s.x,bottom:i.bottom-o.height+s.y,left:i.left-o.width-s.x}}function isAnySideFullyClipped(i){return[Mo,Vo,Qo,Uo].some((function(o){return i[o]>=0}))}var ps=popperGenerator({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function effect(i){var o=i.state,s=i.instance,v=i.options,_=v.scroll,$=void 0===_||_,ae=v.resize,pe=void 0===ae||ae,we=getWindow(o.elements.popper),_e=[].concat(o.scrollParents.reference,o.scrollParents.popper);return $&&_e.forEach((function(i){i.addEventListener("scroll",s.update,ss)})),pe&&we.addEventListener("resize",s.update,ss),function(){$&&_e.forEach((function(i){i.removeEventListener("scroll",s.update,ss)})),pe&&we.removeEventListener("resize",s.update,ss)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets_popperOffsets(i){var o=i.state,s=i.name;o.modifiersData[s]=computeOffsets({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(i){var o=i.state,s=i.options,v=s.gpuAcceleration,_=void 0===v||v,$=s.adaptive,ae=void 0===$||$,pe=s.roundOffsets,we=void 0===pe||pe,_e={placement:getBasePlacement(o.placement),variation:getVariation(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:_,isFixed:"fixed"===o.options.strategy};null!=o.modifiersData.popperOffsets&&(o.styles.popper=Object.assign({},o.styles.popper,mapToStyles(Object.assign({},_e,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:ae,roundOffsets:we})))),null!=o.modifiersData.arrow&&(o.styles.arrow=Object.assign({},o.styles.arrow,mapToStyles(Object.assign({},_e,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:we})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})},data:{}},us,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset_offset(i){var o=i.state,s=i.options,v=i.name,_=s.offset,$=void 0===_?[0,0]:_,ae=as.reduce((function(i,s){return i[s]=distanceAndSkiddingToXY(s,o.rects,$),i}),{}),pe=ae[o.placement],we=pe.x,_e=pe.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=we,o.modifiersData.popperOffsets.y+=_e),o.modifiersData[v]=ae}},{name:"flip",enabled:!0,phase:"main",fn:function flip(i){var o=i.state,s=i.options,v=i.name;if(!o.modifiersData[v]._skip){for(var _=s.mainAxis,$=void 0===_||_,ae=s.altAxis,pe=void 0===ae||ae,we=s.fallbackPlacements,_e=s.padding,et=s.boundary,tt=s.rootBoundary,nt=s.altBoundary,rt=s.flipVariations,it=void 0===rt||rt,ot=s.allowedAutoPlacements,st=o.options.placement,dt=getBasePlacement(st),ut=we||(dt===st||!it?[getOppositePlacement(st)]:getExpandedFallbackPlacements(st)),lt=[st].concat(ut).reduce((function(i,s){return i.concat(getBasePlacement(s)===Wo?computeAutoPlacement(o,{placement:s,boundary:et,rootBoundary:tt,padding:_e,flipVariations:it,allowedAutoPlacements:ot}):s)}),[]),ct=o.rects.reference,ht=o.rects.popper,pt=new Map,ft=!0,gt=lt[0],mt=0;mt=0,Ot=bt?"width":"height",xt=detectOverflow(o,{placement:yt,boundary:et,rootBoundary:tt,altBoundary:nt,padding:_e}),wt=bt?Rt?Vo:Uo:Rt?Qo:Mo;ct[Ot]>ht[Ot]&&(wt=getOppositePlacement(wt));var Ct=getOppositePlacement(wt),St=[];if($&&St.push(xt[vt]<=0),pe&&St.push(xt[wt]<=0,xt[Ct]<=0),St.every((function(i){return i}))){gt=yt,ft=!1;break}pt.set(yt,St)}if(ft)for(var _t=function _loop(i){var o=lt.find((function(o){var s=pt.get(o);if(s)return s.slice(0,i).every((function(i){return i}))}));if(o)return gt=o,"break"},Et=it?3:1;Et>0;Et--){if("break"===_t(Et))break}o.placement!==gt&&(o.modifiersData[v]._skip=!0,o.placement=gt,o.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(i){var o=i.state,s=i.options,v=i.name,_=s.mainAxis,$=void 0===_||_,ae=s.altAxis,pe=void 0!==ae&&ae,we=s.boundary,_e=s.rootBoundary,et=s.altBoundary,tt=s.padding,nt=s.tether,rt=void 0===nt||nt,it=s.tetherOffset,ot=void 0===it?0:it,st=detectOverflow(o,{boundary:we,rootBoundary:_e,padding:tt,altBoundary:et}),dt=getBasePlacement(o.placement),ut=getVariation(o.placement),lt=!ut,ct=getMainAxisFromPlacement(dt),ht="x"===ct?"y":"x",pt=o.modifiersData.popperOffsets,ft=o.rects.reference,gt=o.rects.popper,mt="function"==typeof ot?ot(Object.assign({},o.rects,{placement:o.placement})):ot,yt="number"==typeof mt?{mainAxis:mt,altAxis:mt}:Object.assign({mainAxis:0,altAxis:0},mt),vt=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,Rt={x:0,y:0};if(pt){if($){var bt,Ot="y"===ct?Mo:Uo,xt="y"===ct?Qo:Vo,wt="y"===ct?"height":"width",Ct=pt[ct],St=Ct+st[Ot],_t=Ct-st[xt],Et=rt?-gt[wt]/2:0,kt=ut===qo?ft[wt]:gt[wt],At=ut===qo?-gt[wt]:-ft[wt],Dt=o.elements.arrow,Pt=rt&&Dt?getLayoutRect(Dt):{width:0,height:0},Tt=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},It=Tt[Ot],Ft=Tt[xt],Nt=within(0,ft[wt],Pt[wt]),Bt=lt?ft[wt]/2-Et-Nt-It-yt.mainAxis:kt-Nt-It-yt.mainAxis,Lt=lt?-ft[wt]/2+Et+Nt+Ft+yt.mainAxis:At+Nt+Ft+yt.mainAxis,jt=o.elements.arrow&&getOffsetParent(o.elements.arrow),Mt=jt?"y"===ct?jt.clientTop||0:jt.clientLeft||0:0,Qt=null!=(bt=null==vt?void 0:vt[ct])?bt:0,Vt=Ct+Lt-Qt,Ut=within(rt?Bo(St,Ct+Bt-Qt-Mt):St,Ct,rt?No(_t,Vt):_t);pt[ct]=Ut,Rt[ct]=Ut-Ct}if(pe){var Wt,$t="x"===ct?Mo:Uo,qt="x"===ct?Qo:Vo,zt=pt[ht],Zt="y"===ht?"height":"width",Ht=zt+st[$t],Gt=zt-st[qt],Xt=-1!==[Mo,Uo].indexOf(dt),Yt=null!=(Wt=null==vt?void 0:vt[ht])?Wt:0,Kt=Xt?Ht:zt-ft[Zt]-gt[Zt]-Yt+yt.altAxis,Jt=Xt?zt+ft[Zt]+gt[Zt]-Yt-yt.altAxis:Gt,nn=rt&&Xt?withinMaxClamp(Kt,zt,Jt):within(rt?Kt:Ht,zt,rt?Jt:Gt);pt[ht]=nn,Rt[ht]=nn-zt}o.modifiersData[v]=Rt}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function arrow_arrow(i){var o,s=i.state,v=i.name,_=i.options,$=s.elements.arrow,ae=s.modifiersData.popperOffsets,pe=getBasePlacement(s.placement),we=getMainAxisFromPlacement(pe),_e=[Uo,Vo].indexOf(pe)>=0?"height":"width";if($&&ae){var et=hs(_.padding,s),tt=getLayoutRect($),nt="y"===we?Mo:Uo,rt="y"===we?Qo:Vo,it=s.rects.reference[_e]+s.rects.reference[we]-ae[we]-s.rects.popper[_e],ot=ae[we]-s.rects.reference[we],st=getOffsetParent($),dt=st?"y"===we?st.clientHeight||0:st.clientWidth||0:0,ut=it/2-ot/2,lt=et[nt],ct=dt-tt[_e]-et[rt],ht=dt/2-tt[_e]/2+ut,pt=within(lt,ht,ct),ft=we;s.modifiersData[v]=((o={})[ft]=pt,o.centerOffset=pt-ht,o)}},effect:function arrow_effect(i){var o=i.state,s=i.options.element,v=void 0===s?"[data-popper-arrow]":s;null!=v&&("string"!=typeof v||(v=o.elements.popper.querySelector(v)))&&contains(o.elements.popper,v)&&(o.elements.arrow=v)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide_hide(i){var o=i.state,s=i.name,v=o.rects.reference,_=o.rects.popper,$=o.modifiersData.preventOverflow,ae=detectOverflow(o,{elementContext:"reference"}),pe=detectOverflow(o,{altBoundary:!0}),we=getSideOffsets(ae,v),_e=getSideOffsets(pe,_,$),et=isAnySideFullyClipped(we),tt=isAnySideFullyClipped(_e);o.modifiersData[s]={referenceClippingOffsets:we,popperEscapeOffsets:_e,isReferenceHidden:et,hasPopperEscaped:tt},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":et,"data-popper-escaped":tt})}}]}),fs="tippy-content",gs="tippy-backdrop",ms="tippy-arrow",ys="tippy-svg-arrow",vs={passive:!0,capture:!0},Rs=function TIPPY_DEFAULT_APPEND_TO(){return document.body};function getValueAtIndexOrReturn(i,o,s){if(Array.isArray(i)){var v=i[o];return null==v?Array.isArray(s)?s[o]:s:v}return i}function isType(i,o){var s={}.toString.call(i);return 0===s.indexOf("[object")&&s.indexOf(o+"]")>-1}function invokeWithArgsOrReturn(i,o){return"function"==typeof i?i.apply(void 0,o):i}function tippy_esm_debounce(i,o){return 0===o?i:function(v){clearTimeout(s),s=setTimeout((function(){i(v)}),o)};var s}function normalizeToArray(i){return[].concat(i)}function pushIfUnique(i,o){-1===i.indexOf(o)&&i.push(o)}function tippy_esm_getBasePlacement(i){return i.split("-")[0]}function arrayFrom(i){return[].slice.call(i)}function removeUndefinedProps(i){return Object.keys(i).reduce((function(o,s){return void 0!==i[s]&&(o[s]=i[s]),o}),{})}function div(){return document.createElement("div")}function tippy_esm_isElement(i){return["Element","Fragment"].some((function(o){return isType(i,o)}))}function isNodeList(i){return isType(i,"NodeList")}function isMouseEvent(i){return isType(i,"MouseEvent")}function isReferenceElement(i){return!(!i||!i._tippy||i._tippy.reference!==i)}function setTransitionDuration(i,o){i.forEach((function(i){i&&(i.style.transitionDuration=o+"ms")}))}function setVisibilityState(i,o){i.forEach((function(i){i&&i.setAttribute("data-state",o)}))}function getOwnerDocument(i){var o,s=normalizeToArray(i)[0];return null!=s&&null!=(o=s.ownerDocument)&&o.body?s.ownerDocument:document}function isCursorOutsideInteractiveBorder(i,o){var s=o.clientX,v=o.clientY;return i.every((function(i){var o=i.popperRect,_=i.popperState,$=i.props.interactiveBorder,ae=tippy_esm_getBasePlacement(_.placement),pe=_.modifiersData.offset;if(!pe)return!0;var we="bottom"===ae?pe.top.y:0,_e="top"===ae?pe.bottom.y:0,et="right"===ae?pe.left.x:0,tt="left"===ae?pe.right.x:0,nt=o.top-v+we>$,rt=v-o.bottom-_e>$,it=o.left-s+et>$,ot=s-o.right-tt>$;return nt||rt||it||ot}))}function updateTransitionEndListener(i,o,s){var v=o+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(o){i[v](o,s)}))}function actualContains(i,o){for(var s=o;s;){var v;if(i.contains(s))return!0;s=null==s.getRootNode||null==(v=s.getRootNode())?void 0:v.host}return!1}var bs={isTouch:!1},Os=0;function onDocumentTouchStart(){bs.isTouch||(bs.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var i=performance.now();i-Os<20&&(bs.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),Os=i}function onWindowBlur(){var i=document.activeElement;if(isReferenceElement(i)){var o=i._tippy;i.blur&&!o.state.isVisible&&i.blur()}}var xs=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ws={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Cs=Object.assign({appendTo:Rs,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function onAfterUpdate(){},onBeforeUpdate:function onBeforeUpdate(){},onCreate:function onCreate(){},onDestroy:function onDestroy(){},onHidden:function onHidden(){},onHide:function onHide(){},onMount:function onMount(){},onShow:function onShow(){},onShown:function onShown(){},onTrigger:function onTrigger(){},onUntrigger:function onUntrigger(){},onClickOutside:function onClickOutside(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ws,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ss=Object.keys(Cs);function getExtendedPassedProps(i){var o=(i.plugins||[]).reduce((function(o,s){var v,_=s.name,$=s.defaultValue;_&&(o[_]=void 0!==i[_]?i[_]:null!=(v=Cs[_])?v:$);return o}),{});return Object.assign({},i,o)}function getDataAttributeProps(i,o){return(o?Object.keys(getExtendedPassedProps(Object.assign({},Cs,{plugins:o}))):Ss).reduce((function(o,s){var v=(i.getAttribute("data-tippy-"+s)||"").trim();if(!v)return o;if("content"===s)o[s]=v;else try{o[s]=JSON.parse(v)}catch(i){o[s]=v}return o}),{})}function evaluateProps(i,o){var s=Object.assign({},o,{content:invokeWithArgsOrReturn(o.content,[i])},o.ignoreAttributes?{}:getDataAttributeProps(i,o.plugins));return s.aria=Object.assign({},Cs.aria,s.aria),s.aria={expanded:"auto"===s.aria.expanded?o.interactive:s.aria.expanded,content:"auto"===s.aria.content?o.interactive?null:"describedby":s.aria.content},s}var _s=function innerHTML(){return"innerHTML"};function dangerouslySetInnerHTML(i,o){i[_s()]=o}function createArrowElement(i){var o=div();return!0===i?o.className=ms:(o.className=ys,tippy_esm_isElement(i)?o.appendChild(i):dangerouslySetInnerHTML(o,i)),o}function tippy_esm_setContent(i,o){tippy_esm_isElement(o.content)?(dangerouslySetInnerHTML(i,""),i.appendChild(o.content)):"function"!=typeof o.content&&(o.allowHTML?dangerouslySetInnerHTML(i,o.content):i.textContent=o.content)}function getChildren(i){var o=i.firstElementChild,s=arrayFrom(o.children);return{box:o,content:s.find((function(i){return i.classList.contains(fs)})),arrow:s.find((function(i){return i.classList.contains(ms)||i.classList.contains(ys)})),backdrop:s.find((function(i){return i.classList.contains(gs)}))}}function tippy_esm_render(i){var o=div(),s=div();s.className="tippy-box",s.setAttribute("data-state","hidden"),s.setAttribute("tabindex","-1");var v=div();function onUpdate(s,v){var _=getChildren(o),$=_.box,ae=_.content,pe=_.arrow;v.theme?$.setAttribute("data-theme",v.theme):$.removeAttribute("data-theme"),"string"==typeof v.animation?$.setAttribute("data-animation",v.animation):$.removeAttribute("data-animation"),v.inertia?$.setAttribute("data-inertia",""):$.removeAttribute("data-inertia"),$.style.maxWidth="number"==typeof v.maxWidth?v.maxWidth+"px":v.maxWidth,v.role?$.setAttribute("role",v.role):$.removeAttribute("role"),s.content===v.content&&s.allowHTML===v.allowHTML||tippy_esm_setContent(ae,i.props),v.arrow?pe?s.arrow!==v.arrow&&($.removeChild(pe),$.appendChild(createArrowElement(v.arrow))):$.appendChild(createArrowElement(v.arrow)):pe&&$.removeChild(pe)}return v.className=fs,v.setAttribute("data-state","hidden"),tippy_esm_setContent(v,i.props),o.appendChild(s),s.appendChild(v),onUpdate(i.props,i.props),{popper:o,onUpdate:onUpdate}}tippy_esm_render.$$tippy=!0;var Es=1,ks=[],As=[];function createTippy(i,o){var s,v,_,$,ae,pe,we,_e,et=evaluateProps(i,Object.assign({},Cs,getExtendedPassedProps(removeUndefinedProps(o)))),tt=!1,nt=!1,rt=!1,it=!1,ot=[],st=tippy_esm_debounce(onMouseMove,et.interactiveDebounce),dt=Es++,ut=(_e=et.plugins).filter((function(i,o){return _e.indexOf(i)===o})),lt={id:dt,reference:i,popper:div(),popperInstance:null,props:et,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:ut,clearDelayTimeouts:function clearDelayTimeouts(){clearTimeout(s),clearTimeout(v),cancelAnimationFrame(_)},setProps:function setProps(o){0;if(lt.state.isDestroyed)return;invokeHook("onBeforeUpdate",[lt,o]),removeListeners();var s=lt.props,v=evaluateProps(i,Object.assign({},s,removeUndefinedProps(o),{ignoreAttributes:!0}));lt.props=v,addListeners(),s.interactiveDebounce!==v.interactiveDebounce&&(cleanupInteractiveMouseListeners(),st=tippy_esm_debounce(onMouseMove,v.interactiveDebounce));s.triggerTarget&&!v.triggerTarget?normalizeToArray(s.triggerTarget).forEach((function(i){i.removeAttribute("aria-expanded")})):v.triggerTarget&&i.removeAttribute("aria-expanded");handleAriaExpandedAttribute(),handleStyles(),pt&&pt(s,v);lt.popperInstance&&(createPopperInstance(),getNestedPopperTree().forEach((function(i){requestAnimationFrame(i._tippy.popperInstance.forceUpdate)})));invokeHook("onAfterUpdate",[lt,o])},setContent:function setContent(i){lt.setProps({content:i})},show:function show(){0;var i=lt.state.isVisible,o=lt.state.isDestroyed,s=!lt.state.isEnabled,v=bs.isTouch&&!lt.props.touch,_=getValueAtIndexOrReturn(lt.props.duration,0,Cs.duration);if(i||o||s||v)return;if(getCurrentTarget().hasAttribute("disabled"))return;if(invokeHook("onShow",[lt],!1),!1===lt.props.onShow(lt))return;lt.state.isVisible=!0,getIsDefaultRenderFn()&&(ht.style.visibility="visible");handleStyles(),addDocumentPress(),lt.state.isMounted||(ht.style.transition="none");if(getIsDefaultRenderFn()){var $=getDefaultTemplateChildren();setTransitionDuration([$.box,$.content],0)}pe=function onFirstUpdate(){var i;if(lt.state.isVisible&&!it){if(it=!0,ht.offsetHeight,ht.style.transition=lt.props.moveTransition,getIsDefaultRenderFn()&<.props.animation){var o=getDefaultTemplateChildren(),s=o.box,v=o.content;setTransitionDuration([s,v],_),setVisibilityState([s,v],"visible")}handleAriaContentAttribute(),handleAriaExpandedAttribute(),pushIfUnique(As,lt),null==(i=lt.popperInstance)||i.forceUpdate(),invokeHook("onMount",[lt]),lt.props.animation&&getIsDefaultRenderFn()&&onTransitionedIn(_,(function(){lt.state.isShown=!0,invokeHook("onShown",[lt])}))}},mount()},hide:function hide(){0;var i=!lt.state.isVisible,o=lt.state.isDestroyed,s=!lt.state.isEnabled,v=getValueAtIndexOrReturn(lt.props.duration,1,Cs.duration);if(i||o||s)return;if(invokeHook("onHide",[lt],!1),!1===lt.props.onHide(lt))return;lt.state.isVisible=!1,lt.state.isShown=!1,it=!1,tt=!1,getIsDefaultRenderFn()&&(ht.style.visibility="hidden");if(cleanupInteractiveMouseListeners(),removeDocumentPress(),handleStyles(!0),getIsDefaultRenderFn()){var _=getDefaultTemplateChildren(),$=_.box,ae=_.content;lt.props.animation&&(setTransitionDuration([$,ae],v),setVisibilityState([$,ae],"hidden"))}handleAriaContentAttribute(),handleAriaExpandedAttribute(),lt.props.animation?getIsDefaultRenderFn()&&onTransitionedOut(v,lt.unmount):lt.unmount()},hideWithInteractivity:function hideWithInteractivity(i){0;getDocument().addEventListener("mousemove",st),pushIfUnique(ks,st),st(i)},enable:function enable(){lt.state.isEnabled=!0},disable:function disable(){lt.hide(),lt.state.isEnabled=!1},unmount:function unmount(){0;lt.state.isVisible&<.hide();if(!lt.state.isMounted)return;destroyPopperInstance(),getNestedPopperTree().forEach((function(i){i._tippy.unmount()})),ht.parentNode&&ht.parentNode.removeChild(ht);As=As.filter((function(i){return i!==lt})),lt.state.isMounted=!1,invokeHook("onHidden",[lt])},destroy:function destroy(){0;if(lt.state.isDestroyed)return;lt.clearDelayTimeouts(),lt.unmount(),removeListeners(),delete i._tippy,lt.state.isDestroyed=!0,invokeHook("onDestroy",[lt])}};if(!et.render)return lt;var ct=et.render(lt),ht=ct.popper,pt=ct.onUpdate;ht.setAttribute("data-tippy-root",""),ht.id="tippy-"+lt.id,lt.popper=ht,i._tippy=lt,ht._tippy=lt;var ft=ut.map((function(i){return i.fn(lt)})),gt=i.hasAttribute("aria-expanded");return addListeners(),handleAriaExpandedAttribute(),handleStyles(),invokeHook("onCreate",[lt]),et.showOnCreate&&scheduleShow(),ht.addEventListener("mouseenter",(function(){lt.props.interactive&<.state.isVisible&<.clearDelayTimeouts()})),ht.addEventListener("mouseleave",(function(){lt.props.interactive&<.props.trigger.indexOf("mouseenter")>=0&&getDocument().addEventListener("mousemove",st)})),lt;function getNormalizedTouchSettings(){var i=lt.props.touch;return Array.isArray(i)?i:[i,0]}function getIsCustomTouchBehavior(){return"hold"===getNormalizedTouchSettings()[0]}function getIsDefaultRenderFn(){var i;return!(null==(i=lt.props.render)||!i.$$tippy)}function getCurrentTarget(){return we||i}function getDocument(){var i=getCurrentTarget().parentNode;return i?getOwnerDocument(i):document}function getDefaultTemplateChildren(){return getChildren(ht)}function getDelay(i){return lt.state.isMounted&&!lt.state.isVisible||bs.isTouch||$&&"focus"===$.type?0:getValueAtIndexOrReturn(lt.props.delay,i?0:1,Cs.delay)}function handleStyles(i){void 0===i&&(i=!1),ht.style.pointerEvents=lt.props.interactive&&!i?"":"none",ht.style.zIndex=""+lt.props.zIndex}function invokeHook(i,o,s){var v;(void 0===s&&(s=!0),ft.forEach((function(s){s[i]&&s[i].apply(s,o)})),s)&&(v=lt.props)[i].apply(v,o)}function handleAriaContentAttribute(){var o=lt.props.aria;if(o.content){var s="aria-"+o.content,v=ht.id;normalizeToArray(lt.props.triggerTarget||i).forEach((function(i){var o=i.getAttribute(s);if(lt.state.isVisible)i.setAttribute(s,o?o+" "+v:v);else{var _=o&&o.replace(v,"").trim();_?i.setAttribute(s,_):i.removeAttribute(s)}}))}}function handleAriaExpandedAttribute(){!gt&<.props.aria.expanded&&normalizeToArray(lt.props.triggerTarget||i).forEach((function(i){lt.props.interactive?i.setAttribute("aria-expanded",lt.state.isVisible&&i===getCurrentTarget()?"true":"false"):i.removeAttribute("aria-expanded")}))}function cleanupInteractiveMouseListeners(){getDocument().removeEventListener("mousemove",st),ks=ks.filter((function(i){return i!==st}))}function onDocumentPress(o){if(!bs.isTouch||!rt&&"mousedown"!==o.type){var s=o.composedPath&&o.composedPath()[0]||o.target;if(!lt.props.interactive||!actualContains(ht,s)){if(normalizeToArray(lt.props.triggerTarget||i).some((function(i){return actualContains(i,s)}))){if(bs.isTouch)return;if(lt.state.isVisible&<.props.trigger.indexOf("click")>=0)return}else invokeHook("onClickOutside",[lt,o]);!0===lt.props.hideOnClick&&(lt.clearDelayTimeouts(),lt.hide(),nt=!0,setTimeout((function(){nt=!1})),lt.state.isMounted||removeDocumentPress())}}}function onTouchMove(){rt=!0}function onTouchStart(){rt=!1}function addDocumentPress(){var i=getDocument();i.addEventListener("mousedown",onDocumentPress,!0),i.addEventListener("touchend",onDocumentPress,vs),i.addEventListener("touchstart",onTouchStart,vs),i.addEventListener("touchmove",onTouchMove,vs)}function removeDocumentPress(){var i=getDocument();i.removeEventListener("mousedown",onDocumentPress,!0),i.removeEventListener("touchend",onDocumentPress,vs),i.removeEventListener("touchstart",onTouchStart,vs),i.removeEventListener("touchmove",onTouchMove,vs)}function onTransitionedOut(i,o){onTransitionEnd(i,(function(){!lt.state.isVisible&&ht.parentNode&&ht.parentNode.contains(ht)&&o()}))}function onTransitionedIn(i,o){onTransitionEnd(i,o)}function onTransitionEnd(i,o){var s=getDefaultTemplateChildren().box;function listener(i){i.target===s&&(updateTransitionEndListener(s,"remove",listener),o())}if(0===i)return o();updateTransitionEndListener(s,"remove",ae),updateTransitionEndListener(s,"add",listener),ae=listener}function on(o,s,v){void 0===v&&(v=!1),normalizeToArray(lt.props.triggerTarget||i).forEach((function(i){i.addEventListener(o,s,v),ot.push({node:i,eventType:o,handler:s,options:v})}))}function addListeners(){var i;getIsCustomTouchBehavior()&&(on("touchstart",onTrigger,{passive:!0}),on("touchend",onMouseLeave,{passive:!0})),(i=lt.props.trigger,i.split(/\s+/).filter(Boolean)).forEach((function(i){if("manual"!==i)switch(on(i,onTrigger),i){case"mouseenter":on("mouseleave",onMouseLeave);break;case"focus":on(xs?"focusout":"blur",onBlurOrFocusOut);break;case"focusin":on("focusout",onBlurOrFocusOut)}}))}function removeListeners(){ot.forEach((function(i){var o=i.node,s=i.eventType,v=i.handler,_=i.options;o.removeEventListener(s,v,_)})),ot=[]}function onTrigger(i){var o,s=!1;if(lt.state.isEnabled&&!isEventListenerStopped(i)&&!nt){var v="focus"===(null==(o=$)?void 0:o.type);$=i,we=i.currentTarget,handleAriaExpandedAttribute(),!lt.state.isVisible&&isMouseEvent(i)&&ks.forEach((function(o){return o(i)})),"click"===i.type&&(lt.props.trigger.indexOf("mouseenter")<0||tt)&&!1!==lt.props.hideOnClick&<.state.isVisible?s=!0:scheduleShow(i),"click"===i.type&&(tt=!s),s&&!v&&scheduleHide(i)}}function onMouseMove(i){var o=i.target,s=getCurrentTarget().contains(o)||ht.contains(o);if("mousemove"!==i.type||!s){var v=getNestedPopperTree().concat(ht).map((function(i){var o,s=null==(o=i._tippy.popperInstance)?void 0:o.state;return s?{popperRect:i.getBoundingClientRect(),popperState:s,props:et}:null})).filter(Boolean);isCursorOutsideInteractiveBorder(v,i)&&(cleanupInteractiveMouseListeners(),scheduleHide(i))}}function onMouseLeave(i){isEventListenerStopped(i)||lt.props.trigger.indexOf("click")>=0&&tt||(lt.props.interactive?lt.hideWithInteractivity(i):scheduleHide(i))}function onBlurOrFocusOut(i){lt.props.trigger.indexOf("focusin")<0&&i.target!==getCurrentTarget()||lt.props.interactive&&i.relatedTarget&&ht.contains(i.relatedTarget)||scheduleHide(i)}function isEventListenerStopped(i){return!!bs.isTouch&&getIsCustomTouchBehavior()!==i.type.indexOf("touch")>=0}function createPopperInstance(){destroyPopperInstance();var o=lt.props,s=o.popperOptions,v=o.placement,_=o.offset,$=o.getReferenceClientRect,ae=o.moveTransition,we=getIsDefaultRenderFn()?getChildren(ht).arrow:null,_e=$?{getBoundingClientRect:$,contextElement:$.contextElement||getCurrentTarget()}:i,et={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function fn(i){var o=i.state;if(getIsDefaultRenderFn()){var s=getDefaultTemplateChildren().box;["placement","reference-hidden","escaped"].forEach((function(i){"placement"===i?s.setAttribute("data-placement",o.placement):o.attributes.popper["data-popper-"+i]?s.setAttribute("data-"+i,""):s.removeAttribute("data-"+i)})),o.attributes.popper={}}}},tt=[{name:"offset",options:{offset:_}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ae}},et];getIsDefaultRenderFn()&&we&&tt.push({name:"arrow",options:{element:we,padding:3}}),tt.push.apply(tt,(null==s?void 0:s.modifiers)||[]),lt.popperInstance=ps(_e,ht,Object.assign({},s,{placement:v,onFirstUpdate:pe,modifiers:tt}))}function destroyPopperInstance(){lt.popperInstance&&(lt.popperInstance.destroy(),lt.popperInstance=null)}function mount(){var i,o=lt.props.appendTo,s=getCurrentTarget();(i=lt.props.interactive&&o===Rs||"parent"===o?s.parentNode:invokeWithArgsOrReturn(o,[s])).contains(ht)||i.appendChild(ht),lt.state.isMounted=!0,createPopperInstance()}function getNestedPopperTree(){return arrayFrom(ht.querySelectorAll("[data-tippy-root]"))}function scheduleShow(i){lt.clearDelayTimeouts(),i&&invokeHook("onTrigger",[lt,i]),addDocumentPress();var o=getDelay(!0),v=getNormalizedTouchSettings(),_=v[0],$=v[1];bs.isTouch&&"hold"===_&&$&&(o=$),o?s=setTimeout((function(){lt.show()}),o):lt.show()}function scheduleHide(i){if(lt.clearDelayTimeouts(),invokeHook("onUntrigger",[lt,i]),lt.state.isVisible){if(!(lt.props.trigger.indexOf("mouseenter")>=0&<.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(i.type)>=0&&tt)){var o=getDelay(!1);o?v=setTimeout((function(){lt.state.isVisible&<.hide()}),o):_=requestAnimationFrame((function(){lt.hide()}))}}else removeDocumentPress()}}function tippy_esm_tippy(i,o){void 0===o&&(o={});var s=Cs.plugins.concat(o.plugins||[]);document.addEventListener("touchstart",onDocumentTouchStart,vs),window.addEventListener("blur",onWindowBlur);var v,_=Object.assign({},o,{plugins:s}),$=(tippy_esm_isElement(v=i)?[v]:isNodeList(v)?arrayFrom(v):Array.isArray(v)?v:arrayFrom(document.querySelectorAll(v))).reduce((function(i,o){var s=o&&createTippy(o,_);return s&&i.push(s),i}),[]);return tippy_esm_isElement(i)?$[0]:$}tippy_esm_tippy.defaultProps=Cs,tippy_esm_tippy.setDefaultProps=function setDefaultProps(i){Object.keys(i).forEach((function(o){Cs[o]=i[o]}))},tippy_esm_tippy.currentInput=bs;Object.assign({},us,{effect:function effect(i){var o=i.state,s={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(o.elements.popper.style,s.popper),o.styles=s,o.elements.arrow&&Object.assign(o.elements.arrow.style,s.arrow)}});tippy_esm_tippy.setDefaultProps({render:tippy_esm_render});var Ds=tippy_esm_tippy;function tippy_react_esm_objectWithoutPropertiesLoose(i,o){if(null==i)return{};var s,v,_={},$=Object.keys(i);for(v=0;v<$.length;v++)s=$[v],o.indexOf(s)>=0||(_[s]=i[s]);return _}var Ps="undefined"!=typeof window&&"undefined"!=typeof document;function preserveRef(i,o){i&&("function"==typeof i&&i(o),{}.hasOwnProperty.call(i,"current")&&(i.current=o))}function ssrSafeCreateDiv(){return Ps&&document.createElement("div")}function toDataAttributes(i){var o={"data-placement":i.placement};return i.referenceHidden&&(o["data-reference-hidden"]=""),i.escaped&&(o["data-escaped"]=""),o}function deepPreserveProps(i,o){var s,v;return Object.assign({},o,{popperOptions:Object.assign({},i.popperOptions,o.popperOptions,{modifiers:[].concat(((null==(s=i.popperOptions)?void 0:s.modifiers)||[]).filter((function(i){return i.name.indexOf("tippy")>=0})),(null==(v=o.popperOptions)?void 0:v.modifiers)||[])})})}var Ts=Ps?ae.useLayoutEffect:ae.useEffect;function useMutableBox(i){var o=Object(ae.useRef)();return o.current||(o.current="function"==typeof i?i():i),o.current}function updateClassName(i,o,s){s.split(/\s+/).forEach((function(s){s&&i.classList[o](s)}))}var Is={name:"className",defaultValue:"",fn:function fn(i){var o=i.popper.firstElementChild,s=function isDefaultRenderFn(){var o;return!!(null==(o=i.props.render)?void 0:o.$$tippy)};function add(){i.props.className&&!s()||updateClassName(o,"add",i.props.className)}return{onCreate:add,onBeforeUpdate:function remove(){s()&&updateClassName(o,"remove",i.props.className)},onAfterUpdate:add}}};function TippyGenerator(i){return function Tippy(o){var s=o.children,v=o.content,$=o.visible,we=o.singleton,_e=o.render,et=o.reference,tt=o.disabled,nt=void 0!==tt&&tt,rt=o.ignoreAttributes,it=void 0===rt||rt,ot=(o.__source,o.__self,tippy_react_esm_objectWithoutPropertiesLoose(o,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),st=void 0!==$,dt=void 0!==we,ut=Object(ae.useState)(!1),lt=ut[0],ct=ut[1],ht=Object(ae.useState)({}),pt=ht[0],ft=ht[1],gt=Object(ae.useState)(),mt=gt[0],yt=gt[1],vt=useMutableBox((function(){return{container:ssrSafeCreateDiv(),renders:1}})),Rt=Object.assign({ignoreAttributes:it},ot,{content:vt.container});st&&(Rt.trigger="manual",Rt.hideOnClick=!1),dt&&(nt=!0);var bt=Rt,Ot=Rt.plugins||[];_e&&(bt=Object.assign({},Rt,{plugins:dt?[].concat(Ot,[{fn:function fn(){return{onTrigger:function onTrigger(i,o){var s=we.data.children.find((function(i){return i.instance.reference===o.currentTarget})).content;yt(s)}}}}]):Ot,render:function render(){return{popper:vt.container}}}));var xt=[et].concat(s?[s.type]:[]);return Ts((function(){var o=et;et&&et.hasOwnProperty("current")&&(o=et.current);var s=i(o||vt.ref||ssrSafeCreateDiv(),Object.assign({},bt,{plugins:[Is].concat(Rt.plugins||[])}));return vt.instance=s,nt&&s.disable(),$&&s.show(),dt&&we.hook({instance:s,content:v,props:bt}),ct(!0),function(){s.destroy(),null==we||we.cleanup(s)}}),xt),Ts((function(){if(1!==vt.renders){var i=vt.instance;i.setProps(deepPreserveProps(i.props,bt)),nt?i.disable():i.enable(),st&&($?i.show():i.hide()),dt&&we.hook({instance:i,content:v,props:bt})}else vt.renders++})),Ts((function(){var i;if(_e){var o=vt.instance;o.setProps({popperOptions:Object.assign({},o.props.popperOptions,{modifiers:[].concat((null==(i=o.props.popperOptions)?void 0:i.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function fn(i){var o,s=i.state,v=null==(o=s.modifiersData)?void 0:o.hide;pt.placement===s.placement&&pt.referenceHidden===(null==v?void 0:v.isReferenceHidden)&&pt.escaped===(null==v?void 0:v.hasPopperEscaped)||ft({placement:s.placement,referenceHidden:null==v?void 0:v.isReferenceHidden,escaped:null==v?void 0:v.hasPopperEscaped}),s.attributes.popper={}}}])})})}}),[pt.placement,pt.referenceHidden,pt.escaped].concat(xt)),pe.a.createElement(pe.a.Fragment,null,s?Object(ae.cloneElement)(s,{ref:function ref(i){vt.ref=i,preserveRef(s.ref,i)}}):null,lt&&Object(_.createPortal)(_e?_e(toDataAttributes(pt),mt):v,vt.container))}}var forwardRef=function(i,o){return Object(ae.forwardRef)((function TippyWrapper(s,v){var _=s.children,$=tippy_react_esm_objectWithoutPropertiesLoose(s,["children"]);return pe.a.createElement(i,Object.assign({},o,$),_?Object(ae.cloneElement)(_,{ref:function ref(i){preserveRef(v,i),preserveRef(_.ref,i)}}):null)}))},Fs=forwardRef(TippyGenerator(Ds));var Ns=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.borderRadius,_=i.fontSize;return{tooltip:{"&.tippy-box":{transitionProperty:[["opacity"]],'&[data-state="hidden"]':{opacity:0}},"& .tippy-content":{padding:o[0],border:"1px "+s.border+" solid",borderRadius:v,background:s.baseBackground,boxShadow:[[0,2,4,"rgba(0,0,0,.15)"]],fontSize:_.small,color:s.type}}}}))((function TooltipRenderer(i){var o=i.classes,s=i.children,v=i.content,_=i.placement,$=void 0===_?"top":_;return pe.a.createElement(Fs,{content:v,className:o.tooltip,interactive:!0,placement:$,trigger:"click mouseenter focus",arrow:!1},pe.a.createElement("span",{role:"button",tabIndex:0},s))}));var Bs=Object(et.a)((function styles(i){return{complexType:{alignItems:"center",display:"inline-flex"},name:{flexShrink:0},icon:{marginLeft:i.space[0],flexShrink:0}}}))((function ComplexTypeRenderer(i){var o=i.classes,s=i.name,v=i.raw;return pe.a.createElement(Ns,{placement:"right",content:v},pe.a.createElement("span",{className:o.complexType},pe.a.createElement("span",{className:o.name},pe.a.createElement(mr.a,null,s)),pe.a.createElement(MdInfoOutline,{className:o.icon})))})),Ls=s(41);function renderType(i){if(!i)return"unknown";var o=i.name;switch(o){case"arrayOf":return i.value.name+"[]";case"objectOf":return"{"+renderType(i.value)+"}";case"instanceOf":return i.value;default:return o}}function renderAdvancedType(i){switch(i.name){case"enum":return pe.a.createElement(Ui,null,i.name);case"literal":return pe.a.createElement(Ui,null,i.value);case"signature":return pe.a.createElement(Bs,{name:i.type,raw:i.raw});case"union":case"tuple":return pe.a.createElement(Bs,{name:i.name,raw:i.raw});default:return pe.a.createElement(Ui,null,i.raw||i.name)}}var js=s(106);function renderEnum(i){if(!Array.isArray(i.value))return pe.a.createElement("span",null,i.value);var o=i.value.map((function(i){var o=i.value;return pe.a.createElement(Ar.a,{key:o},Object(Ls.b)(Object(Ls.c)(o)))}));return pe.a.createElement("span",null,"One of: ",pe.a.createElement(no.a,{separator:", "},o))}function renderUnion(i){if(!Array.isArray(i.value))return pe.a.createElement("span",null,i.value);var o=i.value.map((function(i,o){return pe.a.createElement(Ui,{key:i.name+"-"+o},renderType(i))}));return pe.a.createElement("span",null,"One of type: ",pe.a.createElement(no.a,{separator:", "},o))}function renderShape(i){return Object.keys(i).map((function(o){var s=i[o],v=Object(js.a)(s),_=s.description;return pe.a.createElement("div",{key:o},pe.a.createElement(_i,null,o),": ",pe.a.createElement(Ui,null,renderType(s)),v&&" — ",v,_&&" — ",_&&pe.a.createElement(Kr,{text:_,inline:!0}))}))}function renderExtra(i){var o=Object(Ls.a)(i);if(!o)return null;switch(o.name){case"enum":return renderEnum(o);case"union":return renderUnion(o);case"shape":case"exact":return i.type&&renderShape(i.type.value);case"arrayOf":case"objectOf":return"shape"===o.value.name||"exact"===o.value.name?i.type&&renderShape(i.type.value.value):null;default:return null}}function PropsRenderer_extends(){return PropsRenderer_extends=Object.assign||function(i){for(var o=1;o0&&pe.a.createElement(wo,{args:$,heading:!0}),ae&&pe.a.createElement(Ro,PropsRenderer_extends({},Object.assign({},ae,{name:""}),{returns:!0})))}}],Qs=function PropsRenderer(i){var o=i.props;return pe.a.createElement(To,{columns:Ms,rows:o,getRowKey:PropsRenderer_getRowKey})};Qs.propTypes={props:_e.a.array.isRequired};var Vs=Qs;function MethodsRenderer_extends(){return MethodsRenderer_extends=Object.assign||function(i){for(var o=1;o-1?dt.substring(0,dt.indexOf("?")):dt;nt&&(ut+=lt),we&&(ut+="?nochrome");var ct=encodeURIComponent(v||"");if(ae?ut+="#"+_:(pe||we)&&(ut+=buildIsolatedOrNoChromeFragment({currentHash:lt,encodedName:ct})),et){var ht=et.map(encodeURIComponent);tt||(ht=[].concat(ht,[ct])),ut+="#/"+ht.join("/")}return tt&&(ut+="?id="+_),void 0!==$&&(ut+="/"+$),_e?it+ut:ut}var Ks=function IsolateButton(i){var o=i.name,s=i.example,v=i.isolated,_=i.href;if(v&&!_)return null;var $=s?o+"-"+s+"-isolate-button":o+"-isolate-button";return v?pe.a.createElement(Ys,{href:_,title:"Show all components",testId:$},pe.a.createElement(MdFullscreenExit,null)):pe.a.createElement(Ys,{href:getUrl({name:o,example:s,isolated:!0}),title:"Open isolated",testId:$},pe.a.createElement(MdFullscreen,null))};Ks.propTypes={name:_e.a.string.isRequired,example:_e.a.number,isolated:_e.a.bool};var Js=Ks,ed=function TabButtonRenderer(i){var o,s=i.classes,v=i.name,_=i.className,$=i.onClick,ae=i.active,we=i.children,_e=Object(pr.a)(s.button,_,((o={})[s.isActive]=ae,o));return pe.a.createElement("button",{type:"button",name:v,className:_e,onClick:$,"aria-pressed":ae},we)};ed.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string.isRequired,className:_e.a.string,onClick:_e.a.func.isRequired,active:_e.a.bool,children:_e.a.node.isRequired},ed.defaultProps={active:!1};var dd=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily,_=i.fontSize,$=i.buttonTextTransform;return{button:{padding:[[o[1],0]],fontFamily:v.base,fontSize:_.base,color:s.light,background:"transparent",textTransform:$,transition:"color 750ms ease-out",border:"none",cursor:"pointer","&:hover, &:focus":{isolate:!1,outline:0,color:s.linkHover,transition:"color 150ms ease-in"},"&:focus:not($isActive)":{isolate:!1,outline:[[1,"dotted",s.linkHover]]},"& + &":{isolate:!1,marginLeft:o[1]}},isActive:{borderBottom:[[2,s.linkHover,"solid"]]}}}))(ed),ld=function CodeTabButton(i){return pe.a.createElement(dd,i,"View Code")};ld.propTypes={onClick:_e.a.func.isRequired,name:_e.a.string.isRequired,active:_e.a.bool};var cd=ld,md=function UsageTabButton(i){var o=i.props;return!Zs()(o.props)||!Zs()(o.methods)?pe.a.createElement(dd,i,"Props & methods"):null};md.propTypes={onClick:_e.a.func.isRequired,name:_e.a.string.isRequired,props:_e.a.shape({props:_e.a.array,methods:_e.a.array}).isRequired,active:_e.a.bool};var Cd=md,_d="rsg-code-editor",kd="rsg-usage",Ad=[Js],Md=s(18);function ComponentsListRenderer_extends(){return ComponentsListRenderer_extends=Object.assign||function(i){for(var o=1;o0?pe.a.createElement(Xd,{items:o}):null};Yd.propTypes={items:_e.a.array.isRequired};var eu=Yd,tu=function TableOfContentsRenderer(i){var o=i.classes,s=i.children,v=i.searchTerm,_=i.onSearchTermChange;return pe.a.createElement("div",null,pe.a.createElement("div",{className:o.root},pe.a.createElement("nav",null,pe.a.createElement("div",{className:o.search},pe.a.createElement("input",{value:v,className:o.input,placeholder:"Filter by name","aria-label":"Filter by name",onChange:function onChange(i){return _(i.target.value)}})),s)))};tu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node,searchTerm:_e.a.string.isRequired,onSearchTermChange:_e.a.func.isRequired};var nu=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.fontFamily,_=i.fontSize,$=i.borderRadius;return{root:{fontFamily:v.base},search:{padding:o[2]},input:{display:"block",width:"100%",padding:o[1],color:s.base,backgroundColor:s.baseBackground,fontFamily:v.base,fontSize:_.base,border:[[1,s.border,"solid"]],borderRadius:$,transition:"all ease-in-out .1s","&:focus":{isolate:!1,borderColor:s.link,boxShadow:[[0,0,0,2,s.focus]],outline:0},"&::placeholder":{isolate:!1,fontFamily:v.base,fontSize:_.base,color:s.light}}}}))(tu);function getFilterRegExp(i){return i=i.replace(/[^a-z0-9]/gi,"").split("").join(".*"),new RegExp(i,"i")}function filterComponentsByName(i,o){var s=getFilterRegExp(o);return i.filter((function(i){var o=i.name;return s.test(o)}))}function filterSectionsByName(i,o){var s=getFilterRegExp(o);return i.map((function(i){return Object.assign({},i,{sections:i.sections?filterSectionsByName(i.sections,o):[],components:i.components?filterComponentsByName(i.components,o):[]})})).filter((function(i){return i.components.length>0||i.sections.length>0||s.test(i.name||"-")}))}var au=s(214),ru=s.n(au),iu=/(.*)\?/;function trimHash(i,o){if(!i)return"";var s=new RegExp("^"+ru()(o||"#/"),"g");return i.replace(s,"")}var ou=function trimParams(i){var o=iu.exec(i);return o&&o[1]||i},su=function hasInHash(i,o){return""!==i&&i.indexOf(o)>-1},du=function getHash(i,o){return decodeURIComponent(ou(trimHash(i,o)))},uu=function getHashAsArray(i,o){return ou(trimHash(i,o)).split("/").map(decodeURIComponent)},lu=function getParameterByName(i,o){o=o.replace(/[[\]]/g,"\\$&");var s=new RegExp("[?&]"+o+"(=([^&#]*)|&|#|$)").exec(i);return s?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null};function TableOfContents_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function TableOfContents_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var cu=function(i){var o,s;s=i,(o=TableOfContents).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=TableOfContents;function TableOfContents(){for(var o,s=arguments.length,v=new Array(s),_=0;_0?_.renderLevel($,o,pe,0===ae):{content:void 0,containsSelected:!1},tt=et.content,nt=et.containsSelected,rt=(!o&&i.href?du(i.href):i.href)===we;return(nt||rt)&&(_e=!0),Object.assign({},i,{heading:!!i.name&&$.length>0,content:tt,selected:rt,shouldOpenInNewTab:!!i.external&&!!i.externalLink,initialOpen:"collapse"!==_.props.tocMode||nt||i.expand,forcedOpen:!!_.state.searchTerm.length})}));return{content:pe.a.createElement(eu,{items:et}),containsSelected:_e}},_.renderSections=function renderSections(){var i=this.state.searchTerm,o=this.props,s=o.sections,v=o.useRouterLinks,_=1===s.length?s[0].sections&&s[0].sections.length?s[0].sections:s[0].components:s,$=_?filterSectionsByName(_,i):_||[];return this.renderLevel($,v).content},_.render=function render(){var i=this;return pe.a.createElement(nu,{searchTerm:this.state.searchTerm,onSearchTermChange:function handleSearchTermChange(o){return i.setState({searchTerm:o})}},this.renderSections())},TableOfContents}(ae.Component);TableOfContents_defineProperty(cu,"propTypes",{sections:_e.a.array.isRequired,useRouterLinks:_e.a.bool,tocMode:_e.a.string,loc:_e.a.object}),TableOfContents_defineProperty(cu,"defaultProps",{loc:window.location});var hu=Object(et.a)((function styles(i){var o=i.color,s=i.fontFamily,v=i.fontSize;return{logo:{color:o.base,margin:0,fontFamily:s.base,fontSize:v.h4,fontWeight:"normal"}}}))((function LogoRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("h1",{className:o.logo},s)})),pu=function RibbonRenderer(i){var o=i.classes,s=i.url,v=i.text;return pe.a.createElement("footer",{className:o.root},pe.a.createElement("a",{href:s,className:o.link},v))};pu.defaultProps={text:"Fork me on GitHub"},pu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,url:_e.a.string.isRequired,text:_e.a.string};var fu=Object(et.a)((function styles(i){var o=i.color,s=i.space,v=i.fontSize;return{root:{position:"fixed",top:0,right:0,width:149,height:149,zIndex:999},link:{fontFamily:i.fontFamily.base,position:"relative",right:-37,top:-22,display:"block",width:190,padding:[[s[0],s[2]]],textAlign:"center",color:o.ribbonText,fontSize:v.base,background:o.ribbonBackground,textDecoration:"none",textShadow:[[0,"-1px",0,"rgba(0,0,0,.15)"]],transformOrigin:[[0,0]],transform:"rotate(45deg)",cursor:"pointer"}}}))(pu);function Ribbon(){var i=Object(Md.b)().config.ribbon;return i?pe.a.createElement(fu,i):null}var gu=function VersionRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("p",{"aria-label":"version",className:o.version},s)};gu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node};var mu=Object(et.a)((function styles(i){var o=i.color,s=i.fontFamily,v=i.fontSize;return{version:{color:o.light,margin:[[5,0,0,0]],fontFamily:s.base,fontSize:v.base,fontWeight:"normal"}}}))(gu),yu=function StyleGuideRenderer(i){var o=i.classes,s=i.title,v=i.version,_=i.homepageUrl,$=i.children,ae=i.toc,we=i.hasSidebar;return pe.a.createElement("div",{className:Object(pr.a)(o.root,we&&o.hasSidebar)},pe.a.createElement("main",{className:o.content},$,pe.a.createElement("footer",{className:o.footer},pe.a.createElement(Kr,{text:"Created with [React Styleguidist]("+_+")"}))),we&&pe.a.createElement("div",{className:o.sidebar,"data-testid":"sidebar"},pe.a.createElement("header",{className:o.logo},pe.a.createElement(hu,null,s),v&&pe.a.createElement(mu,null,v)),ae),pe.a.createElement(Ribbon,null))};yu.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,title:_e.a.string.isRequired,version:_e.a.string,homepageUrl:_e.a.string.isRequired,children:_e.a.node.isRequired,toc:_e.a.node.isRequired,hasSidebar:_e.a.bool};var vu=Object(et.a)((function styles(i){var o,s,v,_=i.color,$=i.fontFamily,ae=i.fontSize,pe=i.sidebarWidth,we=i.mq,_e=i.space,et=i.maxWidth;return{root:{minHeight:"100vh",backgroundColor:_.baseBackground},hasSidebar:(o={paddingLeft:pe},o[we.small]={paddingLeft:0},o),content:(s={maxWidth:et,padding:[[_e[2],_e[4]]],margin:[[0,"auto"]]},s[we.small]={padding:_e[2]},s.display="block",s),sidebar:(v={backgroundColor:_.sidebarBackground,border:[[_.border,"solid"]],borderWidth:[[0,1,0,0]],position:"fixed",top:0,left:0,bottom:0,width:pe,overflow:"auto",WebkitOverflowScrolling:"touch"},v[we.small]={position:"static",width:"auto",borderWidth:[[1,0,0,0]],paddingBottom:_e[0]},v),logo:{padding:_e[2],borderBottom:[[1,_.border,"solid"]]},footer:{display:"block",color:_.light,fontFamily:$.base,fontSize:ae.small}}}))(yu),Ru=s(215),bu=s.n(Ru),Ou=function PlaygroundErrorRenderer(i){var o=i.classes,s=i.message;return pe.a.createElement("pre",{className:o.root},s)};Ou.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,message:_e.a.string.isRequired};var xu=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{root:{margin:0,lineHeight:1.2,fontSize:s.small,fontFamily:o.monospace,color:v.error,whiteSpace:"pre-wrap"}}}))(Ou);var wu=function(i){var o,s;s=i,(o=Wrapper).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=Wrapper;function Wrapper(){return i.apply(this,arguments)||this}var _=Wrapper.prototype;return _.componentDidCatch=function componentDidCatch(i){this.props.onError(i)},_.render=function render(){return this.props.children},Wrapper}(ae.Component);!function Wrapper_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}(wu,"propTypes",{children:_e.a.node.isRequired,onError:_e.a.func.isRequired});var Cu={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Su="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",_u={5:Su,"5module":Su+" export import",6:Su+" const class extends export import super"},Eu=/^in(stanceof)?$/,ku="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Au="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Du=new RegExp("["+ku+"]"),Pu=new RegExp("["+ku+Au+"]");ku=Au=null;var Tu=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],Iu=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(i,o){for(var s=65536,v=0;vi)return!1;if((s+=o[v+1])>=i)return!0}}function isIdentifierStart(i,o){return i<65?36===i:i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&Du.test(String.fromCharCode(i)):!1!==o&&isInAstralSet(i,Tu)))}function isIdentifierChar(i,o){return i<48?36===i:i<58||!(i<65)&&(i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&Pu.test(String.fromCharCode(i)):!1!==o&&(isInAstralSet(i,Tu)||isInAstralSet(i,Iu)))))}var Fu=function TokenType(i,o){void 0===o&&(o={}),this.label=i,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop||null,this.updateContext=null};function binop(i,o){return new Fu(i,{beforeExpr:!0,binop:o})}var Nu={beforeExpr:!0},Bu={startsExpr:!0},Lu={};function kw(i,o){return void 0===o&&(o={}),o.keyword=i,Lu[i]=new Fu(i,o)}var ju={num:new Fu("num",Bu),regexp:new Fu("regexp",Bu),string:new Fu("string",Bu),name:new Fu("name",Bu),eof:new Fu("eof"),bracketL:new Fu("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Fu("]"),braceL:new Fu("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Fu("}"),parenL:new Fu("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Fu(")"),comma:new Fu(",",Nu),semi:new Fu(";",Nu),colon:new Fu(":",Nu),dot:new Fu("."),question:new Fu("?",Nu),arrow:new Fu("=>",Nu),template:new Fu("template"),invalidTemplate:new Fu("invalidTemplate"),ellipsis:new Fu("...",Nu),backQuote:new Fu("`",Bu),dollarBraceL:new Fu("${",{beforeExpr:!0,startsExpr:!0}),eq:new Fu("=",{beforeExpr:!0,isAssign:!0}),assign:new Fu("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Fu("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Fu("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new Fu("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new Fu("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",Nu),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",Nu),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",Nu),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",Bu),_if:kw("if"),_return:kw("return",Nu),_switch:kw("switch"),_throw:kw("throw",Nu),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",Bu),_super:kw("super",Bu),_class:kw("class",Bu),_extends:kw("extends",Nu),_export:kw("export"),_import:kw("import",Bu),_null:kw("null",Bu),_true:kw("true",Bu),_false:kw("false",Bu),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Mu=/\r\n?|\n|\u2028|\u2029/,Qu=new RegExp(Mu.source,"g");function isNewLine(i,o){return 10===i||13===i||!o&&(8232===i||8233===i)}var Vu=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Uu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wu=Object.prototype,$u=Wu.hasOwnProperty,qu=Wu.toString;function has(i,o){return $u.call(i,o)}var zu=Array.isArray||function(i){return"[object Array]"===qu.call(i)};function wordsRegexp(i){return new RegExp("^(?:"+i.replace(/ /g,"|")+")$")}var Zu=function Position(i,o){this.line=i,this.column=o};Zu.prototype.offset=function offset(i){return new Zu(this.line,this.column+i)};var Hu=function SourceLocation(i,o,s){this.start=o,this.end=s,null!==i.sourceFile&&(this.source=i.sourceFile)};function getLineInfo(i,o){for(var s=1,v=0;;){Qu.lastIndex=v;var _=Qu.exec(i);if(!(_&&_.index=2015&&(o.ecmaVersion-=2009),null==o.allowReserved&&(o.allowReserved=o.ecmaVersion<5),zu(o.onToken)){var v=o.onToken;o.onToken=function(i){return v.push(i)}}return zu(o.onComment)&&(o.onComment=pushComment(o,o.onComment)),o}function pushComment(i,o){return function(s,v,_,$,ae,pe){var we={type:s?"Block":"Line",value:v,start:_,end:$};i.locations&&(we.loc=new Hu(this,ae,pe)),i.ranges&&(we.range=[_,$]),o.push(we)}}function functionFlags(i,o){return 2|(i?4:0)|(o?8:0)}var Xu=function Parser(i,o,s){this.options=i=getOptions(i),this.sourceFile=i.sourceFile,this.keywords=wordsRegexp(_u[i.ecmaVersion>=6?6:"module"===i.sourceType?"5module":5]);var v="";if(!0!==i.allowReserved){for(var _=i.ecmaVersion;!(v=Cu[_]);_--);"module"===i.sourceType&&(v+=" await")}this.reservedWords=wordsRegexp(v);var $=(v?v+" ":"")+Cu.strict;this.reservedWordsStrict=wordsRegexp($),this.reservedWordsStrictBind=wordsRegexp($+" "+Cu.strictBind),this.input=String(o),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Mu).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=ju.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===i.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&i.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Yu={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Xu.prototype.parse=function parse(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)},Yu.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Yu.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Yu.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Yu.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Yu.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Yu.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Xu.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Xu.extend=function extend(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];for(var s=this,v=0;v-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var s=o?i.parenthesizedAssign:i.parenthesizedBind;s>-1&&this.raiseRecoverable(s,"Parenthesized pattern")}},Ku.checkExpressionErrors=function(i,o){if(!i)return!1;var s=i.shorthandAssign,v=i.doubleProto;if(!o)return s>=0||v>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},Ku.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement($,!1,!i);case ju._class:return i&&this.unexpected(),this.parseClass($,!0);case ju._if:return this.parseIfStatement($);case ju._return:return this.parseReturnStatement($);case ju._switch:return this.parseSwitchStatement($);case ju._throw:return this.parseThrowStatement($);case ju._try:return this.parseTryStatement($);case ju._const:case ju._var:return v=v||this.value,i&&"var"!==v&&this.unexpected(),this.parseVarStatement($,v);case ju._while:return this.parseWhileStatement($);case ju._with:return this.parseWithStatement($);case ju.braceL:return this.parseBlock(!0,$);case ju.semi:return this.parseEmptyStatement($);case ju._export:case ju._import:if(this.options.ecmaVersion>10&&_===ju._import){Uu.lastIndex=this.pos;var ae=Uu.exec(this.input),pe=this.pos+ae[0].length;if(40===this.input.charCodeAt(pe))return this.parseExpressionStatement($,this.parseExpression())}return this.options.allowImportExportEverywhere||(o||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===ju._import?this.parseImport($):this.parseExport($,s);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement($,!0,!i);var we=this.value,_e=this.parseExpression();return _===ju.name&&"Identifier"===_e.type&&this.eat(ju.colon)?this.parseLabeledStatement($,we,_e,i):this.parseExpressionStatement($,_e)}},nl.parseBreakContinueStatement=function(i,o){var s="break"===o;this.next(),this.eat(ju.semi)||this.insertSemicolon()?i.label=null:this.type!==ju.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var v=0;v=6?this.eat(ju.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},nl.parseForStatement=function(i){this.next();var o=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rl),this.enterScope(0),this.expect(ju.parenL),this.type===ju.semi)return o>-1&&this.unexpected(o),this.parseFor(i,null);var s=this.isLet();if(this.type===ju._var||this.type===ju._const||s){var v=this.startNode(),_=s?"let":this.value;return this.next(),this.parseVar(v,!0,_),this.finishNode(v,"VariableDeclaration"),(this.type===ju._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===v.declarations.length?(this.options.ecmaVersion>=9&&(this.type===ju._in?o>-1&&this.unexpected(o):i.await=o>-1),this.parseForIn(i,v)):(o>-1&&this.unexpected(o),this.parseFor(i,v))}var $=new DestructuringErrors,ae=this.parseExpression(!0,$);return this.type===ju._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===ju._in?o>-1&&this.unexpected(o):i.await=o>-1),this.toAssignable(ae,!1,$),this.checkLVal(ae),this.parseForIn(i,ae)):(this.checkExpressionErrors($,!0),o>-1&&this.unexpected(o),this.parseFor(i,ae))},nl.parseFunctionStatement=function(i,o,s){return this.next(),this.parseFunction(i,cl|(s?0:hl),!1,o)},nl.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(ju._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},nl.parseReturnStatement=function(i){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(ju.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},nl.parseSwitchStatement=function(i){var o;this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(ju.braceL),this.labels.push(il),this.enterScope(0);for(var s=!1;this.type!==ju.braceR;)if(this.type===ju._case||this.type===ju._default){var v=this.type===ju._case;o&&this.finishNode(o,"SwitchCase"),i.cases.push(o=this.startNode()),o.consequent=[],this.next(),v?o.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,o.test=null),this.expect(ju.colon)}else o||this.unexpected(),o.consequent.push(this.parseStatement(null));return this.exitScope(),o&&this.finishNode(o,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},nl.parseThrowStatement=function(i){return this.next(),Mu.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var ll=[];nl.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===ju._catch){var o=this.startNode();if(this.next(),this.eat(ju.parenL)){o.param=this.parseBindingAtom();var s="Identifier"===o.param.type;this.enterScope(s?32:0),this.checkLVal(o.param,s?4:2),this.expect(ju.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),o.param=null,this.enterScope(0);o.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(o,"CatchClause")}return i.finalizer=this.eat(ju._finally)?this.parseBlock():null,i.handler||i.finalizer||this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},nl.parseVarStatement=function(i,o){return this.next(),this.parseVar(i,!1,o),this.semicolon(),this.finishNode(i,"VariableDeclaration")},nl.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(rl),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},nl.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},nl.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},nl.parseLabeledStatement=function(i,o,s,v){for(var _=0,$=this.labels;_<$.length;_+=1){$[_].name===o&&this.raise(s.start,"Label '"+o+"' is already declared")}for(var ae=this.type.isLoop?"loop":this.type===ju._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var we=this.labels[pe];if(we.statementStart!==i.start)break;we.statementStart=this.start,we.kind=ae}return this.labels.push({name:o,kind:ae,statementStart:this.start}),i.body=this.parseStatement(v?-1===v.indexOf("label")?v+"label":v:"label"),this.labels.pop(),i.label=s,this.finishNode(i,"LabeledStatement")},nl.parseExpressionStatement=function(i,o){return i.expression=o,this.semicolon(),this.finishNode(i,"ExpressionStatement")},nl.parseBlock=function(i,o){for(void 0===i&&(i=!0),void 0===o&&(o=this.startNode()),o.body=[],this.expect(ju.braceL),i&&this.enterScope(0);!this.eat(ju.braceR);){var s=this.parseStatement(null);o.body.push(s)}return i&&this.exitScope(),this.finishNode(o,"BlockStatement")},nl.parseFor=function(i,o){return i.init=o,this.expect(ju.semi),i.test=this.type===ju.semi?null:this.parseExpression(),this.expect(ju.semi),i.update=this.type===ju.parenR?null:this.parseExpression(),this.expect(ju.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},nl.parseForIn=function(i,o){var s=this.type===ju._in;return this.next(),"VariableDeclaration"===o.type&&null!=o.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==o.kind||"Identifier"!==o.declarations[0].id.type)?this.raise(o.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===o.type&&this.raise(o.start,"Invalid left-hand side in for-loop"),i.left=o,i.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(ju.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,s?"ForInStatement":"ForOfStatement")},nl.parseVar=function(i,o,s){for(i.declarations=[],i.kind=s;;){var v=this.startNode();if(this.parseVarId(v,s),this.eat(ju.eq)?v.init=this.parseMaybeAssign(o):"const"!==s||this.type===ju._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===v.id.type||o&&(this.type===ju._in||this.isContextual("of"))?v.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(ju.comma))break}return i},nl.parseVarId=function(i,o){i.id=this.parseBindingAtom(),this.checkLVal(i.id,"var"===o?1:2,!1)};var cl=1,hl=2;nl.parseFunction=function(i,o,s,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===ju.star&&o&hl&&this.unexpected(),i.generator=this.eat(ju.star)),this.options.ecmaVersion>=8&&(i.async=!!v),o&cl&&(i.id=4&o&&this.type!==ju.name?null:this.parseIdent(),!i.id||o&hl||this.checkLVal(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?1:2:3));var _=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(i.async,i.generator)),o&cl||(i.id=this.type===ju.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,s,!1),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(i,o&cl?"FunctionDeclaration":"FunctionExpression")},nl.parseFunctionParams=function(i){this.expect(ju.parenL),i.params=this.parseBindingList(ju.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},nl.parseClass=function(i,o){this.next();var s=this.strict;this.strict=!0,this.parseClassId(i,o),this.parseClassSuper(i);var v=this.startNode(),_=!1;for(v.body=[],this.expect(ju.braceL);!this.eat(ju.braceR);){var $=this.parseClassElement(null!==i.superClass);$&&(v.body.push($),"MethodDefinition"===$.type&&"constructor"===$.kind&&(_&&this.raise($.start,"Duplicate constructor in the same class"),_=!0))}return i.body=this.finishNode(v,"ClassBody"),this.strict=s,this.finishNode(i,o?"ClassDeclaration":"ClassExpression")},nl.parseClassElement=function(i){var o=this;if(this.eat(ju.semi))return null;var s=this.startNode(),tryContextual=function(i,v){void 0===v&&(v=!1);var _=o.start,$=o.startLoc;return!!o.eatContextual(i)&&(!(o.type===ju.parenL||v&&o.canInsertSemicolon())||(s.key&&o.unexpected(),s.computed=!1,s.key=o.startNodeAt(_,$),s.key.name=i,o.finishNode(s.key,"Identifier"),!1))};s.kind="method",s.static=tryContextual("static");var v=this.eat(ju.star),_=!1;v||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(_=!0,v=this.options.ecmaVersion>=9&&this.eat(ju.star)):tryContextual("get")?s.kind="get":tryContextual("set")&&(s.kind="set")),s.key||this.parsePropertyName(s);var $=s.key,ae=!1;return s.computed||s.static||!("Identifier"===$.type&&"constructor"===$.name||"Literal"===$.type&&"constructor"===$.value)?s.static&&"Identifier"===$.type&&"prototype"===$.name&&this.raise($.start,"Classes may not have a static property named prototype"):("method"!==s.kind&&this.raise($.start,"Constructor can't have get/set modifier"),v&&this.raise($.start,"Constructor can't be a generator"),_&&this.raise($.start,"Constructor can't be an async method"),s.kind="constructor",ae=i),this.parseClassMethod(s,v,_,ae),"get"===s.kind&&0!==s.value.params.length&&this.raiseRecoverable(s.value.start,"getter should have no params"),"set"===s.kind&&1!==s.value.params.length&&this.raiseRecoverable(s.value.start,"setter should have exactly one param"),"set"===s.kind&&"RestElement"===s.value.params[0].type&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params"),s},nl.parseClassMethod=function(i,o,s,v){return i.value=this.parseMethod(o,s,v),this.finishNode(i,"MethodDefinition")},nl.parseClassId=function(i,o){this.type===ju.name?(i.id=this.parseIdent(),o&&this.checkLVal(i.id,2,!1)):(!0===o&&this.unexpected(),i.id=null)},nl.parseClassSuper=function(i){i.superClass=this.eat(ju._extends)?this.parseExprSubscripts():null},nl.parseExport=function(i,o){if(this.next(),this.eat(ju.star))return this.expectContextual("from"),this.type!==ju.string&&this.unexpected(),i.source=this.parseExprAtom(),this.semicolon(),this.finishNode(i,"ExportAllDeclaration");if(this.eat(ju._default)){var s;if(this.checkExport(o,"default",this.lastTokStart),this.type===ju._function||(s=this.isAsyncFunction())){var v=this.startNode();this.next(),s&&this.next(),i.declaration=this.parseFunction(v,4|cl,!1,s)}else if(this.type===ju._class){var _=this.startNode();i.declaration=this.parseClass(_,"nullableID")}else i.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(i,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())i.declaration=this.parseStatement(null),"VariableDeclaration"===i.declaration.type?this.checkVariableExport(o,i.declaration.declarations):this.checkExport(o,i.declaration.id.name,i.declaration.id.start),i.specifiers=[],i.source=null;else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(o),this.eatContextual("from"))this.type!==ju.string&&this.unexpected(),i.source=this.parseExprAtom();else{for(var $=0,ae=i.specifiers;$=6&&i)switch(i.type){case"Identifier":this.inAsync&&"await"===i.name&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.toAssignable($,o),"RestElement"!==$.type||"ArrayPattern"!==$.argument.type&&"ObjectPattern"!==$.argument.type||this.raise($.argument.start,"Unexpected token")}break;case"Property":"init"!==i.kind&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,o);break;case"ArrayExpression":i.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(i.elements,o);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,o),"AssignmentPattern"===i.argument.type&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==i.operator&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,o);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(i.expression,o,s);break;case"MemberExpression":if(!o)break;default:this.raise(i.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return i},ml.toAssignableList=function(i,o){for(var s=i.length,v=0;v=6)switch(this.type){case ju.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(ju.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case ju.braceL:return this.parseObj(!0)}return this.parseIdent()},ml.parseBindingList=function(i,o,s){for(var v=[],_=!0;!this.eat(i);)if(_?_=!1:this.expect(ju.comma),o&&this.type===ju.comma)v.push(null);else{if(s&&this.afterTrailingComma(i))break;if(this.type===ju.ellipsis){var $=this.parseRestBinding();this.parseBindingListItem($),v.push($),this.type===ju.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}var ae=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(ae),v.push(ae)}return v},ml.parseBindingListItem=function(i){return i},ml.parseMaybeDefault=function(i,o,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(ju.eq))return s;var v=this.startNodeAt(i,o);return v.left=s,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},ml.checkLVal=function(i,o,s){switch(void 0===o&&(o=0),i.type){case"Identifier":2===o&&"let"===i.name&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(o?"Binding ":"Assigning to ")+i.name+" in strict mode"),s&&(has(s,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),s[i.name]=!0),0!==o&&5!==o&&this.declareName(i.name,o,i.start);break;case"MemberExpression":o&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ObjectPattern":for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.checkLVal($,o,s)}break;case"Property":this.checkLVal(i.value,o,s);break;case"ArrayPattern":for(var ae=0,pe=i.elements;ae=9&&"SpreadElement"===i.type||this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var v,_=i.key;switch(_.type){case"Identifier":v=_.name;break;case"Literal":v=String(_.value);break;default:return}var $=i.kind;if(this.options.ecmaVersion>=6)"__proto__"===v&&"init"===$&&(o.proto&&(s&&s.doubleProto<0?s.doubleProto=_.start:this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),o.proto=!0);else{var ae=o[v="$"+v];if(ae)("init"===$?this.strict&&ae.init||ae.get||ae.set:ae.init||ae[$])&&this.raiseRecoverable(_.start,"Redefinition of property");else ae=o[v]={init:!1,get:!1,set:!1};ae[$]=!0}}},Rl.parseExpression=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeAssign(i,o);if(this.type===ju.comma){var $=this.startNodeAt(s,v);for($.expressions=[_];this.eat(ju.comma);)$.expressions.push(this.parseMaybeAssign(i,o));return this.finishNode($,"SequenceExpression")}return _},Rl.parseMaybeAssign=function(i,o,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var v=!1,_=-1,$=-1,ae=-1;o?(_=o.parenthesizedAssign,$=o.trailingComma,ae=o.shorthandAssign,o.parenthesizedAssign=o.trailingComma=o.shorthandAssign=-1):(o=new DestructuringErrors,v=!0);var pe=this.start,we=this.startLoc;this.type!==ju.parenL&&this.type!==ju.name||(this.potentialArrowAt=this.start);var _e=this.parseMaybeConditional(i,o);if(s&&(_e=s.call(this,_e,pe,we)),this.type.isAssign){var et=this.startNodeAt(pe,we);return et.operator=this.value,et.left=this.type===ju.eq?this.toAssignable(_e,!1,o):_e,v||DestructuringErrors.call(o),o.shorthandAssign=-1,this.checkLVal(_e),this.next(),et.right=this.parseMaybeAssign(i),this.finishNode(et,"AssignmentExpression")}return v&&this.checkExpressionErrors(o,!0),_>-1&&(o.parenthesizedAssign=_),$>-1&&(o.trailingComma=$),ae>-1&&(o.shorthandAssign=ae),_e},Rl.parseMaybeConditional=function(i,o){var s=this.start,v=this.startLoc,_=this.parseExprOps(i,o);if(this.checkExpressionErrors(o))return _;if(this.eat(ju.question)){var $=this.startNodeAt(s,v);return $.test=_,$.consequent=this.parseMaybeAssign(),this.expect(ju.colon),$.alternate=this.parseMaybeAssign(i),this.finishNode($,"ConditionalExpression")}return _},Rl.parseExprOps=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeUnary(o,!1);return this.checkExpressionErrors(o)||_.start===s&&"ArrowFunctionExpression"===_.type?_:this.parseExprOp(_,s,v,-1,i)},Rl.parseExprOp=function(i,o,s,v,_){var $=this.type.binop;if(null!=$&&(!_||this.type!==ju._in)&&$>v){var ae=this.type===ju.logicalOR||this.type===ju.logicalAND,pe=this.value;this.next();var we=this.start,_e=this.startLoc,et=this.parseExprOp(this.parseMaybeUnary(null,!1),we,_e,$,_),tt=this.buildBinary(o,s,i,et,pe,ae);return this.parseExprOp(tt,o,s,v,_)}return i},Rl.buildBinary=function(i,o,s,v,_,$){var ae=this.startNodeAt(i,o);return ae.left=s,ae.operator=_,ae.right=v,this.finishNode(ae,$?"LogicalExpression":"BinaryExpression")},Rl.parseMaybeUnary=function(i,o){var s,v=this.start,_=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))s=this.parseAwait(),o=!0;else if(this.type.prefix){var $=this.startNode(),ae=this.type===ju.incDec;$.operator=this.value,$.prefix=!0,this.next(),$.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(i,!0),ae?this.checkLVal($.argument):this.strict&&"delete"===$.operator&&"Identifier"===$.argument.type?this.raiseRecoverable($.start,"Deleting local variable in strict mode"):o=!0,s=this.finishNode($,ae?"UpdateExpression":"UnaryExpression")}else{if(s=this.parseExprSubscripts(i),this.checkExpressionErrors(i))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var pe=this.startNodeAt(v,_);pe.operator=this.value,pe.prefix=!1,pe.argument=s,this.checkLVal(s),this.next(),s=this.finishNode(pe,"UpdateExpression")}}return!o&&this.eat(ju.starstar)?this.buildBinary(v,_,s,this.parseMaybeUnary(null,!1),"**",!1):s},Rl.parseExprSubscripts=function(i){var o=this.start,s=this.startLoc,v=this.parseExprAtom(i),_="ArrowFunctionExpression"===v.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(i)||_)return v;var $=this.parseSubscripts(v,o,s);return i&&"MemberExpression"===$.type&&(i.parenthesizedAssign>=$.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=$.start&&(i.parenthesizedBind=-1)),$},Rl.parseSubscripts=function(i,o,s,v){for(var _=this.options.ecmaVersion>=8&&"Identifier"===i.type&&"async"===i.name&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(i.start,i.end);;){var $=this.parseSubscript(i,o,s,v,_);if($===i||"ArrowFunctionExpression"===$.type)return $;i=$}},Rl.parseSubscript=function(i,o,s,v,_){var $=this.eat(ju.bracketL);if($||this.eat(ju.dot)){var ae=this.startNodeAt(o,s);ae.object=i,ae.property=$?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),ae.computed=!!$,$&&this.expect(ju.bracketR),i=this.finishNode(ae,"MemberExpression")}else if(!v&&this.eat(ju.parenL)){var pe=new DestructuringErrors,we=this.yieldPos,_e=this.awaitPos,et=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var tt=this.parseExprList(ju.parenR,this.options.ecmaVersion>=8&&"Import"!==i.type,!1,pe);if(_&&!this.canInsertSemicolon()&&this.eat(ju.arrow))return this.checkPatternErrors(pe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=we,this.awaitPos=_e,this.awaitIdentPos=et,this.parseArrowExpression(this.startNodeAt(o,s),tt,!0);this.checkExpressionErrors(pe,!0),this.yieldPos=we||this.yieldPos,this.awaitPos=_e||this.awaitPos,this.awaitIdentPos=et||this.awaitIdentPos;var nt=this.startNodeAt(o,s);if(nt.callee=i,nt.arguments=tt,"Import"===nt.callee.type){1!==nt.arguments.length&&this.raise(nt.start,"import() requires exactly one argument");var rt=nt.arguments[0];rt&&"SpreadElement"===rt.type&&this.raise(rt.start,"... is not allowed in import()")}i=this.finishNode(nt,"CallExpression")}else if(this.type===ju.backQuote){var it=this.startNodeAt(o,s);it.tag=i,it.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(it,"TaggedTemplateExpression")}return i},Rl.parseExprAtom=function(i){this.type===ju.slash&&this.readRegexp();var o,s=this.potentialArrowAt===this.start;switch(this.type){case ju._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),o=this.startNode(),this.next(),this.type!==ju.parenL||this.allowDirectSuper||this.raise(o.start,"super() call outside constructor of a subclass"),this.type!==ju.dot&&this.type!==ju.bracketL&&this.type!==ju.parenL&&this.unexpected(),this.finishNode(o,"Super");case ju._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case ju.name:var v=this.start,_=this.startLoc,$=this.containsEsc,ae=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!$&&"async"===ae.name&&!this.canInsertSemicolon()&&this.eat(ju._function))return this.parseFunction(this.startNodeAt(v,_),0,!1,!0);if(s&&!this.canInsertSemicolon()){if(this.eat(ju.arrow))return this.parseArrowExpression(this.startNodeAt(v,_),[ae],!1);if(this.options.ecmaVersion>=8&&"async"===ae.name&&this.type===ju.name&&!$)return ae=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(ju.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,_),[ae],!0)}return ae;case ju.regexp:var pe=this.value;return(o=this.parseLiteral(pe.value)).regex={pattern:pe.pattern,flags:pe.flags},o;case ju.num:case ju.string:return this.parseLiteral(this.value);case ju._null:case ju._true:case ju._false:return(o=this.startNode()).value=this.type===ju._null?null:this.type===ju._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case ju.parenL:var we=this.start,_e=this.parseParenAndDistinguishExpression(s);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_e)&&(i.parenthesizedAssign=we),i.parenthesizedBind<0&&(i.parenthesizedBind=we)),_e;case ju.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(ju.bracketR,!0,!0,i),this.finishNode(o,"ArrayExpression");case ju.braceL:return this.parseObj(!1,i);case ju._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case ju._class:return this.parseClass(this.startNode(),!1);case ju._new:return this.parseNew();case ju.backQuote:return this.parseTemplate();case ju._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Rl.parseDynamicImport=function(){var i=this.startNode();return this.next(),this.type!==ju.parenL&&this.unexpected(),this.finishNode(i,"Import")},Rl.parseLiteral=function(i){var o=this.startNode();return o.value=i,o.raw=this.input.slice(this.start,this.end),110===o.raw.charCodeAt(o.raw.length-1)&&(o.bigint=o.raw.slice(0,-1)),this.next(),this.finishNode(o,"Literal")},Rl.parseParenExpression=function(){this.expect(ju.parenL);var i=this.parseExpression();return this.expect(ju.parenR),i},Rl.parseParenAndDistinguishExpression=function(i){var o,s=this.start,v=this.startLoc,_=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $,ae=this.start,pe=this.startLoc,we=[],_e=!0,et=!1,tt=new DestructuringErrors,nt=this.yieldPos,rt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==ju.parenR;){if(_e?_e=!1:this.expect(ju.comma),_&&this.afterTrailingComma(ju.parenR,!0)){et=!0;break}if(this.type===ju.ellipsis){$=this.start,we.push(this.parseParenItem(this.parseRestBinding())),this.type===ju.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}we.push(this.parseMaybeAssign(!1,tt,this.parseParenItem))}var it=this.start,ot=this.startLoc;if(this.expect(ju.parenR),i&&!this.canInsertSemicolon()&&this.eat(ju.arrow))return this.checkPatternErrors(tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nt,this.awaitPos=rt,this.parseParenArrowList(s,v,we);we.length&&!et||this.unexpected(this.lastTokStart),$&&this.unexpected($),this.checkExpressionErrors(tt,!0),this.yieldPos=nt||this.yieldPos,this.awaitPos=rt||this.awaitPos,we.length>1?((o=this.startNodeAt(ae,pe)).expressions=we,this.finishNodeAt(o,"SequenceExpression",it,ot)):o=we[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var st=this.startNodeAt(s,v);return st.expression=o,this.finishNode(st,"ParenthesizedExpression")}return o},Rl.parseParenItem=function(i){return i},Rl.parseParenArrowList=function(i,o,s){return this.parseArrowExpression(this.startNodeAt(i,o),s)};var Cl=[];Rl.parseNew=function(){var i=this.startNode(),o=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(ju.dot)){i.meta=o;var s=this.containsEsc;return i.property=this.parseIdent(!0),("target"!==i.property.name||s)&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(i.start,"new.target can only be used in functions"),this.finishNode(i,"MetaProperty")}var v=this.start,_=this.startLoc;return i.callee=this.parseSubscripts(this.parseExprAtom(),v,_,!0),this.options.ecmaVersion>10&&"Import"===i.callee.type&&this.raise(i.callee.start,"Cannot use new with import(...)"),this.eat(ju.parenL)?i.arguments=this.parseExprList(ju.parenR,this.options.ecmaVersion>=8&&"Import"!==i.callee.type,!1):i.arguments=Cl,this.finishNode(i,"NewExpression")},Rl.parseTemplateElement=function(i){var o=i.isTagged,s=this.startNode();return this.type===ju.invalidTemplate?(o||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===ju.backQuote,this.finishNode(s,"TemplateElement")},Rl.parseTemplate=function(i){void 0===i&&(i={});var o=i.isTagged;void 0===o&&(o=!1);var s=this.startNode();this.next(),s.expressions=[];var v=this.parseTemplateElement({isTagged:o});for(s.quasis=[v];!v.tail;)this.type===ju.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(ju.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(ju.braceR),s.quasis.push(v=this.parseTemplateElement({isTagged:o}));return this.next(),this.finishNode(s,"TemplateLiteral")},Rl.isAsyncProp=function(i){return!i.computed&&"Identifier"===i.key.type&&"async"===i.key.name&&(this.type===ju.name||this.type===ju.num||this.type===ju.string||this.type===ju.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===ju.star)&&!Mu.test(this.input.slice(this.lastTokEnd,this.start))},Rl.parseObj=function(i,o){var s=this.startNode(),v=!0,_={};for(s.properties=[],this.next();!this.eat(ju.braceR);){if(v)v=!1;else if(this.expect(ju.comma),this.afterTrailingComma(ju.braceR))break;var $=this.parseProperty(i,o);i||this.checkPropClash($,_,o),s.properties.push($)}return this.finishNode(s,i?"ObjectPattern":"ObjectExpression")},Rl.parseProperty=function(i,o){var s,v,_,$,ae=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(ju.ellipsis))return i?(ae.argument=this.parseIdent(!1),this.type===ju.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(ae,"RestElement")):(this.type===ju.parenL&&o&&(o.parenthesizedAssign<0&&(o.parenthesizedAssign=this.start),o.parenthesizedBind<0&&(o.parenthesizedBind=this.start)),ae.argument=this.parseMaybeAssign(!1,o),this.type===ju.comma&&o&&o.trailingComma<0&&(o.trailingComma=this.start),this.finishNode(ae,"SpreadElement"));this.options.ecmaVersion>=6&&(ae.method=!1,ae.shorthand=!1,(i||o)&&(_=this.start,$=this.startLoc),i||(s=this.eat(ju.star)));var pe=this.containsEsc;return this.parsePropertyName(ae),!i&&!pe&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(ae)?(v=!0,s=this.options.ecmaVersion>=9&&this.eat(ju.star),this.parsePropertyName(ae,o)):v=!1,this.parsePropertyValue(ae,i,s,v,_,$,o,pe),this.finishNode(ae,"Property")},Rl.parsePropertyValue=function(i,o,s,v,_,$,ae,pe){if((s||v)&&this.type===ju.colon&&this.unexpected(),this.eat(ju.colon))i.value=o?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,ae),i.kind="init";else if(this.options.ecmaVersion>=6&&this.type===ju.parenL)o&&this.unexpected(),i.kind="init",i.method=!0,i.value=this.parseMethod(s,v);else if(o||pe||!(this.options.ecmaVersion>=5)||i.computed||"Identifier"!==i.key.type||"get"!==i.key.name&&"set"!==i.key.name||this.type===ju.comma||this.type===ju.braceR)this.options.ecmaVersion>=6&&!i.computed&&"Identifier"===i.key.type?((s||v)&&this.unexpected(),this.checkUnreserved(i.key),"await"!==i.key.name||this.awaitIdentPos||(this.awaitIdentPos=_),i.kind="init",o?i.value=this.parseMaybeDefault(_,$,i.key):this.type===ju.eq&&ae?(ae.shorthandAssign<0&&(ae.shorthandAssign=this.start),i.value=this.parseMaybeDefault(_,$,i.key)):i.value=i.key,i.shorthand=!0):this.unexpected();else{(s||v)&&this.unexpected(),i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);var we="get"===i.kind?0:1;if(i.value.params.length!==we){var _e=i.value.start;"get"===i.kind?this.raiseRecoverable(_e,"getter should have no params"):this.raiseRecoverable(_e,"setter should have exactly one param")}else"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}},Rl.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(ju.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(ju.bracketR),i.key;i.computed=!1}return i.key=this.type===ju.num||this.type===ju.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Rl.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},Rl.parseMethod=function(i,o,s){var v=this.startNode(),_=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.initFunction(v),this.options.ecmaVersion>=6&&(v.generator=i),this.options.ecmaVersion>=8&&(v.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(o,v.generator)|(s?128:0)),this.expect(ju.parenL),v.params=this.parseBindingList(ju.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(v,!1,!0),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(v,"FunctionExpression")},Rl.parseArrowExpression=function(i,o,s){var v=this.yieldPos,_=this.awaitPos,$=this.awaitIdentPos;return this.enterScope(16|functionFlags(s,!1)),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(o,!0),this.parseFunctionBody(i,!0,!1),this.yieldPos=v,this.awaitPos=_,this.awaitIdentPos=$,this.finishNode(i,"ArrowFunctionExpression")},Rl.parseFunctionBody=function(i,o,s){var v=o&&this.type!==ju.braceL,_=this.strict,$=!1;if(v)i.body=this.parseMaybeAssign(),i.expression=!0,this.checkParams(i,!1);else{var ae=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);_&&!ae||($=this.strictDirective(this.end))&&ae&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list");var pe=this.labels;this.labels=[],$&&(this.strict=!0),this.checkParams(i,!_&&!$&&!o&&!s&&this.isSimpleParamList(i.params)),i.body=this.parseBlock(!1),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=pe}this.exitScope(),this.strict&&i.id&&this.checkLVal(i.id,5),this.strict=_},Rl.isSimpleParamList=function(i){for(var o=0,s=i;o-1||_.functions.indexOf(i)>-1||_.var.indexOf(i)>-1,_.lexical.push(i),this.inModule&&1&_.flags&&delete this.undefinedExports[i]}else if(4===o){this.currentScope().lexical.push(i)}else if(3===o){var $=this.currentScope();v=this.treatFunctionsAsVar?$.lexical.indexOf(i)>-1:$.lexical.indexOf(i)>-1||$.var.indexOf(i)>-1,$.functions.push(i)}else for(var ae=this.scopeStack.length-1;ae>=0;--ae){var pe=this.scopeStack[ae];if(pe.lexical.indexOf(i)>-1&&!(32&pe.flags&&pe.lexical[0]===i)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(i)>-1){v=!0;break}if(pe.var.push(i),this.inModule&&1&pe.flags&&delete this.undefinedExports[i],3&pe.flags)break}v&&this.raiseRecoverable(s,"Identifier '"+i+"' has already been declared")},_l.checkLocalExport=function(i){-1===this.scopeStack[0].lexical.indexOf(i.name)&&-1===this.scopeStack[0].var.indexOf(i.name)&&(this.undefinedExports[i.name]=i)},_l.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},_l.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags)return o}},_l.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags&&!(16&o.flags))return o}};var jl=function Node(i,o,s){this.type="",this.start=o,this.end=0,i.options.locations&&(this.loc=new Hu(i,s)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[o,0])},Wl=Xu.prototype;function finishNodeAt(i,o,s,v){return i.type=o,i.end=s,this.options.locations&&(i.loc.end=v),this.options.ranges&&(i.range[1]=s),i}Wl.startNode=function(){return new jl(this,this.start,this.startLoc)},Wl.startNodeAt=function(i,o){return new jl(this,i,o)},Wl.finishNode=function(i,o){return finishNodeAt.call(this,i,o,this.lastTokEnd,this.lastTokEndLoc)},Wl.finishNodeAt=function(i,o,s,v){return finishNodeAt.call(this,i,o,s,v)};var ec=function TokContext(i,o,s,v,_){this.token=i,this.isExpr=!!o,this.preserveSpace=!!s,this.override=v,this.generator=!!_},ic={b_stat:new ec("{",!1),b_expr:new ec("{",!0),b_tmpl:new ec("${",!1),p_stat:new ec("(",!1),p_expr:new ec("(",!0),q_tmpl:new ec("`",!0,!0,(function(i){return i.tryReadTemplateToken()})),f_stat:new ec("function",!1),f_expr:new ec("function",!0),f_expr_gen:new ec("function",!0,!1,null,!0),f_gen:new ec("function",!1,!1,null,!0)},hc=Xu.prototype;hc.initialContext=function(){return[ic.b_stat]},hc.braceIsBlock=function(i){var o=this.curContext();return o===ic.f_expr||o===ic.f_stat||(i!==ju.colon||o!==ic.b_stat&&o!==ic.b_expr?i===ju._return||i===ju.name&&this.exprAllowed?Mu.test(this.input.slice(this.lastTokEnd,this.start)):i===ju._else||i===ju.semi||i===ju.eof||i===ju.parenR||i===ju.arrow||(i===ju.braceL?o===ic.b_stat:i!==ju._var&&i!==ju._const&&i!==ju.name&&!this.exprAllowed):!o.isExpr)},hc.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var o=this.context[i];if("function"===o.token)return o.generator}return!1},hc.updateContext=function(i){var o,s=this.type;s.keyword&&i===ju.dot?this.exprAllowed=!1:(o=s.updateContext)?o.call(this,i):this.exprAllowed=s.beforeExpr},ju.parenR.updateContext=ju.braceR.updateContext=function(){if(1!==this.context.length){var i=this.context.pop();i===ic.b_stat&&"function"===this.curContext().token&&(i=this.context.pop()),this.exprAllowed=!i.isExpr}else this.exprAllowed=!0},ju.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?ic.b_stat:ic.b_expr),this.exprAllowed=!0},ju.dollarBraceL.updateContext=function(){this.context.push(ic.b_tmpl),this.exprAllowed=!0},ju.parenL.updateContext=function(i){var o=i===ju._if||i===ju._for||i===ju._with||i===ju._while;this.context.push(o?ic.p_stat:ic.p_expr),this.exprAllowed=!0},ju.incDec.updateContext=function(){},ju._function.updateContext=ju._class.updateContext=function(i){!i.beforeExpr||i===ju.semi||i===ju._else||i===ju._return&&Mu.test(this.input.slice(this.lastTokEnd,this.start))||(i===ju.colon||i===ju.braceL)&&this.curContext()===ic.b_stat?this.context.push(ic.f_stat):this.context.push(ic.f_expr),this.exprAllowed=!1},ju.backQuote.updateContext=function(){this.curContext()===ic.q_tmpl?this.context.pop():this.context.push(ic.q_tmpl),this.exprAllowed=!1},ju.star.updateContext=function(i){if(i===ju._function){var o=this.context.length-1;this.context[o]===ic.f_expr?this.context[o]=ic.f_expr_gen:this.context[o]=ic.f_gen}this.exprAllowed=!0},ju.name.updateContext=function(i){var o=!1;this.options.ecmaVersion>=6&&i!==ju.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(o=!0),this.exprAllowed=o};var gc="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",mc=gc+" Extended_Pictographic",_c={9:gc,10:mc,11:mc},Ec="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",jc="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Vc=jc+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ah={9:jc,10:Vc,11:Vc+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ch={};function buildUnicodeData(i){var o=ch[i]={binary:wordsRegexp(_c[i]+" "+Ec),nonBinary:{General_Category:wordsRegexp(Ec),Script:wordsRegexp(ah[i])}};o.nonBinary.Script_Extensions=o.nonBinary.Script,o.nonBinary.gc=o.nonBinary.General_Category,o.nonBinary.sc=o.nonBinary.Script,o.nonBinary.scx=o.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var vh=Xu.prototype,bh=function RegExpValidationState(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ch[i.options.ecmaVersion>=11?11:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function isSyntaxCharacter(i){return 36===i||i>=40&&i<=43||46===i||63===i||i>=91&&i<=94||i>=123&&i<=125}function isRegExpIdentifierStart(i){return isIdentifierStart(i,!0)||36===i||95===i}function isRegExpIdentifierPart(i){return isIdentifierChar(i,!0)||36===i||95===i||8204===i||8205===i}function isControlLetter(i){return i>=65&&i<=90||i>=97&&i<=122}function isCharacterClassEscape(i){return 100===i||68===i||115===i||83===i||119===i||87===i}function isUnicodePropertyNameCharacter(i){return isControlLetter(i)||95===i}function isUnicodePropertyValueCharacter(i){return isUnicodePropertyNameCharacter(i)||isDecimalDigit(i)}function isDecimalDigit(i){return i>=48&&i<=57}function isHexDigit(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function hexToInt(i){return i>=65&&i<=70?i-65+10:i>=97&&i<=102?i-97+10:i-48}function isOctalDigit(i){return i>=48&&i<=55}bh.prototype.reset=function reset(i,o,s){var v=-1!==s.indexOf("u");this.start=0|i,this.source=o+"",this.flags=s,this.switchU=v&&this.parser.options.ecmaVersion>=6,this.switchN=v&&this.parser.options.ecmaVersion>=9},bh.prototype.raise=function raise(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)},bh.prototype.at=function at(i){var o=this.source,s=o.length;if(i>=s)return-1;var v=o.charCodeAt(i);if(!this.switchU||v<=55295||v>=57344||i+1>=s)return v;var _=o.charCodeAt(i+1);return _>=56320&&_<=57343?(v<<10)+_-56613888:v},bh.prototype.nextIndex=function nextIndex(i){var o=this.source,s=o.length;if(i>=s)return s;var v,_=o.charCodeAt(i);return!this.switchU||_<=55295||_>=57344||i+1>=s||(v=o.charCodeAt(i+1))<56320||v>57343?i+1:i+2},bh.prototype.current=function current(){return this.at(this.pos)},bh.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},bh.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},bh.prototype.eat=function eat(i){return this.current()===i&&(this.advance(),!0)},vh.validateRegExpFlags=function(i){for(var o=i.validFlags,s=i.flags,v=0;v-1&&this.raise(i.start,"Duplicate regular expression flag")}},vh.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&i.groupNames.length>0&&(i.switchN=!0,this.regexp_pattern(i))},vh.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames.length=0,i.backReferenceNames.length=0,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var o=0,s=i.backReferenceNames;o=9&&(s=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!s,!0}return i.pos=o,!1},vh.regexp_eatQuantifier=function(i,o){return void 0===o&&(o=!1),!!this.regexp_eatQuantifierPrefix(i,o)&&(i.eat(63),!0)},vh.regexp_eatQuantifierPrefix=function(i,o){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,o)},vh.regexp_eatBracedQuantifier=function(i,o){var s=i.pos;if(i.eat(123)){var v=0,_=-1;if(this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(_=i.lastIntValue),i.eat(125)))return-1!==_&&_=9?this.regexp_groupSpecifier(i):63===i.current()&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},vh.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},vh.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},vh.regexp_eatSyntaxCharacter=function(i){var o=i.current();return!!isSyntaxCharacter(o)&&(i.lastIntValue=o,i.advance(),!0)},vh.regexp_eatPatternCharacters=function(i){for(var o=i.pos,s=0;-1!==(s=i.current())&&!isSyntaxCharacter(s);)i.advance();return i.pos!==o},vh.regexp_eatExtendedPatternCharacter=function(i){var o=i.current();return!(-1===o||36===o||o>=40&&o<=43||46===o||63===o||91===o||94===o||124===o)&&(i.advance(),!0)},vh.regexp_groupSpecifier=function(i){if(i.eat(63)){if(this.regexp_eatGroupName(i))return-1!==i.groupNames.indexOf(i.lastStringValue)&&i.raise("Duplicate capture group name"),void i.groupNames.push(i.lastStringValue);i.raise("Invalid group")}},vh.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},vh.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=codePointToString(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=codePointToString(i.lastIntValue);return!0}return!1},vh.regexp_eatRegExpIdentifierStart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),isRegExpIdentifierStart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},vh.regexp_eatRegExpIdentifierPart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),isRegExpIdentifierPart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},vh.regexp_eatAtomEscape=function(i){return!!(this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i))||(i.switchU&&(99===i.current()&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},vh.regexp_eatBackReference=function(i){var o=i.pos;if(this.regexp_eatDecimalEscape(i)){var s=i.lastIntValue;if(i.switchU)return s>i.maxBackReference&&(i.maxBackReference=s),!0;if(s<=i.numCapturingParens)return!0;i.pos=o}return!1},vh.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},vh.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},vh.regexp_eatCControlLetter=function(i){var o=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=o}return!1},vh.regexp_eatZero=function(i){return 48===i.current()&&!isDecimalDigit(i.lookahead())&&(i.lastIntValue=0,i.advance(),!0)},vh.regexp_eatControlEscape=function(i){var o=i.current();return 116===o?(i.lastIntValue=9,i.advance(),!0):110===o?(i.lastIntValue=10,i.advance(),!0):118===o?(i.lastIntValue=11,i.advance(),!0):102===o?(i.lastIntValue=12,i.advance(),!0):114===o&&(i.lastIntValue=13,i.advance(),!0)},vh.regexp_eatControlLetter=function(i){var o=i.current();return!!isControlLetter(o)&&(i.lastIntValue=o%32,i.advance(),!0)},vh.regexp_eatRegExpUnicodeEscapeSequence=function(i){var o,s=i.pos;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var v=i.lastIntValue;if(i.switchU&&v>=55296&&v<=56319){var _=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var $=i.lastIntValue;if($>=56320&&$<=57343)return i.lastIntValue=1024*(v-55296)+($-56320)+65536,!0}i.pos=_,i.lastIntValue=v}return!0}if(i.switchU&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&((o=i.lastIntValue)>=0&&o<=1114111))return!0;i.switchU&&i.raise("Invalid unicode escape"),i.pos=s}return!1},vh.regexp_eatIdentityEscape=function(i){if(i.switchU)return!!this.regexp_eatSyntaxCharacter(i)||!!i.eat(47)&&(i.lastIntValue=47,!0);var o=i.current();return!(99===o||i.switchN&&107===o)&&(i.lastIntValue=o,i.advance(),!0)},vh.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var o=i.current();if(o>=49&&o<=57){do{i.lastIntValue=10*i.lastIntValue+(o-48),i.advance()}while((o=i.current())>=48&&o<=57);return!0}return!1},vh.regexp_eatCharacterClassEscape=function(i){var o=i.current();if(isCharacterClassEscape(o))return i.lastIntValue=-1,i.advance(),!0;if(i.switchU&&this.options.ecmaVersion>=9&&(80===o||112===o)){if(i.lastIntValue=-1,i.advance(),i.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(i)&&i.eat(125))return!0;i.raise("Invalid property name")}return!1},vh.regexp_eatUnicodePropertyValueExpression=function(i){var o=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var s=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,s,v),!0}}if(i.pos=o,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var _=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,_),!0}return!1},vh.regexp_validateUnicodePropertyNameAndValue=function(i,o,s){has(i.unicodeProperties.nonBinary,o)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[o].test(s)||i.raise("Invalid property value")},vh.regexp_validateUnicodePropertyNameOrValue=function(i,o){i.unicodeProperties.binary.test(o)||i.raise("Invalid property name")},vh.regexp_eatUnicodePropertyName=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyNameCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},vh.regexp_eatUnicodePropertyValue=function(i){var o=0;for(i.lastStringValue="";isUnicodePropertyValueCharacter(o=i.current());)i.lastStringValue+=codePointToString(o),i.advance();return""!==i.lastStringValue},vh.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},vh.regexp_eatCharacterClass=function(i){if(i.eat(91)){if(i.eat(94),this.regexp_classRanges(i),i.eat(93))return!0;i.raise("Unterminated character class")}return!1},vh.regexp_classRanges=function(i){for(;this.regexp_eatClassAtom(i);){var o=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var s=i.lastIntValue;!i.switchU||-1!==o&&-1!==s||i.raise("Invalid character class"),-1!==o&&-1!==s&&o>s&&i.raise("Range out of order in character class")}}},vh.regexp_eatClassAtom=function(i){var o=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var s=i.current();(99===s||isOctalDigit(s))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=o}var v=i.current();return 93!==v&&(i.lastIntValue=v,i.advance(),!0)},vh.regexp_eatClassEscape=function(i){var o=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=o}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},vh.regexp_eatClassControlLetter=function(i){var o=i.current();return!(!isDecimalDigit(o)&&95!==o)&&(i.lastIntValue=o%32,i.advance(),!0)},vh.regexp_eatHexEscapeSequence=function(i){var o=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=o}return!1},vh.regexp_eatDecimalDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isDecimalDigit(s=i.current());)i.lastIntValue=10*i.lastIntValue+(s-48),i.advance();return i.pos!==o},vh.regexp_eatHexDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;isHexDigit(s=i.current());)i.lastIntValue=16*i.lastIntValue+hexToInt(s),i.advance();return i.pos!==o},vh.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var o=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var s=i.lastIntValue;o<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=64*o+8*s+i.lastIntValue:i.lastIntValue=8*o+s}else i.lastIntValue=o;return!0}return!1},vh.regexp_eatOctalDigit=function(i){var o=i.current();return isOctalDigit(o)?(i.lastIntValue=o-48,i.advance(),!0):(i.lastIntValue=0,!1)},vh.regexp_eatFixedHexDigits=function(i,o){var s=i.pos;i.lastIntValue=0;for(var v=0;v>10),56320+(1023&i)))}jh.next=function(){this.options.onToken&&this.options.onToken(new _h(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},jh.getToken=function(){return this.next(),new _h(this)},"undefined"!=typeof Symbol&&(jh[Symbol.iterator]=function(){var i=this;return{next:function(){var o=i.getToken();return{done:o.type===ju.eof,value:o}}}}),jh.curContext=function(){return this.context[this.context.length-1]},jh.nextToken=function(){var i=this.curContext();return i&&i.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(ju.eof):i.override?i.override(this):void this.readToken(this.fullCharCodeAtPos())},jh.readToken=function(i){return isIdentifierStart(i,this.options.ecmaVersion>=6)||92===i?this.readWord():this.getTokenFromCode(i)},jh.fullCharCodeAtPos=function(){var i=this.input.charCodeAt(this.pos);return i<=55295||i>=57344?i:(i<<10)+this.input.charCodeAt(this.pos+1)-56613888},jh.skipBlockComment=function(){var i,o=this.options.onComment&&this.curPosition(),s=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(-1===v&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(Qu.lastIndex=s;(i=Qu.exec(this.input))&&i.index8&&i<14||i>=5760&&Vu.test(String.fromCharCode(i))))break e;++this.pos}}},jh.finishToken=function(i,o){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=i,this.value=o,this.updateContext(s)},jh.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var o=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===i&&46===o?(this.pos+=3,this.finishToken(ju.ellipsis)):(++this.pos,this.finishToken(ju.dot))},jh.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===i?this.finishOp(ju.assign,2):this.finishOp(ju.slash,1)},jh.readToken_mult_modulo_exp=function(i){var o=this.input.charCodeAt(this.pos+1),s=1,v=42===i?ju.star:ju.modulo;return this.options.ecmaVersion>=7&&42===i&&42===o&&(++s,v=ju.starstar,o=this.input.charCodeAt(this.pos+2)),61===o?this.finishOp(ju.assign,s+1):this.finishOp(v,s)},jh.readToken_pipe_amp=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?this.finishOp(124===i?ju.logicalOR:ju.logicalAND,2):61===o?this.finishOp(ju.assign,2):this.finishOp(124===i?ju.bitwiseOR:ju.bitwiseAND,1)},jh.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(ju.assign,2):this.finishOp(ju.bitwiseXOR,1)},jh.readToken_plus_min=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?45!==o||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Mu.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(ju.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===o?this.finishOp(ju.assign,2):this.finishOp(ju.plusMin,1)},jh.readToken_lt_gt=function(i){var o=this.input.charCodeAt(this.pos+1),s=1;return o===i?(s=62===i&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(ju.assign,s+1):this.finishOp(ju.bitShift,s)):33!==o||60!==i||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===o&&(s=2),this.finishOp(ju.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},jh.readToken_eq_excl=function(i){var o=this.input.charCodeAt(this.pos+1);return 61===o?this.finishOp(ju.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===i&&62===o&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(ju.arrow)):this.finishOp(61===i?ju.eq:ju.prefix,1)},jh.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(ju.parenL);case 41:return++this.pos,this.finishToken(ju.parenR);case 59:return++this.pos,this.finishToken(ju.semi);case 44:return++this.pos,this.finishToken(ju.comma);case 91:return++this.pos,this.finishToken(ju.bracketL);case 93:return++this.pos,this.finishToken(ju.bracketR);case 123:return++this.pos,this.finishToken(ju.braceL);case 125:return++this.pos,this.finishToken(ju.braceR);case 58:return++this.pos,this.finishToken(ju.colon);case 63:return++this.pos,this.finishToken(ju.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(ju.backQuote);case 48:var o=this.input.charCodeAt(this.pos+1);if(120===o||88===o)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===o||79===o)return this.readRadixNumber(8);if(98===o||66===o)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 126:return this.finishOp(ju.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(i)+"'")},jh.finishOp=function(i,o){var s=this.input.slice(this.pos,this.pos+o);return this.pos+=o,this.finishToken(i,s)},jh.readRegexp=function(){for(var i,o,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var v=this.input.charAt(this.pos);if(Mu.test(v)&&this.raise(s,"Unterminated regular expression"),i)i=!1;else{if("["===v)o=!0;else if("]"===v&&o)o=!1;else if("/"===v&&!o)break;i="\\"===v}++this.pos}var _=this.input.slice(s,this.pos);++this.pos;var $=this.pos,ae=this.readWord1();this.containsEsc&&this.unexpected($);var pe=this.regexpState||(this.regexpState=new bh(this));pe.reset(s,_,ae),this.validateRegExpFlags(pe),this.validateRegExpPattern(pe);var we=null;try{we=new RegExp(_,ae)}catch(i){}return this.finishToken(ju.regexp,{pattern:_,flags:ae,value:we})},jh.readInt=function(i,o){for(var s=this.pos,v=0,_=0,$=null==o?1/0:o;_<$;++_){var ae=this.input.charCodeAt(this.pos),pe=void 0;if((pe=ae>=97?ae-97+10:ae>=65?ae-65+10:ae>=48&&ae<=57?ae-48:1/0)>=i)break;++this.pos,v=v*i+pe}return this.pos===s||null!=o&&this.pos-s!==o?null:v},jh.readRadixNumber=function(i){var o=this.pos;this.pos+=2;var s=this.readInt(i);return null==s&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s="undefined"!=typeof BigInt?BigInt(this.input.slice(o,this.pos)):null,++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ju.num,s)},jh.readNumber=function(i){var o=this.pos;i||null!==this.readInt(10)||this.raise(o,"Invalid number");var s=this.pos-o>=2&&48===this.input.charCodeAt(o);s&&this.strict&&this.raise(o,"Invalid number"),s&&/[89]/.test(this.input.slice(o,this.pos))&&(s=!1);var v=this.input.charCodeAt(this.pos);if(!s&&!i&&this.options.ecmaVersion>=11&&110===v){var _=this.input.slice(o,this.pos),$="undefined"!=typeof BigInt?BigInt(_):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(ju.num,$)}46!==v||s||(++this.pos,this.readInt(10),v=this.input.charCodeAt(this.pos)),69!==v&&101!==v||s||(43!==(v=this.input.charCodeAt(++this.pos))&&45!==v||++this.pos,null===this.readInt(10)&&this.raise(o,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var ae=this.input.slice(o,this.pos),pe=s?parseInt(ae,8):parseFloat(ae);return this.finishToken(ju.num,pe)},jh.readCodePoint=function(){var i;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(o,"Code point out of bounds")}else i=this.readHexChar(4);return i},jh.readString=function(i){for(var o="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var v=this.input.charCodeAt(this.pos);if(v===i)break;92===v?(o+=this.input.slice(s,this.pos),o+=this.readEscapedChar(!1),s=this.pos):(isNewLine(v,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return o+=this.input.slice(s,this.pos++),this.finishToken(ju.string,o)};var ep={};jh.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i!==ep)throw i;this.readInvalidTemplateToken()}this.inTemplateElement=!1},jh.invalidStringToken=function(i,o){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ep;this.raise(i,o)},jh.readTmplToken=function(){for(var i="",o=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==ju.template&&this.type!==ju.invalidTemplate?(i+=this.input.slice(o,this.pos),this.finishToken(ju.template,i)):36===s?(this.pos+=2,this.finishToken(ju.dollarBraceL)):(++this.pos,this.finishToken(ju.backQuote));if(92===s)i+=this.input.slice(o,this.pos),i+=this.readEscapedChar(!0),o=this.pos;else if(isNewLine(s)){switch(i+=this.input.slice(o,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:i+="\n";break;default:i+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),o=this.pos}else++this.pos}},jh.readInvalidTemplateToken=function(){for(;this.pos=48&&o<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],v=parseInt(s,8);return v>255&&(s=s.slice(0,-1),v=parseInt(s,8)),this.pos+=s.length-1,o=this.input.charCodeAt(this.pos),"0"===s&&56!==o&&57!==o||!this.strict&&!i||this.invalidStringToken(this.pos-1-s.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(v)}return isNewLine(o)?"":String.fromCharCode(o)}},jh.readHexChar=function(i){var o=this.pos,s=this.readInt(16,i);return null===s&&this.invalidStringToken(o,"Bad character escape sequence"),s},jh.readWord1=function(){this.containsEsc=!1;for(var i="",o=!0,s=this.pos,v=this.options.ecmaVersion>=6;this.poso)return{line:s+1,column:o-$,char:s};$=ae}throw new Error("Could not determine location of character")}function pad(i,o){var s=String(i);return s+repeat(" ",o-s.length)}function repeat(i,o){for(var s="";o--;)s+=i;return s}function getSnippet(i,o,s){void 0===s&&(s=1);var v=Math.max(o.line-5,0),_=o.line,$=String(_).length,ae=i.split("\n").slice(v,_),pe=ae[ae.length-1].slice(0,o.column).replace(/\t/g," ").length,we=ae.map((function(i,o){return pad(o+v+1,$)+" : "+i.replace(/\t/g," ")})).join("\n");return we+="\n"+repeat(" ",$+3+pe)+repeat("^",s)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach((function(i){return lp[i]=!0})),buble_browser_es_Scope.prototype={addDeclaration:function addDeclaration(i,o){for(var s=0,v=extractNames(i);s1&&(et=o($),pe.push((function(o,s,pe){i.prependRight(_.start,(ae?"":s+"var ")+et+" = "),i.overwrite(_.start,v=_.start+1,$),i.appendLeft(v,pe),i.overwrite(_.start,v=_.start+1,(ae?"":s+"var ")+et+" = "+$+pe),i.move(_.start,v,o)}))),destructureObjectPattern(i,o,s,_,et,ae,pe);break;case"ArrayPattern":if(i.remove(v,v=_.start),_.elements.filter(Boolean).length>1){var tt=o($);pe.push((function(o,s,pe){i.prependRight(_.start,(ae?"":s+"var ")+tt+" = "),i.overwrite(_.start,v=_.start+1,$,{contentOnly:!0}),i.appendLeft(v,pe),i.move(_.start,v,o)})),_.elements.forEach((function(_,$){_&&("RestElement"===_.type?handleProperty(i,o,s,v,_.argument,tt+".slice("+$+")",ae,pe):handleProperty(i,o,s,v,_,tt+"["+$+"]",ae,pe),v=_.end)}))}else{var nt=findIndex(_.elements,Boolean),rt=_.elements[nt];"RestElement"===rt.type?handleProperty(i,o,s,v,rt.argument,$+".slice("+nt+")",ae,pe):handleProperty(i,o,s,v,rt,$+"["+nt+"]",ae,pe),v=rt.end}i.remove(v,_.end);break;default:throw new Error("Unexpected node type in destructuring ("+_.type+")")}}var pp=function(i){function BlockStatement(){i.apply(this,arguments)}return i&&(BlockStatement.__proto__=i),BlockStatement.prototype=Object.create(i&&i.prototype),BlockStatement.prototype.constructor=BlockStatement,BlockStatement.prototype.createScope=function createScope(){var i=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new buble_browser_es_Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(o){return i.createdDeclarations.push(o)}}),this.parentIsFunction&&this.parent.params.forEach((function(o){i.scope.addDeclaration(o,"param")}))},BlockStatement.prototype.initialise=function initialise(i){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach((function(o){return o.initialise(i)})),this.scope.consolidate()},BlockStatement.prototype.findLexicalBoundary=function findLexicalBoundary(){return"Program"===this.type||/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},BlockStatement.prototype.findScope=function findScope(i){return i&&!this.isFunctionBlock?this.parent.findScope(i):this.scope},BlockStatement.prototype.getArgumentsAlias=function getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},BlockStatement.prototype.getArgumentsArrayAlias=function getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},BlockStatement.prototype.getThisAlias=function getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},BlockStatement.prototype.getIndentation=function getIndentation(){if(void 0===this.indentation){for(var i=this.program.magicString.original,o=this.synthetic||!this.body.length,s=o?this.start:this.body[0].start;s&&"\n"!==i[s];)s-=1;for(this.indentation="";;){var v=i[s+=1];if(" "!==v&&"\t"!==v)break;this.indentation+=v}for(var _=this.program.magicString.getIndentString(),$=this.parent;$;)"constructor"!==$.kind||$.parent.parent.superClass||(this.indentation=this.indentation.replace(_,"")),$=$.parent;o&&(this.indentation+=_)}return this.indentation},BlockStatement.prototype.transpile=function transpile(o,s){var v,_,$=this,ae=this.getIndentation(),pe=[];if(this.argumentsAlias&&pe.push((function(i,s,v){var _=s+"var "+$.argumentsAlias+" = arguments"+v;o.appendLeft(i,_)})),this.thisAlias&&pe.push((function(i,s,v){var _=s+"var "+$.thisAlias+" = this"+v;o.appendLeft(i,_)})),this.argumentsArrayAlias&&pe.push((function(i,s,v){var _=$.scope.createIdentifier("i"),pe=s+"var "+_+" = arguments.length, "+$.argumentsArrayAlias+" = Array("+_+");\n"+ae+"while ( "+_+"-- ) "+$.argumentsArrayAlias+"["+_+"] = arguments["+_+"]"+v;o.appendLeft(i,pe)})),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,o,s,ae,pe):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],o,s,ae,pe),s.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(o),i.prototype.transpile.call(this,o,s),this.createdDeclarations.length&&pe.push((function(i,s,v){var _=s+"var "+$.createdDeclarations.join(", ")+v;o.appendLeft(i,_)})),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var we=this.body[0];pe.length?(o.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),o.prependRight(we.start,"\n"+ae+"return "),o.appendLeft(we.end,";\n")):s.arrow&&(o.prependRight(we.start,"{ return "),o.appendLeft(we.end,"; }"))}else pe.length&&o.prependRight(this.start,"{").appendLeft(this.end,"}");_=this.body[0],v=_&&"ExpressionStatement"===_.type&&"Literal"===_.expression.type&&"use strict"===_.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var _e="\n"+ae,et=";";pe.forEach((function(i,o){o===pe.length-1&&(et=";\n"),i(v,_e,et)}))},BlockStatement.prototype.transpileParameters=function transpileParameters(i,o,s,v,_){var $=this;i.forEach((function(ae){if("AssignmentPattern"===ae.type&&"Identifier"===ae.left.type)s.defaultParameter&&_.push((function(i,s,v){var _=s+"if ( "+ae.left.name+" === void 0 ) "+ae.left.name;o.prependRight(ae.left.end,_).move(ae.left.end,ae.right.end,i).appendLeft(ae.right.end,v)}));else if("RestElement"===ae.type)s.spreadRest&&_.push((function(s,_,pe){var we=i[i.length-2];if(we)o.remove(we?we.end:ae.start,ae.end);else{for(var _e=ae.start,et=ae.end;/\s/.test(o.original[_e-1]);)_e-=1;for(;/\s/.test(o.original[et]);)et+=1;o.remove(_e,et)}var tt=ae.argument.name,nt=$.scope.createIdentifier("len"),rt=i.length-1;rt?o.prependRight(s,_+"var "+tt+" = [], "+nt+" = arguments.length - "+rt+";\n"+v+"while ( "+nt+"-- > 0 ) "+tt+"[ "+nt+" ] = arguments[ "+nt+" + "+rt+" ]"+pe):o.prependRight(s,_+"var "+tt+" = [], "+nt+" = arguments.length;\n"+v+"while ( "+nt+"-- ) "+tt+"[ "+nt+" ] = arguments[ "+nt+" ]"+pe)}));else if("Identifier"!==ae.type&&s.parameterDestructuring){var pe=$.scope.createIdentifier("ref");destructure(o,(function(i){return $.scope.createIdentifier(i)}),(function(i){var o=i.name;return $.scope.resolveName(o)}),ae,pe,!1,_),o.prependRight(ae.start,pe)}}))},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(i){var o=this;Object.keys(this.scope.blockScopedDeclarations).forEach((function(s){for(var v=0,_=o.scope.blockScopedDeclarations[s];v<_.length;v+=1){var $=_[v],ae=!1;if("for.let"===$.kind){var pe=$.node.findNearest("ForStatement");if(pe.shouldRewriteAsFunction){var we=o.scope.createIdentifier(s),_e=pe.reassigned[s]?o.scope.createIdentifier(s):s;$.name=we,i.overwrite($.node.start,$.node.end,we,{storeName:!0}),pe.aliases[s]={outer:we,inner:_e};for(var et=0,tt=$.instances;etthis.start?o.overwrite(this.start,pe,_e):o.prependRight(this.start,_e)}else i.prototype.transpile.call(this,o,s);s.trailingFunctionCommas&&this.params.length&&!$&&removeTrailingComma(o,this.params[this.params.length-1].end)},ArrowFunctionExpression.prototype.needsArguments=function needsArguments(i){return i.spreadRest&&this.params.filter((function(i){return"RestElement"===i.type})).length>0},ArrowFunctionExpression}(dp);function checkConst(i,o){var s=o.findDeclaration(i.name);if(s&&"const"===s.kind)throw new cp(i.name+" is read-only",i)}var mp=function(i){function AssignmentExpression(){i.apply(this,arguments)}return i&&(AssignmentExpression.__proto__=i),AssignmentExpression.prototype=Object.create(i&&i.prototype),AssignmentExpression.prototype.constructor=AssignmentExpression,AssignmentExpression.prototype.initialise=function initialise(o){if("Identifier"===this.left.type){var s=this.findScope(!1).findDeclaration(this.left.name),v=s&&s.node.ancestor(3);v&&"ForStatement"===v.type&&v.body.contains(this)&&(v.reassigned[this.left.name]=!0)}i.prototype.initialise.call(this,o)},AssignmentExpression.prototype.transpile=function transpile(o,s){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&s.exponentiation?this.transpileExponentiation(o,s):/Pattern/.test(this.left.type)&&s.destructuring&&this.transpileDestructuring(o),i.prototype.transpile.call(this,o,s)},AssignmentExpression.prototype.transpileDestructuring=function transpileDestructuring(i){var o=this,s=this.findScope(!0),v=this.findScope(!1),_=s.createDeclaration("assign");i.appendRight(this.left.end,"("+_),i.appendLeft(this.right.end,", ");var $=[];destructure(i,(function(i){return s.createDeclaration(i)}),(function(i){var o=v.resolveName(i.name);return checkConst(i,v),o}),this.left,_,!0,$);var ae=", ";$.forEach((function(i,s){s===$.length-1&&(ae=""),i(o.end,"",ae)})),"ExpressionStatement"===this.unparenthesizedParent().type?i.prependRight(this.end,")"):i.appendRight(this.end,", "+_+")")},AssignmentExpression.prototype.transpileExponentiation=function transpileExponentiation(i){for(var o,s=this.findScope(!1),v=this.left.end;"*"!==i.original[v];)v+=1;i.remove(v,v+2);var _=this.left.unparenthesize();if("Identifier"===_.type)o=s.resolveName(_.name);else if("MemberExpression"===_.type){var $,ae,pe=!1,we=!1,_e=this.findNearest(/(?:Statement|Declaration)$/),et=_e.getIndentation();"Identifier"===_.property.type?ae=_.computed?s.resolveName(_.property.name):_.property.name:(ae=s.createDeclaration("property"),we=!0),"Identifier"===_.object.type?$=s.resolveName(_.object.name):($=s.createDeclaration("object"),pe=!0),_.start===_e.start?pe&&we?(i.prependRight(_e.start,$+" = "),i.overwrite(_.object.end,_.property.start,";\n"+et+ae+" = "),i.overwrite(_.property.end,_.end,";\n"+et+$+"["+ae+"]")):pe?(i.prependRight(_e.start,$+" = "),i.appendLeft(_.object.end,";\n"+et),i.appendLeft(_.object.end,$)):we&&(i.prependRight(_.property.start,ae+" = "),i.appendLeft(_.property.end,";\n"+et),i.move(_.property.start,_.property.end,this.start),i.appendLeft(_.object.end,"["+ae+"]"),i.remove(_.object.end,_.property.start),i.remove(_.property.end,_.end)):(pe&&we?(i.prependRight(_.start,"( "+$+" = "),i.overwrite(_.object.end,_.property.start,", "+ae+" = "),i.overwrite(_.property.end,_.end,", "+$+"["+ae+"]")):pe?(i.prependRight(_.start,"( "+$+" = "),i.appendLeft(_.object.end,", "+$)):we&&(i.prependRight(_.property.start,"( "+ae+" = "),i.appendLeft(_.property.end,", "),i.move(_.property.start,_.property.end,_.start),i.overwrite(_.object.end,_.property.start,"["+ae+"]"),i.remove(_.property.end,_.end)),we&&i.appendLeft(this.end," )")),o=$+(_.computed||we?"["+ae+"]":"."+ae)}i.prependRight(this.right.start,"Math.pow( "+o+", "),i.appendLeft(this.right.end," )")},AssignmentExpression}(dp),yp=function(i){function AwaitExpression(){i.apply(this,arguments)}return i&&(AwaitExpression.__proto__=i),AwaitExpression.prototype=Object.create(i&&i.prototype),AwaitExpression.prototype.constructor=AwaitExpression,AwaitExpression.prototype.initialise=function initialise(o){o.asyncAwait&&cp.missingTransform("await","asyncAwait",this),i.prototype.initialise.call(this,o)},AwaitExpression}(dp),vp=function(i){function BinaryExpression(){i.apply(this,arguments)}return i&&(BinaryExpression.__proto__=i),BinaryExpression.prototype=Object.create(i&&i.prototype),BinaryExpression.prototype.constructor=BinaryExpression,BinaryExpression.prototype.transpile=function transpile(o,s){"**"===this.operator&&s.exponentiation&&(o.prependRight(this.start,"Math.pow( "),o.overwrite(this.left.end,this.right.start,", "),o.appendLeft(this.end," )")),i.prototype.transpile.call(this,o,s)},BinaryExpression}(dp),Rp=/(?:For(?:In|Of)?|While)Statement/,bp=function(i){function BreakStatement(){i.apply(this,arguments)}return i&&(BreakStatement.__proto__=i),BreakStatement.prototype=Object.create(i&&i.prototype),BreakStatement.prototype.constructor=BreakStatement,BreakStatement.prototype.initialise=function initialise(){var i=this.findNearest(Rp),o=this.findNearest("SwitchCase");i&&(!o||i.depth>o.depth)&&(i.canBreak=!0,this.loop=i)},BreakStatement.prototype.transpile=function transpile(i){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new cp("Labels are not currently supported in a loop with locally-scoped variables",this);i.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(dp),Op=function(i){function CallExpression(){i.apply(this,arguments)}return i&&(CallExpression.__proto__=i),CallExpression.prototype=Object.create(i&&i.prototype),CallExpression.prototype.constructor=CallExpression,CallExpression.prototype.initialise=function initialise(o){if(o.spreadRest&&this.arguments.length>1)for(var s=this.findLexicalBoundary(),v=this.arguments.length;v--;){var _=this.arguments[v];"SpreadElement"===_.type&&isArguments(_.argument)&&(this.argumentsArrayAlias=s.getArgumentsArrayAlias())}i.prototype.initialise.call(this,o)},CallExpression.prototype.transpile=function transpile(o,s){if(s.spreadRest&&this.arguments.length&&inlineSpreads(o,this,this.arguments),s.spreadRest&&this.arguments.length){var v,_=!1,$=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===$.type&&(o.remove($.start,$.argument.start),_=!0):_=spread(o,this.arguments,$.start,this.argumentsArrayAlias),_){var ae=null;if("Super"===this.callee.type?ae=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(ae=this.callee.object),ae||"MemberExpression"!==this.callee.type)v="void 0";else if("Identifier"===this.callee.object.type)v=this.callee.object.name;else{v=this.findScope(!0).createDeclaration("ref");var pe=this.callee.object;o.prependRight(pe.start,"("+v+" = "),o.appendLeft(pe.end,")")}o.appendLeft(this.callee.end,".apply"),ae?(ae.noCall=!0,this.arguments.length>1&&("SpreadElement"===$.type?needsParentheses($.argument)&&o.prependRight($.start,"( "):o.prependRight($.start,"[ "),o.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?o.prependRight($.start,v+", "):("SpreadElement"===$.type?needsParentheses($.argument)?o.appendLeft($.start,v+", ( "):o.appendLeft($.start,v+", "):o.appendLeft($.start,v+", [ "),o.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}s.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(o,this.arguments[this.arguments.length-1].end),i.prototype.transpile.call(this,o,s)},CallExpression}(dp),xp=function(i){function CatchClause(){i.apply(this,arguments)}return i&&(CatchClause.__proto__=i),CatchClause.prototype=Object.create(i&&i.prototype),CatchClause.prototype.constructor=CatchClause,CatchClause.prototype.initialise=function initialise(o){var s=this;this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),this.scope.addDeclaration(this.param,"catch"),i.prototype.initialise.call(this,o),this.scope.consolidate()},CatchClause.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},CatchClause}(dp),wp=function(i){function ClassBody(){i.apply(this,arguments)}return i&&(ClassBody.__proto__=i),ClassBody.prototype=Object.create(i&&i.prototype),ClassBody.prototype.constructor=ClassBody,ClassBody.prototype.transpile=function transpile(o,s,v,_){var $=this;if(s.classes){var ae=this.parent.name,pe=o.getIndentString(),we=this.getIndentation()+(v?pe:""),_e=we+pe,et=findIndex(this.body,(function(i){return"constructor"===i.kind})),tt=this.body[et],nt="",rt="";if(this.body.length?(o.remove(this.start,this.body[0].start),o.remove(this.body[this.body.length-1].end,this.end)):o.remove(this.start,this.end),tt){tt.value.body.isConstructorBody=!0;var it=this.body[et-1],ot=this.body[et+1];et>0&&(o.remove(it.end,tt.start),o.move(tt.start,ot?ot.start:this.end-1,this.body[0].start)),v||o.appendLeft(tt.end,";")}var st=!1!==this.program.options.namedFunctionExpressions,dt=st||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var ut="if ( "+_+" ) "+ae+".__proto__ = "+_+";\n"+we+ae+".prototype = Object.create( "+_+" && "+_+".prototype );\n"+we+ae+".prototype.constructor = "+ae+";";if(tt)nt+="\n\n"+we+ut;else nt+=(ut="function "+ae+" () {"+(_?"\n"+_e+_+".apply(this, arguments);\n"+we+"}":"}")+(v?"":";")+(this.body.length?"\n\n"+we:"")+ut)+"\n\n"+we}else if(!tt){var lt="function "+(dt?ae+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(lt+=";"),this.body.length&&(lt+="\n\n"+we),nt+=lt}var ct,ht,pt=this.findScope(!1),ft=[],gt=[];if(this.body.forEach((function(i,v){if("get"!==i.kind&&"set"!==i.kind||!s.getterSetter||cp.missingTransform("getters and setters","getterSetter",i),"constructor"!==i.kind){if(i.static){var _=" "==o.original[i.start+6]?7:6;o.remove(i.start,i.start+_)}var pe,_e="method"!==i.kind,tt=i.key.name;(lp[tt]||i.value.body.scope.references[tt])&&(tt=pt.createIdentifier(tt));var nt=!1;if(i.computed||"Literal"!==i.key.type||(nt=!0,i.computed=!0),_e){if(i.computed)throw new Error("Computed accessor properties are not currently supported");o.remove(i.start,i.key.start),i.static?(~gt.indexOf(i.key.name)||gt.push(i.key.name),ht||(ht=pt.createIdentifier("staticAccessors")),pe=""+ht):(~ft.indexOf(i.key.name)||ft.push(i.key.name),ct||(ct=pt.createIdentifier("prototypeAccessors")),pe=""+ct)}else pe=i.static?""+ae:ae+".prototype";i.computed||(pe+="."),(et>0&&v===et+1||0===v&&et===$.body.length-1)&&(pe="\n\n"+we+pe);var rt=i.key.end;if(i.computed)if(nt)o.prependRight(i.key.start,"["),o.appendLeft(i.key.end,"]");else{for(;"]"!==o.original[rt];)rt+=1;rt+=1}var it=i.computed||_e||!st?"":tt+" ",ot=(_e?"."+i.kind:"")+" = "+(i.value.async?"async ":"")+"function"+(i.value.generator?"* ":" ")+it;o.remove(rt,i.value.start),o.prependRight(i.value.start,ot),o.appendLeft(i.end,";"),i.value.generator&&o.remove(i.start,i.key.start);var ut=i.key.start;if(i.computed&&!nt)for(;"["!=o.original[ut];)--ut;i.startthis.depth){this.shouldRewriteAsFunction=!0;for(var we=0,_e=this.thisRefs;we<_e.length;we+=1){var et=_e[we];et.alias=et.alias||et.findLexicalBoundary().getThisAlias()}break}}if(this.shouldRewriteAsFunction)break}},LoopStatement.prototype.transpile=function transpile(o,s){var v="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var _=this.getIndentation(),$=_+o.getIndentString(),ae=this.args?" "+this.args.join(", ")+" ":"",pe=this.params?" "+this.params.join(", ")+" ":"",we=this.findScope(!0),_e=we.createIdentifier("loop"),et="var "+_e+" = function ("+pe+") "+(this.body.synthetic?"{\n"+_+o.getIndentString():""),tt=(this.body.synthetic?"\n"+_+"}":"")+";\n\n"+_;if(o.prependRight(this.body.start,et),o.appendLeft(this.body.end,tt),o.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var nt=we.createIdentifier("returned"),rt="{\n"+$+"var "+nt+" = "+_e+"("+ae+");\n";this.canBreak&&(rt+="\n"+$+"if ( "+nt+" === 'break' ) break;"),this.canReturn&&(rt+="\n"+$+"if ( "+nt+" ) return "+nt+".v;"),rt+="\n"+_+"}",o.prependRight(this.body.end,rt)}else{var it=_e+"("+ae+");";"DoWhileStatement"===this.type?o.overwrite(this.start,this.body.start,"do {\n"+$+it+"\n"+_+"}"):o.prependRight(this.body.end,it)}}else v&&(o.appendLeft(this.body.start,"{ "),o.prependRight(this.body.end," }"));i.prototype.transpile.call(this,o,s)},LoopStatement}(dp),Dp=function(i){function ForStatement(){i.apply(this,arguments)}return i&&(ForStatement.__proto__=i),ForStatement.prototype=Object.create(i&&i.prototype),ForStatement.prototype.constructor=ForStatement,ForStatement.prototype.initialise=function initialise(o){var s=this;this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),i.prototype.initialise.call(this,o)},ForStatement.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},ForStatement.prototype.transpile=function transpile(o,s){var v=this,_=this.getIndentation()+o.getIndentString();if(this.shouldRewriteAsFunction){var $=this.init&&"VariableDeclaration"===this.init.type?this.init.declarations.map((function(i){return extractNames(i.id)})):[],ae=this.aliases;this.args=$.map((function(i){return i in v.aliases?v.aliases[i].outer:i})),this.params=$.map((function(i){return i in v.aliases?v.aliases[i].inner:i}));var pe=Object.keys(this.reassigned).map((function(i){return ae[i].outer+" = "+ae[i].inner+";"}));if(pe.length)if(this.body.synthetic)o.appendLeft(this.body.body[0].end,"; "+pe.join(" "));else{var we=this.body.body[this.body.body.length-1];o.appendLeft(we.end,"\n\n"+_+pe.join("\n"+_))}}i.prototype.transpile.call(this,o,s)},ForStatement}(Ap),Pp=function(i){function ForInStatement(){i.apply(this,arguments)}return i&&(ForInStatement.__proto__=i),ForInStatement.prototype=Object.create(i&&i.prototype),ForInStatement.prototype.constructor=ForInStatement,ForInStatement.prototype.initialise=function initialise(o){var s=this;this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),i.prototype.initialise.call(this,o)},ForInStatement.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},ForInStatement.prototype.transpile=function transpile(o,s){var v=this,_="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var $=_?this.left.declarations.map((function(i){return extractNames(i.id)})):[];this.args=$.map((function(i){return i in v.aliases?v.aliases[i].outer:i})),this.params=$.map((function(i){return i in v.aliases?v.aliases[i].inner:i}))}i.prototype.transpile.call(this,o,s);var ae=_?this.left.declarations[0].id:this.left;"Identifier"!==ae.type&&"MemberExpression"!==ae.type&&this.destructurePattern(o,ae,_)},ForInStatement.prototype.destructurePattern=function destructurePattern(i,o,s){var v=this.findScope(!0),_=this.getIndentation()+i.getIndentString(),$=v.createIdentifier("ref"),ae=this.body.body.length?this.body.body[0].start:this.body.start+1;i.move(o.start,o.end,ae),i.prependRight(o.end,s?$:"var "+$);var pe=[];destructure(i,(function(i){return v.createIdentifier(i)}),(function(i){var o=i.name;return v.resolveName(o)}),o,$,!1,pe);var we=";\n"+_;pe.forEach((function(i,o){o===pe.length-1&&(we=";\n\n"+_),i(ae,"",we)}))},ForInStatement}(Ap),Tp=function(i){function ForOfStatement(){i.apply(this,arguments)}return i&&(ForOfStatement.__proto__=i),ForOfStatement.prototype=Object.create(i&&i.prototype),ForOfStatement.prototype.constructor=ForOfStatement,ForOfStatement.prototype.initialise=function initialise(o){var s=this;o.forOf&&!o.dangerousForOf&&cp.missingTransform("for-of statements","forOf",this,"dangerousForOf"),this.await&&o.asyncAwait&&cp.missingTransform("for-await-of statements","asyncAwait",this),this.createdDeclarations=[],this.scope=new buble_browser_es_Scope({block:!0,parent:this.parent.findScope(!1),declare:function(i){return s.createdDeclarations.push(i)}}),i.prototype.initialise.call(this,o)},ForOfStatement.prototype.findScope=function findScope(i){return i?this.parent.findScope(i):this.scope},ForOfStatement.prototype.transpile=function transpile(o,s){if(i.prototype.transpile.call(this,o,s),s.dangerousForOf)if(this.body.body[0]){var v=this.findScope(!0),_=this.getIndentation(),$=_+o.getIndentString(),ae=v.createIdentifier("i"),pe=v.createIdentifier("list");this.body.synthetic&&(o.prependRight(this.left.start,"{\n"+$),o.appendLeft(this.body.body[0].end,"\n"+_+"}"));var we=this.body.body[0].start;o.remove(this.left.end,this.right.start),o.move(this.left.start,this.left.end,we),o.prependRight(this.right.start,"var "+ae+" = 0, "+pe+" = "),o.appendLeft(this.right.end,"; "+ae+" < "+pe+".length; "+ae+" += 1");var _e="VariableDeclaration"===this.left.type,et=_e?this.left.declarations[0].id:this.left;if("Identifier"!==et.type){var tt=[],nt=v.createIdentifier("ref");destructure(o,(function(i){return v.createIdentifier(i)}),(function(i){var o=i.name;return v.resolveName(o)}),et,nt,!_e,tt);var rt=";\n"+$;tt.forEach((function(i,o){o===tt.length-1&&(rt=";\n\n"+$),i(we,"",rt)})),_e?(o.appendLeft(this.left.start+this.left.kind.length+1,nt),o.appendLeft(this.left.end," = "+pe+"["+ae+"];\n"+$)):o.appendLeft(this.left.end,"var "+nt+" = "+pe+"["+ae+"];\n"+$)}else o.appendLeft(this.left.end," = "+pe+"["+ae+"];\n\n"+$)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(o.remove(this.start,this.left.start),o.appendLeft(this.left.end,";"),o.remove(this.left.end,this.end)):o.remove(this.start,this.end)},ForOfStatement}(Ap),Ip=function(i){function FunctionDeclaration(){i.apply(this,arguments)}return i&&(FunctionDeclaration.__proto__=i),FunctionDeclaration.prototype=Object.create(i&&i.prototype),FunctionDeclaration.prototype.constructor=FunctionDeclaration,FunctionDeclaration.prototype.initialise=function initialise(o){this.generator&&o.generator&&cp.missingTransform("generators","generator",this),this.async&&o.asyncAwait&&cp.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),i.prototype.initialise.call(this,o)},FunctionDeclaration.prototype.transpile=function transpile(o,s){i.prototype.transpile.call(this,o,s),s.trailingFunctionCommas&&this.params.length&&removeTrailingComma(o,this.params[this.params.length-1].end)},FunctionDeclaration}(dp),Fp=function(i){function FunctionExpression(){i.apply(this,arguments)}return i&&(FunctionExpression.__proto__=i),FunctionExpression.prototype=Object.create(i&&i.prototype),FunctionExpression.prototype.constructor=FunctionExpression,FunctionExpression.prototype.initialise=function initialise(o){this.generator&&o.generator&&cp.missingTransform("generators","generator",this),this.async&&o.asyncAwait&&cp.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),i.prototype.initialise.call(this,o);var s,v=this.parent;if(o.conciseMethodProperty&&"Property"===v.type&&"init"===v.kind&&v.method&&"Identifier"===v.key.type||o.classes&&"MethodDefinition"===v.type&&"method"===v.kind&&"Identifier"===v.key.type?s=v.key.name:this.id&&"Identifier"===this.id.type&&(s=this.id.alias||this.id.name),s)for(var _=0,$=this.params;_<$.length;_+=1){var ae=$[_];if("Identifier"===ae.type&&s===ae.name){var pe=this.body.scope,we=pe.declarations[s],_e=pe.createIdentifier(s);ae.alias=_e;for(var et=0,tt=we.instances;eto.depth&&(this.alias=o.getArgumentsAlias()),v&&v.body.contains(this)&&v.depth>o.depth&&(this.alias=o.getArgumentsAlias())}this.findScope(!1).addReference(this)}},Identifier.prototype.isLabel=function isLabel(){switch(this.parent.type){case"BreakStatement":case"ContinueStatement":case"LabeledStatement":return!0;default:return!1}},Identifier.prototype.transpile=function transpile(i){this.alias&&i.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},Identifier}(dp),Bp=function(i){function IfStatement(){i.apply(this,arguments)}return i&&(IfStatement.__proto__=i),IfStatement.prototype=Object.create(i&&i.prototype),IfStatement.prototype.constructor=IfStatement,IfStatement.prototype.initialise=function initialise(o){i.prototype.initialise.call(this,o)},IfStatement.prototype.transpile=function transpile(o,s){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(o.appendLeft(this.consequent.start,"{ "),o.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(o.appendLeft(this.alternate.start,"{ "),o.prependRight(this.alternate.end," }")),i.prototype.transpile.call(this,o,s)},IfStatement}(dp),Lp=function(i){function Import(){i.apply(this,arguments)}return i&&(Import.__proto__=i),Import.prototype=Object.create(i&&i.prototype),Import.prototype.constructor=Import,Import.prototype.initialise=function initialise(o){o.moduleImport&&cp.missingTransform("dynamic import expressions","moduleImport",this),i.prototype.initialise.call(this,o)},Import}(dp),jp=function(i){function ImportDeclaration(){i.apply(this,arguments)}return i&&(ImportDeclaration.__proto__=i),ImportDeclaration.prototype=Object.create(i&&i.prototype),ImportDeclaration.prototype.constructor=ImportDeclaration,ImportDeclaration.prototype.initialise=function initialise(o){o.moduleImport&&cp.missingTransform("import","moduleImport",this),i.prototype.initialise.call(this,o)},ImportDeclaration}(dp),Mp=function(i){function ImportDefaultSpecifier(){i.apply(this,arguments)}return i&&(ImportDefaultSpecifier.__proto__=i),ImportDefaultSpecifier.prototype=Object.create(i&&i.prototype),ImportDefaultSpecifier.prototype.constructor=ImportDefaultSpecifier,ImportDefaultSpecifier.prototype.initialise=function initialise(o){this.findScope(!0).addDeclaration(this.local,"import"),i.prototype.initialise.call(this,o)},ImportDefaultSpecifier}(dp),Qp=function(i){function ImportSpecifier(){i.apply(this,arguments)}return i&&(ImportSpecifier.__proto__=i),ImportSpecifier.prototype=Object.create(i&&i.prototype),ImportSpecifier.prototype.constructor=ImportSpecifier,ImportSpecifier.prototype.initialise=function initialise(o){this.findScope(!0).addDeclaration(this.local,"import"),i.prototype.initialise.call(this,o)},ImportSpecifier}(dp),Vp=function(i){function JSXAttribute(){i.apply(this,arguments)}return i&&(JSXAttribute.__proto__=i),JSXAttribute.prototype=Object.create(i&&i.prototype),JSXAttribute.prototype.constructor=JSXAttribute,JSXAttribute.prototype.transpile=function transpile(o,s){var v,_=this.name,$=_.start,ae=_.name,pe=this.value?this.value.start:this.name.end;o.overwrite($,pe,(/-/.test(v=ae)?"'"+v+"'":v)+": "+(this.value?"":"true")),i.prototype.transpile.call(this,o,s)},JSXAttribute}(dp);var Up=function(i){function JSXClosingElement(){i.apply(this,arguments)}return i&&(JSXClosingElement.__proto__=i),JSXClosingElement.prototype=Object.create(i&&i.prototype),JSXClosingElement.prototype.constructor=JSXClosingElement,JSXClosingElement.prototype.transpile=function transpile(i){var o,s=!0,v=this.parent.children[this.parent.children.length-1];(v&&("JSXText"===(o=v).type&&!/\S/.test(o.value)&&/\n/.test(o.value))||this.parent.openingElement.attributes.length)&&(s=!1),i.overwrite(this.start,this.end,s?" )":")")},JSXClosingElement}(dp);var Wp=function(i){function JSXClosingFragment(){i.apply(this,arguments)}return i&&(JSXClosingFragment.__proto__=i),JSXClosingFragment.prototype=Object.create(i&&i.prototype),JSXClosingFragment.prototype.constructor=JSXClosingFragment,JSXClosingFragment.prototype.transpile=function transpile(i){var o,s=!0,v=this.parent.children[this.parent.children.length-1];v&&("JSXText"===(o=v).type&&!/\S/.test(o.value)&&/\n/.test(o.value))&&(s=!1),i.overwrite(this.start,this.end,s?" )":")")},JSXClosingFragment}(dp);function normalise(i,o){return o&&/\n/.test(i)&&(i=i.replace(/[ \f\n\r\t\v]+$/,"")),i=i.replace(/^\n\r?[ \f\n\r\t\v]+/,"").replace(/[ \f\n\r\t\v]*\n\r?[ \f\n\r\t\v]*/gm," "),JSON.stringify(i)}var $p=function(i){function JSXElement(){i.apply(this,arguments)}return i&&(JSXElement.__proto__=i),JSXElement.prototype=Object.create(i&&i.prototype),JSXElement.prototype.constructor=JSXElement,JSXElement.prototype.transpile=function transpile(o,s){i.prototype.transpile.call(this,o,s);var v=this.children.filter((function(i){return"JSXText"!==i.type||(/[^ \f\n\r\t\v]/.test(i.raw)||!/\n/.test(i.raw))}));if(v.length){var _,$=(this.openingElement||this.openingFragment).end;for(_=0;_0&&(et.start===$?o.prependRight($,", "):o.overwrite($,et.start,", ")),_e&&"JSXSpreadAttribute"!==et.type){var tt=this.attributes[ae-1],nt=this.attributes[ae+1];tt&&"JSXSpreadAttribute"!==tt.type||o.prependRight(et.start,"{ "),nt&&"JSXSpreadAttribute"!==nt.type||o.appendLeft(et.end," }")}$=et.end}if(_e)if(1===_)we=v?"',":",";else{if(!this.program.options.objectAssign)throw new cp("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);we=v?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",pe=")"}else we=v?"', {":", {",pe=" }";o.prependRight(this.name.end,we),pe&&o.appendLeft(this.attributes[_-1].end,pe)}else o.appendLeft(this.name.end,v?"', null":", null"),$=this.name.end;this.selfClosing?o.overwrite($,this.end,this.attributes.length?")":" )"):o.remove($,this.end)},JSXOpeningElement}(dp),Hp=function(i){function JSXOpeningFragment(){i.apply(this,arguments)}return i&&(JSXOpeningFragment.__proto__=i),JSXOpeningFragment.prototype=Object.create(i&&i.prototype),JSXOpeningFragment.prototype.constructor=JSXOpeningFragment,JSXOpeningFragment.prototype.transpile=function transpile(i){i.overwrite(this.start,this.end,this.program.jsx+"( "+this.program.jsxFragment+", null")},JSXOpeningFragment}(dp),Gp=function(i){function JSXSpreadAttribute(){i.apply(this,arguments)}return i&&(JSXSpreadAttribute.__proto__=i),JSXSpreadAttribute.prototype=Object.create(i&&i.prototype),JSXSpreadAttribute.prototype.constructor=JSXSpreadAttribute,JSXSpreadAttribute.prototype.transpile=function transpile(o,s){o.remove(this.start,this.argument.start),o.remove(this.argument.end,this.end),i.prototype.transpile.call(this,o,s)},JSXSpreadAttribute}(dp),Xp=/[\u2028-\u2029]/g,Yp=function(i){function Literal(){i.apply(this,arguments)}return i&&(Literal.__proto__=i),Literal.prototype=Object.create(i&&i.prototype),Literal.prototype.constructor=Literal,Literal.prototype.initialise=function initialise(){"string"==typeof this.value&&this.program.indentExclusionElements.push(this)},Literal.prototype.transpile=function transpile(i,o){if(o.numericLiteral&&this.raw.match(/^0[bo]/i)&&i.overwrite(this.start,this.end,String(this.value),{storeName:!0,contentOnly:!0}),this.regex){var s=this.regex,v=s.pattern,_=s.flags;o.stickyRegExp&&/y/.test(_)&&cp.missingTransform("the regular expression sticky flag","stickyRegExp",this),o.unicodeRegExp&&/u/.test(_)&&i.overwrite(this.start,this.end,"/"+sp()(v,_)+"/"+_.replace("u",""),{contentOnly:!0})}else"string"==typeof this.value&&this.value.match(Xp)&&i.overwrite(this.start,this.end,this.raw.replace(Xp,(function(i){return"\u2028"==i?"\\u2028":"\\u2029"})),{contentOnly:!0})},Literal}(dp),Kp=function(i){function MemberExpression(){i.apply(this,arguments)}return i&&(MemberExpression.__proto__=i),MemberExpression.prototype=Object.create(i&&i.prototype),MemberExpression.prototype.constructor=MemberExpression,MemberExpression.prototype.transpile=function transpile(o,s){s.reservedProperties&&lp[this.property.name]&&(o.overwrite(this.object.end,this.property.start,"['"),o.appendLeft(this.property.end,"']")),i.prototype.transpile.call(this,o,s)},MemberExpression}(dp),Jp=function(i){function NewExpression(){i.apply(this,arguments)}return i&&(NewExpression.__proto__=i),NewExpression.prototype=Object.create(i&&i.prototype),NewExpression.prototype.constructor=NewExpression,NewExpression.prototype.initialise=function initialise(o){if(o.spreadRest&&this.arguments.length)for(var s=this.findLexicalBoundary(),v=this.arguments.length;v--;){var _=this.arguments[v];if("SpreadElement"===_.type&&isArguments(_.argument)){this.argumentsArrayAlias=s.getArgumentsArrayAlias();break}}i.prototype.initialise.call(this,o)},NewExpression.prototype.transpile=function transpile(o,s){if(i.prototype.transpile.call(this,o,s),s.spreadRest&&this.arguments.length&&inlineSpreads(o,this,this.arguments),s.spreadRest&&this.arguments.length){var v=this.arguments[0];spread(o,this.arguments,v.start,this.argumentsArrayAlias,!0)&&(o.prependRight(this.start+3," (Function.prototype.bind.apply("),o.overwrite(this.callee.end,v.start,", [ null ].concat( "),o.appendLeft(this.end," ))"))}this.arguments.length&&removeTrailingComma(o,this.arguments[this.arguments.length-1].end)},NewExpression}(dp),pf=function(i){function ObjectExpression(){i.apply(this,arguments)}return i&&(ObjectExpression.__proto__=i),ObjectExpression.prototype=Object.create(i&&i.prototype),ObjectExpression.prototype.constructor=ObjectExpression,ObjectExpression.prototype.transpile=function transpile(o,s){var v;i.prototype.transpile.call(this,o,s);for(var _=this.start+1,$=0,ae=0,pe=null,we=null,_e=0;_e0?(o.remove(et.start,tt.properties[0].start),o.remove(tt.properties[tt.properties.length-1].end,et.end),(v=this.properties).splice.apply(v,[_e,1].concat(tt.properties)),_e--):(o.remove(et.start,_e===this.properties.length-1?et.end:this.properties[_e+1].start),this.properties.splice(_e,1),_e--):($+=1,null===pe&&(pe=_e))}else et.computed&&s.computedProperty&&(ae+=1,null===we&&(we=_e))}if(!$||s.objectRestSpread||ae&&s.computedProperty){if($){if(!this.program.options.objectAssign)throw new cp("Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);for(var nt=this.properties.length;nt--;){var rt=this.properties[nt];if("Property"===rt.type&&!ae){var it=this.properties[nt-1],ot=this.properties[nt+1];it&&"Property"===it.type||o.prependRight(rt.start,"{"),ot&&"Property"===ot.type||o.appendLeft(rt.end,"}")}"SpreadElement"===rt.type&&(o.remove(rt.start,rt.argument.start),o.remove(rt.argument.end,rt.end))}_=this.properties[0].start,ae?"SpreadElement"===this.properties[0].type?(o.overwrite(this.start,_,this.program.options.objectAssign+"({}, "),o.remove(this.end-1,this.end),o.appendRight(this.end,")")):(o.prependLeft(this.start,this.program.options.objectAssign+"("),o.appendRight(this.end,")")):(o.overwrite(this.start,_,this.program.options.objectAssign+"({}, "),o.overwrite(this.properties[this.properties.length-1].end,this.end,")"))}}else $=0,pe=null;if(ae&&s.computedProperty){var st,dt,ut=this.getIndentation();"VariableDeclarator"===this.parent.type&&1===this.parent.parent.declarations.length&&"Identifier"===this.parent.id.type?(st=!0,dt=this.parent.id.alias||this.parent.id.name):("AssignmentExpression"===this.parent.type&&"ExpressionStatement"===this.parent.parent.type&&"Identifier"===this.parent.left.type||"AssignmentPattern"===this.parent.type&&"Identifier"===this.parent.left.type)&&(st=!0,dt=this.parent.left.alias||this.parent.left.name),$&&(st=!1),dt=this.findScope(!1).resolveName(dt);var lt=_,ct=this.end;st||(null===pe||weOt&&o.remove(Ot,yt.value.start),o.prependLeft(Ot," = ")):o.overwrite(yt.start,yt.value.start,"["+o.slice(yt.start,yt.key.end)+"] = "),!yt.method||!yt.computed&&s.conciseMethodProperty||(yt.value.generator&&o.remove(yt.start,yt.key.start),o.prependRight(yt.value.start,"function"+(yt.value.generator?"*":"")+" "))}else"SpreadElement"===yt.type?dt&&mt>0&&(ht||(ht=this.properties[mt-1]),o.appendLeft(ht.end,", "+dt+" )"),ht=null,dt=null):(!gt&&$&&(o.prependRight(yt.start,"{"),o.appendLeft(yt.end,"}")),ft=!0);if(gt&&("SpreadElement"===yt.type||yt.computed)){var xt=ft?this.properties[this.properties.length-1].end:this.end-1;","==o.original[xt]&&++xt;var wt=o.slice(xt,ct);o.prependLeft(vt,wt),o.remove(xt,ct),gt=!1}var Ct=yt.end;if(mtthis.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(i)},ReturnStatement.prototype.transpile=function transpile(i,o){var s=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(s&&i.prependRight(this.argument.start,"{ v: "),this.argument.transpile(i,o),s&&i.appendLeft(this.argument.end," }")):s&&i.appendLeft(this.start+6," {}")},ReturnStatement}(dp),Of=function(i){function Super(){i.apply(this,arguments)}return i&&(Super.__proto__=i),Super.prototype=Object.create(i&&i.prototype),Super.prototype.constructor=Super,Super.prototype.initialise=function initialise(i){if(i.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new cp("use of super outside class method",this);var o=this.findNearest("ClassBody").parent;if(this.superClassName=o.superClass&&(o.superClass.name||"superclass"),!this.superClassName)throw new cp("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new cp("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new cp("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(i.arrow){var s=this.findLexicalBoundary(),v=this.findNearest("ArrowFunctionExpression"),_=this.findNearest(Rp);v&&v.depth>s.depth&&(this.thisAlias=s.getThisAlias()),_&&_.body.contains(this)&&_.depth>s.depth&&(this.thisAlias=s.getThisAlias())}},Super.prototype.transpile=function transpile(i,o){if(o.classes){var s=this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype";i.overwrite(this.start,this.end,s,{storeName:!0,contentOnly:!0});var v=this.isCalled?this.parent:this.parent.parent;if(v&&"CallExpression"===v.type){this.noCall||i.appendLeft(v.callee.end,".call");var _=this.thisAlias||"this";v.arguments.length?i.appendLeft(v.arguments[0].start,_+", "):i.appendLeft(v.end-1,""+_)}}},Super}(dp),xf=function(i){function TaggedTemplateExpression(){i.apply(this,arguments)}return i&&(TaggedTemplateExpression.__proto__=i),TaggedTemplateExpression.prototype=Object.create(i&&i.prototype),TaggedTemplateExpression.prototype.constructor=TaggedTemplateExpression,TaggedTemplateExpression.prototype.initialise=function initialise(o){o.templateString&&!o.dangerousTaggedTemplateString&&cp.missingTransform("tagged template strings","templateString",this,"dangerousTaggedTemplateString"),i.prototype.initialise.call(this,o)},TaggedTemplateExpression.prototype.transpile=function transpile(o,s){if(s.templateString&&s.dangerousTaggedTemplateString){var v=this.quasi.expressions.concat(this.quasi.quasis).sort((function(i,o){return i.start-o.start})),_=this.program.body.scope,$=this.quasi.quasis.map((function(i){return JSON.stringify(i.value.cooked)})).join(", "),ae=this.program.templateLiteralQuasis[$];ae||(ae=_.createIdentifier("templateObject"),o.prependLeft(this.program.prependAt,"var "+ae+" = Object.freeze(["+$+"]);\n"),this.program.templateLiteralQuasis[$]=ae),o.overwrite(this.tag.end,v[0].start,"("+ae);var pe=v[0].start;v.forEach((function(i){"TemplateElement"===i.type?o.remove(pe,i.end):o.overwrite(pe,i.start,", "),pe=i.end})),o.overwrite(pe,this.end,")")}i.prototype.transpile.call(this,o,s)},TaggedTemplateExpression}(dp),wf=function(i){function TemplateElement(){i.apply(this,arguments)}return i&&(TemplateElement.__proto__=i),TemplateElement.prototype=Object.create(i&&i.prototype),TemplateElement.prototype.constructor=TemplateElement,TemplateElement.prototype.initialise=function initialise(){this.program.indentExclusionElements.push(this)},TemplateElement}(dp),Cf=function(i){function TemplateLiteral(){i.apply(this,arguments)}return i&&(TemplateLiteral.__proto__=i),TemplateLiteral.prototype=Object.create(i&&i.prototype),TemplateLiteral.prototype.constructor=TemplateLiteral,TemplateLiteral.prototype.transpile=function transpile(o,s){if(i.prototype.transpile.call(this,o,s),s.templateString&&"TaggedTemplateExpression"!==this.parent.type){var v=this.expressions.concat(this.quasis).sort((function(i,o){return i.start-o.start||i.end-o.end})).filter((function(i,o){return"TemplateElement"!==i.type||(!!i.value.raw||!o)}));if(v.length>=3){var _=v[0],$=v[2];"TemplateElement"===_.type&&""===_.value.raw&&"TemplateElement"===$.type&&v.shift()}var ae=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);ae&&o.appendRight(this.start,"(");var pe=this.start;v.forEach((function(i,s){var v=0===s?ae?"(":"":" + ";if("TemplateElement"===i.type)o.overwrite(pe,i.end,v+JSON.stringify(i.value.cooked));else{var _="Identifier"!==i.type;_&&(v+="("),o.remove(pe,i.start),v&&o.prependRight(i.start,v),_&&o.appendLeft(i.end,")")}pe=i.end})),ae&&o.appendLeft(pe,")"),o.overwrite(pe,this.end,"",{contentOnly:!0})}},TemplateLiteral}(dp),_f=function(i){function ThisExpression(){i.apply(this,arguments)}return i&&(ThisExpression.__proto__=i),ThisExpression.prototype=Object.create(i&&i.prototype),ThisExpression.prototype.constructor=ThisExpression,ThisExpression.prototype.initialise=function initialise(i){var o=this.findLexicalBoundary();if(i.letConst)for(var s=this.findNearest(Rp);s&&s.depth>o.depth;)s.thisRefs.push(this),s=s.parent.findNearest(Rp);if(i.arrow){var v=this.findNearest("ArrowFunctionExpression");v&&v.depth>o.depth&&(this.alias=o.getThisAlias())}},ThisExpression.prototype.transpile=function transpile(i){this.alias&&i.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},ThisExpression}(dp),Af=function(i){function UpdateExpression(){i.apply(this,arguments)}return i&&(UpdateExpression.__proto__=i),UpdateExpression.prototype=Object.create(i&&i.prototype),UpdateExpression.prototype.constructor=UpdateExpression,UpdateExpression.prototype.initialise=function initialise(o){if("Identifier"===this.argument.type){var s=this.findScope(!1).findDeclaration(this.argument.name),v=s&&s.node.ancestor(3);v&&"ForStatement"===v.type&&v.body.contains(this)&&(v.reassigned[this.argument.name]=!0)}i.prototype.initialise.call(this,o)},UpdateExpression.prototype.transpile=function transpile(o,s){"Identifier"===this.argument.type&&checkConst(this.argument,this.findScope(!1)),i.prototype.transpile.call(this,o,s)},UpdateExpression}(dp),Df=function(i){function VariableDeclaration(){i.apply(this,arguments)}return i&&(VariableDeclaration.__proto__=i),VariableDeclaration.prototype=Object.create(i&&i.prototype),VariableDeclaration.prototype.constructor=VariableDeclaration,VariableDeclaration.prototype.initialise=function initialise(i){this.scope=this.findScope("var"===this.kind),this.declarations.forEach((function(o){return o.initialise(i)}))},VariableDeclaration.prototype.transpile=function transpile(i,o){var s=this,v=this.getIndentation(),_=this.kind;if(o.letConst&&"var"!==_&&(_="var",i.overwrite(this.start,this.start+this.kind.length,_,{contentOnly:!0,storeName:!0})),o.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var $,ae=this.start;this.declarations.forEach((function(_,pe){if(_.transpile(i,o),"Identifier"===_.id.type)pe>0&&"Identifier"!==s.declarations[pe-1].id.type&&i.overwrite(ae,_.id.start,"var ");else{var we=Rp.test(s.parent.type);0===pe?i.remove(ae,_.id.start):i.overwrite(ae,_.id.start,";\n"+v);var _e="Identifier"===_.init.type&&!_.init.rewritten,et=_e?_.init.alias||_.init.name:_.findScope(!0).createIdentifier("ref");ae=_.start;var tt=[];_e?i.remove(_.id.end,_.end):tt.push((function(o,s,v){i.prependRight(_.id.end,"var "+et),i.appendLeft(_.init.end,""+v),i.move(_.id.end,_.end,o)}));var nt=_.findScope(!1);destructure(i,(function(i){return nt.createIdentifier(i)}),(function(i){var o=i.name;return nt.resolveName(o)}),_.id,et,we,tt);var rt=we?"var ":"",it=we?", ":";\n"+v;tt.forEach((function(i,o){pe===s.declarations.length-1&&o===tt.length-1&&(it=we?"":";"),i(_.start,0===o?rt:"",it)}))}ae=_.end,$="Identifier"!==_.id.type})),$&&this.end>ae&&i.overwrite(ae,this.end,"",{contentOnly:!0})}else this.declarations.forEach((function(s){s.transpile(i,o)}))},VariableDeclaration}(dp),Pf=function(i){function VariableDeclarator(){i.apply(this,arguments)}return i&&(VariableDeclarator.__proto__=i),VariableDeclarator.prototype=Object.create(i&&i.prototype),VariableDeclarator.prototype.constructor=VariableDeclarator,VariableDeclarator.prototype.initialise=function initialise(o){var s=this.parent.kind;"let"===s&&"ForStatement"===this.parent.parent.type&&(s="for.let"),this.parent.scope.addDeclaration(this.id,s),i.prototype.initialise.call(this,o)},VariableDeclarator.prototype.transpile=function transpile(i,o){if(!this.init&&o.letConst&&"var"!==this.parent.kind){var s=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!s||/Function/.test(s.type)||this.isLeftDeclaratorOfLoop()||i.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(i,o),this.init&&this.init.transpile(i,o)},VariableDeclarator.prototype.isLeftDeclaratorOfLoop=function isLeftDeclaratorOfLoop(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},VariableDeclarator}(dp),Tf={ArrayExpression:fp,ArrowFunctionExpression:gp,AssignmentExpression:mp,AwaitExpression:yp,BinaryExpression:vp,BreakStatement:bp,CallExpression:Op,CatchClause:xp,ClassBody:wp,ClassDeclaration:Cp,ClassExpression:Sp,ContinueStatement:_p,DoWhileStatement:Ap,ExportNamedDeclaration:kp,ExportDefaultDeclaration:Ep,ForStatement:Dp,ForInStatement:Pp,ForOfStatement:Tp,FunctionDeclaration:Ip,FunctionExpression:Fp,Identifier:Np,IfStatement:Bp,Import:Lp,ImportDeclaration:jp,ImportDefaultSpecifier:Mp,ImportSpecifier:Qp,JSXAttribute:Vp,JSXClosingElement:Up,JSXClosingFragment:Wp,JSXElement:$p,JSXExpressionContainer:qp,JSXFragment:zp,JSXOpeningElement:Zp,JSXOpeningFragment:Hp,JSXSpreadAttribute:Gp,Literal:Yp,MemberExpression:Kp,NewExpression:Jp,ObjectExpression:pf,Property:ff,ReturnStatement:yf,Super:Of,TaggedTemplateExpression:xf,TemplateElement:wf,TemplateLiteral:Cf,ThisExpression:_f,UpdateExpression:Af,VariableDeclaration:Df,VariableDeclarator:Pf,WhileStatement:Ap},Nf={Program:["body"],Literal:[]},Lf={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function wrap(i,o){if(i)if("length"in i)for(var s=i.length;s--;)wrap(i[s],o);else if(!i.__wrapped){i.__wrapped=!0,Nf[i.type]||(Nf[i.type]=Object.keys(i).filter((function(o){return"object"==typeof i[o]})));var v=Lf[i.type];if(v&&"BlockStatement"!==i[v].type){var _=i[v];i[v]={start:_.start,end:_.end,type:"BlockStatement",body:[_],synthetic:!0}}i.parent=o,i.program=o.program||o,i.depth=o.depth+1,i.keys=Nf[i.type],i.indentation=void 0;for(var $=0,ae=Nf[i.type];$Wf=!0,remove:()=>$f=!0,replace:i=>zf=i},Xf={};function replace(i,o,s,v){i&&(null!==s?i[o][s]=v:i[o]=v)}function remove(i,o,s){i&&(null!==s?i[o].splice(s,1):delete i[o])}function visit(i,o,s,v,_,$){if(i){if(s){const v=Wf,ae=$f,pe=zf;Wf=!1,$f=!1,zf=null,s.call(Zf,i,o,_,$),zf&&replace(o,_,$,i=zf),$f&&remove(o,_,$);const we=Wf,_e=$f;if(Wf=v,$f=ae,zf=pe,we)return i;if(_e)return null}const ae=i.type&&Xf[i.type]||(Xf[i.type]=Object.keys(i).filter((o=>"object"==typeof i[o])));for(let o=0;o1&&(i=o.shift()),{key:i,name:o[0]}}function generate(i,o,s,v){var _,$=o.replace(/\W/g,"_")+"$"+Yf++,ae="const "+alias($).name+" = "+(o=v+"('"+o+"')")+";";return s&&(ae+="\nconst "+s+" = "+$+".default || "+$+";"),i.forEach((function(i){_=alias(i),ae+="\nconst "+_.name+" = "+$+"."+_.key+";"})),ae}var rewriteImports=function(i,o){return void 0===o&&(o="require"),Yf=0,i.replace(dg,(function(i,s,v,_,$){return generate(_?_.split(",").filter((function(i){return i.trim()})):[],$,v,o)})).replace(ag,(function(i,s){return o+"('"+s+"');"}))},mg={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},_g="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",kg={5:_g,"5module":_g+" export import",6:_g+" const class extends export import super"},Dg=/^in(stanceof)?$/,$g="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",_m="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",km=new RegExp("["+$g+"]"),jm=new RegExp("["+$g+_m+"]");$g=_m=null;var ey=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],ty=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function acorn_isInAstralSet(i,o){for(var s=65536,v=0;vi)return!1;if((s+=o[v+1])>=i)return!0}}function acorn_isIdentifierStart(i,o){return i<65?36===i:i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&km.test(String.fromCharCode(i)):!1!==o&&acorn_isInAstralSet(i,ey)))}function acorn_isIdentifierChar(i,o){return i<48?36===i:i<58||!(i<65)&&(i<91||(i<97?95===i:i<123||(i<=65535?i>=170&&jm.test(String.fromCharCode(i)):!1!==o&&(acorn_isInAstralSet(i,ey)||acorn_isInAstralSet(i,ty)))))}var ny=function TokenType(i,o){void 0===o&&(o={}),this.label=i,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop||null,this.updateContext=null};function acorn_binop(i,o){return new ny(i,{beforeExpr:!0,binop:o})}var ay={beforeExpr:!0},ry={startsExpr:!0},iy={};function acorn_kw(i,o){return void 0===o&&(o={}),o.keyword=i,iy[i]=new ny(i,o)}var oy={num:new ny("num",ry),regexp:new ny("regexp",ry),string:new ny("string",ry),name:new ny("name",ry),eof:new ny("eof"),bracketL:new ny("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ny("]"),braceL:new ny("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ny("}"),parenL:new ny("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ny(")"),comma:new ny(",",ay),semi:new ny(";",ay),colon:new ny(":",ay),dot:new ny("."),question:new ny("?",ay),arrow:new ny("=>",ay),template:new ny("template"),invalidTemplate:new ny("invalidTemplate"),ellipsis:new ny("...",ay),backQuote:new ny("`",ry),dollarBraceL:new ny("${",{beforeExpr:!0,startsExpr:!0}),eq:new ny("=",{beforeExpr:!0,isAssign:!0}),assign:new ny("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ny("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ny("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:acorn_binop("||",1),logicalAND:acorn_binop("&&",2),bitwiseOR:acorn_binop("|",3),bitwiseXOR:acorn_binop("^",4),bitwiseAND:acorn_binop("&",5),equality:acorn_binop("==/!=/===/!==",6),relational:acorn_binop("/<=/>=",7),bitShift:acorn_binop("<>/>>>",8),plusMin:new ny("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:acorn_binop("%",10),star:acorn_binop("*",10),slash:acorn_binop("/",10),starstar:new ny("**",{beforeExpr:!0}),_break:acorn_kw("break"),_case:acorn_kw("case",ay),_catch:acorn_kw("catch"),_continue:acorn_kw("continue"),_debugger:acorn_kw("debugger"),_default:acorn_kw("default",ay),_do:acorn_kw("do",{isLoop:!0,beforeExpr:!0}),_else:acorn_kw("else",ay),_finally:acorn_kw("finally"),_for:acorn_kw("for",{isLoop:!0}),_function:acorn_kw("function",ry),_if:acorn_kw("if"),_return:acorn_kw("return",ay),_switch:acorn_kw("switch"),_throw:acorn_kw("throw",ay),_try:acorn_kw("try"),_var:acorn_kw("var"),_const:acorn_kw("const"),_while:acorn_kw("while",{isLoop:!0}),_with:acorn_kw("with"),_new:acorn_kw("new",{beforeExpr:!0,startsExpr:!0}),_this:acorn_kw("this",ry),_super:acorn_kw("super",ry),_class:acorn_kw("class",ry),_extends:acorn_kw("extends",ay),_export:acorn_kw("export"),_import:acorn_kw("import",ry),_null:acorn_kw("null",ry),_true:acorn_kw("true",ry),_false:acorn_kw("false",ry),_in:acorn_kw("in",{beforeExpr:!0,binop:7}),_instanceof:acorn_kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:acorn_kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:acorn_kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:acorn_kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},sy=/\r\n?|\n|\u2028|\u2029/,dy=new RegExp(sy.source,"g");function acorn_isNewLine(i,o){return 10===i||13===i||!o&&(8232===i||8233===i)}var uy=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ly=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,cy=Object.prototype,hy=cy.hasOwnProperty,py=cy.toString;function acorn_has(i,o){return hy.call(i,o)}var fy=Array.isArray||function(i){return"[object Array]"===py.call(i)};function acorn_wordsRegexp(i){return new RegExp("^(?:"+i.replace(/ /g,"|")+")$")}var gy=function Position(i,o){this.line=i,this.column=o};gy.prototype.offset=function offset(i){return new gy(this.line,this.column+i)};var my=function SourceLocation(i,o,s){this.start=o,this.end=s,null!==i.sourceFile&&(this.source=i.sourceFile)};function acorn_getLineInfo(i,o){for(var s=1,v=0;;){dy.lastIndex=v;var _=dy.exec(i);if(!(_&&_.index=2015&&(o.ecmaVersion-=2009),null==o.allowReserved&&(o.allowReserved=o.ecmaVersion<5),fy(o.onToken)){var v=o.onToken;o.onToken=function(i){return v.push(i)}}return fy(o.onComment)&&(o.onComment=acorn_pushComment(o,o.onComment)),o}function acorn_pushComment(i,o){return function(s,v,_,$,ae,pe){var we={type:s?"Block":"Line",value:v,start:_,end:$};i.locations&&(we.loc=new my(this,ae,pe)),i.ranges&&(we.range=[_,$]),o.push(we)}}function acorn_functionFlags(i,o){return 2|(i?4:0)|(o?8:0)}var vy=function Parser(i,o,s){this.options=i=acorn_getOptions(i),this.sourceFile=i.sourceFile,this.keywords=acorn_wordsRegexp(kg[i.ecmaVersion>=6?6:"module"===i.sourceType?"5module":5]);var v="";if(!0!==i.allowReserved){for(var _=i.ecmaVersion;!(v=mg[_]);_--);"module"===i.sourceType&&(v+=" await")}this.reservedWords=acorn_wordsRegexp(v);var $=(v?v+" ":"")+mg.strict;this.reservedWordsStrict=acorn_wordsRegexp($),this.reservedWordsStrictBind=acorn_wordsRegexp($+" "+mg.strictBind),this.input=String(o),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(sy).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=oy.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===i.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&i.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Ry={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};vy.prototype.parse=function parse(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)},Ry.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ry.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ry.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ry.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Ry.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ry.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},vy.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},vy.extend=function extend(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];for(var s=this,v=0;v-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var s=o?i.parenthesizedAssign:i.parenthesizedBind;s>-1&&this.raiseRecoverable(s,"Parenthesized pattern")}},by.checkExpressionErrors=function(i,o){if(!i)return!1;var s=i.shorthandAssign,v=i.doubleProto;if(!o)return s>=0||v>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),v>=0&&this.raiseRecoverable(v,"Redefinition of __proto__ property")},by.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement($,!1,!i);case oy._class:return i&&this.unexpected(),this.parseClass($,!0);case oy._if:return this.parseIfStatement($);case oy._return:return this.parseReturnStatement($);case oy._switch:return this.parseSwitchStatement($);case oy._throw:return this.parseThrowStatement($);case oy._try:return this.parseTryStatement($);case oy._const:case oy._var:return v=v||this.value,i&&"var"!==v&&this.unexpected(),this.parseVarStatement($,v);case oy._while:return this.parseWhileStatement($);case oy._with:return this.parseWithStatement($);case oy.braceL:return this.parseBlock(!0,$);case oy.semi:return this.parseEmptyStatement($);case oy._export:case oy._import:if(this.options.ecmaVersion>10&&_===oy._import){ly.lastIndex=this.pos;var ae=ly.exec(this.input),pe=this.pos+ae[0].length;if(40===this.input.charCodeAt(pe))return this.parseExpressionStatement($,this.parseExpression())}return this.options.allowImportExportEverywhere||(o||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===oy._import?this.parseImport($):this.parseExport($,s);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement($,!0,!i);var we=this.value,_e=this.parseExpression();return _===oy.name&&"Identifier"===_e.type&&this.eat(oy.colon)?this.parseLabeledStatement($,we,_e,i):this.parseExpressionStatement($,_e)}},xy.parseBreakContinueStatement=function(i,o){var s="break"===o;this.next(),this.eat(oy.semi)||this.insertSemicolon()?i.label=null:this.type!==oy.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var v=0;v=6?this.eat(oy.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},xy.parseForStatement=function(i){this.next();var o=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(wy),this.enterScope(0),this.expect(oy.parenL),this.type===oy.semi)return o>-1&&this.unexpected(o),this.parseFor(i,null);var s=this.isLet();if(this.type===oy._var||this.type===oy._const||s){var v=this.startNode(),_=s?"let":this.value;return this.next(),this.parseVar(v,!0,_),this.finishNode(v,"VariableDeclaration"),(this.type===oy._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===v.declarations.length?(this.options.ecmaVersion>=9&&(this.type===oy._in?o>-1&&this.unexpected(o):i.await=o>-1),this.parseForIn(i,v)):(o>-1&&this.unexpected(o),this.parseFor(i,v))}var $=new acorn_DestructuringErrors,ae=this.parseExpression(!0,$);return this.type===oy._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===oy._in?o>-1&&this.unexpected(o):i.await=o>-1),this.toAssignable(ae,!1,$),this.checkLVal(ae),this.parseForIn(i,ae)):(this.checkExpressionErrors($,!0),o>-1&&this.unexpected(o),this.parseFor(i,ae))},xy.parseFunctionStatement=function(i,o,s){return this.next(),this.parseFunction(i,_y|(s?0:Ey),!1,o)},xy.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(oy._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},xy.parseReturnStatement=function(i){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(oy.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},xy.parseSwitchStatement=function(i){var o;this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(oy.braceL),this.labels.push(Cy),this.enterScope(0);for(var s=!1;this.type!==oy.braceR;)if(this.type===oy._case||this.type===oy._default){var v=this.type===oy._case;o&&this.finishNode(o,"SwitchCase"),i.cases.push(o=this.startNode()),o.consequent=[],this.next(),v?o.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,o.test=null),this.expect(oy.colon)}else o||this.unexpected(),o.consequent.push(this.parseStatement(null));return this.exitScope(),o&&this.finishNode(o,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},xy.parseThrowStatement=function(i){return this.next(),sy.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var Sy=[];xy.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===oy._catch){var o=this.startNode();if(this.next(),this.eat(oy.parenL)){o.param=this.parseBindingAtom();var s="Identifier"===o.param.type;this.enterScope(s?32:0),this.checkLVal(o.param,s?4:2),this.expect(oy.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),o.param=null,this.enterScope(0);o.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(o,"CatchClause")}return i.finalizer=this.eat(oy._finally)?this.parseBlock():null,i.handler||i.finalizer||this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},xy.parseVarStatement=function(i,o){return this.next(),this.parseVar(i,!1,o),this.semicolon(),this.finishNode(i,"VariableDeclaration")},xy.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(wy),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},xy.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},xy.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},xy.parseLabeledStatement=function(i,o,s,v){for(var _=0,$=this.labels;_<$.length;_+=1){$[_].name===o&&this.raise(s.start,"Label '"+o+"' is already declared")}for(var ae=this.type.isLoop?"loop":this.type===oy._switch?"switch":null,pe=this.labels.length-1;pe>=0;pe--){var we=this.labels[pe];if(we.statementStart!==i.start)break;we.statementStart=this.start,we.kind=ae}return this.labels.push({name:o,kind:ae,statementStart:this.start}),i.body=this.parseStatement(v?-1===v.indexOf("label")?v+"label":v:"label"),this.labels.pop(),i.label=s,this.finishNode(i,"LabeledStatement")},xy.parseExpressionStatement=function(i,o){return i.expression=o,this.semicolon(),this.finishNode(i,"ExpressionStatement")},xy.parseBlock=function(i,o){for(void 0===i&&(i=!0),void 0===o&&(o=this.startNode()),o.body=[],this.expect(oy.braceL),i&&this.enterScope(0);!this.eat(oy.braceR);){var s=this.parseStatement(null);o.body.push(s)}return i&&this.exitScope(),this.finishNode(o,"BlockStatement")},xy.parseFor=function(i,o){return i.init=o,this.expect(oy.semi),i.test=this.type===oy.semi?null:this.parseExpression(),this.expect(oy.semi),i.update=this.type===oy.parenR?null:this.parseExpression(),this.expect(oy.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},xy.parseForIn=function(i,o){var s=this.type===oy._in;return this.next(),"VariableDeclaration"===o.type&&null!=o.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==o.kind||"Identifier"!==o.declarations[0].id.type)?this.raise(o.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===o.type&&this.raise(o.start,"Invalid left-hand side in for-loop"),i.left=o,i.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(oy.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,s?"ForInStatement":"ForOfStatement")},xy.parseVar=function(i,o,s){for(i.declarations=[],i.kind=s;;){var v=this.startNode();if(this.parseVarId(v,s),this.eat(oy.eq)?v.init=this.parseMaybeAssign(o):"const"!==s||this.type===oy._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===v.id.type||o&&(this.type===oy._in||this.isContextual("of"))?v.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(oy.comma))break}return i},xy.parseVarId=function(i,o){i.id=this.parseBindingAtom(),this.checkLVal(i.id,"var"===o?1:2,!1)};var _y=1,Ey=2;xy.parseFunction=function(i,o,s,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!v)&&(this.type===oy.star&&o&Ey&&this.unexpected(),i.generator=this.eat(oy.star)),this.options.ecmaVersion>=8&&(i.async=!!v),o&_y&&(i.id=4&o&&this.type!==oy.name?null:this.parseIdent(),!i.id||o&Ey||this.checkLVal(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?1:2:3));var _=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(acorn_functionFlags(i.async,i.generator)),o&_y||(i.id=this.type===oy.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,s,!1),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(i,o&_y?"FunctionDeclaration":"FunctionExpression")},xy.parseFunctionParams=function(i){this.expect(oy.parenL),i.params=this.parseBindingList(oy.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},xy.parseClass=function(i,o){this.next();var s=this.strict;this.strict=!0,this.parseClassId(i,o),this.parseClassSuper(i);var v=this.startNode(),_=!1;for(v.body=[],this.expect(oy.braceL);!this.eat(oy.braceR);){var $=this.parseClassElement(null!==i.superClass);$&&(v.body.push($),"MethodDefinition"===$.type&&"constructor"===$.kind&&(_&&this.raise($.start,"Duplicate constructor in the same class"),_=!0))}return i.body=this.finishNode(v,"ClassBody"),this.strict=s,this.finishNode(i,o?"ClassDeclaration":"ClassExpression")},xy.parseClassElement=function(i){var o=this;if(this.eat(oy.semi))return null;var s=this.startNode(),tryContextual=function(i,v){void 0===v&&(v=!1);var _=o.start,$=o.startLoc;return!!o.eatContextual(i)&&(!(o.type===oy.parenL||v&&o.canInsertSemicolon())||(s.key&&o.unexpected(),s.computed=!1,s.key=o.startNodeAt(_,$),s.key.name=i,o.finishNode(s.key,"Identifier"),!1))};s.kind="method",s.static=tryContextual("static");var v=this.eat(oy.star),_=!1;v||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(_=!0,v=this.options.ecmaVersion>=9&&this.eat(oy.star)):tryContextual("get")?s.kind="get":tryContextual("set")&&(s.kind="set")),s.key||this.parsePropertyName(s);var $=s.key,ae=!1;return s.computed||s.static||!("Identifier"===$.type&&"constructor"===$.name||"Literal"===$.type&&"constructor"===$.value)?s.static&&"Identifier"===$.type&&"prototype"===$.name&&this.raise($.start,"Classes may not have a static property named prototype"):("method"!==s.kind&&this.raise($.start,"Constructor can't have get/set modifier"),v&&this.raise($.start,"Constructor can't be a generator"),_&&this.raise($.start,"Constructor can't be an async method"),s.kind="constructor",ae=i),this.parseClassMethod(s,v,_,ae),"get"===s.kind&&0!==s.value.params.length&&this.raiseRecoverable(s.value.start,"getter should have no params"),"set"===s.kind&&1!==s.value.params.length&&this.raiseRecoverable(s.value.start,"setter should have exactly one param"),"set"===s.kind&&"RestElement"===s.value.params[0].type&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params"),s},xy.parseClassMethod=function(i,o,s,v){return i.value=this.parseMethod(o,s,v),this.finishNode(i,"MethodDefinition")},xy.parseClassId=function(i,o){this.type===oy.name?(i.id=this.parseIdent(),o&&this.checkLVal(i.id,2,!1)):(!0===o&&this.unexpected(),i.id=null)},xy.parseClassSuper=function(i){i.superClass=this.eat(oy._extends)?this.parseExprSubscripts():null},xy.parseExport=function(i,o){if(this.next(),this.eat(oy.star))return this.expectContextual("from"),this.type!==oy.string&&this.unexpected(),i.source=this.parseExprAtom(),this.semicolon(),this.finishNode(i,"ExportAllDeclaration");if(this.eat(oy._default)){var s;if(this.checkExport(o,"default",this.lastTokStart),this.type===oy._function||(s=this.isAsyncFunction())){var v=this.startNode();this.next(),s&&this.next(),i.declaration=this.parseFunction(v,4|_y,!1,s)}else if(this.type===oy._class){var _=this.startNode();i.declaration=this.parseClass(_,"nullableID")}else i.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(i,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())i.declaration=this.parseStatement(null),"VariableDeclaration"===i.declaration.type?this.checkVariableExport(o,i.declaration.declarations):this.checkExport(o,i.declaration.id.name,i.declaration.id.start),i.specifiers=[],i.source=null;else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(o),this.eatContextual("from"))this.type!==oy.string&&this.unexpected(),i.source=this.parseExprAtom();else{for(var $=0,ae=i.specifiers;$=6&&i)switch(i.type){case"Identifier":this.inAsync&&"await"===i.name&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.toAssignable($,o),"RestElement"!==$.type||"ArrayPattern"!==$.argument.type&&"ObjectPattern"!==$.argument.type||this.raise($.argument.start,"Unexpected token")}break;case"Property":"init"!==i.kind&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,o);break;case"ArrayExpression":i.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(i.elements,o);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,o),"AssignmentPattern"===i.argument.type&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==i.operator&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,o);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(i.expression,o,s);break;case"MemberExpression":if(!o)break;default:this.raise(i.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return i},ky.toAssignableList=function(i,o){for(var s=i.length,v=0;v=6)switch(this.type){case oy.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(oy.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case oy.braceL:return this.parseObj(!0)}return this.parseIdent()},ky.parseBindingList=function(i,o,s){for(var v=[],_=!0;!this.eat(i);)if(_?_=!1:this.expect(oy.comma),o&&this.type===oy.comma)v.push(null);else{if(s&&this.afterTrailingComma(i))break;if(this.type===oy.ellipsis){var $=this.parseRestBinding();this.parseBindingListItem($),v.push($),this.type===oy.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}var ae=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(ae),v.push(ae)}return v},ky.parseBindingListItem=function(i){return i},ky.parseMaybeDefault=function(i,o,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(oy.eq))return s;var v=this.startNodeAt(i,o);return v.left=s,v.right=this.parseMaybeAssign(),this.finishNode(v,"AssignmentPattern")},ky.checkLVal=function(i,o,s){switch(void 0===o&&(o=0),i.type){case"Identifier":2===o&&"let"===i.name&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(o?"Binding ":"Assigning to ")+i.name+" in strict mode"),s&&(acorn_has(s,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),s[i.name]=!0),0!==o&&5!==o&&this.declareName(i.name,o,i.start);break;case"MemberExpression":o&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ObjectPattern":for(var v=0,_=i.properties;v<_.length;v+=1){var $=_[v];this.checkLVal($,o,s)}break;case"Property":this.checkLVal(i.value,o,s);break;case"ArrayPattern":for(var ae=0,pe=i.elements;ae=9&&"SpreadElement"===i.type||this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var v,_=i.key;switch(_.type){case"Identifier":v=_.name;break;case"Literal":v=String(_.value);break;default:return}var $=i.kind;if(this.options.ecmaVersion>=6)"__proto__"===v&&"init"===$&&(o.proto&&(s&&s.doubleProto<0?s.doubleProto=_.start:this.raiseRecoverable(_.start,"Redefinition of __proto__ property")),o.proto=!0);else{var ae=o[v="$"+v];if(ae)("init"===$?this.strict&&ae.init||ae.get||ae.set:ae.init||ae[$])&&this.raiseRecoverable(_.start,"Redefinition of property");else ae=o[v]={init:!1,get:!1,set:!1};ae[$]=!0}}},Ay.parseExpression=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeAssign(i,o);if(this.type===oy.comma){var $=this.startNodeAt(s,v);for($.expressions=[_];this.eat(oy.comma);)$.expressions.push(this.parseMaybeAssign(i,o));return this.finishNode($,"SequenceExpression")}return _},Ay.parseMaybeAssign=function(i,o,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var v=!1,_=-1,$=-1,ae=-1;o?(_=o.parenthesizedAssign,$=o.trailingComma,ae=o.shorthandAssign,o.parenthesizedAssign=o.trailingComma=o.shorthandAssign=-1):(o=new acorn_DestructuringErrors,v=!0);var pe=this.start,we=this.startLoc;this.type!==oy.parenL&&this.type!==oy.name||(this.potentialArrowAt=this.start);var _e=this.parseMaybeConditional(i,o);if(s&&(_e=s.call(this,_e,pe,we)),this.type.isAssign){var et=this.startNodeAt(pe,we);return et.operator=this.value,et.left=this.type===oy.eq?this.toAssignable(_e,!1,o):_e,v||acorn_DestructuringErrors.call(o),o.shorthandAssign=-1,this.checkLVal(_e),this.next(),et.right=this.parseMaybeAssign(i),this.finishNode(et,"AssignmentExpression")}return v&&this.checkExpressionErrors(o,!0),_>-1&&(o.parenthesizedAssign=_),$>-1&&(o.trailingComma=$),ae>-1&&(o.shorthandAssign=ae),_e},Ay.parseMaybeConditional=function(i,o){var s=this.start,v=this.startLoc,_=this.parseExprOps(i,o);if(this.checkExpressionErrors(o))return _;if(this.eat(oy.question)){var $=this.startNodeAt(s,v);return $.test=_,$.consequent=this.parseMaybeAssign(),this.expect(oy.colon),$.alternate=this.parseMaybeAssign(i),this.finishNode($,"ConditionalExpression")}return _},Ay.parseExprOps=function(i,o){var s=this.start,v=this.startLoc,_=this.parseMaybeUnary(o,!1);return this.checkExpressionErrors(o)||_.start===s&&"ArrowFunctionExpression"===_.type?_:this.parseExprOp(_,s,v,-1,i)},Ay.parseExprOp=function(i,o,s,v,_){var $=this.type.binop;if(null!=$&&(!_||this.type!==oy._in)&&$>v){var ae=this.type===oy.logicalOR||this.type===oy.logicalAND,pe=this.value;this.next();var we=this.start,_e=this.startLoc,et=this.parseExprOp(this.parseMaybeUnary(null,!1),we,_e,$,_),tt=this.buildBinary(o,s,i,et,pe,ae);return this.parseExprOp(tt,o,s,v,_)}return i},Ay.buildBinary=function(i,o,s,v,_,$){var ae=this.startNodeAt(i,o);return ae.left=s,ae.operator=_,ae.right=v,this.finishNode(ae,$?"LogicalExpression":"BinaryExpression")},Ay.parseMaybeUnary=function(i,o){var s,v=this.start,_=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))s=this.parseAwait(),o=!0;else if(this.type.prefix){var $=this.startNode(),ae=this.type===oy.incDec;$.operator=this.value,$.prefix=!0,this.next(),$.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(i,!0),ae?this.checkLVal($.argument):this.strict&&"delete"===$.operator&&"Identifier"===$.argument.type?this.raiseRecoverable($.start,"Deleting local variable in strict mode"):o=!0,s=this.finishNode($,ae?"UpdateExpression":"UnaryExpression")}else{if(s=this.parseExprSubscripts(i),this.checkExpressionErrors(i))return s;for(;this.type.postfix&&!this.canInsertSemicolon();){var pe=this.startNodeAt(v,_);pe.operator=this.value,pe.prefix=!1,pe.argument=s,this.checkLVal(s),this.next(),s=this.finishNode(pe,"UpdateExpression")}}return!o&&this.eat(oy.starstar)?this.buildBinary(v,_,s,this.parseMaybeUnary(null,!1),"**",!1):s},Ay.parseExprSubscripts=function(i){var o=this.start,s=this.startLoc,v=this.parseExprAtom(i),_="ArrowFunctionExpression"===v.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(i)||_)return v;var $=this.parseSubscripts(v,o,s);return i&&"MemberExpression"===$.type&&(i.parenthesizedAssign>=$.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=$.start&&(i.parenthesizedBind=-1)),$},Ay.parseSubscripts=function(i,o,s,v){for(var _=this.options.ecmaVersion>=8&&"Identifier"===i.type&&"async"===i.name&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(i.start,i.end);;){var $=this.parseSubscript(i,o,s,v,_);if($===i||"ArrowFunctionExpression"===$.type)return $;i=$}},Ay.parseSubscript=function(i,o,s,v,_){var $=this.eat(oy.bracketL);if($||this.eat(oy.dot)){var ae=this.startNodeAt(o,s);ae.object=i,ae.property=$?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),ae.computed=!!$,$&&this.expect(oy.bracketR),i=this.finishNode(ae,"MemberExpression")}else if(!v&&this.eat(oy.parenL)){var pe=new acorn_DestructuringErrors,we=this.yieldPos,_e=this.awaitPos,et=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var tt=this.parseExprList(oy.parenR,this.options.ecmaVersion>=8&&"Import"!==i.type,!1,pe);if(_&&!this.canInsertSemicolon()&&this.eat(oy.arrow))return this.checkPatternErrors(pe,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=we,this.awaitPos=_e,this.awaitIdentPos=et,this.parseArrowExpression(this.startNodeAt(o,s),tt,!0);this.checkExpressionErrors(pe,!0),this.yieldPos=we||this.yieldPos,this.awaitPos=_e||this.awaitPos,this.awaitIdentPos=et||this.awaitIdentPos;var nt=this.startNodeAt(o,s);if(nt.callee=i,nt.arguments=tt,"Import"===nt.callee.type){1!==nt.arguments.length&&this.raise(nt.start,"import() requires exactly one argument");var rt=nt.arguments[0];rt&&"SpreadElement"===rt.type&&this.raise(rt.start,"... is not allowed in import()")}i=this.finishNode(nt,"CallExpression")}else if(this.type===oy.backQuote){var it=this.startNodeAt(o,s);it.tag=i,it.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(it,"TaggedTemplateExpression")}return i},Ay.parseExprAtom=function(i){this.type===oy.slash&&this.readRegexp();var o,s=this.potentialArrowAt===this.start;switch(this.type){case oy._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),o=this.startNode(),this.next(),this.type!==oy.parenL||this.allowDirectSuper||this.raise(o.start,"super() call outside constructor of a subclass"),this.type!==oy.dot&&this.type!==oy.bracketL&&this.type!==oy.parenL&&this.unexpected(),this.finishNode(o,"Super");case oy._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case oy.name:var v=this.start,_=this.startLoc,$=this.containsEsc,ae=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!$&&"async"===ae.name&&!this.canInsertSemicolon()&&this.eat(oy._function))return this.parseFunction(this.startNodeAt(v,_),0,!1,!0);if(s&&!this.canInsertSemicolon()){if(this.eat(oy.arrow))return this.parseArrowExpression(this.startNodeAt(v,_),[ae],!1);if(this.options.ecmaVersion>=8&&"async"===ae.name&&this.type===oy.name&&!$)return ae=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(oy.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(v,_),[ae],!0)}return ae;case oy.regexp:var pe=this.value;return(o=this.parseLiteral(pe.value)).regex={pattern:pe.pattern,flags:pe.flags},o;case oy.num:case oy.string:return this.parseLiteral(this.value);case oy._null:case oy._true:case oy._false:return(o=this.startNode()).value=this.type===oy._null?null:this.type===oy._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case oy.parenL:var we=this.start,_e=this.parseParenAndDistinguishExpression(s);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_e)&&(i.parenthesizedAssign=we),i.parenthesizedBind<0&&(i.parenthesizedBind=we)),_e;case oy.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(oy.bracketR,!0,!0,i),this.finishNode(o,"ArrayExpression");case oy.braceL:return this.parseObj(!1,i);case oy._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case oy._class:return this.parseClass(this.startNode(),!1);case oy._new:return this.parseNew();case oy.backQuote:return this.parseTemplate();case oy._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Ay.parseDynamicImport=function(){var i=this.startNode();return this.next(),this.type!==oy.parenL&&this.unexpected(),this.finishNode(i,"Import")},Ay.parseLiteral=function(i){var o=this.startNode();return o.value=i,o.raw=this.input.slice(this.start,this.end),110===o.raw.charCodeAt(o.raw.length-1)&&(o.bigint=o.raw.slice(0,-1)),this.next(),this.finishNode(o,"Literal")},Ay.parseParenExpression=function(){this.expect(oy.parenL);var i=this.parseExpression();return this.expect(oy.parenR),i},Ay.parseParenAndDistinguishExpression=function(i){var o,s=this.start,v=this.startLoc,_=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $,ae=this.start,pe=this.startLoc,we=[],_e=!0,et=!1,tt=new acorn_DestructuringErrors,nt=this.yieldPos,rt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==oy.parenR;){if(_e?_e=!1:this.expect(oy.comma),_&&this.afterTrailingComma(oy.parenR,!0)){et=!0;break}if(this.type===oy.ellipsis){$=this.start,we.push(this.parseParenItem(this.parseRestBinding())),this.type===oy.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}we.push(this.parseMaybeAssign(!1,tt,this.parseParenItem))}var it=this.start,ot=this.startLoc;if(this.expect(oy.parenR),i&&!this.canInsertSemicolon()&&this.eat(oy.arrow))return this.checkPatternErrors(tt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nt,this.awaitPos=rt,this.parseParenArrowList(s,v,we);we.length&&!et||this.unexpected(this.lastTokStart),$&&this.unexpected($),this.checkExpressionErrors(tt,!0),this.yieldPos=nt||this.yieldPos,this.awaitPos=rt||this.awaitPos,we.length>1?((o=this.startNodeAt(ae,pe)).expressions=we,this.finishNodeAt(o,"SequenceExpression",it,ot)):o=we[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var st=this.startNodeAt(s,v);return st.expression=o,this.finishNode(st,"ParenthesizedExpression")}return o},Ay.parseParenItem=function(i){return i},Ay.parseParenArrowList=function(i,o,s){return this.parseArrowExpression(this.startNodeAt(i,o),s)};var Dy=[];Ay.parseNew=function(){var i=this.startNode(),o=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(oy.dot)){i.meta=o;var s=this.containsEsc;return i.property=this.parseIdent(!0),("target"!==i.property.name||s)&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(i.start,"new.target can only be used in functions"),this.finishNode(i,"MetaProperty")}var v=this.start,_=this.startLoc;return i.callee=this.parseSubscripts(this.parseExprAtom(),v,_,!0),this.options.ecmaVersion>10&&"Import"===i.callee.type&&this.raise(i.callee.start,"Cannot use new with import(...)"),this.eat(oy.parenL)?i.arguments=this.parseExprList(oy.parenR,this.options.ecmaVersion>=8&&"Import"!==i.callee.type,!1):i.arguments=Dy,this.finishNode(i,"NewExpression")},Ay.parseTemplateElement=function(i){var o=i.isTagged,s=this.startNode();return this.type===oy.invalidTemplate?(o||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value,cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===oy.backQuote,this.finishNode(s,"TemplateElement")},Ay.parseTemplate=function(i){void 0===i&&(i={});var o=i.isTagged;void 0===o&&(o=!1);var s=this.startNode();this.next(),s.expressions=[];var v=this.parseTemplateElement({isTagged:o});for(s.quasis=[v];!v.tail;)this.type===oy.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(oy.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(oy.braceR),s.quasis.push(v=this.parseTemplateElement({isTagged:o}));return this.next(),this.finishNode(s,"TemplateLiteral")},Ay.isAsyncProp=function(i){return!i.computed&&"Identifier"===i.key.type&&"async"===i.key.name&&(this.type===oy.name||this.type===oy.num||this.type===oy.string||this.type===oy.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===oy.star)&&!sy.test(this.input.slice(this.lastTokEnd,this.start))},Ay.parseObj=function(i,o){var s=this.startNode(),v=!0,_={};for(s.properties=[],this.next();!this.eat(oy.braceR);){if(v)v=!1;else if(this.expect(oy.comma),this.afterTrailingComma(oy.braceR))break;var $=this.parseProperty(i,o);i||this.checkPropClash($,_,o),s.properties.push($)}return this.finishNode(s,i?"ObjectPattern":"ObjectExpression")},Ay.parseProperty=function(i,o){var s,v,_,$,ae=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(oy.ellipsis))return i?(ae.argument=this.parseIdent(!1),this.type===oy.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(ae,"RestElement")):(this.type===oy.parenL&&o&&(o.parenthesizedAssign<0&&(o.parenthesizedAssign=this.start),o.parenthesizedBind<0&&(o.parenthesizedBind=this.start)),ae.argument=this.parseMaybeAssign(!1,o),this.type===oy.comma&&o&&o.trailingComma<0&&(o.trailingComma=this.start),this.finishNode(ae,"SpreadElement"));this.options.ecmaVersion>=6&&(ae.method=!1,ae.shorthand=!1,(i||o)&&(_=this.start,$=this.startLoc),i||(s=this.eat(oy.star)));var pe=this.containsEsc;return this.parsePropertyName(ae),!i&&!pe&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(ae)?(v=!0,s=this.options.ecmaVersion>=9&&this.eat(oy.star),this.parsePropertyName(ae,o)):v=!1,this.parsePropertyValue(ae,i,s,v,_,$,o,pe),this.finishNode(ae,"Property")},Ay.parsePropertyValue=function(i,o,s,v,_,$,ae,pe){if((s||v)&&this.type===oy.colon&&this.unexpected(),this.eat(oy.colon))i.value=o?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,ae),i.kind="init";else if(this.options.ecmaVersion>=6&&this.type===oy.parenL)o&&this.unexpected(),i.kind="init",i.method=!0,i.value=this.parseMethod(s,v);else if(o||pe||!(this.options.ecmaVersion>=5)||i.computed||"Identifier"!==i.key.type||"get"!==i.key.name&&"set"!==i.key.name||this.type===oy.comma||this.type===oy.braceR)this.options.ecmaVersion>=6&&!i.computed&&"Identifier"===i.key.type?((s||v)&&this.unexpected(),this.checkUnreserved(i.key),"await"!==i.key.name||this.awaitIdentPos||(this.awaitIdentPos=_),i.kind="init",o?i.value=this.parseMaybeDefault(_,$,i.key):this.type===oy.eq&&ae?(ae.shorthandAssign<0&&(ae.shorthandAssign=this.start),i.value=this.parseMaybeDefault(_,$,i.key)):i.value=i.key,i.shorthand=!0):this.unexpected();else{(s||v)&&this.unexpected(),i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);var we="get"===i.kind?0:1;if(i.value.params.length!==we){var _e=i.value.start;"get"===i.kind?this.raiseRecoverable(_e,"getter should have no params"):this.raiseRecoverable(_e,"setter should have exactly one param")}else"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}},Ay.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(oy.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(oy.bracketR),i.key;i.computed=!1}return i.key=this.type===oy.num||this.type===oy.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Ay.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},Ay.parseMethod=function(i,o,s){var v=this.startNode(),_=this.yieldPos,$=this.awaitPos,ae=this.awaitIdentPos;return this.initFunction(v),this.options.ecmaVersion>=6&&(v.generator=i),this.options.ecmaVersion>=8&&(v.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|acorn_functionFlags(o,v.generator)|(s?128:0)),this.expect(oy.parenL),v.params=this.parseBindingList(oy.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(v,!1,!0),this.yieldPos=_,this.awaitPos=$,this.awaitIdentPos=ae,this.finishNode(v,"FunctionExpression")},Ay.parseArrowExpression=function(i,o,s){var v=this.yieldPos,_=this.awaitPos,$=this.awaitIdentPos;return this.enterScope(16|acorn_functionFlags(s,!1)),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(o,!0),this.parseFunctionBody(i,!0,!1),this.yieldPos=v,this.awaitPos=_,this.awaitIdentPos=$,this.finishNode(i,"ArrowFunctionExpression")},Ay.parseFunctionBody=function(i,o,s){var v=o&&this.type!==oy.braceL,_=this.strict,$=!1;if(v)i.body=this.parseMaybeAssign(),i.expression=!0,this.checkParams(i,!1);else{var ae=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);_&&!ae||($=this.strictDirective(this.end))&&ae&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list");var pe=this.labels;this.labels=[],$&&(this.strict=!0),this.checkParams(i,!_&&!$&&!o&&!s&&this.isSimpleParamList(i.params)),i.body=this.parseBlock(!1),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=pe}this.exitScope(),this.strict&&i.id&&this.checkLVal(i.id,5),this.strict=_},Ay.isSimpleParamList=function(i){for(var o=0,s=i;o-1||_.functions.indexOf(i)>-1||_.var.indexOf(i)>-1,_.lexical.push(i),this.inModule&&1&_.flags&&delete this.undefinedExports[i]}else if(4===o){this.currentScope().lexical.push(i)}else if(3===o){var $=this.currentScope();v=this.treatFunctionsAsVar?$.lexical.indexOf(i)>-1:$.lexical.indexOf(i)>-1||$.var.indexOf(i)>-1,$.functions.push(i)}else for(var ae=this.scopeStack.length-1;ae>=0;--ae){var pe=this.scopeStack[ae];if(pe.lexical.indexOf(i)>-1&&!(32&pe.flags&&pe.lexical[0]===i)||!this.treatFunctionsAsVarInScope(pe)&&pe.functions.indexOf(i)>-1){v=!0;break}if(pe.var.push(i),this.inModule&&1&pe.flags&&delete this.undefinedExports[i],3&pe.flags)break}v&&this.raiseRecoverable(s,"Identifier '"+i+"' has already been declared")},Ty.checkLocalExport=function(i){-1===this.scopeStack[0].lexical.indexOf(i.name)&&-1===this.scopeStack[0].var.indexOf(i.name)&&(this.undefinedExports[i.name]=i)},Ty.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ty.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags)return o}},Ty.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var o=this.scopeStack[i];if(3&o.flags&&!(16&o.flags))return o}};var Fy=function Node(i,o,s){this.type="",this.start=o,this.end=0,i.options.locations&&(this.loc=new my(i,s)),i.options.directSourceFile&&(this.sourceFile=i.options.directSourceFile),i.options.ranges&&(this.range=[o,0])},Ny=vy.prototype;function acorn_finishNodeAt(i,o,s,v){return i.type=o,i.end=s,this.options.locations&&(i.loc.end=v),this.options.ranges&&(i.range[1]=s),i}Ny.startNode=function(){return new Fy(this,this.start,this.startLoc)},Ny.startNodeAt=function(i,o){return new Fy(this,i,o)},Ny.finishNode=function(i,o){return acorn_finishNodeAt.call(this,i,o,this.lastTokEnd,this.lastTokEndLoc)},Ny.finishNodeAt=function(i,o,s,v){return acorn_finishNodeAt.call(this,i,o,s,v)};var By=function TokContext(i,o,s,v,_){this.token=i,this.isExpr=!!o,this.preserveSpace=!!s,this.override=v,this.generator=!!_},Ly={b_stat:new By("{",!1),b_expr:new By("{",!0),b_tmpl:new By("${",!1),p_stat:new By("(",!1),p_expr:new By("(",!0),q_tmpl:new By("`",!0,!0,(function(i){return i.tryReadTemplateToken()})),f_stat:new By("function",!1),f_expr:new By("function",!0),f_expr_gen:new By("function",!0,!1,null,!0),f_gen:new By("function",!1,!1,null,!0)},jy=vy.prototype;jy.initialContext=function(){return[Ly.b_stat]},jy.braceIsBlock=function(i){var o=this.curContext();return o===Ly.f_expr||o===Ly.f_stat||(i!==oy.colon||o!==Ly.b_stat&&o!==Ly.b_expr?i===oy._return||i===oy.name&&this.exprAllowed?sy.test(this.input.slice(this.lastTokEnd,this.start)):i===oy._else||i===oy.semi||i===oy.eof||i===oy.parenR||i===oy.arrow||(i===oy.braceL?o===Ly.b_stat:i!==oy._var&&i!==oy._const&&i!==oy.name&&!this.exprAllowed):!o.isExpr)},jy.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var o=this.context[i];if("function"===o.token)return o.generator}return!1},jy.updateContext=function(i){var o,s=this.type;s.keyword&&i===oy.dot?this.exprAllowed=!1:(o=s.updateContext)?o.call(this,i):this.exprAllowed=s.beforeExpr},oy.parenR.updateContext=oy.braceR.updateContext=function(){if(1!==this.context.length){var i=this.context.pop();i===Ly.b_stat&&"function"===this.curContext().token&&(i=this.context.pop()),this.exprAllowed=!i.isExpr}else this.exprAllowed=!0},oy.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?Ly.b_stat:Ly.b_expr),this.exprAllowed=!0},oy.dollarBraceL.updateContext=function(){this.context.push(Ly.b_tmpl),this.exprAllowed=!0},oy.parenL.updateContext=function(i){var o=i===oy._if||i===oy._for||i===oy._with||i===oy._while;this.context.push(o?Ly.p_stat:Ly.p_expr),this.exprAllowed=!0},oy.incDec.updateContext=function(){},oy._function.updateContext=oy._class.updateContext=function(i){!i.beforeExpr||i===oy.semi||i===oy._else||i===oy._return&&sy.test(this.input.slice(this.lastTokEnd,this.start))||(i===oy.colon||i===oy.braceL)&&this.curContext()===Ly.b_stat?this.context.push(Ly.f_stat):this.context.push(Ly.f_expr),this.exprAllowed=!1},oy.backQuote.updateContext=function(){this.curContext()===Ly.q_tmpl?this.context.pop():this.context.push(Ly.q_tmpl),this.exprAllowed=!1},oy.star.updateContext=function(i){if(i===oy._function){var o=this.context.length-1;this.context[o]===Ly.f_expr?this.context[o]=Ly.f_expr_gen:this.context[o]=Ly.f_gen}this.exprAllowed=!0},oy.name.updateContext=function(i){var o=!1;this.options.ecmaVersion>=6&&i!==oy.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(o=!0),this.exprAllowed=o};var My="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Qy=My+" Extended_Pictographic",Vy={9:My,10:Qy,11:Qy},Uy="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Wy="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",$y=Wy+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",qy={9:Wy,10:$y,11:$y+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},zy={};function acorn_buildUnicodeData(i){var o=zy[i]={binary:acorn_wordsRegexp(Vy[i]+" "+Uy),nonBinary:{General_Category:acorn_wordsRegexp(Uy),Script:acorn_wordsRegexp(qy[i])}};o.nonBinary.Script_Extensions=o.nonBinary.Script,o.nonBinary.gc=o.nonBinary.General_Category,o.nonBinary.sc=o.nonBinary.Script,o.nonBinary.scx=o.nonBinary.Script_Extensions}acorn_buildUnicodeData(9),acorn_buildUnicodeData(10),acorn_buildUnicodeData(11);var Zy=vy.prototype,Hy=function RegExpValidationState(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":""),this.unicodeProperties=zy[i.options.ecmaVersion>=11?11:i.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function acorn_codePointToString(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function acorn_isSyntaxCharacter(i){return 36===i||i>=40&&i<=43||46===i||63===i||i>=91&&i<=94||i>=123&&i<=125}function acorn_isRegExpIdentifierStart(i){return acorn_isIdentifierStart(i,!0)||36===i||95===i}function acorn_isRegExpIdentifierPart(i){return acorn_isIdentifierChar(i,!0)||36===i||95===i||8204===i||8205===i}function acorn_isControlLetter(i){return i>=65&&i<=90||i>=97&&i<=122}function acorn_isCharacterClassEscape(i){return 100===i||68===i||115===i||83===i||119===i||87===i}function acorn_isUnicodePropertyNameCharacter(i){return acorn_isControlLetter(i)||95===i}function acorn_isUnicodePropertyValueCharacter(i){return acorn_isUnicodePropertyNameCharacter(i)||acorn_isDecimalDigit(i)}function acorn_isDecimalDigit(i){return i>=48&&i<=57}function acorn_isHexDigit(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function acorn_hexToInt(i){return i>=65&&i<=70?i-65+10:i>=97&&i<=102?i-97+10:i-48}function acorn_isOctalDigit(i){return i>=48&&i<=55}Hy.prototype.reset=function reset(i,o,s){var v=-1!==s.indexOf("u");this.start=0|i,this.source=o+"",this.flags=s,this.switchU=v&&this.parser.options.ecmaVersion>=6,this.switchN=v&&this.parser.options.ecmaVersion>=9},Hy.prototype.raise=function raise(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)},Hy.prototype.at=function at(i){var o=this.source,s=o.length;if(i>=s)return-1;var v=o.charCodeAt(i);if(!this.switchU||v<=55295||v>=57344||i+1>=s)return v;var _=o.charCodeAt(i+1);return _>=56320&&_<=57343?(v<<10)+_-56613888:v},Hy.prototype.nextIndex=function nextIndex(i){var o=this.source,s=o.length;if(i>=s)return s;var v,_=o.charCodeAt(i);return!this.switchU||_<=55295||_>=57344||i+1>=s||(v=o.charCodeAt(i+1))<56320||v>57343?i+1:i+2},Hy.prototype.current=function current(){return this.at(this.pos)},Hy.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},Hy.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},Hy.prototype.eat=function eat(i){return this.current()===i&&(this.advance(),!0)},Zy.validateRegExpFlags=function(i){for(var o=i.validFlags,s=i.flags,v=0;v-1&&this.raise(i.start,"Duplicate regular expression flag")}},Zy.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&i.groupNames.length>0&&(i.switchN=!0,this.regexp_pattern(i))},Zy.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames.length=0,i.backReferenceNames.length=0,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var o=0,s=i.backReferenceNames;o=9&&(s=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!s,!0}return i.pos=o,!1},Zy.regexp_eatQuantifier=function(i,o){return void 0===o&&(o=!1),!!this.regexp_eatQuantifierPrefix(i,o)&&(i.eat(63),!0)},Zy.regexp_eatQuantifierPrefix=function(i,o){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,o)},Zy.regexp_eatBracedQuantifier=function(i,o){var s=i.pos;if(i.eat(123)){var v=0,_=-1;if(this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(_=i.lastIntValue),i.eat(125)))return-1!==_&&_=9?this.regexp_groupSpecifier(i):63===i.current()&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},Zy.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},Zy.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},Zy.regexp_eatSyntaxCharacter=function(i){var o=i.current();return!!acorn_isSyntaxCharacter(o)&&(i.lastIntValue=o,i.advance(),!0)},Zy.regexp_eatPatternCharacters=function(i){for(var o=i.pos,s=0;-1!==(s=i.current())&&!acorn_isSyntaxCharacter(s);)i.advance();return i.pos!==o},Zy.regexp_eatExtendedPatternCharacter=function(i){var o=i.current();return!(-1===o||36===o||o>=40&&o<=43||46===o||63===o||91===o||94===o||124===o)&&(i.advance(),!0)},Zy.regexp_groupSpecifier=function(i){if(i.eat(63)){if(this.regexp_eatGroupName(i))return-1!==i.groupNames.indexOf(i.lastStringValue)&&i.raise("Duplicate capture group name"),void i.groupNames.push(i.lastStringValue);i.raise("Invalid group")}},Zy.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},Zy.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=acorn_codePointToString(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=acorn_codePointToString(i.lastIntValue);return!0}return!1},Zy.regexp_eatRegExpIdentifierStart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),acorn_isRegExpIdentifierStart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},Zy.regexp_eatRegExpIdentifierPart=function(i){var o=i.pos,s=i.current();return i.advance(),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(i)&&(s=i.lastIntValue),acorn_isRegExpIdentifierPart(s)?(i.lastIntValue=s,!0):(i.pos=o,!1)},Zy.regexp_eatAtomEscape=function(i){return!!(this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i))||(i.switchU&&(99===i.current()&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},Zy.regexp_eatBackReference=function(i){var o=i.pos;if(this.regexp_eatDecimalEscape(i)){var s=i.lastIntValue;if(i.switchU)return s>i.maxBackReference&&(i.maxBackReference=s),!0;if(s<=i.numCapturingParens)return!0;i.pos=o}return!1},Zy.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},Zy.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},Zy.regexp_eatCControlLetter=function(i){var o=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=o}return!1},Zy.regexp_eatZero=function(i){return 48===i.current()&&!acorn_isDecimalDigit(i.lookahead())&&(i.lastIntValue=0,i.advance(),!0)},Zy.regexp_eatControlEscape=function(i){var o=i.current();return 116===o?(i.lastIntValue=9,i.advance(),!0):110===o?(i.lastIntValue=10,i.advance(),!0):118===o?(i.lastIntValue=11,i.advance(),!0):102===o?(i.lastIntValue=12,i.advance(),!0):114===o&&(i.lastIntValue=13,i.advance(),!0)},Zy.regexp_eatControlLetter=function(i){var o=i.current();return!!acorn_isControlLetter(o)&&(i.lastIntValue=o%32,i.advance(),!0)},Zy.regexp_eatRegExpUnicodeEscapeSequence=function(i){var o,s=i.pos;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var v=i.lastIntValue;if(i.switchU&&v>=55296&&v<=56319){var _=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var $=i.lastIntValue;if($>=56320&&$<=57343)return i.lastIntValue=1024*(v-55296)+($-56320)+65536,!0}i.pos=_,i.lastIntValue=v}return!0}if(i.switchU&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&((o=i.lastIntValue)>=0&&o<=1114111))return!0;i.switchU&&i.raise("Invalid unicode escape"),i.pos=s}return!1},Zy.regexp_eatIdentityEscape=function(i){if(i.switchU)return!!this.regexp_eatSyntaxCharacter(i)||!!i.eat(47)&&(i.lastIntValue=47,!0);var o=i.current();return!(99===o||i.switchN&&107===o)&&(i.lastIntValue=o,i.advance(),!0)},Zy.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var o=i.current();if(o>=49&&o<=57){do{i.lastIntValue=10*i.lastIntValue+(o-48),i.advance()}while((o=i.current())>=48&&o<=57);return!0}return!1},Zy.regexp_eatCharacterClassEscape=function(i){var o=i.current();if(acorn_isCharacterClassEscape(o))return i.lastIntValue=-1,i.advance(),!0;if(i.switchU&&this.options.ecmaVersion>=9&&(80===o||112===o)){if(i.lastIntValue=-1,i.advance(),i.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(i)&&i.eat(125))return!0;i.raise("Invalid property name")}return!1},Zy.regexp_eatUnicodePropertyValueExpression=function(i){var o=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var s=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,s,v),!0}}if(i.pos=o,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var _=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,_),!0}return!1},Zy.regexp_validateUnicodePropertyNameAndValue=function(i,o,s){acorn_has(i.unicodeProperties.nonBinary,o)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[o].test(s)||i.raise("Invalid property value")},Zy.regexp_validateUnicodePropertyNameOrValue=function(i,o){i.unicodeProperties.binary.test(o)||i.raise("Invalid property name")},Zy.regexp_eatUnicodePropertyName=function(i){var o=0;for(i.lastStringValue="";acorn_isUnicodePropertyNameCharacter(o=i.current());)i.lastStringValue+=acorn_codePointToString(o),i.advance();return""!==i.lastStringValue},Zy.regexp_eatUnicodePropertyValue=function(i){var o=0;for(i.lastStringValue="";acorn_isUnicodePropertyValueCharacter(o=i.current());)i.lastStringValue+=acorn_codePointToString(o),i.advance();return""!==i.lastStringValue},Zy.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},Zy.regexp_eatCharacterClass=function(i){if(i.eat(91)){if(i.eat(94),this.regexp_classRanges(i),i.eat(93))return!0;i.raise("Unterminated character class")}return!1},Zy.regexp_classRanges=function(i){for(;this.regexp_eatClassAtom(i);){var o=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var s=i.lastIntValue;!i.switchU||-1!==o&&-1!==s||i.raise("Invalid character class"),-1!==o&&-1!==s&&o>s&&i.raise("Range out of order in character class")}}},Zy.regexp_eatClassAtom=function(i){var o=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var s=i.current();(99===s||acorn_isOctalDigit(s))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=o}var v=i.current();return 93!==v&&(i.lastIntValue=v,i.advance(),!0)},Zy.regexp_eatClassEscape=function(i){var o=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=o}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},Zy.regexp_eatClassControlLetter=function(i){var o=i.current();return!(!acorn_isDecimalDigit(o)&&95!==o)&&(i.lastIntValue=o%32,i.advance(),!0)},Zy.regexp_eatHexEscapeSequence=function(i){var o=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=o}return!1},Zy.regexp_eatDecimalDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;acorn_isDecimalDigit(s=i.current());)i.lastIntValue=10*i.lastIntValue+(s-48),i.advance();return i.pos!==o},Zy.regexp_eatHexDigits=function(i){var o=i.pos,s=0;for(i.lastIntValue=0;acorn_isHexDigit(s=i.current());)i.lastIntValue=16*i.lastIntValue+acorn_hexToInt(s),i.advance();return i.pos!==o},Zy.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var o=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var s=i.lastIntValue;o<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=64*o+8*s+i.lastIntValue:i.lastIntValue=8*o+s}else i.lastIntValue=o;return!0}return!1},Zy.regexp_eatOctalDigit=function(i){var o=i.current();return acorn_isOctalDigit(o)?(i.lastIntValue=o-48,i.advance(),!0):(i.lastIntValue=0,!1)},Zy.regexp_eatFixedHexDigits=function(i,o){var s=i.pos;i.lastIntValue=0;for(var v=0;v>10),56320+(1023&i)))}Xy.next=function(){this.options.onToken&&this.options.onToken(new Gy(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Xy.getToken=function(){return this.next(),new Gy(this)},"undefined"!=typeof Symbol&&(Xy[Symbol.iterator]=function(){var i=this;return{next:function(){var o=i.getToken();return{done:o.type===oy.eof,value:o}}}}),Xy.curContext=function(){return this.context[this.context.length-1]},Xy.nextToken=function(){var i=this.curContext();return i&&i.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(oy.eof):i.override?i.override(this):void this.readToken(this.fullCharCodeAtPos())},Xy.readToken=function(i){return acorn_isIdentifierStart(i,this.options.ecmaVersion>=6)||92===i?this.readWord():this.getTokenFromCode(i)},Xy.fullCharCodeAtPos=function(){var i=this.input.charCodeAt(this.pos);return i<=55295||i>=57344?i:(i<<10)+this.input.charCodeAt(this.pos+1)-56613888},Xy.skipBlockComment=function(){var i,o=this.options.onComment&&this.curPosition(),s=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(-1===v&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations)for(dy.lastIndex=s;(i=dy.exec(this.input))&&i.index8&&i<14||i>=5760&&uy.test(String.fromCharCode(i))))break e;++this.pos}}},Xy.finishToken=function(i,o){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=i,this.value=o,this.updateContext(s)},Xy.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var o=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===i&&46===o?(this.pos+=3,this.finishToken(oy.ellipsis)):(++this.pos,this.finishToken(oy.dot))},Xy.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===i?this.finishOp(oy.assign,2):this.finishOp(oy.slash,1)},Xy.readToken_mult_modulo_exp=function(i){var o=this.input.charCodeAt(this.pos+1),s=1,v=42===i?oy.star:oy.modulo;return this.options.ecmaVersion>=7&&42===i&&42===o&&(++s,v=oy.starstar,o=this.input.charCodeAt(this.pos+2)),61===o?this.finishOp(oy.assign,s+1):this.finishOp(v,s)},Xy.readToken_pipe_amp=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?this.finishOp(124===i?oy.logicalOR:oy.logicalAND,2):61===o?this.finishOp(oy.assign,2):this.finishOp(124===i?oy.bitwiseOR:oy.bitwiseAND,1)},Xy.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(oy.assign,2):this.finishOp(oy.bitwiseXOR,1)},Xy.readToken_plus_min=function(i){var o=this.input.charCodeAt(this.pos+1);return o===i?45!==o||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!sy.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(oy.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===o?this.finishOp(oy.assign,2):this.finishOp(oy.plusMin,1)},Xy.readToken_lt_gt=function(i){var o=this.input.charCodeAt(this.pos+1),s=1;return o===i?(s=62===i&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(oy.assign,s+1):this.finishOp(oy.bitShift,s)):33!==o||60!==i||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===o&&(s=2),this.finishOp(oy.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Xy.readToken_eq_excl=function(i){var o=this.input.charCodeAt(this.pos+1);return 61===o?this.finishOp(oy.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===i&&62===o&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(oy.arrow)):this.finishOp(61===i?oy.eq:oy.prefix,1)},Xy.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(oy.parenL);case 41:return++this.pos,this.finishToken(oy.parenR);case 59:return++this.pos,this.finishToken(oy.semi);case 44:return++this.pos,this.finishToken(oy.comma);case 91:return++this.pos,this.finishToken(oy.bracketL);case 93:return++this.pos,this.finishToken(oy.bracketR);case 123:return++this.pos,this.finishToken(oy.braceL);case 125:return++this.pos,this.finishToken(oy.braceR);case 58:return++this.pos,this.finishToken(oy.colon);case 63:return++this.pos,this.finishToken(oy.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(oy.backQuote);case 48:var o=this.input.charCodeAt(this.pos+1);if(120===o||88===o)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===o||79===o)return this.readRadixNumber(8);if(98===o||66===o)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 126:return this.finishOp(oy.prefix,1)}this.raise(this.pos,"Unexpected character '"+acorn_codePointToString$1(i)+"'")},Xy.finishOp=function(i,o){var s=this.input.slice(this.pos,this.pos+o);return this.pos+=o,this.finishToken(i,s)},Xy.readRegexp=function(){for(var i,o,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var v=this.input.charAt(this.pos);if(sy.test(v)&&this.raise(s,"Unterminated regular expression"),i)i=!1;else{if("["===v)o=!0;else if("]"===v&&o)o=!1;else if("/"===v&&!o)break;i="\\"===v}++this.pos}var _=this.input.slice(s,this.pos);++this.pos;var $=this.pos,ae=this.readWord1();this.containsEsc&&this.unexpected($);var pe=this.regexpState||(this.regexpState=new Hy(this));pe.reset(s,_,ae),this.validateRegExpFlags(pe),this.validateRegExpPattern(pe);var we=null;try{we=new RegExp(_,ae)}catch(i){}return this.finishToken(oy.regexp,{pattern:_,flags:ae,value:we})},Xy.readInt=function(i,o){for(var s=this.pos,v=0,_=0,$=null==o?1/0:o;_<$;++_){var ae=this.input.charCodeAt(this.pos),pe=void 0;if((pe=ae>=97?ae-97+10:ae>=65?ae-65+10:ae>=48&&ae<=57?ae-48:1/0)>=i)break;++this.pos,v=v*i+pe}return this.pos===s||null!=o&&this.pos-s!==o?null:v},Xy.readRadixNumber=function(i){var o=this.pos;this.pos+=2;var s=this.readInt(i);return null==s&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s="undefined"!=typeof BigInt?BigInt(this.input.slice(o,this.pos)):null,++this.pos):acorn_isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(oy.num,s)},Xy.readNumber=function(i){var o=this.pos;i||null!==this.readInt(10)||this.raise(o,"Invalid number");var s=this.pos-o>=2&&48===this.input.charCodeAt(o);s&&this.strict&&this.raise(o,"Invalid number"),s&&/[89]/.test(this.input.slice(o,this.pos))&&(s=!1);var v=this.input.charCodeAt(this.pos);if(!s&&!i&&this.options.ecmaVersion>=11&&110===v){var _=this.input.slice(o,this.pos),$="undefined"!=typeof BigInt?BigInt(_):null;return++this.pos,acorn_isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(oy.num,$)}46!==v||s||(++this.pos,this.readInt(10),v=this.input.charCodeAt(this.pos)),69!==v&&101!==v||s||(43!==(v=this.input.charCodeAt(++this.pos))&&45!==v||++this.pos,null===this.readInt(10)&&this.raise(o,"Invalid number")),acorn_isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var ae=this.input.slice(o,this.pos),pe=s?parseInt(ae,8):parseFloat(ae);return this.finishToken(oy.num,pe)},Xy.readCodePoint=function(){var i;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var o=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111&&this.invalidStringToken(o,"Code point out of bounds")}else i=this.readHexChar(4);return i},Xy.readString=function(i){for(var o="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var v=this.input.charCodeAt(this.pos);if(v===i)break;92===v?(o+=this.input.slice(s,this.pos),o+=this.readEscapedChar(!1),s=this.pos):(acorn_isNewLine(v,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return o+=this.input.slice(s,this.pos++),this.finishToken(oy.string,o)};var Yy={};Xy.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i!==Yy)throw i;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Xy.invalidStringToken=function(i,o){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Yy;this.raise(i,o)},Xy.readTmplToken=function(){for(var i="",o=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==oy.template&&this.type!==oy.invalidTemplate?(i+=this.input.slice(o,this.pos),this.finishToken(oy.template,i)):36===s?(this.pos+=2,this.finishToken(oy.dollarBraceL)):(++this.pos,this.finishToken(oy.backQuote));if(92===s)i+=this.input.slice(o,this.pos),i+=this.readEscapedChar(!0),o=this.pos;else if(acorn_isNewLine(s)){switch(i+=this.input.slice(o,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:i+="\n";break;default:i+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),o=this.pos}else++this.pos}},Xy.readInvalidTemplateToken=function(){for(;this.pos=48&&o<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],v=parseInt(s,8);return v>255&&(s=s.slice(0,-1),v=parseInt(s,8)),this.pos+=s.length-1,o=this.input.charCodeAt(this.pos),"0"===s&&56!==o&&57!==o||!this.strict&&!i||this.invalidStringToken(this.pos-1-s.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(v)}return acorn_isNewLine(o)?"":String.fromCharCode(o)}},Xy.readHexChar=function(i){var o=this.pos,s=this.readInt(16,i);return null===s&&this.invalidStringToken(o,"Bad character escape sequence"),s},Xy.readWord1=function(){this.containsEsc=!1;for(var i="",o=!0,s=this.pos,v=this.options.ecmaVersion>=6;this.pos"+i+";"};function compileCode(i,o,s){try{var v=tv(i)?nv(i):i;return transpileImports(ev(v,o))}catch(i){s&&s(i)}return""}var av=s(107),rv=s.n(av),iv=function unsemicolon(i){return i.replace(/;\s*$/,"")};function splitExampleCode(i){var o=getAst(i);if(!o)return{head:"",example:i};var s=rv()(o.body.reverse(),{type:"ExpressionStatement"});if(!s)return{head:"",example:i};var v=s.start,_=s.end,$=iv(i.substring(0,v));return{head:$,example:$+";\nreturn ("+iv(i.substring(v,_))+");"}}var ov=function(i){var o,s;s=i,(o=ReactExample).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=ReactExample;function ReactExample(){return i.apply(this,arguments)||this}var _=ReactExample.prototype;return _.shouldComponentUpdate=function shouldComponentUpdate(i){return this.props.code!==i.code},_.getExampleComponent=function getExampleComponent(i){return this.props.evalInContext("\n\t\t\t"+i+"\n\t\t")},_.render=function render(){var i=this.props,o=i.code,s=i.compilerConfig,v=void 0===s?{}:s,_=i.onError,$=compileCode(o,v,_);if(!$)return null;var ae=splitExampleCode($).example,we=this.getExampleComponent(ae);return pe.a.createElement(wu,{onError:_},pe.a.createElement(we,null))},ReactExample}(ae.Component);function Preview_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Preview_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}!function ReactExample_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}(ov,"propTypes",{code:_e.a.string.isRequired,evalInContext:_e.a.func.isRequired,onError:_e.a.func.isRequired,compilerConfig:_e.a.object});var sv=function improveErrorMessage(i){return i.replace("Check the render method of `StateHolder`.","Check the code of your example in a Markdown file or in the editor below.")},dv=function(i){var o,s;s=i,(o=Preview).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=Preview;function Preview(){for(var o,s=arguments.length,v=new Array(s),_=0;_0&&console.clear(),this.executeCode()},_.shouldComponentUpdate=function shouldComponentUpdate(i,o){return this.state.error!==o.error||this.props.code!==i.code},_.componentDidUpdate=function componentDidUpdate(i){this.props.code!==i.code&&this.executeCode()},_.componentWillUnmount=function componentWillUnmount(){this.unmountPreview()},_.unmountPreview=function unmountPreview(){this.mountNode&&$.a.unmountComponentAtNode(this.mountNode)},_.executeCode=function executeCode(){var i=this;this.setState({error:null});var o=this.props.code;if(o){var s=pe.a.createElement(ov,{code:o,evalInContext:this.props.evalInContext,onError:this.handleError,compilerConfig:this.context.config.compilerConfig});window.requestAnimationFrame((function(){try{$.a.render(s,i.mountNode)}catch(o){i.handleError(o)}}))}},_.render=function render(){var i=this,o=this.state.error;return pe.a.createElement(pe.a.Fragment,null,pe.a.createElement("div",{"data-testid":"mountNode",ref:function ref(o){return i.mountNode=o}}),o&&pe.a.createElement(xu,{message:o}))},Preview}(ae.Component);function Slot_extends(){return Slot_extends=Object.assign||function(i){for(var o=1;o=0||(_[s]=i[s]);return _}Preview_defineProperty(dv,"propTypes",{code:_e.a.string.isRequired,evalInContext:_e.a.func.isRequired}),Preview_defineProperty(dv,"contextType",Md.a),Slot.propTypes={name:_e.a.string.isRequired,active:_e.a.string,onlyActive:_e.a.bool,props:_e.a.object,className:_e.a.string};var uv=function PlaygroundRenderer(i){var o,s=i.classes,v=i.exampleIndex,_=i.name,$=i.padded,ae=i.preview,we=i.previewProps,_e=i.tabButtons,et=i.tabBody,tt=i.toolbar,nt=we.className,rt=PlaygroundRenderer_objectWithoutPropertiesLoose(we,["className"]),it=Object(pr.a)(s.preview,nt,((o={})[s.padded]=$,o));return pe.a.createElement("div",{className:s.root,"data-testid":_+"-example-"+v},pe.a.createElement("div",PlaygroundRenderer_extends({className:it},rt,{"data-preview":_,"data-testid":"preview-wrapper"}),ae),pe.a.createElement("div",{className:s.controls},pe.a.createElement("div",{className:s.tabs},_e),pe.a.createElement("div",{className:s.toolbar},tt)),pe.a.createElement("div",{className:s.tab},et))};uv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,exampleIndex:_e.a.number.isRequired,name:_e.a.string.isRequired,padded:_e.a.bool.isRequired,preview:_e.a.node.isRequired,previewProps:_e.a.object.isRequired,tabButtons:_e.a.node.isRequired,tabBody:_e.a.node.isRequired,toolbar:_e.a.node.isRequired};var lv=Object(et.a)((function styles(i){var o=i.space,s=i.color,v=i.borderRadius;return{root:{marginBottom:o[4]},preview:{padding:o[2],border:[[1,s.border,"solid"]],borderRadius:v,width:"100%",display:"inline-block"},controls:{display:"flex",alignItems:"center",marginBottom:o[1]},toolbar:{marginLeft:"auto"},tab:{},padded:{"& > *":{isolate:!1,marginLeft:-o[1],marginRight:-o[1],"& > *":{isolate:!1,marginRight:o[1],marginLeft:o[1]}}}}}))(uv),cv=Object.freeze({all:"all",section:"section",component:"component",example:"example",notFound:"notFound"}),hv=Object.freeze({hide:"hide",collapse:"collapse",expand:"expand"}),pv=Object.freeze({hide:"hide",collapse:"collapse",expand:"expand"});function Playground_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Playground_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var fv=function(i){var o,s;s=i,(o=Playground).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=Playground;function Playground(){for(var o,s=arguments.length,v=new Array(s),_=0;_=0||(_[s]=i[s]);return _}var xv=function SectionHeading(i){var o=i.slotName,s=i.slotProps,v=i.children,_=i.id,$=i.href,ae=SectionHeading_objectWithoutPropertiesLoose(i,["slotName","slotProps","children","id","href"]);return pe.a.createElement(Ov,SectionHeading_extends({toolbar:pe.a.createElement(Slot,{name:o,props:s}),id:_,href:$},ae),v)};xv.propTypes={children:_e.a.node,id:_e.a.string.isRequired,slotName:_e.a.string.isRequired,slotProps:_e.a.any.isRequired,depth:_e.a.number.isRequired,deprecated:_e.a.bool,pagePerSection:_e.a.bool};var wv=xv,Cv=s(221),Sv=s.n(Cv),_v=Object(et.a)((function styles(i){var o=i.space,s=i.fontFamily,v=i.fontSize,_=i.color;return{pathline:{fontFamily:s.monospace,fontSize:v.small,color:_.light,wordBreak:"break-all"},copyButton:{marginLeft:o[0]}}}))((function PathlineRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("div",{className:o.pathline},s,pe.a.createElement(Ys,{small:!0,className:o.copyButton,onClick:function onClick(){return s&&Sv()(s.toString())},title:"Copy to clipboard"},pe.a.createElement(MdContentCopy,null)))})),Ev=function ReactComponentRenderer(i){var o=i.classes,s=i.name,v=i.heading,_=i.pathLine,$=i.description,ae=i.docs,we=i.examples,_e=i.tabButtons,et=i.tabBody;return pe.a.createElement("div",{className:o.root,"data-testid":s+"-container"},pe.a.createElement("header",{className:o.header},v,_&&pe.a.createElement(_v,null,_)),($||ae)&&pe.a.createElement("div",{className:o.docs},$,ae),_e&&pe.a.createElement("div",{className:o.tabs},pe.a.createElement("div",{className:o.tabButtons},_e),pe.a.createElement("div",{className:o.tabBody},et)),we)};Ev.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string.isRequired,heading:_e.a.node.isRequired,filepath:_e.a.string,pathLine:_e.a.string,tabButtons:_e.a.node,tabBody:_e.a.node,description:_e.a.node,docs:_e.a.node,examples:_e.a.node,isolated:_e.a.bool};var kv=Object(et.a)((function styles(i){var o=i.color,s=i.fontSize,v=i.space;return{root:{marginBottom:v[6]},header:{marginBottom:v[3]},tabs:{marginBottom:v[3]},tabButtons:{marginBottom:v[1]},tabBody:{overflowX:"auto",maxWidth:"100%",WebkitOverflowScrolling:"touch"},docs:{color:o.base,fontSize:s.text}}}))(Ev),Av=s(61);function ExamplePlaceholderRenderer_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ExamplePlaceholderRenderer_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var Dv=function(i){var o,s;s=i,(o=ExamplePlaceholderRenderer).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=ExamplePlaceholderRenderer;function ExamplePlaceholderRenderer(){for(var o,s=arguments.length,v=new Array(s),_=0;_\n\t```\n\nYou may need to **restart** the style guide server after adding an example file.\n\nRead more in the [documenting components guide]('+Av.DOCS_DOCUMENTING+").\n\t\t\t\t\t"}):pe.a.createElement("button",{className:o.button,onClick:this.handleOpen},"Add examples to this component")},ExamplePlaceholderRenderer}(ae.Component);ExamplePlaceholderRenderer_defineProperty(Dv,"propTypes",{classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string});Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{button:{padding:0,fontSize:s.base,fontFamily:o.base,textDecoration:"underline",color:v.light,border:0,cursor:"pointer",background:"transparent","&:hover, &:active":{isolate:!1,color:v.lightest}}}}))(Dv);function ReactComponent_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ReactComponent_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}var ExamplePlaceholder=function(){return pe.a.createElement("div",null)},Pv=function(i){var o,s;s=i,(o=ReactComponent).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=ReactComponent;function ReactComponent(){for(var o,s=arguments.length,v=new Array(s),_=0;_0?pe.a.createElement(Rv,{examples:ht,name:et,exampleMode:_e}):pe.a.createElement(ExamplePlaceholder,{name:et}),tabButtons:gt&&pe.a.createElement(Slot,{name:"docsTabButtons",active:i,props:Object.assign({},$,{onClick:this.handleTabChange})}),tabBody:pe.a.createElement(Slot,{name:"docsTabs",active:i,onlyActive:!0,props:$})})},ReactComponent}(ae.Component);function ComponentsRenderer(i){var o=i.children;return pe.a.createElement("div",null,o)}ReactComponent_defineProperty(Pv,"propTypes",{component:_e.a.object.isRequired,depth:_e.a.number.isRequired,exampleMode:_e.a.string.isRequired,usageMode:_e.a.string.isRequired}),ReactComponent_defineProperty(Pv,"contextType",Md.a),ComponentsRenderer.propTypes={children:_e.a.node.isRequired};var Tv=function Components(i){var o=i.components,s=i.depth,v=i.exampleMode,_=i.usageMode;return pe.a.createElement(ComponentsRenderer,null,o.map((function(i){return pe.a.createElement(Pv,{key:i.filepath,component:i,exampleMode:v,usageMode:_,depth:s})})))};Tv.propTypes={components:_e.a.array.isRequired,depth:_e.a.number.isRequired,exampleMode:_e.a.string.isRequired,usageMode:_e.a.string.isRequired};var Iv=Tv,Fv=function SectionRenderer(i){var o=i.classes,s=i.name,v=i.slug,_=i.content,$=i.components,ae=i.sections,we=i.depth,_e=i.description,et=i.pagePerSection;return pe.a.createElement("section",{className:o.root,"data-testid":"section-"+v},s&&pe.a.createElement(wv,{depth:we,id:v,slotName:"sectionToolbar",pagePerSection:et,slotProps:i},s),_e&&pe.a.createElement(Kr,{text:_e}),_,ae,$)};Fv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,name:_e.a.string,description:_e.a.string,slug:_e.a.string.isRequired,content:_e.a.node,components:_e.a.node,sections:_e.a.node,isolated:_e.a.bool,depth:_e.a.number.isRequired,pagePerSection:_e.a.bool};var Nv=Object(et.a)((function styles(i){return{root:{marginBottom:i.space[4]}}}))(Fv),Bv=function Section(i){var o=i.section,s=i.depth,v=Object(Md.b)(),_=v.displayMode,$=v.config.pagePerSection,ae=o.name,we=o.slug,_e=o.filepath,et=o.content,tt=o.components,nt=o.sections,rt=o.description,it=o.exampleMode,ot=o.usageMode,st=Array.isArray(et)?pe.a.createElement(Rv,{examples:et,name:ae,exampleMode:it}):null,dt=tt&&pe.a.createElement(Iv,{usageMode:ot,exampleMode:it,components:tt,depth:s+1}),ut=nt&&pe.a.createElement(Vv,{sections:nt,depth:s+1});return pe.a.createElement(Nv,{description:rt,pagePerSection:$,name:ae,slug:we,filepath:_e,content:st,components:dt,sections:ut,isolated:_!==cv.all,depth:s})};Bv.propTypes={section:_e.a.any.isRequired,depth:_e.a.number.isRequired};var Lv=Bv,jv=function SectionsRenderer(i){var o=i.classes,s=i.children;return pe.a.createElement("section",{className:o.root},s)};jv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,children:_e.a.node};var Mv=Object(et.a)((function styles(){return{root:{}}}))(jv),Qv=function Sections(i){var o=i.sections,s=i.depth;return pe.a.createElement(Mv,null,o.filter((function(i){return!i.externalLink})).map((function(i,o){return pe.a.createElement(Lv,{key:o,section:i,depth:s})})))};Qv.propTypes={sections:_e.a.array.isRequired,depth:_e.a.number.isRequired,root:_e.a.bool};var Vv=Qv,Uv=function WelcomeRenderer(i){var o=i.classes,s=i.patterns;return pe.a.createElement("div",{className:o.root},pe.a.createElement(Kr,{text:"\n# Welcome to React Styleguidist!\n\n**We couldn’t find any components** using these patterns:\n\n"+s.map((function(i){return"- `"+i+"`"})).join("\n")+"\n\nCreate **styleguide.config.js** file in your project root directory like this:\n\n module.exports = {\n components: 'src/components/**/*.js'\n };\n\nRead more in the [locating components guide]("+Av.DOCS_COMPONENTS+").\n\t\t\t\t"}))};Uv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,patterns:_e.a.array.isRequired};var Wv=Object(et.a)((function styles(i){var o=i.space;return{root:{maxWidth:i.maxWidth,margin:[[0,"auto"]],padding:o[4]}}}))(Uv),$v=function ErrorRenderer(i){var o=i.classes,s=i.error,v=i.info;return pe.a.createElement("div",{className:o.root},pe.a.createElement("pre",{className:o.stack},s.toString(),v.componentStack),pe.a.createElement("div",{className:o.message},pe.a.createElement("p",null,"This may be due to an error in a component you are overriding, or a bug in React Styleguidist."),pe.a.createElement("p",null,"If you believe this is a bug, ",pe.a.createElement("a",{style:{color:"inherit"},href:"https://github.com/styleguidist/react-styleguidist/issues"},"please submit an issue"),".")))};$v.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired,error:_e.a.object.isRequired,info:_e.a.any.isRequired};var qv=Object(et.a)((function styles(i){var o=i.fontFamily,s=i.fontSize,v=i.color;return{root:{margin:i.space[2],lineHeight:1.2,fontSize:s.small},stack:{color:v.error,whiteSpace:"pre-wrap",fontFamily:o.monospace},message:{color:v.error,fontFamily:o.base}}}))($v),zv=function NotFoundRenderer(i){var o=i.classes;return pe.a.createElement("div",{className:o.root},pe.a.createElement(Kr,{text:"\n# Page not found\nThe link you followed may be broken, or the page may have been removed.\n"}))};zv.propTypes={classes:_e.a.objectOf(_e.a.string.isRequired).isRequired};var Zv=Object(et.a)((function styles(i){return{root:{maxWidth:i.maxWidth,margin:[[0,"auto"]]}}}))(zv);function StyleGuide_assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function StyleGuide_defineProperty(i,o,s){return o in i?Object.defineProperty(i,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[o]=s,i}function StyleGuide_hasSidebar(i,o){return i===cv.notFound||o&&i===cv.all}var Hv=function(i){var o,s;s=i,(o=StyleGuide).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var v;v=StyleGuide;function StyleGuide(){for(var o,s=arguments.length,v=new Array(s),_=0;_0&&_&&(v=Object.assign({},v,{sections:[],components:[]})),i=[v]}else i=[]}})),i.length||(et=cv.notFound),ae=pe[pe.length-1];else if((tt=filterComponentsInSectionsByExactName(i,ae,!0)).length)i=tt,et=cv.component;else{var nt=findSection(i,ae);i=nt?[nt]:[],et=cv.section}if(Kv()(we))if(1===tt.length){var rt=tt[0].components;i=[Object.assign({},tt[0],{components:rt&&"number"==typeof we?[(v=rt[0],_=we,Object.assign({},v,{props:Object.assign({},v.props,{examples:v.props&&v.props.examples?[v.props.examples[_]]:[]})}))]:[]})],et=cv.example}else 1===i.length&&(i=[filterSectionExamples(i[0],we)],et=cv.example)}return{sections:i,displayMode:et}}function processComponents(i,o){var s=o.useRouterLinks,v=o.useHashId,_=o.hashPath;return i.map((function(i){return i.props?Object.assign({},i,{name:i.props.displayName,visibleName:i.props.visibleName||i.props.displayName,props:Object.assign({},i.props,{examples:[].concat(i.props.examples||[],i.props.example||[])}),href:i.href||getUrl({name:i.props.displayName,slug:i.slug,anchor:!s,hashPath:!!s&&_,useSlugAsIdParam:!!s&&v})}):{}}))}function processSections(i,o){var s=o.useRouterLinks,v=o.useHashId,_=void 0!==v&&v,$=o.hashPath,ae=void 0===$?[]:$;return i.map((function(i){var o={useRouterLinks:Boolean(s&&i.name),useHashId:0===i.sectionDepth,hashPath:[].concat(ae,[i.name?i.name:"-"])},v=i.href||getUrl({name:i.name,slug:i.slug,anchor:!s,hashPath:!!s&&ae,useSlugAsIdParam:!!s&&_});return Object.assign({},i,{externalLink:!!i.href,href:v,visibleName:i.name,components:processComponents(i.components||[],o),sections:processSections(i.sections||[],o)})}))}function renderStyleguide(i,o,s,v,_){return void 0===s&&(s=window.location),void 0===v&&(v=document),void 0===_&&(_=window.history),function(){var $=processSections(i.sections,{useRouterLinks:i.config.pagePerSection}),ae=i.config,we=ae.title,_e=ae.pagePerSection,et=(ae.theme,ae.styles,getRouteData($,s.hash,_e)),tt=et.sections,nt=et.displayMode;if(v.title=getPageTitle(tt,we,nt),"#/"===s.hash){var rt=s.pathname+s.search;_.replaceState("",v.title,rt)}return pe.a.createElement(Hv,{codeRevision:o,cssRevision:"0",config:i.config,slots:(i.config,{sectionToolbar:Ad,componentToolbar:Ad,exampleToolbar:Ad,exampleTabButtons:[{id:_d,render:cd}],exampleTabs:[{id:_d,render:ut}],docsTabButtons:[{id:kd,render:Cd}],docsTabs:[{id:kd,render:Gs}]}),welcomeScreen:i.welcomeScreen,patterns:i.patterns,sections:tt,allSections:$,displayMode:nt,pagePerSection:_e})}()}var Jv=function render(){var i=s(823);$.a.render(renderStyleguide(i,0),document.getElementById(i.config.mountPointId))};window.addEventListener("hashchange",Jv),window.addEventListener("hashchange",(function scrollToOrigin(){var i,o=window.location.hash;if(i=su(o,"#/")||su(o,"#!/")?lu(o,"id"):du(o,"#"),o)if(i){var s=document.getElementById(i);s&&s.scrollIntoView(!0)}else window.scrollTo(0,0)})),Jv()},,,function(i,o,s){"use strict";var v=s(65),_=s(108),$=s(114);var ae=Object($.a)("facebook",(function facebookLink(i,o){var s=o.quote,$=o.hashtag;return Object(v.a)(i,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+Object(_.a)({u:i,quote:s,hashtag:$})}),(function(i){return{quote:i.quote,hashtag:i.hashtag}}),{windowWidth:550,windowHeight:400});o.a=ae},function(i,o,s){"use strict";var v=s(109),_=Object(v.a)({color:"#3b5998",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"});o.a=_},function(i,o,s){"use strict";var v=s(65),_=s(108),$=s(114);var ae=Object($.a)("twitter",(function twitterLink(i,o){var s=o.title,$=o.via,ae=o.hashtags,pe=void 0===ae?[]:ae,we=o.related,_e=void 0===we?[]:we;return Object(v.a)(i,"twitter.url"),Object(v.a)(Array.isArray(pe),"twitter.hashtags is not an array"),Object(v.a)(Array.isArray(_e),"twitter.related is not an array"),"https://twitter.com/share"+Object(_.a)({url:i,text:s,via:$,hashtags:pe.length>0?pe.join(","):void 0,related:_e.length>0?_e.join(","):void 0})}),(function(i){return{hashtags:i.hashtags,title:i.title,via:i.via,related:i.related}}),{windowWidth:550,windowHeight:400});o.a=ae},function(i,o,s){"use strict";var v=s(109),_=Object(v.a)({color:"#00aced",networkName:"twitter",path:"M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"});o.a=_}]]); \ No newline at end of file diff --git a/docs/build/main.2ed23f0f.js b/docs/build/main.2ed23f0f.js deleted file mode 100644 index 15c7a0f1..00000000 --- a/docs/build/main.2ed23f0f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{104:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return l}));var n=s(0),i=s(231),r=s(233),a=s(232),o=s(226),c=(s(844),s(4));class l extends n.Component{constructor(){super(...arguments),this.state={editorIsFocused:!1},this.extension=Object(o.a)({focus:()=>{this.onFocus(!0)},blur:()=>{this.onFocus(!1)}}),this.onFocus=e=>{this.setState({editorIsFocused:e}),this.props.onFocus(e)},this.handleOnKeyPressed=()=>{this.props.onFocus(this.state.editorIsFocused)}}componentDidMount(){document.addEventListener("keydown",this.handleOnKeyPressed,!1)}componentWillUnmount(){document.removeEventListener("keydown",this.handleOnKeyPressed,!1),this.setState({editorIsFocused:!1})}render(){const{className:e,options:t}=this.props,s={mode:"javascript",lineNumbers:!0,showCursorWhenSelecting:!1,autocompletion:!1,...t};return Object(c.jsx)("div",{className:"editor ".concat(e," "),children:Object(c.jsx)(i.a,{theme:a.a,extensions:[Object(r.a)({jsx:!0}),this.extension],value:this.props.value,height:"300px",basicSetup:s,onChange:this.props.codeChanged})})}}l.defaultProps={options:{},onFocus:()=>{},codeChanged:()=>{}}},110:function(e,t,s){(function(t){let n={transparent:"transparent",black:"#22292f",white:"#ffffff","red-darkest":"#3b0d0c","red-darker":"#621b18","red-dark":"#cc1f1a",red:"#e3342f","red-light":"#ef5753","red-lighter":"#f9acaa","red-lightest":"#fcebea","yellow-darkest":"#453411","yellow-darker":"#684f1d","yellow-dark":"#f2d024",yellow:"#fcc632","yellow-light":"#fff382","yellow-lighter":"#fff9c2","yellow-lightest":"#fcfbeb","blue-darkest":"#12283a","blue-darker":"#1c3d5a","blue-dark":"#012345",blue:"#3490dc","blue-light":"#32ccff","blue-lighter":"#bcdefa","blue-lightest":"#04edf6","testable-overlay":"rgba(0, 0, 0, 0.3)","testable-overlay-sidebar":"rgba(0, 0, 0, 0.7)","testable-blue-overlay":"#00ffdf52","testable-pink":"#f11571","testable-pink-dark":"#af1246"};e.exports={colors:n,screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px"},fonts:{},textSizes:{xs:".75rem",sm:".875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700},leading:{none:1,tight:1.25,normal:1.5,loose:2},tracking:{tight:"-0.05em",normal:"0",wide:"0.05em"},textColors:n,backgroundColors:n,backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},borderWidths:{default:"1px",0:"0",2:"2px",4:"4px",8:"8px"},borderColors:t.Object.assign({default:n["grey-light"]},n),borderRadius:{none:"0",sm:".125rem",default:".25rem",lg:".5rem",full:"9999px"},width:{auto:"auto",px:"1px",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",24:"6rem",32:"8rem",48:"12rem",64:"16rem","1/2":"50%","1/3":"33.33333%","2/3":"66.66667%","1/4":"25%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.66667%","5/6":"83.33333%",full:"100%",screen:"100vw","testable-guide":"45%","testable-editor":"45%"},height:{auto:"auto",px:"1px",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",24:"6rem",32:"8rem",48:"12rem",64:"16rem",full:"100%",screen:"100vh"},minWidth:{0:"0",full:"100%","testable-guide":"45%","testable-editor":"45%"},minHeight:{0:"0",full:"100%",screen:"100vh","testable-editor":"45%"},maxWidth:{xs:"20rem",sm:"30rem",md:"40rem",lg:"50rem",xl:"60rem","2xl":"70rem","3xl":"80rem","4xl":"90rem","5xl":"100rem",full:"100%","testable-guide":"45%"},maxHeight:{full:"100%",screen:"100vh"},padding:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem"},margin:{auto:"auto",px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem"},negativeMargin:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem"},shadows:{default:"0 2px 4px 0 rgba(0,0,0,0.10)",md:"0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)",lg:"0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",outline:"0 0 0 3px rgba(52,144,220,0.5)",none:"none"},zIndex:{auto:"auto",0:0,10:10,20:20,30:30,40:40,50:50},opacity:{0:"0",25:".25",50:".5",75:".75",100:"1"},svgFill:{current:"currentColor"},svgStroke:{current:"currentColor"},modules:{appearance:["responsive"],backgroundAttachment:["responsive"],backgroundColors:["responsive","hover","focus"],backgroundPosition:["responsive"],backgroundRepeat:["responsive"],backgroundSize:["responsive"],borderCollapse:[],borderColors:["responsive","hover","focus","group-hover"],borderRadius:["responsive"],borderStyle:["responsive"],borderWidths:["responsive"],cursor:["responsive"],display:["responsive"],flexbox:["responsive"],float:["responsive"],fonts:["responsive"],fontWeights:["responsive","hover","focus"],height:["responsive"],leading:["responsive"],lists:["responsive"],margin:["responsive"],maxHeight:["responsive"],maxWidth:["responsive"],minHeight:["responsive"],minWidth:["responsive"],negativeMargin:["responsive"],objectFit:!1,objectPosition:!1,opacity:["responsive"],outline:["focus"],overflow:["responsive"],padding:["responsive"],pointerEvents:["responsive"],position:["responsive"],resize:["responsive"],shadows:["responsive","hover","focus"],svgFill:[],svgStroke:[],tableLayout:["responsive"],textAlign:["responsive"],textColors:["responsive","hover","focus","group-hover"],textSizes:["responsive"],textStyle:["responsive","hover","focus"],tracking:["responsive"],userSelect:["responsive"],verticalAlign:["responsive"],visibility:["responsive"],whitespace:["responsive"],width:["responsive"],zIndex:["responsive"]},plugins:[s(830)({})],options:{prefix:"",important:!1,separator:":"}}}).call(this,s(23))},111:function(e,t,s){"use strict";s.d(t,"a",(function(){return removeUser})),s.d(t,"b",(function(){return updateUser}));const n="UPDATE_USER_DATA",i="REMOVE_USER";function removeUser(e){return{type:i,payload:e}}function updateUser(e){return{type:n,payload:e}}},112:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 34.185 39.128",children:[Object(n.jsx)("g",{children:Object(n.jsx)("path",{d:"M24.989,39.128H9.2c-0.42,0-0.799-0.23-0.992-0.602c-0.193-0.37-0.165-0.813,0.075-1.156l2.578-3.697 c0.21-0.301,0.553-0.479,0.917-0.479h2.438V26.76c-1.876-0.531-3.585-1.633-4.848-3.135c-0.189-0.225-0.16-0.561,0.065-0.749 c0.223-0.188,0.561-0.162,0.749,0.064c1.208,1.437,2.872,2.462,4.687,2.89c0.24,0.057,0.41,0.271,0.41,0.518v7.378 c0,0.294-0.238,0.532-0.532,0.532h-2.97l-2.623,3.721L9.2,38.064h15.789c0.053-0.053,0.045-0.075,0.004-0.141l-2.541-3.643 l-3.015-0.023c-0.294,0-0.532-0.238-0.532-0.532v-7.378c0-0.246,0.17-0.461,0.41-0.518c3.474-0.818,6.146-3.74,6.65-7.27 c0.035-0.244,0.235-0.434,0.482-0.454c1.284-0.11,2.416-0.655,3.363-1.618c3.414-3.479,3.315-11.391,3.309-11.726 c-0.006-0.347-0.293-0.629-0.64-0.629l-5.893-0.003c-0.294,0-0.531-0.238-0.531-0.532V1.119L8.183,1.063L8.129,3.599 c0,0.294-0.237,0.532-0.532,0.532L1.704,4.134c-0.346,0-0.632,0.282-0.639,0.63C1.063,4.846,0.94,12.99,4.374,16.488 c0.947,0.963,2.079,1.508,3.364,1.618c0.247,0.021,0.446,0.21,0.481,0.454c0.116,0.812,0.347,1.604,0.686,2.352 c0.121,0.268,0.002,0.583-0.266,0.705c-0.266,0.119-0.583,0.002-0.704-0.267c-0.323-0.714-0.559-1.464-0.702-2.233 c-1.375-0.205-2.591-0.838-3.618-1.885c-3.744-3.813-3.62-12.137-3.613-12.49C0.02,3.82,0.783,3.07,1.704,3.07l5.361-0.003V1.119 C7.065,0.502,7.566,0,8.183,0h17.819c0.616,0,1.118,0.502,1.118,1.119v1.948l5.36,0.003c0.923,0,1.688,0.751,1.703,1.674 c0.007,0.353,0.11,8.696-3.613,12.488c-1.026,1.047-2.243,1.68-3.618,1.885c-0.68,3.639-3.419,6.635-6.983,7.643v6.434h2.438 c0.365,0,0.708,0.179,0.917,0.479l2.553,3.661c0.113,0.175,0.229,0.394,0.229,0.677C26.106,38.627,25.605,39.128,24.989,39.128z M26.294,15.907c-0.125,0-0.247-0.044-0.343-0.125c-0.121-0.102-0.189-0.25-0.189-0.407V6.457c0-0.141,0.056-0.276,0.156-0.377 c0.1-0.1,0.234-0.154,0.376-0.154c0,0,0,0,0.001,0l4.061,0.003c0.145,0,0.283,0.06,0.384,0.164s0.153,0.247,0.147,0.392 c-0.062,1.417-0.431,6.208-2.549,8.363l0,0c-0.563,0.572-1.222,0.927-1.955,1.053C26.354,15.905,26.323,15.907,26.294,15.907z M26.825,6.99v7.664c0.269-0.129,0.518-0.312,0.754-0.553l0,0c1.374-1.397,2.033-4.489,2.213-7.109L26.825,6.99z M7.597,15.907 c-0.029,0-0.06-0.002-0.089-0.007c-0.733-0.126-1.392-0.48-1.955-1.053c-2.118-2.155-2.486-6.946-2.549-8.363 C2.998,6.34,3.051,6.197,3.151,6.093s0.239-0.164,0.384-0.164l4.061-0.003c0.001,0,0.001,0,0.001,0 c0.142,0,0.276,0.055,0.376,0.154c0.101,0.101,0.156,0.236,0.156,0.377v8.918c0,0.157-0.068,0.306-0.189,0.407 C7.844,15.863,7.722,15.907,7.597,15.907z M4.099,6.992c0.18,2.62,0.839,5.712,2.213,7.109c0.236,0.24,0.485,0.424,0.754,0.553 V6.99L4.099,6.992z"})}),Object(n.jsx)("g",{children:Object(n.jsx)("polygon",{points:"12.236,10.314 15.592,9.828 17.094,6.787 18.594,9.828 21.95,10.314 19.521,12.682 20.095,16.025 17.094,14.447 14.091,16.025 14.664,12.682"})})]})},137:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return a}));var n=s(0),i=s(227),r=s(4);class a extends n.Component{componentDidMount(){const{strings:e}=this.props,t={strings:e,typeSpeed:15,showCursor:!1,startDelay:200};"function"==typeof this.props.onComplete&&(t.onComplete=this.props.onComplete),this.typed=new i.a(this.el,t)}componentWillUnmount(){this.typed&&this.typed.destroy()}render(){return Object(r.jsx)("div",{className:"wrap",children:Object(r.jsx)("div",{className:"type-wrap",children:Object(r.jsx)("span",{ref:e=>{this.el=e}})})})}}a.defaultProps={strings:[]}},138:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 129 129",...e,children:Object(n.jsx)("g",{children:Object(n.jsx)("path",{d:"m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z"})})})},139:function(e,t,s){"use strict";s.r(t),s.d(t,"Header",(function(){return m}));var n=s(0),i=s(20),r=s(115),a=s(140),o=s(77),c=s(21),l=s(111),p=s(79),d=s(14),u=(s(900),s(901),s(4));class m extends n.Component{constructor(){super(...arguments),this.state={levelUp:!1},this.goToIntroduction=()=>{this.props.updateUser({tutorial:!1,level:1})},this.levelDown=()=>{d.f.emit(d.a)},this.levelUp=()=>{d.f.emit(d.b)}}resetLevelUpAnimation(){setTimeout((()=>{this.setState({levelUp:!1})}),500)}componentDidMount(){d.f.addListener(d.b,(()=>{this.setState({levelUp:!0});const e=1+this.props.user.level;this.props.updateUser({level:e,progress:10}),this.resetLevelUpAnimation()})),d.f.addListener(d.a,(()=>{this.setState({levelUp:!0});const e=this.props.user.level-1;this.props.updateUser({level:e,progress:10}),this.resetLevelUpAnimation()})),d.f.addListener(d.d,(e=>{this.setState({progress:e.amount}),this.props.updateUser({progress:e.amount})})),d.f.addListener(d.c,(e=>{this.setState({progress:e.amount}),this.props.updateUser({progress:e.amount})}))}componentWillUnmount(){d.f.removeAllListeners(d.b),d.f.removeAllListeners(d.a),d.f.removeAllListeners(d.d),d.f.removeAllListeners(d.c)}render(){return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(c.default,{onClick:this.levelUp,value:"level up"}),Object(u.jsx)(c.default,{onClick:this.levelDown,value:"level down"}),Object(u.jsx)(c.default,{onClick:this.goToIntroduction,value:"go back to introduction"}),Object(u.jsx)(c.default,{onClick:this.props.onSidebar,value:"sidebar"}),Object(u.jsxs)("div",{className:"flex flex-col items-start pl-3 pt-1 pr-3 pb-5 ml-5 mr-5 sm:flex-row sm:justify-between md:pt-5",children:[Object(u.jsxs)("div",{className:"user-progress flex items-center ".concat(this.state.levelUp?"wobble-ver-right":""),children:[Object(u.jsx)(p.default,{className:"achievements fill-current w-8 h-8 text-white mr-5 cursor-pointer hover:text-blue-lightest",onClick:this.props.onSidebar}),Object(u.jsx)(o.default,{progress:this.props.user.progress,level:this.props.user.level})]}),Object(u.jsx)(a.default,{user:this.props.user})]})]})}}m.defaultProps={updateUser:()=>{},user:{}},t.default=Object(r.b)(Object(i.a)((e=>({user:e.userReducer.user})),(e=>({updateUser:t=>e(Object(l.b)(t))})))(m))},14:function(e,t,s){"use strict";s.d(t,"e",(function(){return r})),s.d(t,"b",(function(){return a})),s.d(t,"a",(function(){return o})),s.d(t,"d",(function(){return c})),s.d(t,"c",(function(){return l}));const{EventEmitter:n}=s(825),i=new n,r="0",a="1",o="4",c="2",l="3";t.f=i},140:function(e,t,s){"use strict";s.r(t),s.d(t,"UserMenu",(function(){return j}));var n=s(0),i=s(56),r=s(75),a=s(63),o=s(112),c=s(142),l=s(40),p=s(143),d=s(17),u=s(110),m=s(24),h=s(4);class j extends n.Component{constructor(){super(...arguments),this.state={ranking:!1,survey:!1},this.onRanking=()=>{this.setState({ranking:!this.state.ranking}),Object(d.a)({section:"user_menu",action:"toggle_ranking|button_click"})},this.onSurvey=()=>{this.setState({survey:!this.state.survey}),Object(d.a)({section:"user_menu",action:"toggle_survey|button_click"})},this.showSurveyButton=()=>this.props.showUpSurvey&&14!==this.props.user.level||this.props.user.level>14}render(){return Object(h.jsxs)("div",{className:"flex justify-end items-center",children:[this.showSurveyButton()&&Object(h.jsx)(l.default,{className:"mr-5 m-auto",description:"Responder o questionário",onClick:this.onSurvey}),Object(h.jsx)(o.default,{className:"ranking fill-current w-8 h-8 text-white mr-5 hover:text-blue-lightest cursor-pointer",onClick:this.onRanking}),Object(h.jsx)(r.default,{user:this.props.user}),Object(h.jsx)(a.default,{title:Object(h.jsxs)("div",{children:[Object(h.jsx)(o.default,{style:{fill:"none",stroke:u.colors["blue-lightest"],strokeWidth:"1px"},className:"fill-current w-5 h-5 mr-3"}),this.props.intl.messages.ranking.title]}),isOpen:this.state.ranking,onClose:this.onRanking,children:Object(h.jsx)(c.default,{onClick:this.onRanking})}),Object(h.jsx)(a.default,{title:Object(h.jsx)("div",{children:this.props.intl.messages.survey.title}),isOpen:this.state.survey,onClose:this.onSurvey,children:Object(h.jsx)(p.default,{onClick:this.onSurvey,className:"mt-8"})})]})}}j.defaultProps={intl:{messages:{ranking:{},survey:{}}},showUpSurvey:m.a.showSurvey},t.default=Object(i.b)(j)},141:function(e,t,s){"use strict";s.r(t);var n=s(22),i=s(4);t.default=e=>Object(i.jsx)(n.a,{image:"testable.placeholder.svg",alt:"buggy",...e})},142:function(e,t,s){"use strict";s.r(t),s.d(t,"Ranking",(function(){return Ranking}));var n=s(0),i=s(56),r=s(83),a=s(24),o=s(4);function Ranking(e){const[t,s]=Object(n.useState)([]),[i,c]=Object(n.useState)(!0),[l,p]=Object(n.useState)("");if(Object(n.useEffect)((()=>{fetch(a.a.rankingApi).then((e=>e.json())).then((e=>{s(e.data||[])})).catch((()=>{p(e.intl.messages.ranking.error)})).finally((()=>{c(!1)}))}),[]),l)return Object(o.jsx)("h3",{className:"text-white flex justify-center mt-5",children:l});if(i)return Object(o.jsx)("div",{children:Object(o.jsx)(r.default,{})});if(0===t.length)return Object(o.jsx)("h3",{className:"text-white flex justify-center mt-5",children:e.intl.messages.ranking.no_data});const d=[];return t.forEach(((e,t)=>{d.push(Object(o.jsxs)("tr",{className:0===t?"text-xl font-bold bg-testable-pink":"",children:[Object(o.jsx)("td",{className:"p-2",children:t+1}),Object(o.jsx)("td",{className:"p-2",children:e.name}),Object(o.jsx)("td",{className:"p-2",children:e.level})]},t))})),Object(o.jsxs)("table",{className:"text-white m-auto w-3/5",children:[Object(o.jsx)("thead",{children:Object(o.jsxs)("tr",{children:[Object(o.jsx)("th",{className:"text-left p-2 captalize",children:e.intl.messages.ranking.table.position}),Object(o.jsx)("th",{className:"text-left p-2 captalize",children:e.intl.messages.ranking.table.name}),Object(o.jsx)("th",{className:"text-left p-2 captalize",children:e.intl.messages.ranking.table.level})]})}),Object(o.jsx)("tbody",{children:d})]})}Ranking.defaultProps={intl:{messages:{ranking:{table:{}}}}},t.default=Object(i.b)(Ranking)},143:function(e,t,s){"use strict";s.r(t);var n=s(20),i=s(144);t.default=Object(n.a)((e=>({user:e.userReducer.user})))(i.Survey)},144:function(e,t,s){"use strict";s.r(t),s.d(t,"Survey",(function(){return c}));var n=s(0),i=s(40),r=s(14),a=s(24),o=(s(897),s(898),s(4));class c extends n.Component{constructor(){super(...arguments),this.state={surveyUrl:a.a.surveyUrl,loading:!0,buttonDescription:"Responder o questionário depois, quero descobrir o que é TDD!"},this.onSurveyLoaded=()=>{this.setState({loading:!1})},this.skipSurvey=()=>{r.f.emit(r.b)}}componentDidMount(){const e=this.props.surveyUrl,t=this.props.user;e&&t&&this.setState({surveyUrl:e.replace("{id}",t.uid)})}render(){const e=this.props.user;return e&&e.uid&&this.props.surveyUrl?Object(o.jsxs)("div",{className:"w-full ".concat(this.props.className),children:[this.state.loading&&Object(o.jsx)("div",{className:"flex justify-center items-center text-white",children:Object(o.jsx)("h1",{children:"Carregando questionário..."})}),Object(o.jsx)("iframe",{style:{height:"65vh",width:"100%"},src:this.state.surveyUrl,title:"survey form",onLoad:this.onSurveyLoaded}),!this.state.loading&&this.props.skip&&Object(o.jsx)(i.default,{className:"block mt-5 m-auto",description:this.state.buttonDescription,onClick:this.skipSurvey})]}):Object(o.jsx)("div",{className:"flex justify-center items-center text-white",children:Object(o.jsx)("h1",{className:"shake-horizontal",children:"Ocorreu um erro ao carregar o questionário"})})}}},145:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return Intro}));var n=s(230),i=s(24),r=(s(905),s(906),s(4));function Intro(e){const{isDebug:t}=i.a;return Object(r.jsx)(n.Steps,{...e,options:{disableInteraction:!0,showStepNumbers:!1,exitOnEsc:!!t,hidePrev:!0,exitOnOverlayClick:!!t,showButtons:!0,showBullets:!1,showProgress:!0,skipLabel:"Sair",nextLabel:"Próximo",prevLabel:"Anterior",doneLabel:"Estou pronto!"}})}},146:function(e,t,s){"use strict";s.r(t);var n=s(0),i=s(56),r=s(40),a=s(82),o=s(30),c=s(78),l=(s(919),s(4));const Scene=e=>{let{onCompleted:t,showAlien:s,text:i,className:p,next:d,lastScene:u,handleLastScene:m,button:h,releaseButton:j,showNextButton:g,showBuggy:b}=e;const[x,f]=Object(n.useState)(!1),[y,v]=Object(n.useState)(!1),_="\n scene\n flex\n flex-col\n py-10 px-10\n text-lg\n md:text-2xl\n text-white\n relative\n ".concat(p,"\n ");let S="hidden";s&&(S="md:block"),s&&s.animate&&(S="md:block md:slide-in-bck-top");let O="";return b.type&&(O="md:block"),b.animate&&(O+=" md:slide-in-bck-right"),Object(l.jsxs)("div",{className:_,children:[Object(l.jsxs)("div",{className:"flex",children:[Object(l.jsx)(a.default,{className:"w-2/3",text:i,onFinishedTyping:()=>{setTimeout((()=>f(!0)),g)}}),!b.type&&Object(l.jsx)(o.BuggyLeft,{className:"absolute pin-r w-1/3 mt-10 hidden ".concat(O)}),Object(l.jsx)(o.BuggyLeft,{className:"absolute pin-r w-1/3 mt-10 hidden ".concat(t.showBug&&x?"md:block md:slide-in-bck-right":"hidden","\n ")}),Object(l.jsx)(o.BuggyHappyLeft,{className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden ".concat("happy"===t.type&&x?"md:block md:slide-in-bck-right":"hidden")}),Object(l.jsx)(c.default,{className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden ".concat(S)}),"bug"===b.type&&Object(l.jsx)(o.BuggyBug,{style:{transform:"scaleX(-1)"},className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden md:block"}),"happy"===b.type&&Object(l.jsx)(o.BuggyHappy,{style:{transform:"scaleX(-1)"},className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden md:block"})]}),x&&Object(l.jsx)(r.default,{className:"absolute pin-b mb-8 scale-in-center",description:h,onClick:e=>{y||(v(!0),setTimeout((()=>{v(!1)}),j),u?m():d(e))},disabled:y})]})};Scene.defaultProps={text:[],onCompleted:{},showBuggy:{},releaseButton:2e3,showNextButton:900,intl:{}},t.default=Object(i.b)(Scene)},147:function(e,t,s){"use strict";s.r(t);var n=s(0),i=s(146),r=s(21),a=s(53),o=s(14),c=s(17),l=s(4);const SceneManager=e=>{let{content:t,identifier:s,handleLastScene:p,className:d}=e;const[u,m]=Object(n.useState)(1),handlePreviousScene=()=>{if(1===u)return!1;m(u-1),o.f.emit(o.c,{amount:a.a.user.progress-10})},handleNextScene=()=>{const e=u;if(e===t.steps.length)return!1;m(e+1),o.f.emit(o.d,{amount:a.a.user.progress+10}),Object(c.a)({section:s,action:"next_scene|button_click",value:e})},h=t.steps||[],j=[],g=h.length-1;for(const[e,t]of h.entries())t.step===u&&j.push(Object(l.jsx)(i.default,{text:t.content,button:t.button,step:u,className:"m-auto w-3/5",next:handleNextScene,previous:handlePreviousScene,lastScene:t.lastScene||g===e,handleLastScene:p,showAlien:t.showAlien,showBuggy:t.showBuggy,onCompleted:t.onCompleted||{}},e));return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("div",{className:"w-full -mt-20 ".concat(d),children:j}),Object(l.jsx)(r.default,{onClick:handlePreviousScene,value:"previous"}),Object(l.jsx)(r.default,{onClick:handleNextScene,value:"next"}),Object(l.jsx)(r.default,{onClick:p,value:"trigger last scene"})]})};SceneManager.defaultProps={className:""},t.default=SceneManager},148:function(e,t,s){"use strict";s.r(t);var n=s(22),i=s(4);t.default=e=>Object(i.jsx)("a",{href:"https://github.com/marabesi/testable",target:"_blank",rel:"noopener noreferrer",children:Object(i.jsx)(n.a,{image:"testable.logo.png",alt:"logo",title:"Testable - Ferramenta gamificada",...e})})},149:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130.2 130.2",...e,children:[Object(n.jsx)("circle",{className:"path circle",fill:"none",strokeWidth:"6",cx:"65.1",cy:"65.1",r:"62.1"}),Object(n.jsx)("polyline",{className:"path check",fill:"none",strokeWidth:"6",points:"100.2,40.2 51.5,88.8 29.8,67.5 "})]})},150:function(e,t,s){"use strict";s.r(t),s.d(t,"Guide",(function(){return l}));var n=s(0),i=s(20),r=s(30),a=s(82);var o=s(138),c=(s(851),s(4));class l extends n.Component{constructor(){super(...arguments),this.state={afk:!1},this.track=()=>{this.setState({afk:!0})},this.componentDidMount=()=>{this.trackActivity=setInterval(this.track,this.props.afkExpirationTime),document.addEventListener("keydown",this.checkUserAfk,!1),document.addEventListener("mousemove",this.checkUserAfk,!1)},this.componentWillUnmount=()=>{clearInterval(this.trackActivity),document.removeEventListener("keydown",this.checkUserAfk,!1),document.removeEventListener("mousemove",this.checkUserAfk,!1)},this.checkUserAfk=()=>{this.setState({afk:!1}),clearInterval(this.trackActivity),this.trackActivity=setInterval(this.track,this.props.afkExpirationTime)},this.onHover=()=>{this.props.onHover(!0)},this.offHover=()=>{this.props.onHover(!1)},this.handleProgress=()=>{this.offHover(),this.props.handleProgress()}}renderHint(){return this.props.guideContent.map(((e,t)=>t===this.props.currentHint&&Object(c.jsxs)(n.Fragment,{children:[Object(c.jsx)(a.default,{text:[e],onFinishedTyping:this.props.onFinishedTyping}),this.props.showNext&&Object(c.jsx)("button",{onClick:this.handleProgress,onMouseEnter:this.onHover,onMouseLeave:this.offHover,className:"w-6 h-6 self-center no-underline text-white font-bold focus:outline-none mt-5 ".concat(this.props.hovered?"":"next"),children:Object(c.jsx)(o.default,{className:"fill-current text-white py-1 w-6 h-6"})})]},t)))}render(){const e={width:"250px",marginTop:"-165px",marginLeft:"-290px"},t="absolute pin-t",{guideContent:s,currentHint:n}=this.props;let i=Object(c.jsx)(r.default,{className:t,style:e});return this.props.invalidCode&&(i=Object(c.jsx)(r.BuggyBug,{className:t,style:e})),this.state.afk&&(i=Object(c.jsx)(r.BuggySleepy,{className:t,style:e})),s[n]&&s[n].showBuggy&&"happy"===s[n].showBuggy.type&&(i=Object(c.jsx)(r.BuggyHappy,{className:t,style:e})),Object(c.jsx)("div",{style:{minHeight:"220px"},className:"flex justify-center p-5 md:p-12 bg-testable-overlay",children:Object(c.jsxs)("div",{className:"flex flex-col justify-start relative w-full md:w-testable-guide",children:[Object(c.jsx)("div",{className:"hidden md:block",children:i}),this.renderHint()]})})}}l.defaultProps={afkExpirationTime:3e4};t.default=Object(i.a)((e=>({hovered:e.guideReducer.hovered})),(e=>({onHover:t=>e({type:"ON_HOVER",payload:t})})))(l)},151:function(e,t,s){"use strict";s.r(t),s.d(t,"Options",(function(){return c}));var n=s(0),i=s(56),r=s(20),a=s(152);var o=s(4);class c extends n.Component{constructor(){super(...arguments),this.onUpdateOptions=()=>{const e=!this.props.options.animation;this.props.setUpdateOptions({animation:e})}}render(){const{intl:e}=this.props;return Object(o.jsxs)("table",{className:"text-white m-auto w-3/5",children:[Object(o.jsx)("thead",{children:Object(o.jsxs)("tr",{children:[Object(o.jsx)("th",{className:"captilize text-left p-2",children:e.messages.global.options}),Object(o.jsx)("th",{className:"text-left p-2"})]})}),Object(o.jsxs)("tbody",{children:[Object(o.jsxs)("tr",{className:"hover:bg-testable-pink",children:[Object(o.jsx)("td",{className:"p-3",children:e.messages.options.language}),Object(o.jsx)("td",{className:"p-3",align:"center",children:Object(o.jsx)(a.default,{})})]}),Object(o.jsxs)("tr",{className:"hover:bg-testable-pink",children:[Object(o.jsx)("td",{className:"p-3",children:e.messages.options.background_animation}),Object(o.jsx)("td",{className:"p-3",align:"center",children:Object(o.jsx)("input",{type:"checkbox",onClick:this.onUpdateOptions,readOnly:!0,value:"1",checked:"".concat(this.props.options.animation?"checked":"")})})]})]})]})}}c.defaultProps={options:{},intl:{messages:{global:{}}}};t.default=Object(r.a)((e=>({options:e.optionsReducer.options})),(e=>({setUpdateOptions:t=>{return e((s=t,window.localStorage.setItem("options",JSON.stringify(s)),{type:"ON_OPTIONS_UPDATED",payload:s}));var s}})))(Object(i.b)(c))},152:function(e,t,s){"use strict";s.r(t),s.d(t,"LanguageSelector",(function(){return LanguageSelector}));var n=s(0),i=s(56),r=s(20);var a=s(83),o=(s(864),s(4));const LanguageSelector=e=>{let{intl:t,locale:s,setLocale:i,onChange:r}=e;const[c,l]=Object(n.useState)(!1);return Object(o.jsxs)(o.Fragment,{children:[c&&Object(o.jsx)(a.default,{}),Object(o.jsxs)("select",{onChange:e=>{const t=e.target.value;l(!0),i(t),r&&r(t),setTimeout((()=>window.location.reload()),600)},value:s,"data-testid":"languages",children:[Object(o.jsx)("option",{value:"en",children:t.messages.options.languages.en}),Object(o.jsx)("option",{value:"pt-br",children:t.messages.options.languages["pt-br"]}),Object(o.jsx)("option",{value:"ro",children:t.messages.options.languages.ro}),Object(o.jsx)("option",{value:"es",children:t.messages.options.languages.es})]})]})};LanguageSelector.defaultProps={options:{},locale:"pt-br",intl:{messages:{options:{languages:{}},global:{}}}};t.default=Object(r.a)((e=>({options:e.optionsReducer.options,locale:e.localeReducer.locale})),(e=>({setLocale:t=>e({type:"SET_LOCALE",payload:t})})))(Object(i.b)(LanguageSelector))},156:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return executeTestCase}));const executeTestCase=function(code,strategyResult,testCases){const result=[];for(const testCase of testCases)try{const preExecution="".concat(code," ").concat(strategyResult.name,"(").concat(testCase.params,")"),execution=eval(preExecution);execution===testCase.expected&&result.push(!0)}catch(e){return console.error(e),!1}return result.length===testCases.length}},17:function(e,t,s){"use strict";s.d(t,"a",(function(){return track}));var n=s(14);function track(e){const t={...e,timestamp:Date.now()};n.f.emit(n.e,t)}},19:function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),s.d(t,"b",(function(){return i}));const n=0,i=1},21:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return Debug}));var n=s(24),i=s(4);function Debug(e){return Object(i.jsx)(i.Fragment,{children:n.a.isDebug&&Object(i.jsx)("input",{type:"button",className:"bg-white m-2",...e})})}},22:function(e,t,s){"use strict";var n=s(17),i=s(4);t.a=e=>Object(i.jsx)("img",{onClick:()=>Object(n.a)({section:e.image,action:"image_click"}),src:window.localStorage.getItem(e.image)||"",...e,alt:e.alt})},24:function(e,t,s){"use strict";t.a={env:"production",isDebug:!1,publicUrl:".",basename:"/",rankingApi:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",host:"https://marabesi.github.io/testable",surveyUrl:Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).REACT_APP_SURVEY_URL||"",showSurvey:!1,firebaseJson:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}',firebaseTosUrl:Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).REACT_APP_TOS_URL||"",firebasePrivacyUrl:Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesi.vercel.app?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).REACT_APP_PRIVACY_URL||""}},243:function(e,t,s){s(244),e.exports=s(954)},244:function(e,t,s){},30:function(e,t,s){"use strict";s.r(t),s.d(t,"BuggyLeft",(function(){return BuggyLeft})),s.d(t,"BuggyBug",(function(){return BuggyBug})),s.d(t,"BuggySleepy",(function(){return BuggySleepy})),s.d(t,"BuggyHappy",(function(){return BuggyHappy})),s.d(t,"BuggyHappyLeft",(function(){return BuggyHappyLeft})),s.d(t,"BuggyRocket",(function(){return BuggyRocket}));var n=s(22),i=s(4);const BuggyLeft=e=>Object(i.jsx)(n.a,{image:"testable.buggy-left.png",alt:"buggy",...e}),BuggyBug=e=>Object(i.jsx)(n.a,{image:"testable.buggy-bug.png",alt:"buggy bug!!!",...e}),BuggySleepy=e=>Object(i.jsx)(n.a,{image:"testable.buggy-zzz.png",alt:"buggy zzz",...e}),BuggyHappy=e=>Object(i.jsx)(n.a,{image:"testable.buggy-happy.png",alt:"buggy happy",...e}),BuggyHappyLeft=e=>Object(i.jsx)(n.a,{image:"testable.buggy-happy-left.png",alt:"buggy happy",...e}),BuggyRocket=e=>Object(i.jsx)(n.a,{image:"testable.buggy-rocket.png",alt:"buggy rocket",...e});t.default=e=>Object(i.jsx)(n.a,{image:"testable.buggy-right.png",alt:"buggy",...e})},40:function(e,t,s){"use strict";s.r(t);var n=s(234),i=s(81),r=(s(896),s(4));t.default=e=>{const{messages:t}=Object(n.a)(),{onClick:s,description:a,className:o,disabled:c}=e,l="button hover:bg-testable-pink-dark focus:outline-none ".concat(o||"");return Object(r.jsx)("button",{className:l,onClick:s,disabled:c,children:Object(i.get)(t,a,a)})}},412:function(e,t,s){var n={"./Binary_Property/ASCII.js":413,"./Binary_Property/ASCII_Hex_Digit.js":414,"./Binary_Property/Alphabetic.js":415,"./Binary_Property/Any.js":416,"./Binary_Property/Assigned.js":417,"./Binary_Property/Bidi_Control.js":418,"./Binary_Property/Bidi_Mirrored.js":419,"./Binary_Property/Case_Ignorable.js":420,"./Binary_Property/Cased.js":421,"./Binary_Property/Changes_When_Casefolded.js":422,"./Binary_Property/Changes_When_Casemapped.js":423,"./Binary_Property/Changes_When_Lowercased.js":424,"./Binary_Property/Changes_When_NFKC_Casefolded.js":425,"./Binary_Property/Changes_When_Titlecased.js":426,"./Binary_Property/Changes_When_Uppercased.js":427,"./Binary_Property/Dash.js":428,"./Binary_Property/Default_Ignorable_Code_Point.js":429,"./Binary_Property/Deprecated.js":430,"./Binary_Property/Diacritic.js":431,"./Binary_Property/Emoji.js":432,"./Binary_Property/Emoji_Component.js":433,"./Binary_Property/Emoji_Modifier.js":434,"./Binary_Property/Emoji_Modifier_Base.js":435,"./Binary_Property/Emoji_Presentation.js":436,"./Binary_Property/Extended_Pictographic.js":437,"./Binary_Property/Extender.js":438,"./Binary_Property/Grapheme_Base.js":439,"./Binary_Property/Grapheme_Extend.js":440,"./Binary_Property/Hex_Digit.js":441,"./Binary_Property/IDS_Binary_Operator.js":442,"./Binary_Property/IDS_Trinary_Operator.js":443,"./Binary_Property/ID_Continue.js":444,"./Binary_Property/ID_Start.js":445,"./Binary_Property/Ideographic.js":446,"./Binary_Property/Join_Control.js":447,"./Binary_Property/Logical_Order_Exception.js":448,"./Binary_Property/Lowercase.js":449,"./Binary_Property/Math.js":450,"./Binary_Property/Noncharacter_Code_Point.js":451,"./Binary_Property/Pattern_Syntax.js":452,"./Binary_Property/Pattern_White_Space.js":453,"./Binary_Property/Quotation_Mark.js":454,"./Binary_Property/Radical.js":455,"./Binary_Property/Regional_Indicator.js":456,"./Binary_Property/Sentence_Terminal.js":457,"./Binary_Property/Soft_Dotted.js":458,"./Binary_Property/Terminal_Punctuation.js":459,"./Binary_Property/Unified_Ideograph.js":460,"./Binary_Property/Uppercase.js":461,"./Binary_Property/Variation_Selector.js":462,"./Binary_Property/White_Space.js":463,"./Binary_Property/XID_Continue.js":464,"./Binary_Property/XID_Start.js":465,"./General_Category/Cased_Letter.js":466,"./General_Category/Close_Punctuation.js":467,"./General_Category/Connector_Punctuation.js":468,"./General_Category/Control.js":469,"./General_Category/Currency_Symbol.js":470,"./General_Category/Dash_Punctuation.js":471,"./General_Category/Decimal_Number.js":472,"./General_Category/Enclosing_Mark.js":473,"./General_Category/Final_Punctuation.js":474,"./General_Category/Format.js":475,"./General_Category/Initial_Punctuation.js":476,"./General_Category/Letter.js":477,"./General_Category/Letter_Number.js":478,"./General_Category/Line_Separator.js":479,"./General_Category/Lowercase_Letter.js":480,"./General_Category/Mark.js":481,"./General_Category/Math_Symbol.js":482,"./General_Category/Modifier_Letter.js":483,"./General_Category/Modifier_Symbol.js":484,"./General_Category/Nonspacing_Mark.js":485,"./General_Category/Number.js":486,"./General_Category/Open_Punctuation.js":487,"./General_Category/Other.js":488,"./General_Category/Other_Letter.js":489,"./General_Category/Other_Number.js":490,"./General_Category/Other_Punctuation.js":491,"./General_Category/Other_Symbol.js":492,"./General_Category/Paragraph_Separator.js":493,"./General_Category/Private_Use.js":494,"./General_Category/Punctuation.js":495,"./General_Category/Separator.js":496,"./General_Category/Space_Separator.js":497,"./General_Category/Spacing_Mark.js":498,"./General_Category/Surrogate.js":499,"./General_Category/Symbol.js":500,"./General_Category/Titlecase_Letter.js":501,"./General_Category/Unassigned.js":502,"./General_Category/Uppercase_Letter.js":503,"./Script/Adlam.js":504,"./Script/Ahom.js":505,"./Script/Anatolian_Hieroglyphs.js":506,"./Script/Arabic.js":507,"./Script/Armenian.js":508,"./Script/Avestan.js":509,"./Script/Balinese.js":510,"./Script/Bamum.js":511,"./Script/Bassa_Vah.js":512,"./Script/Batak.js":513,"./Script/Bengali.js":514,"./Script/Bhaiksuki.js":515,"./Script/Bopomofo.js":516,"./Script/Brahmi.js":517,"./Script/Braille.js":518,"./Script/Buginese.js":519,"./Script/Buhid.js":520,"./Script/Canadian_Aboriginal.js":521,"./Script/Carian.js":522,"./Script/Caucasian_Albanian.js":523,"./Script/Chakma.js":524,"./Script/Cham.js":525,"./Script/Cherokee.js":526,"./Script/Chorasmian.js":527,"./Script/Common.js":528,"./Script/Coptic.js":529,"./Script/Cuneiform.js":530,"./Script/Cypriot.js":531,"./Script/Cyrillic.js":532,"./Script/Deseret.js":533,"./Script/Devanagari.js":534,"./Script/Dives_Akuru.js":535,"./Script/Dogra.js":536,"./Script/Duployan.js":537,"./Script/Egyptian_Hieroglyphs.js":538,"./Script/Elbasan.js":539,"./Script/Elymaic.js":540,"./Script/Ethiopic.js":541,"./Script/Georgian.js":542,"./Script/Glagolitic.js":543,"./Script/Gothic.js":544,"./Script/Grantha.js":545,"./Script/Greek.js":546,"./Script/Gujarati.js":547,"./Script/Gunjala_Gondi.js":548,"./Script/Gurmukhi.js":549,"./Script/Han.js":550,"./Script/Hangul.js":551,"./Script/Hanifi_Rohingya.js":552,"./Script/Hanunoo.js":553,"./Script/Hatran.js":554,"./Script/Hebrew.js":555,"./Script/Hiragana.js":556,"./Script/Imperial_Aramaic.js":557,"./Script/Inherited.js":558,"./Script/Inscriptional_Pahlavi.js":559,"./Script/Inscriptional_Parthian.js":560,"./Script/Javanese.js":561,"./Script/Kaithi.js":562,"./Script/Kannada.js":563,"./Script/Katakana.js":564,"./Script/Kayah_Li.js":565,"./Script/Kharoshthi.js":566,"./Script/Khitan_Small_Script.js":567,"./Script/Khmer.js":568,"./Script/Khojki.js":569,"./Script/Khudawadi.js":570,"./Script/Lao.js":571,"./Script/Latin.js":572,"./Script/Lepcha.js":573,"./Script/Limbu.js":574,"./Script/Linear_A.js":575,"./Script/Linear_B.js":576,"./Script/Lisu.js":577,"./Script/Lycian.js":578,"./Script/Lydian.js":579,"./Script/Mahajani.js":580,"./Script/Makasar.js":581,"./Script/Malayalam.js":582,"./Script/Mandaic.js":583,"./Script/Manichaean.js":584,"./Script/Marchen.js":585,"./Script/Masaram_Gondi.js":586,"./Script/Medefaidrin.js":587,"./Script/Meetei_Mayek.js":588,"./Script/Mende_Kikakui.js":589,"./Script/Meroitic_Cursive.js":590,"./Script/Meroitic_Hieroglyphs.js":591,"./Script/Miao.js":592,"./Script/Modi.js":593,"./Script/Mongolian.js":594,"./Script/Mro.js":595,"./Script/Multani.js":596,"./Script/Myanmar.js":597,"./Script/Nabataean.js":598,"./Script/Nandinagari.js":599,"./Script/New_Tai_Lue.js":600,"./Script/Newa.js":601,"./Script/Nko.js":602,"./Script/Nushu.js":603,"./Script/Nyiakeng_Puachue_Hmong.js":604,"./Script/Ogham.js":605,"./Script/Ol_Chiki.js":606,"./Script/Old_Hungarian.js":607,"./Script/Old_Italic.js":608,"./Script/Old_North_Arabian.js":609,"./Script/Old_Permic.js":610,"./Script/Old_Persian.js":611,"./Script/Old_Sogdian.js":612,"./Script/Old_South_Arabian.js":613,"./Script/Old_Turkic.js":614,"./Script/Oriya.js":615,"./Script/Osage.js":616,"./Script/Osmanya.js":617,"./Script/Pahawh_Hmong.js":618,"./Script/Palmyrene.js":619,"./Script/Pau_Cin_Hau.js":620,"./Script/Phags_Pa.js":621,"./Script/Phoenician.js":622,"./Script/Psalter_Pahlavi.js":623,"./Script/Rejang.js":624,"./Script/Runic.js":625,"./Script/Samaritan.js":626,"./Script/Saurashtra.js":627,"./Script/Sharada.js":628,"./Script/Shavian.js":629,"./Script/Siddham.js":630,"./Script/SignWriting.js":631,"./Script/Sinhala.js":632,"./Script/Sogdian.js":633,"./Script/Sora_Sompeng.js":634,"./Script/Soyombo.js":635,"./Script/Sundanese.js":636,"./Script/Syloti_Nagri.js":637,"./Script/Syriac.js":638,"./Script/Tagalog.js":639,"./Script/Tagbanwa.js":640,"./Script/Tai_Le.js":641,"./Script/Tai_Tham.js":642,"./Script/Tai_Viet.js":643,"./Script/Takri.js":644,"./Script/Tamil.js":645,"./Script/Tangut.js":646,"./Script/Telugu.js":647,"./Script/Thaana.js":648,"./Script/Thai.js":649,"./Script/Tibetan.js":650,"./Script/Tifinagh.js":651,"./Script/Tirhuta.js":652,"./Script/Ugaritic.js":653,"./Script/Vai.js":654,"./Script/Wancho.js":655,"./Script/Warang_Citi.js":656,"./Script/Yezidi.js":657,"./Script/Yi.js":658,"./Script/Zanabazar_Square.js":659,"./Script_Extensions/Adlam.js":660,"./Script_Extensions/Ahom.js":661,"./Script_Extensions/Anatolian_Hieroglyphs.js":662,"./Script_Extensions/Arabic.js":663,"./Script_Extensions/Armenian.js":664,"./Script_Extensions/Avestan.js":665,"./Script_Extensions/Balinese.js":666,"./Script_Extensions/Bamum.js":667,"./Script_Extensions/Bassa_Vah.js":668,"./Script_Extensions/Batak.js":669,"./Script_Extensions/Bengali.js":670,"./Script_Extensions/Bhaiksuki.js":671,"./Script_Extensions/Bopomofo.js":672,"./Script_Extensions/Brahmi.js":673,"./Script_Extensions/Braille.js":674,"./Script_Extensions/Buginese.js":675,"./Script_Extensions/Buhid.js":676,"./Script_Extensions/Canadian_Aboriginal.js":677,"./Script_Extensions/Carian.js":678,"./Script_Extensions/Caucasian_Albanian.js":679,"./Script_Extensions/Chakma.js":680,"./Script_Extensions/Cham.js":681,"./Script_Extensions/Cherokee.js":682,"./Script_Extensions/Chorasmian.js":683,"./Script_Extensions/Common.js":684,"./Script_Extensions/Coptic.js":685,"./Script_Extensions/Cuneiform.js":686,"./Script_Extensions/Cypriot.js":687,"./Script_Extensions/Cyrillic.js":688,"./Script_Extensions/Deseret.js":689,"./Script_Extensions/Devanagari.js":690,"./Script_Extensions/Dives_Akuru.js":691,"./Script_Extensions/Dogra.js":692,"./Script_Extensions/Duployan.js":693,"./Script_Extensions/Egyptian_Hieroglyphs.js":694,"./Script_Extensions/Elbasan.js":695,"./Script_Extensions/Elymaic.js":696,"./Script_Extensions/Ethiopic.js":697,"./Script_Extensions/Georgian.js":698,"./Script_Extensions/Glagolitic.js":699,"./Script_Extensions/Gothic.js":700,"./Script_Extensions/Grantha.js":701,"./Script_Extensions/Greek.js":702,"./Script_Extensions/Gujarati.js":703,"./Script_Extensions/Gunjala_Gondi.js":704,"./Script_Extensions/Gurmukhi.js":705,"./Script_Extensions/Han.js":706,"./Script_Extensions/Hangul.js":707,"./Script_Extensions/Hanifi_Rohingya.js":708,"./Script_Extensions/Hanunoo.js":709,"./Script_Extensions/Hatran.js":710,"./Script_Extensions/Hebrew.js":711,"./Script_Extensions/Hiragana.js":712,"./Script_Extensions/Imperial_Aramaic.js":713,"./Script_Extensions/Inherited.js":714,"./Script_Extensions/Inscriptional_Pahlavi.js":715,"./Script_Extensions/Inscriptional_Parthian.js":716,"./Script_Extensions/Javanese.js":717,"./Script_Extensions/Kaithi.js":718,"./Script_Extensions/Kannada.js":719,"./Script_Extensions/Katakana.js":720,"./Script_Extensions/Kayah_Li.js":721,"./Script_Extensions/Kharoshthi.js":722,"./Script_Extensions/Khitan_Small_Script.js":723,"./Script_Extensions/Khmer.js":724,"./Script_Extensions/Khojki.js":725,"./Script_Extensions/Khudawadi.js":726,"./Script_Extensions/Lao.js":727,"./Script_Extensions/Latin.js":728,"./Script_Extensions/Lepcha.js":729,"./Script_Extensions/Limbu.js":730,"./Script_Extensions/Linear_A.js":731,"./Script_Extensions/Linear_B.js":732,"./Script_Extensions/Lisu.js":733,"./Script_Extensions/Lycian.js":734,"./Script_Extensions/Lydian.js":735,"./Script_Extensions/Mahajani.js":736,"./Script_Extensions/Makasar.js":737,"./Script_Extensions/Malayalam.js":738,"./Script_Extensions/Mandaic.js":739,"./Script_Extensions/Manichaean.js":740,"./Script_Extensions/Marchen.js":741,"./Script_Extensions/Masaram_Gondi.js":742,"./Script_Extensions/Medefaidrin.js":743,"./Script_Extensions/Meetei_Mayek.js":744,"./Script_Extensions/Mende_Kikakui.js":745,"./Script_Extensions/Meroitic_Cursive.js":746,"./Script_Extensions/Meroitic_Hieroglyphs.js":747,"./Script_Extensions/Miao.js":748,"./Script_Extensions/Modi.js":749,"./Script_Extensions/Mongolian.js":750,"./Script_Extensions/Mro.js":751,"./Script_Extensions/Multani.js":752,"./Script_Extensions/Myanmar.js":753,"./Script_Extensions/Nabataean.js":754,"./Script_Extensions/Nandinagari.js":755,"./Script_Extensions/New_Tai_Lue.js":756,"./Script_Extensions/Newa.js":757,"./Script_Extensions/Nko.js":758,"./Script_Extensions/Nushu.js":759,"./Script_Extensions/Nyiakeng_Puachue_Hmong.js":760,"./Script_Extensions/Ogham.js":761,"./Script_Extensions/Ol_Chiki.js":762,"./Script_Extensions/Old_Hungarian.js":763,"./Script_Extensions/Old_Italic.js":764,"./Script_Extensions/Old_North_Arabian.js":765,"./Script_Extensions/Old_Permic.js":766,"./Script_Extensions/Old_Persian.js":767,"./Script_Extensions/Old_Sogdian.js":768,"./Script_Extensions/Old_South_Arabian.js":769,"./Script_Extensions/Old_Turkic.js":770,"./Script_Extensions/Oriya.js":771,"./Script_Extensions/Osage.js":772,"./Script_Extensions/Osmanya.js":773,"./Script_Extensions/Pahawh_Hmong.js":774,"./Script_Extensions/Palmyrene.js":775,"./Script_Extensions/Pau_Cin_Hau.js":776,"./Script_Extensions/Phags_Pa.js":777,"./Script_Extensions/Phoenician.js":778,"./Script_Extensions/Psalter_Pahlavi.js":779,"./Script_Extensions/Rejang.js":780,"./Script_Extensions/Runic.js":781,"./Script_Extensions/Samaritan.js":782,"./Script_Extensions/Saurashtra.js":783,"./Script_Extensions/Sharada.js":784,"./Script_Extensions/Shavian.js":785,"./Script_Extensions/Siddham.js":786,"./Script_Extensions/SignWriting.js":787,"./Script_Extensions/Sinhala.js":788,"./Script_Extensions/Sogdian.js":789,"./Script_Extensions/Sora_Sompeng.js":790,"./Script_Extensions/Soyombo.js":791,"./Script_Extensions/Sundanese.js":792,"./Script_Extensions/Syloti_Nagri.js":793,"./Script_Extensions/Syriac.js":794,"./Script_Extensions/Tagalog.js":795,"./Script_Extensions/Tagbanwa.js":796,"./Script_Extensions/Tai_Le.js":797,"./Script_Extensions/Tai_Tham.js":798,"./Script_Extensions/Tai_Viet.js":799,"./Script_Extensions/Takri.js":800,"./Script_Extensions/Tamil.js":801,"./Script_Extensions/Tangut.js":802,"./Script_Extensions/Telugu.js":803,"./Script_Extensions/Thaana.js":804,"./Script_Extensions/Thai.js":805,"./Script_Extensions/Tibetan.js":806,"./Script_Extensions/Tifinagh.js":807,"./Script_Extensions/Tirhuta.js":808,"./Script_Extensions/Ugaritic.js":809,"./Script_Extensions/Vai.js":810,"./Script_Extensions/Wancho.js":811,"./Script_Extensions/Warang_Citi.js":812,"./Script_Extensions/Yezidi.js":813,"./Script_Extensions/Yi.js":814,"./Script_Extensions/Zanabazar_Square.js":815,"./index.js":816,"./unicode-version.js":817};function webpackContext(e){var t=webpackContextResolve(e);return s(t)}function webpackContextResolve(e){if(!s.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(n)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=412},51:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>{let{children:t,...s}=e;return Object(n.jsx)("h1",{className:"uppercase flex justify-between items-center text-blue-lightest p-5 h-16",...s,children:t})}},53:function(e,t,s){"use strict";s.d(t,"a",(function(){return S}));var n=s(57),i="/",r="/intro",a="/tutorial",o="/tutorial-end",c="/unit-testing-intro",l="/unit-testing",p="/unit-testing-end",d="/rocket-01",u="/rocket-02",m="/rocket-03",h="/rocket-03-01",j="/rocket-03-02",g="/completed-intro",b="/completed-end",x="/survey",f="/tdd-intro",y="/tdd",v=s(24);const _=JSON.parse(v.a.firebaseJson||'{\n "apiKey":"999",\n "authDomain":"https://default.firebaseio.com",\n "databaseURL":"https://default.firebaseio.com",\n "projectId":"default",\n "storageBucket":"",\n "messagingSenderId":"",\n "appId":"999999"\n}');s(887),s(889),n.a.initializeApp(_);const S={user:{uid:"",name:"",email:"",photo:"",level:1,tutorial:!1,introduction:!0,progress:10},firebaseRef:{off:null},authenticate(){return new Promise(((e,t)=>{n.a.auth().onAuthStateChanged((s=>{if(s||t(),null!==s){this.user.uid=s.uid,this.user.name=s.displayName||"",this.user.email=s.email||"",this.user.photo=s.photoURL||"",this.firebaseRef=this.userRef(s);const t=this;this.firebaseRef.once("value",(s=>{const n=s.val();n&&n.tutorial&&(t.user.tutorial=n.tutorial),n&&n.level&&(t.user.level=n.level),n&&n.progress&&(t.user.progress=n.progress),e(t.user)}))}}))}))},unsubscribe(){this.firebaseRef&&"function"==typeof this.firebaseRef.off&&this.firebaseRef.off()},canEnter:(e,t)=>e&&e.uid?t.pathname!==r&&1===e.level?{flag:!1,to:r}:t.pathname!==a&&2===e.level?{flag:!1,to:a}:t.pathname!==o&&3===e.level?{flag:!1,to:o}:t.pathname!==c&&4===e.level?{flag:!1,to:c}:t.pathname!==l&&5===e.level?{flag:!1,to:l}:t.pathname!==p&&6===e.level?{flag:!1,to:p}:t.pathname!==d&&7===e.level?{flag:!1,to:d}:t.pathname!==u&&8===e.level?{flag:!1,to:u}:t.pathname!==m&&9===e.level?{flag:!1,to:m}:t.pathname!==h&&10===e.level?{flag:!1,to:h}:t.pathname!==j&&11===e.level?{flag:!1,to:j}:t.pathname!==g&&12===e.level?{flag:!1,to:g}:t.pathname!==b&&13===e.level?{flag:!1,to:b}:t.pathname!==x&&14===e.level?{flag:!1,to:x}:t.pathname!==f&&15===e.level?{flag:!1,to:f}:t.pathname!==y&&e.level>15?{flag:!1,to:y}:{flag:!0}:{flag:!1,to:i},signout(){n.a.auth().signOut()},updateUserInfo(e){this.userRef(this.user).update(e);for(let t in e)this.user[t]=e[t]},insertUserInfo(e,t){n.a.database().ref().child("users/"+this.user.uid+"/"+t).push(e)},userRef:e=>n.a.database().ref().child("users/".concat(e.uid)),usersRef:()=>n.a.database().ref("users")}},63:function(e,t,s){"use strict";s.r(t);var n=s(229),i=s.n(n),r=s(51),a=s(80),o=(s(886),s(4));t.default=function Modal(e){return Object(o.jsxs)(i.a,{...e,closeTimeoutMS:10,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,ariaHideApp:!1,shouldFocusAfterRender:!1,className:"modal",overlayClassName:"overlay",children:[Object(o.jsxs)(r.default,{children:[e.title,Object(o.jsx)(a.default,{className:"fill-current w-4 h-4 text-white cursor-pointer",onClick:()=>e.onClose()})]}),e.children]})}},71:function(e,t,s){"use strict";s.r(t);var n=s(72),i=s(79),r=s(80),a=s(51),o=s(110),c=s(4);t.default=e=>{let{intl:t,onClose:s,user:l}=e;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)(a.default,{children:[Object(c.jsxs)("div",{children:[Object(c.jsx)(i.default,{className:"fill-current w-6 h-6 text-blue mr-3",style:{fill:"none",stroke:o.colors["blue-lightest"],strokeWidth:"20px"}}),t.messages.achievements.title]}),Object(c.jsx)(r.default,{className:"fill-current w-4 h-4 text-white cursor-pointer",onClick:s})]}),0===t.messages.achievements.list.length&&Object(c.jsx)("span",{className:"p-5 text-white",children:t.messages.achievements.empty_list}),t.messages.achievements.list.length>0&&Object(c.jsx)(n.default,{achievements:t.messages.achievements.list,intl:t,user:l})]})}},72:function(e,t,s){"use strict";s.r(t),s.d(t,"AchievementList",(function(){return AchievementList}));var n=s(0),i=s(73),r=s(17),a=s(4);const AchievementList=e=>{const[t,s]=Object(n.useState)([]);Object(n.useEffect)((()=>{e.achievements.length&&s(e.achievements)}));const showAchievement=t=>{const n=Object.assign([],e.achievements),i=n[t],a=!i.active;i.active=a,n[t]=i,s(n),Object(r.a)({section:"achievements",action:"toggle_achievement_".concat(t,"|button_click"),value:a})},o=[];for(const[s,n]of t.entries())e.user.level>=n.level&&o.push(Object(a.jsx)(i.default,{title:n.title,description:n.description,items:n.items||[],active:n.active,level:e.user.level,onClick:()=>showAchievement(s)},s));return 0===o.length?Object(a.jsx)("span",{className:"p-5 text-white",children:e.intl.messages.achievements.empty_list}):Object(a.jsx)("ul",{className:"p-2 text-white",children:o})};AchievementList.defaultProps={user:{},achievements:[],intl:{messages:{achievements:{}}}},t.default=AchievementList},73:function(e,t,s){"use strict";s.r(t),s.d(t,"AchievementItem",(function(){return AchievementItem}));var n=s(957),i=s(958),r=s(959),a=s(960),o=s(24),c=s(4);function AchievementItem(e){let{title:t,active:s,description:o,items:l,onClick:p,intl:d,host:u}=e;const m=l.map(((e,t)=>Object(c.jsx)("li",{children:e},t)));return Object(c.jsx)("li",{className:"p-2",children:Object(c.jsxs)("ul",{className:"p-1",children:[Object(c.jsx)("h3",{className:"hover:underline cursor-pointer",onClick:p,children:t}),Object(c.jsxs)("li",{className:"ml-5 mt-2 ".concat(s?"":"hidden"),children:[Object(c.jsx)("span",{children:o}),Object(c.jsx)("ul",{className:"mt-2",children:m}),Object(c.jsxs)("div",{className:"flex",children:[Object(c.jsx)(n.a,{url:u||"",quote:"".concat(d.messages.achievements.social_sharing," ").concat(t," - ").concat(o),className:"m-1 ml-0",children:Object(c.jsx)(i.a,{size:32,round:!0})}),Object(c.jsx)(r.a,{url:u||"",title:"".concat(d.messages.achievements.social_sharing," ").concat(t," - ").concat(o),className:"m-1",children:Object(c.jsx)(a.a,{size:32,round:!0})})]})]})]})})}AchievementItem.defaultProps={items:[],intl:{messages:{achievements:{}}},host:o.a.host},t.default=AchievementItem},74:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return o}));var n=s(0),i=s(19),r=s(104),a=(s(845),s(4));class o extends n.Component{constructor(){super(...arguments),this.state={codeOutput:{},codeError:{}},this.codeChanged=(e,t)=>{let s=Object.assign({},this.state.codeError);s[t]="",this.setState({codeError:s});let n=Object.assign({},this.state.codeOutput);n[t]="";const i=new window.Lemming(e),r=this.props.onErrorCode[t];i.onResult((e=>{n[t]=e,this.setState({codeOutput:n}),r&&r(!1,t)})),i.onError((e=>{s[t]=e,this.setState({codeError:s}),r&&r(!0,t)})),i.onCompleted((()=>{(0,this.props.onValidCode[t])(e,t)}));let a=e;for(let e=0;e(e&&this.props.options[t]&&this.props.options[t].readOnly&&(this.props.options[t].className="forbidden",this.forceUpdate(),setTimeout((()=>{this.props.options[t].className="",this.forceUpdate()}),2e3)),e)}render(){const e=[],{className:t,editor:s,style:n}=this.props;for(let i=0;ithis.codeChanged(e,i),onFocus:e=>this.onEditorFocus(e,i),className:"source-code border-2 border-testable-blue-overlay editor-".concat(i," ").concat(s?s.className:"")},i),Object(a.jsxs)("div",{className:"m-auto md:mb-5 bg-blue-dark break-words",children:[Object(a.jsx)("p",{className:"text-white h-6",children:this.state.codeOutput[i]}),Object(a.jsx)("p",{className:"text-red font-medium h-6",children:this.state.codeError[i]})]})]},i))}return e}}o.defaultProps={editor:1,style:{},options:{[i.a]:{},[i.b]:{}},onErrorCode:{[i.a]:null,[i.b]:null}}},75:function(e,t,s){"use strict";s.r(t),s.d(t,"Profile",(function(){return h}));var n=s(0),i=s(20),r=s(115),a=s(56),o=s(151),c=s(141),l=s(63),p=s(53),d=s(17),u=s(111),m=(s(892),s(4));class h extends n.Component{constructor(){super(...arguments),this.state={menu:!1,successfulLoggedOut:!1,photo:"",modal:!1},this.onLogout=()=>{p.a.signout(),this.props.setUser({}),this.setState({successfulLoggedOut:!0,menu:!1}),Object(d.a)({section:"profile",action:"logout"})},this.showMenu=()=>{Object(d.a)({section:"profile",action:"toggle_menu|button_click"}),this.setState({menu:!this.state.menu})},this.onBlur=()=>{this.setState({menu:!1})},this.componentDidMount=()=>{const{photo:e}=this.props.user;e&&fetch(e).then((e=>e.blob())).then((e=>{const t=URL.createObjectURL(e);this.setState({photo:t})})).catch((e=>console.error(e)))},this.onOptions=()=>{this.setState({modal:!this.state.modal})}}renderUserPhoto(){return this.state.photo?Object(m.jsx)("img",{src:this.state.photo,alt:""}):Object(m.jsx)(c.default,{})}render(){if(this.state.successfulLoggedOut)return Object(m.jsx)(r.a,{to:{pathname:"/"}});const{name:e,email:t}=this.props.user,s=this.props.className,n="profile flex cursor-pointer group ".concat(s||"");return Object(m.jsxs)(m.Fragment,{children:[this.state.modal&&Object(m.jsx)(l.default,{title:Object(m.jsx)("span",{children:this.props.intl.messages.global.options}),isOpen:this.state.modal,onClose:this.onOptions,children:Object(m.jsx)(o.default,{})}),Object(m.jsx)("div",{className:"relative outline-none user-info",tabIndex:0,onBlur:this.onBlur,title:"".concat(e," - ").concat(t),children:Object(m.jsxs)("div",{className:n,onClick:this.showMenu,children:[Object(m.jsx)("div",{className:"picture-holder group-hover:border-blue-lightest",children:this.renderUserPhoto()}),Object(m.jsx)("div",{className:"info",children:Object(m.jsx)("h2",{className:"title text-white text-base uppercase font-medium truncate group-hover:text-blue-lightest",title:e,children:e})}),Object(m.jsxs)("ul",{className:"w-full bg-testable-overlay list-reset p-1 z-40 options absolute pin-t ".concat(this.state.menu?"block":"hidden"),children:[Object(m.jsx)("li",{className:"capitalize cursor-pointer text-white text-center p-2 hover:text-blue-lightest",onClick:this.onOptions,children:this.props.intl.messages.global.options}),Object(m.jsx)("li",{className:"capitalize cursor-pointer text-white text-center p-2 hover:text-blue-lightest",onClick:this.onLogout,children:this.props.intl.messages.menu.logout})]})]})})]})}}h.defaultProps={intl:{messages:{global:{},menu:{}}}},t.default=Object(a.b)(Object(i.a)(null,(e=>({setUser:()=>e(Object(u.a)({}))})))(h))},76:function(e,t,s){"use strict";s.r(t);s(863);var n=s(4);t.default=e=>Object(n.jsx)("div",{className:"loading absolute loading flex justify-center items-center",...e})},77:function(e,t,s){"use strict";s.r(t),s.d(t,"Level",(function(){return o}));var n=s(0),i=s(56),r=s(17),a=(s(899),s(4));class o extends n.Component{constructor(){super(...arguments),this.onClick=()=>{Object(r.a)({section:"level",action:"level_progress|click"})}}render(){const{level:e,progress:t,intl:s}=this.props;return Object(a.jsxs)("div",{className:"flex level py-3",onClick:this.onClick,children:[Object(a.jsxs)("h1",{className:"title mr-3 text-white text-base uppercase font-medium",children:[s.messages.level.label," ",e]}),Object(a.jsx)("div",{className:"progress-holder py-1 px-2",title:"".concat(t," %"),children:Object(a.jsx)("div",{className:"progress py-1 progress-".concat(t)})})]})}}o.defaultProps={intl:{messages:{level:{}}}},t.default=Object(i.b)(o)},78:function(e,t,s){"use strict";s.r(t),s.d(t,"AlienRocket",(function(){return AlienRocket}));var n=s(22),i=s(4);const AlienRocket=e=>Object(i.jsx)(n.a,{image:"testable.alien-rocket.png",alt:"alien rocket",...e});t.default=e=>Object(i.jsx)(n.a,{image:"testable.alien.png",alt:"alien",...e})},79:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:Object(n.jsx)("g",{children:Object(n.jsx)("path",{d:"M509.622,464.823L402.004,289.912c-2.943-4.782-8.052-7.637-13.667-7.637c-5.614,0-10.723,2.856-13.664,7.637 l-13.972,22.709c-2.174,3.533-1.072,8.16,2.461,10.334c3.535,2.173,8.16,1.072,10.335-2.461l13.972-22.71 c0.074-0.12,0.299-0.486,0.87-0.486c0.571,0,0.797,0.366,0.871,0.486l107.618,174.911c0.086,0.139,0.314,0.51,0.022,1.033 c-0.292,0.523-0.728,0.523-0.892,0.523h-59.6L269.665,203.333c-1.497-2.434-3.557-4.365-5.958-5.678 c0.003,0.001,0.006,0.003,0.008,0.004v-50.98c6.251,1.695,12.34,2.419,18.297,2.419c17.132,0,33.175-5.955,48.87-11.781 c21.748-8.073,42.29-15.698,64.508-6.788c2.865,1.149,6.103,0.803,8.66-0.927c2.561-1.732,4.089-4.611,4.089-7.701V37.044 c0-3.74-2.219-7.101-5.65-8.561c-28.203-12.027-52.927-2.851-76.836,6.023c-22.398,8.314-43.553,16.167-66.588,5.872 c-2.325-1.039-5.016-0.829-7.152,0.555c-2.136,1.385-3.425,3.757-3.425,6.303v0.279c-0.129,0.559-0.203,1.138-0.203,1.736v148.408 c-2.397,1.313-4.455,3.243-5.951,5.674l-79.139,128.623l-25.868-42.043c-2.942-4.782-8.051-7.637-13.666-7.637 c-5.614,0-10.723,2.855-13.665,7.637L2.377,464.823c-3.043,4.945-3.173,11.166-0.341,16.235c2.832,5.069,8.199,8.218,14.006,8.218 h479.915c5.807,0,11.174-3.149,14.006-8.218C512.796,475.989,512.665,469.767,509.622,464.823z M263.512,57.901 c24.317,6.67,46.158-1.437,67.37-9.311c20.985-7.79,40.867-15.168,62.234-7.642v72.985c-24.39-6.688-46.253,1.428-67.462,9.3 c-20.95,7.776-40.813,15.149-62.142,7.646V57.901z M93.282,474.252l25.771-41.885c2.174-3.533,1.072-8.16-2.461-10.334 c-3.534-2.173-8.16-1.072-10.334,2.461l-30.615,49.758h-59.6c-0.164,0-0.6,0-0.892-0.523s-0.065-0.893,0.022-1.033l107.619-174.91 c0.074-0.12,0.299-0.486,0.87-0.486c0.571,0,0.796,0.366,0.87,0.486l29.844,48.504l-29.799,48.431 c-2.174,3.533-1.072,8.16,2.461,10.334c3.535,2.174,8.161,1.072,10.334-2.461L255.13,211.205c0.074-0.12,0.299-0.486,0.87-0.486 c0.57,0,0.795,0.366,0.87,0.486l161.848,263.047H93.282z"})})})},80:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21.9 21.9",...e,children:Object(n.jsx)("path",{d:"M14.1,11.3c-0.2-0.2-0.2-0.5,0-0.7l7.5-7.5c0.2-0.2,0.3-0.5,0.3-0.7s-0.1-0.5-0.3-0.7l-1.4-1.4C20,0.1,19.7,0,19.5,0 c-0.3,0-0.5,0.1-0.7,0.3l-7.5,7.5c-0.2,0.2-0.5,0.2-0.7,0L3.1,0.3C2.9,0.1,2.6,0,2.4,0S1.9,0.1,1.7,0.3L0.3,1.7C0.1,1.9,0,2.2,0,2.4 s0.1,0.5,0.3,0.7l7.5,7.5c0.2,0.2,0.2,0.5,0,0.7l-7.5,7.5C0.1,19,0,19.3,0,19.5s0.1,0.5,0.3,0.7l1.4,1.4c0.2,0.2,0.5,0.3,0.7,0.3 s0.5-0.1,0.7-0.3l7.5-7.5c0.2-0.2,0.5-0.2,0.7,0l7.5,7.5c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l1.4-1.4c0.2-0.2,0.3-0.5,0.3-0.7 s-0.1-0.5-0.3-0.7L14.1,11.3z"})})},82:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return AnimatedText}));var n=s(136),i=s.n(n),r=s(81),a=s(234),o=s(137),c=s(4);function AnimatedText(e){const{messages:t}=Object(a.a)();return Object(c.jsx)(o.default,{strings:(()=>{const s=[];return(e.text||[]).forEach((e=>{s.push(Object(c.jsx)("p",{className:e.style,children:Object(r.get)(t,e.line,e.line)},e.key))})),[i.a.renderToStaticMarkup(s)]})(),onComplete:e.onFinishedTyping})}},83:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return c}));var n=s(0),i=s(228),r=s.n(i),a=s(76),o=s(4);class c extends n.Component{render(){return Object(o.jsx)(r.a,{active:!0,styles:{wrapper:e=>({...e,position:"inherit"}),overlay:e=>({...e,background:"rgba(0, 0, 0, 0.2)"})},children:Object(o.jsx)(a.default,{style:{zIndex:9999999}})})}}},832:function(e,t,s){e.exports={doclets:{},displayName:"AchievementContainer",description:"",methods:[],props:[{required:!0,tsType:{name:"any"},description:"",tags:{},name:"intl"},{required:!0,tsType:{name:"any"},description:"Callback invoked when the close button is clicked",tags:{},name:"onClose"},{required:!0,tsType:{name:"User"},description:"Logged in user object",tags:{},name:"user"}],examples:s(833)}},833:function(e,t,s){var n={"./AchievementContainer":s(71),react:s(0),"./AchievementContainer.tsx":s(71)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AchievementContainer$0 = require('./AchievementContainer.tsx');\nconst AchievementContainer = AchievementContainer$0.default || (AchievementContainer$0['AchievementContainer'] || AchievementContainer$0);",i);e.exports=[{type:"markdown",content:"# AchievementContainer\n\nThe AchievementContainer component renders a list of achievements based on the achievements state.\nCurrently the achievement list is based on a json file (achievements-content.json).\n\n## Basic usage"},{type:"code",content:"import AchievementContainer from './AchievementContainer';\n\n
\n alert('onClose trigged!!!')}\n />\n
",settings:{},evalInContext:r}]},834:function(e,t,s){e.exports={doclets:{},displayName:"AchievementItem",description:"",methods:[],props:[{type:{name:"bool"},required:!1,description:"",tags:{},name:"active"},{type:{name:"string"},required:!1,description:"",tags:{},name:"description"},{type:{name:"string"},required:!1,description:"",defaultValue:{value:"config.host",computed:!0},tags:{},name:"host"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n achievements: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"array"},required:!1,description:"",defaultValue:{value:"[]",computed:!1},tags:{},name:"items"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onClick"},{type:{name:"string"},required:!1,description:"",tags:{},name:"title"}],examples:s(835)}},835:function(e,t,s){var n={"./AchievementItem":s(73),react:s(0),"./AchievementItem.tsx":s(73)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AchievementItem$0 = require('./AchievementItem.tsx');\nconst AchievementItem = AchievementItem$0.default || (AchievementItem$0['AchievementItem'] || AchievementItem$0);",i);e.exports=[{type:"markdown",content:"# AchievementItem"},{type:"code",content:'import { AchievementItem } from \'./AchievementItem\';\n\n
\n \n
',settings:{},evalInContext:r}]},836:function(e,t,s){e.exports={doclets:{},displayName:"AchievementList",description:"",methods:[],props:[{required:!1,tsType:{name:"Array",elements:[{name:"Item"}],raw:"Item[]"},description:"",defaultValue:{value:"[]",computed:!1},tags:{},name:"achievements"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{\n messages: {\n achievements: {}\n }\n}",computed:!1},tags:{},name:"intl"},{required:!1,tsType:{name:"User"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:s(837)}},837:function(e,t,s){var n={"./AchievementList":s(72),react:s(0),"./AchievementList.tsx":s(72)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AchievementList$0 = require('./AchievementList.tsx');\nconst AchievementList = AchievementList$0.default || (AchievementList$0['AchievementList'] || AchievementList$0);",i);e.exports=[{type:"markdown",content:"# AchievementList"},{type:"code",content:"import { AchievementList} from './AchievementList';\n\n
\n \n
",settings:{},evalInContext:r}]},838:function(e,t,s){"use strict";s.r(t),s.d(t,"Background",(function(){return Background}));var n=s(20),i=(s(842),s(4));const Background=e=>Object(i.jsxs)(i.Fragment,{children:[!e.user.uid&&Object(i.jsx)("div",{className:"path",children:Object(i.jsx)("div",{className:"comet"})}),Object(i.jsx)("div",{className:e.options.animation?"stars":"stars-only"}),e.children]});Background.defaultProps={options:{},user:{}},t.default=Object(n.a)((e=>({options:e.optionsReducer.options,user:e.userReducer.user})))(Background)},842:function(e,t,s){},843:function(e,t,s){e.exports={doclets:{},displayName:"Background",description:"",methods:[],props:[{type:{name:"node"},required:!1,description:"",tags:{},name:"children"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"options"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:null}},844:function(e,t,s){},845:function(e,t,s){},846:function(e,t,s){e.exports={doclets:{},displayName:"EditorManager",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"",tags:{},name:"className"},{type:{name:"object"},required:!1,description:"",tags:{},name:"code"},{type:{name:"number"},required:!1,description:"",defaultValue:{value:"1",computed:!1},tags:{},name:"editor"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n [SOURCE_CODE]: null,\n [TEST_CODE]: null\n}",computed:!1},tags:{},name:"onErrorCode"},{type:{name:"object"},required:!1,description:"",tags:{},name:"onValidCode"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n [SOURCE_CODE]: {},\n [TEST_CODE]: {}\n}",computed:!1},tags:{},name:"options"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"style"}],examples:s(847)}},847:function(e,t,s){var n={"./EditorManager":s(74),react:s(0),"./EditorManager.tsx":s(74)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst EditorManager$0 = require('./EditorManager.tsx');\nconst EditorManager = EditorManager$0.default || (EditorManager$0['EditorManager'] || EditorManager$0);",i);e.exports=[{type:"markdown",content:"# EditorManager\n\nThe EditorManager component is a wrapper to orchestrate the Editor component.\n\n## Basic usage"},{type:"code",content:"import EditorManager from './EditorManager';\n",settings:{},evalInContext:r},{type:"markdown",content:"## Rendering 2 editors"},{type:"code",content:"",settings:{},evalInContext:r}]},848:function(e,t,s){e.exports={doclets:{},displayName:"Editor",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"The desired class to be toggle in the editor wrapper - this does not apply to the CodeMirror component",tags:{},name:"className"},{type:{name:"func"},required:!1,description:"Callback executed when the editor code has changed. Important to note that this event is fired when the\neditor is about to change the code. This event is fired before the code takes place inside the editor.",defaultValue:{value:"() => {}",computed:!1},tags:{},name:"codeChanged"},{type:{name:"func"},required:!1,description:"Callback executed when the editor is focused",defaultValue:{value:"() => {}",computed:!1},tags:{},name:"onFocus"},{type:{name:"object"},required:!1,description:"javascript object with codemirror options",defaultValue:{value:"{}",computed:!1},tags:{see:[{title:"see",description:"https://codemirror.net/3/doc/manual.html"}]},name:"options"},{type:{name:"string"},required:!1,description:"The text to be placed inside the editor",tags:{},name:"value"}],examples:s(849)}},849:function(e,t,s){var n={react:s(0),"./Editor.tsx":s(104)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Editor$0 = require('./Editor.tsx');\nconst Editor = Editor$0.default || (Editor$0['Editor'] || Editor$0);",i);e.exports=[{type:"markdown",content:"# Editor\n\n## Basic usage\n\nRaw Editor component"},{type:"code",content:" ",settings:{},evalInContext:r},{type:"markdown",content:"Default text inside the editor"},{type:"code",content:" ",settings:{},evalInContext:r},{type:"markdown",content:"Fire callback when the editor text has changed"},{type:"code",content:" alert(code) } />",settings:{},evalInContext:r}]},851:function(e,t,s){},852:function(e,t,s){e.exports={doclets:{},displayName:"Guide",description:"",methods:[],props:[{type:{name:"number"},required:!1,description:"",defaultValue:{value:"30000",computed:!1},tags:{},name:"afkExpirationTime"},{type:{name:"number"},required:!1,description:"",tags:{},name:"currentHint"},{type:{name:"array"},required:!1,description:"",tags:{},name:"guideContent"},{type:{name:"func"},required:!1,description:"",tags:{},name:"handleProgress"},{type:{name:"bool"},required:!1,description:"",tags:{},name:"hovered"},{type:{name:"bool"},required:!1,description:"",tags:{},name:"invalidCode"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onFinishedTyping"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onHover"},{type:{name:"bool"},required:!1,description:"",tags:{},name:"showNext"}],examples:null}},863:function(e,t,s){},886:function(e,t,s){},892:function(e,t,s){},896:function(e,t,s){},897:function(e,t,s){},898:function(e,t,s){},899:function(e,t,s){},900:function(e,t,s){},901:function(e,t,s){},902:function(e,t,s){e.exports={doclets:{},displayName:"Header",description:"",methods:[],props:[{type:{name:"func"},required:!1,description:"",tags:{},name:"onSidebar"},{type:{name:"func"},required:!1,description:"",defaultValue:{value:"() => {}",computed:!1},tags:{},name:"updateUser"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:null}},906:function(e,t,s){},907:function(e,t,s){e.exports={doclets:{},displayName:"Intro",description:"",methods:[],props:[],examples:null}},908:function(e,t,s){e.exports={doclets:{},displayName:"LanguageSelector",description:"",methods:[],props:[{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{\n messages: {\n options: {\n languages: {}\n },\n global: {},\n }\n}",computed:!1},tags:{},name:"intl"},{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'pt-br'",computed:!1},tags:{},name:"locale"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"onChange"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"options"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"setLocale"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"setUpdateOptions"}],examples:null}},909:function(e,t,s){e.exports={doclets:{},displayName:"Level",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n level: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"number"},required:!1,description:"A number representing the level: 0, 1, 20, 2400, 9999. There is no restrictions.",tags:{},name:"level"},{type:{name:"number"},required:!1,description:"A percentage representing the progress from 0 to 100. The progress is used as percentage, the minimum is 0 (zero)\nand the maximum is 100. Any number greater than 100, is going to be displayed as if it were 100.",tags:{},name:"progress"}],examples:s(910)}},910:function(e,t,s){var n={"./Level":s(77),react:s(0),"./Level.tsx":s(77)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Level$0 = require('./Level.tsx');\nconst Level = Level$0.default || (Level$0['Level'] || Level$0);",i);e.exports=[{type:"markdown",content:"# Level\n\n## Basic usage\n\nRaw Level component"},{type:"code",content:"import { Level } from './Level';\n\n",settings:{},evalInContext:r}]},911:function(e,t,s){e.exports={doclets:{},displayName:"Loading",description:"",methods:[],props:[],examples:null}},912:function(e,t,s){e.exports={doclets:{},displayName:"Modal",description:"",methods:[],props:[{type:{name:"node"},required:!1,description:"",tags:{},name:"children"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onClose"},{type:{name:"node"},required:!1,description:"",tags:{},name:"title"}],examples:null}},913:function(e,t,s){e.exports={doclets:{},displayName:"Profile",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"",tags:{},name:"className"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n global: {},\n menu: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"func"},required:!1,description:"",tags:{},name:"setUser"},{type:{name:"object"},required:!1,description:"",tags:{},name:"user"}],examples:s(914)}},914:function(e,t,s){var n={"./Profile":s(75),react:s(0),"./Profile.tsx":s(75)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Profile$0 = require('./Profile.tsx');\nconst Profile = Profile$0.default || (Profile$0['Profile'] || Profile$0);",i);e.exports=[{type:"markdown",content:"# Profile\n\n## Basic usage\n\nRaw Profile component"},{type:"code",content:"import { Profile } from './Profile';\n",settings:{},evalInContext:r}]},915:function(e,t,s){e.exports={doclets:{},displayName:"Options",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n global: {},\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"options"},{type:{name:"func"},required:!1,description:"",tags:{},name:"setUpdateOptions"}],examples:null}},916:function(e,t,s){e.exports={doclets:{},displayName:"Ranking",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n ranking: {\n table: {}\n }\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onRanking"}],examples:null}},918:function(e,t,s){e.exports={doclets:{},displayName:"Rocket",methods:[],props:[],examples:null}},919:function(e,t,s){},920:function(e,t,s){e.exports={doclets:{},displayName:"Scene",description:"",methods:[],props:[{required:!1,tsType:{name:"string"},description:"",tags:{},name:"button"},{required:!1,tsType:{name:"string"},description:"",tags:{},name:"className"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"handleLastScene"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"intl"},{required:!1,tsType:{name:"boolean"},description:"",tags:{},name:"lastScene"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"next"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"onCompleted"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"previous"},{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"2000",computed:!1},tags:{},name:"releaseButton"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"showAlien"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"showBuggy"},{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"900",computed:!1},tags:{},name:"showNextButton"},{required:!1,tsType:{name:"number"},description:"",tags:{},name:"step"},{required:!1,tsType:{name:"Array",elements:[{name:"TextItem"}],raw:"TextItem[]"},description:"",defaultValue:{value:"[]",computed:!1},tags:{},name:"text"}],examples:null}},921:function(e,t,s){"use strict";s.r(t);var n=s(147),i=s(14),r=s(4);t.default=(e,t,s)=>a=>{let{handleLastScene:o,history:c,className:l}=a;return Object(r.jsx)(n.default,{className:l,identifier:e,content:t,handleLastScene:()=>{o?o():(i.f.emit(i.b,{tutorial:!0}),c.push(s))}})}},922:function(e,t,s){e.exports={doclets:{},displayName:"SceneContentManager",methods:[],props:[],examples:null}},923:function(e,t,s){e.exports={doclets:{},displayName:"SceneManager",description:"",methods:[],props:[{type:{name:"object"},required:!0,description:"",tsType:{name:"any"},tags:{},name:"content"},{type:{name:"func"},required:!0,description:"",tsType:{name:"signature",type:"function",raw:"(args?: any) => any",signature:{arguments:[{name:"args",type:{name:"any"}}],return:{name:"any"}}},tags:{},name:"handleLastScene"},{type:{name:"string"},required:!0,description:"",tsType:{name:"string"},tags:{},name:"identifier"},{type:{name:"string"},required:!1,description:"",tsType:{name:"string"},defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],examples:null}},924:function(e,t,s){},925:function(e,t,s){},926:function(e,t,s){},927:function(e,t,s){e.exports={doclets:{},displayName:"Sidebar",description:"",methods:[],props:[{type:{name:"node"},required:!1,description:"",tags:{},name:"children"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:null}},928:function(e,t,s){e.exports={doclets:{},displayName:"Survey",methods:[],props:[],examples:null}},929:function(e,t,s){e.exports={doclets:{},displayName:"Survey",description:"",methods:[],props:[{required:!1,tsType:{name:"string"},description:"",tags:{},name:"className"},{required:!1,tsType:{name:"boolean"},description:"",tags:{},name:"skip"},{required:!1,tsType:{name:"string"},description:"",tags:{},name:"surveyUrl"},{required:!1,tsType:{name:"User"},description:"",tags:{},name:"user"}],examples:null}},930:function(e,t,s){"use strict";s.r(t),s.d(t,"DEFAULT_DELAY",(function(){return a}));var n=s(0),i=s(149),r=(s(931),s(4));const a=2e3,Error=e=>Object(r.jsxs)("svg",{viewBox:"0 0 130.2 130.2",...e,children:[Object(r.jsx)("circle",{className:"path circle",fill:"none",stroke:"red",strokeWidth:"6",strokeMiterlimit:"10",cx:"65.1",cy:"65.1",r:"62.1"}),Object(r.jsx)("line",{className:"path line",fill:"none",stroke:"red",strokeWidth:"6",strokeLinecap:"round",strokeMiterlimit:"10",x1:"34.4",y1:"37.9",x2:"95.8",y2:"92.3"}),Object(r.jsx)("line",{className:"path line",fill:"none",stroke:"red",strokeWidth:"6",strokeLinecap:"round",strokeMiterlimit:"10",x1:"95.8",y1:"38",x2:"34.4",y2:"92.2"})]});t.default=(e,t)=>{const s=t.filter((e=>!1===e.pass));class a extends n.Component{constructor(){super(...arguments),this.state={tests:[],showTests:!1,releaseRocket:!1,releaseTests:!1,completed:!1,rocketDefaultClass:""},this.componentDidMount=()=>{this.startFlow()},this.startFlow=()=>{const{animationDelay:e}=this.props;setTimeout((()=>{this.setState({rocketDefaultClass:"wobble-hor-bottom"})}),e/2),this.setState({showTests:!0});let s=0;const n=setInterval((()=>{const e=this.state.tests;e.push(t[s]),this.setState({tests:e}),s++,e.length===t.length&&(clearInterval(n),this.startAnimation())}),e)},this.startAnimation=()=>{const{animationDelay:e,onFinished:t}=this.props;setTimeout((()=>{this.setState({releaseRocket:!0})}),e),setTimeout((()=>{this.setState({releaseTests:!0})}),4*e),setTimeout((()=>{this.setState({completed:!0}),t&&t()}),5*e)}}render(){let t="up-down";return 0===s.length&&(t="bounce-out-top"),Object(r.jsxs)("div",{className:this.state.completed?"hidden":"w-5/6 m-auto flex items-center justify-center",children:[Object(r.jsx)("div",{className:"\n animation-container \n ".concat(this.state.showTests?"block":"hidden","\n ").concat(this.state.releaseTests?"slide-out-elliptic-top-fwd":"","\n "),children:this.state.tests.map(((e,t)=>Object(r.jsxs)("div",{className:"flex items-center justify-between slide-in-elliptic-left-fwd mb-10 mr-16",children:[Object(r.jsx)("h1",{className:"text-white text-2xl font-medium",children:e.test}),e.pass&&Object(r.jsx)(i.default,{width:"50px",height:"50px"}),!e.pass&&Object(r.jsx)(Error,{width:"50px",height:"50px"})]},t)))}),Object(r.jsx)(e,{className:"".concat(this.state.releaseRocket?t:this.state.rocketDefaultClass)})]})}}return a}},931:function(e,t,s){},932:function(e,t,s){e.exports={doclets:{},displayName:"TestExecutionAnimation",methods:[],props:[],examples:null}},933:function(e,t,s){e.exports={doclets:{},displayName:"AnimatedText",description:"",methods:[],props:[{required:!0,tsType:{name:"Array",elements:[{name:"TextItem"}],raw:"TextItem[]"},description:"",tags:{},name:"text"},{required:!1,tsType:{name:"string"},description:"",tags:{},name:"className"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"onFinishedTyping"}],examples:null}},934:function(e,t,s){e.exports={doclets:{},displayName:"TypedText",description:"",methods:[],props:[{type:{name:"func"},required:!0,description:"",tsType:{name:"any"},tags:{},name:"onComplete"},{type:{name:"array"},required:!1,description:"",tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},defaultValue:{value:"[]",computed:!1},tags:{},name:"strings"}],examples:null}},935:function(e,t,s){e.exports={doclets:{},displayName:"Title",description:"",methods:[],props:[{required:!0,tsType:{name:"ReactNode"},description:"",tags:{},name:"children"}],examples:s(936)}},936:function(e,t,s){var n={"./Title":s(51),react:s(0),"./Title.tsx":s(51)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Title$0 = require('./Title.tsx');\nconst Title = Title$0.default || (Title$0['Title'] || Title$0);",i);e.exports=[{type:"markdown",content:"# Title\n\n## Basic usage"},{type:"code",content:"import Title from './Title';\n\n\n <div>my title</div>\n",settings:{},evalInContext:r}]},937:function(e,t,s){e.exports={doclets:{},displayName:"UserMenu",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n ranking: {},\n survey: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onNotification"},{type:{name:"bool"},required:!1,description:"",defaultValue:{value:"config.showSurvey",computed:!0},tags:{},name:"showUpSurvey"},{type:{name:"object"},required:!1,description:"",tags:{},name:"user"}],examples:null}},938:function(e,t,s){e.exports={doclets:{},displayName:"Achievement",description:"",methods:[],props:[],examples:null}},939:function(e,t,s){e.exports={doclets:{},displayName:"Check",description:"",methods:[],props:[],examples:null}},940:function(e,t,s){e.exports={doclets:{},displayName:"Close",description:"",methods:[],props:[],examples:null}},941:function(e,t,s){e.exports={doclets:{},displayName:"Cup",description:"",methods:[],props:[],examples:null}},942:function(e,t,s){e.exports={doclets:{},displayName:"Load",description:"",methods:[],props:[],examples:s(943)}},943:function(e,t,s){var n={"./Load":s(76),react:s(0),"./Load.tsx":s(76)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Load$0 = require('./Load.tsx');\nconst Load = Load$0.default || (Load$0['Load'] || Load$0);",i);e.exports=[{type:"markdown",content:"# Load\n\n## Basic usage"},{type:"code",content:"import Load from './Load';\n",settings:{},evalInContext:r}]},944:function(e,t,s){e.exports={doclets:{},displayName:"Next",description:"",methods:[],props:[],examples:null}},945:function(e,t,s){e.exports={doclets:{},displayName:"AlienRocket",description:"",methods:[],props:[],examples:s(946)}},946:function(e,t,s){var n={"./AlienSvg":s(78),react:s(0),"./AlienSvg.tsx":s(78)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AlienRocket$0 = require('./AlienSvg.tsx');\nconst AlienRocket = AlienRocket$0.default || (AlienRocket$0['AlienRocket'] || AlienRocket$0);",i);e.exports=[{type:"markdown",content:"# AlienSvg\n\n## Basic usage\n\nRaw AlienSvg component"},{type:"code",content:"import AlienSvg from './AlienSvg';\n\n",settings:{},evalInContext:r}]},947:function(e,t,s){e.exports={doclets:{},displayName:"BuggyLeft",description:"",methods:[],props:[],examples:null}},948:function(e,t,s){e.exports={doclets:{},displayName:"Logo",description:"",methods:[],props:[],examples:null}},949:function(e,t,s){e.exports={doclets:{},displayName:"PlaceholderImage",description:"",methods:[],props:[],examples:null}},950:function(e,t,s){e.exports={doclets:{},displayName:"Debug",description:"",methods:[],props:[{required:!0,tsType:{name:"MouseEventHandler",elements:[{name:"HTMLInputElement"}],raw:"MouseEventHandler"},description:"",tags:{},name:"onClick"},{required:!0,tsType:{name:"string"},description:"",tags:{},name:"value"}],examples:s(951)}},951:function(e,t,s){var n={"./Debug":s(21),react:s(0),"./Debug.tsx":s(21)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Debug$0 = require('./Debug.tsx');\nconst Debug = Debug$0.default || (Debug$0['Debug'] || Debug$0);",i);e.exports=[{type:"markdown",content:"# Debug\n\n## Basic usage"},{type:"code",content:"import Debug from './Debug';\n",settings:{},evalInContext:r}]},952:function(e,t,s){e.exports={doclets:{},displayName:"Primary",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"Custom class to append in the ed of the button element class list.",tags:{},name:"className"},{type:{name:"string"},required:!1,description:"The text that goes inside the button.",tags:{},name:"description"},{type:{name:"bool"},required:!1,description:"Indicates whether the button should be disabled (true) or not (false)",tags:{},name:"disabled"},{type:{name:"func"},required:!1,description:"Calback to be executed when the button is clicked.",tags:{},name:"onClick"}],examples:s(953)}},953:function(e,t,s){var n={"./Primary":s(40),react:s(0),"./Primary.tsx":s(40)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Primary$0 = require('./Primary.tsx');\nconst Primary = Primary$0.default || (Primary$0['Primary'] || Primary$0);",i);e.exports=[{type:"markdown",content:"# Primary\n\n## Basic usage"},{type:"code",content:"import Primary from './Primary';\n",settings:{},evalInContext:r}]},955:function(e,t,s){"use strict";s.r(t);var n=s(0),i=s(115),r=s(14),a=s(17),o=s(53);const c=s(917);var Reason=function(e,t){try{const s=c.parseScript(e);if(s.body.length>0)return t(s)}catch(e){return console.warn(e),!1}},l=s(74),p=s(150),d=s(145),u=s(21),m=s(19),h=s(156),j=s(4);t.default=function(e,t,s,c,g,b,x,f,y,v,_,S,O,E,C){let k=arguments.length>15&&void 0!==arguments[15]?arguments[15]:[];class w extends n.Component{constructor(){super(...arguments),this.state={code:{[m.a]:e,[m.b]:t},editorOptions:C||{[m.a]:{readOnly:!0},[m.b]:{}},done:!1,showNext:!1,currentHint:0,initialStep:0,introEnabled:!1,intro:O||{steps:[],initialStep:0},editorError:!1},this.onValidCode=(e,t)=>{if(this.state.currentHint!==f||t===S)return;let n=Object.assign({},this.state.code);n[t]=e,this.setState({code:n});const i="".concat(this.state.code[m.a]," ").concat(this.state.code[m.b]),r=Reason(this.state.code[m.a],_),o=r&&Object(h.a)(this.state.code[m.a],r,c),l=Reason(this.state.code[m.b],v);l&&Object(h.a)(i,l,s)&&o&&(Object(a.a)({section:y,action:"".concat(y,":valid_code")}),this.setState({currentHint:this.state.currentHint+1,showNext:!1}))},this.onErrorCode=e=>{this.setState({editorError:e})},this.onGuideFinishedTyping=()=>{if(this.state.currentHint===x){const e=Object.assign({},this.state);return k.forEach((t=>{e.editorOptions[t].className="attention"})),this.setState(e),void setTimeout((()=>{const e=Object.assign({},this.state);k.forEach((t=>{e.editorOptions[t].className=""})),this.setState(e)}),3e3)}this.setState({showNext:!0})},this.handleProgress=()=>{if(this.state.currentHint===E)return this.toogleToolTip(),void Object(a.a)({section:y,action:"next_guide_hint:started_tooltip_".concat(y)});const e=this.state.currentHint+1;if(e{this.setState({currentHint:this.state.currentHint-1})},this.toogleToolTip=()=>{this.setState({introEnabled:!0})},this.onFinishTooltip=()=>{this.state.currentHint===E&&this.setState({introEnabled:!1,currentHint:1+this.state.currentHint,showNext:!1})}}componentDidMount(){Object(a.a)({section:y,action:"".concat(y,"_start")})}render(){return this.state.done?Object(j.jsx)(i.a,{to:b}):Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)(d.default,{enabled:this.state.introEnabled,steps:this.state.intro.steps,initialStep:this.state.intro.initialStep,onExit:this.onFinishTooltip}),Object(j.jsxs)("div",{className:"flex justify-center editor-container",children:[Object(j.jsx)(u.default,{onClick:this.previousStep,value:"previous"}),Object(j.jsx)(l.default,{editor:2,className:"min-w-testable-editor max-w-testable-editor m-1 md:m-5",code:this.state.code,onValidCode:{[m.a]:this.onValidCode,[m.b]:this.onValidCode},onErrorCode:{[m.a]:this.onErrorCode,[m.b]:this.onErrorCode},options:this.state.editorOptions}),Object(j.jsx)(u.default,{onClick:this.handleProgress,value:"next"})]}),Object(j.jsx)(p.default,{guideContent:g,showNext:this.state.showNext,handleProgress:this.handleProgress,currentHint:this.state.currentHint,onFinishedTyping:this.onGuideFinishedTyping,invalidCode:this.state.editorError})]})}}return w}},956:function(e,t,s){"use strict";s.r(t),s.d(t,"Sidebar",(function(){return m}));var n=s(0),i=s(20),r=s(139),a=s(56),o=s(71);const c=Object(i.a)((e=>({user:e.userReducer.user})));var l=Object(a.b)(c(o.default)),p=s(148),d=s(17),u=(s(924),s(925),s(926),s(4));class m extends n.Component{constructor(){super(...arguments),this.state={open:!1,hover:!1,hideSidebarClass:"hidden"},this.onSidebar=()=>{const e=!this.state.open;this.setState({open:e,hideSidebarClass:"fade-out-left"}),Object(d.a)({section:"sidebar",action:"toggle_sidebar|button_click",value:e})}}render(){return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"sidebar bg-blue-dark h-screen z-50 overflow-y-auto absolute fade-in-left ".concat(this.state.open?"block":this.state.hideSidebarClass),style:{width:"300px"},children:Object(u.jsx)(l,{onClose:this.onSidebar})}),Object(u.jsxs)("div",{className:"header",children:[this.state.open&&Object(u.jsx)("div",{className:"z-30 h-screen w-full absolute bg-testable-overlay-sidebar",onClick:this.onSidebar}),this.props.user.uid&&Object(u.jsx)(r.default,{onSidebar:this.onSidebar})]}),this.props.children,!this.props.user.uid&&Object(u.jsx)(p.default,{className:"h-6 hidden md:block absolute pin-b pin-r mr-5 mb-5"})]})}}m.defaultProps={user:{}};t.default=Object(i.a)((e=>({user:e.userReducer.user})))(m)}},[[243,1,2]]]); \ No newline at end of file diff --git a/docs/build/main.5239fb83.js b/docs/build/main.5239fb83.js new file mode 100644 index 00000000..da2da985 --- /dev/null +++ b/docs/build/main.5239fb83.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{104:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return l}));var n=s(0),i=s(231),r=s(233),a=s(232),o=s(226),c=(s(844),s(4));class l extends n.Component{constructor(){super(...arguments),this.state={editorIsFocused:!1},this.extension=Object(o.a)({focus:()=>{this.onFocus(!0)},blur:()=>{this.onFocus(!1)}}),this.onFocus=e=>{this.setState({editorIsFocused:e}),this.props.onFocus(e)},this.handleOnKeyPressed=()=>{this.props.onFocus(this.state.editorIsFocused)}}componentDidMount(){document.addEventListener("keydown",this.handleOnKeyPressed,!1)}componentWillUnmount(){document.removeEventListener("keydown",this.handleOnKeyPressed,!1),this.setState({editorIsFocused:!1})}render(){const{className:e,options:t}=this.props,s={mode:"javascript",lineNumbers:!0,showCursorWhenSelecting:!1,autocompletion:!1,...t};return Object(c.jsx)("div",{className:"editor ".concat(e," "),children:Object(c.jsx)(i.a,{theme:a.a,extensions:[Object(r.a)({jsx:!0}),this.extension],value:this.props.value,height:"300px",basicSetup:s,onChange:this.props.codeChanged})})}}l.defaultProps={options:{},onFocus:()=>{},codeChanged:()=>{}}},110:function(e,t,s){(function(t){let n={transparent:"transparent",black:"#22292f",white:"#ffffff","red-darkest":"#3b0d0c","red-darker":"#621b18","red-dark":"#cc1f1a",red:"#e3342f","red-light":"#ef5753","red-lighter":"#f9acaa","red-lightest":"#fcebea","yellow-darkest":"#453411","yellow-darker":"#684f1d","yellow-dark":"#f2d024",yellow:"#fcc632","yellow-light":"#fff382","yellow-lighter":"#fff9c2","yellow-lightest":"#fcfbeb","blue-darkest":"#12283a","blue-darker":"#1c3d5a","blue-dark":"#012345",blue:"#3490dc","blue-light":"#32ccff","blue-lighter":"#bcdefa","blue-lightest":"#04edf6","testable-overlay":"rgba(0, 0, 0, 0.3)","testable-overlay-sidebar":"rgba(0, 0, 0, 0.7)","testable-blue-overlay":"#00ffdf52","testable-pink":"#f11571","testable-pink-dark":"#af1246"};e.exports={colors:n,screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px"},fonts:{},textSizes:{xs:".75rem",sm:".875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700},leading:{none:1,tight:1.25,normal:1.5,loose:2},tracking:{tight:"-0.05em",normal:"0",wide:"0.05em"},textColors:n,backgroundColors:n,backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},borderWidths:{default:"1px",0:"0",2:"2px",4:"4px",8:"8px"},borderColors:t.Object.assign({default:n["grey-light"]},n),borderRadius:{none:"0",sm:".125rem",default:".25rem",lg:".5rem",full:"9999px"},width:{auto:"auto",px:"1px",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",24:"6rem",32:"8rem",48:"12rem",64:"16rem","1/2":"50%","1/3":"33.33333%","2/3":"66.66667%","1/4":"25%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.66667%","5/6":"83.33333%",full:"100%",screen:"100vw","testable-guide":"45%","testable-editor":"45%"},height:{auto:"auto",px:"1px",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",24:"6rem",32:"8rem",48:"12rem",64:"16rem",full:"100%",screen:"100vh"},minWidth:{0:"0",full:"100%","testable-guide":"45%","testable-editor":"45%"},minHeight:{0:"0",full:"100%",screen:"100vh","testable-editor":"45%"},maxWidth:{xs:"20rem",sm:"30rem",md:"40rem",lg:"50rem",xl:"60rem","2xl":"70rem","3xl":"80rem","4xl":"90rem","5xl":"100rem",full:"100%","testable-guide":"45%"},maxHeight:{full:"100%",screen:"100vh"},padding:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem"},margin:{auto:"auto",px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem"},negativeMargin:{px:"1px",0:"0",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",8:"2rem",10:"2.5rem",12:"3rem",16:"4rem",20:"5rem",24:"6rem",32:"8rem"},shadows:{default:"0 2px 4px 0 rgba(0,0,0,0.10)",md:"0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)",lg:"0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",outline:"0 0 0 3px rgba(52,144,220,0.5)",none:"none"},zIndex:{auto:"auto",0:0,10:10,20:20,30:30,40:40,50:50},opacity:{0:"0",25:".25",50:".5",75:".75",100:"1"},svgFill:{current:"currentColor"},svgStroke:{current:"currentColor"},modules:{appearance:["responsive"],backgroundAttachment:["responsive"],backgroundColors:["responsive","hover","focus"],backgroundPosition:["responsive"],backgroundRepeat:["responsive"],backgroundSize:["responsive"],borderCollapse:[],borderColors:["responsive","hover","focus","group-hover"],borderRadius:["responsive"],borderStyle:["responsive"],borderWidths:["responsive"],cursor:["responsive"],display:["responsive"],flexbox:["responsive"],float:["responsive"],fonts:["responsive"],fontWeights:["responsive","hover","focus"],height:["responsive"],leading:["responsive"],lists:["responsive"],margin:["responsive"],maxHeight:["responsive"],maxWidth:["responsive"],minHeight:["responsive"],minWidth:["responsive"],negativeMargin:["responsive"],objectFit:!1,objectPosition:!1,opacity:["responsive"],outline:["focus"],overflow:["responsive"],padding:["responsive"],pointerEvents:["responsive"],position:["responsive"],resize:["responsive"],shadows:["responsive","hover","focus"],svgFill:[],svgStroke:[],tableLayout:["responsive"],textAlign:["responsive"],textColors:["responsive","hover","focus","group-hover"],textSizes:["responsive"],textStyle:["responsive","hover","focus"],tracking:["responsive"],userSelect:["responsive"],verticalAlign:["responsive"],visibility:["responsive"],whitespace:["responsive"],width:["responsive"],zIndex:["responsive"]},plugins:[s(830)({})],options:{prefix:"",important:!1,separator:":"}}}).call(this,s(23))},111:function(e,t,s){"use strict";s.d(t,"a",(function(){return removeUser})),s.d(t,"b",(function(){return updateUser}));const n="UPDATE_USER_DATA",i="REMOVE_USER";function removeUser(e){return{type:i,payload:e}}function updateUser(e){return{type:n,payload:e}}},112:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 34.185 39.128",children:[Object(n.jsx)("g",{children:Object(n.jsx)("path",{d:"M24.989,39.128H9.2c-0.42,0-0.799-0.23-0.992-0.602c-0.193-0.37-0.165-0.813,0.075-1.156l2.578-3.697 c0.21-0.301,0.553-0.479,0.917-0.479h2.438V26.76c-1.876-0.531-3.585-1.633-4.848-3.135c-0.189-0.225-0.16-0.561,0.065-0.749 c0.223-0.188,0.561-0.162,0.749,0.064c1.208,1.437,2.872,2.462,4.687,2.89c0.24,0.057,0.41,0.271,0.41,0.518v7.378 c0,0.294-0.238,0.532-0.532,0.532h-2.97l-2.623,3.721L9.2,38.064h15.789c0.053-0.053,0.045-0.075,0.004-0.141l-2.541-3.643 l-3.015-0.023c-0.294,0-0.532-0.238-0.532-0.532v-7.378c0-0.246,0.17-0.461,0.41-0.518c3.474-0.818,6.146-3.74,6.65-7.27 c0.035-0.244,0.235-0.434,0.482-0.454c1.284-0.11,2.416-0.655,3.363-1.618c3.414-3.479,3.315-11.391,3.309-11.726 c-0.006-0.347-0.293-0.629-0.64-0.629l-5.893-0.003c-0.294,0-0.531-0.238-0.531-0.532V1.119L8.183,1.063L8.129,3.599 c0,0.294-0.237,0.532-0.532,0.532L1.704,4.134c-0.346,0-0.632,0.282-0.639,0.63C1.063,4.846,0.94,12.99,4.374,16.488 c0.947,0.963,2.079,1.508,3.364,1.618c0.247,0.021,0.446,0.21,0.481,0.454c0.116,0.812,0.347,1.604,0.686,2.352 c0.121,0.268,0.002,0.583-0.266,0.705c-0.266,0.119-0.583,0.002-0.704-0.267c-0.323-0.714-0.559-1.464-0.702-2.233 c-1.375-0.205-2.591-0.838-3.618-1.885c-3.744-3.813-3.62-12.137-3.613-12.49C0.02,3.82,0.783,3.07,1.704,3.07l5.361-0.003V1.119 C7.065,0.502,7.566,0,8.183,0h17.819c0.616,0,1.118,0.502,1.118,1.119v1.948l5.36,0.003c0.923,0,1.688,0.751,1.703,1.674 c0.007,0.353,0.11,8.696-3.613,12.488c-1.026,1.047-2.243,1.68-3.618,1.885c-0.68,3.639-3.419,6.635-6.983,7.643v6.434h2.438 c0.365,0,0.708,0.179,0.917,0.479l2.553,3.661c0.113,0.175,0.229,0.394,0.229,0.677C26.106,38.627,25.605,39.128,24.989,39.128z M26.294,15.907c-0.125,0-0.247-0.044-0.343-0.125c-0.121-0.102-0.189-0.25-0.189-0.407V6.457c0-0.141,0.056-0.276,0.156-0.377 c0.1-0.1,0.234-0.154,0.376-0.154c0,0,0,0,0.001,0l4.061,0.003c0.145,0,0.283,0.06,0.384,0.164s0.153,0.247,0.147,0.392 c-0.062,1.417-0.431,6.208-2.549,8.363l0,0c-0.563,0.572-1.222,0.927-1.955,1.053C26.354,15.905,26.323,15.907,26.294,15.907z M26.825,6.99v7.664c0.269-0.129,0.518-0.312,0.754-0.553l0,0c1.374-1.397,2.033-4.489,2.213-7.109L26.825,6.99z M7.597,15.907 c-0.029,0-0.06-0.002-0.089-0.007c-0.733-0.126-1.392-0.48-1.955-1.053c-2.118-2.155-2.486-6.946-2.549-8.363 C2.998,6.34,3.051,6.197,3.151,6.093s0.239-0.164,0.384-0.164l4.061-0.003c0.001,0,0.001,0,0.001,0 c0.142,0,0.276,0.055,0.376,0.154c0.101,0.101,0.156,0.236,0.156,0.377v8.918c0,0.157-0.068,0.306-0.189,0.407 C7.844,15.863,7.722,15.907,7.597,15.907z M4.099,6.992c0.18,2.62,0.839,5.712,2.213,7.109c0.236,0.24,0.485,0.424,0.754,0.553 V6.99L4.099,6.992z"})}),Object(n.jsx)("g",{children:Object(n.jsx)("polygon",{points:"12.236,10.314 15.592,9.828 17.094,6.787 18.594,9.828 21.95,10.314 19.521,12.682 20.095,16.025 17.094,14.447 14.091,16.025 14.664,12.682"})})]})},137:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return a}));var n=s(0),i=s(227),r=s(4);class a extends n.Component{componentDidMount(){const{strings:e}=this.props,t={strings:e,typeSpeed:15,showCursor:!1,startDelay:200};"function"==typeof this.props.onComplete&&(t.onComplete=this.props.onComplete),this.typed=new i.a(this.el,t)}componentWillUnmount(){this.typed&&this.typed.destroy()}render(){return Object(r.jsx)("div",{className:"wrap",children:Object(r.jsx)("div",{className:"type-wrap",children:Object(r.jsx)("span",{ref:e=>{this.el=e}})})})}}a.defaultProps={strings:[]}},138:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 129 129",...e,children:Object(n.jsx)("g",{children:Object(n.jsx)("path",{d:"m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z"})})})},139:function(e,t,s){"use strict";s.r(t),s.d(t,"Header",(function(){return m}));var n=s(0),i=s(20),r=s(115),a=s(140),o=s(77),c=s(21),l=s(111),p=s(79),d=s(14),u=(s(900),s(901),s(4));class m extends n.Component{constructor(){super(...arguments),this.state={levelUp:!1},this.goToIntroduction=()=>{this.props.updateUser({tutorial:!1,level:1})},this.levelDown=()=>{d.f.emit(d.a)},this.levelUp=()=>{d.f.emit(d.b)}}resetLevelUpAnimation(){setTimeout((()=>{this.setState({levelUp:!1})}),500)}componentDidMount(){d.f.addListener(d.b,(()=>{this.setState({levelUp:!0});const e=1+this.props.user.level;this.props.updateUser({level:e,progress:10}),this.resetLevelUpAnimation()})),d.f.addListener(d.a,(()=>{this.setState({levelUp:!0});const e=this.props.user.level-1;this.props.updateUser({level:e,progress:10}),this.resetLevelUpAnimation()})),d.f.addListener(d.d,(e=>{this.setState({progress:e.amount}),this.props.updateUser({progress:e.amount})})),d.f.addListener(d.c,(e=>{this.setState({progress:e.amount}),this.props.updateUser({progress:e.amount})}))}componentWillUnmount(){d.f.removeAllListeners(d.b),d.f.removeAllListeners(d.a),d.f.removeAllListeners(d.d),d.f.removeAllListeners(d.c)}render(){return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(c.default,{onClick:this.levelUp,value:"level up"}),Object(u.jsx)(c.default,{onClick:this.levelDown,value:"level down"}),Object(u.jsx)(c.default,{onClick:this.goToIntroduction,value:"go back to introduction"}),Object(u.jsx)(c.default,{onClick:this.props.onSidebar,value:"sidebar"}),Object(u.jsxs)("div",{className:"flex flex-col items-start pl-3 pt-1 pr-3 pb-5 ml-5 mr-5 sm:flex-row sm:justify-between md:pt-5",children:[Object(u.jsxs)("div",{className:"user-progress flex items-center ".concat(this.state.levelUp?"wobble-ver-right":""),children:[Object(u.jsx)(p.default,{className:"achievements fill-current w-8 h-8 text-white mr-5 cursor-pointer hover:text-blue-lightest",onClick:this.props.onSidebar}),Object(u.jsx)(o.default,{progress:this.props.user.progress,level:this.props.user.level})]}),Object(u.jsx)(a.default,{user:this.props.user})]})]})}}m.defaultProps={updateUser:()=>{},user:{}},t.default=Object(r.b)(Object(i.a)((e=>({user:e.userReducer.user})),(e=>({updateUser:t=>e(Object(l.b)(t))})))(m))},14:function(e,t,s){"use strict";s.d(t,"e",(function(){return r})),s.d(t,"b",(function(){return a})),s.d(t,"a",(function(){return o})),s.d(t,"d",(function(){return c})),s.d(t,"c",(function(){return l}));const{EventEmitter:n}=s(825),i=new n,r="0",a="1",o="4",c="2",l="3";t.f=i},140:function(e,t,s){"use strict";s.r(t),s.d(t,"UserMenu",(function(){return j}));var n=s(0),i=s(56),r=s(75),a=s(63),o=s(112),c=s(142),l=s(40),p=s(143),d=s(17),u=s(110),m=s(24),h=s(4);class j extends n.Component{constructor(){super(...arguments),this.state={ranking:!1,survey:!1},this.onRanking=()=>{this.setState({ranking:!this.state.ranking}),Object(d.a)({section:"user_menu",action:"toggle_ranking|button_click"})},this.onSurvey=()=>{this.setState({survey:!this.state.survey}),Object(d.a)({section:"user_menu",action:"toggle_survey|button_click"})},this.showSurveyButton=()=>this.props.showUpSurvey&&14!==this.props.user.level||this.props.user.level>14}render(){return Object(h.jsxs)("div",{className:"flex justify-end items-center",children:[this.showSurveyButton()&&Object(h.jsx)(l.default,{className:"mr-5 m-auto",description:"Responder o questionário",onClick:this.onSurvey}),Object(h.jsx)(o.default,{className:"ranking fill-current w-8 h-8 text-white mr-5 hover:text-blue-lightest cursor-pointer",onClick:this.onRanking}),Object(h.jsx)(r.default,{user:this.props.user}),Object(h.jsx)(a.default,{title:Object(h.jsxs)("div",{children:[Object(h.jsx)(o.default,{style:{fill:"none",stroke:u.colors["blue-lightest"],strokeWidth:"1px"},className:"fill-current w-5 h-5 mr-3"}),this.props.intl.messages.ranking.title]}),isOpen:this.state.ranking,onClose:this.onRanking,children:Object(h.jsx)(c.default,{onClick:this.onRanking})}),Object(h.jsx)(a.default,{title:Object(h.jsx)("div",{children:this.props.intl.messages.survey.title}),isOpen:this.state.survey,onClose:this.onSurvey,children:Object(h.jsx)(p.default,{onClick:this.onSurvey,className:"mt-8"})})]})}}j.defaultProps={intl:{messages:{ranking:{},survey:{}}},showUpSurvey:m.a.showSurvey},t.default=Object(i.b)(j)},141:function(e,t,s){"use strict";s.r(t);var n=s(22),i=s(4);t.default=e=>Object(i.jsx)(n.a,{image:"testable.placeholder.svg",alt:"buggy",...e})},142:function(e,t,s){"use strict";s.r(t),s.d(t,"Ranking",(function(){return Ranking}));var n=s(0),i=s(56),r=s(83),a=s(24),o=s(4);function Ranking(e){const[t,s]=Object(n.useState)([]),[i,c]=Object(n.useState)(!0),[l,p]=Object(n.useState)("");if(Object(n.useEffect)((()=>{fetch(a.a.rankingApi).then((e=>e.json())).then((e=>{s(e.data||[])})).catch((()=>{p(e.intl.messages.ranking.error)})).finally((()=>{c(!1)}))}),[]),l)return Object(o.jsx)("h3",{className:"text-white flex justify-center mt-5",children:l});if(i)return Object(o.jsx)("div",{children:Object(o.jsx)(r.default,{})});if(0===t.length)return Object(o.jsx)("h3",{className:"text-white flex justify-center mt-5",children:e.intl.messages.ranking.no_data});const d=[];return t.forEach(((e,t)=>{d.push(Object(o.jsxs)("tr",{className:0===t?"text-xl font-bold bg-testable-pink":"",children:[Object(o.jsx)("td",{className:"p-2",children:t+1}),Object(o.jsx)("td",{className:"p-2",children:e.name}),Object(o.jsx)("td",{className:"p-2",children:e.level})]},t))})),Object(o.jsxs)("table",{className:"text-white m-auto w-3/5",children:[Object(o.jsx)("thead",{children:Object(o.jsxs)("tr",{children:[Object(o.jsx)("th",{className:"text-left p-2 captalize",children:e.intl.messages.ranking.table.position}),Object(o.jsx)("th",{className:"text-left p-2 captalize",children:e.intl.messages.ranking.table.name}),Object(o.jsx)("th",{className:"text-left p-2 captalize",children:e.intl.messages.ranking.table.level})]})}),Object(o.jsx)("tbody",{children:d})]})}Ranking.defaultProps={intl:{messages:{ranking:{table:{}}}}},t.default=Object(i.b)(Ranking)},143:function(e,t,s){"use strict";s.r(t);var n=s(20),i=s(144);t.default=Object(n.a)((e=>({user:e.userReducer.user})))(i.Survey)},144:function(e,t,s){"use strict";s.r(t),s.d(t,"Survey",(function(){return c}));var n=s(0),i=s(40),r=s(14),a=s(24),o=(s(897),s(898),s(4));class c extends n.Component{constructor(){super(...arguments),this.state={surveyUrl:a.a.surveyUrl,loading:!0,buttonDescription:"Responder o questionário depois, quero descobrir o que é TDD!"},this.onSurveyLoaded=()=>{this.setState({loading:!1})},this.skipSurvey=()=>{r.f.emit(r.b)}}componentDidMount(){const e=this.props.surveyUrl,t=this.props.user;e&&t&&this.setState({surveyUrl:e.replace("{id}",t.uid)})}render(){const e=this.props.user;return e&&e.uid&&this.props.surveyUrl?Object(o.jsxs)("div",{className:"w-full ".concat(this.props.className),children:[this.state.loading&&Object(o.jsx)("div",{className:"flex justify-center items-center text-white",children:Object(o.jsx)("h1",{children:"Carregando questionário..."})}),Object(o.jsx)("iframe",{style:{height:"65vh",width:"100%"},src:this.state.surveyUrl,title:"survey form",onLoad:this.onSurveyLoaded}),!this.state.loading&&this.props.skip&&Object(o.jsx)(i.default,{className:"block mt-5 m-auto",description:this.state.buttonDescription,onClick:this.skipSurvey})]}):Object(o.jsx)("div",{className:"flex justify-center items-center text-white",children:Object(o.jsx)("h1",{className:"shake-horizontal",children:"Ocorreu um erro ao carregar o questionário"})})}}},145:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return Intro}));var n=s(230),i=s(24),r=(s(905),s(906),s(4));function Intro(e){const{isDebug:t}=i.a;return Object(r.jsx)(n.Steps,{...e,options:{disableInteraction:!0,showStepNumbers:!1,exitOnEsc:!!t,hidePrev:!0,exitOnOverlayClick:!!t,showButtons:!0,showBullets:!1,showProgress:!0,skipLabel:"Sair",nextLabel:"Próximo",prevLabel:"Anterior",doneLabel:"Estou pronto!"}})}},146:function(e,t,s){"use strict";s.r(t);var n=s(0),i=s(56),r=s(40),a=s(82),o=s(30),c=s(78),l=(s(919),s(4));const Scene=e=>{let{onCompleted:t,showAlien:s,text:i,className:p,next:d,lastScene:u,handleLastScene:m,button:h,releaseButton:j,showNextButton:g,showBuggy:b}=e;const[x,f]=Object(n.useState)(!1),[y,v]=Object(n.useState)(!1),_="\n scene\n flex\n flex-col\n py-10 px-10\n text-lg\n md:text-2xl\n text-white\n relative\n ".concat(p,"\n ");let S="hidden";s&&(S="md:block"),s&&s.animate&&(S="md:block md:slide-in-bck-top");let O="";return b.type&&(O="md:block"),b.animate&&(O+=" md:slide-in-bck-right"),Object(l.jsxs)("div",{className:_,children:[Object(l.jsxs)("div",{className:"flex",children:[Object(l.jsx)(a.default,{className:"w-2/3",text:i,onFinishedTyping:()=>{setTimeout((()=>f(!0)),g)}}),!b.type&&Object(l.jsx)(o.BuggyLeft,{className:"absolute pin-r w-1/3 mt-10 hidden ".concat(O)}),Object(l.jsx)(o.BuggyLeft,{className:"absolute pin-r w-1/3 mt-10 hidden ".concat(t.showBug&&x?"md:block md:slide-in-bck-right":"hidden","\n ")}),Object(l.jsx)(o.BuggyHappyLeft,{className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden ".concat("happy"===t.type&&x?"md:block md:slide-in-bck-right":"hidden")}),Object(l.jsx)(c.default,{className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden ".concat(S)}),"bug"===b.type&&Object(l.jsx)(o.BuggyBug,{style:{transform:"scaleX(-1)"},className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden md:block"}),"happy"===b.type&&Object(l.jsx)(o.BuggyHappy,{style:{transform:"scaleX(-1)"},className:"w-3/3 absolute w-1/3 pin-r pin-t -mt-6 hidden md:block"})]}),x&&Object(l.jsx)(r.default,{className:"absolute pin-b mb-8 scale-in-center",description:h,onClick:e=>{y||(v(!0),setTimeout((()=>{v(!1)}),j),u?m():d(e))},disabled:y})]})};Scene.defaultProps={text:[],onCompleted:{},showBuggy:{},releaseButton:2e3,showNextButton:900,intl:{}},t.default=Object(i.b)(Scene)},147:function(e,t,s){"use strict";s.r(t);var n=s(0),i=s(146),r=s(21),a=s(53),o=s(14),c=s(17),l=s(4);const SceneManager=e=>{let{content:t,identifier:s,handleLastScene:p,className:d}=e;const[u,m]=Object(n.useState)(1),handlePreviousScene=()=>{if(1===u)return!1;m(u-1),o.f.emit(o.c,{amount:a.a.user.progress-10})},handleNextScene=()=>{const e=u;if(e===t.steps.length)return!1;m(e+1),o.f.emit(o.d,{amount:a.a.user.progress+10}),Object(c.a)({section:s,action:"next_scene|button_click",value:e})},h=t.steps||[],j=[],g=h.length-1;for(const[e,t]of h.entries())t.step===u&&j.push(Object(l.jsx)(i.default,{text:t.content,button:t.button,step:u,className:"m-auto w-3/5",next:handleNextScene,previous:handlePreviousScene,lastScene:t.lastScene||g===e,handleLastScene:p,showAlien:t.showAlien,showBuggy:t.showBuggy,onCompleted:t.onCompleted||{}},e));return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("div",{className:"w-full -mt-20 ".concat(d),children:j}),Object(l.jsx)(r.default,{onClick:handlePreviousScene,value:"previous"}),Object(l.jsx)(r.default,{onClick:handleNextScene,value:"next"}),Object(l.jsx)(r.default,{onClick:p,value:"trigger last scene"})]})};SceneManager.defaultProps={className:""},t.default=SceneManager},148:function(e,t,s){"use strict";s.r(t);var n=s(22),i=s(4);t.default=e=>Object(i.jsx)("a",{href:"https://github.com/marabesi/testable",target:"_blank",rel:"noopener noreferrer",children:Object(i.jsx)(n.a,{image:"testable.logo.png",alt:"logo",title:"Testable - Ferramenta gamificada",...e})})},149:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130.2 130.2",...e,children:[Object(n.jsx)("circle",{className:"path circle",fill:"none",strokeWidth:"6",cx:"65.1",cy:"65.1",r:"62.1"}),Object(n.jsx)("polyline",{className:"path check",fill:"none",strokeWidth:"6",points:"100.2,40.2 51.5,88.8 29.8,67.5 "})]})},150:function(e,t,s){"use strict";s.r(t),s.d(t,"Guide",(function(){return l}));var n=s(0),i=s(20),r=s(30),a=s(82);var o=s(138),c=(s(851),s(4));class l extends n.Component{constructor(){super(...arguments),this.state={afk:!1},this.track=()=>{this.setState({afk:!0})},this.componentDidMount=()=>{this.trackActivity=setInterval(this.track,this.props.afkExpirationTime),document.addEventListener("keydown",this.checkUserAfk,!1),document.addEventListener("mousemove",this.checkUserAfk,!1)},this.componentWillUnmount=()=>{clearInterval(this.trackActivity),document.removeEventListener("keydown",this.checkUserAfk,!1),document.removeEventListener("mousemove",this.checkUserAfk,!1)},this.checkUserAfk=()=>{this.setState({afk:!1}),clearInterval(this.trackActivity),this.trackActivity=setInterval(this.track,this.props.afkExpirationTime)},this.onHover=()=>{this.props.onHover(!0)},this.offHover=()=>{this.props.onHover(!1)},this.handleProgress=()=>{this.offHover(),this.props.handleProgress()}}renderHint(){return this.props.guideContent.map(((e,t)=>t===this.props.currentHint&&Object(c.jsxs)(n.Fragment,{children:[Object(c.jsx)(a.default,{text:[e],onFinishedTyping:this.props.onFinishedTyping}),this.props.showNext&&Object(c.jsx)("button",{onClick:this.handleProgress,onMouseEnter:this.onHover,onMouseLeave:this.offHover,className:"w-6 h-6 self-center no-underline text-white font-bold focus:outline-none mt-5 ".concat(this.props.hovered?"":"next"),children:Object(c.jsx)(o.default,{className:"fill-current text-white py-1 w-6 h-6"})})]},t)))}render(){const e={width:"250px",marginTop:"-165px",marginLeft:"-290px"},t="absolute pin-t",{guideContent:s,currentHint:n}=this.props;let i=Object(c.jsx)(r.default,{className:t,style:e});return this.props.invalidCode&&(i=Object(c.jsx)(r.BuggyBug,{className:t,style:e})),this.state.afk&&(i=Object(c.jsx)(r.BuggySleepy,{className:t,style:e})),s[n]&&s[n].showBuggy&&"happy"===s[n].showBuggy.type&&(i=Object(c.jsx)(r.BuggyHappy,{className:t,style:e})),Object(c.jsx)("div",{style:{minHeight:"220px"},className:"flex justify-center p-5 md:p-12 bg-testable-overlay",children:Object(c.jsxs)("div",{className:"flex flex-col justify-start relative w-full md:w-testable-guide",children:[Object(c.jsx)("div",{className:"hidden md:block",children:i}),this.renderHint()]})})}}l.defaultProps={afkExpirationTime:3e4};t.default=Object(i.a)((e=>({hovered:e.guideReducer.hovered})),(e=>({onHover:t=>e({type:"ON_HOVER",payload:t})})))(l)},151:function(e,t,s){"use strict";s.r(t),s.d(t,"Options",(function(){return c}));var n=s(0),i=s(56),r=s(20),a=s(152);var o=s(4);class c extends n.Component{constructor(){super(...arguments),this.onUpdateOptions=()=>{const e=!this.props.options.animation;this.props.setUpdateOptions({animation:e})}}render(){const{intl:e}=this.props;return Object(o.jsxs)("table",{className:"text-white m-auto w-3/5",children:[Object(o.jsx)("thead",{children:Object(o.jsxs)("tr",{children:[Object(o.jsx)("th",{className:"captilize text-left p-2",children:e.messages.global.options}),Object(o.jsx)("th",{className:"text-left p-2"})]})}),Object(o.jsxs)("tbody",{children:[Object(o.jsxs)("tr",{className:"hover:bg-testable-pink",children:[Object(o.jsx)("td",{className:"p-3",children:e.messages.options.language}),Object(o.jsx)("td",{className:"p-3",align:"center",children:Object(o.jsx)(a.default,{})})]}),Object(o.jsxs)("tr",{className:"hover:bg-testable-pink",children:[Object(o.jsx)("td",{className:"p-3",children:e.messages.options.background_animation}),Object(o.jsx)("td",{className:"p-3",align:"center",children:Object(o.jsx)("input",{type:"checkbox",onClick:this.onUpdateOptions,readOnly:!0,value:"1",checked:"".concat(this.props.options.animation?"checked":"")})})]})]})]})}}c.defaultProps={options:{},intl:{messages:{global:{}}}};t.default=Object(r.a)((e=>({options:e.optionsReducer.options})),(e=>({setUpdateOptions:t=>{return e((s=t,window.localStorage.setItem("options",JSON.stringify(s)),{type:"ON_OPTIONS_UPDATED",payload:s}));var s}})))(Object(i.b)(c))},152:function(e,t,s){"use strict";s.r(t),s.d(t,"LanguageSelector",(function(){return LanguageSelector}));var n=s(0),i=s(56),r=s(20);var a=s(83),o=(s(864),s(4));const LanguageSelector=e=>{let{intl:t,locale:s,setLocale:i,onChange:r}=e;const[c,l]=Object(n.useState)(!1);return Object(o.jsxs)(o.Fragment,{children:[c&&Object(o.jsx)(a.default,{}),Object(o.jsxs)("select",{onChange:e=>{const t=e.target.value;l(!0),i(t),r&&r(t),setTimeout((()=>window.location.reload()),600)},value:s,"data-testid":"languages",children:[Object(o.jsx)("option",{value:"en",children:t.messages.options.languages.en}),Object(o.jsx)("option",{value:"pt-br",children:t.messages.options.languages["pt-br"]}),Object(o.jsx)("option",{value:"ro",children:t.messages.options.languages.ro}),Object(o.jsx)("option",{value:"es",children:t.messages.options.languages.es})]})]})};LanguageSelector.defaultProps={options:{},locale:"pt-br",intl:{messages:{options:{languages:{}},global:{}}}};t.default=Object(r.a)((e=>({options:e.optionsReducer.options,locale:e.localeReducer.locale})),(e=>({setLocale:t=>e({type:"SET_LOCALE",payload:t})})))(Object(i.b)(LanguageSelector))},156:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return executeTestCase}));const executeTestCase=function(code,strategyResult,testCases){const result=[];for(const testCase of testCases)try{const preExecution="".concat(code," ").concat(strategyResult.name,"(").concat(testCase.params,")"),execution=eval(preExecution);execution===testCase.expected&&result.push(!0)}catch(e){return console.error(e),!1}return result.length===testCases.length}},17:function(e,t,s){"use strict";s.d(t,"a",(function(){return track}));var n=s(14);function track(e){const t={...e,timestamp:Date.now()};n.f.emit(n.e,t)}},19:function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),s.d(t,"b",(function(){return i}));const n=0,i=1},21:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return Debug}));var n=s(24),i=s(4);function Debug(e){return Object(i.jsx)(i.Fragment,{children:n.a.isDebug&&Object(i.jsx)("input",{type:"button",className:"bg-white m-2",...e})})}},22:function(e,t,s){"use strict";var n=s(17),i=s(4);t.a=e=>Object(i.jsx)("img",{onClick:()=>Object(n.a)({section:e.image,action:"image_click"}),src:window.localStorage.getItem(e.image)||"",...e,alt:e.alt})},24:function(e,t,s){"use strict";t.a={env:"production",isDebug:!1,publicUrl:".",basename:"/",rankingApi:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",host:"https://marabesi.github.io/testable",surveyUrl:Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).REACT_APP_SURVEY_URL||"",showSurvey:!1,firebaseJson:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}',firebaseTosUrl:Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).REACT_APP_TOS_URL||"",firebasePrivacyUrl:Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SHOW_SURVEY:"false",REACT_APP_RANKING_API:"https://ranking-api-matheusmarabesis-projects.vercel.app/?token=testabletoolapp",REACT_APP_BASE_NAME:"",REACT_APP_HOST:"https://marabesi.github.io/testable",REACT_APP_DEBUG:"false",REACT_APP_FIREBASE_JSON:'{"apiKey":"AIzaSyAEeeT3E2MOrliqWyI11G3lB9vABBdmebQ","authDomain":"tetable-prod.firebaseapp.com","databaseURL":"https://tetable-prod.firebaseio.com","projectId":"tetable-prod","storageBucket":"tetable-prod.appspot.com","messagingSenderId":"244602970083","appId":"1:244602970083:web:2873f19dd219675a"}'}).REACT_APP_PRIVACY_URL||""}},243:function(e,t,s){s(244),e.exports=s(954)},244:function(e,t,s){},30:function(e,t,s){"use strict";s.r(t),s.d(t,"BuggyLeft",(function(){return BuggyLeft})),s.d(t,"BuggyBug",(function(){return BuggyBug})),s.d(t,"BuggySleepy",(function(){return BuggySleepy})),s.d(t,"BuggyHappy",(function(){return BuggyHappy})),s.d(t,"BuggyHappyLeft",(function(){return BuggyHappyLeft})),s.d(t,"BuggyRocket",(function(){return BuggyRocket}));var n=s(22),i=s(4);const BuggyLeft=e=>Object(i.jsx)(n.a,{image:"testable.buggy-left.png",alt:"buggy",...e}),BuggyBug=e=>Object(i.jsx)(n.a,{image:"testable.buggy-bug.png",alt:"buggy bug!!!",...e}),BuggySleepy=e=>Object(i.jsx)(n.a,{image:"testable.buggy-zzz.png",alt:"buggy zzz",...e}),BuggyHappy=e=>Object(i.jsx)(n.a,{image:"testable.buggy-happy.png",alt:"buggy happy",...e}),BuggyHappyLeft=e=>Object(i.jsx)(n.a,{image:"testable.buggy-happy-left.png",alt:"buggy happy",...e}),BuggyRocket=e=>Object(i.jsx)(n.a,{image:"testable.buggy-rocket.png",alt:"buggy rocket",...e});t.default=e=>Object(i.jsx)(n.a,{image:"testable.buggy-right.png",alt:"buggy",...e})},40:function(e,t,s){"use strict";s.r(t);var n=s(234),i=s(81),r=(s(896),s(4));t.default=e=>{const{messages:t}=Object(n.a)(),{onClick:s,description:a,className:o,disabled:c}=e,l="button hover:bg-testable-pink-dark focus:outline-none ".concat(o||"");return Object(r.jsx)("button",{className:l,onClick:s,disabled:c,children:Object(i.get)(t,a,a)})}},412:function(e,t,s){var n={"./Binary_Property/ASCII.js":413,"./Binary_Property/ASCII_Hex_Digit.js":414,"./Binary_Property/Alphabetic.js":415,"./Binary_Property/Any.js":416,"./Binary_Property/Assigned.js":417,"./Binary_Property/Bidi_Control.js":418,"./Binary_Property/Bidi_Mirrored.js":419,"./Binary_Property/Case_Ignorable.js":420,"./Binary_Property/Cased.js":421,"./Binary_Property/Changes_When_Casefolded.js":422,"./Binary_Property/Changes_When_Casemapped.js":423,"./Binary_Property/Changes_When_Lowercased.js":424,"./Binary_Property/Changes_When_NFKC_Casefolded.js":425,"./Binary_Property/Changes_When_Titlecased.js":426,"./Binary_Property/Changes_When_Uppercased.js":427,"./Binary_Property/Dash.js":428,"./Binary_Property/Default_Ignorable_Code_Point.js":429,"./Binary_Property/Deprecated.js":430,"./Binary_Property/Diacritic.js":431,"./Binary_Property/Emoji.js":432,"./Binary_Property/Emoji_Component.js":433,"./Binary_Property/Emoji_Modifier.js":434,"./Binary_Property/Emoji_Modifier_Base.js":435,"./Binary_Property/Emoji_Presentation.js":436,"./Binary_Property/Extended_Pictographic.js":437,"./Binary_Property/Extender.js":438,"./Binary_Property/Grapheme_Base.js":439,"./Binary_Property/Grapheme_Extend.js":440,"./Binary_Property/Hex_Digit.js":441,"./Binary_Property/IDS_Binary_Operator.js":442,"./Binary_Property/IDS_Trinary_Operator.js":443,"./Binary_Property/ID_Continue.js":444,"./Binary_Property/ID_Start.js":445,"./Binary_Property/Ideographic.js":446,"./Binary_Property/Join_Control.js":447,"./Binary_Property/Logical_Order_Exception.js":448,"./Binary_Property/Lowercase.js":449,"./Binary_Property/Math.js":450,"./Binary_Property/Noncharacter_Code_Point.js":451,"./Binary_Property/Pattern_Syntax.js":452,"./Binary_Property/Pattern_White_Space.js":453,"./Binary_Property/Quotation_Mark.js":454,"./Binary_Property/Radical.js":455,"./Binary_Property/Regional_Indicator.js":456,"./Binary_Property/Sentence_Terminal.js":457,"./Binary_Property/Soft_Dotted.js":458,"./Binary_Property/Terminal_Punctuation.js":459,"./Binary_Property/Unified_Ideograph.js":460,"./Binary_Property/Uppercase.js":461,"./Binary_Property/Variation_Selector.js":462,"./Binary_Property/White_Space.js":463,"./Binary_Property/XID_Continue.js":464,"./Binary_Property/XID_Start.js":465,"./General_Category/Cased_Letter.js":466,"./General_Category/Close_Punctuation.js":467,"./General_Category/Connector_Punctuation.js":468,"./General_Category/Control.js":469,"./General_Category/Currency_Symbol.js":470,"./General_Category/Dash_Punctuation.js":471,"./General_Category/Decimal_Number.js":472,"./General_Category/Enclosing_Mark.js":473,"./General_Category/Final_Punctuation.js":474,"./General_Category/Format.js":475,"./General_Category/Initial_Punctuation.js":476,"./General_Category/Letter.js":477,"./General_Category/Letter_Number.js":478,"./General_Category/Line_Separator.js":479,"./General_Category/Lowercase_Letter.js":480,"./General_Category/Mark.js":481,"./General_Category/Math_Symbol.js":482,"./General_Category/Modifier_Letter.js":483,"./General_Category/Modifier_Symbol.js":484,"./General_Category/Nonspacing_Mark.js":485,"./General_Category/Number.js":486,"./General_Category/Open_Punctuation.js":487,"./General_Category/Other.js":488,"./General_Category/Other_Letter.js":489,"./General_Category/Other_Number.js":490,"./General_Category/Other_Punctuation.js":491,"./General_Category/Other_Symbol.js":492,"./General_Category/Paragraph_Separator.js":493,"./General_Category/Private_Use.js":494,"./General_Category/Punctuation.js":495,"./General_Category/Separator.js":496,"./General_Category/Space_Separator.js":497,"./General_Category/Spacing_Mark.js":498,"./General_Category/Surrogate.js":499,"./General_Category/Symbol.js":500,"./General_Category/Titlecase_Letter.js":501,"./General_Category/Unassigned.js":502,"./General_Category/Uppercase_Letter.js":503,"./Script/Adlam.js":504,"./Script/Ahom.js":505,"./Script/Anatolian_Hieroglyphs.js":506,"./Script/Arabic.js":507,"./Script/Armenian.js":508,"./Script/Avestan.js":509,"./Script/Balinese.js":510,"./Script/Bamum.js":511,"./Script/Bassa_Vah.js":512,"./Script/Batak.js":513,"./Script/Bengali.js":514,"./Script/Bhaiksuki.js":515,"./Script/Bopomofo.js":516,"./Script/Brahmi.js":517,"./Script/Braille.js":518,"./Script/Buginese.js":519,"./Script/Buhid.js":520,"./Script/Canadian_Aboriginal.js":521,"./Script/Carian.js":522,"./Script/Caucasian_Albanian.js":523,"./Script/Chakma.js":524,"./Script/Cham.js":525,"./Script/Cherokee.js":526,"./Script/Chorasmian.js":527,"./Script/Common.js":528,"./Script/Coptic.js":529,"./Script/Cuneiform.js":530,"./Script/Cypriot.js":531,"./Script/Cyrillic.js":532,"./Script/Deseret.js":533,"./Script/Devanagari.js":534,"./Script/Dives_Akuru.js":535,"./Script/Dogra.js":536,"./Script/Duployan.js":537,"./Script/Egyptian_Hieroglyphs.js":538,"./Script/Elbasan.js":539,"./Script/Elymaic.js":540,"./Script/Ethiopic.js":541,"./Script/Georgian.js":542,"./Script/Glagolitic.js":543,"./Script/Gothic.js":544,"./Script/Grantha.js":545,"./Script/Greek.js":546,"./Script/Gujarati.js":547,"./Script/Gunjala_Gondi.js":548,"./Script/Gurmukhi.js":549,"./Script/Han.js":550,"./Script/Hangul.js":551,"./Script/Hanifi_Rohingya.js":552,"./Script/Hanunoo.js":553,"./Script/Hatran.js":554,"./Script/Hebrew.js":555,"./Script/Hiragana.js":556,"./Script/Imperial_Aramaic.js":557,"./Script/Inherited.js":558,"./Script/Inscriptional_Pahlavi.js":559,"./Script/Inscriptional_Parthian.js":560,"./Script/Javanese.js":561,"./Script/Kaithi.js":562,"./Script/Kannada.js":563,"./Script/Katakana.js":564,"./Script/Kayah_Li.js":565,"./Script/Kharoshthi.js":566,"./Script/Khitan_Small_Script.js":567,"./Script/Khmer.js":568,"./Script/Khojki.js":569,"./Script/Khudawadi.js":570,"./Script/Lao.js":571,"./Script/Latin.js":572,"./Script/Lepcha.js":573,"./Script/Limbu.js":574,"./Script/Linear_A.js":575,"./Script/Linear_B.js":576,"./Script/Lisu.js":577,"./Script/Lycian.js":578,"./Script/Lydian.js":579,"./Script/Mahajani.js":580,"./Script/Makasar.js":581,"./Script/Malayalam.js":582,"./Script/Mandaic.js":583,"./Script/Manichaean.js":584,"./Script/Marchen.js":585,"./Script/Masaram_Gondi.js":586,"./Script/Medefaidrin.js":587,"./Script/Meetei_Mayek.js":588,"./Script/Mende_Kikakui.js":589,"./Script/Meroitic_Cursive.js":590,"./Script/Meroitic_Hieroglyphs.js":591,"./Script/Miao.js":592,"./Script/Modi.js":593,"./Script/Mongolian.js":594,"./Script/Mro.js":595,"./Script/Multani.js":596,"./Script/Myanmar.js":597,"./Script/Nabataean.js":598,"./Script/Nandinagari.js":599,"./Script/New_Tai_Lue.js":600,"./Script/Newa.js":601,"./Script/Nko.js":602,"./Script/Nushu.js":603,"./Script/Nyiakeng_Puachue_Hmong.js":604,"./Script/Ogham.js":605,"./Script/Ol_Chiki.js":606,"./Script/Old_Hungarian.js":607,"./Script/Old_Italic.js":608,"./Script/Old_North_Arabian.js":609,"./Script/Old_Permic.js":610,"./Script/Old_Persian.js":611,"./Script/Old_Sogdian.js":612,"./Script/Old_South_Arabian.js":613,"./Script/Old_Turkic.js":614,"./Script/Oriya.js":615,"./Script/Osage.js":616,"./Script/Osmanya.js":617,"./Script/Pahawh_Hmong.js":618,"./Script/Palmyrene.js":619,"./Script/Pau_Cin_Hau.js":620,"./Script/Phags_Pa.js":621,"./Script/Phoenician.js":622,"./Script/Psalter_Pahlavi.js":623,"./Script/Rejang.js":624,"./Script/Runic.js":625,"./Script/Samaritan.js":626,"./Script/Saurashtra.js":627,"./Script/Sharada.js":628,"./Script/Shavian.js":629,"./Script/Siddham.js":630,"./Script/SignWriting.js":631,"./Script/Sinhala.js":632,"./Script/Sogdian.js":633,"./Script/Sora_Sompeng.js":634,"./Script/Soyombo.js":635,"./Script/Sundanese.js":636,"./Script/Syloti_Nagri.js":637,"./Script/Syriac.js":638,"./Script/Tagalog.js":639,"./Script/Tagbanwa.js":640,"./Script/Tai_Le.js":641,"./Script/Tai_Tham.js":642,"./Script/Tai_Viet.js":643,"./Script/Takri.js":644,"./Script/Tamil.js":645,"./Script/Tangut.js":646,"./Script/Telugu.js":647,"./Script/Thaana.js":648,"./Script/Thai.js":649,"./Script/Tibetan.js":650,"./Script/Tifinagh.js":651,"./Script/Tirhuta.js":652,"./Script/Ugaritic.js":653,"./Script/Vai.js":654,"./Script/Wancho.js":655,"./Script/Warang_Citi.js":656,"./Script/Yezidi.js":657,"./Script/Yi.js":658,"./Script/Zanabazar_Square.js":659,"./Script_Extensions/Adlam.js":660,"./Script_Extensions/Ahom.js":661,"./Script_Extensions/Anatolian_Hieroglyphs.js":662,"./Script_Extensions/Arabic.js":663,"./Script_Extensions/Armenian.js":664,"./Script_Extensions/Avestan.js":665,"./Script_Extensions/Balinese.js":666,"./Script_Extensions/Bamum.js":667,"./Script_Extensions/Bassa_Vah.js":668,"./Script_Extensions/Batak.js":669,"./Script_Extensions/Bengali.js":670,"./Script_Extensions/Bhaiksuki.js":671,"./Script_Extensions/Bopomofo.js":672,"./Script_Extensions/Brahmi.js":673,"./Script_Extensions/Braille.js":674,"./Script_Extensions/Buginese.js":675,"./Script_Extensions/Buhid.js":676,"./Script_Extensions/Canadian_Aboriginal.js":677,"./Script_Extensions/Carian.js":678,"./Script_Extensions/Caucasian_Albanian.js":679,"./Script_Extensions/Chakma.js":680,"./Script_Extensions/Cham.js":681,"./Script_Extensions/Cherokee.js":682,"./Script_Extensions/Chorasmian.js":683,"./Script_Extensions/Common.js":684,"./Script_Extensions/Coptic.js":685,"./Script_Extensions/Cuneiform.js":686,"./Script_Extensions/Cypriot.js":687,"./Script_Extensions/Cyrillic.js":688,"./Script_Extensions/Deseret.js":689,"./Script_Extensions/Devanagari.js":690,"./Script_Extensions/Dives_Akuru.js":691,"./Script_Extensions/Dogra.js":692,"./Script_Extensions/Duployan.js":693,"./Script_Extensions/Egyptian_Hieroglyphs.js":694,"./Script_Extensions/Elbasan.js":695,"./Script_Extensions/Elymaic.js":696,"./Script_Extensions/Ethiopic.js":697,"./Script_Extensions/Georgian.js":698,"./Script_Extensions/Glagolitic.js":699,"./Script_Extensions/Gothic.js":700,"./Script_Extensions/Grantha.js":701,"./Script_Extensions/Greek.js":702,"./Script_Extensions/Gujarati.js":703,"./Script_Extensions/Gunjala_Gondi.js":704,"./Script_Extensions/Gurmukhi.js":705,"./Script_Extensions/Han.js":706,"./Script_Extensions/Hangul.js":707,"./Script_Extensions/Hanifi_Rohingya.js":708,"./Script_Extensions/Hanunoo.js":709,"./Script_Extensions/Hatran.js":710,"./Script_Extensions/Hebrew.js":711,"./Script_Extensions/Hiragana.js":712,"./Script_Extensions/Imperial_Aramaic.js":713,"./Script_Extensions/Inherited.js":714,"./Script_Extensions/Inscriptional_Pahlavi.js":715,"./Script_Extensions/Inscriptional_Parthian.js":716,"./Script_Extensions/Javanese.js":717,"./Script_Extensions/Kaithi.js":718,"./Script_Extensions/Kannada.js":719,"./Script_Extensions/Katakana.js":720,"./Script_Extensions/Kayah_Li.js":721,"./Script_Extensions/Kharoshthi.js":722,"./Script_Extensions/Khitan_Small_Script.js":723,"./Script_Extensions/Khmer.js":724,"./Script_Extensions/Khojki.js":725,"./Script_Extensions/Khudawadi.js":726,"./Script_Extensions/Lao.js":727,"./Script_Extensions/Latin.js":728,"./Script_Extensions/Lepcha.js":729,"./Script_Extensions/Limbu.js":730,"./Script_Extensions/Linear_A.js":731,"./Script_Extensions/Linear_B.js":732,"./Script_Extensions/Lisu.js":733,"./Script_Extensions/Lycian.js":734,"./Script_Extensions/Lydian.js":735,"./Script_Extensions/Mahajani.js":736,"./Script_Extensions/Makasar.js":737,"./Script_Extensions/Malayalam.js":738,"./Script_Extensions/Mandaic.js":739,"./Script_Extensions/Manichaean.js":740,"./Script_Extensions/Marchen.js":741,"./Script_Extensions/Masaram_Gondi.js":742,"./Script_Extensions/Medefaidrin.js":743,"./Script_Extensions/Meetei_Mayek.js":744,"./Script_Extensions/Mende_Kikakui.js":745,"./Script_Extensions/Meroitic_Cursive.js":746,"./Script_Extensions/Meroitic_Hieroglyphs.js":747,"./Script_Extensions/Miao.js":748,"./Script_Extensions/Modi.js":749,"./Script_Extensions/Mongolian.js":750,"./Script_Extensions/Mro.js":751,"./Script_Extensions/Multani.js":752,"./Script_Extensions/Myanmar.js":753,"./Script_Extensions/Nabataean.js":754,"./Script_Extensions/Nandinagari.js":755,"./Script_Extensions/New_Tai_Lue.js":756,"./Script_Extensions/Newa.js":757,"./Script_Extensions/Nko.js":758,"./Script_Extensions/Nushu.js":759,"./Script_Extensions/Nyiakeng_Puachue_Hmong.js":760,"./Script_Extensions/Ogham.js":761,"./Script_Extensions/Ol_Chiki.js":762,"./Script_Extensions/Old_Hungarian.js":763,"./Script_Extensions/Old_Italic.js":764,"./Script_Extensions/Old_North_Arabian.js":765,"./Script_Extensions/Old_Permic.js":766,"./Script_Extensions/Old_Persian.js":767,"./Script_Extensions/Old_Sogdian.js":768,"./Script_Extensions/Old_South_Arabian.js":769,"./Script_Extensions/Old_Turkic.js":770,"./Script_Extensions/Oriya.js":771,"./Script_Extensions/Osage.js":772,"./Script_Extensions/Osmanya.js":773,"./Script_Extensions/Pahawh_Hmong.js":774,"./Script_Extensions/Palmyrene.js":775,"./Script_Extensions/Pau_Cin_Hau.js":776,"./Script_Extensions/Phags_Pa.js":777,"./Script_Extensions/Phoenician.js":778,"./Script_Extensions/Psalter_Pahlavi.js":779,"./Script_Extensions/Rejang.js":780,"./Script_Extensions/Runic.js":781,"./Script_Extensions/Samaritan.js":782,"./Script_Extensions/Saurashtra.js":783,"./Script_Extensions/Sharada.js":784,"./Script_Extensions/Shavian.js":785,"./Script_Extensions/Siddham.js":786,"./Script_Extensions/SignWriting.js":787,"./Script_Extensions/Sinhala.js":788,"./Script_Extensions/Sogdian.js":789,"./Script_Extensions/Sora_Sompeng.js":790,"./Script_Extensions/Soyombo.js":791,"./Script_Extensions/Sundanese.js":792,"./Script_Extensions/Syloti_Nagri.js":793,"./Script_Extensions/Syriac.js":794,"./Script_Extensions/Tagalog.js":795,"./Script_Extensions/Tagbanwa.js":796,"./Script_Extensions/Tai_Le.js":797,"./Script_Extensions/Tai_Tham.js":798,"./Script_Extensions/Tai_Viet.js":799,"./Script_Extensions/Takri.js":800,"./Script_Extensions/Tamil.js":801,"./Script_Extensions/Tangut.js":802,"./Script_Extensions/Telugu.js":803,"./Script_Extensions/Thaana.js":804,"./Script_Extensions/Thai.js":805,"./Script_Extensions/Tibetan.js":806,"./Script_Extensions/Tifinagh.js":807,"./Script_Extensions/Tirhuta.js":808,"./Script_Extensions/Ugaritic.js":809,"./Script_Extensions/Vai.js":810,"./Script_Extensions/Wancho.js":811,"./Script_Extensions/Warang_Citi.js":812,"./Script_Extensions/Yezidi.js":813,"./Script_Extensions/Yi.js":814,"./Script_Extensions/Zanabazar_Square.js":815,"./index.js":816,"./unicode-version.js":817};function webpackContext(e){var t=webpackContextResolve(e);return s(t)}function webpackContextResolve(e){if(!s.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(n)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=412},51:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>{let{children:t,...s}=e;return Object(n.jsx)("h1",{className:"uppercase flex justify-between items-center text-blue-lightest p-5 h-16",...s,children:t})}},53:function(e,t,s){"use strict";s.d(t,"a",(function(){return S}));var n=s(57),i="/",r="/intro",a="/tutorial",o="/tutorial-end",c="/unit-testing-intro",l="/unit-testing",p="/unit-testing-end",d="/rocket-01",u="/rocket-02",m="/rocket-03",h="/rocket-03-01",j="/rocket-03-02",g="/completed-intro",b="/completed-end",x="/survey",f="/tdd-intro",y="/tdd",v=s(24);const _=JSON.parse(v.a.firebaseJson||'{\n "apiKey":"999",\n "authDomain":"https://default.firebaseio.com",\n "databaseURL":"https://default.firebaseio.com",\n "projectId":"default",\n "storageBucket":"",\n "messagingSenderId":"",\n "appId":"999999"\n}');s(887),s(889),n.a.initializeApp(_);const S={user:{uid:"",name:"",email:"",photo:"",level:1,tutorial:!1,introduction:!0,progress:10},firebaseRef:{off:null},authenticate(){return new Promise(((e,t)=>{n.a.auth().onAuthStateChanged((s=>{if(s||t(),null!==s){this.user.uid=s.uid,this.user.name=s.displayName||"",this.user.email=s.email||"",this.user.photo=s.photoURL||"",this.firebaseRef=this.userRef(s);const t=this;this.firebaseRef.once("value",(s=>{const n=s.val();n&&n.tutorial&&(t.user.tutorial=n.tutorial),n&&n.level&&(t.user.level=n.level),n&&n.progress&&(t.user.progress=n.progress),e(t.user)}))}}))}))},unsubscribe(){this.firebaseRef&&"function"==typeof this.firebaseRef.off&&this.firebaseRef.off()},canEnter:(e,t)=>e&&e.uid?t.pathname!==r&&1===e.level?{flag:!1,to:r}:t.pathname!==a&&2===e.level?{flag:!1,to:a}:t.pathname!==o&&3===e.level?{flag:!1,to:o}:t.pathname!==c&&4===e.level?{flag:!1,to:c}:t.pathname!==l&&5===e.level?{flag:!1,to:l}:t.pathname!==p&&6===e.level?{flag:!1,to:p}:t.pathname!==d&&7===e.level?{flag:!1,to:d}:t.pathname!==u&&8===e.level?{flag:!1,to:u}:t.pathname!==m&&9===e.level?{flag:!1,to:m}:t.pathname!==h&&10===e.level?{flag:!1,to:h}:t.pathname!==j&&11===e.level?{flag:!1,to:j}:t.pathname!==g&&12===e.level?{flag:!1,to:g}:t.pathname!==b&&13===e.level?{flag:!1,to:b}:t.pathname!==x&&14===e.level?{flag:!1,to:x}:t.pathname!==f&&15===e.level?{flag:!1,to:f}:t.pathname!==y&&e.level>15?{flag:!1,to:y}:{flag:!0}:{flag:!1,to:i},signout(){n.a.auth().signOut()},updateUserInfo(e){this.userRef(this.user).update(e);for(let t in e)this.user[t]=e[t]},insertUserInfo(e,t){n.a.database().ref().child("users/"+this.user.uid+"/"+t).push(e)},userRef:e=>n.a.database().ref().child("users/".concat(e.uid)),usersRef:()=>n.a.database().ref("users")}},63:function(e,t,s){"use strict";s.r(t);var n=s(229),i=s.n(n),r=s(51),a=s(80),o=(s(886),s(4));t.default=function Modal(e){return Object(o.jsxs)(i.a,{...e,closeTimeoutMS:10,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,ariaHideApp:!1,shouldFocusAfterRender:!1,className:"modal",overlayClassName:"overlay",children:[Object(o.jsxs)(r.default,{children:[e.title,Object(o.jsx)(a.default,{className:"fill-current w-4 h-4 text-white cursor-pointer",onClick:()=>e.onClose()})]}),e.children]})}},71:function(e,t,s){"use strict";s.r(t);var n=s(72),i=s(79),r=s(80),a=s(51),o=s(110),c=s(4);t.default=e=>{let{intl:t,onClose:s,user:l}=e;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsxs)(a.default,{children:[Object(c.jsxs)("div",{children:[Object(c.jsx)(i.default,{className:"fill-current w-6 h-6 text-blue mr-3",style:{fill:"none",stroke:o.colors["blue-lightest"],strokeWidth:"20px"}}),t.messages.achievements.title]}),Object(c.jsx)(r.default,{className:"fill-current w-4 h-4 text-white cursor-pointer",onClick:s})]}),0===t.messages.achievements.list.length&&Object(c.jsx)("span",{className:"p-5 text-white",children:t.messages.achievements.empty_list}),t.messages.achievements.list.length>0&&Object(c.jsx)(n.default,{achievements:t.messages.achievements.list,intl:t,user:l})]})}},72:function(e,t,s){"use strict";s.r(t),s.d(t,"AchievementList",(function(){return AchievementList}));var n=s(0),i=s(73),r=s(17),a=s(4);const AchievementList=e=>{const[t,s]=Object(n.useState)([]);Object(n.useEffect)((()=>{e.achievements.length&&s(e.achievements)}));const showAchievement=t=>{const n=Object.assign([],e.achievements),i=n[t],a=!i.active;i.active=a,n[t]=i,s(n),Object(r.a)({section:"achievements",action:"toggle_achievement_".concat(t,"|button_click"),value:a})},o=[];for(const[s,n]of t.entries())e.user.level>=n.level&&o.push(Object(a.jsx)(i.default,{title:n.title,description:n.description,items:n.items||[],active:n.active,level:e.user.level,onClick:()=>showAchievement(s)},s));return 0===o.length?Object(a.jsx)("span",{className:"p-5 text-white",children:e.intl.messages.achievements.empty_list}):Object(a.jsx)("ul",{className:"p-2 text-white",children:o})};AchievementList.defaultProps={user:{},achievements:[],intl:{messages:{achievements:{}}}},t.default=AchievementList},73:function(e,t,s){"use strict";s.r(t),s.d(t,"AchievementItem",(function(){return AchievementItem}));var n=s(957),i=s(958),r=s(959),a=s(960),o=s(24),c=s(4);function AchievementItem(e){let{title:t,active:s,description:o,items:l,onClick:p,intl:d,host:u}=e;const m=l.map(((e,t)=>Object(c.jsx)("li",{children:e},t)));return Object(c.jsx)("li",{className:"p-2",children:Object(c.jsxs)("ul",{className:"p-1",children:[Object(c.jsx)("h3",{className:"hover:underline cursor-pointer",onClick:p,children:t}),Object(c.jsxs)("li",{className:"ml-5 mt-2 ".concat(s?"":"hidden"),children:[Object(c.jsx)("span",{children:o}),Object(c.jsx)("ul",{className:"mt-2",children:m}),Object(c.jsxs)("div",{className:"flex",children:[Object(c.jsx)(n.a,{url:u||"",quote:"".concat(d.messages.achievements.social_sharing," ").concat(t," - ").concat(o),className:"m-1 ml-0",children:Object(c.jsx)(i.a,{size:32,round:!0})}),Object(c.jsx)(r.a,{url:u||"",title:"".concat(d.messages.achievements.social_sharing," ").concat(t," - ").concat(o),className:"m-1",children:Object(c.jsx)(a.a,{size:32,round:!0})})]})]})]})})}AchievementItem.defaultProps={items:[],intl:{messages:{achievements:{}}},host:o.a.host},t.default=AchievementItem},74:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return o}));var n=s(0),i=s(19),r=s(104),a=(s(845),s(4));class o extends n.Component{constructor(){super(...arguments),this.state={codeOutput:{},codeError:{}},this.codeChanged=(e,t)=>{let s=Object.assign({},this.state.codeError);s[t]="",this.setState({codeError:s});let n=Object.assign({},this.state.codeOutput);n[t]="";const i=new window.Lemming(e),r=this.props.onErrorCode[t];i.onResult((e=>{n[t]=e,this.setState({codeOutput:n}),r&&r(!1,t)})),i.onError((e=>{s[t]=e,this.setState({codeError:s}),r&&r(!0,t)})),i.onCompleted((()=>{(0,this.props.onValidCode[t])(e,t)}));let a=e;for(let e=0;e(e&&this.props.options[t]&&this.props.options[t].readOnly&&(this.props.options[t].className="forbidden",this.forceUpdate(),setTimeout((()=>{this.props.options[t].className="",this.forceUpdate()}),2e3)),e)}render(){const e=[],{className:t,editor:s,style:n}=this.props;for(let i=0;ithis.codeChanged(e,i),onFocus:e=>this.onEditorFocus(e,i),className:"source-code border-2 border-testable-blue-overlay editor-".concat(i," ").concat(s?s.className:"")},i),Object(a.jsxs)("div",{className:"m-auto md:mb-5 bg-blue-dark break-words",children:[Object(a.jsx)("p",{className:"text-white h-6",children:this.state.codeOutput[i]}),Object(a.jsx)("p",{className:"text-red font-medium h-6",children:this.state.codeError[i]})]})]},i))}return e}}o.defaultProps={editor:1,style:{},options:{[i.a]:{},[i.b]:{}},onErrorCode:{[i.a]:null,[i.b]:null}}},75:function(e,t,s){"use strict";s.r(t),s.d(t,"Profile",(function(){return h}));var n=s(0),i=s(20),r=s(115),a=s(56),o=s(151),c=s(141),l=s(63),p=s(53),d=s(17),u=s(111),m=(s(892),s(4));class h extends n.Component{constructor(){super(...arguments),this.state={menu:!1,successfulLoggedOut:!1,photo:"",modal:!1},this.onLogout=()=>{p.a.signout(),this.props.setUser({}),this.setState({successfulLoggedOut:!0,menu:!1}),Object(d.a)({section:"profile",action:"logout"})},this.showMenu=()=>{Object(d.a)({section:"profile",action:"toggle_menu|button_click"}),this.setState({menu:!this.state.menu})},this.onBlur=()=>{this.setState({menu:!1})},this.componentDidMount=()=>{const{photo:e}=this.props.user;e&&fetch(e).then((e=>e.blob())).then((e=>{const t=URL.createObjectURL(e);this.setState({photo:t})})).catch((e=>console.error(e)))},this.onOptions=()=>{this.setState({modal:!this.state.modal})}}renderUserPhoto(){return this.state.photo?Object(m.jsx)("img",{src:this.state.photo,alt:""}):Object(m.jsx)(c.default,{})}render(){if(this.state.successfulLoggedOut)return Object(m.jsx)(r.a,{to:{pathname:"/"}});const{name:e,email:t}=this.props.user,s=this.props.className,n="profile flex cursor-pointer group ".concat(s||"");return Object(m.jsxs)(m.Fragment,{children:[this.state.modal&&Object(m.jsx)(l.default,{title:Object(m.jsx)("span",{children:this.props.intl.messages.global.options}),isOpen:this.state.modal,onClose:this.onOptions,children:Object(m.jsx)(o.default,{})}),Object(m.jsx)("div",{className:"relative outline-none user-info",tabIndex:0,onBlur:this.onBlur,title:"".concat(e," - ").concat(t),children:Object(m.jsxs)("div",{className:n,onClick:this.showMenu,children:[Object(m.jsx)("div",{className:"picture-holder group-hover:border-blue-lightest",children:this.renderUserPhoto()}),Object(m.jsx)("div",{className:"info",children:Object(m.jsx)("h2",{className:"title text-white text-base uppercase font-medium truncate group-hover:text-blue-lightest",title:e,children:e})}),Object(m.jsxs)("ul",{className:"w-full bg-testable-overlay list-reset p-1 z-40 options absolute pin-t ".concat(this.state.menu?"block":"hidden"),children:[Object(m.jsx)("li",{className:"capitalize cursor-pointer text-white text-center p-2 hover:text-blue-lightest",onClick:this.onOptions,children:this.props.intl.messages.global.options}),Object(m.jsx)("li",{className:"capitalize cursor-pointer text-white text-center p-2 hover:text-blue-lightest",onClick:this.onLogout,children:this.props.intl.messages.menu.logout})]})]})})]})}}h.defaultProps={intl:{messages:{global:{},menu:{}}}},t.default=Object(a.b)(Object(i.a)(null,(e=>({setUser:()=>e(Object(u.a)({}))})))(h))},76:function(e,t,s){"use strict";s.r(t);s(863);var n=s(4);t.default=e=>Object(n.jsx)("div",{className:"loading absolute loading flex justify-center items-center",...e})},77:function(e,t,s){"use strict";s.r(t),s.d(t,"Level",(function(){return o}));var n=s(0),i=s(56),r=s(17),a=(s(899),s(4));class o extends n.Component{constructor(){super(...arguments),this.onClick=()=>{Object(r.a)({section:"level",action:"level_progress|click"})}}render(){const{level:e,progress:t,intl:s}=this.props;return Object(a.jsxs)("div",{className:"flex level py-3",onClick:this.onClick,children:[Object(a.jsxs)("h1",{className:"title mr-3 text-white text-base uppercase font-medium",children:[s.messages.level.label," ",e]}),Object(a.jsx)("div",{className:"progress-holder py-1 px-2",title:"".concat(t," %"),children:Object(a.jsx)("div",{className:"progress py-1 progress-".concat(t)})})]})}}o.defaultProps={intl:{messages:{level:{}}}},t.default=Object(i.b)(o)},78:function(e,t,s){"use strict";s.r(t),s.d(t,"AlienRocket",(function(){return AlienRocket}));var n=s(22),i=s(4);const AlienRocket=e=>Object(i.jsx)(n.a,{image:"testable.alien-rocket.png",alt:"alien rocket",...e});t.default=e=>Object(i.jsx)(n.a,{image:"testable.alien.png",alt:"alien",...e})},79:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:Object(n.jsx)("g",{children:Object(n.jsx)("path",{d:"M509.622,464.823L402.004,289.912c-2.943-4.782-8.052-7.637-13.667-7.637c-5.614,0-10.723,2.856-13.664,7.637 l-13.972,22.709c-2.174,3.533-1.072,8.16,2.461,10.334c3.535,2.173,8.16,1.072,10.335-2.461l13.972-22.71 c0.074-0.12,0.299-0.486,0.87-0.486c0.571,0,0.797,0.366,0.871,0.486l107.618,174.911c0.086,0.139,0.314,0.51,0.022,1.033 c-0.292,0.523-0.728,0.523-0.892,0.523h-59.6L269.665,203.333c-1.497-2.434-3.557-4.365-5.958-5.678 c0.003,0.001,0.006,0.003,0.008,0.004v-50.98c6.251,1.695,12.34,2.419,18.297,2.419c17.132,0,33.175-5.955,48.87-11.781 c21.748-8.073,42.29-15.698,64.508-6.788c2.865,1.149,6.103,0.803,8.66-0.927c2.561-1.732,4.089-4.611,4.089-7.701V37.044 c0-3.74-2.219-7.101-5.65-8.561c-28.203-12.027-52.927-2.851-76.836,6.023c-22.398,8.314-43.553,16.167-66.588,5.872 c-2.325-1.039-5.016-0.829-7.152,0.555c-2.136,1.385-3.425,3.757-3.425,6.303v0.279c-0.129,0.559-0.203,1.138-0.203,1.736v148.408 c-2.397,1.313-4.455,3.243-5.951,5.674l-79.139,128.623l-25.868-42.043c-2.942-4.782-8.051-7.637-13.666-7.637 c-5.614,0-10.723,2.855-13.665,7.637L2.377,464.823c-3.043,4.945-3.173,11.166-0.341,16.235c2.832,5.069,8.199,8.218,14.006,8.218 h479.915c5.807,0,11.174-3.149,14.006-8.218C512.796,475.989,512.665,469.767,509.622,464.823z M263.512,57.901 c24.317,6.67,46.158-1.437,67.37-9.311c20.985-7.79,40.867-15.168,62.234-7.642v72.985c-24.39-6.688-46.253,1.428-67.462,9.3 c-20.95,7.776-40.813,15.149-62.142,7.646V57.901z M93.282,474.252l25.771-41.885c2.174-3.533,1.072-8.16-2.461-10.334 c-3.534-2.173-8.16-1.072-10.334,2.461l-30.615,49.758h-59.6c-0.164,0-0.6,0-0.892-0.523s-0.065-0.893,0.022-1.033l107.619-174.91 c0.074-0.12,0.299-0.486,0.87-0.486c0.571,0,0.796,0.366,0.87,0.486l29.844,48.504l-29.799,48.431 c-2.174,3.533-1.072,8.16,2.461,10.334c3.535,2.174,8.161,1.072,10.334-2.461L255.13,211.205c0.074-0.12,0.299-0.486,0.87-0.486 c0.57,0,0.795,0.366,0.87,0.486l161.848,263.047H93.282z"})})})},80:function(e,t,s){"use strict";s.r(t);var n=s(4);t.default=e=>Object(n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21.9 21.9",...e,children:Object(n.jsx)("path",{d:"M14.1,11.3c-0.2-0.2-0.2-0.5,0-0.7l7.5-7.5c0.2-0.2,0.3-0.5,0.3-0.7s-0.1-0.5-0.3-0.7l-1.4-1.4C20,0.1,19.7,0,19.5,0 c-0.3,0-0.5,0.1-0.7,0.3l-7.5,7.5c-0.2,0.2-0.5,0.2-0.7,0L3.1,0.3C2.9,0.1,2.6,0,2.4,0S1.9,0.1,1.7,0.3L0.3,1.7C0.1,1.9,0,2.2,0,2.4 s0.1,0.5,0.3,0.7l7.5,7.5c0.2,0.2,0.2,0.5,0,0.7l-7.5,7.5C0.1,19,0,19.3,0,19.5s0.1,0.5,0.3,0.7l1.4,1.4c0.2,0.2,0.5,0.3,0.7,0.3 s0.5-0.1,0.7-0.3l7.5-7.5c0.2-0.2,0.5-0.2,0.7,0l7.5,7.5c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l1.4-1.4c0.2-0.2,0.3-0.5,0.3-0.7 s-0.1-0.5-0.3-0.7L14.1,11.3z"})})},82:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return AnimatedText}));var n=s(136),i=s.n(n),r=s(81),a=s(234),o=s(137),c=s(4);function AnimatedText(e){const{messages:t}=Object(a.a)();return Object(c.jsx)(o.default,{strings:(()=>{const s=[];return(e.text||[]).forEach((e=>{s.push(Object(c.jsx)("p",{className:e.style,children:Object(r.get)(t,e.line,e.line)},e.key))})),[i.a.renderToStaticMarkup(s)]})(),onComplete:e.onFinishedTyping})}},83:function(e,t,s){"use strict";s.r(t),s.d(t,"default",(function(){return c}));var n=s(0),i=s(228),r=s.n(i),a=s(76),o=s(4);class c extends n.Component{render(){return Object(o.jsx)(r.a,{active:!0,styles:{wrapper:e=>({...e,position:"inherit"}),overlay:e=>({...e,background:"rgba(0, 0, 0, 0.2)"})},children:Object(o.jsx)(a.default,{style:{zIndex:9999999}})})}}},832:function(e,t,s){e.exports={doclets:{},displayName:"AchievementContainer",description:"",methods:[],props:[{required:!0,tsType:{name:"any"},description:"",tags:{},name:"intl"},{required:!0,tsType:{name:"any"},description:"Callback invoked when the close button is clicked",tags:{},name:"onClose"},{required:!0,tsType:{name:"User"},description:"Logged in user object",tags:{},name:"user"}],examples:s(833)}},833:function(e,t,s){var n={"./AchievementContainer":s(71),react:s(0),"./AchievementContainer.tsx":s(71)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AchievementContainer$0 = require('./AchievementContainer.tsx');\nconst AchievementContainer = AchievementContainer$0.default || (AchievementContainer$0['AchievementContainer'] || AchievementContainer$0);",i);e.exports=[{type:"markdown",content:"# AchievementContainer\n\nThe AchievementContainer component renders a list of achievements based on the achievements state.\nCurrently the achievement list is based on a json file (achievements-content.json).\n\n## Basic usage"},{type:"code",content:"import AchievementContainer from './AchievementContainer';\n\n
\n alert('onClose trigged!!!')}\n />\n
",settings:{},evalInContext:r}]},834:function(e,t,s){e.exports={doclets:{},displayName:"AchievementItem",description:"",methods:[],props:[{type:{name:"bool"},required:!1,description:"",tags:{},name:"active"},{type:{name:"string"},required:!1,description:"",tags:{},name:"description"},{type:{name:"string"},required:!1,description:"",defaultValue:{value:"config.host",computed:!0},tags:{},name:"host"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n achievements: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"array"},required:!1,description:"",defaultValue:{value:"[]",computed:!1},tags:{},name:"items"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onClick"},{type:{name:"string"},required:!1,description:"",tags:{},name:"title"}],examples:s(835)}},835:function(e,t,s){var n={"./AchievementItem":s(73),react:s(0),"./AchievementItem.tsx":s(73)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AchievementItem$0 = require('./AchievementItem.tsx');\nconst AchievementItem = AchievementItem$0.default || (AchievementItem$0['AchievementItem'] || AchievementItem$0);",i);e.exports=[{type:"markdown",content:"# AchievementItem"},{type:"code",content:'import { AchievementItem } from \'./AchievementItem\';\n\n
\n \n
',settings:{},evalInContext:r}]},836:function(e,t,s){e.exports={doclets:{},displayName:"AchievementList",description:"",methods:[],props:[{required:!1,tsType:{name:"Array",elements:[{name:"Item"}],raw:"Item[]"},description:"",defaultValue:{value:"[]",computed:!1},tags:{},name:"achievements"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{\n messages: {\n achievements: {}\n }\n}",computed:!1},tags:{},name:"intl"},{required:!1,tsType:{name:"User"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:s(837)}},837:function(e,t,s){var n={"./AchievementList":s(72),react:s(0),"./AchievementList.tsx":s(72)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AchievementList$0 = require('./AchievementList.tsx');\nconst AchievementList = AchievementList$0.default || (AchievementList$0['AchievementList'] || AchievementList$0);",i);e.exports=[{type:"markdown",content:"# AchievementList"},{type:"code",content:"import { AchievementList} from './AchievementList';\n\n
\n \n
",settings:{},evalInContext:r}]},838:function(e,t,s){"use strict";s.r(t),s.d(t,"Background",(function(){return Background}));var n=s(20),i=(s(842),s(4));const Background=e=>Object(i.jsxs)(i.Fragment,{children:[!e.user.uid&&Object(i.jsx)("div",{className:"path",children:Object(i.jsx)("div",{className:"comet"})}),Object(i.jsx)("div",{className:e.options.animation?"stars":"stars-only"}),e.children]});Background.defaultProps={options:{},user:{}},t.default=Object(n.a)((e=>({options:e.optionsReducer.options,user:e.userReducer.user})))(Background)},842:function(e,t,s){},843:function(e,t,s){e.exports={doclets:{},displayName:"Background",description:"",methods:[],props:[{type:{name:"node"},required:!1,description:"",tags:{},name:"children"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"options"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:null}},844:function(e,t,s){},845:function(e,t,s){},846:function(e,t,s){e.exports={doclets:{},displayName:"EditorManager",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"",tags:{},name:"className"},{type:{name:"object"},required:!1,description:"",tags:{},name:"code"},{type:{name:"number"},required:!1,description:"",defaultValue:{value:"1",computed:!1},tags:{},name:"editor"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n [SOURCE_CODE]: null,\n [TEST_CODE]: null\n}",computed:!1},tags:{},name:"onErrorCode"},{type:{name:"object"},required:!1,description:"",tags:{},name:"onValidCode"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n [SOURCE_CODE]: {},\n [TEST_CODE]: {}\n}",computed:!1},tags:{},name:"options"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"style"}],examples:s(847)}},847:function(e,t,s){var n={"./EditorManager":s(74),react:s(0),"./EditorManager.tsx":s(74)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst EditorManager$0 = require('./EditorManager.tsx');\nconst EditorManager = EditorManager$0.default || (EditorManager$0['EditorManager'] || EditorManager$0);",i);e.exports=[{type:"markdown",content:"# EditorManager\n\nThe EditorManager component is a wrapper to orchestrate the Editor component.\n\n## Basic usage"},{type:"code",content:"import EditorManager from './EditorManager';\n",settings:{},evalInContext:r},{type:"markdown",content:"## Rendering 2 editors"},{type:"code",content:"",settings:{},evalInContext:r}]},848:function(e,t,s){e.exports={doclets:{},displayName:"Editor",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"The desired class to be toggle in the editor wrapper - this does not apply to the CodeMirror component",tags:{},name:"className"},{type:{name:"func"},required:!1,description:"Callback executed when the editor code has changed. Important to note that this event is fired when the\neditor is about to change the code. This event is fired before the code takes place inside the editor.",defaultValue:{value:"() => {}",computed:!1},tags:{},name:"codeChanged"},{type:{name:"func"},required:!1,description:"Callback executed when the editor is focused",defaultValue:{value:"() => {}",computed:!1},tags:{},name:"onFocus"},{type:{name:"object"},required:!1,description:"javascript object with codemirror options",defaultValue:{value:"{}",computed:!1},tags:{see:[{title:"see",description:"https://codemirror.net/3/doc/manual.html"}]},name:"options"},{type:{name:"string"},required:!1,description:"The text to be placed inside the editor",tags:{},name:"value"}],examples:s(849)}},849:function(e,t,s){var n={react:s(0),"./Editor.tsx":s(104)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Editor$0 = require('./Editor.tsx');\nconst Editor = Editor$0.default || (Editor$0['Editor'] || Editor$0);",i);e.exports=[{type:"markdown",content:"# Editor\n\n## Basic usage\n\nRaw Editor component"},{type:"code",content:" ",settings:{},evalInContext:r},{type:"markdown",content:"Default text inside the editor"},{type:"code",content:" ",settings:{},evalInContext:r},{type:"markdown",content:"Fire callback when the editor text has changed"},{type:"code",content:" alert(code) } />",settings:{},evalInContext:r}]},851:function(e,t,s){},852:function(e,t,s){e.exports={doclets:{},displayName:"Guide",description:"",methods:[],props:[{type:{name:"number"},required:!1,description:"",defaultValue:{value:"30000",computed:!1},tags:{},name:"afkExpirationTime"},{type:{name:"number"},required:!1,description:"",tags:{},name:"currentHint"},{type:{name:"array"},required:!1,description:"",tags:{},name:"guideContent"},{type:{name:"func"},required:!1,description:"",tags:{},name:"handleProgress"},{type:{name:"bool"},required:!1,description:"",tags:{},name:"hovered"},{type:{name:"bool"},required:!1,description:"",tags:{},name:"invalidCode"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onFinishedTyping"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onHover"},{type:{name:"bool"},required:!1,description:"",tags:{},name:"showNext"}],examples:null}},863:function(e,t,s){},886:function(e,t,s){},892:function(e,t,s){},896:function(e,t,s){},897:function(e,t,s){},898:function(e,t,s){},899:function(e,t,s){},900:function(e,t,s){},901:function(e,t,s){},902:function(e,t,s){e.exports={doclets:{},displayName:"Header",description:"",methods:[],props:[{type:{name:"func"},required:!1,description:"",tags:{},name:"onSidebar"},{type:{name:"func"},required:!1,description:"",defaultValue:{value:"() => {}",computed:!1},tags:{},name:"updateUser"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:null}},906:function(e,t,s){},907:function(e,t,s){e.exports={doclets:{},displayName:"Intro",description:"",methods:[],props:[],examples:null}},908:function(e,t,s){e.exports={doclets:{},displayName:"LanguageSelector",description:"",methods:[],props:[{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{\n messages: {\n options: {\n languages: {}\n },\n global: {},\n }\n}",computed:!1},tags:{},name:"intl"},{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'pt-br'",computed:!1},tags:{},name:"locale"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"onChange"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"options"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"setLocale"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"setUpdateOptions"}],examples:null}},909:function(e,t,s){e.exports={doclets:{},displayName:"Level",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n level: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"number"},required:!1,description:"A number representing the level: 0, 1, 20, 2400, 9999. There is no restrictions.",tags:{},name:"level"},{type:{name:"number"},required:!1,description:"A percentage representing the progress from 0 to 100. The progress is used as percentage, the minimum is 0 (zero)\nand the maximum is 100. Any number greater than 100, is going to be displayed as if it were 100.",tags:{},name:"progress"}],examples:s(910)}},910:function(e,t,s){var n={"./Level":s(77),react:s(0),"./Level.tsx":s(77)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Level$0 = require('./Level.tsx');\nconst Level = Level$0.default || (Level$0['Level'] || Level$0);",i);e.exports=[{type:"markdown",content:"# Level\n\n## Basic usage\n\nRaw Level component"},{type:"code",content:"import { Level } from './Level';\n\n",settings:{},evalInContext:r}]},911:function(e,t,s){e.exports={doclets:{},displayName:"Loading",description:"",methods:[],props:[],examples:null}},912:function(e,t,s){e.exports={doclets:{},displayName:"Modal",description:"",methods:[],props:[{type:{name:"node"},required:!1,description:"",tags:{},name:"children"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onClose"},{type:{name:"node"},required:!1,description:"",tags:{},name:"title"}],examples:null}},913:function(e,t,s){e.exports={doclets:{},displayName:"Profile",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"",tags:{},name:"className"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n global: {},\n menu: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"func"},required:!1,description:"",tags:{},name:"setUser"},{type:{name:"object"},required:!1,description:"",tags:{},name:"user"}],examples:s(914)}},914:function(e,t,s){var n={"./Profile":s(75),react:s(0),"./Profile.tsx":s(75)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Profile$0 = require('./Profile.tsx');\nconst Profile = Profile$0.default || (Profile$0['Profile'] || Profile$0);",i);e.exports=[{type:"markdown",content:"# Profile\n\n## Basic usage\n\nRaw Profile component"},{type:"code",content:"import { Profile } from './Profile';\n",settings:{},evalInContext:r}]},915:function(e,t,s){e.exports={doclets:{},displayName:"Options",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n global: {},\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"options"},{type:{name:"func"},required:!1,description:"",tags:{},name:"setUpdateOptions"}],examples:null}},916:function(e,t,s){e.exports={doclets:{},displayName:"Ranking",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n ranking: {\n table: {}\n }\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onRanking"}],examples:null}},918:function(e,t,s){e.exports={doclets:{},displayName:"Rocket",methods:[],props:[],examples:null}},919:function(e,t,s){},920:function(e,t,s){e.exports={doclets:{},displayName:"Scene",description:"",methods:[],props:[{required:!1,tsType:{name:"string"},description:"",tags:{},name:"button"},{required:!1,tsType:{name:"string"},description:"",tags:{},name:"className"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"handleLastScene"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"intl"},{required:!1,tsType:{name:"boolean"},description:"",tags:{},name:"lastScene"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"next"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"onCompleted"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"previous"},{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"2000",computed:!1},tags:{},name:"releaseButton"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"showAlien"},{required:!1,tsType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"showBuggy"},{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"900",computed:!1},tags:{},name:"showNextButton"},{required:!1,tsType:{name:"number"},description:"",tags:{},name:"step"},{required:!1,tsType:{name:"Array",elements:[{name:"TextItem"}],raw:"TextItem[]"},description:"",defaultValue:{value:"[]",computed:!1},tags:{},name:"text"}],examples:null}},921:function(e,t,s){"use strict";s.r(t);var n=s(147),i=s(14),r=s(4);t.default=(e,t,s)=>a=>{let{handleLastScene:o,history:c,className:l}=a;return Object(r.jsx)(n.default,{className:l,identifier:e,content:t,handleLastScene:()=>{o?o():(i.f.emit(i.b,{tutorial:!0}),c.push(s))}})}},922:function(e,t,s){e.exports={doclets:{},displayName:"SceneContentManager",methods:[],props:[],examples:null}},923:function(e,t,s){e.exports={doclets:{},displayName:"SceneManager",description:"",methods:[],props:[{type:{name:"object"},required:!0,description:"",tsType:{name:"any"},tags:{},name:"content"},{type:{name:"func"},required:!0,description:"",tsType:{name:"signature",type:"function",raw:"(args?: any) => any",signature:{arguments:[{name:"args",type:{name:"any"}}],return:{name:"any"}}},tags:{},name:"handleLastScene"},{type:{name:"string"},required:!0,description:"",tsType:{name:"string"},tags:{},name:"identifier"},{type:{name:"string"},required:!1,description:"",tsType:{name:"string"},defaultValue:{value:"''",computed:!1},tags:{},name:"className"}],examples:null}},924:function(e,t,s){},925:function(e,t,s){},926:function(e,t,s){},927:function(e,t,s){e.exports={doclets:{},displayName:"Sidebar",description:"",methods:[],props:[{type:{name:"node"},required:!1,description:"",tags:{},name:"children"},{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{}",computed:!1},tags:{},name:"user"}],examples:null}},928:function(e,t,s){e.exports={doclets:{},displayName:"Survey",methods:[],props:[],examples:null}},929:function(e,t,s){e.exports={doclets:{},displayName:"Survey",description:"",methods:[],props:[{required:!1,tsType:{name:"string"},description:"",tags:{},name:"className"},{required:!1,tsType:{name:"boolean"},description:"",tags:{},name:"skip"},{required:!1,tsType:{name:"string"},description:"",tags:{},name:"surveyUrl"},{required:!1,tsType:{name:"User"},description:"",tags:{},name:"user"}],examples:null}},930:function(e,t,s){"use strict";s.r(t),s.d(t,"DEFAULT_DELAY",(function(){return a}));var n=s(0),i=s(149),r=(s(931),s(4));const a=2e3,Error=e=>Object(r.jsxs)("svg",{viewBox:"0 0 130.2 130.2",...e,children:[Object(r.jsx)("circle",{className:"path circle",fill:"none",stroke:"red",strokeWidth:"6",strokeMiterlimit:"10",cx:"65.1",cy:"65.1",r:"62.1"}),Object(r.jsx)("line",{className:"path line",fill:"none",stroke:"red",strokeWidth:"6",strokeLinecap:"round",strokeMiterlimit:"10",x1:"34.4",y1:"37.9",x2:"95.8",y2:"92.3"}),Object(r.jsx)("line",{className:"path line",fill:"none",stroke:"red",strokeWidth:"6",strokeLinecap:"round",strokeMiterlimit:"10",x1:"95.8",y1:"38",x2:"34.4",y2:"92.2"})]});t.default=(e,t)=>{const s=t.filter((e=>!1===e.pass));class a extends n.Component{constructor(){super(...arguments),this.state={tests:[],showTests:!1,releaseRocket:!1,releaseTests:!1,completed:!1,rocketDefaultClass:""},this.componentDidMount=()=>{this.startFlow()},this.startFlow=()=>{const{animationDelay:e}=this.props;setTimeout((()=>{this.setState({rocketDefaultClass:"wobble-hor-bottom"})}),e/2),this.setState({showTests:!0});let s=0;const n=setInterval((()=>{const e=this.state.tests;e.push(t[s]),this.setState({tests:e}),s++,e.length===t.length&&(clearInterval(n),this.startAnimation())}),e)},this.startAnimation=()=>{const{animationDelay:e,onFinished:t}=this.props;setTimeout((()=>{this.setState({releaseRocket:!0})}),e),setTimeout((()=>{this.setState({releaseTests:!0})}),4*e),setTimeout((()=>{this.setState({completed:!0}),t&&t()}),5*e)}}render(){let t="up-down";return 0===s.length&&(t="bounce-out-top"),Object(r.jsxs)("div",{className:this.state.completed?"hidden":"w-5/6 m-auto flex items-center justify-center",children:[Object(r.jsx)("div",{className:"\n animation-container \n ".concat(this.state.showTests?"block":"hidden","\n ").concat(this.state.releaseTests?"slide-out-elliptic-top-fwd":"","\n "),children:this.state.tests.map(((e,t)=>Object(r.jsxs)("div",{className:"flex items-center justify-between slide-in-elliptic-left-fwd mb-10 mr-16",children:[Object(r.jsx)("h1",{className:"text-white text-2xl font-medium",children:e.test}),e.pass&&Object(r.jsx)(i.default,{width:"50px",height:"50px"}),!e.pass&&Object(r.jsx)(Error,{width:"50px",height:"50px"})]},t)))}),Object(r.jsx)(e,{className:"".concat(this.state.releaseRocket?t:this.state.rocketDefaultClass)})]})}}return a}},931:function(e,t,s){},932:function(e,t,s){e.exports={doclets:{},displayName:"TestExecutionAnimation",methods:[],props:[],examples:null}},933:function(e,t,s){e.exports={doclets:{},displayName:"AnimatedText",description:"",methods:[],props:[{required:!0,tsType:{name:"Array",elements:[{name:"TextItem"}],raw:"TextItem[]"},description:"",tags:{},name:"text"},{required:!1,tsType:{name:"string"},description:"",tags:{},name:"className"},{required:!1,tsType:{name:"any"},description:"",tags:{},name:"onFinishedTyping"}],examples:null}},934:function(e,t,s){e.exports={doclets:{},displayName:"TypedText",description:"",methods:[],props:[{type:{name:"func"},required:!0,description:"",tsType:{name:"any"},tags:{},name:"onComplete"},{type:{name:"array"},required:!1,description:"",tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},defaultValue:{value:"[]",computed:!1},tags:{},name:"strings"}],examples:null}},935:function(e,t,s){e.exports={doclets:{},displayName:"Title",description:"",methods:[],props:[{required:!0,tsType:{name:"ReactNode"},description:"",tags:{},name:"children"}],examples:s(936)}},936:function(e,t,s){var n={"./Title":s(51),react:s(0),"./Title.tsx":s(51)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Title$0 = require('./Title.tsx');\nconst Title = Title$0.default || (Title$0['Title'] || Title$0);",i);e.exports=[{type:"markdown",content:"# Title\n\n## Basic usage"},{type:"code",content:"import Title from './Title';\n\n\n <div>my title</div>\n",settings:{},evalInContext:r}]},937:function(e,t,s){e.exports={doclets:{},displayName:"UserMenu",description:"",methods:[],props:[{type:{name:"object"},required:!1,description:"",defaultValue:{value:"{\n messages: {\n ranking: {},\n survey: {}\n }\n}",computed:!1},tags:{},name:"intl"},{type:{name:"func"},required:!1,description:"",tags:{},name:"onNotification"},{type:{name:"bool"},required:!1,description:"",defaultValue:{value:"config.showSurvey",computed:!0},tags:{},name:"showUpSurvey"},{type:{name:"object"},required:!1,description:"",tags:{},name:"user"}],examples:null}},938:function(e,t,s){e.exports={doclets:{},displayName:"Achievement",description:"",methods:[],props:[],examples:null}},939:function(e,t,s){e.exports={doclets:{},displayName:"Check",description:"",methods:[],props:[],examples:null}},940:function(e,t,s){e.exports={doclets:{},displayName:"Close",description:"",methods:[],props:[],examples:null}},941:function(e,t,s){e.exports={doclets:{},displayName:"Cup",description:"",methods:[],props:[],examples:null}},942:function(e,t,s){e.exports={doclets:{},displayName:"Load",description:"",methods:[],props:[],examples:s(943)}},943:function(e,t,s){var n={"./Load":s(76),react:s(0),"./Load.tsx":s(76)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Load$0 = require('./Load.tsx');\nconst Load = Load$0.default || (Load$0['Load'] || Load$0);",i);e.exports=[{type:"markdown",content:"# Load\n\n## Basic usage"},{type:"code",content:"import Load from './Load';\n",settings:{},evalInContext:r}]},944:function(e,t,s){e.exports={doclets:{},displayName:"Next",description:"",methods:[],props:[],examples:null}},945:function(e,t,s){e.exports={doclets:{},displayName:"AlienRocket",description:"",methods:[],props:[],examples:s(946)}},946:function(e,t,s){var n={"./AlienSvg":s(78),react:s(0),"./AlienSvg.tsx":s(78)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst AlienRocket$0 = require('./AlienSvg.tsx');\nconst AlienRocket = AlienRocket$0.default || (AlienRocket$0['AlienRocket'] || AlienRocket$0);",i);e.exports=[{type:"markdown",content:"# AlienSvg\n\n## Basic usage\n\nRaw AlienSvg component"},{type:"code",content:"import AlienSvg from './AlienSvg';\n\n",settings:{},evalInContext:r}]},947:function(e,t,s){e.exports={doclets:{},displayName:"BuggyLeft",description:"",methods:[],props:[],examples:null}},948:function(e,t,s){e.exports={doclets:{},displayName:"Logo",description:"",methods:[],props:[],examples:null}},949:function(e,t,s){e.exports={doclets:{},displayName:"PlaceholderImage",description:"",methods:[],props:[],examples:null}},950:function(e,t,s){e.exports={doclets:{},displayName:"Debug",description:"",methods:[],props:[{required:!0,tsType:{name:"MouseEventHandler",elements:[{name:"HTMLInputElement"}],raw:"MouseEventHandler"},description:"",tags:{},name:"onClick"},{required:!0,tsType:{name:"string"},description:"",tags:{},name:"value"}],examples:s(951)}},951:function(e,t,s){var n={"./Debug":s(21),react:s(0),"./Debug.tsx":s(21)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Debug$0 = require('./Debug.tsx');\nconst Debug = Debug$0.default || (Debug$0['Debug'] || Debug$0);",i);e.exports=[{type:"markdown",content:"# Debug\n\n## Basic usage"},{type:"code",content:"import Debug from './Debug';\n",settings:{},evalInContext:r}]},952:function(e,t,s){e.exports={doclets:{},displayName:"Primary",description:"",methods:[],props:[{type:{name:"string"},required:!1,description:"Custom class to append in the ed of the button element class list.",tags:{},name:"className"},{type:{name:"string"},required:!1,description:"The text that goes inside the button.",tags:{},name:"description"},{type:{name:"bool"},required:!1,description:"Indicates whether the button should be disabled (true) or not (false)",tags:{},name:"disabled"},{type:{name:"func"},required:!1,description:"Calback to be executed when the button is clicked.",tags:{},name:"onClick"}],examples:s(953)}},953:function(e,t,s){var n={"./Primary":s(40),react:s(0),"./Primary.tsx":s(40)},i=s(26).default.bind(null,n),r=s(27).default.bind(null,"const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Primary$0 = require('./Primary.tsx');\nconst Primary = Primary$0.default || (Primary$0['Primary'] || Primary$0);",i);e.exports=[{type:"markdown",content:"# Primary\n\n## Basic usage"},{type:"code",content:"import Primary from './Primary';\n",settings:{},evalInContext:r}]},955:function(e,t,s){"use strict";s.r(t);var n=s(0),i=s(115),r=s(14),a=s(17),o=s(53);const c=s(917);var Reason=function(e,t){try{const s=c.parseScript(e);if(s.body.length>0)return t(s)}catch(e){return console.warn(e),!1}},l=s(74),p=s(150),d=s(145),u=s(21),m=s(19),h=s(156),j=s(4);t.default=function(e,t,s,c,g,b,x,f,y,v,_,S,O,E,C){let k=arguments.length>15&&void 0!==arguments[15]?arguments[15]:[];class w extends n.Component{constructor(){super(...arguments),this.state={code:{[m.a]:e,[m.b]:t},editorOptions:C||{[m.a]:{readOnly:!0},[m.b]:{}},done:!1,showNext:!1,currentHint:0,initialStep:0,introEnabled:!1,intro:O||{steps:[],initialStep:0},editorError:!1},this.onValidCode=(e,t)=>{if(this.state.currentHint!==f||t===S)return;let n=Object.assign({},this.state.code);n[t]=e,this.setState({code:n});const i="".concat(this.state.code[m.a]," ").concat(this.state.code[m.b]),r=Reason(this.state.code[m.a],_),o=r&&Object(h.a)(this.state.code[m.a],r,c),l=Reason(this.state.code[m.b],v);l&&Object(h.a)(i,l,s)&&o&&(Object(a.a)({section:y,action:"".concat(y,":valid_code")}),this.setState({currentHint:this.state.currentHint+1,showNext:!1}))},this.onErrorCode=e=>{this.setState({editorError:e})},this.onGuideFinishedTyping=()=>{if(this.state.currentHint===x){const e=Object.assign({},this.state);return k.forEach((t=>{e.editorOptions[t].className="attention"})),this.setState(e),void setTimeout((()=>{const e=Object.assign({},this.state);k.forEach((t=>{e.editorOptions[t].className=""})),this.setState(e)}),3e3)}this.setState({showNext:!0})},this.handleProgress=()=>{if(this.state.currentHint===E)return this.toogleToolTip(),void Object(a.a)({section:y,action:"next_guide_hint:started_tooltip_".concat(y)});const e=this.state.currentHint+1;if(e{this.setState({currentHint:this.state.currentHint-1})},this.toogleToolTip=()=>{this.setState({introEnabled:!0})},this.onFinishTooltip=()=>{this.state.currentHint===E&&this.setState({introEnabled:!1,currentHint:1+this.state.currentHint,showNext:!1})}}componentDidMount(){Object(a.a)({section:y,action:"".concat(y,"_start")})}render(){return this.state.done?Object(j.jsx)(i.a,{to:b}):Object(j.jsxs)("div",{className:"flex flex-col",children:[Object(j.jsx)(d.default,{enabled:this.state.introEnabled,steps:this.state.intro.steps,initialStep:this.state.intro.initialStep,onExit:this.onFinishTooltip}),Object(j.jsxs)("div",{className:"flex justify-center editor-container",children:[Object(j.jsx)(u.default,{onClick:this.previousStep,value:"previous"}),Object(j.jsx)(l.default,{editor:2,className:"min-w-testable-editor max-w-testable-editor m-1 md:m-5",code:this.state.code,onValidCode:{[m.a]:this.onValidCode,[m.b]:this.onValidCode},onErrorCode:{[m.a]:this.onErrorCode,[m.b]:this.onErrorCode},options:this.state.editorOptions}),Object(j.jsx)(u.default,{onClick:this.handleProgress,value:"next"})]}),Object(j.jsx)(p.default,{guideContent:g,showNext:this.state.showNext,handleProgress:this.handleProgress,currentHint:this.state.currentHint,onFinishedTyping:this.onGuideFinishedTyping,invalidCode:this.state.editorError})]})}}return w}},956:function(e,t,s){"use strict";s.r(t),s.d(t,"Sidebar",(function(){return m}));var n=s(0),i=s(20),r=s(139),a=s(56),o=s(71);const c=Object(i.a)((e=>({user:e.userReducer.user})));var l=Object(a.b)(c(o.default)),p=s(148),d=s(17),u=(s(924),s(925),s(926),s(4));class m extends n.Component{constructor(){super(...arguments),this.state={open:!1,hover:!1,hideSidebarClass:"hidden"},this.onSidebar=()=>{const e=!this.state.open;this.setState({open:e,hideSidebarClass:"fade-out-left"}),Object(d.a)({section:"sidebar",action:"toggle_sidebar|button_click",value:e})}}render(){return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)("div",{className:"sidebar bg-blue-dark h-screen z-50 overflow-y-auto absolute fade-in-left ".concat(this.state.open?"block":this.state.hideSidebarClass),style:{width:"300px"},children:Object(u.jsx)(l,{onClose:this.onSidebar})}),Object(u.jsxs)("div",{className:"header",children:[this.state.open&&Object(u.jsx)("div",{className:"z-30 h-screen w-full absolute bg-testable-overlay-sidebar",onClick:this.onSidebar}),this.props.user.uid&&Object(u.jsx)(r.default,{onSidebar:this.onSidebar})]}),this.props.children,!this.props.user.uid&&Object(u.jsx)(p.default,{className:"h-6 hidden md:block absolute pin-b pin-r mr-5 mb-5"})]})}}m.defaultProps={user:{}};t.default=Object(i.a)((e=>({user:e.userReducer.user})))(m)}},[[243,1,2]]]); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 9221b24a..4c908a5e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,7 +11,7 @@
- - + + \ No newline at end of file diff --git a/index.html b/index.html index c10b1de9..fdddf326 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Testable
\ No newline at end of file +Testable
\ No newline at end of file diff --git a/static/js/2.46b5ae08.chunk.js b/static/js/2.46b5ae08.chunk.js new file mode 100644 index 00000000..044d4870 --- /dev/null +++ b/static/js/2.46b5ae08.chunk.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.46b5ae08.chunk.js.LICENSE.txt */ +(this["webpackJsonptestable-webapp"]=this["webpackJsonptestable-webapp"]||[]).push([[2],[function(e,t,n){"use strict";n.d(t,"a",(function(){return fe})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return D})),n.d(t,"d",(function(){return _e})),n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return Ce})),n.d(t,"g",(function(){return L})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return K})),n.d(t,"j",(function(){return Ne})),n.d(t,"k",(function(){return je})),n.d(t,"l",(function(){return Pe})),n.d(t,"m",(function(){return me})),n.d(t,"n",(function(){return X})),n.d(t,"o",(function(){return r})),n.d(t,"p",(function(){return ge})),n.d(t,"q",(function(){return S})),n.d(t,"r",(function(){return x})),n.d(t,"s",(function(){return De})),n.d(t,"t",(function(){return qe})),n.d(t,"u",(function(){return v})),n.d(t,"v",(function(){return Xe})),n.d(t,"w",(function(){return _}));class r{lineAt(e){if(e<0||e>this.length)throw new RangeError("Invalid position ".concat(e," in document of length ").concat(this.length));return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError("Invalid line number ".concat(e," in ").concat(this.lines,"-line document"));return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=f(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),o.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;[e,t]=f(this,e,t);let n=[];return this.decompose(e,t,n,0),o.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let o=t,s=t;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(){return new l(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}iterRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new u(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):o.from(i.split(e,[])):r.empty}}class i extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e);super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((t?n:s)>=e)return new h(r,s,n,o);r=s+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new i(a(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=s(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new i(t,e.length+o.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);[e,t]=f(this,e,t);let r=s(this.text,s(n.text,a(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):o.from(i.split(r,[]),l)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[e,t]=f(this,e,t);let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=s.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class o extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,r);r=s+1,n=a+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!i?n.push(s):s.decompose(e-o,t-o,n,i)}o=a+1}}replace(e,t,n){if([e,t]=f(this,e,t),n.lines=i&&t<=a){let l=s.replace(e-i,t-i,n),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let i=this.children.slice();return i[r]=l,new o(i,this.length-(t-e)+n.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,n)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n";[e,t]=f(this,e,t);let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=s.sliceString(e-o,t-o,n)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let n=0,[r,i,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==s||i==a)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.reduce(((e,t)=>e+t.length+1),-1),n=0;for(let i of e)n+=i.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),s=r<<1,a=r>>1,l=[],u=0,c=-1,h=[];function f(e){let t;if(e.lines>s&&e instanceof o)for(let n of e.children)f(n);else e.lines>a&&(u>a||!u)?(d(),l.push(e)):e instanceof i&&u&&(t=h[h.length-1])instanceof i&&e.lines+t.lines<=32?(u+=e.lines,c+=e.length+1,h[h.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(u+e.lines>r&&d(),u+=e.lines,c+=e.length+1,h.push(e))}function d(){0!=u&&(l.push(1==h.length?h[0]:o.from(h,c)),c=-1,u=h.length=0)}for(let i of e)f(i);return d(),1==l.length?l[0]:new o(l,t)}}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9;for(let i=0,o=0,s=!0;o=n&&(l>r&&(a=a.slice(0,r-i)),i1&&void 0!==arguments[1]?arguments[1]:1;this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1,a=r instanceof i?r.text.length:r.children.length;if(s==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let o=r.children[s+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1))}}}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class u{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class h{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function f(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}let d="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let Ve=1;Vee)return d[t-1]<=e;return!1}function m(e){return e>=127462&&e<=127487}const g=8205;function v(e,t){return(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?y:O)(e,t,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function y(e,t,n){if(t==e.length)return t;t&&b(e.charCodeAt(t))&&w(e.charCodeAt(t-1))&&t--;let r=S(e,t);for(t+=x(r);t=0&&m(S(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function O(e,t,n){for(;t>0;){let r=y(e,t-2,n);if(r=56320&&e<57344}function w(e){return e>=55296&&e<56320}function S(e,t){let n=e.charCodeAt(t);if(!w(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return b(r)?r-56320+(n-55296<<10)+65536:n}function _(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function x(e){return e<65536?1:2}const k=/\r\n?|\n/;var E=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(E||(E={}));class C{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t1&&void 0!==arguments[1]&&arguments[1])}get invertedDesc(){let e=[];for(let t=0;t1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:I(this,e,t)}mapPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E.Simple,r=0,i=0;for(let o=0;oe)return i+(e-r);i+=s}else{if(n!=E.Simple&&l>=e&&(n==E.TrackDel&&re||n==E.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw new RangeError("Position ".concat(e," is out of range for changeset of length ").concat(r));return i}touchesRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new C(e)}static create(e){return new C(e)}}class D extends C{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return T(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,o=0;i=0){t[i]=a,t[i+1]=s;let l=i>>1;for(;n.length1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:I(this,e,t,!0)}iterChanges(e){T(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}get desc(){return C.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new j(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s0&&A(n,t,i.text),i.forward(e),s+=e}let l=e[o++];for(;s>1].toJSON()))}return e}static of(e,t,n){let i=[],o=[],s=0,a=null;function l(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&!i.length)return;sa||e<0||a>t)throw new RangeError("Invalid change range ".concat(e," to ").concat(a," (in doc of length ").concat(t,")"));let h=c?"string"==typeof c?r.of(c.split(n||k)):c:r.empty,f=h.length;if(e==a&&0==f)return;es&&P(i,e-s,-1),P(i,a-e,f),A(o,i,h),s=a}}(e),l(!a),a}static empty(e){return new D(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length3&&void 0!==arguments[3]&&arguments[3];if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function A(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],u=e.sections[a++];t(o,c,s,h,f),o=c,s=h}}}function I(e,t,n){let r=[],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,o=new j(e),s=new j(t);for(let a=-1;;)if(-1==o.ins&&-1==s.ins){let e=Math.min(o.len,s.len);P(r,e,-1),o.forward(e),s.forward(e)}else if(s.ins>=0&&(o.ins<0||a==o.i||0==o.off&&(s.len=0&&a=0)){if(o.done&&s.done)return i?D.createSet(r,i):C.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=o.len;for(;t;)if(-1==s.ins){let n=Math.min(t,s.len);e+=n,t-=n,s.forward(n)}else{if(!(0==s.ins&&s.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,i=new j(e),o=new j(t);for(let s=!1;;){if(i.done&&o.done)return r?D.createSet(n,r):C.create(n);if(0==i.ins)P(n,i.len,0,s),i.next();else if(0!=o.len||o.done){if(i.done||o.done)throw new Error("Mismatched change set lengths");{let e=Math.min(i.len2,o.len),t=n.length;if(-1==i.ins){let t=-1==o.ins?-1:o.off?0:o.ins;P(n,e,t,s),r&&t&&A(r,n,o.text)}else-1==o.ins?(P(n,i.off?0:i.len,e,s),r&&A(r,n,i.textBit(e))):(P(n,i.off?0:i.len,o.off?0:o.ins,s),r&&!o.off&&A(r,n,o.text));s=(i.ins>e||o.ins>=0&&o.len>e)&&(s||n.length>t),i.forward2(e),o.forward(e)}}else P(n,0,o.ins,s),r&&A(r,n,o.text),o.next()}}class j{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class R{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?t=n=e.mapPos(this.from,r):(t=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),t==this.from&&n==this.to?this:new R(t,n,this.flags)}extend(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e<=this.anchor&&t>=this.anchor)return M.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return M.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return M.range(e.anchor,e.head)}static create(e,t,n){return new R(e,t,n)}}class M{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:M.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t1&&void 0!==arguments[1])||arguments[1];return M.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,n=this.ranges.slice();return n[t]=e,M.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new M(e.ranges.map((e=>R.fromJSON(e))),e.main)}static single(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new M([M.range(e,t)],0)}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return R.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!==r&&void 0!==r?r:16777215)<<6)}static range(e,t,n,r){let i=(null!==n&&void 0!==n?n:16777215)<<6|(null==r?7:Math.min(6,r));return te?8:0)|i)}static normalized(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let r=1;rn.head?M.range(s,o):M.range(o,s))}}return new M(e,t)}}function F(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let Q=0;class L{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=Q++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new L(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:$),!!e.static,e.enables)}of(e){return new B([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new B(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new B(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function $(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class B{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=Q++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=2==this.type,a=!1,l=!1,u=[];for(let c of this.dependencies)"doc"==c?a=!0:"selection"==c?l=!0:0==(1&(null!==(t=e[c.id])&&void 0!==t?t:1))&&u.push(e[c.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||W(e,u)){let t=n(e);if(s?!Z(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=ie(t,l);if(this.dependencies.every((n=>n instanceof L?t.facet(n)===e.facet(n):!(n instanceof X)||t.field(n,!1)==e.field(n,!1)))||(s?Z(a=n(e),i,r):r(a=n(e),i)))return e.values[o]=i,0}else a=n(e);return e.values[o]=a,1}}}}function Z(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(q).find((e=>e.field==this));return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,q.of({field:this,create:e})]}get extension(){return this}}const z=4,V=3,Y=2,H=1;function G(e){return t=>new J(t,e)}const K={highest:G(0),high:G(H),default:G(Y),low:G(V),lowest:G(z)};class J{constructor(e,t){this.inner=e,this.prec=t}}class ee{of(e){return new te(this,e)}reconfigure(e){return ee.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class te{constructor(e,t){this.compartment=e,this.inner=t}}class ne{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let h of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,s){let a=i.get(e);if(null!=a){if(a<=s)return;let t=r[a].indexOf(e);t>-1&&r[a].splice(t,1),e instanceof te&&n.delete(e.compartment)}if(i.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof te){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,s)}else if(e instanceof J)o(e.inner,e.prec);else if(e instanceof X)r[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof B)r[s].push(e),e.facet.extensions&&o(e.facet.extensions,Y);else{let t=e.extension;if(!t)throw new Error("Unrecognized extension value in extension set (".concat(e,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));o(t,s)}}return o(e,Y),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))h instanceof X?r.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let s=Object.create(null),a=[],l=[];for(let h of r)s[h.id]=l.length<<1,l.push((e=>h.slot(e)));let u=null===n||void 0===n?void 0:n.config.facets;for(let h in i){let e=i[h],t=e[0].facet,r=u&&u[h]||[];if(e.every((e=>0==e.type)))if(s[t.id]=a.length<<1|1,$(r,e))a.push(n.facet(t));else{let r=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{for(let t of e)0==t.type?(s[t.id]=a.length<<1|1,a.push(t.value)):(s[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));s[t.id]=l.length<<1,l.push((n=>U(n,t,e)))}}let c=l.map((e=>e(s)));return new ne(e,o,c,s,a,i)}}function re(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function ie(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const oe=L.define(),se=L.define({combine:e=>e.some((e=>e)),static:!0}),ae=L.define({combine:e=>e.length?e[0]:void 0,static:!0}),le=L.define(),ue=L.define(),ce=L.define(),he=L.define({combine:e=>!!e.length&&e[0]});class fe{constructor(e,t){this.type=e,this.value=t}static define(){return new de}}class de{of(e){return new fe(this,e)}}class pe{constructor(e){this.map=e}of(e){return new me(this,e)}}class me{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new me(this.type,t)}is(e){return this.type==e}static define(){return new pe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}me.reconfigure=me.define(),me.appendConfig=me.define();class ge{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&F(n,t.newLength),i.some((e=>e.type==ge.time))||(this.annotations=i.concat(ge.time.of(Date.now())))}static create(e,t,n,r,i,o){return new ge(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ge.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function ve(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r=e[r]))o=e[r++],s=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=ye(r,Oe(t,o,e.changes.newLength),!0))}return r==e?e:ge.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(le)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:ve(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=D.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=ge.create(t,r,e.selection&&e.selection.map(i),me.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(ue);for(let i=r.length-1;i>=0;i--){let n=r[i](e);e=n instanceof ge?n:Array.isArray(n)&&1==n.length&&n[0]instanceof ge?n[0]:be(t,Se(n),!1)}return e}(i):i)}ge.time=fe.define(),ge.userEvent=fe.define(),ge.addToHistory=fe.define(),ge.remote=fe.define();const we=[];function Se(e){return null==e?we:Array.isArray(e)?e:[e]}var _e=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(_e||(_e={}));const xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ke;try{ke=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(ze){}function Ee(e){return t=>{if(!/\S/.test(t))return _e.Space;if(function(e){if(ke)return ke.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||xe.test(n)))return!0}return!1}(t))return _e.Word;for(let n=0;n-1)return _e.Word;return _e.Other}}class Ce{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s1&&void 0!==arguments[1])||arguments[1],n=this.config.address[e.id];if(null!=n)return re(this,n),ie(this,n);if(t)throw new RangeError("Field is not present in this state")}update(){for(var e=arguments.length,t=new Array(e),n=0;ni.set(t,e))),n=null),i.set(s.value.compartment,s.value.extension)):s.is(me.reconfigure)?(n=null,r=s.value):s.is(me.appendConfig)&&(n=null,r=Se(r).concat(s.value));if(n)t=e.startState.values.slice();else{n=ne.resolve(r,i,this),t=new Ce(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}let o=e.startState.facet(se)?e.newSelection:e.newSelection.asSingle();new Ce(n,e.newDoc,o,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:M.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=Se(n.effects);for(let s=1;s0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof D?e:D.of(e,this.doc.length,this.facet(Ce.lineSeparator))}toText(e){return r.of(e.split(this.facet(Ce.lineSeparator)||k))}sliceDoc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(re(this,t),ie(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof X&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let i in n)if(Object.prototype.hasOwnProperty.call(e,i)){let t=n[i],o=e[i];r.push(t.init((e=>t.spec.fromJSON(o,e))))}return Ce.create({doc:e.doc,selection:M.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ne.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(Ce.lineSeparator)||k)),i=e.selection?e.selection instanceof M?e.selection:M.single(e.selection.anchor,e.selection.head):M.single(0);return F(i,n.length),t.staticFacet(se)||(i=i.asSingle()),new Ce(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Ce.tabSize)}get lineBreak(){return this.facet(Ce.lineSeparator)||"\n"}get readOnly(){return this.facet(he)}phrase(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{if("$"==t)return"$";let r=+(t||1);return!r||r>n.length?e:n[r-1]}))),e}languageDataAt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i of this.facet(oe))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return Ee(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=v(t,o,!1);if(i(t.slice(e,o))!=_e.Word)break;o=e}for(;s2&&void 0!==arguments[2]?arguments[2]:{},r={};for(let i of e)for(let e of Object.keys(i)){let t=i[e],o=r[e];if(void 0===o)r[e]=t;else if(o===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,t)}}for(let i in t)void 0===r[i]&&(r[i]=t[i]);return r}Ce.allowMultipleSelections=se,Ce.tabSize=L.define({combine:e=>e.length?e[0]:4}),Ce.lineSeparator=ae,Ce.readOnly=he,Ce.phrases=L.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),Ce.languageData=oe,Ce.changeFilter=le,Ce.transactionFilter=ue,Ce.transactionExtender=ce,ee.reconfigure=me.define();class Pe{eq(e){return this==e}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Ae.create(e,t,this)}}Pe.prototype.startSide=Pe.prototype.endSide=0,Pe.prototype.point=!1,Pe.prototype.mapMode=E.TrackDel;class Ae{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Ae(e,t,n)}}function Te(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ie{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);iu||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(o<0&&(o=l),c.point&&(s=Math.max(s,u-l)),n.push(c),r.push(l-o),i.push(u-o))}return{mapped:n.length?new Ie(r,i,n,s):null,pos:o}}}class Ne{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Ne(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Te)),this.isEmpty)return t.length?Ne.of(t):this;let s=new Me(this,null,-1).goto(0),a=0,l=[],u=new je;for(;s.value||a=0){let e=t[a++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||is.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Fe.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Fe.from(e).goto(t)}static compare(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=Re(o,s,n),l=new Le(o,a,i),u=new Le(s,a,i);n.iterGaps(((e,t,n)=>$e(l,e,u,t,n,r))),n.empty&&0==n.length&&$e(l,0,u,0,0,r)}static eq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let s=Re(i,o),a=new Le(i,s,0).goto(n),l=new Le(o,s,0).goto(n);for(;;){if(a.to!=l.to||!Be(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r){let i=new Le(e,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(t),o=t,s=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),a=i.pointFromo&&(r.span(o,e,i.active,s),s=i.openEnd(e));if(i.to>n)return s+(i.point&&i.to>n?1:0);o=i.to,i.next()}}static of(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new je;for(let r of e instanceof Ae?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Te);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Ne.empty=new Ne([],[],null,-1),Ne.empty.nextLayer=Ne.empty;class je{finishChunk(e){this.chunks.push(new Ie(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new je)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ne.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ne.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Re(e,t,n){let r=new Map;for(let o of e)for(let e=0;e3&&void 0!==arguments[3]?arguments[3]:0;this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i=0;i=n&&r.push(new Me(o,t,n,i));return 1==r.length?r[0]:new Fe(r)}get startSide(){return this.value?this.value.startSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)Qe(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)Qe(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Qe(this.heap,0)}}}function Qe(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class Le{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Fe.from(e,t,n)}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ze(this.active,e),Ze(this.activeTo,e),Ze(this.activeRank,e),this.minActive=Ue(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Ze(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function $e(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Be(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(a,i,e.point,n.point):i>a&&!Be(e.active,n.active)&&o.compareRange(a,i,e.active,n.active),r>s)break;a=r,t<=0&&e.next(),t>=0&&n.next()}}function Be(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function Ue(e,t){let n=-1,r=1e9;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:e.length,r=0;for(let i=0;i=t)return i;if(i==e.length)break;o+=9==e.charCodeAt(i)?n-o%n:1,i=v(e,i)}return!0===r?-1:e.length}},function(e,t,n){"use strict";e.exports=n(131)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return A})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return M})),n.d(t,"k",(function(){return f})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return $})),n.d(t,"n",(function(){return q})),n.d(t,"o",(function(){return P})),n.d(t,"p",(function(){return O})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return v})),n.d(t,"s",(function(){return y})),n.d(t,"t",(function(){return w})),n.d(t,"u",(function(){return b})),n.d(t,"v",(function(){return D})),n.d(t,"w",(function(){return k})),n.d(t,"x",(function(){return N})),n.d(t,"y",(function(){return j})),n.d(t,"z",(function(){return T})),n.d(t,"A",(function(){return U})),n.d(t,"B",(function(){return W})),n.d(t,"C",(function(){return E})),n.d(t,"D",(function(){return L})),n.d(t,"E",(function(){return B})),n.d(t,"F",(function(){return Z}));var r=n(5),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw s(t)},s=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},a=function(e){for(var t=[],n=0,r=0;r>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>2,h=(3&o)<<4|a>>4,f=(15&a)<<2|u>>6,d=63&u;l||(d=64,s||(f=64)),r.push(n[c],n[h],n[f],n[d])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(a(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=e[n++]))<<12|(63&(a=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{o=e[n++];var a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4;if(r.push(u),64!==a){var c=s<<4&240|a>>2;if(r.push(c),64!==l){var h=a<<6&192|l;r.push(h)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},u=function(e){var t=a(e);return l.encodeByteArray(t,!0)},c=function(e){return u(e).replace(/\./g,"")},h=function(e){try{return l.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function f(e){return d(void 0,e)}function d(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=d(e[n],t[n]));return e}var p=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function m(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",i=e.iat||0,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var s=Object(r.__assign)({iss:"https://securetoken.google.com/"+n,aud:n,iat:i,exp:i+3600,auth_time:i,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[c(JSON.stringify({alg:"none",type:"JWT"})),c(JSON.stringify(s)),""].join(".")}function g(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function v(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g())}function y(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(t){return!1}}function O(){return"object"===typeof self&&self.self===self}function b(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function w(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN}var S=function(e){function t(n,r,i){var o=e.call(this,r)||this;return o.code=n,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(o,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,_.prototype.create),o}return Object(r.__extends)(t,e),t}(Error),_=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n"}))}(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").";return new S(i,a,r)},e}();var x=/\{\$([^}]+)}/g;function k(e){return JSON.parse(e)}function E(e){return JSON.stringify(e)}var C=function(e){var t={},n={},r={},i="";try{var o=e.split(".");t=k(h(o[0])||""),n=k(h(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(s){}return{header:t,claims:n,data:r,signature:i}},D=function(e){var t=C(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")},P=function(e){var t=C(e).claims;return"object"===typeof t&&!0===t.admin};function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function I(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function N(e,t,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function j(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEach((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,i=Object.entries(e);r>>31)}var o,s,a=this.chain_[0],l=this.chain_[1],u=this.chain_[2],c=this.chain_[3],h=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=c^l&(u^c),s=1518500249):(o=l^u^c,s=1859775393):r<60?(o=l&u|c&(l|u),s=2400959708):(o=l^u^c,s=3395469782);i=(a<<5|a>>>27)+o+h+s+n[r]&4294967295;h=c,c=u,u=4294967295&(l<<30|l>>>2),l=a,a=i}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+h&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e}();function M(e,t){var n=new F(e,t);return n.subscribe.bind(n)}var F=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;for(var n=0,r=t;nn&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")};function $(e,t){return e+" failed: "+t+" argument "}function B(e,t,n,r){if((!r||n)&&"function"!==typeof n)throw new Error($(e,t)+"must be a valid function.")}function Z(e,t,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error($(e,t)+"must be a valid context object.")}var W=function(e){for(var t=[],n=0,r=0;r=55296&&i<=56319){var s=i-55296;r++,o(r>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},U=function(e){for(var t=0,n=0;n=55296&&r<=56319?(t+=4,n++):t+=3}return t};function q(e){return e&&e._delegate?e._delegate:e}}).call(this,n(25))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return P}));var r=n(8);let i=0;class o{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=i++}static define(e){if(null===e||void 0===e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new o([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new a;return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let s=0;class a{constructor(){this.instances=[],this.id=s++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new o(r,e,t);for(let o of t)o.instances.push(i);let s=function(e){let t=[[]];for(let n=0;nt.length-e.length))}(t);for(let o of e.set)if(!o.modified.length)for(let e of s)r.push(a.get(o,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new c(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return u.add(t)}const u=new r.c;class c{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function f(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,o=new d(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}c.empty=new c([],2,null);class d{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=t)return;s.isTop&&(o=this.highlighters.filter((e=>!e.scope||e.scope(s))));let h=i,f=function(e){let t=e.type.prop(u);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||c.empty,d=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(o,f.tags);if(d&&(h&&(h+=" "),h+=d,1==f.mode&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(t,a),h),f.opaque)return;let p=e.tree&&e.tree.prop(r.c.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+a,1),s=this.highlighters.filter((e=>!e.scope||e.scope(p.tree.type))),u=e.firstChild();for(let c=0,f=a;;c++){let d=c=m)&&e.nextSibling()););if(!d||m>n)break;f=d.to+a,f>t&&(this.highlightRange(r.cursor(),Math.max(t,d.from+a),Math.min(n,f),"",s),this.startSpan(Math.min(n,f),h))}u&&e.parent()}else if(e.firstChild()){p&&(i="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,o),this.startSpan(Math.min(n,e.to),h)}}while(e.nextSibling());e.parent()}}}const p=o.define,m=p(),g=p(),v=p(g),y=p(g),O=p(),b=p(O),w=p(O),S=p(),_=p(S),x=p(),k=p(),E=p(),C=p(E),D=p(),P={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:v,tagName:p(v),propertyName:y,attributeName:p(y),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:O,string:b,docString:p(b),character:p(b),attributeValue:p(b),number:w,integer:p(w),float:p(w),bool:p(O),regexp:p(O),escape:p(O),color:p(O),url:p(O),keyword:x,self:p(x),null:p(x),atom:p(x),unit:p(x),modifier:p(x),operatorKeyword:p(x),controlKeyword:p(x),definitionKeyword:p(x),moduleKeyword:p(x),operator:k,derefOperator:p(k),arithmeticOperator:p(k),logicOperator:p(k),bitwiseOperator:p(k),compareOperator:p(k),updateOperator:p(k),definitionOperator:p(k),typeOperator:p(k),controlOperator:p(k),punctuation:E,separator:p(E),bracket:C,angleBracket:p(C),squareBracket:p(C),paren:p(C),brace:p(C),content:S,heading:_,heading1:p(_),heading2:p(_),heading3:p(_),heading4:p(_),heading5:p(_),heading6:p(_),contentSeparator:p(S),list:p(S),quote:p(S),emphasis:p(S),strong:p(S),link:p(S),monospace:p(S),strikethrough:p(S),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:D,documentMeta:p(D),annotation:p(D),processingInstruction:p(D),definition:o.defineModifier(),constant:o.defineModifier(),function:o.defineModifier(),standard:o.defineModifier(),local:o.defineModifier(),special:o.defineModifier()};h([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}])},function(e,t,n){"use strict";e.exports=n(110)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return s})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return l})),n.d(t,"__esDecorate",(function(){return u})),n.d(t,"__runInitializers",(function(){return c})),n.d(t,"__propKey",(function(){return h})),n.d(t,"__setFunctionName",(function(){return f})),n.d(t,"__metadata",(function(){return d})),n.d(t,"__awaiter",(function(){return p})),n.d(t,"__generator",(function(){return m})),n.d(t,"__createBinding",(function(){return g})),n.d(t,"__exportStar",(function(){return v})),n.d(t,"__values",(function(){return y})),n.d(t,"__read",(function(){return O})),n.d(t,"__spread",(function(){return b})),n.d(t,"__spreadArrays",(function(){return w})),n.d(t,"__spreadArray",(function(){return S})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return x})),n.d(t,"__asyncDelegator",(function(){return k})),n.d(t,"__asyncValues",(function(){return E})),n.d(t,"__makeTemplateObject",(function(){return C})),n.d(t,"__importStar",(function(){return P})),n.d(t,"__importDefault",(function(){return A})),n.d(t,"__classPrivateFieldGet",(function(){return T})),n.d(t,"__classPrivateFieldSet",(function(){return I})),n.d(t,"__classPrivateFieldIn",(function(){return N})),n.d(t,"__addDisposableResource",(function(){return j})),n.d(t,"__disposeResources",(function(){return M}));var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,o){function s(e){if(void 0!==e&&"function"!==typeof e)throw new TypeError("Function expected");return e}for(var a,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=n.length-1;d>=0;d--){var p={};for(var m in r)p[m]="access"===m?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var g=(0,n[d])("accessor"===l?{get:h.get,set:h.set}:h[u],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!==typeof g)throw new TypeError("Object expected");(a=s(g.get))&&(h.get=a),(a=s(g.set))&&(h.set=a),(a=s(g.init))&&i.unshift(a)}else(a=s(g))&&("field"===l?i.unshift(a):h[u]=a)}c&&Object.defineProperty(c,r.name,h),f=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof _?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:!1}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var D=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return D(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function I(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}function j(e,t,n){if(null!==t&&void 0!==t){if("object"!==typeof t&&"function"!==typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!==typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var R="function"===typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function M(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(o){t(o)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:o,__rest:s,__decorate:a,__param:l,__metadata:d,__awaiter:p,__generator:m,__createBinding:g,__exportStar:v,__values:y,__read:O,__spread:b,__spreadArrays:w,__spreadArray:S,__await:_,__asyncGenerator:x,__asyncDelegator:k,__asyncValues:E,__makeTemplateObject:C,__importStar:P,__importDefault:A,__classPrivateFieldGet:T,__classPrivateFieldSet:I,__classPrivateFieldIn:N,__addDisposableResource:j,__disposeResources:M}},function(e,t,n){"use strict";n.d(t,"a",(function(){return he})),n.d(t,"b",(function(){return Ve})),n.d(t,"c",(function(){return Hn})),n.d(t,"d",(function(){return Si})),n.d(t,"e",(function(){return Re})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Kr})),n.d(t,"h",(function(){return Or})),n.d(t,"i",(function(){return Pr})),n.d(t,"j",(function(){return vi})),n.d(t,"k",(function(){return pi})),n.d(t,"l",(function(){return Ei})),n.d(t,"m",(function(){return Br})),n.d(t,"n",(function(){return Ui})),n.d(t,"o",(function(){return Fr})),n.d(t,"p",(function(){return di})),n.d(t,"q",(function(){return ir})),n.d(t,"r",(function(){return $i})),n.d(t,"s",(function(){return Te})),n.d(t,"t",(function(){return qr})),n.d(t,"u",(function(){return Yr})),n.d(t,"v",(function(){return ar})),n.d(t,"w",(function(){return wi})),n.d(t,"x",(function(){return ai}));for(var r=n(0),i=n(28),o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)o[48+u]=o[96+u]=String(u);for(u=1;u<=24;u++)o[u+111]="F"+u;for(u=65;u<=90;u++)o[u]=String.fromCharCode(u+32),s[u]=String.fromCharCode(u);for(var c in o)s.hasOwnProperty(c)||(s[c]=o[c]);function h(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function f(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function d(e,t){if(!t.anchorNode)return!1;try{return f(e,t.anchorNode)}catch(n){return!1}}function p(e){return 3==e.nodeType?E(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function m(e,t,n,r){return!!n&&(v(e,t,n,r,-1)||v(e,t,n,r,1))}function g(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function v(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:y(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=g(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?y(e):0}}}function y(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function O(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function b(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function w(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}class S{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?y(t):0),n,Math.min(e.focusOffset,n?y(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let _,x=null;function k(e){if(e.setActive)return e.setActive();if(x)return e.focus(x);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:t,r=_||(_=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function C(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function D(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function P(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class A{constructor(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.node=e,this.offset=t,this.precise=n}static before(e,t){return new A(e.parentNode,g(e),t)}static after(e,t){return new A(e.parentNode,g(e)+1,t)}}const T=[];class I{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,i=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=I.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.flags&=-8}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=N(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=N(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==y(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!I.get(n);)n=n.nextSibling;if(!n)return this.length;for(let r=0,i=0;;r++){let e=this.children[r];if(e.dom==n)return i;i+=e.length+e.breakAfter}}domBoundsAround(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,s=-1;for(let a=0,l=n,u=n;at)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=a,i=l),l>t&&n.dom.parentNode==this.dom){o=a,s=u;break}u=c,l=c+n.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;this.markDirty();for(let r=e;r0&&void 0!==arguments[0]?arguments[0]:this.length;return new j(this.children,e,this.children.length)}childPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,i,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function N(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}I.prototype.breakAfter=0;class j{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function R(e,t,n,r,i,o,s,a,l){let{children:u}=e,c=u.length?u[t]:null,h=o.length?o[o.length-1]:null,f=h?h.breakAfter:s;if(!(t==r&&c&&!s&&!f&&o.length<2&&c.merge(n,i,o.length?h:null,0==n,a,l))){if(r0&&(!s&&o.length&&c.merge(n,c.length,o[0],!1,a,0)?c.breakAfter=o.shift().breakAfter:(n2);var V={mac:z||/Mac/.test(F.platform),windows:/Win/.test(F.platform),linux:/Linux|X11/.test(F.platform),ie:Z,ie_version:$?Q.documentMode||6:B?+B[1]:L?+L[1]:0,gecko:W,gecko_version:W?+(/Firefox\/(\d+)/.exec(F.userAgent)||[0,0])[1]:0,chrome:!!U,chrome_version:U?+U[1]:0,ios:z,android:/Android\b/.test(F.userAgent),webkit:q,safari:X,webkit_version:q?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Q.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Y extends I{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof Y)||this.length-(t-e)+n.length>256||8&n.flags))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Y(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new A(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,s=0;0==t&&n<0||t==r&&n>=0?V.chrome||V.gecko||(t?(i--,s=1):o=0)?0:a.length-1];V.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l);return s?O(l,s<0):l||null}(this.dom,e,t)}}class H extends I{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(),this.mark=e,this.children=t,this.length=n;for(let r of t)r.setParent(this)}setAttrs(e){if(D(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return(!n||!(!(n instanceof H&&n.mark.eq(this.mark))||e&&i<=0||te&&t.push(n=e&&(r=i),n=o,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new H(this.mark,t,o)}domAtPos(e){return J(this,e)}coordsAt(e,t){return te(this,e,t)}}class G extends I{static create(e,t,n){return new G(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=G.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof G&&this.widget.compare(n.widget))||e>0&&i<=0||t0)?A.before(this.dom):A.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let s=o?r.length-1:0;i=r[s],!(e>0?0==s:s==r.length-1||i.top0?A.before(this.dom):A.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.o.empty}get isHidden(){return!0}}function J(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;io&&t0;o--){let e=r[o-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let o=i;o0&&t instanceof H&&i.length&&(r=i[i.length-1])instanceof H&&r.mark.eq(t.mark)?ee(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function te(e,t,n){let r=null,i=-1,o=null,s=-1;!function e(t,a){for(let l=0,u=0;l=a&&(c.children.length?e(c,a-u):(!o||o.isHidden&&n>0)&&(h>a||u==h&&c.getSide()>0)?(o=c,s=a-u):(u-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function oe(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function se(e){let t=Object.create(null);for(let n=0;n0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ie(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){ee(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=ne(t,this.attrs||{})),n&&(this.attrs=ne({class:n},this.attrs||{}))}domAtPos(e){return J(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(D(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(oe(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&I.get(r)instanceof H;)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&0==(null===(n=I.get(r))||void 0===n?void 0:n.isEditable)&&(!V.ios||!this.children.some((e=>e instanceof Y)))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof Y)||/[^ -~]/.test(n.text))return null;let r=p(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=te(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(i instanceof ae)return i;if(o>t)break}r=o+i.breakAfter}return null}}class le extends I{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof le&&this.widget.compare(n.widget))||e>0&&i<=0||t0)}}class ue{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}destroy(e){}}var ce=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ce||(ce={}));class he extends r.l{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new fe(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new pe(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=me(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new pe(e,t,n,r,e.widget||null,!0)}static line(e){return new de(e)}static set(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.j.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}he.none=r.j.empty;class fe extends he{constructor(e){let{start:t,end:n}=me(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof fe&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&ie(this.attrs,e.attrs,"class")}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}fe.prototype.point=!1;class de extends he{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof de&&this.spec.class==e.spec.class&&ie(this.spec.attributes,e.spec.attributes)}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}de.prototype.mapMode=r.h.TrackBefore,de.prototype.point=!0;class pe extends he{constructor(e,t,n,i,o,s){super(t,n,o,e),this.block=i,this.isReplace=s,this.mapMode=i?t<=0?r.h.TrackBefore:r.h.TrackAfter:r.h.TrackDel}get type(){return this.startSide!=this.endSide?ce.WidgetRange:this.startSide<=0?ce.WidgetBefore:ce.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof pe&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function me(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!==n&&void 0!==n?n:t,end:null!==r&&void 0!==r?r:t}}function ge(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}pe.prototype.point=!0;class ve{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof le&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ae),this.atCursorPos=!0),this.curLine}flushBuffer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(ye(new K(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof le||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(ye(new Y(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof pe){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof pe)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new le(n.widget||new Oe("div"),s,n));else{let o=G.create(n.widget||new Oe("span"),s,s?0:n.startSide),a=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e0),l=!o.isEditable&&(er.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||a||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),a&&(u.append(ye(new K(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(ye(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let s=new ve(e,t,n,o);return s.openEnd=r.j.spans(i,t,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function ye(e,t){for(let n of t)e=new H(n,[e],e.length);return e}class Oe extends ue{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const be=r.g.define(),we=r.g.define(),Se=r.g.define(),_e=r.g.define(),xe=r.g.define(),ke=r.g.define(),Ee=r.g.define(),Ce=r.g.define({combine:e=>e.some((e=>e))}),De=r.g.define({combine:e=>e.some((e=>e))});class Pe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new Pe(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Pe(r.e.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Ae=r.m.define({map:(e,t)=>e.map(t)});function Te(e,t,n){let r=e.facet(_e);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Ie=r.g.define({combine:e=>!e.length||e[0]});let Ne=0;const je=r.g.define();class Re{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new Re(Ne++,e,n,r,(e=>{let t=[je.of(e)];return o&&t.push(Le.of((t=>{let n=t.plugin(e);return n?o(n):he.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return Re.define((t=>new e(t)),t)}}class Me{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Te(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(n){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Te(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(n){Te(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Fe=r.g.define(),Qe=r.g.define(),Le=r.g.define(),$e=r.g.define(),Be=r.g.define();function Ze(e,t,n){let i=e.state.facet(Be);if(!i.length)return i;let o=i.map((t=>t instanceof Function?t(e):t)),s=[];return r.j.spans(o,t,n,{point(){},span(e,t,n,r){let i=s;for(let o=n.length-1;o>=0;o--,r--){let s,a=n[o].spec.bidiIsolate;if(null!=a)if(r>0&&i.length&&(s=i[i.length-1]).to==e&&s.direction==a)s.to=t,i=s.inner;else{let n={from:e,to:t,direction:a,inner:[]};i.push(n),i=n.inner}}}}),s}const We=r.g.define();function Ue(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(We)){let s=o(e);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(n=Math.max(n,s.right)),null!=s.top&&(r=Math.max(r,s.top)),null!=s.bottom&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const qe=r.g.define();class Xe{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new Xe(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAu)break;i+=2}if(!a)return n;new Xe(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class ze{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.c.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new Xe(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new ze(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Ve=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Ve||(Ve={}));const Ye=Ve.LTR,He=Ve.RTL;function Ge(e){let t=[];for(let n=0;n=t){if(s.level==n)return o;(i<0||(0!=r?r<0?s.fromt:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function it(e,t){if(e.length!=t.length)return!1;for(let n=0;nl&&s.push(new rt(l,p.from,f)),at(e,p.direction==Ye!=!(f%2)?r+1:r,i,p.inner,p.from,p.to,s),l=p.to}d=p.to}else{if(d==n||(t?ot[d]!=a:ot[d]==a))break;d++}h?st(e,l,d,r+1,i,h,s):lt;){let n=!0,c=!1;if(!u||l>o[u-1].to){let e=ot[l-1];e!=a&&(n=!1,c=16==e)}let h=n||1!=a?null:[],f=n?r:r+1,d=l;e:for(;;)if(u&&d==o[u-1].to){if(c)break e;let p=o[--u];if(!n)for(let e=p.from,n=u;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(ot[e-1]==a)break e;break}e=o[--n].from}if(h)h.push(p);else{p.to=0;e-=3)if(tt[e+1]==-n){let t=tt[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(ot[s]=ot[tt[e]]=n),a=e;break}}else{if(189==tt.length)break;tt[a++]=s,tt[a++]=t,tt[a++]=l}else if(2==(r=ot[s])||1==r){let e=r==i;l=e?0:1;for(let t=a-3;t>=0;t-=3){let n=tt[t+2];if(2&n)break;if(e)tt[t+2]|=2;else{if(4&n)break;tt[t+2]|=4}}}}}(e,i,o,r,a),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let s=i?n[i-1].to:e,a=il;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),ot[--t]=c;l=s}else o=s,l++}}}(i,o,r,a),st(e,i,o,t,n,r,s)}function lt(e,t,n){if(!e)return[new rt(0,0,t==He?1:0)];if(t==Ye&&!n.length&&!nt.test(e))return ut(e.length);if(n.length)for(;e.length>ot.length;)ot[ot.length]=256;let r=[],i=t==Ye?0:1;return at(e,i,i,n,0,e.length,r),r}function ut(e){return[new rt(0,e,0)]}let ct="";function ht(e,t,n,i,o){var s;let a=i.head-e.from,l=-1;if(0==a){if(!o||!e.length)return null;t[0].level!=n&&(a=t[0].side(!1,n),l=0)}else if(a==e.length){if(o)return null;let e=t[t.length-1];e.level!=n&&(a=e.side(!0,n),l=t.length-1)}l<0&&(l=rt.find(t,a,null!==(s=i.bidiLevel)&&void 0!==s?s:-1,i.assoc));let u=t[l];a==u.side(o,n)&&(u=t[l+=o?1:-1],a=u.side(!o,n));let c=o==(u.dir==n),h=Object(r.u)(e.text,a,c);if(ct=e.text.slice(Math.min(a,h),Math.max(a,h)),h>u.from&&h0&&n.length&&(n.every((e=>{let{fromA:t,toA:n}=e;return nthis.minWidthTo}))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let n=!1;t&&e.iterChangedRanges(((e,r)=>{et.from&&(n=!0)}));return n}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let o=i>-1?function(e,t,n){let r=pt(e,n);if(!r)return null;let{node:i,from:o,to:s}=r,a=i.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(r.from,r.to)!=a)return null;let l=t.invertedDesc,u=new Xe(l.mapPos(o),l.mapPos(s),o,s),c=[];for(let h=i.parentNode;;h=h.parentNode){let t=I.get(h);if(t instanceof H)c.push({node:h,deco:t.mark});else{if(t instanceof ae||"DIV"==h.nodeName&&h.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:h};if(h==e.contentDOM)return null;c.push({node:h,deco:new fe({inclusive:!0,attributes:se(h),tagName:h.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new Xe(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(V.ie||V.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=function(e,t,n){let i=new gt;return r.j.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return n=Xe.extendWithRanges(n,s),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=V.chrome||V.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to=0?r[o]:null;if(!e)break;let t,s,a,l,{fromA:u,toA:c,fromB:h,toB:f}=e;if(n&&n.range.fromBh){let e=ve.build(this.view.state.doc,h,n.range.fromB,this.decorations,this.dynamicDecorationMap),r=ve.build(this.view.state.doc,n.range.toB,f,this.decorations,this.dynamicDecorationMap);s=e.breakAtStart,a=e.openStart,l=r.openEnd;let i=this.compositionView(n);r.breakAtStart?i.breakAfter=1:r.content.length&&i.merge(i.length,i.length,r.content[0],!1,r.openStart,0)&&(i.breakAfter=r.content[0].breakAfter,r.content.shift()),e.content.length&&i.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(i).concat(r.content)}else({content:t,breakAtStart:s,openStart:a,openEnd:l}=ve.build(this.view.state.doc,h,f,this.decorations,this.dynamicDecorationMap));let{i:d,off:p}=i.findPos(c,1),{i:m,off:g}=i.findPos(u,-1);R(this,m,g,d,p,t,s,a,l)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Y(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new H(r,[t],t.length);let n=new ae;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=I.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let t=this.view.root.activeElement,n=t==this.dom,r=!n&&d(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t));if(!(n||e||r))return;let i=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(o.anchor)),a=o.empty?s:this.moveToLine(this.domAtPos(o.head));if(V.gecko&&o.empty&&!this.hasComposition&&(1==(l=s).node.nodeType&&l.node.firstChild&&(0==l.offset||"false"==l.node.childNodes[l.offset-1].contentEditable)&&(l.offset==l.node.childNodes.length||"false"==l.node.childNodes[l.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=a=new A(e,0),i=!0}var l;let u=this.view.observer.selectionRange;!i&&u.focusNode&&m(s.node,s.offset,u.anchorNode,u.anchorOffset)&&m(a.node,a.offset,u.focusNode,u.focusOffset)||(this.view.observer.ignore((()=>{V.android&&V.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=h(this.view.root);if(e)if(o.empty){if(V.gecko){let e=(n=s.node,i=s.offset,1!=n.nodeType?0:(i&&"false"==n.childNodes[i-1].contentEditable?1:0)|(io.head&&([s,a]=[a,s]),t.setEnd(a.node,a.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;var n,i;r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),t&&t.focus())})),this.view.observer.setSelectionRange(s,a)),this.impreciseAnchor=s.precise?null:new A(u.anchorNode,u.anchorOffset),this.impreciseHead=a.precise?null:new A(u.focusNode,u.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=h(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=ae.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r=0;r--){let e=I.get(n.childNodes[r]);e instanceof ae&&(t=e.domAtPos(e.length))}return t?new A(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=I.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;o--){let s=this.children[o],a=i-s.breakAfter,l=a-s.length;if(ae||s.covers(1))&&(!n||s instanceof ae&&!(n instanceof ae&&t>=0))&&(n=s,r=l),i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof ae))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(n,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}n=t}if(!(i instanceof Y))return null;let o=Object(r.u)(i.text,n);if(o==n)return null;let s=E(i.dom,n,o).getClientRects();for(let r=0;rMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==Ve.LTR;for(let l=0,u=0;ur)break;if(l>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),o){let t=e.dom.lastChild,r=t?p(t):[];if(r.length){let e=r[r.length-1],t=a?e.right-n.left:n.right-e.left;t>s&&(s=t,this.minWidth=i,this.minWidthFrom=l,this.minWidthTo=c)}}}l=c+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Ve.RTL:Ve.LTR}measureTextSize(){for(let i of this.children)if(i instanceof ae){let e=i.measureTextSize();if(e)return e}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=p(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,t=this.children.length;return t&&(e-=this.children[--t].length),new j(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(he.replace({widget:new dt(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return he.set(e)}updateDeco(){let e=this.view.state.facet(Le).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=Ue(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,r,i,o,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,h=!1;c&&!h;)if(1==c.nodeType){let e,f=c==l.body,d=1,p=1;if(f)e=b(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(h=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:d,scaleY:p}=w(c,t)),e={left:t.left,right:t.left+c.clientWidth*d,top:t.top,bottom:t.top+c.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+g+s)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+s,n<0&&t.top-g0&&t.right>e.right+m&&(m=t.right-e.right+m+o)):t.right>e.right&&(m=t.right-e.right+o,n<0&&t.left0))break;r=r.childNodes[i-1],i=y(r)}if(n>=0)for(let r=e,i=t;;){if(3==r.nodeType)return{node:r,offset:i};if(!(1==r.nodeType&&i=0))break;r=r.childNodes[i],i=0}return null}let gt=class{constructor(){this.changes=[]}compareRange(e,t){ge(e,t,this.changes)}comparePoint(e,t){ge(e,t,this.changes)}};function vt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function yt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Ot(e,t){return e.topt.top+1}function bt(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function St(e,t,n){let r,i,o,s,a,l,u,c,h=!1;for(let d=e.firstChild;d;d=d.nextSibling){let e=p(d);for(let f=0;fg||s==g&&o>m){r=d,i=p,o=m,s=g;let a=g?n0?f0)}0==m?n>p.bottom&&(!u||u.bottomp.top)&&(l=d,c=p):u&&Ot(u,p)?u=wt(u,p.bottom):c&&Ot(c,p)&&(c=bt(c,p.top))}}if(u&&u.bottom>=n?(r=a,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?_t(r,f,n):h&&"false"!=r.contentEditable?St(r,f,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function _t(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,s=0;for(let a=0;an?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c=(u.left+u.right)/2,r=n;if(V.chrome||V.gecko){E(e,a).getBoundingClientRect().left==u.right&&(r=!n)}if(c<=0)return{node:e,offset:a+(r?1:0)};i=a+(r?1:0),o=c}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function xt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;var i,o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:h}=t,f=h-l;if(f<0)return 0;if(f>u)return e.state.doc.length;for(let b=e.viewState.heightOracle.textHeight/2,w=!1;s=e.elementAtHeight(f),s.type!=ce.Text;)for(;f=r>0?s.bottom+b:s.top-b,!(f>=0&&f<=u);){if(w)return n?null:0;w=!0,r=-r}h=l+f;let d=s.from;if(de.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:kt(e,a,s,c,h);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(c,h);g&&!e.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,h),g&&!e.contentDOM.contains(g)&&(g=null));let v,y=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(c,h);e&&({offsetNode:v,offset:y}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(c,h);t&&(({startContainer:v,startOffset:y}=t),(!e.contentDOM.contains(v)||V.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return E(e,r-1,r).getBoundingClientRect().left>n}(v,y,c)||V.chrome&&function(e,t,n){if(0!=t)return!1;for(let i=e;;){let e=i.parentNode;if(!e||1!=e.nodeType||e.firstChild!=i)return!1;if(e.classList.contains("cm-line"))break;i=e}let r=1==e.nodeType?e.getBoundingClientRect():E(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}(v,y,c))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=ae.find(e.docView,d);if(!t)return f>s.top+s.height/2?s.to:s.from;({node:v,offset:y}=St(t.dom,c,h))}let O=e.docView.nearest(v);if(!O)return null;if(O.isWidget&&1==(null===(o=O.dom)||void 0===o?void 0:o.nodeType)){let e=O.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;s+=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+Object(r.v)(a,s,e.state.tabSize)}function Et(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==ce.Text))return r;return n}function Ct(e,t,n,i){let o=e.state.doc.lineAt(t.head),s=e.bidiSpans(o),a=e.textDirectionAt(o.from);for(let l=t,u=null;;){let t=ht(o,s,a,l,n),c=ct;if(!t){if(o.number==(n?e.state.doc.lines:1))return l;c="\n",o=e.state.doc.line(o.number+(n?1:-1)),s=e.bidiSpans(o),t=r.e.cursor(n?o.from:o.to)}if(u){if(!u(c))return l}else{if(!i)return t;u=i(c)}l=t}}function Dt(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,o)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return i==n.from?n:r.e.cursor(i,inull)),V.gecko&&(t=e.contentDOM.ownerDocument,rn.has(t)||(rn.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{}))))}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=I.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=It(e),n=this.handlers,r=this.view.contentDOM;for(let i in t)if("scroll"!=i){let e=!t[i].handlers.length,o=n[i];o&&e!=!o.handlers.length&&(r.removeEventListener(i,this.handleEvent),o=null),o||r.addEventListener(i,this.handleEvent,{passive:e})}for(let i in n)"scroll"==i||t[i]||r.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()t.keyCode==e.keyCode)))&&!e.ctrlKey||jt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,C(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(V.safari&&!V.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Tt(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Te(n.state,i)}}}function It(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let r of e){let e=r.spec;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){let i=e.domEventHandlers[t];i&&n(t).handlers.push(Tt(r.value,i))}if(e&&e.domEventObservers)for(let t in e.domEventObservers){let i=e.domEventObservers[t];i&&n(t).observers.push(Tt(r.value,i))}}for(let r in Qt)n(r).handlers.push(Qt[r]);for(let r in Lt)n(r).observers.push(Lt[r]);return t}const Nt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],jt="dthko",Rt=[16,17,18,20,91,92,224,225];function Mt(e){return.7*Math.max(0,e)+8}class Ft{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet($e).map((t=>t(e)));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.f.allowMultipleSelections)&&function(e,t){let n=e.state.facet(be);return n.length?n[0](t):V.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=h(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Gt(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,r;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,r=e,Math.max(Math.abs(n.clientX-r.clientX),Math.abs(n.clientY-r.clientY))<10))return;this.select(this.lastEvent=e);let i=0,o=0,s=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=Ue(this.view);e.clientX-a.left<=s.left+6?i=-Mt(s.left-e.clientX):e.clientX+a.right>=s.right-6&&(i=Mt(e.clientX-s.right)),e.clientY-a.top<=s.top+6?o=-Mt(s.top-e.clientY):e.clientY+a.bottom>=s.bottom-6&&(o=Mt(e.clientY-s.bottom)),this.setScrollSpeed(i,o)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent)),20)}}const Qt=Object.create(null),Lt=Object.create(null),$t=V.ie&&V.ie_version<15||V.ios&&V.webkit_version<604;function Bt(e,t){let n,{state:i}=e,o=1,s=i.toText(t),a=s.lines==i.selection.ranges.length;if(null!=Jt&&i.selection.ranges.every((e=>e.empty))&&Jt==s.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=i.toText((a?s.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:r.e.cursor(n.from+u.length)}}))}else n=a?i.changeByRange((e=>{let t=s.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.e.cursor(e.from+t.length)}})):i.replaceSelection(s);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function Zt(e,t,n,i){if(1==i)return r.e.cursor(t,n);if(2==i)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=e.charCategorizer(t),o=e.doc.lineAt(t),s=t-o.from;if(0==o.length)return r.e.cursor(t);0==s?n=1:s==o.length&&(n=-1);let a=s,l=s;n<0?a=Object(r.u)(o.text,s,!1):l=Object(r.u)(o.text,s);let u=i(o.text.slice(a,l));for(;a>0;){let e=Object(r.u)(o.text,a,!1);if(i(o.text.slice(e,a))!=u)break;a=e}for(;l{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},Qt.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),Lt.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Lt.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Qt.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Se))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=Xt(e,t),i=Gt(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,s,a){let l,u=Xt(e,t),c=Zt(e,u.pos,u.bias,i);if(n.pos!=u.pos&&!s){let t=Zt(e,n.pos,n.bias,i),o=Math.min(t.from,c.from),s=Math.max(t.to,c.to);c=o1&&(l=function(e,t){for(let n=0;n=t)return r.e.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,u.pos))?l:a?o.addRange(c):r.e.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Ft(e,t,n,r)),r&&e.observer.ignore((()=>k(e.contentDOM)));let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let Wt=(e,t)=>e>=t.top&&e<=t.bottom,Ut=(e,t,n)=>Wt(t,n)&&e>=n.left&&e<=n.right;function qt(e,t,n,r){let i=ae.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let s=i.coordsAt(o,-1);if(s&&Ut(n,r,s))return-1;let a=i.coordsAt(o,1);return a&&Ut(n,r,a)?1:s&&Wt(r,s)?-1:1}function Xt(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:qt(e,n,t.clientX,t.clientY)}}const zt=V.ie&&V.ie_version<=11;let Vt=null,Yt=0,Ht=0;function Gt(e){if(!zt)return e.detail;let t=Vt,n=Ht;return Vt=e,Ht=Date.now(),Yt=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Yt+1)%3:1}function Kt(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,s=r&&o&&function(e,t){let n=e.state.facet(we);return n.length?n[0](t):V.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,a={from:i,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Qt.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let e=i.posAtStart,t=e+i.length;(e>=n.to||t<=n.from)&&(n=r.e.range(e,t))}}let{inputState:i}=e;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},Qt.dragend=e=>(e.inputState.draggedContent=null,!1),Qt.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Kt(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return Kt(e,t,n,!0),!0}return!1},Qt.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=$t?null:t.clipboardData;return n?(Bt(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Bt(e,n.value)}),50)}(e),!1)};let Jt=null;Qt.copy=Qt.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;Jt=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=$t?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),!1)};const en=r.a.define();function tn(e,t){let n=[];for(let r of e.facet(Ee)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:en.of(!0)}):null}function nn(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=tn(e.state,t);n?e.dispatch(n):e.update([])}}),10)}Lt.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),nn(e)},Lt.blur=e=>{e.observer.clearSelectionRange(),nn(e)},Lt.compositionstart=Lt.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},Lt.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,V.chrome&&V.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},Lt.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Qt.beforeinput=(e,t)=>{var n;let r;if(V.chrome&&V.android&&(r=Nt.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const rn=new Set;const on=["pre-wrap","normal","pre-line","break-spaces"];class sn{constructor(e){this.lineWrapping=e,this.doc=r.o.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return on.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,a){this.heightSamples={};for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:2;this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>cn&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return hn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:u,toB:c}=r[s],h=i.lineAt(a,un.ByPosNoHeight,n.setDoc(t),0,0),f=h.to>=l?h:i.lineAt(l,un.ByPosNoHeight,n,0,0);for(c+=f.to-l,l=f.to;s>0&&h.from<=r[s-1].toA;)a=r[s-1].fromA,u=r[s-1].fromB,s--,a2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.blockAt(0,n,r,i))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return"block(".concat(this.length,")")}}class dn extends fn{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new ln(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof dn||r instanceof pn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof pn?r=new dn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):hn.of(n)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}class pn extends hn{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(s=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:s}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),o=t.doc.lineAt(i),l=s+o.length*a,u=Math.max(n,e-l/2);return new ln(o.from,o.length,u,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/s))),{from:a,length:l}=t.doc.line(i+r);return new ln(a,l,n+s*r,s,0)}}lineAt(e,t,n,r,i){if(t==un.ByHeight)return this.blockAt(e,n,r,i);if(t==un.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new ln(t,r-t,0,0,0)}let{firstLine:o,perLine:s,perChar:a}=this.heightMetrics(n,i),l=n.doc.lineAt(e),u=s+l.length*a,c=l.number-o,h=r+s*c+a*(l.from-i-c);return new ln(l.from,l.length,Math.max(r,Math.min(h,r+this.height-u)),u,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,i);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-s;c+=a*n+l*(e-i-n)}let r=a+l*t.length;o(new ln(t.from,t.length,c,r,0)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof pn?n[n.length-1]=new pn(e.length+r):n.push(null,new pn(r-1))}if(e>0){let t=n[0];t instanceof pn?n[0]=new pn(e+t.length):n.unshift(new pn(e-1),null)}return hn.of(n)}decomposeLeft(e,t){t.push(new pn(e-1),null)}decomposeRight(e,t){t.push(null,new pn(this.length-e-1))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),s=-1;for(r.from>t&&n.push(new pn(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==s?s=i:Math.abs(i-s)>=cn&&(s=-2);let a=new dn(t,i);a.outdated=!1,n.push(a),o+=t+1}o<=i&&n.push(null,new pn(i-o).updateHeight(e,o));let a=hn.of(n);return(s<0||Math.abs(a.height-this.height)>=cn||Math.abs(s-this.heightMetrics(e,t).perLine)>=cn)&&(e.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return"gap(".concat(this.length,")")}}class mn extends hn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return es))return l;let u=t==un.ByPosNoHeight?un.ByPosNoHeight:un.ByPos;return a?l.join(this.right.lineAt(s,u,n,o,s)):this.left.lineAt(s,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let s=r+this.left.height,a=i+this.left.length+this.break;if(this.break)e=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,un.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let s of n)i.push(s);if(e>0&&gn(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?hn.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,{left:i,right:o}=this,s=t+i.length+this.break,a=null;return r&&r.from<=t+i.length&&r.more?a=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=s+o.length&&r.more?a=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),a?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function gn(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof pn&&(r=e[t+1])instanceof pn&&e.splice(t-1,3,new pn(n.length+1+r.length))}class vn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof dn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new dn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new dn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new pn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof dn)return e;let t=new dn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof dn||this.isCovered?(this.writtenTot.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();o=Math.max(o,n.left),s=Math.min(s,n.right),a=Math.max(a,n.top),l=u==e.parentNode?n.bottom:Math.min(l,n.bottom)}u="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=u.nodeType)break;u=u.host}return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function bn(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class wn{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new sn(t),this.stateDeco=e.facet(Le).filter((e=>"function"!=typeof e)),this.heightMap=hn.empty().applyChanges(this.stateDeco,r.o.empty,this.heightOracle.setDoc(e.doc),[new Xe(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=he.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((e=>{let{from:t,to:n}=e;return r>=t&&r<=n}))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new xn(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?Dn:new Pn(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:An(e,this.scaler))}))}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(Le).filter((e=>"function"!=typeof e));let i=e.changedRanges,o=Xe.extendWithRanges(i,function(e,t,n){let i=new yn;return r.j.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.c.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let u=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(De)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Ve.RTL:Ve.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,c=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=w(t,a);this.scaleX==e&&this.scaleY==n||(this.scaleX=e,this.scaleY=n,u|=8,s=l=!0)}let h=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==h&&this.paddingBottom==f||(this.paddingTop=h,this.paddingBottom=f,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=P(e.scrollDOM);let p=(this.printing?bn:On)(t,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let y=a.width;if(this.contentDOMWidth==y&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(s=!0),s||i.lineWrapping&&Math.abs(y-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:a}=e.docView.measureTextSize();s=n>0&&i.refresh(o,n,r,a,y/r,t),s&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),i.heightChanged=!1;for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(s?hn.empty().applyChanges(this.stateDeco,r.o.empty,this.heightOracle,[new Xe(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new an(n.from,o))}i.heightChanged&&(u|=2)}let O=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return O&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&u||O)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,a=new xn(r.lineAt(o-1e3*n,un.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),un.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(ea.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=r.lineAt(e,un.ByPos,i,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(t,un.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,un.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:a}=this;return(0==t||i<=s-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||o>=a+Math.max(10,Math.min(r,250)))&&i>s-2e3&&o>1,s=i<<1;if(this.defaultTextDirection!=Ve.LTR&&!n)return[];let a=[],l=(i,s,u,c)=>{if(s-ii&&ee.from>=u.from&&e.to<=u.to&&Math.abs(e.from-i)e.fromt))));if(!d){if(se.from<=s&&e.to>=s))){let e=t.moveToLineBoundary(r.e.cursor(s),!1,!0).head;e>i&&(s=e)}d=new wn(i,s,this.gapSize(u,i,s,c))}a.push(d)};for(let r of this.viewportLines){if(r.lengthr.from&&l(r.from,t,r,e),oe.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];r.j.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||An(this.heightMap.lineAt(e,un.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return An(this.heightMap.lineAt(this.scaler.fromDOM(e),un.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return An(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class xn{constructor(e,t){this.from=e,this.to=t}}function kn(e,t,n){let i=[],o=e,s=0;return r.j.spans(n,e,t,{span(){},point(e,t){e>o&&(i.push({from:o,to:e}),s+=e-o),o=t}},20),o=1)return r[r.length-1].to;let i=Math.floor(n*t);for(let o=0;;o++){let{from:e,to:t}=r[o],n=t-e;if(i<=n)return e+i;i-=n}}function Cn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const Dn={toDOM:e=>e,fromDOM:e=>e,scale:1};class Pn{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((n=>{let{from:i,to:o}=n,s=t.lineAt(i,un.ByPos,e,0,0).top,a=t.lineAt(o,un.ByPos,e,0,0).bottom;return r+=a-s,{from:i,to:o,top:s,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let s of this.viewports)s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tAn(e,t))):e._content)}const Tn=r.g.define({combine:e=>e.join(" ")}),In=r.g.define({combine:e=>e.indexOf(!0)>-1}),Nn=i.a.newName(),jn=i.a.newName(),Rn=i.a.newName(),Mn={"&light":"."+jn,"&dark":"."+Rn};function Fn(e,t,n){return new i.a(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError("Unsupported selector: ".concat(t));return n[t]})):e+" "+t})}const Qn=Fn("."+Nn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Mn),Ln="\uffff";class $n{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.f.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Ln}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let o=I.get(r),s=I.get(i);(o&&s?o.breakAfter:(o?o.breakAfter:Zn(r))||Zn(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,s=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=I.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Bn(e,n.node,n.offset)?t:0))}}function Bn(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new Wn(n,r)),i==n&&o==r||t.push(new Wn(i,o)));return t}(e),n=new $n(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.e.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!f(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!f(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=r.e.single(i,n)}}}function qn(e,t){let n,{newSel:i}=t,o=e.state.selection.main,s=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:a}=t.bounds,l=o.from,u=null;(8===s||V.android&&t.text.length0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==r){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s=s?o-n:0,a=o+(a-s),s=o}else if(a=a?o-n:0,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}(e.state.doc.sliceString(i,a,Ln),t.text,l-i,u);c&&(V.chrome&&13==s&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==Ln+Ln&&c.toB--,n={from:i+c.from,to:i+c.toA,insert:r.o.of(t.text.slice(c.from,c.toB).split(Ln))})}else i&&(!e.hasFocus&&e.state.facet(Ie)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(V.mac||V.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.e.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.o.of([" "])}):V.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.e.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.o.of([" "])}),n){if(V.ios&&e.inputState.flushIOSKey())return!0;if(V.android&&(n.from==o.from&&n.to==o.to&&1==n.insert.length&&2==n.insert.lines&&C(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&0==n.insert.length||8==s&&n.insert.lengtho.head)&&C(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&0==n.insert.length&&C(e.contentDOM,"Delete",46)))return!0;let t,a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>t||(t=function(e,t,n){let i,o=e.state,s=o.selection.main;if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=s.fromt.to?o.sliceDoc(t.to,s.to):"";i=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+r))}else{let a=o.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=s.to&&t.to>=s.to-10){let u,c=e.state.sliceDoc(t.from,t.to),h=n&&pt(e,n.main.head);if(h){let e=t.insert.length-(t.to-t.from);u={from:h.from,to:h.to-e}}else u=e.state.doc.lineAt(s.head);let f=s.to-t.to,d=s.to-s.from;i=o.changeByRange((n=>{if(n.from==s.from&&n.to==s.to)return{changes:a,range:l||n.map(a)};let i=n.to-f,h=i-c.length;if(n.to-n.from!=d||e.state.sliceDoc(h,i)!=c||n.to>=u.from&&n.from<=u.to)return{range:n};let p=o.changes({from:h,to:i,insert:t.insert}),m=n.to-s.to;return{changes:p,range:l?r.e.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):n.map(p)}}))}else i={changes:a,selection:l&&o.selection.replaceRange(l)}}let a="input.type";(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1));return o.update(i,{userEvent:a,scrollIntoView:!0})}(e,n,i));return e.state.facet(ke).some((t=>t(e,n.from,n.to,a,l)))||e.dispatch(l()),!0}if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const Xn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},zn=V.ie&&V.ie_version<=11;class Vn{constructor(e){this.view=e,this.active=!1,this.selectionRange=new S,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(V.ie&&V.ie_version<=11||V.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),zn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Ie)?n.root.activeElement!=this.dom:!d(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(V.ie&&V.ie_version<=11||V.android&&V.chrome)&&!n.state.selection.main.empty&&r.focusNode&&m(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=V.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,s=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);m(a.node,a.offset,o,s)&&([r,i,o,s]=[o,s,r,i]);return{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}}(this.view)||h(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=d(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&C(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&d(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Un(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=qn(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=Yn(t,e.previousSibling||e.target.previousSibling,-1),r=Yn(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Yn(e,t,n){for(;t;){let r=I.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class Hn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new _n(e.state||r.f.create(e)),e.scrollTo&&e.scrollTo.is(Ae)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(je).map((e=>new Me(e)));for(let n of this.plugins)n.update(this);this.observer=new Vn(this),this.inputState=new At(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ft(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(){for(var e=arguments.length,t=new Array(e),n=0;ne.annotation(en)))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=tn(o,s),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(r.f.phrases)!=this.state.facet(r.f.phrases))return this.setState(o);t=ze.create(this,o,e),t.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(h&&(h=h.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;h=new Pe(e.empty?e:r.e.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Ae)&&(h=e.value.clip(this.state))}this.viewState.update(t,h),this.bidiCache=Jn.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(qe)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Tn)!=t.state.facet(Tn)&&(this.viewState.mustMeasureContent=!0),(n||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let r of this.state.facet(xe))try{r(t)}catch(f){Te(this.state,f,"update listener")}(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!qn(this,c)&&u.force&&C(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new _n(e),this.plugins=e.facet(je).map((e=>new Me(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new ft(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(je),n=e.state.facet(je);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new Me(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r0&&void 0!==arguments[0])||arguments[0];if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(P(n))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&a||([this.measureRequests,l]=[l,this.measureRequests]);let u=l.map((e=>{try{return e.read(this)}catch(t){return Te(this.state,t),Kn}})),c=ze.create(this,this.state,[]),h=!1;c.flags|=a,t?t.flags|=a:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),h=this.docView.update(c));for(let e=0;e1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(xe))a(t)}get themeClasses(){return Nn+" "+(this.state.facet(In)?Rn:jn)+" "+this.state.facet(Tn)}updateAttrs(){let e=er(this,Fe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Ie)?"true":"false",class:"cm-content",style:"".concat(V.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),er(this,Qe,t);let n=this.observer.ignore((()=>{let n=oe(this.contentDOM,this.contentAttrs,t),r=oe(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(Hn.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(qe);let e=this.state.facet(Hn.cspNonce);i.a.mount(this.root,this.styleModules.concat(Qn).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Pt(this,e,Ct(this,e,t,n))}moveByGroup(e,t){return Pt(this,e,Ct(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.d.Space&&(o=t),o==t}}(this,e.head,t))))}moveToLineBoundary(e,t){return function(e,t,n,i){let o=Et(e,t.head),s=i&&o.type==ce.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),a=e.posAtCoords({x:n==(i==Ve.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=a)return r.e.cursor(a,n?-1:1)}return r.e.cursor(n?o.to:o.from,n?-1:1)}(this,e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}moveVertically(e,t,n){return Pt(this,e,function(e,t,n,i){let o=t.head,s=n?1:-1;if(o==(n?e.state.doc.length:0))return r.e.cursor(o,t.assoc);let a,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o,t.assoc||-1),h=e.documentTop;if(c)null==l&&(l=c.left-u.left),a=s<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from))),a=(s<0?t.top:t.bottom)+h}let f=u.left+l,d=null!==i&&void 0!==i?i:e.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let t=a+(d+p)*s,n=xt(e,{x:f,y:t},!1,s);if(tu.bottom||(s<0?no)){let i=e.docView.coordsForChar(n),o=!i||t1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(e,t)}posAtCoords(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),xt(this,e,t)}coordsAtPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return O(n,i[rt.find(i,e-r.from,-1,t)].dir==Ve.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Ce)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Gn)return ut(e.length);let t,n=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==n&&(i.fresh||it(i.isolates,t=Ze(this,e.from,e.to))))return i.order;t||(t=Ze(this,e.from,e.to));let r=lt(e.text,n,t);return this.bidiCache.push(new Jn(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||V.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{k(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ae.of(new Pe("number"==typeof e?r.e.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return Ae.of(new Pe(r.e.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return Re.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return Re.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=i.a.newName(),r=[Tn.of(n),qe.of(Fn(".".concat(n),e))];return t&&t.dark&&r.push(In.of(!0)),r}static baseTheme(e){return r.i.lowest(qe.of(Fn("."+Nn,e,Mn)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&I.get(n)||I.get(e);return(null===(t=null===r||void 0===r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}Hn.styleModule=qe,Hn.inputHandler=ke,Hn.focusChangeEffect=Ee,Hn.perLineTextDirection=Ce,Hn.exceptionSink=_e,Hn.updateListener=xe,Hn.editable=Ie,Hn.mouseSelectionStyle=Se,Hn.dragMovesSelection=we,Hn.clickAddsSelectionRange=be,Hn.decorations=Le,Hn.atomicRanges=$e,Hn.bidiIsolatedRanges=Be,Hn.scrollMargins=We,Hn.darkTheme=In,Hn.cspNonce=r.g.define({combine:e=>e.length?e[0]:""}),Hn.contentAttributes=Qe,Hn.editorAttributes=Fe,Hn.lineWrapping=Hn.contentAttributes.of({class:"cm-lineWrapping"}),Hn.announce=r.m.define();const Gn=4096,Kn={};class Jn{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],r=e.length?e[e.length-1].dir:Ve.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&ne(o,n)}return n}const tr=V.mac?"mac":V.windows?"win":V.linux?"linux":"key";function nr(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const rr=r.i.default(Hn.domEventHandlers({keydown:(e,t)=>cr(sr(t.state),e,t,"editor")})),ir=r.g.define({enables:rr}),or=new WeakMap;function sr(e){let t=e.facet(ir),n=or.get(t);return n||or.set(t,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tr,n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,s,a)=>{var l,u;let c=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let l=0;l{let r=lr={view:t,prefix:n,scope:e};return setTimeout((()=>{lr==r&&(lr=null)}),ur),!0}]})}let f=h.join(" ");i(f,!1);let d=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});o&&d.run.push(o),s&&(d.preventDefault=!0),a&&(d.stopPropagation=!0)};for(let s of e){let e=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(s.any)}let r=s[t]||s.key;if(r)for(let t of e)o(t,r,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(t,"Shift-"+r,s.shift,s.preventDefault,s.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}function ar(e,t,n){return cr(sr(e.state),t,e,n)}let lr=null;const ur=4e3;function cr(e,t,n,i){let u=function(e){var t=!(a&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||l&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?s:o)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),c=Object(r.q)(u,0),h=Object(r.r)(c)==u.length&&" "!=u,f="",d=!1,p=!1,m=!1;lr&&lr.view==n&&lr.scope==i&&(f=lr.prefix+" ",Rt.indexOf(t.keyCode)<0&&(p=!0,lr=null));let g,v,y=new Set,O=e=>{if(e){for(let r of e.run)if(!y.has(r)&&(y.add(r),r(n,t)))return e.stopPropagation&&(m=!0),!0;e.preventDefault&&(e.stopPropagation&&(m=!0),p=!0)}return!1},b=e[i];return b&&(O(b[f+nr(u,t,!h)])?d=!0:h&&(t.altKey||t.metaKey||t.ctrlKey)&&!(V.windows&&t.ctrlKey&&t.altKey)&&(g=o[t.keyCode])&&g!=u?(O(b[f+nr(g,t,!0)])||t.shiftKey&&(v=s[t.keyCode])!=u&&v!=g&&O(b[f+nr(v,t,!1)]))&&(d=!0):h&&t.shiftKey&&O(b[f+nr(u,t,!0)])&&(d=!0),!d&&O(b._any)&&(d=!0)),p&&(d=!0),d&&m&&t.stopPropagation(),d}class hr{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=fr(e);return[new hr(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Ve.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=fr(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),h=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=a.right-(c?parseInt(c.paddingRight):0),d=Et(e,r),p=Et(e,i),m=d.type==ce.Text?d:null,g=p.type==ce.Text?p:null;m&&(e.lineWrapping||d.widgetLineBreaks)&&(m=dr(e,r,m));g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=dr(e,i,g));if(m&&g&&m.from==g.from)return y(O(n.from,n.to,m));{let t=m?O(n.from,null,m):b(d,!1),r=g?O(null,n.to,g):b(p,!0),i=[];return(m||d).to<(g||p).from-(m&&g?1:0)||d.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2u&&o.from=i)break;a>r&&l(Math.max(e,r),null==t&&e<=u,Math.min(a,i),null==n&&a>=c,s.dir)}if(r=o.to+1,r>=i)break}return 0==a.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:s,horizontal:a}}function b(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function fr(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ve.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function dr(e,t,n){let i=r.e.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:ce.Text}}class pr{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(mr)!=e.state.facet(mr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(mr);for(;t{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const mr=r.g.define();function gr(e){return[Re.define((t=>new pr(t,e))),mr.of(e)]}const vr=!V.ios,yr=r.g.define({combine:e=>Object(r.s)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function Or(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[yr.of(e),wr,_r,kr,De.of(!0)]}function br(e){return e.startState.facet(yr)!=e.state.facet(yr)}const wr=gr({above:!0,markers(e){let{state:t}=e,n=t.facet(yr),i=[];for(let o of t.selection.ranges){let s=o==t.selection.main;if(o.empty?!s||vr:n.drawRangeCursor){let t=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.e.cursor(o.head,o.head>o.anchor?-1:1);for(let r of hr.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=br(e);return n&&Sr(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Sr(t.state,e)},class:"cm-cursorLayer"});function Sr(e,t){t.style.animationDuration=e.facet(yr).cursorBlinkRate+"ms"}const _r=gr({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:hr.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||br(e),class:"cm-selectionLayer"}),xr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};vr&&(xr[".cm-line"].caretColor="transparent !important",xr[".cm-content"]={caretColor:"transparent !important"});const kr=r.i.highest(Hn.theme(xr)),Er=r.m.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Cr=r.n.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(Er)?t.value:e),e))}),Dr=Re.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(Cr);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Cr)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Cr),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Cr)!=e&&this.view.dispatch({effects:Er.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Pr(){return[Cr,Dr]}function Ar(e,t,n,r,i){t.lastIndex=0;for(let o,s=e.iterRange(n,r),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)i(a+o.index,o)}class Tr{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.k,n=t.add.bind(t);for(let{from:r,to:i}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))Ar(e.state.doc,this.regexp,r,i,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,i,o,s)=>{s>e.view.viewport.from&&o1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>o){let n=e.state.doc.lineAt(o),r=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;sc.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=a-n.from;(u=this.regexp.exec(n.text))&&u.indexthis.addMatch(n,e,t,h)));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>el,add:c})}}return t}}const Ir=null!=/x/.unicode?"gu":"g",Nr=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Ir),jr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Rr=null;const Mr=r.g.define({combine(e){let t=Object(r.s)(e,{render:null,specialChars:Nr,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Rr&&"undefined"!=typeof document&&document.body){let t=document.body.style;Rr=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Rr||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Ir)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Ir)),t}});function Fr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Mr.of(e),Qr||(Qr=Re.fromClass(class{constructor(e){this.view=e,this.decorations=he.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Mr)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Tr({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,s=Object(r.q)(t[0],0);if(9==s){let e=o.lineAt(i),t=n.state.tabSize,s=Object(r.t)(e.text,t,i-e.from);return he.replace({widget:new $r((t-s%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=he.replace({widget:new Lr(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Mr);e.startState.facet(Mr)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Qr=null;class Lr extends ue{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(n=this.code)>=32?"\u2022":10==n?"\u2424":String.fromCharCode(9216+n);var n;let r=e.state.phrase("Control character")+" "+(jr[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,t);if(i)return i;let o=document.createElement("span");return o.textContent=t,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class $r extends ue{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Br(){return Wr}const Zr=he.line({class:"cm-activeLine"}),Wr=Re.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Zr.range(i.from)),t=i.from)}return he.set(n)}},{decorations:e=>e.decorations});class Ur extends ue{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?p(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=O(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function qr(e){return Re.fromClass(class{constructor(t){this.view=t,this.placeholder=e?he.set([he.widget({widget:new Ur(e),side:1}).range(0)]):he.none}get decorations(){return this.view.state.doc.length?he.none:this.placeholder}},{decorations:e=>e.decorations})}const Xr=2e3;function zr(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),o=n-i.from,s=o>Xr?-1:o==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):Object(r.t)(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:s,off:o}}function Vr(e,t){let n=zr(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,o,s){let a=zr(e,t);if(!a)return i;let l=function(e,t,n){let i=Math.min(t.line,n.line),o=Math.max(t.line,n.line),s=[];if(t.off>Xr||n.off>Xr||t.col<0||n.col<0){let a=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=i;t<=o;t++){let n=e.doc.line(t);n.length<=l&&s.push(r.e.range(n.from+a,n.to+l))}}else{let a=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=i;t<=o;t++){let n=e.doc.line(t),i=Object(r.v)(n.text,a,e.tabSize,!0);if(i<0)s.push(r.e.cursor(n.to));else{let t=Object(r.v)(n.text,l,e.tabSize);s.push(r.e.range(n.from+i,n.from+t))}}}return s}(e.state,n,a);return l.length?s?r.e.create(l.concat(i.ranges)):r.e.create(l):i}}:null}function Yr(e){let t=(null===e||void 0===e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return Hn.mouseSelectionStyle.of(((e,n)=>t(n)?Vr(e,n):null))}const Hr={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Gr={style:"cursor: crosshair"};function Kr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=Hr[e.key||"Alt"],r=Re.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,Hn.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?Gr:null}))]}const Jr="-10000px";class ei{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter((e=>e));if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],s=t?[]:null;for(let a=0;at[n]=e)),t.length=s.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function ti(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const ni=r.g.define({combine:e=>{var t,n,r;return{position:V.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||ti}}}),ri=new WeakMap,ii=Re.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(ni);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new ei(e,ai,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(ni);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=Jr,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),null===(e=n.destroy)||void 0===e||e.call(n);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(V.gecko)r=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==Jr&&"0px"==e.style.left){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(r||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((e=>{let{dom:t}=e;return t.getBoundingClientRect()})),space:this.view.state.facet(ni).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,s=[];for(let a=0;a=Math.min(n.bottom,r.bottom)||h.rightMath.min(n.right,r.right)+.1){c.style.top=Jr;continue}let d=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,m=f.right-f.left,g=null!==(t=ri.get(u))&&void 0!==t?t:f.bottom-f.top,v=u.offset||si,y=this.view.textDirection==Ve.LTR,O=f.width>r.right-r.left?y?r.left:r.right-f.width:y?Math.min(h.left-(d?14:0)+v.x,r.right-m):Math.max(r.left,h.left-m+(d?14:0)-v.x),b=this.above[a];!l.strictSide&&(b?h.top-(f.bottom-f.top)-v.yr.bottom)&&b==r.bottom-h.bottom>h.top-r.top&&(b=this.above[a]=!b);let w=(b?h.top-r.top:r.bottom-h.bottom)-p;if(wO&&e.topS&&(S=b?e.top-g-2-p:e.bottom+p+2);if("absolute"==this.position?(c.style.top=(S-e.parent.top)/o+"px",c.style.left=(O-e.parent.left)/i+"px"):(c.style.top=S/o+"px",c.style.left=O/i+"px"),d){let e=h.left+(y?v.x:-v.x)-(O+14-7);d.style.left=e/i+"px"}!0!==u.overlap&&s.push({left:O,top:S,right:_,bottom:S+g}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Jr}},{eventObservers:{scroll(){this.maybeMeasure()}}}),oi=Hn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),si={x:0,y:0},ai=r.g.define({enables:[ii,oi]}),li=r.g.define();class ui{static create(e){return new ui(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ei(e,li,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const ci=ai.compute([li],(e=>{let t=e.facet(li).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:ui.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class hi{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),s=o&&o.dir==Ve.RTL?-1:1;i=t.x{this.pending==t&&(this.pending=null,n&&e.dispatch({effects:this.setHover.of(n)}))}),(t=>Te(e.state,t,"hover tooltip")))}else o&&e.dispatch({effects:this.setHover.of(o)})}get tooltip(){let e=this.view.plugin(ii),t=e?e.manager.tooltips.findIndex((e=>e.create==ui.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:r}=this;if(n&&r&&!function(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-fi&&t.clientX<=n.right+fi&&t.clientY>=n.top-fi&&t.clientY<=n.bottom+fi}(r.dom,e)||this.pending){let{pos:r}=n||this.pending,i=null!==(t=null===n||void 0===n?void 0:n.end)&&void 0!==t?t:r;(r==i?this.view.posAtCoords(this.lastMove)==r:function(e,t,n,r,i,o){let s=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,a)=t&&l<=n}(this.view,r,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const fi=4;function di(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.m.define(),i=r.n.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,r.h.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=i.changes.mapPos(e.end)),e=n}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(mi)&&(e=null);return e},provide:e=>li.from(e)});return[i,Re.define((r=>new hi(r,e,i,n,t.hoverTime||300))),ci]}function pi(e,t){let n=e.plugin(ii);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const mi=r.m.define();const gi=r.g.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function vi(e,t){let n=e.plugin(yi),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const yi=Re.fromClass(class{constructor(e){this.input=e.state.facet(wi),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(gi);this.top=new Oi(e,!0,t.topContainer),this.bottom=new Oi(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(gi);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Oi(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Oi(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(wi);if(n!=this.input){let t=n.filter((e=>e)),r=[],i=[],o=[],s=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),s.push(t)):(t=this.panels[a],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of s)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Hn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class Oi{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=bi(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=bi(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function bi(e){let t=e.nextSibling;return e.remove(),t}const wi=r.g.define({enables:yi});class Si extends r.l{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Si.prototype.elementClass="",Si.prototype.toDOM=void 0,Si.prototype.mapMode=r.h.TrackBefore,Si.prototype.startSide=Si.prototype.endSide=-1,Si.prototype.point=!0;const _i=r.g.define(),xi={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.j.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},ki=r.g.define();function Ei(e){return[Di(),ki.of(Object.assign(Object.assign({},xi),e))]}const Ci=r.g.define({combine:e=>e.some((e=>e))});function Di(e){let t=[Pi];return e&&!1===e.fixed&&t.push(Ci.of(!0)),t}const Pi=Re.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(ki).map((t=>new Ni(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(Ci),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ci)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.j.iter(this.view.state.facet(_i),this.view.viewport.from),i=[],o=this.gutters.map((e=>new Ii(e,this.view.viewport,-this.view.documentPadding.top)));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let e=!0;for(let t of r.type)if(t.type==ce.Text&&e){Ti(n,i,t.from);for(let e of o)e.line(this.view,t,i);e=!1}else if(t.widget)for(let e of o)e.widget(this.view,t)}else if(r.type==ce.Text){Ti(n,i,r.from);for(let e of o)e.line(this.view,r,i)}else if(r.widget)for(let e of o)e.widget(this.view,r);for(let r of o)r.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(ki),n=e.state.facet(ki),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.j.eq(e.startState.facet(_i),e.state.facet(_i),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new Ni(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Hn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Ve.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function Ai(e){return Array.isArray(e)?e:[e]}function Ti(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Ii{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.j.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new ji(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Ti(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Ni{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let s=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,s,r)&&r.preventDefault()}));this.markers=Ai(t.markers(e)),t.initialSpacer&&(this.spacer=new ji(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ai(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.j.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class ji{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;nObject(r.s)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let e=n[r],i=t[r];n[r]=e?(t,n,r)=>e(t,n,r)||i(t,n,r):i}return n}})});class Fi extends Si{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Qi(e,t){return e.state.facet(Mi).formatNumber(t,e.state)}const Li=ki.compute([Mi],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Ri),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Fi(Qi(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Mi)!=e.state.facet(Mi),initialSpacer:e=>new Fi(Qi(e,Bi(e.state.doc.lines))),updateSpacer(e,t){let n=Qi(t.view,Bi(t.view.state.doc.lines));return n==e.number?e:new Fi(n)},domEventHandlers:e.facet(Mi).domEventHandlers})));function $i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Mi.of(e),Di(),Li]}function Bi(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(Zi.range(i)))}return r.j.of(t)}));function Ui(){return Wi}},function(e,t,n){"use strict";n.d(t,"a",(function(){return me})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return Te})),n.d(t,"f",(function(){return B})),n.d(t,"g",(function(){return Se})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return Q})),n.d(t,"j",(function(){return $})),n.d(t,"k",(function(){return de})),n.d(t,"l",(function(){return X})),n.d(t,"m",(function(){return ie})),n.d(t,"n",(function(){return q})),n.d(t,"o",(function(){return D})),n.d(t,"p",(function(){return A})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return W})),n.d(t,"s",(function(){return P})),n.d(t,"t",(function(){return C})),n.d(t,"u",(function(){return Re})),n.d(t,"v",(function(){return h})),n.d(t,"w",(function(){return Oe})),n.d(t,"x",(function(){return m}));var r,i=n(8),o=n(0),s=n(6),a=n(3),l=n(28);const u=new i.c;function c(e){return o.g.define({combine:e?t=>t.concat(e):void 0})}const h=new i.c;class f{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.data=e,this.name=r,o.f.prototype.hasOwnProperty("tree")||Object.defineProperty(o.f.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[x.of(this),o.f.languageData.of(((e,t,n)=>{let r=d(e,t,n),i=r.type.prop(u);if(!i)return[];let o=e.facet(i),s=r.type.prop(h);if(s){let i=r.resolve(t-r.from,n);for(let t of s)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(e,t){return d(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(u)==this.data}findRegions(e){let t=e.facet(x);if((null===t||void 0===t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(u)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.c.mounted);if(o){if(o.tree.prop(u)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new p(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(f.state,!1);return t?t.tree:i.h.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let v=null;class y{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0;this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new y(e,t,[],i.h.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.h.empty&&this.isDone(null!==t&&void 0!==t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.i.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=v;v=this;try{return e()}finally{v=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=O(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=i.i.applyChanges(n,t),r=i.h.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=O(this.fragments,t,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.g{createParse(t,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let t=v;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new i.h(i.e.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return v}}function O(e,t,n){return i.i.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class b{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new b(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=y.create(e.facet(x).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new b(n)}}f.state=o.n.define({create:b.init,update(e,t){for(let n of t.effects)if(n.is(f.setState))return n.value;return t.startState.facet(x)!=t.state.facet(x)?b.init(t.state):e.apply(t)}});let w=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(w=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const S="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,_=s.e.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(f.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(f.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=w(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,a=i.context.work((()=>S&&S()||Date.now()>o),r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:f.setState.of(new b(i.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>Object(s.s)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),x=o.g.define({combine:e=>e.length?e[0]:null,enables:e=>[f.state,_,s.c.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class k{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.language=e,this.support=t,this.extension=[e,t]}}const E=o.g.define(),C=o.g.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function D(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function P(e,t){let n="",r=e.tabSize,i=e.facet(C)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let o=0;o=t?function(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t!=r.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return N(r,e,n)}(e,n,t):null}class T{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.state=e,this.options=t,this.unit=D(e)}lineAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(o.t)(e,this.state.tabSize,t)}lineIndent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const I=new i.c;function N(e,t,n){for(let r=e;r;r=r.next){let e=j(r.node);if(e)return e(M.create(t,n,r))}return 0}function j(e){let t=e.type.prop(I);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.c.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>L(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?R:null}function R(){return 0}class M extends T{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new M(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(F(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return N(this.context.next,this.base,this.pos)}}function F(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Q(e){let{closing:t,align:n=!0,units:r=1}=e;return e=>L(e,n,r,t)}function L(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==r)return null;if(!e.type.isSkipped)return e.frome.baseIndent;function B(){let{except:e,units:t=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Z=200;function W(){return o.f.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+Z)return e;let o=n.sliceString(i.from,r);if(!t.some((e=>e.test(o))))return e;let{state:s}=e,a=-1,l=[];for(let{head:u}of s.selection.ranges){let e=s.doc.lineAt(u);if(e.from==a)continue;a=e.from;let t=A(s,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],r=P(s,t);n!=r&&l.push({from:e.from,to:e.from+n.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const U=o.g.define(),q=new i.c;function X(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&s.from=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function Y(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const H=o.m.define({map:Y}),G=o.m.define({map:Y});function K(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const J=o.n.define({create:()=>s.a.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(H)&&!te(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(se),i=r?s.a.replace({widget:new ce(r(t.state,n.value))}):ue;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(G)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{er&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>s.c.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>e)&&(i={from:e,to:t})})),i}function te(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function ne(e,t){return e.field(J,!1)?t:t.concat(o.m.appendConfig.of(ae()))}function re(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return s.c.announce.of("".concat(e.state.phrase(n?"Folded lines":"Unfolded lines")," ").concat(r," ").concat(e.state.phrase("to")," ").concat(i,"."))}const ie=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of K(e)){let n=V(e.state,t.from,t.to);if(n)return e.dispatch({effects:ne(e.state,[H.of(n),re(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(J,!1))return!1;let t=[];for(let n of K(e)){let r=ee(e.state,n.from,n.to);r&&t.push(G.of(r),re(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(J,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(G.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],oe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},se=o.g.define({combine:e=>Object(o.s)(e,oe)});function ae(e){let t=[J,pe];return e&&t.push(se.of(e)),t}function le(e,t){let{state:n}=e,r=n.facet(se),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=ee(e.state,n.from,n.to);r&&e.dispatch({effects:G.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const ue=s.a.replace({widget:new class extends s.f{toDOM(e){return le(e,null)}}});class ce extends s.f{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return le(e,this.value)}}const he={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class fe extends s.d{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},he),e),n=new fe(t,!0),r=new fe(t,!1),i=s.e.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(x)!=e.state.facet(x)||e.startState.field(J,!1)!=e.state.field(J,!1)||m(e.startState)!=m(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.k;for(let i of e.viewportLineBlocks){let o=ee(e.state,i.from,i.to)?r:V(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:a}=t;return[i,Object(s.l)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||o.j.empty},initialSpacer:()=>new fe(t,!1),domEventHandlers:Object.assign(Object.assign({},a),{click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return!0;let r=ee(e.state,t.from,t.to);if(r)return e.dispatch({effects:G.of(r)}),!0;let i=V(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:H.of(i)}),!0)}})}),ae()]}const pe=s.c.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class me{constructor(e,t){let n;function r(e){let t=l.a.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof f?e=>e.prop(u)==o.data:o?e=>e==o:void 0,this.style=Object(a.c)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new l.a(n):null,this.themeType=t.themeType}static define(e,t){return new me(e,t||{})}}const ge=o.g.define(),ve=o.g.define({combine:e=>e.length?[e[0]]:null});function ye(e){let t=e.facet(ge);return t.length?t:e.facet(ve)}function Oe(e,t){let n,r=[we];return e instanceof me&&(e.module&&r.push(s.c.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?r.push(ve.of(e)):n?r.push(ge.computeN([s.c.darkTheme],(t=>t.facet(s.c.darkTheme)==("dark"==n)?[e]:[]))):r.push(ge.of(e)),r}class be{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,ye(e.state))}update(e){let t=m(e.state),n=ye(e.state),r=n!=ye(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=s.a.mark({class:r})))}),r,i);return n.finish()}}const we=o.i.high(s.e.fromClass(be,{decorations:e=>e.decorations})),Se=me.define([{tag:a.d.meta,color:"#404740"},{tag:a.d.link,textDecoration:"underline"},{tag:a.d.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.d.emphasis,fontStyle:"italic"},{tag:a.d.strong,fontWeight:"bold"},{tag:a.d.strikethrough,textDecoration:"line-through"},{tag:a.d.keyword,color:"#708"},{tag:[a.d.atom,a.d.bool,a.d.url,a.d.contentSeparator,a.d.labelName],color:"#219"},{tag:[a.d.literal,a.d.inserted],color:"#164"},{tag:[a.d.string,a.d.deleted],color:"#a11"},{tag:[a.d.regexp,a.d.escape,a.d.special(a.d.string)],color:"#e40"},{tag:a.d.definition(a.d.variableName),color:"#00f"},{tag:a.d.local(a.d.variableName),color:"#30a"},{tag:[a.d.typeName,a.d.namespace],color:"#085"},{tag:a.d.className,color:"#167"},{tag:[a.d.special(a.d.variableName),a.d.macroName],color:"#256"},{tag:a.d.definition(a.d.propertyName),color:"#00c"},{tag:a.d.comment,color:"#940"},{tag:a.d.invalid,color:"#f00"}]),_e=s.c.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),xe=1e4,ke="()[]{}",Ee=o.g.define({combine:e=>Object(o.s)(e,{afterCursor:!0,brackets:ke,maxScanDistance:xe,renderMatch:Pe})}),Ce=s.a.mark({class:"cm-matchingBracket"}),De=s.a.mark({class:"cm-nonmatchingBracket"});function Pe(e){let t=[],n=e.matched?Ce:De;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Ae=[o.n.define({create:()=>s.a.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Ee);for(let i of t.state.selection.ranges){if(!i.empty)continue;let e=Re(t.state,i.head,-1,r)||i.head>0&&Re(t.state,i.head-1,1,r)||r.afterCursor&&(Re(t.state,i.head,1,r)||i.heads.c.decorations.from(e)}),_e];function Te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Ee.of(e),Ae]}const Ie=new i.c;function Ne(e,t,n){let r=e.prop(t<0?i.c.openedBy:i.c.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function je(e){let t=e.type.prop(Ie);return t?t(e.node):e}function Re(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.maxScanDistance||xe,o=r.brackets||ke,s=m(e),a=s.resolveInner(t,n);for(let l=a;l;l=l.parent){let r=Ne(l.type,n,o);if(r&&l.from0?t>=i.from&&ti.from&&t<=i.to))return Me(e,t,n,l,i,r,o)}}return function(e,t,n,r,i,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let f=0;!c.next().done&&f<=o;){let e=c.value;n<0&&(f+=e.length);let o=t+f*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=s.indexOf(e[t]);if(!(a<0||r.resolveInner(o+t,1).type!=i))if(a%2==0==n>0)h++;else{if(1==h)return{start:u,end:{from:o+t,to:o+t+1},matched:a>>1==l>>1};h--}}n>0&&(f+=e.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,s,a.type,i,o)}function Me(e,t,n,r,i,o,s){let a=r.parent,l={from:i.from,to:i.to},u=0,c=null===a||void 0===a?void 0:a.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&o.indexOf(c.type.name)>-1&&c.from-1||(Le.push(e),console.warn(t))}function We(e,t){let n=[];for(let i of t.split(" ")){let t=[];for(let n of i.split(".")){let r=e[n]||a.d[n];r?"function"==typeof r?t.length?t=t.map(r):Ze(n,"Modifier ".concat(n," used at start of tag")):t.length?Ze(n,"Tag ".concat(n," used as modifier")):t=Array.isArray(r)?r:[r]:Ze(n,"Unknown highlighting tag ".concat(n))}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),o=r+" "+n.map((e=>e.id)),s=$e[o];if(s)return s.id;let l=$e[o]=i.e.define({id:Qe.length,name:r,props:[Object(a.b)({[r]:n})]});return Qe.push(l),l.id}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return I})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return N}));const r=1024;let i=0;class o{constructor(e,t){this.from=e,this.to=t}}class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}s.closedBy=new s({deserialize:e=>e.split(" ")}),s.openedBy=new s({deserialize:e=>e.split(" ")}),s.group=new s({deserialize:e=>e.split(" ")}),s.contextHash=new s({perNode:!0}),s.lookAhead=new s({perNode:!0}),s.mounted=new s({perNode:!0});class a{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[s.mounted.id]}}const l=Object.create(null);class u{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new u(e.name||"",t,e.id,n);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(r)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(s.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(s.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class c{constructor(e){this.types=e;for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:0;return new C(this.topNode,e)}cursorAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=h.get(this)||this.topNode,r=new C(n);return r.moveTo(e,t),h.set(this,r._tree),r}get topNode(){return new b(this,0,0,null)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=y(h.get(this)||this.topNode,e,t,!1);return h.set(this,n),n}resolveInner(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=y(f.get(this)||this.topNode,e,t,!0);return f.set(this,n),n}resolveStack(e){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let o=r instanceof b?r:r.context.parent;o;o=o.parent)if(o.index<0){let e=o.parent;(i||(i=[r])).push(e.resolve(t,n)),o=e}else{let e=a.get(o.tree);if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){let s=new b(e.tree,e.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(y(s,t,n,!1))}}return i?k(i):r}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,o=e.mode||0,s=(o&d.IncludeAnonymous)>0;for(let a=this.cursor(o|d.IncludeAnonymous);;){let e=!1;if(a.from<=i&&a.to>=r&&(!s&&a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&(s||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:T(u.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new p(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new p(u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:o=r,reused:a=[],minRepeatType:l=i.types.length}=e,u=Array.isArray(n)?new m(n,n.length):n,c=i.types,h=0,f=0;function d(e,t,n,r,s,p){let{id:m,start:_,end:x,size:k}=u,E=f;for(;k<0;){if(u.next(),-1==k){let t=a[m];return n.push(t),void r.push(_-e)}if(-3==k)return void(h=m);if(-4==k)return void(f=m);throw new RangeError("Unrecognized record size: ".concat(k))}let C,D,P=c[m],A=_-e;if(x-_<=o&&(D=w(u.pos-t,s))){let t=new Uint16Array(D.size-D.skip),n=u.pos-D.size,r=t.length;for(;u.pos>n;)r=S(D.start,t,r);C=new g(t,x-D.start,i),A=D.start-e}else{let e=u.pos-k;u.next();let t=[],n=[],r=m>=l?m:-1,i=0,s=x;for(;u.pos>e;)r>=0&&u.id==r&&u.size>=0?(u.end<=s-o&&(O(t,n,_,i,u.end,s,r,E),i=t.length,s=u.end),u.next()):p>2500?v(_,e,t,n):d(_,e,t,n,r,p+1);if(r>=0&&i>0&&i-1&&i>0){let e=y(P);C=T(P,t,n,0,t.length,0,x-_,e,e)}else C=b(P,t,n,x-_,E-x)}n.push(C),r.push(A)}function v(e,t,n,r){let s=[],a=0,l=-1;for(;u.pos>t;){let{id:e,start:t,end:n,size:r}=u;if(r>4)u.next();else{if(l>-1&&t=0;e-=3)t[n++]=s[e],t[n++]=s[e+1]-o,t[n++]=s[e+2]-o,t[n++]=n;n.push(new g(t,s[2]-o,i)),r.push(o-e)}}function y(e){return(t,n,r)=>{let i,o,a=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof p){if(!l&&i.type==e&&i.length==r)return i;(o=i.prop(s.lookAhead))&&(a=n[l]+i.length+o)}return b(e,t,n,r,a)}}function O(e,t,n,r,o,s,a,l){let u=[],c=[];for(;e.length>r;)u.push(e.pop()),c.push(t.pop()+n-o);e.push(b(i.types[a],u,c,s-o,l-s)),t.push(o-n)}function b(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;if(h){let e=[s.contextHash,h];o=o?[e].concat(o):[e]}if(i>25){let e=[s.lookAhead,i];o=o?[e].concat(o):[e]}return new p(e,t,n,r,o)}function w(e,t){let n=u.fork(),r=0,i=0,s=0,a=n.end-o,c={size:0,start:0,skip:0};e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=i,c.skip=s,s+=4,r+=4,n.next();continue}let u=n.pos-e;if(e<0||u=l?4:0,f=n.start;for(n.next();n.pos>u;){if(n.size<0){if(-3!=n.size)break e;h+=4}else n.id>=l&&(h+=4);n.next()}i=f,r+=e,s+=h}return(t<0||r==e)&&(c.size=r,c.start=i,c.skip=s),c.size>4?c:void 0}function S(e,t,n){let{id:r,start:i,end:o,size:s}=u;if(u.next(),s>=0&&r4){let r=u.pos-(s-4);for(;u.pos>r;)n=S(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==s?h=r:-4==s&&(f=r);return n}let _=[],x=[];for(;u.pos>0;)d(e.start||0,e.bufferStart||0,_,x,-1,0);let k=null!==(t=e.length)&&void 0!==t?t:_.length?x[0]+_[0].length:0;return new p(c[e.topID],_.reverse(),x.reverse(),k)}(e)}}p.empty=new p(u.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return u.none}toString(){let e=[];for(let t=0;t0));a=o[a+3]);return s}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let s=e,a=0;s=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function y(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0&&void 0!==arguments[0]?arguments[0]:0)}getChild(e){let t=w(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null);return t.length?t[0]:null}getChildren(e){return w(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}resolve(e){return y(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!1)}resolveInner(e){return y(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!0)}matchContext(e){return S(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class b extends O{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;for(let o=this;;){for(let{children:s,positions:l}=o._tree,u=t>0?s.length:-1;e!=u;e+=t){let u=s[e],c=l[e]+o.from;if(v(r,n,c,c+u.length))if(u instanceof g){if(i&d.ExcludeBuffers)continue;let s=u.findChild(0,u.buffer.length,t,n-c,r);if(s>-1)return new x(new _(o,u,e,c),null,s)}else if(i&d.IncludeAnonymous||!u.type.isAnonymous||D(u)){let s;if(!(i&d.IgnoreMounts)&&(s=a.get(u))&&!s.overlay)return new b(s.tree,c,e,o);let l=new b(u,c,e,o);return i&d.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?u.children.length-1:0,t,n,r)}}if(i&d.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&d.IgnoreOverlays)&&(n=a.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:e,to:i}of n.overlay)if((t>0?e<=r:e=r:i>r))return new b(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function w(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1;for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class _{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class x extends O{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new x(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)&d.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new x(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new x(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new x(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function k(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||r.to1&&void 0!==arguments[1]?arguments[1]:0;if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof b)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof b?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(n&d.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&d.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&d.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&d.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||D(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(1,e)}prev(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.move(-1,e)}moveTo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let r=n;r=0;i--){if(i<0)return S(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function D(e){return e.children.some((e=>e instanceof g||!e.type.isAnonymous||D(e)))}const P=new WeakMap;function A(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=P.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof p)){n=1;break}n+=A(e,r)}P.set(t,n)}return n}function T(e,t,n,r,i,o,s,a,l){let u=0;for(let d=r;d=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[u-1]+n[u-1].length-d;h.push(T(e,n,r,i,u,d,t,null,l))}f.push(d+a-o)}}(t,n,r,i,0),(a||l)(h,f,s)}class I{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof x?this.setBuffer(e.context.buffer,e.index,t):e instanceof b&&this.map.set(e.tree,t)}get(e){return e instanceof x?this.getBuffer(e.context.buffer,e.index):e instanceof b?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class N{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[new N(0,e.length,e,0,!1,n)];for(let i of t)i.to>e.length&&r.push(i);return r}static applyChanges(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s=n)for(;o&&o.from=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new N(e,n,t.tree,t.offset+l,s>0,!!u)}if(t&&r.push(t),o.to>c)break;o=inew o(e.from,e.to))):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class R{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new s({perNode:!0})},function(e,t,n){"use strict";var r,i,o=n(5),s=n(2),a=n(27),l=n(35),u=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),c=new s.b("app","Firebase",u),h="@firebase/app",f="[DEFAULT]",d=((i={})[h]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/app-check"]="fire-app-check",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),p=new l.b("@firebase/app"),m=function(){function e(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=Object(s.k)(e),this.container=new a.b(t.name),this._addComponent(new a.a("app",(function(){return r}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(e){return r._addComponent(e)}))}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){var n;void 0===t&&(t=f),this.checkDestroyed_();var r=this.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=f),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){p.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw c.create("app-deleted",{appName:this.name_})},e}();m.prototype.name&&m.prototype.options||m.prototype.delete||console.log("dc");var g="8.10.0";var v=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"===typeof i&&null!==i||(i={name:i});var o=i;void 0===o.name&&(o.name=f);var a=o.name;if("string"!==typeof a||!a)throw c.create("bad-app-name",{appName:String(a)});if(Object(s.h)(t,a))throw c.create("duplicate-app",{appName:a});var l=new e(n,o,r);return t[a]=l,l},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=d[e])&&void 0!==r?r:e;n&&(i+="-"+n);var s=i.match(/\s|\//),l=t.match(/\s|\//);if(s||l){var u=['Unable to register library "'+i+'" with version "'+t+'":'];return s&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),s&&l&&u.push("and"),l&&u.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void p.warn(u.join(" "))}o(new a.a(i+"-version",(function(){return{library:i,version:t}}),"VERSION"))},setLogLevel:l.c,onLog:function(e,t){if(null!==e&&"function"!==typeof e)throw c.create("invalid-log-argument");Object(l.d)(e,t)},apps:null,SDK_VERSION:g,INTERNAL:{registerComponent:o,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function i(e){if(e=e||f,!Object(s.h)(t,e))throw c.create("no-app",{appName:e});return t[e]}function o(o){var a=o.name;if(n.has(a))return p.debug("There were multiple attempts to register component "+a+"."),"PUBLIC"===o.type?r[a]:null;if(n.set(a,o),"PUBLIC"===o.type){var l=function(e){if(void 0===e&&(e=i()),"function"!==typeof e[a])throw c.create("invalid-app-argument",{appName:a});return e[a]()};void 0!==o.serviceProps&&Object(s.l)(l,o.serviceProps),r[a]=l,e.prototype[a]=function(){for(var e=[],t=0;t=0&&p.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var b=v.initializeApp;v.initializeApp=function(){for(var e=[],t=0;t=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Z(e,t){return e===t}function W(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?E:n,i=t.mapStateToPropsFactories,o=void 0===i?N:i,s=t.mapDispatchToPropsFactories,a=void 0===s?I:s,l=t.mergePropsFactories,u=void 0===l?R:l,c=t.selectorFactory,h=void 0===c?L:c;return function(e,t,n,i){void 0===i&&(i={});var s=i,l=s.pure,c=void 0===l||l,p=s.areStatesEqual,m=void 0===p?Z:p,g=s.areOwnPropsEqual,v=void 0===g?D:g,y=s.areStatePropsEqual,O=void 0===y?D:y,b=s.areMergedPropsEqual,w=void 0===b?D:b,S=Object(d.a)(s,$),_=B(e,o,"mapStateToProps"),x=B(t,a,"mapDispatchToProps"),k=B(n,u,"mergeProps");return r(h,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:x,initMergeProps:k,pure:c,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:O,areMergedPropsEqual:w},S))}}var U=W();var q,X=n(33);q=X.unstable_batchedUpdates,s=q},function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return h}));var r,i=n(5);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var o=function(e){function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(s?"\n".concat(s.message,"\n").concat(s.stack):""))||this).code=n,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return Object(i.__extends)(t,e),t}(Error),s=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return Object(i.__extends)(t,e),t}(o),a=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return Object(i.__extends)(t,e),t}(o),l=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return Object(i.__extends)(t,e),t}(o),u=function(e){function t(t,n,i){var o=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),i)||this;return o.locale=n,o}return Object(i.__extends)(t,e),t}(o),c=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null===r||void 0===r?void 0:r.id,"\nDefault Message: ").concat(null===r||void 0===r?void 0:r.defaultMessage,"\nDescription: ").concat(null===r||void 0===r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o.locale=n,o}return Object(i.__extends)(t,e),t}(u),h=function(e){function t(t,n){var i=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"===typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return Object(i.__extends)(t,e),t}(o)},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function u(e,t){return n=>{for(let t=Object(o.x)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class c{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function h(e){return e.selection.main.from}function f(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp("".concat(i?"^":"","(?:").concat(r,")").concat(o?"$":""),null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const d=r.a.define();const p=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=p.get(e);return t||p.set(e,t=l(e)),t}const g=r.m.define(),v=r.m.define();class y{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&i<=57||i>=97&&i<=122?2:i>=65&&i<=90?1:0:(u=Object(r.w)(i))!=u.toLowerCase()?1:u!=u.toUpperCase()?2:0;(!y||1==O&&g||0==b&&0!=O)&&(t[h]==i||n[h]==i&&(f=!0)?s[h++]=y:s.length&&(v=!1)),b=O,y+=Object(r.r)(i)}return h==l&&0==s[0]&&v?this.result((f?-200:0)-100,s,e):d==l&&0==p?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):d==l?this.ret(-900-e.length,[p,m]):h==l?this.result((f?-200:0)-100-700+(v?0:-1100),s,e):2!=t.length&&this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[],o=0;for(let s of t){let e=s+(this.astral?Object(r.r)(Object(r.q)(n,s)):1);o&&i[o-1]==s?i[o-1]=e:(i[o++]=s,i[o++]=e)}return this.ret(e-n.length,i)}}const O=r.g.define({combine:e=>Object(r.s)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:w,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>b(e(n),t(n)),optionClass:(e,t)=>n=>b(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function b(e,t){return e?t?e+" "+t:e:t}function w(e,t,n,r,o,s){let a,l,u=e.textDirection==i.b.RTL,c=u,h=!1,f="top",d=t.left-o.left,p=o.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(c&&d=g||e>t.top?a=n.bottom-t.top:(f="bottom",a=t.bottom-n.top)}let v=(t.bottom-t.top)/s.offsetHeight,y=(t.right-t.left)/s.offsetWidth;return{style:"".concat(f,": ").concat(a/v,"px; max-width: ").concat(l/y,"px"),class:"cm-completionInfo-"+(h?u?"left-narrow":"right-narrow":c?"left":"right")}}function S(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class _{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,s=e.state.facet(O);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,s=0;for(let a=0;as&&i.appendChild(document.createTextNode(o.slice(s,e)));let n=i.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(o.slice(e,t))),n.className="cm-completionMatchedText",s=t}return se.position-t.position)).map((e=>e.render))}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=S(i.length,o,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:r}=e.state.field(t).open;for(let t,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(O).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:v.of(null)})})),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:o,disabled:s}=n.open;r.open&&r.open.options==i||(this.range=S(i.length,o,e.state.facet(O).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=S(t.options.length,t.selected,this.view.state.facet(O).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"===typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>Object(i.s)(this.view.state,e,"completion info"))):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottomn.from||0==n.from))if(i=e,"string"!=typeof l&&l.header)r.appendChild(l.header(l));else{r.appendChild(document.createElement("completion-section")).textContent=e}}const u=r.appendChild(document.createElement("li"));u.id=t+"-"+o,u.setAttribute("role","option");let c=this.optionClass(s);c&&(u.className=c);for(let e of this.optionContent){let t=e(s,this.view.state,this.view,a);t&&u.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew _(n,e,t)}function k(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class E{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new E(this.options,P(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i){let o=function(e,t){let n=[],r=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}};for(let l of e)if(l.hasResult()){let e=l.result.getMatch;if(!1===l.result.filter)for(let t of l.result.options)i(new c(t,l.source,e?e(t):[],1e9-n.length));else{let n=new y(t.sliceDoc(l.from,l.to));for(let t of l.result.options)if(n.match(t.label)){let r=t.displayLabel?e?e(t,n.matched):[]:n.matched;i(new c(t,l.source,r,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,i=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.namet.score-e.score||a(e.completion,t.completion)))){let e=l.completion;!s||s.label!=e.label||s.detail!=e.detail||null!=s.type&&null!=e.type&&s.type!=e.type||s.apply!=e.apply||s.boost!=e.boost?o.push(l):k(l.completion)>k(s)&&(o[o.length-1]=l),s=l.completion}return o}(e,t);if(!o.length)return r&&e.some((e=>1==e.state))?new E(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let s=t.facet(O).selectOnOpen?0:-1;if(r&&r.selected!=s&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:Q,above:i.aboveCursor},r?r.timestamp:Date.now(),s,!1)}map(e){return new E(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class C{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new C(A,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(O),r=(n.override||t.languageDataAt("autocomplete",h(t)).map(m)).map((t=>(this.active.find((e=>e.source==t))||new I(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n1==e.state))&&(i=null),!i&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new I(e.source,0):e)));for(let o of e.effects)o.is(R)&&(i=i&&i.setSelected(o.value,this.id));return r==this.active&&i==this.open?this:new C(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:D}}const D={"aria-autocomplete":"list"};function P(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const A=[];function T(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class I{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=T(e),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new I(r.source,0));for(let i of e.effects)if(i.is(g))r=new I(r.source,1,i.value?h(e.state):-1);else if(i.is(v))r=new I(r.source,0);else if(i.is(j))for(let e of i.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new I(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(h(e.startState))?new I(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new I(this.source,this.state,e.mapPos(this.explicitPos))}}class N extends I{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=h(e.state);if((this.explicitPos<0?a<=i:ao||"delete"==t&&h(e.startState)==this.from)return new I(this.source,"input"==t&&n.activateOnTyping?1:0);let l,u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):f(e,!0).test(i)}(this.result.validFor,e.state,i,o)?new N(this.source,u,this.result,i,o):this.result.update&&(l=this.result.update(this.result,i,o,new s(e.state,a,u>=0)))?new N(this.source,u,l,l.from,null!==(r=l.to)&&void 0!==r?r:h(e.state)):new I(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new I(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new N(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const j=r.m.define({map:(e,t)=>e.map((e=>e.map(t)))}),R=r.m.define(),M=r.n.define({create:()=>C.start(),update:(e,t)=>e.update(t),provide:e=>[i.x.from(e,(e=>e.tooltip)),i.c.contentAttributes.from(e,(e=>e.attrs))]});function F(e,t){const n=t.completion.apply||t.completion.label;let i=e.state.field(M).active.find((e=>e.source==t.source));return i instanceof N&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:o}=e.selection,s=n-o.from,a=i-o.from;return Object.assign(Object.assign({},e.changeByRange((l=>l!=o&&n!=i&&e.sliceDoc(l.from+s,l.from+a)!=e.sliceDoc(n,i)?{range:l}:{changes:{from:l.from+s,to:i==o.from?l.to:l.from+a,insert:t},range:r.e.cursor(l.from+s+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:d.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}const Q=x(M,F);function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return n=>{let r=n.state.field(M,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+s*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),n.dispatch({effects:R.of(l)}),!0}}class ${constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const B=i.e.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(M).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(M);if(!e.selectionSet&&!e.docChanged&&e.startState.field(M)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!T(e)));for(let o=0;o50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(r){Object(i.s)(this.view.state,r)}t.context.abortListeners=null,this.running.splice(o--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let i of e.transactions)"input"==T(i)?this.composing=2:2==this.composing&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(M);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=h(t),r=new s(t,n,e.explicitPos==n),o=new $(e,r);this.running.push(o),Promise.resolve(e.source(r)).then((e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:v.of(null)}),Object(i.s)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(O).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(O);for(let r=0;re.source==i.active.source));if(o&&1==o.state)if(null==i.done){let e=new I(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:j.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(M,!1);if(t&&t.tooltip&&this.view.state.facet(O).closeOnBlur){let n=t.open&&Object(i.k)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:v.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:g.of(!1)})),20),this.composing=0}}}),Z=i.c.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"".concat(400,"px"),boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class W{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class U{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.h.TrackDel),n=e.mapPos(this.to,1,r.h.TrackDel);return null==t||null==n?null:new U(this.field,t,n)}}class q{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),s=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(n.length){let n=s,i=/^\t*/.exec(l)[0].length;for(let t=0;tnew U(e.field,r[e.line]+e.from,r[e.line]+e.to)));return{text:n,ranges:a}}static parse(e){let t,n=[],r=[],i=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let e=t[1]?+t[1]:null,s=t[2]||t[3]||"",a=-1;for(let t=0;t=a&&e.field++}i.push(new W(a,r.length,t.index,t.index+s.length)),o=o.slice(0,t.index)+s+o.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(o);){o=o.slice(0,e.index)+e[1]+o.slice(e.index+e[0].length);for(let t of i)t.line==r.length&&t.from>e.index&&(t.from--,t.to--)}r.push(o)}return new q(r,i)}}let X=i.a.widget({widget:new class extends i.f{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),z=i.a.mark({class:"cm-snippetField"});class V{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.a.set(e.map((e=>(e.from==e.to?X:z).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new V(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Y=r.m.define({map:(e,t)=>e&&e.map(t)}),H=r.m.define(),G=r.n.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Y))return n.value;if(n.is(H)&&e)return new V(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.c.decorations.from(e,(e=>e?e.deco:i.a.none))});function K(e,t){return r.e.create(e.filter((e=>e.field==t)).map((e=>r.e.range(e.from,e.to))))}function J(e){let t=q.parse(e);return(e,n,i,o)=>{let{text:s,ranges:a}=t.instantiate(e.state,i),l={changes:{from:i,to:o,insert:r.o.of(s)},scrollIntoView:!0,annotations:n?d.of(n):void 0};if(a.length&&(l.selection=K(a,0)),a.length>1){let t=new V(a,0),n=l.effects=[Y.of(t)];void 0===e.state.field(G,!1)&&n.push(r.m.appendConfig.of([G,re,oe,Z]))}e.dispatch(e.state.update(l))}}function ee(e){return t=>{let{state:n,dispatch:r}=t,i=n.field(G,!1);if(!i||e<0&&0==i.active)return!1;let o=i.active+e,s=e>0&&!i.ranges.some((t=>t.field==o+e));return r(n.update({selection:K(i.ranges,o),effects:Y.of(s?null:new V(i.ranges,o)),scrollIntoView:!0})),!0}}const te=[{key:"Tab",run:ee(1),shift:ee(-1)},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e;return!!t.field(G,!1)&&(n(t.update({effects:Y.of(null)})),!0)}}],ne=r.g.define({combine:e=>e.length?e[0]:te}),re=r.i.highest(i.q.compute([ne],(e=>e.facet(ne))));function ie(e,t){return Object.assign(Object.assign({},t),{apply:J(e)})}const oe=i.c.domEventHandlers({mousedown(e,t){let n,r=t.state.field(G,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find((e=>e.from<=n&&e.to>=n));return!(!i||i.field==r.active)&&(t.dispatch({selection:K(r.ranges,i.field),effects:Y.of(r.ranges.some((e=>e.field>i.field))?new V(r.ranges,i.field):null),scrollIntoView:!0}),!0)}});const se={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ae=r.m.define({map(e,t){let n=t.mapPos(e,-1,r.h.TrackAfter);return null==n?void 0:n}}),le=new class extends r.l{};le.startSide=1,le.endSide=-1;const ue=r.n.define({create:()=>r.j.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(ae)&&(e=e.update({add:[le.range(n.value,n.value+1)]}));return e}});function ce(){return[me,ue]}const he="()[]{}<>";function fe(e){for(let t=0;t{if((pe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==Object(r.r)(Object(r.q)(i,0))||t!=o.from||n!=o.to)return!1;let s=function(e,t){let n=de(e,e.selection.main.head),i=n.brackets||se.brackets;for(let o of i){let s=fe(Object(r.q)(o,0));if(t==o)return s==o?we(e,o,i.indexOf(o+o+o)>-1,n):Oe(e,o,s,n.before||se.before);if(t==s&&ve(e,e.selection.main.from))return be(e,o,s)}return null}(e.state,i);return!!s&&(e.dispatch(s),!0)})),ge=[{key:"Backspace",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let i=de(t,t.selection.main.head).brackets||se.brackets,o=null,s=t.changeByRange((e=>{if(e.empty){let n=function(e,t){let n=e.sliceString(t-2,t);return Object(r.r)(Object(r.q)(n,0))==n.length?n:n.slice(1)}(t.doc,e.head);for(let o of i)if(o==n&&ye(t.doc,e.head)==fe(Object(r.q)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:r.e.cursor(e.head-o.length)}}return{range:o=e}}));return o||n(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function ve(e,t){let n=!1;return e.field(ue).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function ye(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Object(r.r)(Object(r.q)(n,0)))}function Oe(e,t,n,i){let o=null,s=e.changeByRange((s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:ae.of(s.to+t.length),range:r.e.range(s.anchor+t.length,s.head+t.length)};let a=ye(e.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:t+n,from:s.head},effects:ae.of(s.head+t.length),range:r.e.cursor(s.head+t.length)}:{range:o=s}}));return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function be(e,t,n){let i=null,o=e.changeByRange((t=>t.empty&&ye(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.e.cursor(t.head+n.length)}:i={range:t}));return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function we(e,t,n,i){let s=i.stringPrefixes||se.stringPrefixes,a=null,l=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:ae.of(i.to+t.length),range:r.e.range(i.anchor+t.length,i.head+t.length)};let l,u=i.head,c=ye(e.doc,u);if(c==t){if(Se(e,u))return{changes:{insert:t+t,from:u},effects:ae.of(u+t.length),range:r.e.cursor(u+t.length)};if(ve(e,u)){let i=n&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+i.length,insert:i},range:r.e.cursor(u+i.length)}}}else{if(n&&e.sliceDoc(u-2*t.length,u)==t+t&&(l=_e(e,u-2*t.length,s))>-1&&Se(e,l))return{changes:{insert:t+t+t+t,from:u},effects:ae.of(u+t.length),range:r.e.cursor(u+t.length)};if(e.charCategorizer(u)(c)!=r.d.Word&&_e(e,u,s)>-1&&!function(e,t,n,r){let i=Object(o.x)(e).resolveInner(t,-1),s=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+s)),a=o.indexOf(n);if(!a||a>-1&&r.indexOf(o.slice(0,a))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,u,t,s))return{changes:{insert:t+t,from:u},effects:ae.of(u+t.length),range:r.e.cursor(u+t.length)}}return{range:a=i}}));return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Se(e,t){let n=Object(o.x)(e).resolveInner(t+1);return n.parent&&n.from==t}function _e(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.d.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.d.Word)return n}return-1}function xe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[M,O.of(e),B,Ee,Z]}const ke=[{key:"Ctrl-Space",run:e=>!!e.state.field(M,!1)&&(e.dispatch({effects:g.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(M,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:v.of(null)}),!0)}},{key:"ArrowDown",run:L(!0)},{key:"ArrowUp",run:L(!1)},{key:"PageDown",run:L(!0,"page")},{key:"PageUp",run:L(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(M,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(O).defaultKeymap?[ke]:[])))},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return f}));var r=n(5),i=n(207),o=n(15),s=n(12);function a(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function h(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,s=Intl.DisplayNames,a=Object(o.a)((function(){for(var e,t=[],n=0;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(x,(function(e,n,r,i,o,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(k.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(S.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(S,(function(e,n,r,i,o,s){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];"w"===o?t=Object(s.__assign)(Object(s.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=Object(s.__assign)(Object(s.__assign)({},t),E(o)))}else if(_.test(i.stem))t=Object(s.__assign)(Object(s.__assign)({},t),E(i.stem));else{var a=C(i.stem);a&&(t=Object(s.__assign)(Object(s.__assign)({},t),a));var l=D(i.stem);l&&(t=Object(s.__assign)(Object(s.__assign)({},t),l))}}return t}var T,I={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function N(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(I[n||""]||I[r||""]||I["".concat(r,"-001")]||I["001"])[0]}var j=new RegExp("^".concat(y.source,"*")),R=new RegExp("".concat(y.source,"*$"));function M(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith&&"_a".startsWith("a",1),Q=!!String.fromCodePoint,L=!!Object.fromEntries,$=!!String.prototype.codePointAt,B=!!String.prototype.trimStart,Z=!!String.prototype.trimEnd,W=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},U=!0;try{U="a"===(null===(T=K("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===T?void 0:T[0])}catch(se){U=!1}var q,X=F?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},z=Q?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},V=L?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},H=B?function(e){return e.trimStart()}:function(e){return e.replace(j,"")},G=Z?function(e){return e.trimEnd()}:function(e){return e.replace(R,"")};function K(e,t){return new RegExp(e,t)}if(U){var J=K("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=function(e,t){var n;return J.lastIndex=t,null!==(n=J.exec(e)[1])&&void 0!==n?n:""}}else q=function(e,t){for(var n=[];;){var r=Y(e,t);if(void 0===r||ne(r)||re(r))break;n.push(r),t+=r>=65536?2:1}return z.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var o=[];!this.isEOF();){var s=this.char();if(123===s){if((a=this.parseArgument(e,n)).err)return a;o.push(a.val)}else{if(125===s&&e>0)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&te(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;o.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;o.push(a.val)}}else{var l=this.clonePosition();this.bump(),o.push({type:i.pound,location:M(l,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:M(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var a=s.val,l=this.clonePosition();if(this.bumpIf("")?{val:{type:i.tag,value:o,children:a,location:M(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,M(l,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,M(n,this.clonePosition()))}return this.error(r.INVALID_TAG,M(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var s=this.tryParseUnquoted(e,t);if(s)r+=s;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var l=M(n,this.clonePosition());return{val:{type:i.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return z.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),z(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,M(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(r.MALFORMED_ARGUMENT,M(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:M(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(n,this.clonePosition())):this.parseArgumentOptions(e,t,o,n);default:return this.error(r.MALFORMED_ARGUMENT,M(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=q(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:M(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,a){var l,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(c){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,M(u,h));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition();if((S=this.parseSimpleArgStyleIfPossible()).err)return S;if(0===(v=G(S.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));f={style:v,styleLocation:M(d,this.clonePosition())}}if((_=this.tryParseArgumentClose(a)).err)return _;var p=M(a,this.clonePosition());if(f&&X(null===f||void 0===f?void 0:f.style,"::",0)){var m=H(f.style.slice(2));if("number"===c)return(S=this.parseNumberSkeletonFromString(m,f.styleLocation)).err?S:{val:{type:i.number,value:n,location:p,style:S.val},err:null};if(0===m.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,p);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r>1),l=N(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale));var v={type:o.dateTime,pattern:g,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?b(g):{}};return{val:{type:"date"===c?i.date:i.time,value:n,location:p,style:v},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:n,location:p,style:null!==(l=null===f||void 0===f?void 0:f.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,M(y,Object(s.__assign)({},y)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),w=0;if("select"!==c&&"offset"===O.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));var S;if(this.bumpSpace(),(S=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return S;this.bumpSpace(),O=this.parseIdentifierIfPossible(),w=S.val}var _,x=this.tryParsePluralOrSelectOptions(e,c,t,O);if(x.err)return x;if((_=this.tryParseArgumentClose(a)).err)return _;var k=M(a,this.clonePosition());return"select"===c?{val:{type:i.select,value:n,options:V(x.val),location:k},err:null}:{val:{type:i.plural,value:n,options:V(x.val),offset:w,pluralType:"plural"===c?"cardinal":"ordinal",location:k},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,M(u,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,M(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(w).filter((function(e){return e.length>0}));n=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var a=M(r,this.clonePosition());return i?W(o*=n)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Y(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(X(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!==n&&void 0!==n?n:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function re(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ie(e){e.forEach((function(e){if(delete e.location,f(e)||d(e))for(var t in e.options)delete e.options[t].location,ie(e.options[t].value);else u(e)&&g(e.style)||(c(e)||h(e))&&v(e.style)?delete e.style.location:m(e)&&ie(e.children)}))}function oe(e,t){void 0===t&&(t={}),t=Object(s.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var i=SyntaxError(r[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null===t||void 0===t?void 0:t.captureLocation)||ie(n.val),n.val}},function(e,t,n){"use strict";n.r(t);var r=n(9);n.d(t,"default",(function(){return r.a}));var i="8.10.1";r.a.registerVersion("firebase",i,"app"),r.a.SDK_VERSION=i},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return T})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return p}));var r=n(13);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r=0;f--){var d=s[f];"."===d?o(s,f):".."===d?(o(s,f),h++):h&&(o(s,f),h--)}if(!u)for(;h--;h)s.unshift("..");!u||""===s[0]||s[0]&&i(s[0])||s.unshift("");var p=s.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=a(t),i=a(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},u=n(22);function c(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),h({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=m(e,t,f(),b.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(b.entries[b.index]=i,h({action:r,location:i}))}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},canGo:function(e){var t=b.index+e;return t>=0&&t needs to exist in the component ancestry.")}var a=Object(r.__assign)(Object(r.__assign)({},o.a),{textComponent:i.Fragment});function l(e){return function(t){return e(i.Children.toArray(t))}}function u(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;oe.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),s,a,u)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||u)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let o in e)i(r(o),e[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"\u037c"+e.toString(36)}static mount(e,t,n){let r=e[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new l(e,o),r.mount(Array.isArray(t)?t:[t])}}let a=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=a.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[i]=t;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],a.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let r=e.head||e;r.insertBefore(this.styleTag,r.firstChild)}this.modules=[],e[i]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i-1&&(this.modules.splice(s,1),r--,s=-1),-1==s){if(this.modules.splice(r++,0,o),t)for(let e=0;e9&&void 0!==arguments[9]?arguments[9]:0,c=arguments.length>10?arguments[10]:void 0;this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return"[".concat(this.stack.filter(((e,t)=>t%3==0)).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}static start(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.parser.context;return new i(e,[],t,n,n,0,[],0,r?new o(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,o=i.dynamicPrecedence(r);if(o&&(this.score+=o),0==n)return this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(r,a)}storeNode(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let i=e,{parser:o}=this.p;(r>this.pos||t<=o.maxNode)&&(this.pos=r,o.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new i(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new s(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i1&t&&e==r))||n.push(t[e],r)}t=n}let n=[];for(let r=0;r>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class o{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class s{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class a{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.bufferBase+e.buffer.length;return new a(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new a(this.stack,this.pos,this.index)}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),o+=i,n)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class u{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const c=new u;class h{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=c,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;in.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r=this.chunk2Pos&&tr.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=c,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class f{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;m(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}f.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;class d{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?l(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(m(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}d.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;class p{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function m(e,t,n,r,i,o){let s=0,a=1<0){let n=e[h];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||v(n,t.token.value,i,o))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[s+2];if(!(t.next<0&&c>u&&65535==e[n+3*c-3])){for(;u>1,o=n+i+(i<<1),a=e[o],l=e[o+1]||65536;if(r=l)){s=e[o+2],t.advance();continue e}u=i+1}}break}s=e[n+3*c-1]}}function g(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function v(e,t,n,r){let i=g(n,r,t);return i<0||g(n,r,e)t)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}class w{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?b(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?b(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(o instanceof r.h){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+o.length}}}class S{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new u))}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,o=r.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let l=0;lu.end+25&&(a=Math.max(u.lookAhead,a)),0!=u.value)){let i=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!r.extend&&(n=u,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new u,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new u,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r=0&&n.p.parser.dialect.allows(i>>1)){0==(1&i)?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let i=0;i4*e.bufferLength?new w(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;or)i.push(s);else{if(this.advanceStack(s,i,n))continue;{e||(e=[],t=[]),e.push(s);let n=this.tokens.getMainToken(s);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return y&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort(((e,t)=>t.score-e.score));i.length>e;)i.pop();i.some((e=>e.reducePos>r))&&this.recovering--}else if(i.length>1){e:for(let e=0;e500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?o.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(r.c.contextHash)||0)==n))return e.useNode(a,i),y&&console.log(s+this.stackID(e)+" (via reuse of ".concat(o.getName(a.type.id),")")),!0;if(!(a instanceof r.h)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof r.h&&0==a.positions[0]))break;a=l}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),y&&console.log(s+this.stackID(e)+" (via always-reduce ".concat(o.getName(65535&a),")")),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;ri?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return x(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let o=0;o ":"";if(s.deadEnd){if(i)continue;if(i=!0,s.restart(),y&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,n))continue}let c=s.split(),h=u;for(let e=0;c.forceReduce()&&e<10;e++){if(y&&console.log(h+this.stackID(c)+" (via force-reduce)"),this.advanceFully(c,n))break;y&&(h=this.stackID(c)+" -> ")}for(let e of s.recoverByInsert(a))y&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),y&&console.log(u+this.stackID(s)+" (via recover-delete ".concat(this.parser.getName(a),")")),x(s,n)):(!r||r.scoree;class C{constructor(e){this.start=e.start,this.shift=e.shift||E,this.reduce=e.reduce||E,this.reuse=e.reuse||E,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class D extends r.g{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError("Parser version (".concat(e.version,") doesn't match runtime version (",14,")"));let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;re.topRules[t][1])),i=[];for(let r=0;r=0)o(n,e,a[t++]);else{let r=a[t+-n];for(let i=-n;i>0;i--)o(a[t++],e,r);t++}}}this.nodeSet=new r.d(t.map(((t,o)=>r.e.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:i[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.a;let s=l(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let r=0;r"number"==typeof e?new f(s,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new _(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],o=1&t,s=r[i++];if(o&&n)return s;for(let n=i+(t>>1);i0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let i=this.stateSlot(e,1);null==r;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=P(this.data,i+2)}r=t(P(this.data,i+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=P(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(D.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError("Invalid top rule name ".concat(e.top));t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,r)=>{let i=e.specializers.find((e=>e.from==n.external));if(!i)return n;let o=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=A(o),o}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let r=null;for(let i=0;ie.external(n,r)<<1|t}return e.get}}).call(this,n(47))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(14),i=n(23),o=n(4),s=n.n(o),a=n(21),l=n(13),u=n(20),c=n(22);s.a.Component;var h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:o[n].toLowerCase(),message:a,args:i,type:t.name})}},r=0,i=s;r8640000000000001?NaN:function(e){var t=s(e);if(isNaN(t)||u(t,-0))return 0;if(isFinite(t))return t;var n=Math.floor(Math.abs(t));return t<0&&(n=-n),u(n,-0)?0:n}(e):NaN}function l(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function u(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t}function c(e){return new Array(e)}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":"symbol"===typeof e?"Symbol":"bigint"===typeof e?"BigInt":void 0}n.r(t),n.d(t,"CanonicalizeLocaleList",(function(){return r})),n.d(t,"CanonicalizeTimeZoneName",(function(){return i})),n.d(t,"CoerceOptionsToObject",(function(){return M})),n.d(t,"GetNumberOption",(function(){return Q})),n.d(t,"GetOption",(function(){return L})),n.d(t,"GetOptionsObject",(function(){return $})),n.d(t,"SANCTIONED_UNITS",(function(){return B})),n.d(t,"removeUnitNamespace",(function(){return Z})),n.d(t,"SIMPLE_UNITS",(function(){return W})),n.d(t,"IsSanctionedSimpleUnitIdentifier",(function(){return U})),n.d(t,"IsValidTimeZoneName",(function(){return q})),n.d(t,"IsWellFormedCurrencyCode",(function(){return z})),n.d(t,"IsWellFormedUnitIdentifier",(function(){return V})),n.d(t,"ComputeExponent",(function(){return le})),n.d(t,"ComputeExponentForMagnitude",(function(){return ie})),n.d(t,"CurrencyDigits",(function(){return ue})),n.d(t,"FormatNumericToParts",(function(){return be})),n.d(t,"FormatNumericToString",(function(){return ae})),n.d(t,"InitializeNumberFormat",(function(){return xe})),n.d(t,"PartitionNumberPattern",(function(){return Oe})),n.d(t,"SetNumberFormatDigitOptions",(function(){return _e})),n.d(t,"SetNumberFormatUnitOptions",(function(){return Se})),n.d(t,"ToRawFixed",(function(){return se})),n.d(t,"ToRawPrecision",(function(){return oe})),n.d(t,"_formatToParts",(function(){return me})),n.d(t,"PartitionPattern",(function(){return ke})),n.d(t,"SupportedLocales",(function(){return Ee})),n.d(t,"getInternalSlot",(function(){return J})),n.d(t,"getMultiInternalSlots",(function(){return ee})),n.d(t,"isLiteralPart",(function(){return te})),n.d(t,"setInternalSlot",(function(){return G})),n.d(t,"setMultiInternalSlots",(function(){return K})),n.d(t,"getMagnitude",(function(){return Y})),n.d(t,"defineProperty",(function(){return ne})),n.d(t,"isMissingLocaleDataError",(function(){return Pe})),n.d(t,"RangePatternType",(function(){return Ce})),n.d(t,"invariant",(function(){return re})),n.d(t,"ToString",(function(){return o})),n.d(t,"ToNumber",(function(){return s})),n.d(t,"TimeClip",(function(){return a})),n.d(t,"ToObject",(function(){return l})),n.d(t,"SameValue",(function(){return u})),n.d(t,"ArrayCreate",(function(){return c})),n.d(t,"HasOwnProperty",(function(){return h})),n.d(t,"Type",(function(){return f})),n.d(t,"Day",(function(){return m})),n.d(t,"WeekDay",(function(){return g})),n.d(t,"DayFromYear",(function(){return v})),n.d(t,"TimeFromYear",(function(){return y})),n.d(t,"YearFromTime",(function(){return O})),n.d(t,"DaysInYear",(function(){return b})),n.d(t,"DayWithinYear",(function(){return w})),n.d(t,"InLeapYear",(function(){return S})),n.d(t,"MonthFromTime",(function(){return _})),n.d(t,"DateFromTime",(function(){return x})),n.d(t,"HourFromTime",(function(){return T})),n.d(t,"MinFromTime",(function(){return I})),n.d(t,"SecFromTime",(function(){return N})),n.d(t,"OrdinaryHasInstance",(function(){return j})),n.d(t,"msFromTime",(function(){return R}));var d=864e5;function p(e,t){return e-Math.floor(e/t)*t}function m(e){return Math.floor(e/d)}function g(e){return p(m(e)+4,7)}function v(e){return Date.UTC(e,0)/d}function y(e){return Date.UTC(e,0)}function O(e){return new Date(e).getUTCFullYear()}function b(e){return e%4!==0?365:e%100!==0?366:e%400!==0?365:366}function w(e){return m(e)-v(O(e))}function S(e){return 365===b(O(e))?0:1}function _(e){var t=w(e),n=S(e);if(t>=0&&t<31)return 0;if(t<59+n)return 1;if(t<90+n)return 2;if(t<120+n)return 3;if(t<151+n)return 4;if(t<181+n)return 5;if(t<212+n)return 6;if(t<243+n)return 7;if(t<273+n)return 8;if(t<304+n)return 9;if(t<334+n)return 10;if(t<365+n)return 11;throw new Error("Invalid time")}function x(e){var t=w(e),n=_(e),r=S(e);if(0===n)return t+1;if(1===n)return t-30;if(2===n)return t-58-r;if(3===n)return t-89-r;if(4===n)return t-119-r;if(5===n)return t-150-r;if(6===n)return t-180-r;if(7===n)return t-211-r;if(8===n)return t-242-r;if(9===n)return t-272-r;if(10===n)return t-303-r;if(11===n)return t-333-r;throw new Error("Invalid time")}var k=24,E=60,C=60,D=1e3,P=D*C,A=P*E;function T(e){return p(Math.floor(e/A),k)}function I(e){return p(Math.floor(e/P),E)}function N(e){return p(Math.floor(e/D),C)}function j(e,t,n){if("function"!==typeof e)return!1;if(null===n||void 0===n?void 0:n.boundTargetFunction)return t instanceof(null===n||void 0===n?void 0:n.boundTargetFunction);if("object"!==typeof t)return!1;var r=e.prototype;if("object"!==typeof r)throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(r,t)}function R(e){return p(e,D)}function M(e){return"undefined"===typeof e?Object.create(null):l(e)}function F(e,t,n,r){if(void 0!==e){if(e=Number(e),isNaN(e)||en)throw new RangeError("".concat(e," is outside of range [").concat(t,", ").concat(n,"]"));return Math.floor(e)}return r}function Q(e,t,n,r,i){return F(e[t],n,r,i)}function L(e,t,n,r,i){if("object"!==typeof e)throw new TypeError("Options must be an object");var s=e[t];if(void 0!==s){if("boolean"!==n&&"string"!==n)throw new TypeError("invalid type");if("boolean"===n&&(s=Boolean(s)),"string"===n&&(s=o(s)),void 0!==r&&!r.filter((function(e){return e==s})).length)throw new RangeError("".concat(s," is not within ").concat(r.join(", ")));return s}return i}function $(e){if("undefined"===typeof e)return Object.create(null);if("object"===typeof e)return e;throw new TypeError("Options must be an object")}var B=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function Z(e){return e.slice(e.indexOf("-")+1)}var W=B.map(Z);function U(e){return W.indexOf(e)>-1}function q(e,t){var n=t.tzData,r=t.uppercaseLinks,i=e.toUpperCase(),o=new Set,s=new Set;return Object.keys(n).map((function(e){return e.toUpperCase()})).forEach((function(e){return o.add(e)})),Object.keys(r).forEach((function(e){s.add(e.toUpperCase()),o.add(r[e].toUpperCase())})),o.has(i)||s.has(i)}var X=/[^A-Z]/;function z(e){return 3===(e=e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))).length&&!X.test(e)}function V(e){if(U(e=e.replace(/([A-Z])/g,(function(e,t){return t.toLowerCase()}))))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var n=t[0],r=t[1];return!(!U(n)||!U(r))}function Y(e){return Math.floor(Math.log(e)*Math.LOG10E)}function H(e,t){if("function"===typeof e.repeat)return e.repeat(t);for(var n=new Array(t),r=0;rd[d.length-1])return d[d.length-1].length-1;var p=d.indexOf(f);if(-1===p)return 0;var m=d[p];return"0"===c[m].other?0:m.length-c[m].other.match(/0+/)[0].length}}function oe(e,t,n){var r,i,o,s,a=n;if(0===e)r=H("0",a),i=0,o=0;else{var l=e.toString(),u=l.indexOf("e"),c=l.split("e"),h=c[0],f=c[1],d=h.replace(".","");if(u>=0&&d.length<=a)i=+f,r=d+H("0",a-d.length),o=e;else{var p=(i=Y(e))-a+1,m=Math.round(v(e,p));v(m,a-1)>=10&&(i+=1,m=Math.floor(m/10)),r=m.toString(),o=v(m,a-1-i)}}if(i>=a-1?(r+=H("0",i-a+1),s=i+1):i>=0?(r="".concat(r.slice(0,i+1),".").concat(r.slice(i+1)),s=i+1):(r="0.".concat(H("0",-i-1)).concat(r),s=1),r.indexOf(".")>=0&&n>t){for(var g=n-t;g>0&&"0"===r[r.length-1];)r=r.slice(0,-1),g--;"."===r[r.length-1]&&(r=r.slice(0,-1))}return{formattedString:r,roundedNumber:o,integerDigitsCount:s};function v(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}function se(e,t,n){var r,i,o=n,s=Math.round(e*Math.pow(10,o)),a=s/Math.pow(10,o);if(s<1e21)r=s.toString();else{var l=(r=s.toString()).split("e"),u=l[0],c=l[1];r=u.replace(".",""),r+=H("0",Math.max(+c-r.length+1,0))}if(0!==o){var h=r.length;if(h<=o)r=H("0",o+1-h)+r,h=o+1;var f=r.slice(0,h-o),d=r.slice(h-o);r="".concat(f,".").concat(d),i=f.length}else i=r.length;for(var p=n-t;p>0&&"0"===r[r.length-1];)r=r.slice(0,-1),p--;return"."===r[r.length-1]&&(r=r.slice(0,-1)),{formattedString:r,roundedNumber:a,integerDigitsCount:i}}function ae(e,t){var n,r=t<0||u(t,-0);switch(r&&(t=-t),e.roundingType){case"significantDigits":n=oe(t,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":n=se(t,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(n=oe(t,1,2)).integerDigitsCount>1&&(n=se(t,0,0))}t=n.roundedNumber;var i=n.formattedString,o=n.integerDigitsCount,s=e.minimumIntegerDigits;o\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,fe=new RegExp("^".concat(he.source)),de=new RegExp("".concat(he.source,"$")),pe=/[#0](?:[\.,][#0]+)*/g;function me(e,t,n,r){var i,o,s=e.sign,a=e.exponent,l=e.magnitude,u=r.notation,c=r.style,h=r.numberingSystem,f=t.numbers.nu[0],d=null;if("compact"===u&&l&&(d=function(e,t,n,r,i,o,s){var a,l,u=e.roundedNumber,c=e.sign,h=e.magnitude,f=String(Math.pow(10,h)),d=n.numbers.nu[0];if("currency"===r&&"name"!==o){var p=null===(a=((m=n.numbers.currency)[s]||m[d]).short)||void 0===a?void 0:a[f];if(!p)return null;l=ye(t,u,p)}else{var m,g=((m=n.numbers.decimal)[s]||m[d])[i][f];if(!g)return null;l=ye(t,u,g)}if("0"===l)return null;return l=ve(l,c).replace(/([^\s;\-\+\d\xa4]+)/g,"{c:$1}").replace(/0+/,"0"),l}(e,n,t,c,r.compactDisplay,r.currencyDisplay,h)),"currency"===c&&"name"!==r.currencyDisplay){var p=t.currencies[r.currency];if(p)switch(r.currencyDisplay){case"code":i=r.currency;break;case"symbol":i=p.symbol;break;default:i=p.narrow}else i=r.currency}if(d)o=d;else if("decimal"===c||"unit"===c||"currency"===c&&"name"===r.currencyDisplay)o=ve((t.numbers.decimal[h]||t.numbers.decimal[f]).standard,s);else if("currency"===c){o=ve((g=t.numbers.currency[h]||t.numbers.currency[f])[r.currencySign],s)}else{o=ve(t.numbers.percent[h]||t.numbers.percent[f],s)}var m=pe.exec(o)[0];if(o=o.replace(pe,"{0}").replace(/'(.)'/g,"$1"),"currency"===c&&"name"!==r.currencyDisplay){var g,v=(g=t.numbers.currency[h]||t.numbers.currency[f]).currencySpacing.afterInsertBetween;v&&!de.test(i)&&(o=o.replace("\xa4{0}","\xa4".concat(v,"{0}")));var y=g.currencySpacing.beforeInsertBetween;y&&!fe.test(i)&&(o=o.replace("{0}\xa4","{0}".concat(y,"\xa4")))}for(var O=o.split(/({c:[^}]+}|\{0\}|[\xa4%\-\+])/g),b=[],w=t.numbers.symbols[h]||t.numbers.symbols[f],S=0,_=O;S<_.length;S++){if(Z=_[S])switch(Z){case"{0}":b.push.apply(b,ge(w,e,u,a,h,!d&&r.useGrouping,m));break;case"-":b.push({type:"minusSign",value:w.minusSign});break;case"+":b.push({type:"plusSign",value:w.plusSign});break;case"%":b.push({type:"percentSign",value:w.percentSign});break;case"\xa4":b.push({type:"currency",value:i});break;default:/^\{c:/.test(Z)?b.push({type:"compact",value:Z.substring(3,Z.length-1)}):b.push({type:"literal",value:Z})}}switch(c){case"currency":if("name"===r.currencyDisplay){var x=(t.numbers.currency[h]||t.numbers.currency[f]).unitPattern,k=void 0,E=t.currencies[r.currency];k=E?ye(n,e.roundedNumber*Math.pow(10,a),E.displayName):r.currency;for(var C=[],D=0,P=x.split(/(\{[01]\})/g);D0?(h=l.slice(0,d),f=l.slice(d+1)):h=l,o&&("compact"!==n||u>=1e4)){var p=e.group,m=[],g=s.split(".")[0].split(","),v=3,y=3;g.length>1&&(v=g[g.length-1].length),g.length>2&&(y=g[g.length-2].length);var O=h.length-v;if(O>0){for(m.push(h.slice(O,O+v)),O-=y;O>0;O-=y)m.push(h.slice(O,O+y));m.push(h.slice(0,O+y))}else m.push(h);for(;m.length>0;){var b=m.pop();a.push({type:"integer",value:b}),m.length>0&&a.push({type:"group",value:p})}}else a.push({type:"integer",value:h});if(void 0!==f&&a.push({type:"decimal",value:e.decimal},{type:"fraction",value:f}),("scientific"===n||"engineering"===n)&&isFinite(u)){a.push({type:"exponentSeparator",value:e.exponential}),r<0&&(a.push({type:"exponentMinusSign",value:e.minusSign}),r=-r);var w=se(r,0,0);a.push({type:"exponentInteger",value:w.formattedString})}return a}function ve(e,t){e.indexOf(";")<0&&(e="".concat(e,";-").concat(e));var n=e.split(";"),r=n[0],i=n[1];switch(t){case 0:return r;case-1:return i;default:return i.indexOf("-")>=0?i.replace(/-/g,"+"):"+".concat(r)}}function ye(e,t,n){return n[e.select(t)]||n.other}function Oe(e,t,n){var r,i,o,s=n.getInternalSlots,a=s(e),l=a.pl,c=a.dataLocaleData,h=a.numberingSystem,f=c.numbers.symbols[h]||c.numbers.symbols[c.numbers.nu[0]],d=0,p=0;if(isNaN(t))i=f.nan;else if(isFinite(t)){"percent"===a.style&&(t*=100),p=(r=le(e,t,{getInternalSlots:s}))[0],d=r[1];var m=ae(a,t=p<0?t*Math.pow(10,-p):t/Math.pow(10,p));i=m.formattedString,t=m.roundedNumber}else i=f.infinity;switch(a.signDisplay){case"never":o=0;break;case"auto":o=u(t,0)||t>0||isNaN(t)?0:-1;break;case"always":o=u(t,0)||t>0||isNaN(t)?1:-1;break;default:o=0===t||isNaN(t)?0:t>0?1:-1}return me({roundedNumber:t,formattedString:i,exponent:p,magnitude:d,sign:o},a.dataLocaleData,l,a)}function be(e,t,n){for(var r=Oe(e,t,n),i=c(0),o=0,s=r;o-1;)re((r=e.indexOf("}",n))>n,"Invalid pattern ".concat(e)),n>i&&t.push({type:"literal",value:e.substring(i,n)}),t.push({type:e.substring(n+1,r),value:void 0}),i=r+1,n=e.indexOf("{",i);return i"']/g,G=RegExp(Y.source),K=RegExp(H.source),J=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,se=RegExp(oe.source),ae=/^\s+/,le=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,he=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,Oe=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",De="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="['\u2019]",Ne="["+ke+"]",je="["+Te+"]",Re="["+Ee+"]",Me="\\d+",Fe="["+Ce+"]",Qe="["+De+"]",Le="[^"+ke+Te+Me+Ce+De+Pe+"]",$e="\\ud83c[\\udffb-\\udfff]",Be="[^"+ke+"]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",We="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Pe+"]",qe="\\u200d",Xe="(?:"+Qe+"|"+Le+")",ze="(?:"+Ue+"|"+Le+")",Ve="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ye="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Re+"|"+$e+")"+"?",Ge="["+Ae+"]?",Ke=Ge+He+("(?:"+qe+"(?:"+[Be,Ze,We].join("|")+")"+Ge+He+")*"),Je="(?:"+[Fe,Ze,We].join("|")+")"+Ke,et="(?:"+[Be+Re+"?",Re,Ze,We,Ne].join("|")+")",tt=RegExp(Ie,"g"),nt=RegExp(Re,"g"),rt=RegExp($e+"(?="+$e+")|"+et+Ke,"g"),it=RegExp([Ue+"?"+Qe+"+"+Ve+"(?="+[je,Ue,"$"].join("|")+")",ze+"+"+Ye+"(?="+[je,Ue+Xe,"$"].join("|")+")",Ue+"?"+Xe+"+"+Ve,Ue+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Je].join("|"),"g"),ot=RegExp("["+qe+ke+Ee+Ae+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,ut={};ut[F]=ut[Q]=ut[L]=ut[$]=ut[B]=ut[Z]=ut[W]=ut[U]=ut[q]=!0,ut[O]=ut[b]=ut[R]=ut[w]=ut[M]=ut[S]=ut[_]=ut[x]=ut[E]=ut[C]=ut[D]=ut[A]=ut[T]=ut[I]=ut[j]=!1;var ct={};ct[O]=ct[b]=ct[R]=ct[M]=ct[w]=ct[S]=ct[F]=ct[Q]=ct[L]=ct[$]=ct[B]=ct[E]=ct[C]=ct[D]=ct[A]=ct[T]=ct[I]=ct[N]=ct[Z]=ct[W]=ct[U]=ct[q]=!0,ct[_]=ct[x]=ct[j]=!1;var ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,dt=parseInt,pt="object"==typeof e&&e&&e.Object===Object&&e,mt="object"==typeof self&&self&&self.Object===Object&&self,gt=pt||mt||Function("return this")(),vt=t&&!t.nodeType&&t,yt=vt&&"object"==typeof r&&r&&!r.nodeType&&r,Ot=yt&&yt.exports===vt,bt=Ot&&pt.process,wt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),St=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,xt=wt&&wt.isMap,kt=wt&&wt.isRegExp,Et=wt&&wt.isSet,Ct=wt&&wt.isTypedArray;function Dt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Pt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Rt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function on(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}var sn=Yt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ln(e){return"\\"+ht[e]}function un(e){return ot.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function hn(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var On=function e(t){var n=(t=null==t?gt:On.defaults(gt.Object(),t,On.pick(gt,at))).Array,r=t.Date,i=t.Error,le=t.Function,ke=t.Math,Ee=t.Object,Ce=t.RegExp,De=t.String,Pe=t.TypeError,Ae=n.prototype,Te=le.prototype,Ie=Ee.prototype,Ne=t["__core-js_shared__"],je=Te.toString,Re=Ie.hasOwnProperty,Me=0,Fe=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qe=Ie.toString,Le=je.call(Ee),$e=gt._,Be=Ce("^"+je.call(Re).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=Ot?t.Buffer:o,We=t.Symbol,Ue=t.Uint8Array,qe=Ze?Ze.allocUnsafe:o,Xe=hn(Ee.getPrototypeOf,Ee),ze=Ee.create,Ve=Ie.propertyIsEnumerable,Ye=Ae.splice,He=We?We.isConcatSpreadable:o,Ge=We?We.iterator:o,Ke=We?We.toStringTag:o,Je=function(){try{var e=ho(Ee,"defineProperty");return e({},"",{}),e}catch(t){}}(),et=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,rt=r&&r.now!==gt.Date.now&&r.now,ot=t.setTimeout!==gt.setTimeout&&t.setTimeout,ht=ke.ceil,pt=ke.floor,mt=Ee.getOwnPropertySymbols,vt=Ze?Ze.isBuffer:o,yt=t.isFinite,bt=Ae.join,wt=hn(Ee.keys,Ee),Bt=ke.max,Yt=ke.min,bn=r.now,wn=t.parseInt,Sn=ke.random,_n=Ae.reverse,xn=ho(t,"DataView"),kn=ho(t,"Map"),En=ho(t,"Promise"),Cn=ho(t,"Set"),Dn=ho(t,"WeakMap"),Pn=ho(Ee,"create"),An=Dn&&new Dn,Tn={},In=Qo(xn),Nn=Qo(kn),jn=Qo(En),Rn=Qo(Cn),Mn=Qo(Dn),Fn=We?We.prototype:o,Qn=Fn?Fn.valueOf:o,Ln=Fn?Fn.toString:o;function $n(e){if(ta(e)&&!Us(e)&&!(e instanceof Un)){if(e instanceof Wn)return e;if(Re.call(e,"__wrapped__"))return Lo(e)}return new Wn(e)}var Bn=function(){function e(){}return function(t){if(!ea(t))return{};if(ze)return ze(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Zn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,n,r,i,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!ea(e))return e;var h=Us(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Pi(e,a)}else{var f=mo(e),d=f==x||f==k;if(Vs(e))return _i(e,l);if(f==D||f==O||d&&!i){if(a=u||d?{}:vo(e),!l)return u?function(e,t){return Ai(e,po(e),t)}(e,function(e,t){return e&&Ai(t,Ia(t),e)}(a,e)):function(e,t){return Ai(e,fo(e),t)}(e,ir(a,e))}else{if(!ct[f])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case R:return xi(e);case w:case S:return new r(+e);case M:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case Q:case L:case $:case B:case Z:case W:case U:case q:return ki(e,n);case E:return new r;case C:case I:return new r(e);case A:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case N:return i=e,Qn?Ee(Qn.call(i)):{}}var i}(e,f,l)}}s||(s=new Yn);var p=s.get(e);if(p)return p;s.set(e,a),sa(e)?e.forEach((function(r){a.add(lr(r,t,n,r,e,s))})):na(e)&&e.forEach((function(r,i){a.set(i,lr(r,t,n,i,e,s))}));var m=h?o:(c?u?io:ro:u?Ia:Ta)(e);return At(m||e,(function(r,i){m&&(r=e[i=r]),tr(a,i,lr(r,t,n,i,e,s))})),a}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Pe(s);return To((function(){e.apply(o,n)}),t)}function hr(e,t,n,r){var i=-1,o=jt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Mt(t,en(n))),r?(o=Rt,s=!1):t.length>=200&&(o=nn,s=!1,t=new Vn(t));e:for(;++i-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(kn||Xn),string:new qn}},zn.prototype.delete=function(e){var t=uo(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return uo(this,e).get(e)},zn.prototype.has=function(e){return uo(this,e).has(e)},zn.prototype.set=function(e,t){var n=uo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,a),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ni(br),dr=Ni(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function mr(e,t,n){for(var r=-1,i=e.length;++r0&&n(a)?t>1?vr(a,t-1,n,r,i):Ft(i,a):r||(i[i.length]=a)}return i}var yr=ji(),Or=ji(!0);function br(e,t){return e&&yr(e,t,Ta)}function wr(e,t){return e&&Or(e,t,Ta)}function Sr(e,t){return Nt(t,(function(t){return Gs(e[t])}))}function _r(e,t){for(var n=0,r=(t=Oi(t,e)).length;null!=e&&nt}function Cr(e,t){return null!=e&&Re.call(e,t)}function Dr(e,t){return null!=e&&t in Ee(e)}function Pr(e,t,r){for(var i=r?Rt:jt,s=e[0].length,a=e.length,l=a,u=n(a),c=1/0,h=[];l--;){var f=e[l];l&&t&&(f=Mt(f,en(t))),c=Yt(f.length,c),u[l]=!r&&(t||s>=120&&f.length>=120)?new Vn(l&&f):o}f=e[0];var d=-1,p=u[0];e:for(;++d=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Oo(i)?Ye.call(e,i,1):hi(e,i)}}return e}function Vr(e,t){return e+pt(Sn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>m)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Hr(e,t){return Io(Co(e,t,rl),e+"")}function Gr(e){return Gn($a(e))}function Kr(e,t){var n=$a(e);return Ro(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ea(e))return e;for(var i=-1,s=(t=Oi(t,e)).length,a=s-1,l=e;null!=l&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i>>1,s=e[o];null!==s&&!la(s)&&(n?s<=t:s=200){var u=t?null:Yi(e);if(u)return dn(u);s=!1,i=nn,l=new Vn}else l=t?[]:a;e:for(;++r=r?e:ri(e,t,n)}var Si=et||function(e){return gt.clearTimeout(e)};function _i(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ki(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,s=la(e),a=t!==o,l=null===t,u=t===t,c=la(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!s&&!c&&e1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&bo(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Ee(t);++r-1?i[s?t[a]:a]:o}}function Li(e){return no((function(t){var n=t.length,r=n,i=Wn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Pe(s);if(i&&!l&&"wrapper"==so(a))var l=new Wn([],!0)}for(r=l?r:n;++r1&&b.reverse(),d&&cl))return!1;var c=s.get(e),h=s.get(t);if(c&&h)return c==t&&h==e;var f=-1,d=!0,p=2&n?new Vn:o;for(s.set(e,t),s.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(y,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(he):[]}(r),n)))}function jo(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ro(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,os(e,n)}));function fs(e){var t=$n(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var ps=no((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&Oo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ds,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ms=Ti((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)}));var gs=Qi(Wo),vs=Qi(Uo);function ys(e,t){return(Us(e)?At:fr)(e,lo(t,3))}function Os(e,t){return(Us(e)?Tt:dr)(e,lo(t,3))}var bs=Ti((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])}));var ws=Hr((function(e,t,r){var i=-1,o="function"==typeof t,s=Xs(e)?n(e.length):[];return fr(e,(function(e){s[++i]=o?Dt(t,e,r):Ar(e,t,r)})),s})),Ss=Ti((function(e,t,n){or(e,n,t)}));function _s(e,t){return(Us(e)?Mt:Lr)(e,lo(t,3))}var xs=Ti((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ks=Hr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bo(e,t[0],t[1])?t=[]:n>2&&bo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,vr(t,1),[])})),Es=rt||function(){return gt.Date.now()};function Cs(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Gi(e,f,o,o,o,o,t)}function Ds(e,t){var n;if("function"!=typeof t)throw new Pe(s);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ps=Hr((function(e,t,n){var r=1;if(n.length){var i=fn(n,ao(Ps));r|=c}return Gi(e,r,t,n,i)})),As=Hr((function(e,t,n){var r=3;if(n.length){var i=fn(n,ao(As));r|=c}return Gi(t,r,e,n,i)}));function Ts(e,t,n){var r,i,a,l,u,c,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Pe(s);function m(t){var n=r,s=i;return r=i=o,h=t,l=e.apply(s,n)}function g(e){var n=e-c;return c===o||n>=t||n<0||d&&e-h>=a}function v(){var e=Es();if(g(e))return y(e);u=To(v,function(e){var n=t-(e-c);return d?Yt(n,a-(e-h)):n}(e))}function y(e){return u=o,p&&r?m(e):(r=i=o,l)}function O(){var e=Es(),n=g(e);if(r=arguments,i=this,c=e,n){if(u===o)return function(e){return h=e,u=To(v,t),f?m(e):l}(c);if(d)return Si(u),u=To(v,t),m(c)}return u===o&&(u=To(v,t)),l}return t=ga(t)||0,ea(n)&&(f=!!n.leading,a=(d="maxWait"in n)?Bt(ga(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),O.cancel=function(){u!==o&&Si(u),h=0,r=c=i=u=o},O.flush=function(){return u===o?l:y(Es())},O}var Is=Hr((function(e,t){return cr(e,1,t)})),Ns=Hr((function(e,t,n){return cr(e,ga(t)||0,n)}));function js(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(js.Cache||zn),n}function Rs(e){if("function"!=typeof e)throw new Pe(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}js.Cache=zn;var Ms=bi((function(e,t){var n=(t=1==t.length&&Us(t[0])?Mt(t[0],en(lo())):Mt(vr(t,1),en(lo()))).length;return Hr((function(r){for(var i=-1,o=Yt(r.length,n);++i=t})),Ws=Tr(function(){return arguments}())?Tr:function(e){return ta(e)&&Re.call(e,"callee")&&!Ve.call(e,"callee")},Us=n.isArray,qs=St?en(St):function(e){return ta(e)&&kr(e)==R};function Xs(e){return null!=e&&Js(e.length)&&!Gs(e)}function zs(e){return ta(e)&&Xs(e)}var Vs=vt||gl,Ys=_t?en(_t):function(e){return ta(e)&&kr(e)==S};function Hs(e){if(!ta(e))return!1;var t=kr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Gs(e){if(!ea(e))return!1;var t=kr(e);return t==x||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ks(e){return"number"==typeof e&&e==pa(e)}function Js(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=xt?en(xt):function(e){return ta(e)&&mo(e)==E};function ra(e){return"number"==typeof e||ta(e)&&kr(e)==C}function ia(e){if(!ta(e)||kr(e)!=D)return!1;var t=Xe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Le}var oa=kt?en(kt):function(e){return ta(e)&&kr(e)==A};var sa=Et?en(Et):function(e){return ta(e)&&mo(e)==T};function aa(e){return"string"==typeof e||!Us(e)&&ta(e)&&kr(e)==I}function la(e){return"symbol"==typeof e||ta(e)&&kr(e)==N}var ua=Ct?en(Ct):function(e){return ta(e)&&Js(e.length)&&!!ut[kr(e)]};var ca=Xi(Qr),ha=Xi((function(e,t){return e<=t}));function fa(e){if(!e)return[];if(Xs(e))return aa(e)?gn(e):Pi(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=mo(e);return(t==E?cn:t==T?dn:$a)(e)}function da(e){return e?(e=ga(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function pa(e){var t=da(e),n=t%1;return t===t?n?t-n:t:0}function ma(e){return e?ar(pa(e),0,v):0}function ga(e){if("number"==typeof e)return e;if(la(e))return g;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):ve.test(e)?g:+e}function va(e){return Ai(e,Ia(e))}function ya(e){return null==e?"":ui(e)}var Oa=Ii((function(e,t){if(xo(t)||Xs(t))Ai(t,Ta(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),ba=Ii((function(e,t){Ai(t,Ia(t),e)})),wa=Ii((function(e,t,n,r){Ai(t,Ia(t),e,r)})),Sa=Ii((function(e,t,n,r){Ai(t,Ta(t),e,r)})),_a=no(sr);var xa=Hr((function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&bo(t[0],t[1],i)&&(r=1);++n1),t})),Ai(e,io(e),n),r&&(n=lr(n,7,eo));for(var i=t.length;i--;)hi(n,t[i]);return n}));var Ma=no((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Ca(e,n)}))}(e,t)}));function Fa(e,t){if(null==e)return{};var n=Mt(io(e),(function(e){return[e]}));return t=lo(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Qa=Hi(Ta),La=Hi(Ia);function $a(e){return null==e?[]:tn(e,Ta(e))}var Ba=Mi((function(e,t,n){return t=t.toLowerCase(),e+(n?Za(t):t)}));function Za(e){return Ha(ya(e).toLowerCase())}function Wa(e){return(e=ya(e))&&e.replace(Se,sn).replace(nt,"")}var Ua=Mi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qa=Mi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Xa=Ri("toLowerCase");var za=Mi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Va=Mi((function(e,t,n){return e+(n?" ":"")+Ha(t)}));var Ya=Mi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ha=Ri("toUpperCase");function Ga(e,t,n){return e=ya(e),(t=n?o:t)===o?function(e){return st.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Ka=Hr((function(e,t){try{return Dt(e,o,t)}catch(n){return Hs(n)?n:new i(n)}})),Ja=no((function(e,t){return At(t,(function(t){t=Fo(t),or(e,t,Ps(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Li(),nl=Li(!0);function rl(e){return e}function il(e){return Rr("function"==typeof e?e:lr(e,1))}var ol=Hr((function(e,t){return function(n){return Ar(n,e,t)}})),sl=Hr((function(e,t){return function(n){return Ar(e,n,t)}}));function al(e,t,n){var r=Ta(t),i=Sr(t,r);null!=n||ea(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Ta(t)));var o=!(ea(n)&&"chain"in n)||!!n.chain,s=Gs(e);return At(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Pi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})})),e}function ll(){}var ul=Wi(Mt),cl=Wi(It),hl=Wi($t);function fl(e){return wo(e)?Vt(Fo(e)):function(e){return function(t){return _r(t,e)}}(e)}var dl=qi(),pl=qi(!0);function ml(){return[]}function gl(){return!1}var vl=Zi((function(e,t){return e+t}),0),yl=Vi("ceil"),Ol=Zi((function(e,t){return e/t}),1),bl=Vi("floor");var wl=Zi((function(e,t){return e*t}),1),Sl=Vi("round"),_l=Zi((function(e,t){return e-t}),0);return $n.after=function(e,t){if("function"!=typeof t)throw new Pe(s);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Cs,$n.assign=Oa,$n.assignIn=ba,$n.assignInWith=wa,$n.assignWith=Sa,$n.at=_a,$n.before=Ds,$n.bind=Ps,$n.bindAll=Ja,$n.bindKey=As,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Us(e)?e:[e]},$n.chain=fs,$n.chunk=function(e,t,r){t=(r?bo(e,t,r):t===o)?1:Bt(pa(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,l=n(ht(i/t));si?0:i+n),(r=r===o||r>i?i:pa(r))<0&&(r+=i),r=n>r?0:ma(r);n>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=ui(t))&&un(e)?wi(gn(e),0,n):e.split(t,n):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new Pe(s);return t=null==t?0:Bt(pa(t),0),Hr((function(n){var r=n[t],i=wi(n,0,t);return r&&Ft(i,r),Dt(e,this,i)}))},$n.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},$n.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===o?1:pa(t))<0?0:t):[]},$n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===o?1:pa(t)))<0?0:t,r):[]},$n.takeRightWhile=function(e,t){return e&&e.length?di(e,lo(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?di(e,lo(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Pe(s);return ea(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ts(e,t,{leading:r,maxWait:t,trailing:i})},$n.thru=ds,$n.toArray=fa,$n.toPairs=Qa,$n.toPairsIn=La,$n.toPath=function(e){return Us(e)?Mt(e,Fo):la(e)?[e]:Pi(Mo(ya(e)))},$n.toPlainObject=va,$n.transform=function(e,t,n){var r=Us(e),i=r||Vs(e)||ua(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ea(e)&&Gs(o)?Bn(Xe(e)):{}}return(i?At:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},$n.unary=function(e){return Cs(e,1)},$n.union=ts,$n.unionBy=ns,$n.unionWith=rs,$n.uniq=function(e){return e&&e.length?ci(e):[]},$n.uniqBy=function(e,t){return e&&e.length?ci(e,lo(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ci(e,o,t):[]},$n.unset=function(e,t){return null==e||hi(e,t)},$n.unzip=is,$n.unzipWith=os,$n.update=function(e,t,n){return null==e?e:fi(e,t,yi(n))},$n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fi(e,t,yi(n),r)},$n.values=$a,$n.valuesIn=function(e){return null==e?[]:tn(e,Ia(e))},$n.without=ss,$n.words=Ga,$n.wrap=function(e,t){return Fs(yi(t),e)},$n.xor=as,$n.xorBy=ls,$n.xorWith=us,$n.zip=cs,$n.zipObject=function(e,t){return gi(e||[],t||[],tr)},$n.zipObjectDeep=function(e,t){return gi(e||[],t||[],Jr)},$n.zipWith=hs,$n.entries=Qa,$n.entriesIn=La,$n.extend=ba,$n.extendWith=wa,al($n,$n),$n.add=vl,$n.attempt=Ka,$n.camelCase=Ba,$n.capitalize=Za,$n.ceil=yl,$n.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ga(n))===n?n:0),t!==o&&(t=(t=ga(t))===t?t:0),ar(ga(e),t,n)},$n.clone=function(e){return lr(e,4)},$n.cloneDeep=function(e){return lr(e,5)},$n.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:o)},$n.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:o)},$n.conformsTo=function(e,t){return null==t||ur(e,t,Ta(t))},$n.deburr=Wa,$n.defaultTo=function(e,t){return null==e||e!==e?t:e},$n.divide=Ol,$n.endsWith=function(e,t,n){e=ya(e),t=ui(t);var r=e.length,i=n=n===o?r:ar(pa(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},$n.eq=$s,$n.escape=function(e){return(e=ya(e))&&K.test(e)?e.replace(H,an):e},$n.escapeRegExp=function(e){return(e=ya(e))&&se.test(e)?e.replace(oe,"\\$&"):e},$n.every=function(e,t,n){var r=Us(e)?It:pr;return n&&bo(e,t,n)&&(t=o),r(e,lo(t,3))},$n.find=gs,$n.findIndex=Wo,$n.findKey=function(e,t){return Zt(e,lo(t,3),br)},$n.findLast=vs,$n.findLastIndex=Uo,$n.findLastKey=function(e,t){return Zt(e,lo(t,3),wr)},$n.floor=bl,$n.forEach=ys,$n.forEachRight=Os,$n.forIn=function(e,t){return null==e?e:yr(e,lo(t,3),Ia)},$n.forInRight=function(e,t){return null==e?e:Or(e,lo(t,3),Ia)},$n.forOwn=function(e,t){return e&&br(e,lo(t,3))},$n.forOwnRight=function(e,t){return e&&wr(e,lo(t,3))},$n.get=Ea,$n.gt=Bs,$n.gte=Zs,$n.has=function(e,t){return null!=e&&go(e,t,Cr)},$n.hasIn=Ca,$n.head=Xo,$n.identity=rl,$n.includes=function(e,t,n,r){e=Xs(e)?e:$a(e),n=n&&!r?pa(n):0;var i=e.length;return n<0&&(n=Bt(i+n,0)),aa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ut(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=Bt(r+i,0)),Ut(e,t,i)},$n.inRange=function(e,t,n){return t=da(t),n===o?(n=t,t=0):n=da(n),function(e,t,n){return e>=Yt(t,n)&&e=-9007199254740991&&e<=m},$n.isSet=sa,$n.isString=aa,$n.isSymbol=la,$n.isTypedArray=ua,$n.isUndefined=function(e){return e===o},$n.isWeakMap=function(e){return ta(e)&&mo(e)==j},$n.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==kr(e)},$n.join=function(e,t){return null==e?"":bt.call(e,t)},$n.kebabCase=Ua,$n.last=Ho,$n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=pa(n))<0?Bt(r+i,0):Yt(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Wt(e,Xt,i,!0)},$n.lowerCase=qa,$n.lowerFirst=Xa,$n.lt=ca,$n.lte=ha,$n.max=function(e){return e&&e.length?mr(e,rl,Er):o},$n.maxBy=function(e,t){return e&&e.length?mr(e,lo(t,2),Er):o},$n.mean=function(e){return zt(e,rl)},$n.meanBy=function(e,t){return zt(e,lo(t,2))},$n.min=function(e){return e&&e.length?mr(e,rl,Qr):o},$n.minBy=function(e,t){return e&&e.length?mr(e,lo(t,2),Qr):o},$n.stubArray=ml,$n.stubFalse=gl,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=wl,$n.nth=function(e,t){return e&&e.length?Wr(e,pa(t)):o},$n.noConflict=function(){return gt._===this&&(gt._=$e),this},$n.noop=ll,$n.now=Es,$n.pad=function(e,t,n){e=ya(e);var r=(t=pa(t))?mn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(pt(i),n)+e+Ui(ht(i),n)},$n.padEnd=function(e,t,n){e=ya(e);var r=(t=pa(t))?mn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Sn();return Yt(e+i*(t-e+ft("1e-"+((i+"").length-1))),t)}return Vr(e,t)},$n.reduce=function(e,t,n){var r=Us(e)?Qt:Ht,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},$n.reduceRight=function(e,t,n){var r=Us(e)?Lt:Ht,i=arguments.length<3;return r(e,lo(t,4),n,i,dr)},$n.repeat=function(e,t,n){return t=(n?bo(e,t,n):t===o)?1:pa(t),Yr(ya(e),t)},$n.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,n){var r=-1,i=(t=Oi(t,e)).length;for(i||(i=1,e=o);++rm)return[];var n=v,r=Yt(e,v);t=lo(t),e-=v;for(var i=Kt(r,t);++n=s)return e;var l=n-mn(r);if(l<1)return r;var u=a?wi(a,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(a&&(l+=u.length-l),oa(i)){if(e.slice(l).search(i)){var c,h=u;for(i.global||(i=Ce(i.source,ya(ge.exec(i))+"g")),i.lastIndex=0;c=i.exec(h);)var f=c.index;u=u.slice(0,f===o?l:f)}}else if(e.indexOf(ui(i),l)!=l){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},$n.unescape=function(e){return(e=ya(e))&&G.test(e)?e.replace(Y,yn):e},$n.uniqueId=function(e){var t=++Me;return ya(e)+t},$n.upperCase=Ya,$n.upperFirst=Ha,$n.each=ys,$n.eachRight=Os,$n.first=Xo,al($n,function(){var e={};return br($n,(function(t,n){Re.call($n.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),$n.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){$n[e].placeholder=$n})),At(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:Bt(pa(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=Yt(n,r.__takeCount__):r.__views__.push({size:Yt(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(rl)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Hr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Ar(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Rs(lo(e)))},Un.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(v)},br(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=$n[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&($n.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Un,u=a[0],c=l||Us(t),h=function(e){var t=i.apply($n,Ft([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=s&&!f,m=l&&!d;if(!s&&c){t=m?t:new Un(this);var g=e.apply(t,a);return g.__actions__.push({func:ds,args:[h],thisArg:o}),new Wn(g,f)}return p&&m?e.apply(this,a):(g=this.thru(h),p?r?g.value()[0]:g.value():g)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Us(i)?i:[],e)}return this[n]((function(n){return t.apply(Us(n)?n:[],e)}))}})),br(Un.prototype,(function(e,t){var n=$n[t];if(n){var r=n.name+"";Re.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[$i(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Pi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pi(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Us(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,n=this;n instanceof Zn;){var r=Lo(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ds,args:[es],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(es)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Ge&&($n.prototype[Ge]=function(){return this}),$n}();gt._=On,(i=function(){return On}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(this,n(25),n(176)(e))},,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l1)for(var n=1;n=0&&(e=this.dialog_),!e){var t=["button","input","keygen","select","textarea"].map((function(e){return e+":not([disabled])"}));t.push('[tabindex]:not([disabled]):not([tabindex=""])'),e=this.dialog_.querySelector(t.join(", "))}s(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e, the polyfill may not work correctly",e),"dialog"!==e.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new u(e)},registerDialog:function(e){e.showModal||c.forceRegisterDialog(e)},DialogManager:function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver((function(t){var n=[];t.forEach((function(e){for(var t,r=0;t=e.removedNodes[r];++r)t instanceof Element&&("dialog"===t.localName&&n.push(t),n=n.concat(t.querySelectorAll("dialog")))})),n.length&&e(n)})))}};if(c.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},c.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},c.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,n=0;e=this.pendingDialogStack[n];++n)e.updateZIndex(--t,--t),0===n&&(this.overlay.style.zIndex=--t);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},c.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=o(e);){for(var t,n=0;t=this.pendingDialogStack[n];++n)if(t.dialog===e)return 0===n;e=e.parentElement}return!1},c.DialogManager.prototype.handleFocus_=function(e){if(!this.containedByTopDialog_(e.target)&&(e.preventDefault(),e.stopPropagation(),s(e.target),void 0!==this.forwardTab_)){var t=this.pendingDialogStack[0];return t.dialog.compareDocumentPosition(e.target)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?t.focus_():document.documentElement.focus()),!1}},c.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new i("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&n.dialog.dispatchEvent(t)&&n.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},c.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach((function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()}))},c.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},c.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},c.dm=new c.DialogManager,c.formSubmitter=null,c.useValue=null,void 0===window.HTMLDialogElement){var h=document.createElement("form");if(h.setAttribute("method","dialog"),"dialog"!==h.method){var f=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(f){var d=f.get;f.get=function(){return l(this)?"dialog":d.call(this)};var p=f.set;f.set=function(e){return"string"===typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):p.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",f)}}document.addEventListener("click",(function(e){if(c.formSubmitter=null,c.useValue=null,!e.defaultPrevented){var t=e.target;if(t&&l(t.form)){if(!("submit"===t.type&&["button","input"].indexOf(t.localName)>-1)){if("input"!==t.localName||"image"!==t.type)return;c.useValue=e.offsetX+","+e.offsetY}o(t)&&(c.formSubmitter=t)}}}),!1);var m=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!l(this))return m.call(this);var e=o(this);e&&e.close()},document.addEventListener("submit",(function(e){var t=e.target;if(l(t)){e.preventDefault();var n=o(t);if(n){var r=c.formSubmitter;r&&r.form===t?n.close(c.useValue||r.value):n.close(),c.formSubmitter=null}}}),!0)}c.forceRegisterDialog=c.forceRegisterDialog,c.registerDialog=c.registerDialog,"amd"in n(42)?void 0===(r=function(){return c}.call(t,n,t,e))||(e.exports=r):"object"===typeof e.exports?e.exports=c:window.dialogPolyfill=c}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return f}));var r=n(5),i=n(4),o=n(32),s=n.n(o),a=n(26);var l="undefined"===typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),u=l.Consumer,c=l.Provider,h=l;function f(e,t){var n,o=t||{},l=o.intlPropName,c=void 0===l?"intl":l,h=o.forwardRef,f=void 0!==h&&h,d=o.enforceContext,p=void 0===d||d,m=function(t){return i.createElement(u,null,(function(n){var o;p&&Object(a.c)(n);var s=((o={})[c]=n,o);return i.createElement(e,Object(r.__assign)({},t,s,{ref:f?t.forwardedRef:null}))}))};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,f?s()(i.forwardRef((function(e,t){return i.createElement(m,Object(r.__assign)({},e,{forwardedRef:t}))})),e):s()(m,e)}},,function(e,t,n){"use strict";function r(e){var t=Object.entries(e).filter((function(e){var t=e[1];return void 0!==t&&null!==t})).map((function(e){var t=e[0],n=e[1];return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(String(n)))}));return t.length>0?"?".concat(t.join("&")):""}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n.n(r),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","location","match"]));return i.a.createElement(g,r,i.a.createElement(o.d,{key:this.state.key,location:n},t))}}]),t}(i.a.Component);_.propTypes={location:u.a.shape({key:u.a.string,pathname:u.a.string})};var x=function(e){return i.a.createElement(o.b,{children:function(t){var n=t.location;return i.a.createElement(_,v({location:n},e))}})}},function(e,t,n){"use strict";var r=n(4),i=n.n(r),o=n(89),s=n.n(o),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=2&&"-"===n[r-2]&&(r-=2),n=n.slice(0,r)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=n(171);var o=((r=i)&&r.__esModule?r:{default:r}).default,s=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM;t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"cache",(function(){return Q})),n.d(t,"css",(function(){return M})),n.d(t,"cx",(function(){return T})),n.d(t,"flush",(function(){return P})),n.d(t,"getRegisteredStyles",(function(){return N})),n.d(t,"hydrate",(function(){return A})),n.d(t,"injectGlobal",(function(){return j})),n.d(t,"keyframes",(function(){return R})),n.d(t,"merge",(function(){return I})),n.d(t,"sheet",(function(){return F}));var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;td)&&(L=(Z=Z.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},f={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var d=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m=function(e){return 45===e.charCodeAt(1)},g=function(e){return null!=e&&"boolean"!==typeof e},v=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return m(e)?e:e.replace(d,"-$&").toLowerCase()})),y=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(p,(function(e,t,n){return b={name:t,styles:n,next:b},t}))}return 1===f[e]||m(e)||"number"!==typeof t||0===t?t:t+"px"};function O(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return b={name:n.name,styles:n.styles,next:b},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)b={name:i.name,styles:i.styles,next:b},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e||"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(n=_(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(x)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))),t&&(n=function(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(l("This arg looks like an email address, redacting."),S):e;var t}(n)),n}var E=!1,C=function(e){if(!E){E=!0;var t="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?t=e.gaAddress:e&&e.debug&&(t="https://www.google-analytics.com/analytics_debug.js");var n,r,i,o,s,a,l,u=e&&e.onerror;n=window,r=document,i="script",o=t,s="ga",n.GoogleAnalyticsObject=s,n[s]=n[s]||function(){(n[s].q=n[s].q||[]).push(arguments)},n[s].l=1*new Date,a=r.createElement(i),l=r.getElementsByTagName(i)[0],a.async=1,a.src=o,a.onerror=u,l.parentNode.insertBefore(a,l)}};function D(e){console.info("[react-ga]",e)}var P=[],A={calls:P,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function M(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r0&&(U.apply(void 0,t),L&&(D("called ga('arguments');"),D("with arguments: ".concat(JSON.stringify(t))))),window.ga}function G(e,t){e?"object"===R(e)?(0===Object.keys(e).length&&l("empty `fieldsObject` given to .set()"),X(t,"set",e),L&&(D("called ga('set', fieldsObject);"),D("with fieldsObject: ".concat(JSON.stringify(e))))):l("Expected `fieldsObject` arg to be an Object"):l("`fieldsObject` is required in .set()")}function K(e,t){X(t,"send",e),L&&(D("called ga('send', fieldObject);"),D("with fieldObject: ".concat(JSON.stringify(e))),D("with trackers: ".concat(JSON.stringify(t))))}function J(e,t,n){if(e){var r=_(e);if(""!==r){var i={};if(n&&(i.title=n),X(t,"send",function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,i=e.label,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n&&"number"===typeof r){var s={hitType:"timing",timingCategory:q(t),timingVar:q(n),timingValue:r};i&&(s.timingLabel=q(i)),K(s,o)}else l("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,i=e.value,o=e.nonInteraction,s=e.transport,a=I(e,T),u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n){var c={hitType:"event",eventCategory:q(t),eventAction:q(n)};r&&(c.eventLabel=q(r)),"undefined"!==typeof i&&("number"!==typeof i?l("Expected `args.value` arg to be a Number."):c.eventValue=i),"undefined"!==typeof o&&("boolean"!==typeof o?l("`args.nonInteraction` must be a boolean."):c.nonInteraction=o),"undefined"!==typeof s&&("string"!==typeof s?l("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(s)&&l("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),c.transport=s)),Object.keys(a).filter((function(e){return"dimension"===e.substr(0,9)})).forEach((function(e){c[e]=a[e]})),Object.keys(a).filter((function(e){return"metric"===e.substr(0,6)})).forEach((function(e){c[e]=a[e]})),K(c,u)}else l("args.category AND args.action are required in event()")}function re(e,t){var n=e.description,r=e.fatal,i={hitType:"exception"};n&&(i.exDescription=q(n)),"undefined"!==typeof r&&("boolean"!==typeof r?l("`args.fatal` must be a boolean."):i.exFatal=r),K(i,t)}var ie={require:function(e,t,n){if(e){var r=_(e);if(""!==r){var i=n?"".concat(n,".require"):"require";if(t){if("object"!==R(t))return void l("Expected `options` arg to be an Object");0===Object.keys(t).length&&l("Empty `options` given to .require()"),H(i,r,t),L&&D("called ga('require', '".concat(r,"', ").concat(JSON.stringify(t)))}else H(i,r),L&&D("called ga('require', '".concat(r,"');"))}else l("`name` cannot be an empty string in .require()")}else l("`name` is required in .require()")},execute:function(e,t){for(var n,r,i=arguments.length,o=new Array(i>2?i-2:0),s=2;s=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var x=5e3;function k(e,t){var n=void 0!==e.version?e.version:c,u=(e.debug,void 0===e.stateReconciler?p:e.stateReconciler),h=e.getStoredState||v,f=void 0!==e.timeout?e.timeout:x,d=null,g=!1,y=!0,b=function(e){return e._persist.rehydrated&&d&&!y&&d.update(e),e};return function(c,p){var v=c||{},S=v._persist,x=_(v,["_persist"]);if(p.type===a){var k=!1,E=function(t,n){k||(p.rehydrate(e.key,t,n),k=!0)};if(f&&setTimeout((function(){!k&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),f),y=!1,d||(d=m(e)),S)return w({},t(x,p),{_persist:S});if("function"!==typeof p.rehydrate||"function"!==typeof p.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return p.register(e.key),h(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){E(e)}),(function(e){E(void 0,e)}))}),(function(e){E(void 0,e)})),w({},t(x,p),{_persist:{version:n,rehydrated:!1}})}if(p.type===l)return g=!0,p.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key);return t.removeItem(n,O)}(e)),w({},t(x,p),{_persist:S});if(p.type===i)return p.result(d&&d.flush()),w({},t(x,p),{_persist:S});if(p.type===s)y=!0;else if(p.type===o){if(g)return w({},x,{_persist:w({},S,{rehydrated:!0})});if(p.key===e.key){var C=t(x,p),D=p.payload,P=w({},!1!==u&&void 0!==D?u(D,c,C,e):C,{_persist:w({},S,{rehydrated:!0})});return b(P)}}if(!S)return t(c,p);var A=t(x,p);return A===x?c:b(w({},A,{_persist:S}))}}var E=n(31);function C(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:return P({},e,{registry:[].concat(C(e.registry),[t.key])});case o:var n=e.registry.indexOf(t.key),r=C(e.registry);return r.splice(n,1),P({},e,{registry:r,bootstrapped:0===r.length});default:return e}};function N(e,t,n){var r=n||!1,c=Object(E.b)(I,T,t&&t.enhancer?t.enhancer:void 0),h=function(e){c.dispatch({type:u,key:e})},f=function(t,n,i){var s={type:o,payload:n,err:i,key:t};e.dispatch(s),c.dispatch(s),r&&d.getState().bootstrapped&&(r(),r=!1)},d=P({},c,{purge:function(){var t=[];return e.dispatch({type:l,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:i,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:s})},persist:function(){e.dispatch({type:a,register:h,rehydrate:f})}});return t&&t.manualPersist||d.persist(),d}},,function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function p(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var m=(0,s.polyfill)(d);t.default=m},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(10))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(10)),i=a(n(4)),o=n(55),s=n(143);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);h.childContextTypes={transitionGroup:r.default.object.isRequired},h.propTypes={},h.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,o.polyfill)(h);t.default=f,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveLocale=void 0;var r=n(150),i=n(151),o=n(41),s=n(152);t.ResolveLocale=function(e,t,n,a,l,u){for(var c,h=(c="lookup"===n.localeMatcher?(0,r.LookupMatcher)(e,t,u):(0,i.BestFitMatcher)(e,t,u)).locale,f={locale:"",dataLocale:h},d="-u",p=0,m=a;p2){var _=h.indexOf("-x-");if(-1===_)h+=d;else{var x=h.slice(0,_),k=h.slice(_,h.length);h=x+d+k}h=Intl.getCanonicalLocales(h)[0]}return f.locale=h,f}},function(e,t,n){"use strict";var r=function(e){var t,n;function r(t,n,r){var i;return(i=e.call(this,t)||this).listener=n,i.context=r,i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n(163));e.exports=r},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o=0)&&a(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")})));a=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"===typeof t&&s.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=u(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=u(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){a=null};var r,i=n(170),o=(r=i)&&r.__esModule?r:{default:r},s=n(57);var a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(i.openInstances.length),i.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){i=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},i=new r;t.default=i},,,,,,function(e,t,n){var r;r=function(){function e(e){this._targetElement=e,this._introItems=[],this._options={nextLabel:"Next →",prevLabel:"← Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0,buttonClass:"introjs-button"}}function t(e,t){var o=e.querySelectorAll("*[data-intro]"),s=[];if(this._options.steps)S(this._options.steps,function(e){var t=i(e);if(t.step=s.length+1,"string"===typeof t.element&&(t.element=document.querySelector(t.element)),"undefined"===typeof t.element||null===t.element){var n=document.querySelector(".introjsFloatingElement");null===n&&((n=document.createElement("div")).className="introjsFloatingElement",document.body.appendChild(n)),t.element=n,t.position="floating"}t.scrollTo=t.scrollTo||this._options.scrollTo,"undefined"===typeof t.disableInteraction&&(t.disableInteraction=this._options.disableInteraction),null!==t.element&&s.push(t)}.bind(this));else{var l;if(o.length<1)return!1;S(o,function(e){if((!t||e.getAttribute("data-intro-group")===t)&&"none"!==e.style.display){var n=parseInt(e.getAttribute("data-step"),10);l="undefined"!==typeof e.getAttribute("data-disable-interaction")?!!e.getAttribute("data-disable-interaction"):this._options.disableInteraction,n>0&&(s[n-1]={element:e,intro:e.getAttribute("data-intro"),step:parseInt(e.getAttribute("data-step"),10),tooltipClass:e.getAttribute("data-tooltipclass"),highlightClass:e.getAttribute("data-highlightclass"),position:e.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:e.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:l})}}.bind(this));var u=0;S(o,function(e){if((!t||e.getAttribute("data-intro-group")===t)&&null===e.getAttribute("data-step")){for(;"undefined"!==typeof s[u];)u++;l="undefined"!==typeof e.getAttribute("data-disable-interaction")?!!e.getAttribute("data-disable-interaction"):this._options.disableInteraction,s[u]={element:e,intro:e.getAttribute("data-intro"),step:u+1,tooltipClass:e.getAttribute("data-tooltipclass"),highlightClass:e.getAttribute("data-highlightclass"),position:e.getAttribute("data-position")||this._options.tooltipPosition,scrollTo:e.getAttribute("data-scrollto")||this._options.scrollTo,disableInteraction:l}}}.bind(this))}for(var c=[],h=0;hl.height?(n.className="introjs-arrow left-bottom",t.style.top="-"+(s.height-a.height-20)+"px"):n.className="introjs-arrow left";break;case"left":i||!0!==this._options.showStepNumbers||(t.style.top="15px"),a.top+s.height>l.height?(t.style.top="-"+(s.height-a.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",t.style.right=a.width+20+"px";break;case"floating":n.style.display="none",t.style.left="50%",t.style.top="50%",t.style.marginLeft="-"+s.width/2+"px",t.style.marginTop="-"+s.height/2+"px","undefined"!==typeof r&&null!==r&&(r.style.left="-"+(s.width/2+18)+"px",r.style.top="-"+(s.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right",d(a,h=0,s,t),t.style.top=a.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle",m=a.width/2-s.width/2,i&&(m+=5),d(a,m,s,t)&&(t.style.right=null,f(a,m,s,l,t)),t.style.top=a.height+20+"px";break;default:n.className="introjs-arrow top",f(a,0,s,l,t),t.style.top=a.height+20+"px"}}function f(e,t,n,r,i){return e.left+t+n.width>r.width?(i.style.left=r.width-n.width-e.left+"px",!1):(i.style.left=t+"px",!0)}function d(e,t,n,r){return e.left+e.width-t-n.width<0?(r.style.left=-e.left+"px",!1):(r.style.right=t+"px",!0)}function p(e,t,n){var r=this._options.positionPrecedence.slice(),i=P(),o=U(t).height+10,s=U(t).width+20,a=e.getBoundingClientRect(),l="floating";a.bottom+o+o>i.height&&m(r,"bottom"),a.top-o<0&&m(r,"top"),a.right+s>i.width&&m(r,"right"),a.left-s<0&&m(r,"left");var u=function(e){var t=e.indexOf("-");return-1!==t?e.substr(t):""}(n||"");return n&&(n=n.split("-")[0]),r.length&&(l="auto"!==n&&r.indexOf(n)>-1?n:r[0]),-1!==["top","bottom"].indexOf(l)&&(l+=function(e,t,n,r){var i=t/2,o=Math.min(n.width,window.screen.width),s=["-left-aligned","-middle-aligned","-right-aligned"];return o-e-1&&e.splice(e.indexOf(t),1)}function g(e){if(e){if(!this._introItems[this._currentStep])return;var t=this._introItems[this._currentStep],n=U(t.element),r=this._options.helperElementPadding;D(t.element)?k(e,"introjs-fixedTooltip"):E(e,"introjs-fixedTooltip"),"floating"===t.position&&(r=0),e.style.cssText="width: "+(n.width+r)+"px; height:"+(n.height+r)+"px; top:"+(n.top-r/2)+"px;left: "+(n.left-r/2)+"px;"}}function v(){var e=document.querySelector(".introjs-disableInteraction");null===e&&((e=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(e)),g.call(this,e)}function y(e){e.setAttribute("role","button"),e.tabIndex=0}function O(e){"undefined"!==typeof this._introChangeCallback&&this._introChangeCallback.call(this,e.element);var t,n,r,i,o=this,s=document.querySelector(".introjs-helperLayer"),u=document.querySelector(".introjs-tooltipReferenceLayer"),f="introjs-helperLayer";if("string"===typeof e.highlightClass&&(f+=" "+e.highlightClass),"string"===typeof this._options.highlightClass&&(f+=" "+this._options.highlightClass),null!==s){var d=u.querySelector(".introjs-helperNumberLayer"),p=u.querySelector(".introjs-tooltiptext"),m=u.querySelector(".introjs-arrow"),O=u.querySelector(".introjs-tooltip");if(r=u.querySelector(".introjs-skipbutton"),n=u.querySelector(".introjs-prevbutton"),t=u.querySelector(".introjs-nextbutton"),s.className=f,O.style.opacity=0,O.style.display="none",null!==d){var _=this._introItems[e.step-2>=0?e.step-2:0];(null!==_&&"forward"===this._direction&&"floating"===_.position||"backward"===this._direction&&"floating"===e.position)&&(d.style.opacity=0)}(i=q(e.element))!==document.body&&X(i,e.element),g.call(o,s),g.call(o,u),S(document.querySelectorAll(".introjs-fixParent"),(function(e){E(e,/introjs-fixParent/g)})),w(),o._lastShowElementTimer&&window.clearTimeout(o._lastShowElementTimer),o._lastShowElementTimer=window.setTimeout((function(){null!==d&&(d.innerHTML=e.step),p.innerHTML=e.intro,O.style.display="block",h.call(o,e.element,O,m,d),o._options.showBullets&&(u.querySelector(".introjs-bullets li > a.active").className="",u.querySelector('.introjs-bullets li > a[data-stepnumber="'+e.step+'"]').className="active"),u.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:"+z.call(o)+"%;",u.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",z.call(o)),O.style.opacity=1,d&&(d.style.opacity=1),"undefined"!==typeof r&&null!==r&&/introjs-donebutton/gi.test(r.className)?r.focus():"undefined"!==typeof t&&null!==t&&t.focus(),b.call(o,e.scrollTo,e,p)}),350)}else{var x=document.createElement("div"),D=document.createElement("div"),P=document.createElement("div"),A=document.createElement("div"),T=document.createElement("div"),I=document.createElement("div"),N=document.createElement("div"),j=document.createElement("div");x.className=f,D.className="introjs-tooltipReferenceLayer",(i=q(e.element))!==document.body&&X(i,e.element),g.call(o,x),g.call(o,D),this._targetElement.appendChild(x),this._targetElement.appendChild(D),P.className="introjs-arrow",T.className="introjs-tooltiptext",T.innerHTML=e.intro,I.className="introjs-bullets",!1===this._options.showBullets&&(I.style.display="none");var R=document.createElement("ul");R.setAttribute("role","tablist");var M=function(){o.goToStep(this.getAttribute("data-stepnumber"))};S(this._introItems,(function(t,n){var r=document.createElement("li"),i=document.createElement("a");r.setAttribute("role","presentation"),i.setAttribute("role","tab"),i.onclick=M,n===e.step-1&&(i.className="active"),y(i),i.innerHTML=" ",i.setAttribute("data-stepnumber",t.step),r.appendChild(i),R.appendChild(r)})),I.appendChild(R),N.className="introjs-progress",!1===this._options.showProgress&&(N.style.display="none");var F=document.createElement("div");F.className="introjs-progressbar",F.setAttribute("role","progress"),F.setAttribute("aria-valuemin",0),F.setAttribute("aria-valuemax",100),F.setAttribute("aria-valuenow",z.call(this)),F.style.cssText="width:"+z.call(this)+"%;",N.appendChild(F),j.className="introjs-tooltipbuttons",!1===this._options.showButtons&&(j.style.display="none"),A.className="introjs-tooltip",A.appendChild(T),A.appendChild(I),A.appendChild(N);var Q=document.createElement("span");!0===this._options.showStepNumbers&&(Q.className="introjs-helperNumberLayer",Q.innerHTML=e.step,D.appendChild(Q)),A.appendChild(P),D.appendChild(A),(t=document.createElement("a")).onclick=function(){o._introItems.length-1!==o._currentStep&&a.call(o)},y(t),t.innerHTML=this._options.nextLabel,(n=document.createElement("a")).onclick=function(){0!==o._currentStep&&l.call(o)},y(n),n.innerHTML=this._options.prevLabel,(r=document.createElement("a")).className=this._options.buttonClass+" introjs-skipbutton ",y(r),r.innerHTML=this._options.skipLabel,r.onclick=function(){o._introItems.length-1===o._currentStep&&"function"===typeof o._introCompleteCallback&&o._introCompleteCallback.call(o),o._introItems.length-1!==o._currentStep&&"function"===typeof o._introExitCallback&&o._introExitCallback.call(o),"function"===typeof o._introSkipCallback&&o._introSkipCallback.call(o),c.call(o,o._targetElement)},j.appendChild(r),this._introItems.length>1&&(j.appendChild(n),j.appendChild(t)),A.appendChild(j),h.call(o,e.element,A,P,Q),b.call(this,e.scrollTo,e,A)}var L=o._targetElement.querySelector(".introjs-disableInteraction");L&&L.parentNode.removeChild(L),e.disableInteraction&&v.call(o),0===this._currentStep&&this._introItems.length>1?("undefined"!==typeof r&&null!==r&&(r.className=this._options.buttonClass+" introjs-skipbutton"),"undefined"!==typeof t&&null!==t&&(t.className=this._options.buttonClass+" introjs-nextbutton"),!0===this._options.hidePrev?("undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-hidden"),"undefined"!==typeof t&&null!==t&&k(t,"introjs-fullbutton")):"undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton introjs-disabled"),"undefined"!==typeof r&&null!==r&&(r.innerHTML=this._options.skipLabel)):this._introItems.length-1===this._currentStep||1===this._introItems.length?("undefined"!==typeof r&&null!==r&&(r.innerHTML=this._options.doneLabel,k(r,"introjs-donebutton")),"undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),!0===this._options.hideNext?("undefined"!==typeof t&&null!==t&&(t.className=this._options.buttonClass+" introjs-nextbutton introjs-hidden"),"undefined"!==typeof n&&null!==n&&k(n,"introjs-fullbutton")):"undefined"!==typeof t&&null!==t&&(t.className=this._options.buttonClass+" introjs-nextbutton introjs-disabled")):("undefined"!==typeof r&&null!==r&&(r.className=this._options.buttonClass+" introjs-skipbutton"),"undefined"!==typeof n&&null!==n&&(n.className=this._options.buttonClass+" introjs-prevbutton"),"undefined"!==typeof t&&null!==t&&(t.className=this._options.buttonClass+" introjs-nextbutton"),"undefined"!==typeof r&&null!==r&&(r.innerHTML=this._options.skipLabel)),n.setAttribute("role","button"),t.setAttribute("role","button"),r.setAttribute("role","button"),"undefined"!==typeof t&&null!==t&&t.focus(),function(e){var t;if(e.element instanceof SVGElement)for(t=e.element.parentNode;null!==e.element.parentNode&&t.tagName&&"body"!==t.tagName.toLowerCase();)"svg"===t.tagName.toLowerCase()&&k(t,"introjs-showElement introjs-relativePosition"),t=t.parentNode;k(e.element,"introjs-showElement");var n=C(e.element,"position");for("absolute"!==n&&"relative"!==n&&"fixed"!==n&&k(e.element,"introjs-relativePosition"),t=e.element.parentNode;null!==t&&t.tagName&&"body"!==t.tagName.toLowerCase();){var r=C(t,"z-index"),i=parseFloat(C(t,"opacity")),o=C(t,"transform")||C(t,"-webkit-transform")||C(t,"-moz-transform")||C(t,"-ms-transform")||C(t,"-o-transform");(/[0-9]+/.test(r)||i<1||"none"!==o&&void 0!==o)&&k(t,"introjs-fixParent"),t=t.parentNode}}(e),"undefined"!==typeof this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,e.element)}function b(e,t,n){var r;if("off"!==e&&this._options.scrollToElement&&(r="tooltip"===e?n.getBoundingClientRect():t.element.getBoundingClientRect(),!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}(t.element))){var i=P().height;r.bottom-(r.bottom-r.top)<0||t.element.clientHeight>i?window.scrollBy(0,r.top-(i/2-r.height/2)-this._options.scrollPadding):window.scrollBy(0,r.top-(i/2-r.height/2)+this._options.scrollPadding)}}function w(){S(document.querySelectorAll(".introjs-showElement"),(function(e){E(e,/introjs-[a-zA-Z]+/g)}))}function S(e,t,n){if(e)for(var r=0,i=e.length;r10*m&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var s=(i.accumulatedTime-Math.floor(i.accumulatedTime/m)*m)/m,a=Math.floor(i.accumulatedTime/m),u=v(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,n,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),h=u[0],d=u[1],p=u[2],y=u[3],O=u[4],b=0;b1?r-1:0),o=1;o0&&(e.strPos=e.currentElContent.length-1,e.strings.unshift(e.currentElContent)),e.sequence=[],e.strings)e.sequence[l]=l;e.arrayPos=0,e.stopNum=0,e.loop=e.options.loop,e.loopCount=e.options.loopCount,e.curLoop=0,e.shuffle=e.options.shuffle,e.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},e.typingComplete=!1,e.autoInsertCss=e.options.autoInsertCss,e.autoInsertCss&&(this.appendCursorAnimationCss(e),this.appendFadeOutAnimationCss(e))},t.getCurrentElContent=function(e){return e.attr?e.el.getAttribute(e.attr):e.isInput?e.el.value:"html"===e.contentType?e.el.innerHTML:e.el.textContent},t.appendCursorAnimationCss=function(e){var t="data-typed-js-cursor-css";if(e.showCursor&&!document.querySelector("["+t+"]")){var n=document.createElement("style");n.setAttribute(t,"true"),n.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(n)}},t.appendFadeOutAnimationCss=function(e){var t="data-typed-fadeout-js-css";if(e.fadeOut&&!document.querySelector("["+t+"]")){var n=document.createElement("style");n.setAttribute(t,"true"),n.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(n)}},e}()),s=new(function(){function e(){}var t=e.prototype;return t.typeHtmlChars=function(e,t,n){if("html"!==n.contentType)return t;var r=e.substring(t).charAt(0);if("<"===r||"&"===r){var i;for(i="<"===r?">":";";e.substring(t+1).charAt(0)!==i&&!(1+ ++t>e.length););t++}return t},t.backSpaceHtmlChars=function(e,t,n){if("html"!==n.contentType)return t;var r=e.substring(t).charAt(0);if(">"===r||";"===r){var i;for(i=">"===r?"<":"&";e.substring(t-1).charAt(0)!==i&&!(--t<0););t--}return t},e}()),a=function(){function e(e,t){o.load(this,t,e),this.begin()}var t=e.prototype;return t.toggle=function(){this.pause.status?this.start():this.stop()},t.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},t.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},t.destroy=function(){this.reset(!1),this.options.onDestroy(this)},t.reset=function(e){void 0===e&&(e=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,e&&(this.insertCursor(),this.options.onReset(this),this.begin())},t.begin=function(){var e=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){0===e.strPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos):e.backspace(e.strings[e.sequence[e.arrayPos]],e.strPos)}),this.startDelay)},t.typewrite=function(e,t){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var r=this.humanizer(this.typeSpeed),i=1;!0!==this.pause.status?this.timeout=setTimeout((function(){t=s.typeHtmlChars(e,t,n);var r=0,o=e.substring(t);if("^"===o.charAt(0)&&/^\^\d+/.test(o)){var a=1;a+=(o=/\d+/.exec(o)[0]).length,r=parseInt(o),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),e=e.substring(0,t)+e.substring(t+a),n.toggleBlinking(!0)}if("`"===o.charAt(0)){for(;"`"!==e.substring(t+i).charAt(0)&&(i++,!(t+i>e.length)););var l=e.substring(0,t),u=e.substring(l.length+1,t+i),c=e.substring(t+i+1);e=l+u+c,i--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),t>=e.length?n.doneTyping(e,t):n.keepTyping(e,t,i),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r):this.setPauseStatus(e,t,!0)},t.keepTyping=function(e,t,n){0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var r=e.substring(0,t+=n);this.replaceText(r),this.typewrite(e,t)},t.doneTyping=function(e,t){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(e,t)}),this.backDelay))},t.backspace=function(e,t){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){t=s.backSpaceHtmlChars(e,t,n);var r=e.substring(0,t);if(n.replaceText(r),n.smartBackspace){var i=n.strings[n.arrayPos+1];n.stopNum=i&&r===i.substring(0,t)?t:0}t>n.stopNum?(t--,n.backspace(e,t)):t<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],t))}),r)}else this.setPauseStatus(e,t,!1)},t.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},t.setPauseStatus=function(e,t,n){this.pause.typewrite=n,this.pause.curString=e,this.pause.curStrPos=t},t.toggleBlinking=function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},t.humanizer=function(e){return Math.round(Math.random()*e/2)+e},t.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))},t.initFadeOut=function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)}),this.fadeOutDelay)},t.replaceText=function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.el.innerHTML=e:this.el.textContent=e},t.bindFocusEvents=function(){var e=this;this.isInput&&(this.el.addEventListener("focus",(function(t){e.stop()})),this.el.addEventListener("blur",(function(t){e.el.value&&0!==e.el.value.length||e.start()})))},t.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},e}()},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(6);function i(e){var{type:t="scroll",events:n}=e;return r.e.fromClass(class{constructor(e){this.dom=void 0,this.view=void 0,this.view=e,this.dom="dom"===t?e.dom:"content"===t?e.contentDOM:e.scrollDOM,Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.addEventListener(e,n[e])}))}destroy(){Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.removeEventListener(e,n[e])}))}})}function o(e){return i({type:"content",events:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Steps",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Hints",{enumerable:!0,get:function(){return i.default}});var r=o(n(194)),i=o(n(195));function o(e){return e&&e.__esModule?e:{default:e}}},,,,,,function(e,t,n){"use strict";var r;t.__esModule=!0,t.default=void 0;var i=(0,((r=n(202))&&r.__esModule?r:{default:r}).default)("local");t.default=i},function(e,t,n){"use strict";var r=n(38),i=n.n(r),o=n(92),s=n.n(o),a=n(4),l=n(0),u=n(6),c=n(7),h=n(8);function f(e,t){return n=>{let{state:r,dispatch:i}=n;if(r.readOnly)return!1;let o=e(t,r);return!!o&&(i(r.update(o)),!0)}}const d=f(O,0),p=f(y,0),m=f(((e,t)=>y(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function g(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const v=50;function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((e=>g(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,t,n,r){let i,o,{open:s,close:a}=t,l=e.sliceDoc(n-v,n),u=e.sliceDoc(r,r+v),c=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(u)[0].length,f=l.length-c;if(l.slice(f-s.length,f)==s&&u.slice(h,h+a.length)==a)return{open:{pos:n-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-n<=2*v?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+v),o=e.sliceDoc(r-v,r));let d=/^\s*/.exec(i)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return i.slice(d,d+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:n+d+s.length,margin:/\s/.test(i.charAt(d+s.length))?1:0},close:{pos:r-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=[],i=-1;for(let{from:o,to:s}of n){let e=r.length,n=1e9,a=g(t,o).line;if(a){for(let e=o;e<=s;){let l=t.doc.lineAt(e);if(l.from>i&&(o==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,o=l.text.slice(e,e+a.length)==a?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:i,indent:o,empty:s,single:a}of r)!a&&s||e.push({from:t.from+o,insert:i+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const b=l.a.define(),w=l.a.define(),S=l.g.define(),_=l.g.define({combine:e=>Object(l.s)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),x=l.n.define({create:()=>B.empty,update(e,t){let n=t.state.facet(_),r=t.annotation(b);if(r){let i=T.fromTransaction(t,r.selection),o=r.side,s=0==o?e.undone:e.done;return s=i?I(s,s.length,n.minDepth,i):M(s,t.startState.selection),new B(0==o?r.rest:s,0==o?s:r.rest)}let i=t.annotation(w);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(l.p.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=T.fromTransaction(t),s=t.annotation(l.p.time),a=t.annotation(l.p.userEvent);return o?e=e.addChanges(o,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new B(e.done.map(T.fromJSON),e.undone.map(T.fromJSON))});function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[x,_.of(e),u.c.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?C:"historyRedo"==e.inputType?D:null;return!!n&&(e.preventDefault(),n(t))}})]}function E(e,t){return function(n){let{state:r,dispatch:i}=n;if(!t&&r.readOnly)return!1;let o=r.field(x,!1);if(!o)return!1;let s=o.pop(e,r,t);return!!s&&(i(s),!0)}}const C=E(0,!1),D=E(1,!1),P=E(0,!0),A=E(1,!0);class T{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new T(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new T(e.changes&&l.c.fromJSON(e.changes),[],e.mapped&&l.b.fromJSON(e.mapped),e.startSelection&&l.e.fromJSON(e.startSelection),e.selectionsAfter.map(l.e.fromJSON))}static fromTransaction(e,t){let n=j;for(let r of e.startState.facet(S)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new T(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,j)}static selection(e){return new T(void 0,j,void 0,void 0,e)}}function I(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function N(e,t){return e.length?t.length?e.concat(t):e:t}const j=[],R=200;function M(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-R));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),I(e,e.length-1,1e9,n.setSelAfter(r)))}return[T.selection([t])]}function F(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Q(e,t){if(!e.length)return e;let n=e.length,r=j;for(;n;){let i=L(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[T.selection(r)]:j}function L(e,t,n){let r=N(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):j,n);if(!e.changes)return T.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new T(i,l.m.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}const $=/^(input\.type|delete)($|\.)/;class B{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new B(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||$.test(n))&&(!s.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let s=0;s=e&&i<=t&&(r=!0)}})),r}(s.changes,e.changes))||"input.type.compose"==n)?I(o,o.length-1,r.minDepth,new T(e.changes.compose(s.changes),N(e.effects,s.effects),s.mapped,s.startSelection,j)):I(o,o.length,r.minDepth,e),new B(o,j,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:j;return i.length>0&&t-this.prevTimee.empty!=s.ranges[t].empty)).length)?this:new B(M(this.done,e),this.undone,t,n);var o,s}addMapping(e){return new B(Q(this.done,e),Q(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||t.selection;if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:b.of({side:e,rest:F(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?j:r.slice(0,r.length-1);return i.mapped&&(n=Q(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:b.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}B.empty=new B(j,j);const Z=[{key:"Mod-z",run:C,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:D,preventDefault:!0},{linux:"Ctrl-Shift-z",run:D,preventDefault:!0},{key:"Mod-u",run:P,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:A,preventDefault:!0}];function W(e,t){return l.e.create(e.ranges.map(t),e.mainIndex)}function U(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function q(e,t){let{state:n,dispatch:r}=e,i=W(n.selection,t);return!i.eq(n.selection)&&(r(U(n,i)),!0)}function X(e,t){return l.e.cursor(t?e.to:e.from)}function z(e,t){return q(e,(n=>n.empty?e.moveByChar(n,t):X(n,t)))}function V(e){return e.textDirectionAt(e.state.selection.main.head)==u.b.LTR}const Y=e=>z(e,!V(e)),H=e=>z(e,V(e));function G(e,t){return q(e,(n=>n.empty?e.moveByGroup(n,t):X(n,t)))}"undefined"!=typeof Intl&&Intl.Segmenter;function K(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function J(e,t,n){let r,i,o=Object(c.x)(e).resolveInner(t.head),s=n?h.c.closedBy:h.c.openedBy;for(let a=t.head;;){let t=n?o.childAfter(a):o.childBefore(a);if(!t)break;K(e,t,s)?o=t:a=n?t.to:t.from}return i=o.type.prop(s)&&(r=n?Object(c.u)(e,o.from,1):Object(c.u)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,l.e.cursor(i,n?-1:1)}function ee(e,t){return q(e,(n=>{if(!n.empty)return X(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const te=e=>ee(e,!1),ne=e=>ee(e,!0);function re(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):X(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),a=s.top+r.marginTop,l=s.bottom-r.marginBottom;t&&t.top>a&&t.bottomie(e,!1),se=e=>ie(e,!0);function ae(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=l.e.cursor(r.from+n))}return i}function le(e,t,n){let r=!1,i=W(e.selection,(t=>{let i=Object(c.u)(e,t.head,-1)||Object(c.u)(e,t.head,1)||t.head>0&&Object(c.u)(e,t.head-1,1)||t.head{let n=t(e);return l.e.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(U(e.state,n)),!0)}function ce(e,t){return ue(e,(n=>e.moveByChar(n,t)))}const he=e=>ce(e,!V(e)),fe=e=>ce(e,V(e));function de(e,t){return ue(e,(n=>e.moveByGroup(n,t)))}function pe(e,t){return ue(e,(n=>e.moveVertically(n,t)))}const me=e=>pe(e,!1),ge=e=>pe(e,!0);function ve(e,t){return ue(e,(n=>e.moveVertically(n,t,re(e).height)))}const ye=e=>ve(e,!1),Oe=e=>ve(e,!0),be=e=>{let{state:t,dispatch:n}=e;return n(U(t,{anchor:0})),!0},we=e=>{let{state:t,dispatch:n}=e;return n(U(t,{anchor:t.doc.length})),!0},Se=e=>{let{state:t,dispatch:n}=e;return n(U(t,{anchor:t.selection.main.anchor,head:0})),!0},_e=e=>{let{state:t,dispatch:n}=e;return n(U(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function xe(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let s=t(r);si&&(n="delete.forward",s=ke(e,s,!0)),i=Math.min(i,s),o=Math.max(o,s)}else i=ke(e,i,!1),o=ke(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:l.e.cursor(i,it(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const Ee=(e,t)=>xe(e,(n=>{let r,i,o=n.from,{state:s}=e,a=s.doc.lineAt(o);if(!t&&o>a.from&&oEe(e,!1),De=e=>Ee(e,!0),Pe=(e,t)=>xe(e,(n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let a=Object(l.u)(o.text,r-o.from,t)+o.from,u=o.text.slice(Math.min(r,a)-o.from,Math.max(r,a)-o.from),c=s(u);if(null!=e&&c!=e)break;" "==u&&r==n.head||(e=c),r=a}return r})),Ae=e=>Pe(e,!1);function Te(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function Ie(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of Te(e)){if(n?o.to==e.doc.length:0==o.from)continue;let t=e.doc.lineAt(n?o.to+1:o.from-1),s=t.length+1;if(n){r.push({from:o.to,to:t.to},{from:o.from,insert:t.text+e.lineBreak});for(let t of o.ranges)i.push(l.e.range(Math.min(e.doc.length,t.anchor+s),Math.min(e.doc.length,t.head+s)))}else{r.push({from:t.from,to:o.from},{from:o.to,insert:e.lineBreak+t.text});for(let e of o.ranges)i.push(l.e.range(e.anchor-s,e.head-s))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:l.e.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Ne(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of Te(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const je=Re(!1);function Re(e){return t=>{let{state:n,dispatch:r}=t;if(n.readOnly)return!1;let i=n.changeByRange((t=>{let{from:r,to:i}=t,o=n.doc.lineAt(r),s=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=Object(c.x)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(h.c.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(n,r);e&&(r=i=(i<=o.to?o:n.doc.lineAt(i)).to);let a=new c.b(n,{simulateBreak:r,simulateDoubleBreak:!!s}),u=Object(c.p)(a,r);for(null==u&&(u=Object(l.t)(/^\s*/.exec(n.doc.lineAt(r).text)[0],n.tabSize));io.from&&r{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let o=e.changes(i);return{changes:i,range:l.e.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const Fe=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Me(t,((e,n)=>{n.push({from:e.from,insert:t.facet(c.t)})})),{userEvent:"input.indent"})),!0)},Qe=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Me(t,((e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let i=Object(l.t)(r,t.tabSize),o=0,s=Object(c.s)(t,Math.max(0,i-Object(c.o)(t)));for(;oq(e,(t=>J(e.state,t,!V(e)))),shift:e=>ue(e,(t=>J(e.state,t,!V(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>q(e,(t=>J(e.state,t,V(e)))),shift:e=>ue(e,(t=>J(e.state,t,V(e))))},{key:"Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return Ie(t,n,!1)}},{key:"Shift-Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return Ne(t,n,!1)}},{key:"Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return Ie(t,n,!0)}},{key:"Shift-Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return Ne(t,n,!0)}},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e,r=t.selection,i=null;return r.ranges.length>1?i=l.e.create([r.main]):r.main.empty||(i=l.e.create([l.e.cursor(r.main.head)])),!!i&&(n(U(t,i)),!0)}},{key:"Mod-Enter",run:Re(!0)},{key:"Alt-l",mac:"Ctrl-l",run:e=>{let{state:t,dispatch:n}=e,r=Te(t).map((e=>{let{from:n,to:r}=e;return l.e.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:l.e.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:e=>{let{state:t,dispatch:n}=e,r=W(t.selection,(e=>{var n;for(let r=Object(c.x)(t).resolveStack(e.from,1);r;r=r.next){let{node:t}=r;if((t.from=e.to||t.to>e.to&&t.from<=e.from)&&(null===(n=t.parent)||void 0===n?void 0:n.parent))return l.e.range(t.to,t.from)}return e}));return n(U(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:Qe},{key:"Mod-]",run:Fe},{key:"Mod-Alt-\\",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=Object.create(null),i=new c.b(t,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),o=Me(t,((e,n,o)=>{let s=Object(c.p)(i,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let a=/^\s*/.exec(e.text)[0],l=Object(c.s)(t,s);(a!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Te(t).map((e=>{let{from:n,to:r}=e;return n>0?n--:re.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:e=>{let{state:t,dispatch:n}=e;return le(t,n,!1)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=g(e.state,n.from);return r.line?d(e):!!r.block&&m(e)}},{key:"Alt-A",run:p}].concat([{key:"ArrowLeft",run:Y,shift:he,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>G(e,!V(e)),shift:e=>de(e,!V(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>q(e,(t=>ae(e,t,!V(e)))),shift:e=>ue(e,(t=>ae(e,t,!V(e)))),preventDefault:!0},{key:"ArrowRight",run:H,shift:fe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>G(e,V(e)),shift:e=>de(e,V(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>q(e,(t=>ae(e,t,V(e)))),shift:e=>ue(e,(t=>ae(e,t,V(e)))),preventDefault:!0},{key:"ArrowUp",run:te,shift:me,preventDefault:!0},{mac:"Cmd-ArrowUp",run:be,shift:Se},{mac:"Ctrl-ArrowUp",run:oe,shift:ye},{key:"ArrowDown",run:ne,shift:ge,preventDefault:!0},{mac:"Cmd-ArrowDown",run:we,shift:_e},{mac:"Ctrl-ArrowDown",run:se,shift:Oe},{key:"PageUp",run:oe,shift:ye},{key:"PageDown",run:se,shift:Oe},{key:"Home",run:e=>q(e,(t=>ae(e,t,!1))),shift:e=>ue(e,(t=>ae(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:be,shift:Se},{key:"End",run:e=>q(e,(t=>ae(e,t,!0))),shift:e=>ue(e,(t=>ae(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:we,shift:_e},{key:"Enter",run:je},{key:"Mod-a",run:e=>{let{state:t,dispatch:n}=e;return n(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:Ce,shift:Ce},{key:"Delete",run:De},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Ae},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Pe(e,!0)},{mac:"Mod-Backspace",run:e=>xe(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>xe(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.headq(e,(t=>l.e.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>ue(e,(t=>l.e.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>q(e,(t=>l.e.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>ue(e,(t=>l.e.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:De},{key:"Ctrl-h",run:Ce},{key:"Ctrl-k",run:e=>xe(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:l.o.of(["",""])},range:l.e.cursor(e.from)})));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:Object(l.u)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:Object(l.u)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:l.e.cursor(o)}}));return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:se}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),$e={key:"Tab",run:Fe,shift:Qe};function Be(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class Ue{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(We(e)):We,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Object(l.q)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Object(l.w)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Object(l.r)(e);let r=this.normalize(t);for(let i=0,o=n;;i++){let e=r.charCodeAt(i),s=this.match(e,o);if(i==r.length-1){if(s)return this.value=s,this;break}o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=qe,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new He(e,t,n,r,i);this.re=new RegExp(t,Xe+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Ge(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=Ge(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new Ye(t,e.sliceString(t,n));return Ve.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Ge(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ye.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Ge(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function Ke(e){let t=Be("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,s,a,c]=n,h=a?+a.slice(1):0,f=s?+s:i.number;if(s&&c){let e=f/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),f=Math.round(r.doc.lines*e)}else s&&o&&(f=f*("-"==o?-1:1)+i.number);let d=r.doc.line(Math.max(1,Math.min(r.doc.lines,f))),p=l.e.cursor(d.from+Math.max(0,Math.min(h,d.length)));e.dispatch({effects:[Je.of(!1),u.c.scrollIntoView(p.from,{y:"center"})],selection:p}),e.focus()}return{dom:Be("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Je.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},Be("label",e.state.phrase("Go to line"),": ",t)," ",Be("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(ze.prototype[Symbol.iterator]=He.prototype[Symbol.iterator]=function(){return this});const Je=l.m.define(),et=l.n.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(Je)&&(e=n.value);return e},provide:e=>u.w.from(e,(e=>e?Ke:null))}),tt=u.c.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),nt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},rt=l.g.define({combine:e=>Object(l.s)(e,nt,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});const it=u.a.mark({class:"cm-selectionMatch"}),ot=u.a.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function st(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=l.d.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=l.d.Word)}const at=u.e.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(rt),{state:n}=e,r=n.selection;if(r.ranges.length>1)return u.a.none;let i,o=r.main,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return u.a.none;let e=n.wordAt(o.head);if(!e)return u.a.none;s=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return u.a.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),s=n.charCategorizer(o.head),!st(s,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==l.d.Word&&e(t.sliceDoc(r-1,r))==l.d.Word}(s,n,o.from,o.to))return u.a.none}else if(i=n.sliceDoc(o.from,o.to).trim(),!i)return u.a.none}let a=[];for(let l of e.visibleRanges){let e=new Ue(n.doc,i,l.from,l.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!s||st(s,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?a.push(ot.range(r,i)):(r>=o.to||i<=o.from)&&a.push(it.range(r,i)),a.length>t.maxMatches))return u.a.none}}return u.a.set(a)}},{decorations:e=>e.decorations}),lt=u.c.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const ut=l.g.define({combine:e=>Object(l.s)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Qt(e),scrollToMatch:e=>u.c.scrollIntoView(e)})});class ct{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Xe),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new vt(this):new dt(this)}getCursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:l.f.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?pt(this,r,t,n):ft(this,r,t,n)}}class ht{constructor(e){this.spec=e}}function ft(e,t,n,r){return new Ue(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=ft(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function pt(e,t,n,r){return new ze(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(mt(n.input,n.index))!=l.d.Word||i(gt(n.input,n.index))!=l.d.Word)&&(i(gt(n.input,n.index+n[0].length))!=l.d.Word||i(mt(n.input,n.index+n[0].length))!=l.d.Word)):void 0},n,r);var i}function mt(e,t){return e.slice(Object(l.u)(e,t,!1),t)}function gt(e,t){return e.slice(t,Object(l.u)(e,t))}class vt extends ht{nextMatch(e,t,n){let r=pt(this.spec,e,n,e.doc.length).next();return r.done&&(r=pt(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=pt(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=pt(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const yt=l.m.define(),Ot=l.m.define(),bt=l.n.define({create:e=>new wt(It(e).create(),null),update(e,t){for(let n of t.effects)n.is(yt)?e=new wt(n.value.create(),e.panel):n.is(Ot)&&(e=new wt(e.query,n.value?Tt:null));return e},provide:e=>u.w.from(e,(e=>e.panel))});class wt{constructor(e,t){this.query=e,this.panel=t}}const St=u.a.mark({class:"cm-searchMatch"}),_t=u.a.mark({class:"cm-searchMatch cm-searchMatch-selected"}),xt=u.e.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(bt))}update(e){let t=e.state.field(bt);(t!=e.startState.field(bt)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight(e){let{query:t,panel:n}=e;if(!n||!t.spec.valid)return u.a.none;let{view:r}=this,i=new l.k;for(let o=0,s=r.visibleRanges,a=s.length;os[o+1].from-500;)n=s[++o].to;t.highlight(r.state,e,n,((e,t)=>{let n=r.state.selection.ranges.some((n=>n.from==e&&n.to==t));i.add(e,t,n?_t:St)}))}return i.finish()}},{decorations:e=>e.decorations});function kt(e){return t=>{let n=t.state.field(bt,!1);return n&&n.query.spec.valid?e(t,n):Rt(t)}}const Et=kt(((e,t)=>{let{query:n}=t,{to:r}=e.state.selection.main,i=n.nextMatch(e.state,r,r);if(!i)return!1;let o=l.e.single(i.from,i.to),s=e.state.facet(ut);return e.dispatch({selection:o,effects:[Zt(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"}),jt(e),!0})),Ct=kt(((e,t)=>{let{query:n}=t,{state:r}=e,{from:i}=r.selection.main,o=n.prevMatch(r,i,i);if(!o)return!1;let s=l.e.single(o.from,o.to),a=e.state.facet(ut);return e.dispatch({selection:s,effects:[Zt(e,o),a.scrollToMatch(s.main,e)],userEvent:"select.search"}),jt(e),!0})),Dt=kt(((e,t)=>{let{query:n}=t,r=n.matchAll(e.state,1e3);return!(!r||!r.length)&&(e.dispatch({selection:l.e.create(r.map((e=>l.e.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),Pt=kt(((e,t)=>{let{query:n}=t,{state:r}=e,{from:i,to:o}=r.selection.main;if(r.readOnly)return!1;let s=n.nextMatch(r,i,i);if(!s)return!1;let a,c,h=[],f=[];if(s.from==i&&s.to==o&&(c=r.toText(n.getReplacement(s)),h.push({from:s.from,to:s.to,insert:c}),s=n.nextMatch(r,s.from,s.to),f.push(u.c.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+"."))),s){let t=0==h.length||h[0].from>=s.to?0:s.to-s.from-c.length;a=l.e.single(s.from-t,s.to-t),f.push(Zt(e,s)),f.push(r.facet(ut).scrollToMatch(a.main,e))}return e.dispatch({changes:h,selection:a,effects:f,userEvent:"input.replace"}),!0})),At=kt(((e,t)=>{let{query:n}=t;if(e.state.readOnly)return!1;let r=n.matchAll(e.state,1e9).map((e=>{let{from:t,to:r}=e;return{from:t,to:r,insert:n.getReplacement(e)}}));if(!r.length)return!1;let i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:u.c.announce.of(i),userEvent:"input.replace.all"}),!0}));function Tt(e){return e.state.facet(ut).createPanel(e)}function It(e,t){var n,r,i,o,s;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let u=e.facet(ut);return new ct({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:u.literal,regexp:null!==(o=null===t||void 0===t?void 0:t.regexp)&&void 0!==o?o:u.regexp,wholeWord:null!==(s=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==s?s:u.wholeWord})}function Nt(e){let t=Object(u.j)(e,Tt);return t&&t.dom.querySelector("[main-field]")}function jt(e){let t=Nt(e);t&&t==e.root.activeElement&&t.select()}const Rt=e=>{let t=e.state.field(bt,!1);if(t&&t.panel){let n=Nt(e);if(n&&n!=e.root.activeElement){let r=It(e.state,t.query.spec);r.valid&&e.dispatch({effects:yt.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Ot.of(!0),t?yt.of(It(e.state,t.query.spec)):l.m.appendConfig.of(Ut)]});return!0},Mt=e=>{let t=e.state.field(bt,!1);if(!t||!t.panel)return!1;let n=Object(u.j)(e,Tt);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Ot.of(!1)}),!0},Ft=[{key:"Mod-f",run:Rt,scope:"editor search-panel"},{key:"F3",run:Et,shift:Ct,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Et,shift:Ct,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Mt,scope:"editor search-panel"},{key:"Mod-Shift-l",run:e=>{let{state:t,dispatch:n}=e,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:i,to:o}=r.main,s=[],a=0;for(let u=new Ue(t.doc,t.sliceDoc(i,o));!u.next().done;){if(s.length>1e3)return!1;u.value.from==i&&(a=s.length),s.push(l.e.range(u.value.from,u.value.to))}return n(t.update({selection:l.e.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=Object(u.j)(e,Ke);if(!t){let n=[Je.of(!0)];null==e.state.field(et,!1)&&n.push(l.m.appendConfig.of([et,tt])),e.dispatch({effects:n}),t=Object(u.j)(e,Ke)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:e=>{let{state:t,dispatch:n}=e,{ranges:r}=t.selection;if(r.some((e=>e.from===e.to)))return(e=>{let{state:t,dispatch:n}=e,{selection:r}=t,i=l.e.create(r.ranges.map((e=>t.wordAt(e.head)||l.e.cursor(e.head))),r.mainIndex);return!i.eq(r)&&(n(t.update({selection:i})),!0)})({state:t,dispatch:n});let i=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=i)))return!1;let o=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let s=!1,a=new Ue(e.doc,t,r[r.length-1].to);;){if(a.next(),!a.done){if(s&&r.some((e=>e.from==a.value.from)))continue;if(o){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(s)return null;a=new Ue(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(l.e.range(o.from,o.to),!1),effects:u.c.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class Qt{constructor(e){this.view=e;let t=this.query=e.state.field(bt).query.spec;function n(e,t,n){return Be("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Be("input",{value:t.search,placeholder:Lt(e,"Find"),"aria-label":Lt(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Be("input",{value:t.replace,placeholder:Lt(e,"Replace"),"aria-label":Lt(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Be("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Be("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Be("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Be("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>Et(e)),[Lt(e,"next")]),n("prev",(()=>Ct(e)),[Lt(e,"previous")]),n("select",(()=>Dt(e)),[Lt(e,"all")]),Be("label",null,[this.caseField,Lt(e,"match case")]),Be("label",null,[this.reField,Lt(e,"regexp")]),Be("label",null,[this.wordField,Lt(e,"by word")]),...e.state.readOnly?[]:[Be("br"),this.replaceField,n("replace",(()=>Pt(e)),[Lt(e,"replace")]),n("replaceAll",(()=>At(e)),[Lt(e,"replace all")])],Be("button",{name:"close",onclick:()=>Mt(e),"aria-label":Lt(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new ct({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:yt.of(e)}))}keydown(e){Object(u.v)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Ct:Et)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Pt(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(yt)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ut).top}}function Lt(e,t){return e.state.phrase(t)}const $t=30,Bt=/[\s\.,:;?!]/;function Zt(e,t){let{from:n,to:r}=t,i=e.state.doc.lineAt(n),o=e.state.doc.lineAt(r).to,s=Math.max(i.from,n-$t),a=Math.min(o,r+$t),l=e.state.sliceDoc(s,a);if(s!=i.from)for(let u=0;u<$t;u++)if(!Bt.test(l[u+1])&&Bt.test(l[u])){l=l.slice(u);break}if(a!=o)for(let u=l.length-1;u>l.length-$t;u--)if(!Bt.test(l[u-1])&&Bt.test(l[u])){l=l.slice(0,u);break}return u.c.announce.of("".concat(e.state.phrase("current match"),". ").concat(l," ").concat(e.state.phrase("on line")," ").concat(i.number,"."))}const Wt=u.c.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Ut=[bt,l.i.low(xt),Wt];var qt=n(16);class Xt{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class zt{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,i=n.facet(an).markerFilter;i&&(r=i(r));let o=u.a.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?u.a.widget({widget:new cn(e),diagnostic:e}).range(e.from):u.a.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new zt(o,t,Vt(o))}}function Vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,((e,n,i)=>{let{spec:o}=i;if(!t||o.diagnostic==t)return r=new Xt(e,n,o.diagnostic),!1})),r}function Yt(e,t){let n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(Gt)))&&!e.changes.touchesRange(n.from,n.to))}function Ht(e,t){return e.field(en,!1)?t:t.concat(l.m.appendConfig.of(gn))}const Gt=l.m.define(),Kt=l.m.define(),Jt=l.m.define(),en=l.n.define({create:()=>new zt(u.a.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=Vt(n,e.selected.diagnostic,i)||Vt(n,null,i)}e=new zt(n,e.panel,r)}for(let n of t.effects)n.is(Gt)?e=zt.init(n.value,e.panel,t.state):n.is(Kt)?e=new zt(e.diagnostics,n.value?fn.open:null,e.selected):n.is(Jt)&&(e=new zt(e.diagnostics,e.panel,n.value));return e},provide:e=>[u.w.from(e,(e=>e.panel)),u.c.decorations.from(e,(e=>e.diagnostics))]});const tn=u.a.mark({class:"cm-lintRange cm-lintRange-active"});function nn(e,t,n){let{diagnostics:r}=e.state.field(en),i=[],o=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,a)=>{let{spec:l}=a;t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t({dom:rn(e,i)})}:null}function rn(e,t){return Be("ul",{class:"cm-tooltip-lint"},t.map((t=>un(e,t,!1))))}const on=e=>{let t=e.state.field(en,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Kt.of(!1)}),!0)},sn=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(en,!1);t&&t.panel||e.dispatch({effects:Ht(e.state,[Kt.of(!0)])});let n=Object(u.j)(e,fn.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(en,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],an=l.g.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},Object(l.s)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function ln(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function un(e,t,n){var r;let i=n?ln(t.actions):[];return Be("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Be("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,s=r=>{if(r.preventDefault(),o)return;o=!0;let i=Vt(e.state.field(en).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:a}=n,l=i[r]?a.indexOf(i[r]):-1,u=l<0?a:[a.slice(0,l),Be("u",a.slice(l,l+1)),a.slice(l+1)];return Be("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":" Action: ".concat(a).concat(l<0?"":' (access key "'.concat(i[r],')"'),".")},u)})),t.source&&Be("div",{class:"cm-diagnosticSource"},t.source))}class cn extends u.f{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Be("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class hn{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=un(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class fn{constructor(e){this.view=e,this.items=[];this.list=Be("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)on(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=ln(n.actions);for(let i=0;i{for(let t=0;ton(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(en).selected;if(!e)return-1;for(let t=0;t{let a,{spec:l}=s,u=-1;for(let t=n;tn&&(this.items.splice(n,u-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:e=>{let{sel:t,panel:n}=e,r=n.height/this.list.offsetHeight;t.topn.bottom&&(this.list.scrollTop+=(t.bottom-n.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Vt(this.view.state.field(en).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Jt.of(t)})}static open(e){return new fn(e)}}function dn(e){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"')")}function pn(e){return dn(''),'width="6" height="3"')}const mn=u.c.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:pn("#d11")},".cm-lintRange-warning":{backgroundImage:pn("orange")},".cm-lintRange-info":{backgroundImage:pn("#999")},".cm-lintRange-hint":{backgroundImage:pn("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});u.d;const gn=[en,u.c.decorations.compute([en],(e=>{let{selected:t,panel:n}=e.field(en);return t&&n&&t.from!=t.to?u.a.set([tn.range(t.from,t.to)]):u.a.none})),Object(u.p)(nn,{hideOn:Yt}),mn];var vn=function(e){void 0===e&&(e={});var{crosshairCursor:t=!1}=e,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(qt.c)),!1!==e.defaultKeymap&&(n=n.concat(Le)),!1!==e.searchKeymap&&(n=n.concat(Ft)),!1!==e.historyKeymap&&(n=n.concat(Z)),!1!==e.foldKeymap&&(n=n.concat(c.m)),!1!==e.completionKeymap&&(n=n.concat(qt.e)),!1!==e.lintKeymap&&(n=n.concat(sn));var r=[];return!1!==e.lineNumbers&&r.push(Object(u.r)()),!1!==e.highlightActiveLineGutter&&r.push(Object(u.n)()),!1!==e.highlightSpecialChars&&r.push(Object(u.o)()),!1!==e.history&&r.push(k()),!1!==e.foldGutter&&r.push(Object(c.k)()),!1!==e.drawSelection&&r.push(Object(u.h)()),!1!==e.dropCursor&&r.push(Object(u.i)()),!1!==e.allowMultipleSelections&&r.push(l.f.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push(Object(c.r)()),!1!==e.syntaxHighlighting&&r.push(Object(c.w)(c.g,{fallback:!0})),!1!==e.bracketMatching&&r.push(Object(c.e)()),!1!==e.closeBrackets&&r.push(Object(qt.b)()),!1!==e.autocompletion&&r.push(Object(qt.a)()),!1!==e.rectangularSelection&&r.push(Object(u.u)()),!1!==t&&r.push(Object(u.g)()),!1!==e.highlightActiveLine&&r.push(Object(u.m)()),!1!==e.highlightSelectionMatches&&r.push(function(e){let t=[lt,at];return e&&t.push(rt.of(e)),t}()),e.tabSize&&"number"===typeof e.tabSize&&r.push(c.t.of(" ".repeat(e.tabSize))),r.concat([u.q.of(n.flat())]).filter(Boolean)},yn=n(3);const On="#e5c07b",bn="#e06c75",wn="#56b6c2",Sn="#ffffff",_n="#abb2bf",xn="#7d8799",kn="#61afef",En="#98c379",Cn="#d19a66",Dn="#c678dd",Pn="#21252b",An="#2c313a",Tn="#282c34",In="#353a42",Nn="#3E4451",jn="#528bff",Rn=u.c.theme({"&":{color:_n,backgroundColor:Tn},".cm-content":{caretColor:jn},".cm-cursor, .cm-dropCursor":{borderLeftColor:jn},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Nn},".cm-panels":{backgroundColor:Pn,color:_n},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Tn,color:xn,border:"none"},".cm-activeLineGutter":{backgroundColor:An},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:In},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:In,borderBottomColor:In},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:An,color:_n}}},{dark:!0}),Mn=c.a.define([{tag:yn.d.keyword,color:Dn},{tag:[yn.d.name,yn.d.deleted,yn.d.character,yn.d.propertyName,yn.d.macroName],color:bn},{tag:[yn.d.function(yn.d.variableName),yn.d.labelName],color:kn},{tag:[yn.d.color,yn.d.constant(yn.d.name),yn.d.standard(yn.d.name)],color:Cn},{tag:[yn.d.definition(yn.d.name),yn.d.separator],color:_n},{tag:[yn.d.typeName,yn.d.className,yn.d.number,yn.d.changed,yn.d.annotation,yn.d.modifier,yn.d.self,yn.d.namespace],color:On},{tag:[yn.d.operator,yn.d.operatorKeyword,yn.d.url,yn.d.escape,yn.d.regexp,yn.d.link,yn.d.special(yn.d.string)],color:wn},{tag:[yn.d.meta,yn.d.comment],color:xn},{tag:yn.d.strong,fontWeight:"bold"},{tag:yn.d.emphasis,fontStyle:"italic"},{tag:yn.d.strikethrough,textDecoration:"line-through"},{tag:yn.d.link,color:xn,textDecoration:"underline"},{tag:yn.d.heading,fontWeight:"bold",color:bn},{tag:[yn.d.atom,yn.d.bool,yn.d.special(yn.d.variableName)],color:Cn},{tag:[yn.d.processingInstruction,yn.d.string,yn.d.inserted],color:En},{tag:yn.d.invalid,color:Sn}]),Fn=[Rn,Object(c.w)(Mn)];var Qn=u.c.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Ln=l.a.define(),$n=[];function Bn(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:o,onUpdate:s,extensions:c=$n,autoFocus:h,theme:f="light",height:d=null,minHeight:p=null,maxHeight:m=null,width:g=null,minWidth:v=null,maxWidth:y=null,placeholder:O="",editable:b=!0,readOnly:w=!1,indentWithTab:S=!0,basicSetup:_=!0,root:x,initialState:k}=e,[E,C]=Object(a.useState)(),[D,P]=Object(a.useState)(),[A,T]=Object(a.useState)(),I=u.c.theme({"&":{height:d,minHeight:p,maxHeight:m,width:g,minWidth:v,maxWidth:y},"& .cm-scroller":{height:"100% !important"}}),N=u.c.updateListener.of((e=>{if(e.docChanged&&"function"===typeof r&&!e.transactions.some((e=>e.annotation(Ln)))){var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),j=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:s=!0}=e,a=[];switch(t&&a.unshift(u.q.of([$e])),s&&("boolean"===typeof s?a.unshift(vn()):a.unshift(vn(s))),o&&a.unshift(Object(u.t)(o)),i){case"light":a.push(Qn);break;case"dark":a.push(Fn);break;case"none":break;default:a.push(i)}return!1===n&&a.push(u.c.editable.of(!1)),r&&a.push(l.f.readOnly.of(!0)),[...a]}({theme:f,editable:b,readOnly:w,placeholder:O,indentWithTab:S,basicSetup:_}),R=[N,I,...j];return s&&"function"===typeof s&&R.push(u.c.updateListener.of(s)),R=R.concat(c),Object(a.useEffect)((()=>{if(E&&!A){var e={doc:t,selection:n,extensions:R},r=k?l.f.fromJSON(k.json,e,k.fields):l.f.create(e);if(T(r),!D){var i=new u.c({state:r,parent:E,root:x});P(i),o&&o(i,r)}}return()=>{D&&(T(void 0),P(void 0))}}),[E,A]),Object(a.useEffect)((()=>C(e.container)),[e.container]),Object(a.useEffect)((()=>()=>{D&&(D.destroy(),P(void 0))}),[D]),Object(a.useEffect)((()=>{h&&D&&D.focus()}),[h,D]),Object(a.useEffect)((()=>{D&&D.dispatch({effects:l.m.reconfigure.of(R)})}),[f,c,d,p,m,g,v,y,O,b,w,S,_,r,s]),Object(a.useEffect)((()=>{if(void 0!==t){var e=D?D.state.doc.toString():"";D&&t!==e&&D.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[Ln.of(!0)]})}}),[t,D]),{state:A,setState:T,view:D,setView:P,container:E,setContainer:C}}var Zn=n(1),Wn=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Un=Object(a.forwardRef)(((e,t)=>{var{className:n,value:r="",selection:o,extensions:l=[],onChange:u,onStatistics:c,onCreateEditor:h,onUpdate:f,autoFocus:d,theme:p="light",height:m,minHeight:g,maxHeight:v,width:y,minWidth:O,maxWidth:b,basicSetup:w,placeholder:S,indentWithTab:_,editable:x,readOnly:k,root:E,initialState:C}=e,D=s()(e,Wn),P=Object(a.useRef)(null),{state:A,view:T,container:I}=Bn({container:P.current,root:E,value:r,autoFocus:d,theme:p,height:m,minHeight:g,maxHeight:v,width:y,minWidth:O,maxWidth:b,basicSetup:w,placeholder:S,indentWithTab:_,editable:x,readOnly:k,selection:o,onChange:u,onStatistics:c,onCreateEditor:h,onUpdate:f,extensions:l,initialState:C});if(Object(a.useImperativeHandle)(t,(()=>({editor:P.current,state:A,view:T})),[P,I,A,T]),"string"!==typeof r)throw new Error("value must be typeof string but got "+typeof r);var N="string"===typeof p?"cm-theme-"+p:"cm-theme";return Object(Zn.jsx)("div",i()({ref:P,className:N+(n?" "+n:"")},D))}));Un.displayName="CodeMirror";t.a=Un},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(38),i=n.n(r),o=n(3),s=n(6),a=n(7),l=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var l={};n.gutterActiveForeground&&(l.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},l.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=l,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var u=s.c.theme(i,{dark:"dark"===t}),c=a.a.define(r);return[u,Object(a.w)(c)]},u="#002B36",c="#839496",h="#004454AA",f="#859900",d="#268BD2",p="#268BD2",m="#2AA198",g="#CB4B16",v="#859900",y="#268BD2",O="#D33682",b="#586E75",w="#268BD2",S="#DC322F",_="#DC322F",x="#268BD2",k={background:u,foreground:c,caret:"#D30102",selection:h,selectionMatch:h,gutterBackground:u,gutterForeground:c,gutterBorder:"transparent",lineHighlight:"#00cafe11"},E=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return l({theme:t,settings:i()({},k,n),styles:[{tag:o.d.keyword,color:f},{tag:[o.d.name,o.d.deleted,o.d.character,o.d.macroName],color:d},{tag:[o.d.propertyName],color:p},{tag:[o.d.processingInstruction,o.d.string,o.d.inserted,o.d.special(o.d.string)],color:m},{tag:[o.d.function(o.d.variableName),o.d.labelName],color:p},{tag:[o.d.color,o.d.constant(o.d.name),o.d.standard(o.d.name)],color:g},{tag:[o.d.definition(o.d.name),o.d.separator],color:d},{tag:[o.d.className],color:y},{tag:[o.d.number,o.d.changed,o.d.annotation,o.d.modifier,o.d.self,o.d.namespace],color:O},{tag:[o.d.typeName],color:v,fontStyle:v},{tag:[o.d.operator,o.d.operatorKeyword],color:f},{tag:[o.d.url,o.d.escape,o.d.regexp,o.d.link],color:_},{tag:[o.d.meta,o.d.comment],color:b},{tag:o.d.tagName,color:x},{tag:o.d.strong,fontWeight:"bold"},{tag:o.d.emphasis,fontStyle:"italic"},{tag:o.d.link,textDecoration:"underline"},{tag:o.d.heading,fontWeight:"bold",color:w},{tag:[o.d.atom,o.d.bool,o.d.special(o.d.variableName)],color:d},{tag:o.d.invalid,color:S},{tag:o.d.strikethrough,textDecoration:"line-through"},...r]})})(),C="#FDF6E3",D="#657B83",P="#859900",A="#268BD2",T="#268BD2",I="#2AA198",N="#CB4B16",j="#859900",R="#268BD2",M="#D33682",F="#93A1A1",Q="#268BD2",L="#DC322F",$="#DC322F",B="#268BD2",Z={background:C,foreground:D,caret:"#657B83",selection:"#EEE8D5",selectionMatch:"#EEE8D5",gutterBackground:C,gutterForeground:D,gutterBorder:"transparent",lineHighlight:"#3d392d11"};(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};l({theme:t,settings:i()({},Z,n),styles:[{tag:o.d.keyword,color:P},{tag:[o.d.name,o.d.deleted,o.d.character,o.d.macroName],color:A},{tag:[o.d.propertyName],color:T},{tag:[o.d.processingInstruction,o.d.string,o.d.inserted,o.d.special(o.d.string)],color:I},{tag:[o.d.function(o.d.variableName),o.d.labelName],color:T},{tag:[o.d.color,o.d.constant(o.d.name),o.d.standard(o.d.name)],color:N},{tag:[o.d.definition(o.d.name),o.d.separator],color:A},{tag:[o.d.className],color:R},{tag:[o.d.number,o.d.changed,o.d.annotation,o.d.modifier,o.d.self,o.d.namespace],color:M},{tag:[o.d.typeName],color:j,fontStyle:j},{tag:[o.d.operator,o.d.operatorKeyword],color:P},{tag:[o.d.url,o.d.escape,o.d.regexp,o.d.link],color:$},{tag:[o.d.meta,o.d.comment],color:F},{tag:o.d.tagName,color:B},{tag:o.d.strong,fontWeight:"bold"},{tag:o.d.emphasis,fontStyle:"italic"},{tag:o.d.link,textDecoration:"underline"},{tag:o.d.heading,fontWeight:"bold",color:Q},{tag:[o.d.atom,o.d.bool,o.d.special(o.d.variableName)],color:A},{tag:o.d.invalid,color:L},{tag:o.d.strikethrough,textDecoration:"line-through"},...r]})})()},function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r=n(29),i=n(3);const o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],s=new r.a({start:!1,shift:(e,t)=>4==t||5==t||312==t?e:313==t,strict:!1}),a=new r.b(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(310)}),{contextual:!0,fallback:!0}),l=new r.b(((e,t)=>{let n,{next:r}=e;o.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(309))}),{contextual:!0}),u=new r.b(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}),{contextual:!0});function c(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const h=new r.b(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let n=0;for(;o.indexOf(e.next)>-1;)e.advance(),n++;if(c(e.next,!0)){for(e.advance(),n++;c(e.next,!1);)e.advance(),n++;for(;o.indexOf(e.next)>-1;)e.advance(),n++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!c(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(3,-n)})),f=Object(i.b)({"get set async static":i.d.modifier,"for while do if else switch try catch finally return throw break continue default case":i.d.controlKeyword,"in of await yield void typeof delete instanceof":i.d.operatorKeyword,"let var const using function class extends":i.d.definitionKeyword,"import export from":i.d.moduleKeyword,"with debugger as new":i.d.keyword,TemplateString:i.d.special(i.d.string),super:i.d.atom,BooleanLiteral:i.d.bool,this:i.d.self,null:i.d.null,Star:i.d.modifier,VariableName:i.d.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.d.function(i.d.variableName),VariableDefinition:i.d.definition(i.d.variableName),Label:i.d.labelName,PropertyName:i.d.propertyName,PrivatePropertyName:i.d.special(i.d.propertyName),"CallExpression/MemberExpression/PropertyName":i.d.function(i.d.propertyName),"FunctionDeclaration/VariableDefinition":i.d.function(i.d.definition(i.d.variableName)),"ClassDeclaration/VariableDefinition":i.d.definition(i.d.className),PropertyDefinition:i.d.definition(i.d.propertyName),PrivatePropertyDefinition:i.d.definition(i.d.special(i.d.propertyName)),UpdateOp:i.d.updateOperator,"LineComment Hashbang":i.d.lineComment,BlockComment:i.d.blockComment,Number:i.d.number,String:i.d.string,Escape:i.d.escape,ArithOp:i.d.arithmeticOperator,LogicOp:i.d.logicOperator,BitOp:i.d.bitwiseOperator,CompareOp:i.d.compareOperator,RegExp:i.d.regexp,Equals:i.d.definitionOperator,Arrow:i.d.function(i.d.punctuation),": Spread":i.d.punctuation,"( )":i.d.paren,"[ ]":i.d.squareBracket,"{ }":i.d.brace,"InterpolationStart InterpolationEnd":i.d.special(i.d.brace),".":i.d.derefOperator,", ;":i.d.separator,"@":i.d.meta,TypeName:i.d.typeName,TypeDefinition:i.d.definition(i.d.typeName),"type enum interface implements namespace module declare":i.d.definitionKeyword,"abstract global Privacy readonly override":i.d.modifier,"is keyof unique infer":i.d.operatorKeyword,JSXAttributeValue:i.d.attributeValue,JSXText:i.d.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.d.angleBracket,"JSXIdentifier JSXNameSpacedName":i.d.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.d.attributeName,"JSXBuiltin/JSXIdentifier":i.d.standard(i.d.tagName)}),d={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},p={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},m={__proto__:null,"<":143},g=r.c.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EpQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-EkQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&gQWO<}AN>}O%[Q^OAN?ZOOQO<eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:s,nodeProps:[["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[f],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#d[e]||-1},{term:334,get:e=>p[e]||-1},{term:70,get:e=>m[e]||-1}],tokenPrec:14626});var v=n(7),y=n(0),O=n(6),b=n(16),w=n(8);const S=[Object(b.g)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Object(b.g)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Object(b.g)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Object(b.g)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Object(b.g)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Object(b.g)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Object(b.g)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Object(b.g)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Object(b.g)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Object(b.g)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Object(b.g)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],_=S.concat([Object(b.g)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Object(b.g)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Object(b.g)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),x=new w.f,k=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function E(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const C=["FunctionDeclaration"],D={FunctionDeclaration:E("function"),ClassDeclaration:E("class"),ClassExpression:()=>!0,EnumDeclaration:E("constant"),TypeAliasDeclaration:E("type"),NamespaceDeclaration:E("namespace"),VariableDefinition(e,t){e.matchContext(C)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function P(e,t){let n=x.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(w.b.IncludeAnonymous).iterate((t=>{if(i)i=!1;else if(t.name){let e=D[t.name];if(e&&e(t,o)||k.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of P(e,t.node))r.push(n);return!1}})),x.set(t,r),r}const A=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,T=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function I(e){let t=Object(v.x)(e.state).resolveInner(e.pos,-1);if(T.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&A.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)k.has(i.name)&&(r=r.concat(P(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:A}}const N=v.c.define({name:"javascript",parser:g.configure({props:[v.q.add({IfStatement:Object(v.f)({except:/^\s*({|else\b)/}),TryStatement:Object(v.f)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:v.j,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Object(v.i)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Object(v.f)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),v.n.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":v.l,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),j={test:e=>/^JSX/.test(e.name),facet:Object(v.h)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},R=N.configure({dialect:"ts"},"typescript"),M=N.configure({dialect:"jsx",props:[v.v.add((e=>e.isTop?[j]:void 0))]}),F=N.configure({dialect:"jsx ts",props:[v.v.add((e=>e.isTop?[j]:void 0))]},"typescript");let Q=e=>({label:e,type:"keyword"});const L="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Q),$=L.concat(["declare","implements","private","protected","public"].map(Q));function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.jsx?e.typescript?F:M:e.typescript?R:N,n=e.typescript?_.concat($):S.concat(L);return new v.d(t,[N.data.of({autocomplete:Object(b.f)(T,Object(b.d)(n))}),N.data.of({autocomplete:I}),e.jsx?U:[]])}function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;for(let r=null===t||void 0===t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const W="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),U=O.c.inputHandler.of(((e,t,n,r,i)=>{if((W?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!N.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:s}=o,a=s.changeByRange((e=>{var t;let n,{head:i}=e,o=Object(v.x)(s).resolveInner(i-1,-1);if("JSXStartTag"==o.name&&(o=o.parent),s.doc.sliceString(i-1,i)!=r||"JSXAttributeValue"==o.name&&o.to>i);else{if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:i,insert:""}};if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==i-2&&((n=Z(s.doc,r.firstChild,i))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e="".concat(n,">");return{range:y.e.cursor(i+e.length,-1),changes:{from:i,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(n=Z(s.doc,t,i)))return{range:e,changes:{from:i,insert:"")}}}}return{range:e}}));return!a.changes.empty&&(e.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))},,,,,,,function(e,t,n){"use strict";var r=n(46),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var s=60109,a=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;i=h("react.element"),o=h("react.portal"),t.Fragment=h("react.fragment"),t.StrictMode=h("react.strict_mode"),t.Profiler=h("react.profiler"),s=h("react.provider"),a=h("react.context"),l=h("react.forward_ref"),t.Suspense=h("react.suspense"),u=h("react.memo"),c=h("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n