diff --git a/.eslintignore b/.eslintignore index 12c5e6c..ce53625 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,4 @@ coverage docs dist npm-debug.log +distributed diff --git a/CHANGELOG.md b/CHANGELOG.md index b858786..1f79989 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.1.5 (10/25/2017) + +- guards retrieval of values +- sets the default parser to lcov + # 1.1.4 (10/24/2017) - removes babel-register, ships a pre-compiled bundle diff --git a/bin/lcov-server.js b/bin/lcov-server.js index 2422ef5..1ffac8a 100755 --- a/bin/lcov-server.js +++ b/bin/lcov-server.js @@ -70,9 +70,6 @@ if(serve) { let _lcov = {}; switch(parser) { - case 'lcov': - _lcov = await lcov.parse(input); - break; case 'cobertura': _lcov = await cobertura.parse(input); break; @@ -82,6 +79,9 @@ if(serve) { case 'jacoco': _lcov = await jacoco.parse(input); break; + default: + _lcov = await lcov.parse(input); + break; } const _git = await git.parse(); diff --git a/dist/bundle.js b/dist/bundle.js index 891545c..c5b5fb4 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -11,7 +11,7 @@ webpackJsonp([0],[,,,,function(e){function t(e,t){var a=e[1]||"",n=e[3];if(!n)re //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -(function(t,o){e.exports=o()})(this,function(){"use strict";function t(){return Rt.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function l(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var o=[],a;for(a=0;at.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null==Object.isFrozen||!Object.isFrozen(e))e._isValid=a;else return a}return e._isValid}function m(e){var t=p(NaN);return null==e?b(t).userInvalidated=!0:c(b(t),e),t}function g(e,t){var o,a,n;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=b(t)),l(t._locale)||(e._locale=t._locale),0e?Dt(e)||0:a(e)}function x(e){var t=+e,o=0;return 0!=t&&isFinite(t)&&(o=_(t)),o}function k(e,t,o){var a=Ct(e.length,t.length),n=Tt(e.length-t.length),r=0,l;for(l=0;ln;++n)l=p([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(l,"").toLocaleLowerCase();return o?"MMM"===t?(r=xo.call(this._shortMonthsParse,a),-1===r?null:r):(r=xo.call(this._longMonthsParse,a),-1===r?null:r):"MMM"===t?(r=xo.call(this._shortMonthsParse,a),-1!==r)?r:(r=xo.call(this._longMonthsParse,a),-1===r?null:r):(r=xo.call(this._longMonthsParse,a),-1!==r)?r:(r=xo.call(this._shortMonthsParse,a),-1===r?null:r)}function te(e,t){var o;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return o=Ct(e.date(),Q(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,o),e}function oe(e){return null==e?J(this,"Month"):(te(this,e),t.updateOffset(this,!0),this)}function ae(){function e(e,t){return t.length-e.length}var t=[],o=[],a=[],n,r;for(n=0;12>n;n++)r=p([2e3,n]),t.push(this.monthsShort(r,"")),o.push(this.months(r,"")),a.push(this.months(r,"")),a.push(this.monthsShort(r,""));for(t.sort(e),o.sort(e),a.sort(e),n=0;12>n;n++)t[n]=z(t[n]),o[n]=z(o[n]);for(n=0;24>n;n++)a[n]=z(a[n]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ne(e,t,o,a,n,r,l){var i=new Date(e,t,o,a,n,r,l);return 100>e&&0<=e&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function re(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function le(e,t,o){var a=7+t-o,n=(7+re(e,0,a).getUTCDay()-t)%7;return-n+a-1}function ie(e,t,o,a,n){var r=le(e,a,n),l=1+7*(t-1)+(7+o-a)%7+r,i,s;return 0>=l?(i=e-1,s=G(i)+l):l>G(e)?(i=e+1,s=l-G(e)):(i=e,s=l),{year:i,dayOfYear:s}}function se(e,t,o){var n=le(e.year(),t,o),r=a((e.dayOfYear()-n-1)/7)+1,l,i;return 1>r?(i=e.year()-1,l=r+de(i,t,o)):r>de(e.year(),t,o)?(l=r-de(e.year(),t,o),i=e.year()+1):(i=e.year(),l=r),{week:l,year:i}}function de(e,t,o){var a=le(e,t,o),n=le(e+1,t,o);return(G(e)-a+n)/7}function ue(e,t){return"string"==typeof e?isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10):e}function ce(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pe(e,t,o){var a=e.toLocaleLowerCase(),n,r,l;if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;7>n;++n)l=p([2000,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(l,"").toLocaleLowerCase();return o?"dddd"===t?(r=xo.call(this._weekdaysParse,a),-1===r?null:r):"ddd"===t?(r=xo.call(this._shortWeekdaysParse,a),-1===r?null:r):(r=xo.call(this._minWeekdaysParse,a),-1===r?null:r):"dddd"===t?(r=xo.call(this._weekdaysParse,a),-1!==r)?r:(r=xo.call(this._shortWeekdaysParse,a),-1!==r)?r:(r=xo.call(this._minWeekdaysParse,a),-1===r?null:r):"ddd"===t?(r=xo.call(this._shortWeekdaysParse,a),-1!==r)?r:(r=xo.call(this._weekdaysParse,a),-1!==r)?r:(r=xo.call(this._minWeekdaysParse,a),-1===r?null:r):(r=xo.call(this._minWeekdaysParse,a),-1!==r)?r:(r=xo.call(this._weekdaysParse,a),-1!==r)?r:(r=xo.call(this._shortWeekdaysParse,a),-1===r?null:r)}function fe(){function e(e,t){return t.length-e.length}var t=[],o=[],a=[],n=[],r,l,i,s,d;for(r=0;7>r;r++)l=p([2000,1]).day(r),i=this.weekdaysMin(l,""),s=this.weekdaysShort(l,""),d=this.weekdays(l,""),t.push(i),o.push(s),a.push(d),n.push(i),n.push(s),n.push(d);for(t.sort(e),o.sort(e),a.sort(e),n.sort(e),r=0;7>r;r++)o[r]=z(o[r]),a[r]=z(a[r]),n[r]=z(n[r]);this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function be(){return this.hours()%12||12}function he(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function me(e,t){return t._meridiemParse}function ge(e){return e?e.toLowerCase().replace("_","-"):e}function ye(e){for(var t=0,o,a,n,r;t=o&&k(r,a,!0)>=o-1)break;o--}t++}return null}function ve(t){var o=null;if(!Po[t]&&"undefined"!=typeof e&&e&&e.exports)try{o=Ao._abbr;!function(){var t=new Error("Cannot find module \"./locale\"");throw t.code="MODULE_NOT_FOUND",t}(),_e(o)}catch(t){}return Po[t]}function _e(e,t){var o;return e&&(o=l(t)?ke(e):xe(e,t),o&&(Ao=o)),Ao._abbr}function xe(e,t){if(null!==t){var o=Eo;if(t.abbr=e,null!=Po[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Po[e]._config;else if(null!=t.parentLocale)if(null!=Po[t.parentLocale])o=Po[t.parentLocale]._config;else return To[t.parentLocale]||(To[t.parentLocale]=[]),To[t.parentLocale].push({name:e,config:t}),null;return Po[e]=new P(E(o,t)),To[e]&&To[e].forEach(function(e){xe(e.name,e.config)}),_e(e),Po[e]}return delete Po[e],null}function ke(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ao;if(!o(e)){if(t=ve(e),t)return t;e=[e]}return ye(e)}function we(e){var t=e._a,o;return t&&-2===b(e).overflow&&(o=0>t[po]||11t[fo]||t[fo]>Q(t[co],t[po])?fo:0>t[bo]||24t[ho]||59t[mo]||59t[go]||999fo)&&(o=fo),b(e)._overflowWeeks&&-1===o&&(o=yo),b(e)._overflowWeekday&&-1===o&&(o=vo),b(e).overflow=o),e}function Se(e,t,o){return null==e?null==t?o:t:e}function Oe(e){var o=new Date(t.now());return e._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()]}function Me(e){var t=[],o,a,n,r;if(!e._d){for(n=Oe(e),e._w&&null==e._a[fo]&&null==e._a[po]&&Ee(e),null!=e._dayOfYear&&(r=Se(e._a[co],n[co]),(e._dayOfYear>G(r)||0===e._dayOfYear)&&(b(e)._overflowDayOfYear=!0),a=re(r,0,e._dayOfYear),e._a[po]=a.getUTCMonth(),e._a[fo]=a.getUTCDate()),o=0;3>o&&null==e._a[o];++o)e._a[o]=t[o]=n[o];for(;7>o;o++)e._a[o]=t[o]=null==e._a[o]?2===o?1:0:e._a[o];24===e._a[bo]&&0===e._a[ho]&&0===e._a[mo]&&0===e._a[go]&&(e._nextDay=!0,e._a[bo]=0),e._d=(e._useUTC?re:ne).apply(null,t),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[bo]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==e._d.getDay()&&(b(e).weekdayMismatch=!0)}}function Ee(e){var t,o,a,n,r,l,i,s;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,l=4,o=Se(t.GG,e._a[co],se(He(),1,4).year),a=Se(t.W,1),n=Se(t.E,1),(1>n||7t.e||6n||6a||a>de(o,r,l)?b(e)._overflowWeeks=!0:null==s?(i=ie(o,a,n,r,l),e._a[co]=i.year,e._dayOfYear=i.dayOfYear):b(e)._overflowWeekday=!0}function Pe(e){var t=e._i,o=Co.exec(t)||Do.exec(t),a,n,r,l,i,s;if(o){for(b(e).iso=!0,a=0,n=Io.length;a=t?2e3+t:999>=t?1900+t:t}function De(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function Re(e,t,o){if(e){var a=So.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(a!==n)return b(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function Ie(e,t,o){if(e)return No[e];if(t)return 0;var a=parseInt(o,10),n=a%100;return 60*((a-n)/100)+n}function je(e){var t=Vo.exec(De(e._i));if(t){var o=Te(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Re(t[1],o,e))return;e._a=o,e._tzm=Ie(t[8],t[9],t[10]),e._d=re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),b(e).rfc2822=!0}else e._isValid=!1}function Ye(e){var o=Yo.exec(e._i);if(null!==o)return void(e._d=new Date(+o[1]));if(Pe(e),!1===e._isValid)delete e._isValid;else return;if(je(e),!1===e._isValid)delete e._isValid;else return;t.createFromInputFallback(e)}function Ve(e){if(e._f===t.ISO_8601)return void Pe(e);if(e._f===t.RFC_2822)return void je(e);e._a=[],b(e).empty=!0;var o=""+e._i,a=o.length,n=0,r,l,i,s,d;for(i=L(e._f,e._locale).match(Ft)||[],r=0;r=e._a[bo]&&!0===b(e).bigHour&&0t&&(t+=12),a||12!==t||(t=0),t):e.meridiemHour(t,o)}function Ae(e){var t,o,a,n,r;if(0===e._f.length)return b(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;ne?-1*Pt(-1*e):Pt(e)}function Je(e,t){Y(e,0,0,function(){var e=this.utcOffset(),o="+";return 0>e&&(e=-e,o="-"),o+j(~~(e/60),2)+t+j(~~e%60,2)})}function Xe(e,t){var o=(t||"").match(e);if(null===o)return null;var a=o[o.length-1]||[],n=(a+"").match(Wo)||["-",0,0],r=+(60*n[1])+x(n[2]);return 0===r?0:"+"===n[0]?r:-r}function $e(e,o){var a,n;return o._isUTC?(a=o.clone(),n=(v(e)||i(e)?e.valueOf():He(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),t.updateOffset(a,!1),a):He(e).local()}function Qe(e){return 15*-Pt(e._d.getTimezoneOffset()/15)}function et(){return!!this.isValid()&&this._isUTC&&0===this._offset}function tt(e,t){var o=e,a=null,n,r,l;return qe(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=zo.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[fo])*n,h:x(a[bo])*n,m:x(a[ho])*n,s:x(a[mo])*n,ms:x(Ze(1e3*a[go]))*n}):(a=Ho.exec(e))?(n="-"===a[1]?-1:"+"===a[1]?1:1,o={y:ot(a[2],n),M:ot(a[3],n),w:ot(a[4],n),d:ot(a[5],n),h:ot(a[6],n),m:ot(a[7],n),s:ot(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(l=nt(He(o.from),He(o.to)),o={},o.ms=l.milliseconds,o.M=l.months),r=new Ge(o),qe(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function ot(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function at(e,t){var o={milliseconds:0,months:0};return o.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=+t-+e.clone().add(o.months,"M"),o}function nt(e,t){var o;return e.isValid()&&t.isValid()?(t=$e(t,e),e.isBefore(t)?o=at(e,t):(o=at(t,e),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function rt(e,t){return function(o,a){var n,r;return null===a||isNaN(+a)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=o,o=a,a=r),o="string"==typeof o?+o:o,n=tt(o,a),lt(this,n,e),this}}function lt(e,o,a,n){var r=o._milliseconds,l=Ze(o._days),i=Ze(o._months);e.isValid()&&(n=null==n||n,i&&te(e,J(e,"Month")+i*a),l&&X(e,"Date",J(e,"Date")+l*a),r&&e._d.setTime(e._d.valueOf()+r*a),n&&t.updateOffset(e,l||i))}function it(e,t){var o=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(o,"months"),n,r;return 0>t-a?(n=e.clone().add(o-1,"months"),r=(t-a)/(a-n)):(n=e.clone().add(o+1,"months"),r=(t-a)/(n-a)),-(o+r)||0}function st(e){var t;return void 0===e?this._locale._abbr:(t=ke(e),null!=t&&(this._locale=t),this)}function dt(){return this._locale}function ut(e,t){Y(0,[e,e.length],0,t)}function ct(e,t,o,a,n){var r;return null==e?se(this,a,n).year:(r=de(e,a,n),t>r&&(t=r),pt.call(this,e,t,o,a,n))}function pt(e,t,o,a,n){var r=ie(e,t,o,a,n),l=re(r.year,0,r.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}function ft(e,t){t[go]=x(1e3*("0."+e))}function bt(e){return e}function ht(e,t,o,a){var n=ke(),r=p().set(a,t);return n[o](r,e)}function mt(e,t,o){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return ht(e,t,o,"month");var a=[],n;for(n=0;12>n;n++)a[n]=ht(e,n,o,"month");return a}function gt(e,t,o,a){"boolean"==typeof e?(s(t)&&(o=t,t=void 0),t=t||""):(t=e,o=t,e=!1,s(t)&&(o=t,t=void 0),t=t||"");var n=ke(),r=e?n._week.dow:0;if(null!=o)return ht(t,(o+r)%7,a,"day");var l=[],d;for(d=0;7>d;d++)l[d]=ht(t,(d+r)%7,a,"day");return l}function yt(e,t,o,a){var n=tt(t,o);return e._milliseconds+=a*n._milliseconds,e._days+=a*n._days,e._months+=a*n._months,e._bubble()}function vt(e){return 0>e?a(e):Dt(e)}function _t(e){return 4800*e/146097}function xt(e){return 146097*e/4800}function kt(e){return function(){return this.as(e)}}function wt(e){return function(){return this.isValid()?this._data[e]:NaN}}function St(e,t,o,a,n){return n.relativeTime(t||1,!!o,e,a)}function Ot(e,t,o){var n=tt(e).abs(),r=ga(n.as("s")),l=ga(n.as("m")),i=ga(n.as("h")),s=ga(n.as("d")),d=ga(n.as("M")),u=ga(n.as("y")),c=r<=ya.ss&&["s",r]||r=l&&["m"]||l=i&&["h"]||i=s&&["d"]||s=d&&["M"]||d=u&&["y"]||["yy",u];return c[2]=t,c[3]=0<+e,c[4]=o,St.apply(null,c)}function Mt(e){return(0e)||+e}function Et(){if(!this.isValid())return this.localeData().invalidDate();var e=va(this._milliseconds)/1e3,t=va(this._days),o=va(this._months),a,n,r;a=_(e/60),n=_(a/60),e%=60,a%=60,r=_(o/12),o%=12;var l=r,i=o,d=t,u=n,c=a,p=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=this.asSeconds();if(!s)return"P0D";var f=0>s?"-":"",b=Mt(this._months)===Mt(s)?"":"-",h=Mt(this._days)===Mt(s)?"":"-",m=Mt(this._milliseconds)===Mt(s)?"":"-";return f+"P"+(l?b+l+"Y":"")+(i?b+i+"M":"")+(d?h+d+"D":"")+(u||c||p?"T":"")+(u?m+u+"H":"")+(c?m+c+"M":"")+(p?m+p+"S":"")}var Pt=Math.round,Tt=Math.abs,Ct=Math.min,Dt=Math.ceil,Rt,It;It=Array.prototype.some?Array.prototype.some:function(e){for(var o=Object(this),t=o.length>>>0,a=0;a=e?""+e:"+"+e}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),T("year","y"),R("year",1),U("Y",ao),U("YY",Jt,Kt),U("YYYY",eo,qt),U("YYYYY",to,Zt),U("YYYYYY",to,Zt),H(["YYYYY","YYYYYY"],co),H("YYYY",function(e,o){o[co]=2===e.length?t.parseTwoDigitYear(e):x(e)}),H("YY",function(e,o){o[co]=t.parseTwoDigitYear(e)}),H("Y",function(e,t){t[co]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return x(e)+(68this?this:e:m()}),Fo=["year","quarter","month","week","day","hour","minute","second","millisecond"];Je("Z",":"),Je("ZZ",""),U("Z",ro),U("ZZ",ro),H(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=Xe(ro,e)});var Wo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var zo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ho=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;tt.fn=Ge.prototype,tt.invalid=function(){return tt(NaN)};var Bo=rt(1,"add"),Ko=rt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Go=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ut("gggg","weekYear"),ut("ggggg","weekYear"),ut("GGGG","isoWeekYear"),ut("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),U("G",ao),U("g",ao),U("GG",Jt,Kt),U("gg",Jt,Kt),U("GGGG",eo,qt),U("gggg",eo,qt),U("GGGGG",to,Zt),U("ggggg",to,Zt),B(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,a){t[a.substr(0,2)]=x(e)}),B(["gg","GG"],function(e,o,a,n){o[n]=t.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),T("quarter","Q"),R("quarter",7),U("Q",Bt),H("Q",function(e,t){t[po]=3*(x(e)-1)}),Y("D",["DD",2],"Do","date"),T("date","D"),R("date",9),U("D",Jt),U("DD",Jt,Kt),U("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),H(["D","DD"],fo),H("Do",function(e,t){t[fo]=x(e.match(Jt)[0],10)});var qo=Z("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),R("dayOfYear",4),U("DDD",Qt),U("DDDD",Gt),H(["DDD","DDDD"],function(e,t,o){o._dayOfYear=x(e)}),Y("m",["mm",2],0,"minute"),T("minute","m"),R("minute",14),U("m",Jt),U("mm",Jt,Kt),H(["m","mm"],ho);var Zo=Z("Minutes",!1);Y("s",["ss",2],0,"second"),T("second","s"),R("second",15),U("s",Jt),U("ss",Jt,Kt),H(["s","ss"],mo);var Jo=Z("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),R("millisecond",16),U("S",Qt,Bt),U("SS",Qt,Kt),U("SSS",Qt,Gt);var Xo;for(Xo="SSSS";9>=Xo.length;Xo+="S")U(Xo,oo);for(Xo="S";9>=Xo.length;Xo+="S")H(Xo,ft);var $o=Z("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var Qo=y.prototype;Qo.add=Bo,Qo.calendar=function(e,o){var a=e||He(),n=$e(a,this).startOf("day"),r=t.calendarFormat(this,n)||"sameElse",l=o&&(M(o[r])?o[r].call(this,a):o[r]);return this.format(l||this.localeData().calendar(r,this,He(a)))},Qo.clone=function(){return new y(this)},Qo.diff=function(e,t,o){var a,n,r;return this.isValid()?(a=$e(e,this),!a.isValid())?NaN:(n=6e4*(a.utcOffset()-this.utcOffset()),t=C(t),(r="year"===t?it(this,a)/12:"month"===t?it(this,a):"quarter"===t?it(this,a)/3:"second"===t?(this-a)/1e3:"minute"===t?(this-a)/6e4:"hour"===t?(this-a)/36e5:"day"===t?(this-a-n)/864e5:"week"===t?(this-a-n)/6048e5:this-a,o?r:_(r))):NaN},Qo.endOf=function(e){return(e=C(e),void 0===e||"millisecond"===e)?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},Qo.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=A(this,e);return this.localeData().postformat(o)},Qo.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||He(e).isValid())?tt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Qo.fromNow=function(e){return this.from(He(),e)},Qo.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||He(e).isValid())?tt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Qo.toNow=function(e){return this.to(He(),e)},Qo.get=function(e){return e=C(e),M(this[e])?this[e]():this},Qo.invalidAt=function(){return b(this).overflow},Qo.isAfter=function(e,t){var o=v(e)?e:He(e);return this.isValid()&&o.isValid()&&(t=C(l(t)?"millisecond":t),"millisecond"===t?this.valueOf()>o.valueOf():o.valueOf()e.year()||9999=this.year()?"YYYY":"YYYYYY",n=t+"[\")]";return this.format(o+a+"-MM-DD[T]HH:mm:ss.SSS"+n)},Qo.toJSON=function(){return this.isValid()?this.toISOString():null},Qo.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Qo.unix=function(){return a(this.valueOf()/1e3)},Qo.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Qo.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Qo.year=_o,Qo.isLeapYear=function(){return q(this.year())},Qo.weekYear=function(e){return ct.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Qo.isoWeekYear=function(e){return ct.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Qo.quarter=Qo.quarters=function(e){return null==e?Dt((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Qo.month=oe,Qo.daysInMonth=function(){return Q(this.year(),this.month())},Qo.week=Qo.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Qo.isoWeek=Qo.isoWeeks=function(e){var t=se(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Qo.weeksInYear=function(){var e=this.localeData()._week;return de(this.year(),e.dow,e.doy)},Qo.isoWeeksInYear=function(){return de(this.year(),1,4)},Qo.date=qo,Qo.day=Qo.days=function(e){if(!this.isValid())return null==e?NaN:this;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null==e?t:(e=ue(e,this.localeData()),this.add(e-t,"d"))},Qo.weekday=function(e){if(!this.isValid())return null==e?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Qo.isoWeekday=function(e){if(!this.isValid())return null==e?NaN:this;if(null!=e){var t=ce(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Qo.dayOfYear=function(e){var t=Pt((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Qo.hour=Qo.hours=Mo,Qo.minute=Qo.minutes=Zo,Qo.second=Qo.seconds=Jo,Qo.millisecond=Qo.milliseconds=$o,Qo.utcOffset=function(e,o,a){var n=this._offset||0,r;if(!this.isValid())return null==e?NaN:this;if(null!=e){if("string"!=typeof e)16>Tt(e)&&!a&&(e*=60);else if(e=Xe(ro,e),null===e)return this;return!this._isUTC&&o&&(r=Qe(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!o||this._changeInProgress?lt(this,tt(e-n,"m"),1,!1):!this._changeInProgress&&(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:Qe(this)},Qo.utc=function(e){return this.utcOffset(0,e)},Qo.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qe(this),"m")),this},Qo.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Xe(no,this._i);null==e?this.utcOffset(0,!0):this.utcOffset(e)}return this},Qo.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?He(e).utcOffset():0,0==(this.utcOffset()-e)%60)},Qo.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Qo.isLocal=function(){return!!this.isValid()&&!this._isUTC},Qo.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Qo.isUtc=et,Qo.isUTC=et,Qo.zoneAbbr=function(){return this._isUTC?"UTC":""},Qo.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Qo.dates=S("dates accessor is deprecated. Use date instead.",qo),Qo.months=S("months accessor is deprecated. Use month instead",oe),Qo.years=S("years accessor is deprecated. Use year instead",_o),Qo.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null==e?-this.utcOffset():("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this)}),Qo.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=Fe(e),e._a){var t=e._isUTC?p(e._a):He(e._a);this._isDSTShifted=this.isValid()&&0a;a++){if(n=p([2e3,a]),o&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),o||this._monthsParse[a]||(r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(o&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!o&&this._monthsParse[a].test(e))return a}},ea.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=io),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ea.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=io),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ea.week=function(e){return se(e,this._week.dow,this._week.doy).week},ea.firstDayOfYear=function(){return this._week.doy},ea.firstDayOfWeek=function(){return this._week.dow},ea.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},ea.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ea.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ea.weekdaysParse=function(e,t,o){var a,n,r;if(this._weekdaysParseExact)return pe.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;7>a;a++){if(n=p([2000,1]).day(a),o&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(o&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(o&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!o&&this._weekdaysParse[a].test(e))return a}},ea.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||fe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=io),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ea.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||fe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ea.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||fe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=io),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ea.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ea.meridiem=function(e,t,o){return 11=e&&0>=t&&0>=o||(e+=864e5*vt(xt(o)+t),t=0,o=0),a.milliseconds=e%1e3,n=_(e/1e3),a.seconds=n%60,r=_(n/60),a.minutes=r%60,l=_(r/60),a.hours=l%24,t+=_(l/24),s=_(_t(t)),o+=s,t-=vt(xt(s)),i=_(o/12),o%=12,a.days=t,a.months=o,a.years=i,this},_a.clone=function(){return tt(this)},_a.get=function(e){return e=C(e),this.isValid()?this[e+"s"]():NaN},_a.milliseconds=ua,_a.seconds=ca,_a.minutes=pa,_a.hours=fa,_a.days=ba,_a.weeks=function(){return _(this.days()/7)},_a.months=ha,_a.years=ma,_a.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),o=Ot(this,!e,t);return e&&(o=t.pastFuture(+this,o)),t.postformat(o)},_a.toISOString=Et,_a.toString=Et,_a.toJSON=Et,_a.locale=st,_a.localeData=dt,_a.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Et),_a.lang=Go,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),U("x",ao),U("X",lo),H("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e,10))}),H("x",function(e,t,o){o._d=new Date(x(e))}),t.version="2.19.1",function(e){Rt=e}(He),t.fn=Qo,t.min=function(){var e=[].slice.call(arguments,0);return Be("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return Be("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=p,t.unix=function(e){return He(1e3*e)},t.months=function(e,t){return mt(e,t,"months")},t.isDate=i,t.locale=_e,t.invalid=m,t.duration=tt,t.isMoment=v,t.weekdays=function(e,t,o){return gt(e,t,o,"weekdays")},t.parseZone=function(){return He.apply(null,arguments).parseZone()},t.localeData=ke,t.isDuration=qe,t.monthsShort=function(e,t){return mt(e,t,"monthsShort")},t.weekdaysMin=function(e,t,o){return gt(e,t,o,"weekdaysMin")},t.defineLocale=xe,t.updateLocale=function(e,t){if(null!=t){var o=Eo,a;null!=Po[e]&&(o=Po[e]._config),t=E(o,t),a=new P(t),a.parentLocale=Po[e],Po[e]=a,_e(e)}else null!=Po[e]&&(null==Po[e].parentLocale?null!=Po[e]&&delete Po[e]:Po[e]=Po[e].parentLocale);return Po[e]},t.locales=function(){return Nt(Po)},t.weekdaysShort=function(e,t,o){return gt(e,t,o,"weekdaysShort")},t.normalizeUnits=C,t.relativeTimeRounding=function(e){return void 0===e?ga:"function"==typeof e&&(ga=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==ya[e]&&(void 0===t?ya[e]:(ya[e]=t,"s"===e&&(ya.ss=t-1),!0))},t.calendarFormat=function(e,t){var o=e.diff(t,"days",!0);return-6>o?"sameElse":-1>o?"lastWeek":0>o?"lastDay":1>o?"sameDay":2>o?"nextDay":7>o?"nextWeek":"sameElse"},t.prototype=Qo,t})}).call(t,o(113)(e))},,,,,,,,,,,function(e){e.exports={name:"lcov-server",version:"1.1.4",description:"\uD83C\uDFAF A simple lcov server & cli parser",main:"index.js",homepage:"https://github.com/gabrielcsapo/lcov-server#readme",repository:{type:"git",url:"git+https://github.com/gabrielcsapo/lcov-server.git"},engines:{node:">= 4"},bugs:{url:"https://github.com/gabrielcsapo/lcov-server/issues"},scripts:{lint:"eslint .",test:"tape test/lib/**/*.js test/index.js",coverage:"tap test/lib/**.js --coverage --coverage-report=lcov",build:"npm run build:client && npm run build:server","build:server":"babel index.js --out-dir ./distributed && babel lib --out-dir ./distributed/lib && babel bin --out-dir ./distributed/bin && cp package.json ./distributed/ && cp -r dist ./distributed","build:client":"NODE_ENV=production webpack --progress",start:"./bin/lcov-server.js --serve",dev:"NODE_ENV=development webpack-dev-server --hot --port 5000",pack:"pkg bin/lcov-server.js -c package.json -o packed/lcov-server","generate-docs":"tryitout --template=landing --output=./docs && jsdoc -c jsdoc.json",storybook:"start-storybook -p 6006","build-storybook":"build-storybook --output-dir ./docs/storybook"},author:"Gabriel J. Csapo ",bin:{"lcov-server":"./distributed/bin/lcov-server.js"},pkg:{scripts:["index.js","bin/*","lib/**/*"],assets:["src/**/*","dist/**/**","node_modules/openbadge/**/**"],targets:["node8-macos-x64","node8-linux-x64","node8-win-x64"]},license:"Apache-2.0",dependencies:{"babel-polyfill":"^6.26.0",commander:"^2.11.0",compression:"^1.7.1",express:"^4.16.2","git-url-parse":"^7.0.1",mongoose:"^4.12.1",openbadge:"^1.0.4","serve-static":"^1.13.1","update-notifier":"^2.3.0",xml2js:"^0.4.19"},devDependencies:{"@storybook/addon-knobs":"^3.2.12","@storybook/react":"^3.2.12","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-minify-webpack-plugin":"^0.2.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","body-parser":"^1.18.2","css-loader":"^0.28.7",docdash:"^0.4.0",eslint:"^4.8.0","eslint-plugin-react":"^7.4.0",getstorybook:"^1.7.0","highlight.js":"^9.12.0",jsdoc:"^3.5.4",moment:"^2.19.1",pkg:"^4.2.5","prop-types":"^15.6.0","psychic.css":"0.0.1",react:"^16.0.0","react-dom":"^16.0.0","react-router-dom":"^4.2.2","react-select":"^1.0.0-rc.10",shelljs:"^0.7.8","style-loader":"^0.19.0",tap:"^10.7.2",tape:"^4.8.0",tryitout:"^0.3.4",webpack:"^3.7.1","webpack-dev-server":"^2.9.1","whatwg-fetch":"^2.0.3"}}},function(e,t,o){"use strict";function a(e){if("string"!=typeof e)throw new Error("The url must be a string.");var t=r(e),o=t.resource.split("."),n=null;switch(t.toString=function(e){return a.stringify(this,e)},t.source=2t.overflow&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&o);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null==Object.isFrozen||!Object.isFrozen(e))e._isValid=a;else return a}return e._isValid}function m(e){var t=p(NaN);return null==e?b(t).userInvalidated=!0:c(b(t),e),t}function g(e,t){var o,a,n;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=b(t)),l(t._locale)||(e._locale=t._locale),0e?Dt(e)||0:a(e)}function x(e){var t=+e,o=0;return 0!=t&&isFinite(t)&&(o=_(t)),o}function k(e,t,o){var a=Ct(e.length,t.length),n=Tt(e.length-t.length),r=0,l;for(l=0;ln;++n)l=p([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(l,"").toLocaleLowerCase();return o?"MMM"===t?(r=xo.call(this._shortMonthsParse,a),-1===r?null:r):(r=xo.call(this._longMonthsParse,a),-1===r?null:r):"MMM"===t?(r=xo.call(this._shortMonthsParse,a),-1!==r)?r:(r=xo.call(this._longMonthsParse,a),-1===r?null:r):(r=xo.call(this._longMonthsParse,a),-1!==r)?r:(r=xo.call(this._shortMonthsParse,a),-1===r?null:r)}function te(e,t){var o;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return o=Ct(e.date(),Q(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,o),e}function oe(e){return null==e?J(this,"Month"):(te(this,e),t.updateOffset(this,!0),this)}function ae(){function e(e,t){return t.length-e.length}var t=[],o=[],a=[],n,r;for(n=0;12>n;n++)r=p([2e3,n]),t.push(this.monthsShort(r,"")),o.push(this.months(r,"")),a.push(this.months(r,"")),a.push(this.monthsShort(r,""));for(t.sort(e),o.sort(e),a.sort(e),n=0;12>n;n++)t[n]=z(t[n]),o[n]=z(o[n]);for(n=0;24>n;n++)a[n]=z(a[n]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ne(e,t,o,a,n,r,l){var i=new Date(e,t,o,a,n,r,l);return 100>e&&0<=e&&isFinite(i.getFullYear())&&i.setFullYear(e),i}function re(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function le(e,t,o){var a=7+t-o,n=(7+re(e,0,a).getUTCDay()-t)%7;return-n+a-1}function ie(e,t,o,a,n){var r=le(e,a,n),l=1+7*(t-1)+(7+o-a)%7+r,i,s;return 0>=l?(i=e-1,s=G(i)+l):l>G(e)?(i=e+1,s=l-G(e)):(i=e,s=l),{year:i,dayOfYear:s}}function se(e,t,o){var n=le(e.year(),t,o),r=a((e.dayOfYear()-n-1)/7)+1,l,i;return 1>r?(i=e.year()-1,l=r+de(i,t,o)):r>de(e.year(),t,o)?(l=r-de(e.year(),t,o),i=e.year()+1):(i=e.year(),l=r),{week:l,year:i}}function de(e,t,o){var a=le(e,t,o),n=le(e+1,t,o);return(G(e)-a+n)/7}function ue(e,t){return"string"==typeof e?isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10):e}function ce(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pe(e,t,o){var a=e.toLocaleLowerCase(),n,r,l;if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;7>n;++n)l=p([2000,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(l,"").toLocaleLowerCase();return o?"dddd"===t?(r=xo.call(this._weekdaysParse,a),-1===r?null:r):"ddd"===t?(r=xo.call(this._shortWeekdaysParse,a),-1===r?null:r):(r=xo.call(this._minWeekdaysParse,a),-1===r?null:r):"dddd"===t?(r=xo.call(this._weekdaysParse,a),-1!==r)?r:(r=xo.call(this._shortWeekdaysParse,a),-1!==r)?r:(r=xo.call(this._minWeekdaysParse,a),-1===r?null:r):"ddd"===t?(r=xo.call(this._shortWeekdaysParse,a),-1!==r)?r:(r=xo.call(this._weekdaysParse,a),-1!==r)?r:(r=xo.call(this._minWeekdaysParse,a),-1===r?null:r):(r=xo.call(this._minWeekdaysParse,a),-1!==r)?r:(r=xo.call(this._weekdaysParse,a),-1!==r)?r:(r=xo.call(this._shortWeekdaysParse,a),-1===r?null:r)}function fe(){function e(e,t){return t.length-e.length}var t=[],o=[],a=[],n=[],r,l,i,s,d;for(r=0;7>r;r++)l=p([2000,1]).day(r),i=this.weekdaysMin(l,""),s=this.weekdaysShort(l,""),d=this.weekdays(l,""),t.push(i),o.push(s),a.push(d),n.push(i),n.push(s),n.push(d);for(t.sort(e),o.sort(e),a.sort(e),n.sort(e),r=0;7>r;r++)o[r]=z(o[r]),a[r]=z(a[r]),n[r]=z(n[r]);this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function be(){return this.hours()%12||12}function he(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function me(e,t){return t._meridiemParse}function ge(e){return e?e.toLowerCase().replace("_","-"):e}function ye(e){for(var t=0,o,a,n,r;t=o&&k(r,a,!0)>=o-1)break;o--}t++}return null}function ve(t){var o=null;if(!Po[t]&&"undefined"!=typeof e&&e&&e.exports)try{o=Ao._abbr;!function(){var t=new Error("Cannot find module \"./locale\"");throw t.code="MODULE_NOT_FOUND",t}(),_e(o)}catch(t){}return Po[t]}function _e(e,t){var o;return e&&(o=l(t)?ke(e):xe(e,t),o&&(Ao=o)),Ao._abbr}function xe(e,t){if(null!==t){var o=Eo;if(t.abbr=e,null!=Po[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Po[e]._config;else if(null!=t.parentLocale)if(null!=Po[t.parentLocale])o=Po[t.parentLocale]._config;else return To[t.parentLocale]||(To[t.parentLocale]=[]),To[t.parentLocale].push({name:e,config:t}),null;return Po[e]=new P(E(o,t)),To[e]&&To[e].forEach(function(e){xe(e.name,e.config)}),_e(e),Po[e]}return delete Po[e],null}function ke(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ao;if(!o(e)){if(t=ve(e),t)return t;e=[e]}return ye(e)}function we(e){var t=e._a,o;return t&&-2===b(e).overflow&&(o=0>t[po]||11t[fo]||t[fo]>Q(t[co],t[po])?fo:0>t[bo]||24t[ho]||59t[mo]||59t[go]||999fo)&&(o=fo),b(e)._overflowWeeks&&-1===o&&(o=yo),b(e)._overflowWeekday&&-1===o&&(o=vo),b(e).overflow=o),e}function Se(e,t,o){return null==e?null==t?o:t:e}function Oe(e){var o=new Date(t.now());return e._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()]}function Me(e){var t=[],o,a,n,r;if(!e._d){for(n=Oe(e),e._w&&null==e._a[fo]&&null==e._a[po]&&Ee(e),null!=e._dayOfYear&&(r=Se(e._a[co],n[co]),(e._dayOfYear>G(r)||0===e._dayOfYear)&&(b(e)._overflowDayOfYear=!0),a=re(r,0,e._dayOfYear),e._a[po]=a.getUTCMonth(),e._a[fo]=a.getUTCDate()),o=0;3>o&&null==e._a[o];++o)e._a[o]=t[o]=n[o];for(;7>o;o++)e._a[o]=t[o]=null==e._a[o]?2===o?1:0:e._a[o];24===e._a[bo]&&0===e._a[ho]&&0===e._a[mo]&&0===e._a[go]&&(e._nextDay=!0,e._a[bo]=0),e._d=(e._useUTC?re:ne).apply(null,t),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[bo]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==e._d.getDay()&&(b(e).weekdayMismatch=!0)}}function Ee(e){var t,o,a,n,r,l,i,s;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,l=4,o=Se(t.GG,e._a[co],se(He(),1,4).year),a=Se(t.W,1),n=Se(t.E,1),(1>n||7t.e||6n||6a||a>de(o,r,l)?b(e)._overflowWeeks=!0:null==s?(i=ie(o,a,n,r,l),e._a[co]=i.year,e._dayOfYear=i.dayOfYear):b(e)._overflowWeekday=!0}function Pe(e){var t=e._i,o=Co.exec(t)||Do.exec(t),a,n,r,l,i,s;if(o){for(b(e).iso=!0,a=0,n=Io.length;a=t?2e3+t:999>=t?1900+t:t}function De(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function Re(e,t,o){if(e){var a=So.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(a!==n)return b(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function Ie(e,t,o){if(e)return No[e];if(t)return 0;var a=parseInt(o,10),n=a%100;return 60*((a-n)/100)+n}function je(e){var t=Vo.exec(De(e._i));if(t){var o=Te(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Re(t[1],o,e))return;e._a=o,e._tzm=Ie(t[8],t[9],t[10]),e._d=re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),b(e).rfc2822=!0}else e._isValid=!1}function Ye(e){var o=Yo.exec(e._i);if(null!==o)return void(e._d=new Date(+o[1]));if(Pe(e),!1===e._isValid)delete e._isValid;else return;if(je(e),!1===e._isValid)delete e._isValid;else return;t.createFromInputFallback(e)}function Ve(e){if(e._f===t.ISO_8601)return void Pe(e);if(e._f===t.RFC_2822)return void je(e);e._a=[],b(e).empty=!0;var o=""+e._i,a=o.length,n=0,r,l,i,s,d;for(i=L(e._f,e._locale).match(Ft)||[],r=0;r=e._a[bo]&&!0===b(e).bigHour&&0t&&(t+=12),a||12!==t||(t=0),t):e.meridiemHour(t,o)}function Ae(e){var t,o,a,n,r;if(0===e._f.length)return b(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;ne?-1*Pt(-1*e):Pt(e)}function Je(e,t){Y(e,0,0,function(){var e=this.utcOffset(),o="+";return 0>e&&(e=-e,o="-"),o+j(~~(e/60),2)+t+j(~~e%60,2)})}function Xe(e,t){var o=(t||"").match(e);if(null===o)return null;var a=o[o.length-1]||[],n=(a+"").match(Wo)||["-",0,0],r=+(60*n[1])+x(n[2]);return 0===r?0:"+"===n[0]?r:-r}function $e(e,o){var a,n;return o._isUTC?(a=o.clone(),n=(v(e)||i(e)?e.valueOf():He(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+n),t.updateOffset(a,!1),a):He(e).local()}function Qe(e){return 15*-Pt(e._d.getTimezoneOffset()/15)}function et(){return!!this.isValid()&&this._isUTC&&0===this._offset}function tt(e,t){var o=e,a=null,n,r,l;return qe(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=zo.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[fo])*n,h:x(a[bo])*n,m:x(a[ho])*n,s:x(a[mo])*n,ms:x(Ze(1e3*a[go]))*n}):(a=Ho.exec(e))?(n="-"===a[1]?-1:"+"===a[1]?1:1,o={y:ot(a[2],n),M:ot(a[3],n),w:ot(a[4],n),d:ot(a[5],n),h:ot(a[6],n),m:ot(a[7],n),s:ot(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(l=nt(He(o.from),He(o.to)),o={},o.ms=l.milliseconds,o.M=l.months),r=new Ge(o),qe(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function ot(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function at(e,t){var o={milliseconds:0,months:0};return o.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=+t-+e.clone().add(o.months,"M"),o}function nt(e,t){var o;return e.isValid()&&t.isValid()?(t=$e(t,e),e.isBefore(t)?o=at(e,t):(o=at(t,e),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function rt(e,t){return function(o,a){var n,r;return null===a||isNaN(+a)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=o,o=a,a=r),o="string"==typeof o?+o:o,n=tt(o,a),lt(this,n,e),this}}function lt(e,o,a,n){var r=o._milliseconds,l=Ze(o._days),i=Ze(o._months);e.isValid()&&(n=null==n||n,i&&te(e,J(e,"Month")+i*a),l&&X(e,"Date",J(e,"Date")+l*a),r&&e._d.setTime(e._d.valueOf()+r*a),n&&t.updateOffset(e,l||i))}function it(e,t){var o=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(o,"months"),n,r;return 0>t-a?(n=e.clone().add(o-1,"months"),r=(t-a)/(a-n)):(n=e.clone().add(o+1,"months"),r=(t-a)/(n-a)),-(o+r)||0}function st(e){var t;return void 0===e?this._locale._abbr:(t=ke(e),null!=t&&(this._locale=t),this)}function dt(){return this._locale}function ut(e,t){Y(0,[e,e.length],0,t)}function ct(e,t,o,a,n){var r;return null==e?se(this,a,n).year:(r=de(e,a,n),t>r&&(t=r),pt.call(this,e,t,o,a,n))}function pt(e,t,o,a,n){var r=ie(e,t,o,a,n),l=re(r.year,0,r.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}function ft(e,t){t[go]=x(1e3*("0."+e))}function bt(e){return e}function ht(e,t,o,a){var n=ke(),r=p().set(a,t);return n[o](r,e)}function mt(e,t,o){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return ht(e,t,o,"month");var a=[],n;for(n=0;12>n;n++)a[n]=ht(e,n,o,"month");return a}function gt(e,t,o,a){"boolean"==typeof e?(s(t)&&(o=t,t=void 0),t=t||""):(t=e,o=t,e=!1,s(t)&&(o=t,t=void 0),t=t||"");var n=ke(),r=e?n._week.dow:0;if(null!=o)return ht(t,(o+r)%7,a,"day");var l=[],d;for(d=0;7>d;d++)l[d]=ht(t,(d+r)%7,a,"day");return l}function yt(e,t,o,a){var n=tt(t,o);return e._milliseconds+=a*n._milliseconds,e._days+=a*n._days,e._months+=a*n._months,e._bubble()}function vt(e){return 0>e?a(e):Dt(e)}function _t(e){return 4800*e/146097}function xt(e){return 146097*e/4800}function kt(e){return function(){return this.as(e)}}function wt(e){return function(){return this.isValid()?this._data[e]:NaN}}function St(e,t,o,a,n){return n.relativeTime(t||1,!!o,e,a)}function Ot(e,t,o){var n=tt(e).abs(),r=ga(n.as("s")),l=ga(n.as("m")),i=ga(n.as("h")),s=ga(n.as("d")),d=ga(n.as("M")),u=ga(n.as("y")),c=r<=ya.ss&&["s",r]||r=l&&["m"]||l=i&&["h"]||i=s&&["d"]||s=d&&["M"]||d=u&&["y"]||["yy",u];return c[2]=t,c[3]=0<+e,c[4]=o,St.apply(null,c)}function Mt(e){return(0e)||+e}function Et(){if(!this.isValid())return this.localeData().invalidDate();var e=va(this._milliseconds)/1e3,t=va(this._days),o=va(this._months),a,n,r;a=_(e/60),n=_(a/60),e%=60,a%=60,r=_(o/12),o%=12;var l=r,i=o,d=t,u=n,c=a,p=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=this.asSeconds();if(!s)return"P0D";var f=0>s?"-":"",b=Mt(this._months)===Mt(s)?"":"-",h=Mt(this._days)===Mt(s)?"":"-",m=Mt(this._milliseconds)===Mt(s)?"":"-";return f+"P"+(l?b+l+"Y":"")+(i?b+i+"M":"")+(d?h+d+"D":"")+(u||c||p?"T":"")+(u?m+u+"H":"")+(c?m+c+"M":"")+(p?m+p+"S":"")}var Pt=Math.round,Tt=Math.abs,Ct=Math.min,Dt=Math.ceil,Rt,It;It=Array.prototype.some?Array.prototype.some:function(e){for(var o=Object(this),t=o.length>>>0,a=0;a=e?""+e:"+"+e}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),T("year","y"),R("year",1),U("Y",ao),U("YY",Jt,Kt),U("YYYY",eo,qt),U("YYYYY",to,Zt),U("YYYYYY",to,Zt),H(["YYYYY","YYYYYY"],co),H("YYYY",function(e,o){o[co]=2===e.length?t.parseTwoDigitYear(e):x(e)}),H("YY",function(e,o){o[co]=t.parseTwoDigitYear(e)}),H("Y",function(e,t){t[co]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return x(e)+(68this?this:e:m()}),Fo=["year","quarter","month","week","day","hour","minute","second","millisecond"];Je("Z",":"),Je("ZZ",""),U("Z",ro),U("ZZ",ro),H(["Z","ZZ"],function(e,t,o){o._useUTC=!0,o._tzm=Xe(ro,e)});var Wo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var zo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ho=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;tt.fn=Ge.prototype,tt.invalid=function(){return tt(NaN)};var Bo=rt(1,"add"),Ko=rt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Go=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ut("gggg","weekYear"),ut("ggggg","weekYear"),ut("GGGG","isoWeekYear"),ut("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),U("G",ao),U("g",ao),U("GG",Jt,Kt),U("gg",Jt,Kt),U("GGGG",eo,qt),U("gggg",eo,qt),U("GGGGG",to,Zt),U("ggggg",to,Zt),B(["gggg","ggggg","GGGG","GGGGG"],function(e,t,o,a){t[a.substr(0,2)]=x(e)}),B(["gg","GG"],function(e,o,a,n){o[n]=t.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),T("quarter","Q"),R("quarter",7),U("Q",Bt),H("Q",function(e,t){t[po]=3*(x(e)-1)}),Y("D",["DD",2],"Do","date"),T("date","D"),R("date",9),U("D",Jt),U("DD",Jt,Kt),U("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),H(["D","DD"],fo),H("Do",function(e,t){t[fo]=x(e.match(Jt)[0],10)});var qo=Z("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),R("dayOfYear",4),U("DDD",Qt),U("DDDD",Gt),H(["DDD","DDDD"],function(e,t,o){o._dayOfYear=x(e)}),Y("m",["mm",2],0,"minute"),T("minute","m"),R("minute",14),U("m",Jt),U("mm",Jt,Kt),H(["m","mm"],ho);var Zo=Z("Minutes",!1);Y("s",["ss",2],0,"second"),T("second","s"),R("second",15),U("s",Jt),U("ss",Jt,Kt),H(["s","ss"],mo);var Jo=Z("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),R("millisecond",16),U("S",Qt,Bt),U("SS",Qt,Kt),U("SSS",Qt,Gt);var Xo;for(Xo="SSSS";9>=Xo.length;Xo+="S")U(Xo,oo);for(Xo="S";9>=Xo.length;Xo+="S")H(Xo,ft);var $o=Z("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var Qo=y.prototype;Qo.add=Bo,Qo.calendar=function(e,o){var a=e||He(),n=$e(a,this).startOf("day"),r=t.calendarFormat(this,n)||"sameElse",l=o&&(M(o[r])?o[r].call(this,a):o[r]);return this.format(l||this.localeData().calendar(r,this,He(a)))},Qo.clone=function(){return new y(this)},Qo.diff=function(e,t,o){var a,n,r;return this.isValid()?(a=$e(e,this),!a.isValid())?NaN:(n=6e4*(a.utcOffset()-this.utcOffset()),t=C(t),(r="year"===t?it(this,a)/12:"month"===t?it(this,a):"quarter"===t?it(this,a)/3:"second"===t?(this-a)/1e3:"minute"===t?(this-a)/6e4:"hour"===t?(this-a)/36e5:"day"===t?(this-a-n)/864e5:"week"===t?(this-a-n)/6048e5:this-a,o?r:_(r))):NaN},Qo.endOf=function(e){return(e=C(e),void 0===e||"millisecond"===e)?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},Qo.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var o=A(this,e);return this.localeData().postformat(o)},Qo.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||He(e).isValid())?tt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Qo.fromNow=function(e){return this.from(He(),e)},Qo.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||He(e).isValid())?tt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Qo.toNow=function(e){return this.to(He(),e)},Qo.get=function(e){return e=C(e),M(this[e])?this[e]():this},Qo.invalidAt=function(){return b(this).overflow},Qo.isAfter=function(e,t){var o=v(e)?e:He(e);return this.isValid()&&o.isValid()&&(t=C(l(t)?"millisecond":t),"millisecond"===t?this.valueOf()>o.valueOf():o.valueOf()e.year()||9999=this.year()?"YYYY":"YYYYYY",n=t+"[\")]";return this.format(o+a+"-MM-DD[T]HH:mm:ss.SSS"+n)},Qo.toJSON=function(){return this.isValid()?this.toISOString():null},Qo.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Qo.unix=function(){return a(this.valueOf()/1e3)},Qo.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Qo.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Qo.year=_o,Qo.isLeapYear=function(){return q(this.year())},Qo.weekYear=function(e){return ct.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Qo.isoWeekYear=function(e){return ct.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Qo.quarter=Qo.quarters=function(e){return null==e?Dt((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Qo.month=oe,Qo.daysInMonth=function(){return Q(this.year(),this.month())},Qo.week=Qo.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Qo.isoWeek=Qo.isoWeeks=function(e){var t=se(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Qo.weeksInYear=function(){var e=this.localeData()._week;return de(this.year(),e.dow,e.doy)},Qo.isoWeeksInYear=function(){return de(this.year(),1,4)},Qo.date=qo,Qo.day=Qo.days=function(e){if(!this.isValid())return null==e?NaN:this;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null==e?t:(e=ue(e,this.localeData()),this.add(e-t,"d"))},Qo.weekday=function(e){if(!this.isValid())return null==e?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Qo.isoWeekday=function(e){if(!this.isValid())return null==e?NaN:this;if(null!=e){var t=ce(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Qo.dayOfYear=function(e){var t=Pt((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Qo.hour=Qo.hours=Mo,Qo.minute=Qo.minutes=Zo,Qo.second=Qo.seconds=Jo,Qo.millisecond=Qo.milliseconds=$o,Qo.utcOffset=function(e,o,a){var n=this._offset||0,r;if(!this.isValid())return null==e?NaN:this;if(null!=e){if("string"!=typeof e)16>Tt(e)&&!a&&(e*=60);else if(e=Xe(ro,e),null===e)return this;return!this._isUTC&&o&&(r=Qe(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!o||this._changeInProgress?lt(this,tt(e-n,"m"),1,!1):!this._changeInProgress&&(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:Qe(this)},Qo.utc=function(e){return this.utcOffset(0,e)},Qo.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qe(this),"m")),this},Qo.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Xe(no,this._i);null==e?this.utcOffset(0,!0):this.utcOffset(e)}return this},Qo.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?He(e).utcOffset():0,0==(this.utcOffset()-e)%60)},Qo.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Qo.isLocal=function(){return!!this.isValid()&&!this._isUTC},Qo.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Qo.isUtc=et,Qo.isUTC=et,Qo.zoneAbbr=function(){return this._isUTC?"UTC":""},Qo.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Qo.dates=S("dates accessor is deprecated. Use date instead.",qo),Qo.months=S("months accessor is deprecated. Use month instead",oe),Qo.years=S("years accessor is deprecated. Use year instead",_o),Qo.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null==e?-this.utcOffset():("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this)}),Qo.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=Fe(e),e._a){var t=e._isUTC?p(e._a):He(e._a);this._isDSTShifted=this.isValid()&&0a;a++){if(n=p([2e3,a]),o&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),o||this._monthsParse[a]||(r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(o&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!o&&this._monthsParse[a].test(e))return a}},ea.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=io),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ea.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=io),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ea.week=function(e){return se(e,this._week.dow,this._week.doy).week},ea.firstDayOfYear=function(){return this._week.doy},ea.firstDayOfWeek=function(){return this._week.dow},ea.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},ea.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ea.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ea.weekdaysParse=function(e,t,o){var a,n,r;if(this._weekdaysParseExact)return pe.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;7>a;a++){if(n=p([2000,1]).day(a),o&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(o&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(o&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!o&&this._weekdaysParse[a].test(e))return a}},ea.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||fe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=io),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ea.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||fe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ea.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||fe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=io),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ea.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ea.meridiem=function(e,t,o){return 11=e&&0>=t&&0>=o||(e+=864e5*vt(xt(o)+t),t=0,o=0),a.milliseconds=e%1e3,n=_(e/1e3),a.seconds=n%60,r=_(n/60),a.minutes=r%60,l=_(r/60),a.hours=l%24,t+=_(l/24),s=_(_t(t)),o+=s,t-=vt(xt(s)),i=_(o/12),o%=12,a.days=t,a.months=o,a.years=i,this},_a.clone=function(){return tt(this)},_a.get=function(e){return e=C(e),this.isValid()?this[e+"s"]():NaN},_a.milliseconds=ua,_a.seconds=ca,_a.minutes=pa,_a.hours=fa,_a.days=ba,_a.weeks=function(){return _(this.days()/7)},_a.months=ha,_a.years=ma,_a.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),o=Ot(this,!e,t);return e&&(o=t.pastFuture(+this,o)),t.postformat(o)},_a.toISOString=Et,_a.toString=Et,_a.toJSON=Et,_a.locale=st,_a.localeData=dt,_a.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Et),_a.lang=Go,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),U("x",ao),U("X",lo),H("X",function(e,t,o){o._d=new Date(1e3*parseFloat(e,10))}),H("x",function(e,t,o){o._d=new Date(x(e))}),t.version="2.19.1",function(e){Rt=e}(He),t.fn=Qo,t.min=function(){var e=[].slice.call(arguments,0);return Be("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return Be("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=p,t.unix=function(e){return He(1e3*e)},t.months=function(e,t){return mt(e,t,"months")},t.isDate=i,t.locale=_e,t.invalid=m,t.duration=tt,t.isMoment=v,t.weekdays=function(e,t,o){return gt(e,t,o,"weekdays")},t.parseZone=function(){return He.apply(null,arguments).parseZone()},t.localeData=ke,t.isDuration=qe,t.monthsShort=function(e,t){return mt(e,t,"monthsShort")},t.weekdaysMin=function(e,t,o){return gt(e,t,o,"weekdaysMin")},t.defineLocale=xe,t.updateLocale=function(e,t){if(null!=t){var o=Eo,a;null!=Po[e]&&(o=Po[e]._config),t=E(o,t),a=new P(t),a.parentLocale=Po[e],Po[e]=a,_e(e)}else null!=Po[e]&&(null==Po[e].parentLocale?null!=Po[e]&&delete Po[e]:Po[e]=Po[e].parentLocale);return Po[e]},t.locales=function(){return Nt(Po)},t.weekdaysShort=function(e,t,o){return gt(e,t,o,"weekdaysShort")},t.normalizeUnits=C,t.relativeTimeRounding=function(e){return void 0===e?ga:"function"==typeof e&&(ga=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==ya[e]&&(void 0===t?ya[e]:(ya[e]=t,"s"===e&&(ya.ss=t-1),!0))},t.calendarFormat=function(e,t){var o=e.diff(t,"days",!0);return-6>o?"sameElse":-1>o?"lastWeek":0>o?"lastDay":1>o?"sameDay":2>o?"nextDay":7>o?"nextWeek":"sameElse"},t.prototype=Qo,t})}).call(t,o(113)(e))},,,,,,,,,,,function(e){e.exports={name:"lcov-server",version:"1.1.5",description:"\uD83C\uDFAF A simple lcov server & cli parser",main:"index.js",homepage:"https://github.com/gabrielcsapo/lcov-server#readme",repository:{type:"git",url:"git+https://github.com/gabrielcsapo/lcov-server.git"},engines:{node:">= 4"},bugs:{url:"https://github.com/gabrielcsapo/lcov-server/issues"},scripts:{lint:"eslint .",test:"tape test/lib/**/*.js test/index.js",coverage:"tap test/lib/**.js --coverage --coverage-report=lcov",build:"npm run build:client && npm run build:server","build:server":"babel index.js --out-dir ./distributed && babel lib --out-dir ./distributed/lib && babel bin --out-dir ./distributed/bin && cp package.json ./distributed/ && cp -r dist ./distributed","build:client":"NODE_ENV=production webpack --progress",start:"./bin/lcov-server.js --serve",dev:"NODE_ENV=development webpack-dev-server --hot --port 5000",pack:"pkg bin/lcov-server.js -c package.json -o packed/lcov-server","generate-docs":"tryitout --template=landing --output=./docs && jsdoc -c jsdoc.json",storybook:"start-storybook -p 6006","build-storybook":"build-storybook --output-dir ./docs/storybook"},author:"Gabriel J. Csapo ",bin:{"lcov-server":"./distributed/bin/lcov-server.js"},pkg:{scripts:["index.js","bin/*","lib/**/*"],assets:["src/**/*","dist/**/**","node_modules/openbadge/**/**"],targets:["node8-macos-x64","node8-linux-x64","node8-win-x64"]},license:"Apache-2.0",dependencies:{"babel-polyfill":"^6.26.0",commander:"^2.11.0",compression:"^1.7.1",express:"^4.16.2","git-url-parse":"^7.0.1",mongoose:"^4.12.1",openbadge:"^1.0.4","serve-static":"^1.13.1","update-notifier":"^2.3.0",xml2js:"^0.4.19"},devDependencies:{"@storybook/addon-knobs":"^3.2.12","@storybook/react":"^3.2.12","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-minify-webpack-plugin":"^0.2.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","body-parser":"^1.18.2","css-loader":"^0.28.7",docdash:"^0.4.0",eslint:"^4.8.0","eslint-plugin-react":"^7.4.0",getstorybook:"^1.7.0","highlight.js":"^9.12.0",jsdoc:"^3.5.4",moment:"^2.19.1",pkg:"^4.2.5","prop-types":"^15.6.0","psychic.css":"0.0.1",react:"^16.0.0","react-dom":"^16.0.0","react-router-dom":"^4.2.2","react-select":"^1.0.0-rc.10",shelljs:"^0.7.8","style-loader":"^0.19.0",tap:"^10.7.2",tape:"^4.8.0",tryitout:"^0.3.4",webpack:"^3.7.1","webpack-dev-server":"^2.9.1","whatwg-fetch":"^2.0.3"}}},function(e,t,o){"use strict";function a(e){if("string"!=typeof e)throw new Error("The url must be a string.");var t=r(e),o=t.resource.split("."),n=null;switch(t.toString=function(e){return a.stringify(this,e)},t.source=2=arguments.length?void 0:arguments[2])||[],l=t.apply(void 0,arguments)||[];if(o({label:this.inputValue})){var i=this.props.newOptionCreator,s=i({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),d=this.isOptionUnique({option:s,options:r.concat(l)});if(d){var u=n(this.inputValue);this._createPlaceholderOption=i({label:u,labelKey:this.labelKey,valueKey:this.valueKey}),l.unshift(this._createPlaceholderOption)}}return l}},{key:"isOptionUnique",value:function(e){var t=e.option,o=e.options,a=this.props.isOptionUnique;return o=o||this.select.filterOptions(),a({labelKey:this.labelKey,option:t,options:o,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){var t=this.props.menuRenderer;return t(b({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;t&&t(e),this.inputValue=e}},{key:"onInputKeyDown",value:function(e){var t=this.props,o=t.shouldKeyDownEventCreateNewOption,a=t.onInputKeyDown,n=this.select.getFocusedOption();n&&n===this._createPlaceholderOption&&o({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):a&&a(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,o=t.newOptionCreator,a=t.shouldKeyDownEventCreateNewOption,r=n(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"]),l=this.props.children;l||(l=s);var i=b({},r,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return l(i)}}]),t}(g.default.Component);M.isOptionUnique=d,M.isValidNewOption=u,M.newOptionCreator=c,M.promptTextCreator=p,M.shouldKeyDownEventCreateNewOption=f,M.defaultProps={filterOptions:w.default,isOptionUnique:d,isValidNewOption:u,menuRenderer:O.default,newOptionCreator:c,promptTextCreator:p,shouldKeyDownEventCreateNewOption:f},M.propTypes={children:v.default.func,filterOptions:v.default.any,isOptionUnique:v.default.func,isValidNewOption:v.default.func,menuRenderer:v.default.any,newOptionCreator:v.default.func,onInputChange:v.default.func,onInputKeyDown:v.default.func,onNewOptionClick:v.default.func,options:v.default.array,promptTextCreator:v.default.func,shouldKeyDownEventCreateNewOption:v.default.func},t.default=M},,function(e,t,o){"use strict";o(47),o(48),o(51);var a=o(14),n=o(63),r=function(e){return e&&e.__esModule?e:{default:e}}(n);(0,a.render)(r.default,document.querySelector("#root"))},function(){(function(e){"use strict";function t(e){if("string"!=typeof e&&(e+=""),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e+=""),e}function a(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return g.iterable&&(t[Symbol.iterator]=function(){return t}),t}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function r(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function l(e){return new Promise(function(t,o){e.onload=function(){t(e.result)},e.onerror=function(){o(e.error)}})}function i(e){var t=new FileReader,o=l(t);return t.readAsArrayBuffer(e),o}function s(e){var t=new FileReader,o=l(t);return t.readAsText(e),o}function d(e){for(var t=new Uint8Array(e),o=Array(t.length),a=0;athis.status,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new n(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],v=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&-1.alert-close{font-size:25px;line-height:15px;position:absolute;right:10px;top:10px}.alert.alert-white{background-color:#fff;border:1px solid #e6e6e6}.alert.alert-white *{color:#000}.alert.alert-black{background-color:#000;border:1px solid #000}.alert.alert-black *{color:#fff}.alert.alert-default{background-color:#cfcfc4;border:1px solid #bdbdae}.alert.alert-default *{color:#fff}.alert.alert-primary{background-color:#779ecb;border:1px solid #608dc2}.alert.alert-primary *{color:#fff}.alert.alert-success{background-color:#7d7;border:1px solid #5cd65c}.alert.alert-success *{color:#fff}.alert.alert-info{background-color:#9bddff;border:1px solid #72cfff}.alert.alert-info *{color:#fff}.alert.alert-warning{background-color:#ffb347;border:1px solid #ffa626}.alert.alert-warning *{color:#fff}.alert.alert-danger{background-color:#ff6961;border:1px solid #ff483e}.alert.alert-danger *{color:#fff}.badge{display:table-cell;padding:8px;border-radius:100px;text-align:center;vertical-align:middle}.badge.badge-white{background-color:#fff;color:#000}.badge.border-white{color:#000}.badge.badge-black{background-color:#000;color:#fff}.badge.border-black{color:#000}.badge.badge-default{background-color:#cfcfc4;color:#fff}.badge.border-default{color:#cfcfc4}.badge.badge-primary{background-color:#779ecb;color:#fff}.badge.border-primary{color:#779ecb}.badge.badge-success{background-color:#7d7;color:#fff}.badge.border-success{color:#7d7}.badge.badge-info{background-color:#9bddff;color:#fff}.badge.border-info{color:#9bddff}.badge.badge-warning{background-color:#ffb347;color:#fff}.badge.border-warning{color:#ffb347}.badge.badge-danger{background-color:#ff6961;color:#fff}.badge.border-danger{color:#ff6961}hr.ellipsis:before,label,select{display:inline-block}label{margin-bottom:.5rem}input,textarea{display:block;line-height:1.5}select{padding:.375rem 1%;background-image:linear-gradient(45deg,transparent 50%,gray 50%),linear-gradient(135deg,gray 50%,transparent 50%);background-position:calc(100% - 20px) calc(1em + 2px),calc(100% - 15px) calc(1em + 2px);background-size:5px 5px,5px 5px,1px 1.5em;background-repeat:no-repeat;background-color:#fff;border:1px solid #cfcfc4;border-radius:5px;line-height:1.5em;padding:5px 30px 5px 15px;width:auto;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none}select:focus{background-image:linear-gradient(45deg,gray 50%,transparent 50%),linear-gradient(135deg,transparent 50%,gray 50%);background-position:calc(100% - 15px) 1em,calc(100% - 20px) 1em;background-size:5px 5px,5px 5px,1px 1.5em;background-repeat:no-repeat;outline:0}input,textarea{width:98%;margin:0;padding:.375rem 1%;background-color:#fff;background-image:none;border:1px solid #cfcfc4;border-radius:.25rem}input:focus,textarea:focus{border-color:#779ecb;outline:0}input.input-white,textarea.input-white{border-color:#fff}input.input-white:focus,textarea.input-white:focus{border-color:#bfbfbf}input.input-black,textarea.input-black{border-color:#a6a6a6}input.input-black:focus,textarea.input-black:focus{border-color:#000}input.input-default,textarea.input-default{border-color:#eeeeea}input.input-default:focus,textarea.input-default:focus{border-color:#a2a28c}input.input-primary,textarea.input-primary{border-color:#cfdded}input.input-primary:focus,textarea.input-primary:focus{border-color:#4375af}input.input-success,textarea.input-success{border-color:#cff3cf}input.input-success:focus,textarea.input-success:focus{border-color:#3c3}input.input-info,textarea.input-info{border-color:#dcf3ff}input.input-info:focus,textarea.input-info:focus{border-color:#35baff}input.input-warning,textarea.input-warning{border-color:#ffe4bf}input.input-warning:focus,textarea.input-warning:focus{border-color:#f49000}input.input-danger,textarea.input-danger{border-color:#ffcbc8}input.input-danger:focus,textarea.input-danger:focus{border-color:#ff1509}.btn-group{margin:10px;display:inline-block}.btn-group>.btn{margin:-3px;border-radius:0}.btn-group>.btn:first-child{border-radius:5px 0 0 5px}.btn-group>.btn:last-child{border-radius:0 5px 5px 0}.btn{padding:12px 18px;margin:10px;cursor:pointer;display:inline-block;text-align:center;background-color:#fff;border-radius:5px;border:1px solid #cfcfc4;color:#655d5d}.btn:hover{border-color:#d6d6cd}.btn:active{opacity:.5}.btn:focus{outline:0}.btn.btn-block,.grid{width:100%}.btn.border-white{color:#fff}.btn.border-white:hover{border-color:#fff}.btn.border-white:active{border-color:#d9d9d9;opacity:.5}.btn.btn-white{color:#000;border:1px solid #d9d9d9}.btn.btn-white:active,.btn.btn-white:hover{border-color:#d9d9d9}.btn.btn-white,.btn.btn-white:hover{background-color:#fff}.btn.btn-white:active{background-color:#d9d9d9;opacity:.5}.btn.border-black{color:#000}.btn.border-black:hover{border-color:#262626}.btn.border-black:active{border-color:#000;opacity:.5}.btn.btn-black{color:#fff;border:1px solid #000;background-color:#000}.btn.btn-black:active,.btn.btn-black:hover{border-color:#000}.btn.btn-black:hover{background-color:#262626}.btn.btn-black:active{background-color:#000;opacity:.5}.btn.border-default{color:#cfcfc4}.btn.border-default:hover{border-color:#d6d6cd}.btn.border-default:active{border-color:#b4b4a3;opacity:.5}.btn.btn-default{color:#fff;border:1px solid #b4b4a3;background-color:#cfcfc4}.btn.btn-default:active,.btn.btn-default:hover{border-color:#b4b4a3}.btn.btn-default:hover{background-color:#d6d6cd}.btn.btn-default:active{background-color:#b4b4a3;opacity:.5}.btn.border-primary{color:#779ecb}.btn.border-primary:hover{border-color:#8badd3}.btn.border-primary:active{border-color:#5485be;opacity:.5}.btn.btn-primary{color:#fff;border:1px solid #5485be;background-color:#779ecb}.btn.btn-primary:active,.btn.btn-primary:hover{border-color:#5485be}.btn.btn-primary:hover{background-color:#8badd3}.btn.btn-primary:active{background-color:#5485be;opacity:.5}.btn.border-success{color:#7d7}.btn.border-success:hover{border-color:#8be28b}.btn.border-success:active{border-color:#4ed34e;opacity:.5}.btn.btn-success{color:#fff;border:1px solid #4ed34e;background-color:#7d7}.btn.btn-success:active,.btn.btn-success:hover{border-color:#4ed34e}.btn.btn-success:hover{background-color:#8be28b}.btn.btn-success:active{background-color:#4ed34e;opacity:.5}.btn.border-info{color:#9bddff}.btn.border-info:hover{border-color:#aae2ff}.btn.border-info:active{border-color:#5dc8ff;opacity:.5}.btn.btn-info{color:#fff;border:1px solid #5dc8ff;background-color:#9bddff}.btn.btn-info:active,.btn.btn-info:hover{border-color:#5dc8ff}.btn.btn-info:hover{background-color:#aae2ff}.btn.btn-info:active{background-color:#5dc8ff;opacity:.5}.btn.border-warning{color:#ffb347}.btn.border-warning:hover{border-color:#ffbe63}.btn.border-warning:active{border-color:#ff9f16;opacity:.5}.btn.btn-warning{color:#fff;border:1px solid #ff9f16;background-color:#ffb347}.btn.btn-warning:active,.btn.btn-warning:hover{border-color:#ff9f16}.btn.btn-warning:hover{background-color:#ffbe63}.btn.btn-warning:active{background-color:#ff9f16;opacity:.5}.btn.border-danger{color:#ff6961}.btn.border-danger:hover{border-color:#ff7f79}.btn.border-danger:active{border-color:#ff372c;opacity:.5}.btn.btn-danger{color:#fff;border:1px solid #ff372c;background-color:#ff6961}.btn.btn-danger:active,.btn.btn-danger:hover{border-color:#ff372c}.btn.btn-danger:hover{background-color:#ff7f79}.btn.btn-danger:active{background-color:#ff372c;opacity:.5}.grid:after{clear:both;visibility:hidden;display:block;font-size:0;content:' ';height:0}.grid>*>*{word-wrap:break-word}.grid>div{float:left;box-sizing:border-box;min-height:1px}.grid>.col-0-12{display:none}.grid>.col-1-12,.grid>.col-2-12{width:8.333333333333332%;margin-left:0%;margin-right:0%}.grid>.col-2-12{width:16.666666666666664%}.grid>.col-3-12,.grid>.col-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-4-12{width:33.33333333333333%}.grid>.col-5-12,.grid>.col-6-12{width:41.66666666666667%;margin-left:0%;margin-right:0%}.grid>.col-6-12{width:50%}.grid>.col-7-12,.grid>.col-8-12{width:58.333333333333336%;margin-left:0%;margin-right:0%}.grid>.col-8-12{width:66.66666666666666%}.grid>.col-10-12,.grid>.col-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-10-12{width:83.33333333333334%}.grid>.col-11-12,.grid>.col-12-12{width:91.66666666666666%;margin-left:0%;margin-right:0%}.grid>.col-12-12{width:100%}@media screen and (min-width:16em){.grid>.col-xs-0-12{display:none}.grid>.col-xs-1-12,.grid>.col-xs-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-xs-2-12{width:16.6666%}.grid>.col-xs-3-12,.grid>.col-xs-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-xs-4-12{width:33.3333%}.grid>.col-xs-5-12,.grid>.col-xs-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-xs-6-12{width:50%}.grid>.col-xs-7-12,.grid>.col-xs-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-xs-8-12{width:66.6666%}.grid>.col-xs-10-12,.grid>.col-xs-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-xs-10-12{width:83.3333%}.grid>.col-xs-11-12,.grid>.col-xs-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-xs-12-12{width:100%}}@media screen and (min-width:32em){.grid>.col-sm-0-12{display:none}.grid>.col-sm-1-12,.grid>.col-sm-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-sm-2-12{width:16.6666%}.grid>.col-sm-3-12,.grid>.col-sm-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-sm-4-12{width:33.3333%}.grid>.col-sm-5-12,.grid>.col-sm-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-sm-6-12{width:50%}.grid>.col-sm-7-12,.grid>.col-sm-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-sm-8-12{width:66.6666%}.grid>.col-sm-10-12,.grid>.col-sm-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-sm-10-12{width:83.3333%}.grid>.col-sm-11-12,.grid>.col-sm-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-sm-12-12{width:100%}}@media screen and (min-width:48em){.grid>.col-md-0-12{display:none}.grid>.col-md-1-12,.grid>.col-md-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-md-2-12{width:16.6666%}.grid>.col-md-3-12,.grid>.col-md-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-md-4-12{width:33.3333%}.grid>.col-md-5-12,.grid>.col-md-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-md-6-12{width:50%}.grid>.col-md-7-12,.grid>.col-md-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-md-8-12{width:66.6666%}.grid>.col-md-10-12,.grid>.col-md-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-md-10-12{width:83.3333%}.grid>.col-md-11-12,.grid>.col-md-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-md-12-12{width:100%}}@media screen and (min-width:64em){.grid>.col-lg-0-12{display:none}.grid>.col-lg-1-12,.grid>.col-lg-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-lg-2-12{width:16.6666%}.grid>.col-lg-3-12,.grid>.col-lg-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-lg-4-12{width:33.3333%}.grid>.col-lg-5-12,.grid>.col-lg-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-lg-6-12{width:50%}.grid>.col-lg-7-12,.grid>.col-lg-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-lg-8-12{width:66.6666%}.grid>.col-lg-10-12,.grid>.col-lg-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-lg-10-12{width:83.3333%}.grid>.col-lg-11-12,.grid>.col-lg-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-lg-12-12{width:100%}}@media screen and (min-width:80em){.grid>.col-xl-0-12{display:none}.grid>.col-xl-1-12,.grid>.col-xl-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-xl-2-12{width:16.6666%}.grid>.col-xl-3-12,.grid>.col-xl-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-xl-4-12{width:33.3333%}.grid>.col-xl-5-12,.grid>.col-xl-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-xl-6-12{width:50%}.grid>.col-xl-7-12,.grid>.col-xl-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-xl-8-12{width:66.6666%}.grid>.col-xl-10-12,.grid>.col-xl-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-xl-10-12{width:83.3333%}.grid>.col-xl-11-12,.grid>.col-xl-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-xl-12-12{width:100%}}.navbar.navbar-center>.container>.navbar-content,body{margin:0}.text-white,.text-white>*{color:#fff!important}.background-white{background-color:#fff!important}.border-white{border-color:#fff!important}.text-black,.text-black>*{color:#000!important}.background-black{background-color:#000!important}.border-black{border-color:#000!important}.text-default,.text-default>*{color:#cfcfc4!important}.background-default{background-color:#cfcfc4!important}.border-default{border-color:#cfcfc4!important}.text-primary,.text-primary>*{color:#779ecb!important}.background-primary{background-color:#779ecb!important}.border-primary{border-color:#779ecb!important}.text-success,.text-success>*{color:#7d7!important}.background-success{background-color:#7d7!important}.border-success{border-color:#7d7!important}.text-info,.text-info>*{color:#9bddff!important}.background-info{background-color:#9bddff!important}.border-info{border-color:#9bddff!important}.text-warning,.text-warning>*{color:#ffb347!important}.background-warning{background-color:#ffb347!important}.border-warning{border-color:#ffb347!important}.text-danger,.text-danger>*{color:#ff6961!important}.background-danger{background-color:#ff6961!important}.border-danger{border-color:#ff6961!important}.responsive{width:100%;height:auto}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.list{list-style:none;margin:0;padding:0}.list>.list-item{clear:both;min-height:30px;height:auto;line-height:30px;overflow:auto;padding:10px;border:1px solid #cfcfc4;border-bottom:0 solid transparent}.list>.list-item>.badge{float:right;line-height:20px}.list>.list-item.list-item-white{color:#000;border-color:#fff;background-color:#fff}.list>.list-item.list-item-white *{color:#000}.list>.list-item.list-item-black{color:#fff;border-color:#333;background-color:#000}.list>.list-item.list-item-black *{color:#fff}.list>.list-item.list-item-default{color:#fff;border-color:#d9d9d0;background-color:#cfcfc4}.list>.list-item.list-item-default *{color:#fff}.list>.list-item.list-item-primary{color:#fff;border-color:#92b1d5;background-color:#779ecb}.list>.list-item.list-item-primary *{color:#fff}.list>.list-item.list-item-success{color:#fff;border-color:#92e492;background-color:#7d7}.list>.list-item.list-item-success *{color:#fff}.list>.list-item.list-item-info{color:#fff;border-color:#afe4ff;background-color:#9bddff}.list>.list-item.list-item-info *{color:#fff}.list>.list-item.list-item-warning{color:#fff;border-color:#ffc26c;background-color:#ffb347}.list>.list-item.list-item-warning *{color:#fff}.list>.list-item.list-item-danger{color:#fff;border-color:#ff8781;background-color:#ff6961}.list>.list-item.list-item-danger *,.table.table-white thead>tr>th{color:#fff}.list>.list-item:first-child{border-radius:5px 5px 0 0}.list>.list-item:last-child{border-bottom:1px solid #cfcfc4;border-radius:0 0 5px 5px}.list>.list-item:only-child{border-radius:5px}.list>.list-item>.list-item-right{float:right}.list>.list-item>.list-item-left{float:left}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(50,50,50,.6);z-index:99999;opacity:0;pointer-events:none}.modal.active,.modal.modal-active,.modal:target{opacity:1;pointer-events:auto}.modal.modal-absolute{position:absolute;z-index:1}.modal-close,.modal.modal-absolute>div{position:absolute}.modal>div{min-width:400px;max-width:90%;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:5px 20px 13px;border-radius:0;background:#fff}.modal.modal-white>div{border-left:10px solid #fff;color:#000}.modal.modal-black>div{border-left:10px solid #000;color:#000}.modal.modal-default>div{border-left:10px solid #cfcfc4;color:#000}.modal.modal-primary>div{border-left:10px solid #779ecb;color:#000}.modal.modal-success>div{border-left:10px solid #7d7;color:#000}.modal.modal-info>div{border-left:10px solid #9bddff;color:#000}.modal.modal-warning>div{border-left:10px solid #ffb347;color:#000}.modal.modal-danger>div{border-left:10px solid #ff6961;color:#000}.modal-close{line-height:25px;right:5px;text-align:center;top:5px;width:24px;text-decoration:none}.navbar *{font-weight:300;display:inline-block;text-decoration:none}.navbar{position:relative;min-height:50px;width:100%;display:table}.navbar>.container{border-width:0 0 1px}.navbar.navbar-fixed{position:fixed;z-index:100000}.navbar.navbar-center>.container{border-width:0 1px 1px;margin:0 auto;width:50%;position:relative}.navbar.border-white>.container{border-style:solid}.navbar.navbar-white>.container{background-color:#fff}.navbar.navbar-white>.container>.nav a.active,.navbar.navbar-white>.container>.nav a:hover,.navbar.navbar-white>.container>.nav a:target{background-color:#fff}.navbar.border-black>.container{border-style:solid}.navbar.navbar-black>.container{background-color:#000}.navbar.navbar-black>.container>.nav a.active,.navbar.navbar-black>.container>.nav a:hover,.navbar.navbar-black>.container>.nav a:target{background-color:#a6a6a6}.navbar.border-default>.container{border-style:solid}.navbar.navbar-default>.container{background-color:#cfcfc4}.navbar.navbar-default>.container>.nav a.active,.navbar.navbar-default>.container>.nav a:hover,.navbar.navbar-default>.container>.nav a:target{background-color:#eeeeea}.navbar.border-primary>.container{border-style:solid}.navbar.navbar-primary>.container{background-color:#779ecb}.navbar.navbar-primary>.container>.nav a.active,.navbar.navbar-primary>.container>.nav a:hover,.navbar.navbar-primary>.container>.nav a:target{background-color:#cfdded}.navbar.border-success>.container{border-style:solid}.navbar.navbar-success>.container{background-color:#7d7}.navbar.navbar-success>.container>.nav a.active,.navbar.navbar-success>.container>.nav a:hover,.navbar.navbar-success>.container>.nav a:target{background-color:#cff3cf}.navbar.border-info>.container{border-style:solid}.navbar.navbar-info>.container{background-color:#9bddff}.navbar.navbar-info>.container>.nav a.active,.navbar.navbar-info>.container>.nav a:hover,.navbar.navbar-info>.container>.nav a:target{background-color:#dcf3ff}.navbar.border-warning>.container{border-style:solid}.navbar.navbar-warning>.container{background-color:#ffb347}.navbar.navbar-warning>.container>.nav a.active,.navbar.navbar-warning>.container>.nav a:hover,.navbar.navbar-warning>.container>.nav a:target{background-color:#ffe4bf}.navbar.border-danger>.container{border-style:solid}.navbar.navbar-danger>.container{background-color:#ff6961}.navbar.navbar-danger>.container>.nav a.active,.navbar.navbar-danger>.container>.nav a:hover,.navbar.navbar-danger>.container>.nav a:target{background-color:#ffcbc8}.navbar>.container{clear:both;margin:0 auto;display:table;width:100%;height:60px}.navbar>.container>.nav{float:right;margin:0 20px 0 0;display:inline-block}.navbar>.container>.nav>*{font-size:15px}.navbar>.container>.nav>select{background-color:transparent}.navbar>.container>.nav>a{padding:20px 10px 22px}.navbar>.container>.nav>a:active,.navbar>.container>.nav>a:hover,.navbar>.container>.nav>a:target{opacity:.6}.navbar .navbar-title{float:left;display:inline-block;margin:20px 0 0 20px}.panel{border:1px solid #cfcfc4;border-radius:5px}.panel.panel-white{border:1px solid #fff}.panel.panel-white .panel-footer,.panel.panel-white>.panel-heading{background-color:#fff;color:#000}.panel.panel-black{border:1px solid #000}.panel.panel-black .panel-footer,.panel.panel-black>.panel-heading{background-color:#000;color:#fff}.panel.panel-default{border:1px solid #cfcfc4}.panel.panel-default .panel-footer,.panel.panel-default>.panel-heading{background-color:#cfcfc4;color:#fff}.panel.panel-primary{border:1px solid #779ecb}.panel.panel-primary .panel-footer,.panel.panel-primary>.panel-heading{background-color:#779ecb;color:#fff}.panel.panel-success{border:1px solid #7d7}.panel.panel-success .panel-footer,.panel.panel-success>.panel-heading{background-color:#7d7;color:#fff}.panel.panel-info{border:1px solid #9bddff}.panel.panel-info .panel-footer,.panel.panel-info>.panel-heading{background-color:#9bddff;color:#fff}.panel.panel-warning{border:1px solid #ffb347}.panel.panel-warning .panel-footer,.panel.panel-warning>.panel-heading{background-color:#ffb347;color:#fff}.panel.panel-danger{border:1px solid #ff6961}.panel.panel-danger .panel-footer,.panel.panel-danger>.panel-heading{background-color:#ff6961;color:#fff}.panel .panel-footer,.panel .panel-heading,.panel>.panel-body{padding:15px}.panel>.panel-body>table{border-bottom:0}.panel>.panel-heading{top:0}.panel>.panel-footer{bottom:0}.tooltip,[data-tooltip]{position:relative;cursor:pointer}.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{position:absolute;visibility:hidden;opacity:0;transition:opacity .2s ease-in-out,visibility,.2s,ease-in-out,transform,.2s,cubic-bezier(.71,1.7,.77,1.24),-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);transform:translate3d(0,0,0);pointer-events:none}.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{visibility:visible;opacity:1}.tooltip:before,[data-tooltip]:before{z-index:1001;border:6px solid transparent;background:0 0;content:''}.tooltip:after,[data-tooltip]:after{z-index:1000;padding:8px;min-width:160px;width:auto;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-tooltip);font-size:14px;line-height:1.2}.tooltip-top:after,.tooltip-top:before,.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{bottom:100%;left:50%}.tooltip-top:before,.tooltip:before,[data-tooltip]:before{margin-left:-6px;margin-bottom:-12px;border-top-color:#000;border-top-color:rgba(51,51,51,.9)}.tooltip-top:after,.tooltip:after,[data-tooltip]:after{margin-left:-80px}.tooltip-top:focus:after,.tooltip-top:focus:before,.tooltip-top:hover:after,.tooltip-top:hover:before,.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{-webkit-transform:translateY(-12px);transform:translateY(-12px)}.tooltip-left:after,.tooltip-left:before{right:100%;bottom:50%;left:auto}.tooltip-left:before{margin-left:0;margin-right:-12px;margin-bottom:0;border-top-color:transparent;border-left-color:#000;border-left-color:rgba(51,51,51,.9)}.tooltip-left:focus:after,.tooltip-left:focus:before,.tooltip-left:hover:after,.tooltip-left:hover:before{-webkit-transform:translateX(-12px);transform:translateX(-12px)}.tooltip-bottom:after,.tooltip-bottom:before{top:100%;bottom:auto;left:50%}.tooltip-bottom:before{margin-top:-12px;margin-bottom:0;border-top-color:transparent;border-bottom-color:#000;border-bottom-color:rgba(51,51,51,.9)}.tooltip-bottom:focus:after,.tooltip-bottom:focus:before,.tooltip-bottom:hover:after,.tooltip-bottom:hover:before{-webkit-transform:translateY(12px);transform:translateY(12px)}.tooltip-right:after,.tooltip-right:before{bottom:50%;left:100%}.tooltip-right:before{margin-bottom:0;margin-left:-12px;border-top-color:transparent;border-right-color:#000;border-right-color:rgba(51,51,51,.9)}.tooltip-right:focus:after,.tooltip-right:focus:before,.tooltip-right:hover:after,.tooltip-right:hover:before{-webkit-transform:translateX(12px);transform:translateX(12px)}.tooltip-left:before,.tooltip-right:before{top:3px}.tooltip-left:after,.tooltip-right:after{margin-left:0;margin-bottom:-16px}[class^=tooltip-]{border-bottom:1px dotted #000;text-decoration:'none'}.progress{width:100%;border:1px solid #cfcfc4;text-align:center}.progress:hover{opacity:.5}.progress .progress-fill{font-size:16px;height:15px;padding:10px 0;background-color:#779ecb}.progress .progress-fill.progress-fill-white{background-color:#fff;color:#000}.progress .progress-fill.progress-fill-black{background-color:#000;color:#fff}.progress .progress-fill.progress-fill-default{background-color:#cfcfc4;color:#fff}.progress .progress-fill.progress-fill-primary{background-color:#779ecb;color:#fff}.progress .progress-fill.progress-fill-success{background-color:#7d7;color:#fff}.progress .progress-fill.progress-fill-info{background-color:#9bddff;color:#fff}.progress .progress-fill.progress-fill-warning{background-color:#ffb347;color:#fff}.progress .progress-fill.progress-fill-danger{background-color:#ff6961;color:#fff}.spinner-overlay{position:relative;top:0;left:0;width:100%;height:100%;z-index:3}.spinner-wrapper{text-align:center;position:relative;top:calc(50% - 50px)}.spinner-wrapper>.spinner{min-height:30px;min-width:30px}.spinner-message{box-sizing:border-box;width:100%;margin-top:30px;text-align:center;font-weight:400;z-index:100;outline:0}.spinner{display:inline-block;min-height:20px;height:auto;min-width:20px;width:auto;background-color:transparent;animation:rotation .7s infinite linear;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:3px solid transparent;border-top:3px solid #2180c0;border-radius:100%}.spinner.spinner-absolute{position:absolute}.spinner.spinner-white{border-top:3px solid #fff}.spinner.spinner-white.spinner-done{border-color:#fff;border-width:3px}.spinner.spinner-black.done:after,.spinner.spinner-danger.done:after,.spinner.spinner-default.done:after,.spinner.spinner-info.done:after,.spinner.spinner-primary.done:after,.spinner.spinner-success.done:after,.spinner.spinner-warning.done:after,.spinner.spinner-white.done:after{border-width:0 3px}.spinner.spinner-black{border-top:3px solid #000}.spinner.spinner-black.spinner-done{border-color:#000;border-width:3px}.spinner.spinner-default{border-top:3px solid #cfcfc4}.spinner.spinner-default.spinner-done{border-color:#cfcfc4;border-width:3px}.spinner.spinner-primary{border-top:3px solid #779ecb}.spinner.spinner-primary.spinner-done{border-color:#779ecb;border-width:3px}.spinner.spinner-success{border-top:3px solid #7d7}.spinner.spinner-success.spinner-done{border-color:#7d7;border-width:3px}.spinner.spinner-info{border-top:3px solid #9bddff}.spinner.spinner-info.spinner-done{border-color:#9bddff;border-width:3px}.spinner.spinner-warning{border-top:3px solid #ffb347}.spinner.spinner-warning.spinner-done{border-color:#ffb347;border-width:3px}.spinner.spinner-danger{border-top:3px solid #ff6961}.spinner.spinner-danger.spinner-done{border-color:#ff6961;border-width:3px}.table{text-align:center;word-break:break-all;border-collapse:collapse;border-spacing:0}.table.table-black thead>tr>th{color:#000}.table.table-default thead>tr>th{color:#cfcfc4}.table.table-primary thead>tr>th{color:#779ecb}.table.table-success thead>tr>th{color:#7d7}.table.table-info thead>tr>th{color:#9bddff}.table.table-warning thead>tr>th{color:#ffb347}.table.table-danger thead>tr>th{color:#ff6961}.table thead>tr>th{font-weight:500}.table tfoot td:empty{padding:0;border-bottom:0}.table td,.table th{text-align:left;font-weight:100;border:1px solid #cfcfc4;padding:10px}.table.responsive{display:table}",""])},function(e){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,a=o+t.pathname.replace(/\/[^\/]*$/,"/"),n=e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var n=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(n))return e;var r;return r=0===n.indexOf("//")?n:0===n.indexOf("/")?o+n:a+n.replace(/^\.\//,""),"url("+JSON.stringify(r)+")"});return n}},function(e,t,o){var a=o(52);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0},r;n.transform=r;o(5)(a,n);a.locals&&(e.exports=a.locals),!1},function(e,t,o){t=e.exports=o(4)(void 0),t.push([e.i,"* {\n font-family: \"Helvetica Neue\", Sans-serif, Arial;\n}\n\nhtml {\n box-sizing: border-box;\n height: 100%;\n}\nbody {\n position: relative;\n margin: 0;\n padding-bottom: 6rem;\n min-height: 100%;\n width: 100%;\n}\n*,\n*:before,\n*:after {\n box-sizing: inherit;\n}\nul {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n#coverage-area {\n height: 100%;\n width: 100%;\n}\n\n.footer {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n text-align: center;\n}\n\n.list-item-danger {\n border-top: 1px solid rgba(255, 135, 129, 0.5) !important;\n border-right: 1px solid rgba(255, 135, 129, 0.5) !important;\n border-left: 1px solid rgba(255, 135, 129, 0.5) !important;\n background-color: rgba(255, 105, 97, 0.8) !important;\n}\n\n.list-item-success {\n border-top: 1px solid rgba(146, 228, 146, .5) !important;\n border-right: 1px solid rgba(146, 228, 146, 0.5) !important;\n border-left: 1px solid rgba(146, 228, 146, 0.5) !important;\n background-color: rgba(119, 221, 119, 0.8) !important;\n}\n\n.coverage {\n margin-bottom: 50px;\n margin-left: 50px;\n margin-right: 50px;\n}\n.coverage-header {}\n.coverage-commit-message {\n text-overflow: ellipsis;\n\twidth: 200px;\n\twhite-space: nowrap;\n\toverflow: hidden;\n display: inline-block;\n}\n\nul.dropdown-menu.rbt-menu.dropdown-menu-justify {\n position: absolute;\n}\n",""])},,,,,,,,,,,function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=a(n),l=o(26),i=o(92),s=a(i),d=o(93),u=a(d),c=o(102),p=a(c),f=o(115),b=a(f),h=o(117),m=a(h),g=o(13),y=a(g);t.default=r.default.createElement(l.BrowserRouter,null,r.default.createElement(s.default,null,r.default.createElement(l.Switch,null,r.default.createElement(l.Route,{path:"/coverage/:source/:owner/:name/:file",component:m.default}),r.default.createElement(l.Route,{path:"/coverage/:source/:owner/:name",component:b.default}),r.default.createElement(l.Route,{path:"/coverage/:source/:owner/:page?",component:p.default}),r.default.createElement(l.Route,{path:"/coverage/:page?",component:p.default}),r.default.createElement(l.Route,{exact:!0,path:"/",component:u.default}),r.default.createElement(l.Route,{path:"*",component:y.default}))))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0,a;oE?t:E}),P=0===E?1:w/E,C=u.map(function(e,t){return e.map(function(e,o){return[~~(k/D*o+T)+.5,~~(P*(E-e)+T)+.5,e,S[t%S.length]]})});var R={xmlns:"http://www.w3.org/2000/svg",width:k+2*T+"px",height:w+2*T+"px",viewBox:"0 0 "+(k+2*T)+" "+(w+2*T)};return d.default.createElement("span",{className:"LineChart",style:{width:k+2*T}},d.default.createElement("svg",R,p?d.default.createElement("g",null,d.default.createElement(b.XAxis,{maxValue:E,padding:T,width:k,height:w}),d.default.createElement(b.YAxis,{axis:x,padding:T,width:k,height:w})):null,C.map(function(t,a){return d.default.createElement("g",{key:a},d.default.createElement(f.default,{points:t,lines:c,area:h,width:k,height:w,padding:T,color:S[a%S.length],updating:o,stroke:y}),d.default.createElement(m.default,{hideLabels:M,dots:g,label:O[a],points:t,dataSetIndex:a,showTooltip:e.showTooltip.bind(e),hideTooltip:e.hideTooltip.bind(e),stroke:y,radius:_}))})),a?d.default.createElement(v.default,{value:n,label:O[this.state.dataSet],x:r-8,y:l-15,color:i}):null)}}]),t}(d.default.Component);y.propTypes={data:c.default.array,axis:c.default.array,colors:c.default.array,labels:c.default.array,lines:c.default.booean,area:c.default.boolean,dots:c.default.boolean,stroke:c.default.number,radius:c.default.number,height:c.default.number,width:c.default.number,grid:c.default.boolean,padding:c.default.number,heightRatio:c.default.number,maxValue:c.default.number,hideLabels:c.default.boolean},y.defaultProps={data:[],colors:["#aaa","#888"],labels:[],lines:!0,area:!0,dots:!0,stroke:1,radius:3,grid:!0,padding:50,heightRatio:1,maxValue:0,hideLabels:!1,height:0,width:400},t.default=y},function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){var o=[],a="",n="";if(-1!=e.search(/[rR]/))for(var r=e.split(/([A-Za-z])/),l=0,i=r.length;i>l;l++){var d=r[l],u=d.toLowerCase();if(-1!=d.search(/[A-Za-z]/)){var p="";if("z"!=u&&(l++,p=r[l].replace(/\s+$/,"")),"r"==u){var f=a+","+n+" "+p,b=s(f,t);o.push(b)}else if(o.push(d+p),"h"==u)a=p;else if("v"==u)n=p;else if("z"!=u){var h=p.split(/[,\s]/);n=h.pop(),a=h.pop()}}}return o}function s(e,t){for(var o=e.split(/[,\s]/),a="",n=0,r=o.length,l;r-2>n;n+=2){l=[],0==n?(l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])}),l.push({x:parseFloat(o[n+4]),y:parseFloat(o[n+5])})):r-4==n?(l.push({x:parseFloat(o[n-2]),y:parseFloat(o[n-1])}),l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])})):(l.push({x:parseFloat(o[n-2]),y:parseFloat(o[n-1])}),l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])}),l.push({x:parseFloat(o[n+4]),y:parseFloat(o[n+5])}));var i=[];i.push({x:l[1].x,y:l[1].y}),i.push({x:(-l[0].x+6*l[1].x+l[2].x)/6,y:(-l[0].y+6*l[1].y+l[2].y)/6}),i.push({x:(l[1].x+6*l[2].x-l[3].x)/6,y:(l[1].y+6*l[2].y-l[3].y)/6}),i.push({x:l[2].x,y:l[2].y}),i=i.map(function(e){return e.y>t&&(e.y=t),e}),a+="C"+i[1].x+","+i[1].y+" "+i[2].x+","+i[2].y+" "+i[3].x+","+i[3].y+" "}return a}Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t){for(var o=0,a;oo.length?1:t+1;this.setState({page:a}),history.pushState({},null,"/coverage/"+a)}},{key:"previousPage",value:function(){var e=this.state.page,t=1>e-1?1:e-1;this.setState({page:t}),history.pushState({},null,"/coverage/"+t)}},{key:"onSelect",value:function(e){var t=this.state,o=t.raw,a=t.chunk;e?this.setState({repos:[[e.value]],selected:e.value,page:1}):this.setState({repos:o.slice(0,0|(o.length+a-1)/a).map(function(e,t){return o.slice(a*t,a*t+a)}),selected:"",page:1})}},{key:"render",value:function(){var e=this.state,t=e.raw,o=e.repos,a=e.page,n=e.selected,r=e.title;if(0 .Select-control {\n background-color: #f9f9f9;\n}\n.Select.is-disabled > .Select-control:hover {\n box-shadow: none;\n}\n.Select.is-disabled .Select-arrow-zone {\n cursor: default;\n pointer-events: none;\n opacity: 0.35;\n}\n.Select-control {\n background-color: #fff;\n border-color: #d9d9d9 #ccc #b3b3b3;\n border-radius: 4px;\n border: 1px solid #ccc;\n color: #333;\n cursor: default;\n display: table;\n border-spacing: 0;\n border-collapse: separate;\n height: 36px;\n outline: none;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.Select-control:hover {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n}\n.Select-control .Select-input:focus {\n outline: none;\n}\n.is-searchable.is-open > .Select-control {\n cursor: text;\n}\n.is-open > .Select-control {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n background: #fff;\n border-color: #b3b3b3 #ccc #d9d9d9;\n}\n.is-open > .Select-control .Select-arrow {\n top: -2px;\n border-color: transparent transparent #999;\n border-width: 0 5px 5px;\n}\n.is-searchable.is-focused:not(.is-open) > .Select-control {\n cursor: text;\n}\n.is-focused:not(.is-open) > .Select-control {\n border-color: #007eff;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1);\n}\n.Select-placeholder,\n.Select--single > .Select-control .Select-value {\n bottom: 0;\n color: #aaa;\n left: 0;\n line-height: 34px;\n padding-left: 10px;\n padding-right: 10px;\n position: absolute;\n right: 0;\n top: 0;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.has-value.is-clearable.Select--single > .Select-control .Select-value {\n padding-right: 42px;\n}\n.has-value.Select--single > .Select-control .Select-value .Select-value-label,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value .Select-value-label {\n color: #333;\n}\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label {\n cursor: pointer;\n text-decoration: none;\n}\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label:focus,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:focus {\n color: #007eff;\n outline: none;\n text-decoration: underline;\n}\n.Select-input {\n height: 34px;\n padding-left: 10px;\n padding-right: 10px;\n vertical-align: middle;\n}\n.Select-input > input {\n width: 100%;\n background: none transparent;\n border: 0 none;\n box-shadow: none;\n cursor: default;\n display: inline-block;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n outline: none;\n line-height: 14px;\n /* For IE 8 compatibility */\n padding: 8px 0 12px;\n /* For IE 8 compatibility */\n -webkit-appearance: none;\n}\n.is-focused .Select-input > input {\n cursor: text;\n}\n.has-value.is-pseudo-focused .Select-input {\n opacity: 0;\n}\n.Select-control:not(.is-searchable) > .Select-input {\n outline: none;\n}\n.Select-loading-zone {\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 16px;\n}\n.Select-loading {\n -webkit-animation: Select-animation-spin 400ms infinite linear;\n -o-animation: Select-animation-spin 400ms infinite linear;\n animation: Select-animation-spin 400ms infinite linear;\n width: 16px;\n height: 16px;\n box-sizing: border-box;\n border-radius: 50%;\n border: 2px solid #ccc;\n border-right-color: #333;\n display: inline-block;\n position: relative;\n vertical-align: middle;\n}\n.Select-clear-zone {\n -webkit-animation: Select-animation-fadeIn 200ms;\n -o-animation: Select-animation-fadeIn 200ms;\n animation: Select-animation-fadeIn 200ms;\n color: #999;\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 17px;\n}\n.Select-clear-zone:hover {\n color: #D0021B;\n}\n.Select-clear {\n display: inline-block;\n font-size: 18px;\n line-height: 1;\n}\n.Select--multi .Select-clear-zone {\n width: 17px;\n}\n.Select-arrow-zone {\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 25px;\n padding-right: 5px;\n}\n.Select-arrow {\n border-color: #999 transparent transparent;\n border-style: solid;\n border-width: 5px 5px 2.5px;\n display: inline-block;\n height: 0;\n width: 0;\n position: relative;\n}\n.is-open .Select-arrow,\n.Select-arrow-zone:hover > .Select-arrow {\n border-top-color: #666;\n}\n.Select--multi .Select-multi-value-wrapper {\n display: inline-block;\n}\n.Select .Select-aria-only {\n display: inline-block;\n height: 1px;\n width: 1px;\n margin: -1px;\n clip: rect(0, 0, 0, 0);\n overflow: hidden;\n float: left;\n}\n@-webkit-keyframes Select-animation-fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes Select-animation-fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.Select-menu-outer {\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-top-color: #e6e6e6;\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n box-sizing: border-box;\n margin-top: -1px;\n max-height: 200px;\n position: absolute;\n top: 100%;\n width: 100%;\n z-index: 1;\n -webkit-overflow-scrolling: touch;\n}\n.Select-menu {\n max-height: 198px;\n overflow-y: auto;\n}\n.Select-option {\n box-sizing: border-box;\n background-color: #fff;\n color: #666666;\n cursor: pointer;\n display: block;\n padding: 8px 10px;\n}\n.Select-option:last-child {\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.Select-option.is-selected {\n background-color: #f5faff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.04);\n color: #333;\n}\n.Select-option.is-focused {\n background-color: #ebf5ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.08);\n color: #333;\n}\n.Select-option.is-disabled {\n color: #cccccc;\n cursor: default;\n}\n.Select-noresults {\n box-sizing: border-box;\n color: #999999;\n cursor: default;\n display: block;\n padding: 8px 10px;\n}\n.Select--multi .Select-input {\n vertical-align: middle;\n margin-left: 10px;\n padding: 0;\n}\n.Select--multi.has-value .Select-input {\n margin-left: 5px;\n}\n.Select--multi .Select-value {\n background-color: #ebf5ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.08);\n border-radius: 2px;\n border: 1px solid #c2e0ff;\n /* Fallback color for IE 8 */\n border: 1px solid rgba(0, 126, 255, 0.24);\n color: #007eff;\n display: inline-block;\n font-size: 0.9em;\n line-height: 1.4;\n margin-left: 5px;\n margin-top: 5px;\n vertical-align: top;\n}\n.Select--multi .Select-value-icon,\n.Select--multi .Select-value-label {\n display: inline-block;\n vertical-align: middle;\n}\n.Select--multi .Select-value-label {\n border-bottom-right-radius: 2px;\n border-top-right-radius: 2px;\n cursor: default;\n padding: 2px 5px;\n}\n.Select--multi a.Select-value-label {\n color: #007eff;\n cursor: pointer;\n text-decoration: none;\n}\n.Select--multi a.Select-value-label:hover {\n text-decoration: underline;\n}\n.Select--multi .Select-value-icon {\n cursor: pointer;\n border-bottom-left-radius: 2px;\n border-top-left-radius: 2px;\n border-right: 1px solid #c2e0ff;\n /* Fallback color for IE 8 */\n border-right: 1px solid rgba(0, 126, 255, 0.24);\n padding: 1px 5px 3px;\n}\n.Select--multi .Select-value-icon:hover,\n.Select--multi .Select-value-icon:focus {\n background-color: #d8eafd;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 113, 230, 0.08);\n color: #0071e6;\n}\n.Select--multi .Select-value-icon:active {\n background-color: #c2e0ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.24);\n}\n.Select--multi.is-disabled .Select-value {\n background-color: #fcfcfc;\n border: 1px solid #e3e3e3;\n color: #333;\n}\n.Select--multi.is-disabled .Select-value-icon {\n cursor: not-allowed;\n border-right: 1px solid #e3e3e3;\n}\n.Select--multi.is-disabled .Select-value-icon:hover,\n.Select--multi.is-disabled .Select-value-icon:focus,\n.Select--multi.is-disabled .Select-value-icon:active {\n background-color: #fcfcfc;\n}\n@keyframes Select-animation-spin {\n to {\n transform: rotate(1turn);\n }\n}\n@-webkit-keyframes Select-animation-spin {\n to {\n -webkit-transform: rotate(1turn);\n }\n}\n",""])},function(e,t,o){"use strict";var a=o(106),n=o(37);e.exports=function(e){var t=a(e);t.token="";var o=t.user.split(":");return 2===o.length&&("x-oauth-basic"===o[1]?t.token=o[0]:"x-token-auth"===o[0]&&(t.token=o[1])),t.protocol=n(t.protocols)||n(e)?"ssh":t.protocols.length?t.protocols[0]:"file",t}},function(e,t,o){"use strict";var a=o(36),n=o(37);e.exports=function(e){var t={protocols:a(e),protocol:null,port:null,resource:"",user:"",pathname:"",hash:"",search:"",href:e},o=e.indexOf("://"),r=null,l=null;return e.startsWith(".")&&(e.startsWith("./")&&(e=e.substring(2)),t.pathname=e,t.protocol="file"),t.protocol=t.protocol||t.protocols[0]||(n(e)?"ssh":"/"===e.charAt(1)?(e=e.substring(2))&&"":"file"),-1!==o&&(e=e.substring(o+3)),l=e.split("/"),"file"!==t.protocol&&(t.resource=l.shift()),r=t.resource.split("@"),2===r.length&&(t.user=r[0],t.resource=r[1]),r=t.resource.split(":"),2===r.length&&(t.resource=r[0],t.port=parseInt(r[1]),isNaN(t.port)&&(t.port=null,l.unshift(r[1]))),l=l.filter(Boolean),t.pathname=t.pathname||("file"!==t.protocol||"/"===t.href[0]?"/":"")+l.join("/"),r=t.pathname.split("#"),2===r.length&&(t.pathname=r[0],t.hash=r[1]),r=t.pathname.split("?"),2===r.length&&(t.pathname=r[0],t.search=r[1]),t}},function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){var o={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a]);return o}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1,o;to.length?1:t+1})}},{key:"previousPage",value:function(){var e=this.state.page;this.setState({page:1>e-1?1:e-1})}},{key:"render",value:function(){var e=this.state,t=e.data,o=e.page;return d.default.createElement("div",null,d.default.createElement("table",{className:"table responsive"},d.default.createElement("thead",null,d.default.createElement("tr",null,Object.keys(t[o-1][0]).map(function(e){return d.default.createElement("th",{key:e},e)}))),d.default.createElement("tbody",null,t[o-1].map(function(e,t){return d.default.createElement("tr",{key:o+"/"+t},Object.keys(e).map(function(o){return d.default.createElement("td",{key:o+"/"+t}," ",d.default.createElement("div",{className:"Commit"===o?"coverage-commit-message":""},e[o])," ")}))}))),1=w&&80<=w?"#cfaf2a":"#c75151",P=b.git,T=P.message,C=P.commit,D=P.branch,R=P.author_name,I=P.author_date,j=p.replace(".git","")+"/commit/"+C;return d.default.createElement("div",{className:"coverage"},d.default.createElement("div",{className:"coverage-header"},d.default.createElement("div",{style:{display:"inline-block",width:"100%"}},d.default.createElement("div",{style:{float:"left",textAlign:"left"}},d.default.createElement("h3",null," ",d.default.createElement("a",{href:"/coverage/"+r.replace(/\./g,"%2E")+"/"+l+"/"},l)," / ",d.default.createElement("a",{href:"/coverage/"+r.replace(/\./g,"%2E")+"/"+l+"/"+i},i)," / ",d.default.createElement("a",{href:"/coverage/"+r.replace(/\./g,"%2E")+"/"+l+"/"+i+"/"+encodeURIComponent(u).replace(/\./g,"$2E")},u)," "),d.default.createElement("p",null,d.default.createElement("a",{className:"coverage-commit-message",href:j,target:"_blank"}," ",T," "),"on branch",d.default.createElement("b",null," ",D," "),(0,c.default)(1e3*I).fromNow(),"\xA0by",d.default.createElement("b",null," ",R," "))),d.default.createElement("h3",{style:{float:"right",color:E}},M,"%")),d.default.createElement(f.default,{width:window.innerWidth-200,data:y,height:100})),d.default.createElement("br",null),d.default.createElement(v.default,{source:m.source,lineMap:s,extension:u.substr(u.lastIndexOf(".")+1,u.length)}))}return d.default.createElement("div",{className:"text-center",style:{width:"100%",position:"absolute",top:"50%",transform:"translateY(-50%)"}},"No Coverage \uD83C\uDF27")}}]),t}(d.default.Component);t.default=_},function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0,a;o\n\n*/\n\n.hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n background: #F0F0F0;\n}\n\n\n/* Base color: saturation 0; */\n\n.hljs,\n.hljs-subst {\n color: #444;\n}\n\n.hljs-comment {\n color: #888888;\n}\n\n.hljs-keyword,\n.hljs-attribute,\n.hljs-selector-tag,\n.hljs-meta-keyword,\n.hljs-doctag,\n.hljs-name {\n font-weight: bold;\n}\n\n\n/* User color: hue: 0 */\n\n.hljs-type,\n.hljs-string,\n.hljs-number,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-quote,\n.hljs-template-tag,\n.hljs-deletion {\n color: #880000;\n}\n\n.hljs-title,\n.hljs-section {\n color: #880000;\n font-weight: bold;\n}\n\n.hljs-regexp,\n.hljs-symbol,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-link,\n.hljs-selector-attr,\n.hljs-selector-pseudo {\n color: #BC6060;\n}\n\n\n/* Language color: hue: 90; */\n\n.hljs-literal {\n color: #78A960;\n}\n\n.hljs-built_in,\n.hljs-bullet,\n.hljs-code,\n.hljs-addition {\n color: #397300;\n}\n\n\n/* Meta color: hue: 200 */\n\n.hljs-meta {\n color: #1f7199;\n}\n\n.hljs-meta-string {\n color: #4d99bf;\n}\n\n\n/* Misc effects */\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n",""])}],[46]); \ No newline at end of file + */function n(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@";}}var r=o(105);a.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var o=e.port?":"+e.port:"",a=e.user||"git";switch(t){case"ssh":return o?"ssh://"+a+"@"+e.resource+o+"/"+e.full_name+".git":a+"@"+e.resource+":"+e.full_name+".git";case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+a+"@"+e.resource+o+"/"+e.full_name+".git";case"http":case"https":var r="";return e.token&&(r=n(e)),t+"://"+r+e.resource+o+"/"+e.full_name+".git";default:return e.href;}},e.exports=a},function(e){"use strict";e.exports=function(e,t){!0===t&&(t=0);var o=e.indexOf("://"),a=e.substring(0,o).split("+").filter(Boolean);return"number"==typeof t?a[t]:a}},function(e,t,o){function a(e){if(Array.isArray(e))return-1!==e.indexOf("ssh")||-1!==e.indexOf("rsync");if("string"!=typeof e)return!1;var t=n(e);return e=e.substring(e.indexOf("://")+3),!!a(t)||e.indexOf("@")=arguments.length?void 0:arguments[2])||[],l=t.apply(void 0,arguments)||[];if(o({label:this.inputValue})){var i=this.props.newOptionCreator,s=i({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),d=this.isOptionUnique({option:s,options:r.concat(l)});if(d){var u=n(this.inputValue);this._createPlaceholderOption=i({label:u,labelKey:this.labelKey,valueKey:this.valueKey}),l.unshift(this._createPlaceholderOption)}}return l}},{key:"isOptionUnique",value:function(e){var t=e.option,o=e.options,a=this.props.isOptionUnique;return o=o||this.select.filterOptions(),a({labelKey:this.labelKey,option:t,options:o,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){var t=this.props.menuRenderer;return t(b({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;t&&t(e),this.inputValue=e}},{key:"onInputKeyDown",value:function(e){var t=this.props,o=t.shouldKeyDownEventCreateNewOption,a=t.onInputKeyDown,n=this.select.getFocusedOption();n&&n===this._createPlaceholderOption&&o({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):a&&a(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,o=t.newOptionCreator,a=t.shouldKeyDownEventCreateNewOption,r=n(t,["newOptionCreator","shouldKeyDownEventCreateNewOption"]),l=this.props.children;l||(l=s);var i=b({},r,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey)}});return l(i)}}]),t}(g.default.Component);M.isOptionUnique=d,M.isValidNewOption=u,M.newOptionCreator=c,M.promptTextCreator=p,M.shouldKeyDownEventCreateNewOption=f,M.defaultProps={filterOptions:w.default,isOptionUnique:d,isValidNewOption:u,menuRenderer:O.default,newOptionCreator:c,promptTextCreator:p,shouldKeyDownEventCreateNewOption:f},M.propTypes={children:v.default.func,filterOptions:v.default.any,isOptionUnique:v.default.func,isValidNewOption:v.default.func,menuRenderer:v.default.any,newOptionCreator:v.default.func,onInputChange:v.default.func,onInputKeyDown:v.default.func,onNewOptionClick:v.default.func,options:v.default.array,promptTextCreator:v.default.func,shouldKeyDownEventCreateNewOption:v.default.func},t.default=M},,function(e,t,o){"use strict";o(47),o(48),o(51);var a=o(14),n=o(63),r=function(e){return e&&e.__esModule?e:{default:e}}(n);(0,a.render)(r.default,document.querySelector("#root"))},function(){(function(e){"use strict";function t(e){if("string"!=typeof e&&(e+=""),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e+=""),e}function a(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return g.iterable&&(t[Symbol.iterator]=function(){return t}),t}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function r(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function l(e){return new Promise(function(t,o){e.onload=function(){t(e.result)},e.onerror=function(){o(e.error)}})}function i(e){var t=new FileReader,o=l(t);return t.readAsArrayBuffer(e),o}function s(e){var t=new FileReader,o=l(t);return t.readAsText(e),o}function d(e){for(var t=new Uint8Array(e),o=Array(t.length),a=0;athis.status,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new n(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],v=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&-1.alert-close{font-size:25px;line-height:15px;position:absolute;right:10px;top:10px}.alert.alert-white{background-color:#fff;border:1px solid #e6e6e6}.alert.alert-white *{color:#000}.alert.alert-black{background-color:#000;border:1px solid #000}.alert.alert-black *{color:#fff}.alert.alert-default{background-color:#cfcfc4;border:1px solid #bdbdae}.alert.alert-default *{color:#fff}.alert.alert-primary{background-color:#779ecb;border:1px solid #608dc2}.alert.alert-primary *{color:#fff}.alert.alert-success{background-color:#7d7;border:1px solid #5cd65c}.alert.alert-success *{color:#fff}.alert.alert-info{background-color:#9bddff;border:1px solid #72cfff}.alert.alert-info *{color:#fff}.alert.alert-warning{background-color:#ffb347;border:1px solid #ffa626}.alert.alert-warning *{color:#fff}.alert.alert-danger{background-color:#ff6961;border:1px solid #ff483e}.alert.alert-danger *{color:#fff}.badge{display:table-cell;padding:8px;border-radius:100px;text-align:center;vertical-align:middle}.badge.badge-white{background-color:#fff;color:#000}.badge.border-white{color:#000}.badge.badge-black{background-color:#000;color:#fff}.badge.border-black{color:#000}.badge.badge-default{background-color:#cfcfc4;color:#fff}.badge.border-default{color:#cfcfc4}.badge.badge-primary{background-color:#779ecb;color:#fff}.badge.border-primary{color:#779ecb}.badge.badge-success{background-color:#7d7;color:#fff}.badge.border-success{color:#7d7}.badge.badge-info{background-color:#9bddff;color:#fff}.badge.border-info{color:#9bddff}.badge.badge-warning{background-color:#ffb347;color:#fff}.badge.border-warning{color:#ffb347}.badge.badge-danger{background-color:#ff6961;color:#fff}.badge.border-danger{color:#ff6961}hr.ellipsis:before,label,select{display:inline-block}label{margin-bottom:.5rem}input,textarea{display:block;line-height:1.5}select{padding:.375rem 1%;background-image:linear-gradient(45deg,transparent 50%,gray 50%),linear-gradient(135deg,gray 50%,transparent 50%);background-position:calc(100% - 20px) calc(1em + 2px),calc(100% - 15px) calc(1em + 2px);background-size:5px 5px,5px 5px,1px 1.5em;background-repeat:no-repeat;background-color:#fff;border:1px solid #cfcfc4;border-radius:5px;line-height:1.5em;padding:5px 30px 5px 15px;width:auto;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none}select:focus{background-image:linear-gradient(45deg,gray 50%,transparent 50%),linear-gradient(135deg,transparent 50%,gray 50%);background-position:calc(100% - 15px) 1em,calc(100% - 20px) 1em;background-size:5px 5px,5px 5px,1px 1.5em;background-repeat:no-repeat;outline:0}input,textarea{width:98%;margin:0;padding:.375rem 1%;background-color:#fff;background-image:none;border:1px solid #cfcfc4;border-radius:.25rem}input:focus,textarea:focus{border-color:#779ecb;outline:0}input.input-white,textarea.input-white{border-color:#fff}input.input-white:focus,textarea.input-white:focus{border-color:#bfbfbf}input.input-black,textarea.input-black{border-color:#a6a6a6}input.input-black:focus,textarea.input-black:focus{border-color:#000}input.input-default,textarea.input-default{border-color:#eeeeea}input.input-default:focus,textarea.input-default:focus{border-color:#a2a28c}input.input-primary,textarea.input-primary{border-color:#cfdded}input.input-primary:focus,textarea.input-primary:focus{border-color:#4375af}input.input-success,textarea.input-success{border-color:#cff3cf}input.input-success:focus,textarea.input-success:focus{border-color:#3c3}input.input-info,textarea.input-info{border-color:#dcf3ff}input.input-info:focus,textarea.input-info:focus{border-color:#35baff}input.input-warning,textarea.input-warning{border-color:#ffe4bf}input.input-warning:focus,textarea.input-warning:focus{border-color:#f49000}input.input-danger,textarea.input-danger{border-color:#ffcbc8}input.input-danger:focus,textarea.input-danger:focus{border-color:#ff1509}.btn-group{margin:10px;display:inline-block}.btn-group>.btn{margin:-3px;border-radius:0}.btn-group>.btn:first-child{border-radius:5px 0 0 5px}.btn-group>.btn:last-child{border-radius:0 5px 5px 0}.btn{padding:12px 18px;margin:10px;cursor:pointer;display:inline-block;text-align:center;background-color:#fff;border-radius:5px;border:1px solid #cfcfc4;color:#655d5d}.btn:hover{border-color:#d6d6cd}.btn:active{opacity:.5}.btn:focus{outline:0}.btn.btn-block,.grid{width:100%}.btn.border-white{color:#fff}.btn.border-white:hover{border-color:#fff}.btn.border-white:active{border-color:#d9d9d9;opacity:.5}.btn.btn-white{color:#000;border:1px solid #d9d9d9}.btn.btn-white:active,.btn.btn-white:hover{border-color:#d9d9d9}.btn.btn-white,.btn.btn-white:hover{background-color:#fff}.btn.btn-white:active{background-color:#d9d9d9;opacity:.5}.btn.border-black{color:#000}.btn.border-black:hover{border-color:#262626}.btn.border-black:active{border-color:#000;opacity:.5}.btn.btn-black{color:#fff;border:1px solid #000;background-color:#000}.btn.btn-black:active,.btn.btn-black:hover{border-color:#000}.btn.btn-black:hover{background-color:#262626}.btn.btn-black:active{background-color:#000;opacity:.5}.btn.border-default{color:#cfcfc4}.btn.border-default:hover{border-color:#d6d6cd}.btn.border-default:active{border-color:#b4b4a3;opacity:.5}.btn.btn-default{color:#fff;border:1px solid #b4b4a3;background-color:#cfcfc4}.btn.btn-default:active,.btn.btn-default:hover{border-color:#b4b4a3}.btn.btn-default:hover{background-color:#d6d6cd}.btn.btn-default:active{background-color:#b4b4a3;opacity:.5}.btn.border-primary{color:#779ecb}.btn.border-primary:hover{border-color:#8badd3}.btn.border-primary:active{border-color:#5485be;opacity:.5}.btn.btn-primary{color:#fff;border:1px solid #5485be;background-color:#779ecb}.btn.btn-primary:active,.btn.btn-primary:hover{border-color:#5485be}.btn.btn-primary:hover{background-color:#8badd3}.btn.btn-primary:active{background-color:#5485be;opacity:.5}.btn.border-success{color:#7d7}.btn.border-success:hover{border-color:#8be28b}.btn.border-success:active{border-color:#4ed34e;opacity:.5}.btn.btn-success{color:#fff;border:1px solid #4ed34e;background-color:#7d7}.btn.btn-success:active,.btn.btn-success:hover{border-color:#4ed34e}.btn.btn-success:hover{background-color:#8be28b}.btn.btn-success:active{background-color:#4ed34e;opacity:.5}.btn.border-info{color:#9bddff}.btn.border-info:hover{border-color:#aae2ff}.btn.border-info:active{border-color:#5dc8ff;opacity:.5}.btn.btn-info{color:#fff;border:1px solid #5dc8ff;background-color:#9bddff}.btn.btn-info:active,.btn.btn-info:hover{border-color:#5dc8ff}.btn.btn-info:hover{background-color:#aae2ff}.btn.btn-info:active{background-color:#5dc8ff;opacity:.5}.btn.border-warning{color:#ffb347}.btn.border-warning:hover{border-color:#ffbe63}.btn.border-warning:active{border-color:#ff9f16;opacity:.5}.btn.btn-warning{color:#fff;border:1px solid #ff9f16;background-color:#ffb347}.btn.btn-warning:active,.btn.btn-warning:hover{border-color:#ff9f16}.btn.btn-warning:hover{background-color:#ffbe63}.btn.btn-warning:active{background-color:#ff9f16;opacity:.5}.btn.border-danger{color:#ff6961}.btn.border-danger:hover{border-color:#ff7f79}.btn.border-danger:active{border-color:#ff372c;opacity:.5}.btn.btn-danger{color:#fff;border:1px solid #ff372c;background-color:#ff6961}.btn.btn-danger:active,.btn.btn-danger:hover{border-color:#ff372c}.btn.btn-danger:hover{background-color:#ff7f79}.btn.btn-danger:active{background-color:#ff372c;opacity:.5}.grid:after{clear:both;visibility:hidden;display:block;font-size:0;content:' ';height:0}.grid>*>*{word-wrap:break-word}.grid>div{float:left;box-sizing:border-box;min-height:1px}.grid>.col-0-12{display:none}.grid>.col-1-12,.grid>.col-2-12{width:8.333333333333332%;margin-left:0%;margin-right:0%}.grid>.col-2-12{width:16.666666666666664%}.grid>.col-3-12,.grid>.col-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-4-12{width:33.33333333333333%}.grid>.col-5-12,.grid>.col-6-12{width:41.66666666666667%;margin-left:0%;margin-right:0%}.grid>.col-6-12{width:50%}.grid>.col-7-12,.grid>.col-8-12{width:58.333333333333336%;margin-left:0%;margin-right:0%}.grid>.col-8-12{width:66.66666666666666%}.grid>.col-10-12,.grid>.col-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-10-12{width:83.33333333333334%}.grid>.col-11-12,.grid>.col-12-12{width:91.66666666666666%;margin-left:0%;margin-right:0%}.grid>.col-12-12{width:100%}@media screen and (min-width:16em){.grid>.col-xs-0-12{display:none}.grid>.col-xs-1-12,.grid>.col-xs-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-xs-2-12{width:16.6666%}.grid>.col-xs-3-12,.grid>.col-xs-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-xs-4-12{width:33.3333%}.grid>.col-xs-5-12,.grid>.col-xs-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-xs-6-12{width:50%}.grid>.col-xs-7-12,.grid>.col-xs-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-xs-8-12{width:66.6666%}.grid>.col-xs-10-12,.grid>.col-xs-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-xs-10-12{width:83.3333%}.grid>.col-xs-11-12,.grid>.col-xs-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-xs-12-12{width:100%}}@media screen and (min-width:32em){.grid>.col-sm-0-12{display:none}.grid>.col-sm-1-12,.grid>.col-sm-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-sm-2-12{width:16.6666%}.grid>.col-sm-3-12,.grid>.col-sm-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-sm-4-12{width:33.3333%}.grid>.col-sm-5-12,.grid>.col-sm-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-sm-6-12{width:50%}.grid>.col-sm-7-12,.grid>.col-sm-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-sm-8-12{width:66.6666%}.grid>.col-sm-10-12,.grid>.col-sm-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-sm-10-12{width:83.3333%}.grid>.col-sm-11-12,.grid>.col-sm-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-sm-12-12{width:100%}}@media screen and (min-width:48em){.grid>.col-md-0-12{display:none}.grid>.col-md-1-12,.grid>.col-md-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-md-2-12{width:16.6666%}.grid>.col-md-3-12,.grid>.col-md-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-md-4-12{width:33.3333%}.grid>.col-md-5-12,.grid>.col-md-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-md-6-12{width:50%}.grid>.col-md-7-12,.grid>.col-md-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-md-8-12{width:66.6666%}.grid>.col-md-10-12,.grid>.col-md-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-md-10-12{width:83.3333%}.grid>.col-md-11-12,.grid>.col-md-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-md-12-12{width:100%}}@media screen and (min-width:64em){.grid>.col-lg-0-12{display:none}.grid>.col-lg-1-12,.grid>.col-lg-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-lg-2-12{width:16.6666%}.grid>.col-lg-3-12,.grid>.col-lg-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-lg-4-12{width:33.3333%}.grid>.col-lg-5-12,.grid>.col-lg-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-lg-6-12{width:50%}.grid>.col-lg-7-12,.grid>.col-lg-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-lg-8-12{width:66.6666%}.grid>.col-lg-10-12,.grid>.col-lg-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-lg-10-12{width:83.3333%}.grid>.col-lg-11-12,.grid>.col-lg-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-lg-12-12{width:100%}}@media screen and (min-width:80em){.grid>.col-xl-0-12{display:none}.grid>.col-xl-1-12,.grid>.col-xl-2-12{width:8.3333%;margin-left:0%;margin-right:0%}.grid>.col-xl-2-12{width:16.6666%}.grid>.col-xl-3-12,.grid>.col-xl-4-12{width:25%;margin-left:0%;margin-right:0%}.grid>.col-xl-4-12{width:33.3333%}.grid>.col-xl-5-12,.grid>.col-xl-6-12{width:41.6666%;margin-left:0%;margin-right:0%}.grid>.col-xl-6-12{width:50%}.grid>.col-xl-7-12,.grid>.col-xl-8-12{width:58.3333%;margin-left:0%;margin-right:0%}.grid>.col-xl-8-12{width:66.6666%}.grid>.col-xl-10-12,.grid>.col-xl-9-12{width:75%;margin-left:0%;margin-right:0%}.grid>.col-xl-10-12{width:83.3333%}.grid>.col-xl-11-12,.grid>.col-xl-12-12{width:91.6666%;margin-left:0%;margin-right:0%}.grid>.col-xl-12-12{width:100%}}.navbar.navbar-center>.container>.navbar-content,body{margin:0}.text-white,.text-white>*{color:#fff!important}.background-white{background-color:#fff!important}.border-white{border-color:#fff!important}.text-black,.text-black>*{color:#000!important}.background-black{background-color:#000!important}.border-black{border-color:#000!important}.text-default,.text-default>*{color:#cfcfc4!important}.background-default{background-color:#cfcfc4!important}.border-default{border-color:#cfcfc4!important}.text-primary,.text-primary>*{color:#779ecb!important}.background-primary{background-color:#779ecb!important}.border-primary{border-color:#779ecb!important}.text-success,.text-success>*{color:#7d7!important}.background-success{background-color:#7d7!important}.border-success{border-color:#7d7!important}.text-info,.text-info>*{color:#9bddff!important}.background-info{background-color:#9bddff!important}.border-info{border-color:#9bddff!important}.text-warning,.text-warning>*{color:#ffb347!important}.background-warning{background-color:#ffb347!important}.border-warning{border-color:#ffb347!important}.text-danger,.text-danger>*{color:#ff6961!important}.background-danger{background-color:#ff6961!important}.border-danger{border-color:#ff6961!important}.responsive{width:100%;height:auto}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.list{list-style:none;margin:0;padding:0}.list>.list-item{clear:both;min-height:30px;height:auto;line-height:30px;overflow:auto;padding:10px;border:1px solid #cfcfc4;border-bottom:0 solid transparent}.list>.list-item>.badge{float:right;line-height:20px}.list>.list-item.list-item-white{color:#000;border-color:#fff;background-color:#fff}.list>.list-item.list-item-white *{color:#000}.list>.list-item.list-item-black{color:#fff;border-color:#333;background-color:#000}.list>.list-item.list-item-black *{color:#fff}.list>.list-item.list-item-default{color:#fff;border-color:#d9d9d0;background-color:#cfcfc4}.list>.list-item.list-item-default *{color:#fff}.list>.list-item.list-item-primary{color:#fff;border-color:#92b1d5;background-color:#779ecb}.list>.list-item.list-item-primary *{color:#fff}.list>.list-item.list-item-success{color:#fff;border-color:#92e492;background-color:#7d7}.list>.list-item.list-item-success *{color:#fff}.list>.list-item.list-item-info{color:#fff;border-color:#afe4ff;background-color:#9bddff}.list>.list-item.list-item-info *{color:#fff}.list>.list-item.list-item-warning{color:#fff;border-color:#ffc26c;background-color:#ffb347}.list>.list-item.list-item-warning *{color:#fff}.list>.list-item.list-item-danger{color:#fff;border-color:#ff8781;background-color:#ff6961}.list>.list-item.list-item-danger *,.table.table-white thead>tr>th{color:#fff}.list>.list-item:first-child{border-radius:5px 5px 0 0}.list>.list-item:last-child{border-bottom:1px solid #cfcfc4;border-radius:0 0 5px 5px}.list>.list-item:only-child{border-radius:5px}.list>.list-item>.list-item-right{float:right}.list>.list-item>.list-item-left{float:left}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(50,50,50,.6);z-index:99999;opacity:0;pointer-events:none}.modal.active,.modal.modal-active,.modal:target{opacity:1;pointer-events:auto}.modal.modal-absolute{position:absolute;z-index:1}.modal-close,.modal.modal-absolute>div{position:absolute}.modal>div{min-width:400px;max-width:90%;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:5px 20px 13px;border-radius:0;background:#fff}.modal.modal-white>div{border-left:10px solid #fff;color:#000}.modal.modal-black>div{border-left:10px solid #000;color:#000}.modal.modal-default>div{border-left:10px solid #cfcfc4;color:#000}.modal.modal-primary>div{border-left:10px solid #779ecb;color:#000}.modal.modal-success>div{border-left:10px solid #7d7;color:#000}.modal.modal-info>div{border-left:10px solid #9bddff;color:#000}.modal.modal-warning>div{border-left:10px solid #ffb347;color:#000}.modal.modal-danger>div{border-left:10px solid #ff6961;color:#000}.modal-close{line-height:25px;right:5px;text-align:center;top:5px;width:24px;text-decoration:none}.navbar *{font-weight:300;display:inline-block;text-decoration:none}.navbar{position:relative;min-height:50px;width:100%;display:table}.navbar>.container{border-width:0 0 1px}.navbar.navbar-fixed{position:fixed;z-index:100000}.navbar.navbar-center>.container{border-width:0 1px 1px;margin:0 auto;width:50%;position:relative}.navbar.border-white>.container{border-style:solid}.navbar.navbar-white>.container{background-color:#fff}.navbar.navbar-white>.container>.nav a.active,.navbar.navbar-white>.container>.nav a:hover,.navbar.navbar-white>.container>.nav a:target{background-color:#fff}.navbar.border-black>.container{border-style:solid}.navbar.navbar-black>.container{background-color:#000}.navbar.navbar-black>.container>.nav a.active,.navbar.navbar-black>.container>.nav a:hover,.navbar.navbar-black>.container>.nav a:target{background-color:#a6a6a6}.navbar.border-default>.container{border-style:solid}.navbar.navbar-default>.container{background-color:#cfcfc4}.navbar.navbar-default>.container>.nav a.active,.navbar.navbar-default>.container>.nav a:hover,.navbar.navbar-default>.container>.nav a:target{background-color:#eeeeea}.navbar.border-primary>.container{border-style:solid}.navbar.navbar-primary>.container{background-color:#779ecb}.navbar.navbar-primary>.container>.nav a.active,.navbar.navbar-primary>.container>.nav a:hover,.navbar.navbar-primary>.container>.nav a:target{background-color:#cfdded}.navbar.border-success>.container{border-style:solid}.navbar.navbar-success>.container{background-color:#7d7}.navbar.navbar-success>.container>.nav a.active,.navbar.navbar-success>.container>.nav a:hover,.navbar.navbar-success>.container>.nav a:target{background-color:#cff3cf}.navbar.border-info>.container{border-style:solid}.navbar.navbar-info>.container{background-color:#9bddff}.navbar.navbar-info>.container>.nav a.active,.navbar.navbar-info>.container>.nav a:hover,.navbar.navbar-info>.container>.nav a:target{background-color:#dcf3ff}.navbar.border-warning>.container{border-style:solid}.navbar.navbar-warning>.container{background-color:#ffb347}.navbar.navbar-warning>.container>.nav a.active,.navbar.navbar-warning>.container>.nav a:hover,.navbar.navbar-warning>.container>.nav a:target{background-color:#ffe4bf}.navbar.border-danger>.container{border-style:solid}.navbar.navbar-danger>.container{background-color:#ff6961}.navbar.navbar-danger>.container>.nav a.active,.navbar.navbar-danger>.container>.nav a:hover,.navbar.navbar-danger>.container>.nav a:target{background-color:#ffcbc8}.navbar>.container{clear:both;margin:0 auto;display:table;width:100%;height:60px}.navbar>.container>.nav{float:right;margin:0 20px 0 0;display:inline-block}.navbar>.container>.nav>*{font-size:15px}.navbar>.container>.nav>select{background-color:transparent}.navbar>.container>.nav>a{padding:20px 10px 22px}.navbar>.container>.nav>a:active,.navbar>.container>.nav>a:hover,.navbar>.container>.nav>a:target{opacity:.6}.navbar .navbar-title{float:left;display:inline-block;margin:20px 0 0 20px}.panel{border:1px solid #cfcfc4;border-radius:5px}.panel.panel-white{border:1px solid #fff}.panel.panel-white .panel-footer,.panel.panel-white>.panel-heading{background-color:#fff;color:#000}.panel.panel-black{border:1px solid #000}.panel.panel-black .panel-footer,.panel.panel-black>.panel-heading{background-color:#000;color:#fff}.panel.panel-default{border:1px solid #cfcfc4}.panel.panel-default .panel-footer,.panel.panel-default>.panel-heading{background-color:#cfcfc4;color:#fff}.panel.panel-primary{border:1px solid #779ecb}.panel.panel-primary .panel-footer,.panel.panel-primary>.panel-heading{background-color:#779ecb;color:#fff}.panel.panel-success{border:1px solid #7d7}.panel.panel-success .panel-footer,.panel.panel-success>.panel-heading{background-color:#7d7;color:#fff}.panel.panel-info{border:1px solid #9bddff}.panel.panel-info .panel-footer,.panel.panel-info>.panel-heading{background-color:#9bddff;color:#fff}.panel.panel-warning{border:1px solid #ffb347}.panel.panel-warning .panel-footer,.panel.panel-warning>.panel-heading{background-color:#ffb347;color:#fff}.panel.panel-danger{border:1px solid #ff6961}.panel.panel-danger .panel-footer,.panel.panel-danger>.panel-heading{background-color:#ff6961;color:#fff}.panel .panel-footer,.panel .panel-heading,.panel>.panel-body{padding:15px}.panel>.panel-body>table{border-bottom:0}.panel>.panel-heading{top:0}.panel>.panel-footer{bottom:0}.tooltip,[data-tooltip]{position:relative;cursor:pointer}.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{position:absolute;visibility:hidden;opacity:0;transition:opacity .2s ease-in-out,visibility,.2s,ease-in-out,transform,.2s,cubic-bezier(.71,1.7,.77,1.24),-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);transform:translate3d(0,0,0);pointer-events:none}.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{visibility:visible;opacity:1}.tooltip:before,[data-tooltip]:before{z-index:1001;border:6px solid transparent;background:0 0;content:''}.tooltip:after,[data-tooltip]:after{z-index:1000;padding:8px;min-width:160px;width:auto;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-tooltip);font-size:14px;line-height:1.2}.tooltip-top:after,.tooltip-top:before,.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{bottom:100%;left:50%}.tooltip-top:before,.tooltip:before,[data-tooltip]:before{margin-left:-6px;margin-bottom:-12px;border-top-color:#000;border-top-color:rgba(51,51,51,.9)}.tooltip-top:after,.tooltip:after,[data-tooltip]:after{margin-left:-80px}.tooltip-top:focus:after,.tooltip-top:focus:before,.tooltip-top:hover:after,.tooltip-top:hover:before,.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{-webkit-transform:translateY(-12px);transform:translateY(-12px)}.tooltip-left:after,.tooltip-left:before{right:100%;bottom:50%;left:auto}.tooltip-left:before{margin-left:0;margin-right:-12px;margin-bottom:0;border-top-color:transparent;border-left-color:#000;border-left-color:rgba(51,51,51,.9)}.tooltip-left:focus:after,.tooltip-left:focus:before,.tooltip-left:hover:after,.tooltip-left:hover:before{-webkit-transform:translateX(-12px);transform:translateX(-12px)}.tooltip-bottom:after,.tooltip-bottom:before{top:100%;bottom:auto;left:50%}.tooltip-bottom:before{margin-top:-12px;margin-bottom:0;border-top-color:transparent;border-bottom-color:#000;border-bottom-color:rgba(51,51,51,.9)}.tooltip-bottom:focus:after,.tooltip-bottom:focus:before,.tooltip-bottom:hover:after,.tooltip-bottom:hover:before{-webkit-transform:translateY(12px);transform:translateY(12px)}.tooltip-right:after,.tooltip-right:before{bottom:50%;left:100%}.tooltip-right:before{margin-bottom:0;margin-left:-12px;border-top-color:transparent;border-right-color:#000;border-right-color:rgba(51,51,51,.9)}.tooltip-right:focus:after,.tooltip-right:focus:before,.tooltip-right:hover:after,.tooltip-right:hover:before{-webkit-transform:translateX(12px);transform:translateX(12px)}.tooltip-left:before,.tooltip-right:before{top:3px}.tooltip-left:after,.tooltip-right:after{margin-left:0;margin-bottom:-16px}[class^=tooltip-]{border-bottom:1px dotted #000;text-decoration:'none'}.progress{width:100%;border:1px solid #cfcfc4;text-align:center}.progress:hover{opacity:.5}.progress .progress-fill{font-size:16px;height:15px;padding:10px 0;background-color:#779ecb}.progress .progress-fill.progress-fill-white{background-color:#fff;color:#000}.progress .progress-fill.progress-fill-black{background-color:#000;color:#fff}.progress .progress-fill.progress-fill-default{background-color:#cfcfc4;color:#fff}.progress .progress-fill.progress-fill-primary{background-color:#779ecb;color:#fff}.progress .progress-fill.progress-fill-success{background-color:#7d7;color:#fff}.progress .progress-fill.progress-fill-info{background-color:#9bddff;color:#fff}.progress .progress-fill.progress-fill-warning{background-color:#ffb347;color:#fff}.progress .progress-fill.progress-fill-danger{background-color:#ff6961;color:#fff}.spinner-overlay{position:relative;top:0;left:0;width:100%;height:100%;z-index:3}.spinner-wrapper{text-align:center;position:relative;top:calc(50% - 50px)}.spinner-wrapper>.spinner{min-height:30px;min-width:30px}.spinner-message{box-sizing:border-box;width:100%;margin-top:30px;text-align:center;font-weight:400;z-index:100;outline:0}.spinner{display:inline-block;min-height:20px;height:auto;min-width:20px;width:auto;background-color:transparent;animation:rotation .7s infinite linear;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:3px solid transparent;border-top:3px solid #2180c0;border-radius:100%}.spinner.spinner-absolute{position:absolute}.spinner.spinner-white{border-top:3px solid #fff}.spinner.spinner-white.spinner-done{border-color:#fff;border-width:3px}.spinner.spinner-black.done:after,.spinner.spinner-danger.done:after,.spinner.spinner-default.done:after,.spinner.spinner-info.done:after,.spinner.spinner-primary.done:after,.spinner.spinner-success.done:after,.spinner.spinner-warning.done:after,.spinner.spinner-white.done:after{border-width:0 3px}.spinner.spinner-black{border-top:3px solid #000}.spinner.spinner-black.spinner-done{border-color:#000;border-width:3px}.spinner.spinner-default{border-top:3px solid #cfcfc4}.spinner.spinner-default.spinner-done{border-color:#cfcfc4;border-width:3px}.spinner.spinner-primary{border-top:3px solid #779ecb}.spinner.spinner-primary.spinner-done{border-color:#779ecb;border-width:3px}.spinner.spinner-success{border-top:3px solid #7d7}.spinner.spinner-success.spinner-done{border-color:#7d7;border-width:3px}.spinner.spinner-info{border-top:3px solid #9bddff}.spinner.spinner-info.spinner-done{border-color:#9bddff;border-width:3px}.spinner.spinner-warning{border-top:3px solid #ffb347}.spinner.spinner-warning.spinner-done{border-color:#ffb347;border-width:3px}.spinner.spinner-danger{border-top:3px solid #ff6961}.spinner.spinner-danger.spinner-done{border-color:#ff6961;border-width:3px}.table{text-align:center;word-break:break-all;border-collapse:collapse;border-spacing:0}.table.table-black thead>tr>th{color:#000}.table.table-default thead>tr>th{color:#cfcfc4}.table.table-primary thead>tr>th{color:#779ecb}.table.table-success thead>tr>th{color:#7d7}.table.table-info thead>tr>th{color:#9bddff}.table.table-warning thead>tr>th{color:#ffb347}.table.table-danger thead>tr>th{color:#ff6961}.table thead>tr>th{font-weight:500}.table tfoot td:empty{padding:0;border-bottom:0}.table td,.table th{text-align:left;font-weight:100;border:1px solid #cfcfc4;padding:10px}.table.responsive{display:table}",""])},function(e){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var o=t.protocol+"//"+t.host,a=o+t.pathname.replace(/\/[^\/]*$/,"/"),n=e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var n=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(n))return e;var r;return r=0===n.indexOf("//")?n:0===n.indexOf("/")?o+n:a+n.replace(/^\.\//,""),"url("+JSON.stringify(r)+")"});return n}},function(e,t,o){var a=o(52);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0},r;n.transform=r;o(5)(a,n);a.locals&&(e.exports=a.locals),!1},function(e,t,o){t=e.exports=o(4)(void 0),t.push([e.i,"* {\n font-family: \"Helvetica Neue\", Sans-serif, Arial;\n}\n\nhtml {\n box-sizing: border-box;\n height: 100%;\n}\nbody {\n position: relative;\n margin: 0;\n padding-bottom: 6rem;\n min-height: 100%;\n width: 100%;\n}\n*,\n*:before,\n*:after {\n box-sizing: inherit;\n}\nul {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n#coverage-area {\n height: 100%;\n width: 100%;\n}\n\n.footer {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n text-align: center;\n}\n\n.list-item-danger {\n border-top: 1px solid rgba(255, 135, 129, 0.5) !important;\n border-right: 1px solid rgba(255, 135, 129, 0.5) !important;\n border-left: 1px solid rgba(255, 135, 129, 0.5) !important;\n background-color: rgba(255, 105, 97, 0.8) !important;\n}\n\n.list-item-success {\n border-top: 1px solid rgba(146, 228, 146, .5) !important;\n border-right: 1px solid rgba(146, 228, 146, 0.5) !important;\n border-left: 1px solid rgba(146, 228, 146, 0.5) !important;\n background-color: rgba(119, 221, 119, 0.8) !important;\n}\n\n.coverage {\n margin-bottom: 50px;\n margin-left: 50px;\n margin-right: 50px;\n}\n.coverage-header {}\n.coverage-commit-message {\n text-overflow: ellipsis;\n\twidth: 200px;\n\twhite-space: nowrap;\n\toverflow: hidden;\n display: inline-block;\n}\n\nul.dropdown-menu.rbt-menu.dropdown-menu-justify {\n position: absolute;\n}\n",""])},,,,,,,,,,,function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=a(n),l=o(26),i=o(92),s=a(i),d=o(93),u=a(d),c=o(102),p=a(c),f=o(115),b=a(f),h=o(117),m=a(h),g=o(13),y=a(g);t.default=r.default.createElement(l.BrowserRouter,null,r.default.createElement(s.default,null,r.default.createElement(l.Switch,null,r.default.createElement(l.Route,{path:"/coverage/:source/:owner/:name/:file",component:m.default}),r.default.createElement(l.Route,{path:"/coverage/:source/:owner/:name",component:b.default}),r.default.createElement(l.Route,{path:"/coverage/:source/:owner/:page?",component:p.default}),r.default.createElement(l.Route,{path:"/coverage/:page?",component:p.default}),r.default.createElement(l.Route,{exact:!0,path:"/",component:u.default}),r.default.createElement(l.Route,{path:"*",component:y.default}))))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0,a;oE?t:E}),P=0===E?1:w/E,C=u.map(function(e,t){return e.map(function(e,o){return[~~(k/D*o+T)+.5,~~(P*(E-e)+T)+.5,e,S[t%S.length]]})});var R={xmlns:"http://www.w3.org/2000/svg",width:k+2*T+"px",height:w+2*T+"px",viewBox:"0 0 "+(k+2*T)+" "+(w+2*T)};return d.default.createElement("span",{className:"LineChart",style:{width:k+2*T}},d.default.createElement("svg",R,p?d.default.createElement("g",null,d.default.createElement(b.XAxis,{maxValue:E,padding:T,width:k,height:w}),d.default.createElement(b.YAxis,{axis:x,padding:T,width:k,height:w})):null,C.map(function(t,a){return d.default.createElement("g",{key:a},d.default.createElement(f.default,{points:t,lines:c,area:h,width:k,height:w,padding:T,color:S[a%S.length],updating:o,stroke:y}),d.default.createElement(m.default,{hideLabels:M,dots:g,label:O[a],points:t,dataSetIndex:a,showTooltip:e.showTooltip.bind(e),hideTooltip:e.hideTooltip.bind(e),stroke:y,radius:_}))})),a?d.default.createElement(v.default,{value:n,label:O[this.state.dataSet],x:r-8,y:l-15,color:i}):null)}}]),t}(d.default.Component);y.propTypes={data:c.default.array,axis:c.default.array,colors:c.default.array,labels:c.default.array,lines:c.default.booean,area:c.default.boolean,dots:c.default.boolean,stroke:c.default.number,radius:c.default.number,height:c.default.number,width:c.default.number,grid:c.default.boolean,padding:c.default.number,heightRatio:c.default.number,maxValue:c.default.number,hideLabels:c.default.boolean},y.defaultProps={data:[],colors:["#aaa","#888"],labels:[],lines:!0,area:!0,dots:!0,stroke:1,radius:3,grid:!0,padding:50,heightRatio:1,maxValue:0,hideLabels:!1,height:0,width:400},t.default=y},function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){var o=[],a="",n="";if(-1!=e.search(/[rR]/))for(var r=e.split(/([A-Za-z])/),l=0,i=r.length;i>l;l++){var d=r[l],u=d.toLowerCase();if(-1!=d.search(/[A-Za-z]/)){var p="";if("z"!=u&&(l++,p=r[l].replace(/\s+$/,"")),"r"==u){var f=a+","+n+" "+p,b=s(f,t);o.push(b)}else if(o.push(d+p),"h"==u)a=p;else if("v"==u)n=p;else if("z"!=u){var h=p.split(/[,\s]/);n=h.pop(),a=h.pop()}}}return o}function s(e,t){for(var o=e.split(/[,\s]/),a="",n=0,r=o.length,l;r-2>n;n+=2){l=[],0==n?(l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])}),l.push({x:parseFloat(o[n+4]),y:parseFloat(o[n+5])})):r-4==n?(l.push({x:parseFloat(o[n-2]),y:parseFloat(o[n-1])}),l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])})):(l.push({x:parseFloat(o[n-2]),y:parseFloat(o[n-1])}),l.push({x:parseFloat(o[n]),y:parseFloat(o[n+1])}),l.push({x:parseFloat(o[n+2]),y:parseFloat(o[n+3])}),l.push({x:parseFloat(o[n+4]),y:parseFloat(o[n+5])}));var i=[];i.push({x:l[1].x,y:l[1].y}),i.push({x:(-l[0].x+6*l[1].x+l[2].x)/6,y:(-l[0].y+6*l[1].y+l[2].y)/6}),i.push({x:(l[1].x+6*l[2].x-l[3].x)/6,y:(l[1].y+6*l[2].y-l[3].y)/6}),i.push({x:l[2].x,y:l[2].y}),i=i.map(function(e){return e.y>t&&(e.y=t),e}),a+="C"+i[1].x+","+i[1].y+" "+i[2].x+","+i[2].y+" "+i[3].x+","+i[3].y+" "}return a}Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t){for(var o=0,a;oo.length?1:t+1;this.setState({page:a}),history.pushState({},null,"/coverage/"+a)}},{key:"previousPage",value:function(){var e=this.state.page,t=1>e-1?1:e-1;this.setState({page:t}),history.pushState({},null,"/coverage/"+t)}},{key:"onSelect",value:function(e){var t=this.state,o=t.raw,a=t.chunk;e?this.setState({repos:[[e.value]],selected:e.value,page:1}):this.setState({repos:o.slice(0,0|(o.length+a-1)/a).map(function(e,t){return o.slice(a*t,a*t+a)}),selected:"",page:1})}},{key:"render",value:function(){var e=this.state,t=e.raw,o=e.repos,a=e.page,n=e.selected,r=e.title;if(0 .Select-control {\n background-color: #f9f9f9;\n}\n.Select.is-disabled > .Select-control:hover {\n box-shadow: none;\n}\n.Select.is-disabled .Select-arrow-zone {\n cursor: default;\n pointer-events: none;\n opacity: 0.35;\n}\n.Select-control {\n background-color: #fff;\n border-color: #d9d9d9 #ccc #b3b3b3;\n border-radius: 4px;\n border: 1px solid #ccc;\n color: #333;\n cursor: default;\n display: table;\n border-spacing: 0;\n border-collapse: separate;\n height: 36px;\n outline: none;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.Select-control:hover {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n}\n.Select-control .Select-input:focus {\n outline: none;\n}\n.is-searchable.is-open > .Select-control {\n cursor: text;\n}\n.is-open > .Select-control {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n background: #fff;\n border-color: #b3b3b3 #ccc #d9d9d9;\n}\n.is-open > .Select-control .Select-arrow {\n top: -2px;\n border-color: transparent transparent #999;\n border-width: 0 5px 5px;\n}\n.is-searchable.is-focused:not(.is-open) > .Select-control {\n cursor: text;\n}\n.is-focused:not(.is-open) > .Select-control {\n border-color: #007eff;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1);\n}\n.Select-placeholder,\n.Select--single > .Select-control .Select-value {\n bottom: 0;\n color: #aaa;\n left: 0;\n line-height: 34px;\n padding-left: 10px;\n padding-right: 10px;\n position: absolute;\n right: 0;\n top: 0;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.has-value.is-clearable.Select--single > .Select-control .Select-value {\n padding-right: 42px;\n}\n.has-value.Select--single > .Select-control .Select-value .Select-value-label,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value .Select-value-label {\n color: #333;\n}\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label {\n cursor: pointer;\n text-decoration: none;\n}\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.has-value.Select--single > .Select-control .Select-value a.Select-value-label:focus,\n.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:focus {\n color: #007eff;\n outline: none;\n text-decoration: underline;\n}\n.Select-input {\n height: 34px;\n padding-left: 10px;\n padding-right: 10px;\n vertical-align: middle;\n}\n.Select-input > input {\n width: 100%;\n background: none transparent;\n border: 0 none;\n box-shadow: none;\n cursor: default;\n display: inline-block;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n outline: none;\n line-height: 14px;\n /* For IE 8 compatibility */\n padding: 8px 0 12px;\n /* For IE 8 compatibility */\n -webkit-appearance: none;\n}\n.is-focused .Select-input > input {\n cursor: text;\n}\n.has-value.is-pseudo-focused .Select-input {\n opacity: 0;\n}\n.Select-control:not(.is-searchable) > .Select-input {\n outline: none;\n}\n.Select-loading-zone {\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 16px;\n}\n.Select-loading {\n -webkit-animation: Select-animation-spin 400ms infinite linear;\n -o-animation: Select-animation-spin 400ms infinite linear;\n animation: Select-animation-spin 400ms infinite linear;\n width: 16px;\n height: 16px;\n box-sizing: border-box;\n border-radius: 50%;\n border: 2px solid #ccc;\n border-right-color: #333;\n display: inline-block;\n position: relative;\n vertical-align: middle;\n}\n.Select-clear-zone {\n -webkit-animation: Select-animation-fadeIn 200ms;\n -o-animation: Select-animation-fadeIn 200ms;\n animation: Select-animation-fadeIn 200ms;\n color: #999;\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 17px;\n}\n.Select-clear-zone:hover {\n color: #D0021B;\n}\n.Select-clear {\n display: inline-block;\n font-size: 18px;\n line-height: 1;\n}\n.Select--multi .Select-clear-zone {\n width: 17px;\n}\n.Select-arrow-zone {\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 25px;\n padding-right: 5px;\n}\n.Select-arrow {\n border-color: #999 transparent transparent;\n border-style: solid;\n border-width: 5px 5px 2.5px;\n display: inline-block;\n height: 0;\n width: 0;\n position: relative;\n}\n.is-open .Select-arrow,\n.Select-arrow-zone:hover > .Select-arrow {\n border-top-color: #666;\n}\n.Select--multi .Select-multi-value-wrapper {\n display: inline-block;\n}\n.Select .Select-aria-only {\n display: inline-block;\n height: 1px;\n width: 1px;\n margin: -1px;\n clip: rect(0, 0, 0, 0);\n overflow: hidden;\n float: left;\n}\n@-webkit-keyframes Select-animation-fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes Select-animation-fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.Select-menu-outer {\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-top-color: #e6e6e6;\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n box-sizing: border-box;\n margin-top: -1px;\n max-height: 200px;\n position: absolute;\n top: 100%;\n width: 100%;\n z-index: 1;\n -webkit-overflow-scrolling: touch;\n}\n.Select-menu {\n max-height: 198px;\n overflow-y: auto;\n}\n.Select-option {\n box-sizing: border-box;\n background-color: #fff;\n color: #666666;\n cursor: pointer;\n display: block;\n padding: 8px 10px;\n}\n.Select-option:last-child {\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.Select-option.is-selected {\n background-color: #f5faff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.04);\n color: #333;\n}\n.Select-option.is-focused {\n background-color: #ebf5ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.08);\n color: #333;\n}\n.Select-option.is-disabled {\n color: #cccccc;\n cursor: default;\n}\n.Select-noresults {\n box-sizing: border-box;\n color: #999999;\n cursor: default;\n display: block;\n padding: 8px 10px;\n}\n.Select--multi .Select-input {\n vertical-align: middle;\n margin-left: 10px;\n padding: 0;\n}\n.Select--multi.has-value .Select-input {\n margin-left: 5px;\n}\n.Select--multi .Select-value {\n background-color: #ebf5ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.08);\n border-radius: 2px;\n border: 1px solid #c2e0ff;\n /* Fallback color for IE 8 */\n border: 1px solid rgba(0, 126, 255, 0.24);\n color: #007eff;\n display: inline-block;\n font-size: 0.9em;\n line-height: 1.4;\n margin-left: 5px;\n margin-top: 5px;\n vertical-align: top;\n}\n.Select--multi .Select-value-icon,\n.Select--multi .Select-value-label {\n display: inline-block;\n vertical-align: middle;\n}\n.Select--multi .Select-value-label {\n border-bottom-right-radius: 2px;\n border-top-right-radius: 2px;\n cursor: default;\n padding: 2px 5px;\n}\n.Select--multi a.Select-value-label {\n color: #007eff;\n cursor: pointer;\n text-decoration: none;\n}\n.Select--multi a.Select-value-label:hover {\n text-decoration: underline;\n}\n.Select--multi .Select-value-icon {\n cursor: pointer;\n border-bottom-left-radius: 2px;\n border-top-left-radius: 2px;\n border-right: 1px solid #c2e0ff;\n /* Fallback color for IE 8 */\n border-right: 1px solid rgba(0, 126, 255, 0.24);\n padding: 1px 5px 3px;\n}\n.Select--multi .Select-value-icon:hover,\n.Select--multi .Select-value-icon:focus {\n background-color: #d8eafd;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 113, 230, 0.08);\n color: #0071e6;\n}\n.Select--multi .Select-value-icon:active {\n background-color: #c2e0ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.24);\n}\n.Select--multi.is-disabled .Select-value {\n background-color: #fcfcfc;\n border: 1px solid #e3e3e3;\n color: #333;\n}\n.Select--multi.is-disabled .Select-value-icon {\n cursor: not-allowed;\n border-right: 1px solid #e3e3e3;\n}\n.Select--multi.is-disabled .Select-value-icon:hover,\n.Select--multi.is-disabled .Select-value-icon:focus,\n.Select--multi.is-disabled .Select-value-icon:active {\n background-color: #fcfcfc;\n}\n@keyframes Select-animation-spin {\n to {\n transform: rotate(1turn);\n }\n}\n@-webkit-keyframes Select-animation-spin {\n to {\n -webkit-transform: rotate(1turn);\n }\n}\n",""])},function(e,t,o){"use strict";var a=o(106),n=o(37);e.exports=function(e){var t=a(e);t.token="";var o=t.user.split(":");return 2===o.length&&("x-oauth-basic"===o[1]?t.token=o[0]:"x-token-auth"===o[0]&&(t.token=o[1])),t.protocol=n(t.protocols)||n(e)?"ssh":t.protocols.length?t.protocols[0]:"file",t}},function(e,t,o){"use strict";var a=o(36),n=o(37);e.exports=function(e){var t={protocols:a(e),protocol:null,port:null,resource:"",user:"",pathname:"",hash:"",search:"",href:e},o=e.indexOf("://"),r=null,l=null;return e.startsWith(".")&&(e.startsWith("./")&&(e=e.substring(2)),t.pathname=e,t.protocol="file"),t.protocol=t.protocol||t.protocols[0]||(n(e)?"ssh":"/"===e.charAt(1)?(e=e.substring(2))&&"":"file"),-1!==o&&(e=e.substring(o+3)),l=e.split("/"),"file"!==t.protocol&&(t.resource=l.shift()),r=t.resource.split("@"),2===r.length&&(t.user=r[0],t.resource=r[1]),r=t.resource.split(":"),2===r.length&&(t.resource=r[0],t.port=parseInt(r[1]),isNaN(t.port)&&(t.port=null,l.unshift(r[1]))),l=l.filter(Boolean),t.pathname=t.pathname||("file"!==t.protocol||"/"===t.href[0]?"/":"")+l.join("/"),r=t.pathname.split("#"),2===r.length&&(t.pathname=r[0],t.hash=r[1]),r=t.pathname.split("?"),2===r.length&&(t.pathname=r[0],t.search=r[1]),t}},function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){var o={};for(var a in e)0<=t.indexOf(a)||Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a]);return o}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1,o;to.length?1:t+1})}},{key:"previousPage",value:function(){var e=this.state.page;this.setState({page:1>e-1?1:e-1})}},{key:"render",value:function(){var e=this.state,t=e.data,o=e.page;return d.default.createElement("div",null,d.default.createElement("table",{className:"table responsive"},d.default.createElement("thead",null,d.default.createElement("tr",null,Object.keys(t[o-1][0]).map(function(e){return d.default.createElement("th",{key:e},e)}))),d.default.createElement("tbody",null,t[o-1].map(function(e,t){return d.default.createElement("tr",{key:o+"/"+t},Object.keys(e).map(function(o){return d.default.createElement("td",{key:o+"/"+t}," ",d.default.createElement("div",{className:"Commit"===o?"coverage-commit-message":""},e[o])," ")}))}))),1=M&&80<=M?"#cfaf2a":"#c75151",D=b.git,R=D.message,I=D.commit,j=D.branch,Y=D.author_name,V=D.author_date,N=p.replace(".git","")+"/commit/"+I;return d.default.createElement("div",{className:"coverage"},d.default.createElement("div",{className:"coverage-header"},d.default.createElement("div",{style:{display:"inline-block",width:"100%"}},d.default.createElement("div",{style:{float:"left",textAlign:"left"}},d.default.createElement("h3",null," ",d.default.createElement("a",{href:"/coverage/"+r.replace(/\./g,"%2E")+"/"+l+"/"},l)," / ",d.default.createElement("a",{href:"/coverage/"+r.replace(/\./g,"%2E")+"/"+l+"/"+i},i)," / ",d.default.createElement("a",{href:"/coverage/"+r.replace(/\./g,"%2E")+"/"+l+"/"+i+"/"+encodeURIComponent(u).replace(/\./g,"$2E")},u)," "),d.default.createElement("p",null,d.default.createElement("a",{className:"coverage-commit-message",href:N,target:"_blank"}," ",R," "),"on branch",d.default.createElement("b",null," ",j," "),(0,c.default)(1e3*V).fromNow(),"\xA0by",d.default.createElement("b",null," ",Y," "))),d.default.createElement("h3",{style:{float:"right",color:C}},T,"%")),d.default.createElement(f.default,{width:window.innerWidth-200,data:y,height:100})),d.default.createElement("br",null),d.default.createElement(v.default,{source:m.source,lineMap:s,extension:u.substr(u.lastIndexOf(".")+1,u.length)}))}return d.default.createElement("div",{className:"text-center",style:{width:"100%",position:"absolute",top:"50%",transform:"translateY(-50%)"}},"No Coverage \uD83C\uDF27")}}]),t}(d.default.Component);t.default=_},function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var o=0,a;o\n\n*/\n\n.hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n background: #F0F0F0;\n}\n\n\n/* Base color: saturation 0; */\n\n.hljs,\n.hljs-subst {\n color: #444;\n}\n\n.hljs-comment {\n color: #888888;\n}\n\n.hljs-keyword,\n.hljs-attribute,\n.hljs-selector-tag,\n.hljs-meta-keyword,\n.hljs-doctag,\n.hljs-name {\n font-weight: bold;\n}\n\n\n/* User color: hue: 0 */\n\n.hljs-type,\n.hljs-string,\n.hljs-number,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-quote,\n.hljs-template-tag,\n.hljs-deletion {\n color: #880000;\n}\n\n.hljs-title,\n.hljs-section {\n color: #880000;\n font-weight: bold;\n}\n\n.hljs-regexp,\n.hljs-symbol,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-link,\n.hljs-selector-attr,\n.hljs-selector-pseudo {\n color: #BC6060;\n}\n\n\n/* Language color: hue: 90; */\n\n.hljs-literal {\n color: #78A960;\n}\n\n.hljs-built_in,\n.hljs-bullet,\n.hljs-code,\n.hljs-addition {\n color: #397300;\n}\n\n\n/* Meta color: hue: 200 */\n\n.hljs-meta {\n color: #1f7199;\n}\n\n.hljs-meta-string {\n color: #4d99bf;\n}\n\n\n/* Misc effects */\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n",""])}],[46]); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index ac0f1ed..fa11090 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,5 +12,5 @@ object-assign (c) Sindre Sorhus @license MIT -*/var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function r(e){if(null===e||e===void 0){throw new TypeError('Object.assign cannot be called with null or undefined')}return Object(e)}function o(){try{if(!Object.assign){return!1}var e=new String('abc');e[5]='de';if('5'===Object.getOwnPropertyNames(e)[0]){return!1}for(var t={},n=0;10>n;n++){t['_'+String.fromCharCode(n)]=n}var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if('0123456789'!==r.join('')){return!1}var o={};['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t'].forEach(function(e){o[e]=e});if('abcdefghijklmnopqrst'!==Object.keys(Object.assign({},o)).join('')){return!1}return!0}catch(e){return!1}}e.exports=o()?Object.assign:function(e,t){for(var n,o=r(e),l,d=1;dt.index)this.lastIndex--}return t};if(!l){RegExp.prototype.test=function(e){var t=a.exec.call(this,e);if(t&&this.global&&!t[0].length&&this.lastIndex>t.index)this.lastIndex--;return!!t}}function r(e){return(e.global?'g':'')+(e.ignoreCase?'i':'')+(e.multiline?'m':'')+(e.extended?'x':'')+(e.sticky?'y':'')}function o(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var r=n||0;rn)e=n}else if(void 0==e){e=0}else if(0>e){e=c(n+e,0)}if(!(e+tl){for(f=p;f--;){this[u+f]=this[l+f]}}if(a&&e===g){this.length=g;this.push.apply(this,o)}else{this.length=g+a;for(f=0;f>>0;if('[object Function]'!=b(t)){throw new TypeError}while(++a>>0,a=Array(o),s=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var l=0;l>>0,a=[],s,l=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var d=0;d>>0,a=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var s=0;s>>0,a=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var s=0;s>>0;if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}if(!o&&1==arguments.length){throw new TypeError('reduce of empty array with no initial value')}var a=0,i;if(2<=arguments.length){i=arguments[1]}else{do{if(a in r){i=r[a++];break}if(++a>=o){throw new TypeError('reduce of empty array with no initial value')}}while(!0)}for(;a>>0;if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}if(!o&&1==arguments.length){throw new TypeError('reduceRight of empty array with no initial value')}var a,s=o-1;if(2<=arguments.length){a=arguments[1]}else{do{if(s in r){a=r[s--];break}if(0>--s){throw new TypeError('reduceRight of empty array with no initial value')}}while(!0)}do{if(s in this){a=t.call(void 0,a,r[s],s,n)}}while(s--);return a}}if(!Array.prototype.indexOf||-1!=[0,1].indexOf(1,2)){Array.prototype.indexOf=function e(t){var n=F&&'[object String]'==b(this)?this.split(''):H(this),r=n.length>>>0;if(!r){return-1}var o=0;if(1>>0;if(!r){return-1}var o=r-1;if(1t.isIE;t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&'Gecko'===window.navigator.product;t.isOldGecko=t.isGecko&&4>parseInt((o.match(/rv:(\d+)/)||[])[1],10);t.isOpera=window.opera&&'[object Opera]'==Object.prototype.toString.call(window.opera);t.isWebKit=parseFloat(o.split('WebKit/')[1])||void 0;t.isChrome=parseFloat(o.split(' Chrome/')[1])||void 0;t.isAIR=0<=o.indexOf('AdobeAIR');t.isIPad=0<=o.indexOf('iPad');t.isTouchPad=0<=o.indexOf('TouchPad');t.isChromeOS=0<=o.indexOf(' CrOS ')});ace.define('ace/lib/event',['require','exports','module','ace/lib/keys','ace/lib/useragent'],function(e,t,n){'use strict';var a=e('./keys'),i=e('./useragent'),s=null,d=0;t.addListener=function(e,t,n){if(e.addEventListener){return e.addEventListener(t,n,!1)}if(e.attachEvent){var r=function(){n.call(e,window.event)};n._wrapper=r;e.attachEvent('on'+t,r)}};t.removeListener=function(e,t,n){if(e.removeEventListener){return e.removeEventListener(t,n,!1)}if(e.detachEvent){e.detachEvent('on'+t,n._wrapper||n)}};t.stopEvent=function(n){t.stopPropagation(n);t.preventDefault(n);return!1};t.stopPropagation=function(t){if(t.stopPropagation)t.stopPropagation();else t.cancelBubble=!0};t.preventDefault=function(t){if(t.preventDefault)t.preventDefault();else t.returnValue=!1};t.getButton=function(t){if('dblclick'==t.type)return 0;if('contextmenu'==t.type||i.isMac&&t.ctrlKey&&!t.altKey&&!t.shiftKey)return 2;if(t.preventDefault){return t.button}else{return{1:0,2:2,4:1}[t.button]}};t.capture=function(e,n,r){function o(a){n&&n(a);r&&r(a);t.removeListener(document,'mousemove',n,!0);t.removeListener(document,'mouseup',o,!0);t.removeListener(document,'dragstart',o,!0)}t.addListener(document,'mousemove',n,!0);t.addListener(document,'mouseup',o,!0);t.addListener(document,'dragstart',o,!0);return o};t.addTouchMoveListener=function(e,n){if('ontouchmove'in e){var r,o;t.addListener(e,'touchstart',function(t){var e=t.changedTouches[0];r=e.clientX;o=e.clientY});t.addListener(e,'touchmove',function(t){var e=1,a=t.changedTouches[0];t.wheelX=-(a.clientX-r)/e;t.wheelY=-(a.clientY-o)/e;r=a.clientX;o=a.clientY;n(t)})}};t.addMouseWheelListener=function(e,n){if('onmousewheel'in e){t.addListener(e,'mousewheel',function(t){var e=8;if(t.wheelDeltaX!==void 0){t.wheelX=-t.wheelDeltaX/e;t.wheelY=-t.wheelDeltaY/e}else{t.wheelX=0;t.wheelY=-t.wheelDelta/e}n(t)})}else if('onwheel'in e){t.addListener(e,'wheel',function(t){var e=0.35;switch(t.deltaMode){case t.DOM_DELTA_PIXEL:t.wheelX=t.deltaX*e||0;t.wheelY=t.deltaY*e||0;break;case t.DOM_DELTA_LINE:case t.DOM_DELTA_PAGE:t.wheelX=5*(t.deltaX||0);t.wheelY=5*(t.deltaY||0);break;}n(t)})}else{t.addListener(e,'DOMMouseScroll',function(t){if(t.axis&&t.axis==t.HORIZONTAL_AXIS){t.wheelX=5*(t.detail||0);t.wheelY=0}else{t.wheelX=0;t.wheelY=5*(t.detail||0)}n(t)})}};t.addMultiMouseDownListener=function(e,n,r,o){var d=0,c,u,p,g={2:'dblclick',3:'tripleclick',4:'quadclick'};function a(a){if(0!==t.getButton(a)){d=0}else if(1l)s.altGr=!0}}}if(e in a.MODIFIER_KEYS){e=-1}if(8&r&&91<=e&&93>=e){e=-1}if(!r&&13===e){var o='location'in n?n.location:n.keyLocation;if(3===o){t(n,r,-e);if(n.defaultPrevented)return}}if(i.isChromeOS&&8&r){t(n,r,e);if(n.defaultPrevented)return;else r&=-9}if(!r&&!(e in a.FUNCTION_KEYS)&&!(e in a.PRINTABLE_KEYS)){return!1}return t(n,r,e)}t.addCommandKeyListener=function(e,n){var a=t.addListener;if(i.isOldGecko||i.isOpera&&!('KeyboardEvent'in window)){var l=null;a(e,'keydown',function(t){l=t.keyCode});a(e,'keypress',function(t){return r(n,t,l)})}else{var d=null;a(e,'keydown',function(t){s[t.keyCode]=(s[t.keyCode]||0)+1;var e=r(n,t,t.keyCode);d=t.defaultPrevented;return e});a(e,'keypress',function(n){if(d&&(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)){t.stopEvent(n);d=null}});a(e,'keyup',function(t){s[t.keyCode]=null});if(!s){o();a(window,'focus',o)}}};function o(){s=Object.create(null)}if('object'==typeof window&&window.postMessage&&!i.isOldIE){var u=1;t.nextTick=function(n,r){r=r||window;var o='zero-timeout-message-'+u;t.addListener(r,'message',function a(i){if(i.data==o){t.stopPropagation(i);t.removeListener(r,'message',a);n()}});r.postMessage(o,'*')}}t.nextFrame='object'==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame);if(t.nextFrame)t.nextFrame=t.nextFrame.bind(window);else t.nextFrame=function(e){setTimeout(e,17)}});ace.define('ace/lib/lang',['require','exports','module'],function(e,t,n){'use strict';t.last=function(e){return e[e.length-1]};t.stringReverse=function(e){return e.split('').reverse().join('')};t.stringRepeat=function(e,t){var n='';while(0>=1)e+=e}return n};var r=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,'')};t.stringTrimRight=function(e){return e.replace(o,'')};t.copyObject=function(e){var t={};for(var n in e){t[n]=e[n]}return t};t.copyArray=function(e){for(var t=[],n=0,r=e.length;no.isChrome,l=o.isIE,c=function(e,t){var p=a.createElement('textarea');p.className='ace_text-input';if(o.isTouchPad)p.setAttribute('x-palm-disable-auto-cap',!0);p.setAttribute('wrap','off');p.setAttribute('autocorrect','off');p.setAttribute('autocapitalize','off');p.setAttribute('spellcheck',!1);p.style.opacity='0';if(o.isOldIE)p.style.top='-1000px';e.insertBefore(p,e.firstChild);var g='\x01\x01',f=!1,h=!1,m=!1,b='',y=!0;try{var v=document.activeElement===p}catch(t){}r.addListener(p,'blur',function(n){t.onBlur(n);v=!1});r.addListener(p,'focus',function(r){v=!0;t.onFocus(r);n()});this.focus=function(){if(b)return p.focus();var e=p.style.top;p.style.position='fixed';p.style.top='0px';p.focus();setTimeout(function(){p.style.position='';if('0px'==p.style.top)p.style.top=e},0)};this.blur=function(){p.blur()};this.isFocused=function(){return v};var k=i.delayedCall(function(){v&&n(y)}),x=i.delayedCall(function(){if(!m){p.value=g;v&&n()}});function n(e){if(m)return;m=!0;if(_){t=0;n=e?0:p.value.length-1}else{var t=e?2:1,n=2}try{p.setSelectionRange(t,n)}catch(t){}m=!1}function u(){if(m)return;p.value=g;if(o.isWebKit)x.schedule()}o.isWebKit||t.addEventListener('changeSelection',function(){if(t.selection.isEmpty()!=y){y=!y;k.schedule()}});u();if(v)t.onFocus();var w=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length};if(!p.setSelectionRange&&p.createTextRange){p.setSelectionRange=function(e,t){var n=this.createTextRange();n.collapse(!0);n.moveStart('character',e);n.moveEnd('character',t);n.select()};w=function(e){try{var t=e.ownerDocument.selection.createRange()}catch(t){}if(!t||t.parentElement()!=e)return!1;return t.text==e.value}}if(o.isOldIE){var C=!1,A=function(t){if(C)return;var e=p.value;if(m||!e||e==g)return;if(t&&e==g[0])return E.schedule();T(e);C=!0;u();C=!1},E=i.delayedCall(A);r.addListener(p,'propertychange',A);var F={13:1,27:1};r.addListener(p,'keyup',function(t){if(m&&(!p.value||F[t.keyCode]))setTimeout(j,0);if(129>(p.value.charCodeAt(0)||0)){return E.call()}m?N():O()});r.addListener(p,'keydown',function(t){E.schedule(50)})}var S=function(r){if(f){f=!1}else if(w(p)){t.selectAll();n()}else if(_){n(t.selection.isEmpty())}},_=null;this.setInputHandler=function(e){_=e};this.getInputHandler=function(){return _};var L=!1,T=function(e){if(_){e=_(e);_=null}if(h){n();if(e)t.onPaste(e);h=!1}else if(e==g.charAt(0)){if(L)t.execCommand('del',{source:'ace'});else t.execCommand('backspace',{source:'ace'})}else{if(e.substring(0,2)==g)e=e.substr(2);else if(e.charAt(0)==g.charAt(0))e=e.substr(1);else if(e.charAt(e.length-1)==g.charAt(0))e=e.slice(0,-1);if(e.charAt(e.length-1)==g.charAt(0))e=e.slice(0,-1);if(e)t.onTextInput(e)}if(L)L=!1},D=function(t){if(m)return;var e=p.value;T(e);u()},B=function(t,n,r){var e=t.clipboardData||window.clipboardData;if(!e||s)return;var o=l||r?'Text':'text/plain';try{if(n){return!1!==e.setData(o,n)}else{return e.getData(o)}}catch(t){if(!r)return B(t,n,!0)}},$=function(o,e){var a=t.getCopyText();if(!a)return r.preventDefault(o);if(B(o,a)){e?t.onCut():t.onCopy();r.preventDefault(o)}else{f=!0;p.value=a;p.select();setTimeout(function(){f=!1;u();n();e?t.onCut():t.onCopy()})}},R=function(t){$(t,!0)},M=function(t){$(t,!1)},P=function(a){var e=B(a);if('string'==typeof e){if(e)t.onPaste(e,a);if(o.isIE)setTimeout(n);r.preventDefault(a)}else{p.value='';h=!0}};r.addCommandKeyListener(p,t.onCommandKey.bind(t));r.addListener(p,'select',S);r.addListener(p,'input',D);r.addListener(p,'cut',R);r.addListener(p,'copy',M);r.addListener(p,'paste',P);if(!('oncut'in p)||!('oncopy'in p)||!('onpaste'in p)){r.addListener(e,'keydown',function(t){if(o.isMac&&!t.metaKey||!t.ctrlKey)return;switch(t.keyCode){case 67:M(t);break;case 86:P(t);break;case 88:R(t);break;}})}var O=function(n){if(m||!t.onCompositionStart||t.$readOnly)return;m={};m.canUndo=t.session.$undoManager;t.onCompositionStart();setTimeout(N,0);t.on('mousedown',j);if(m.canUndo&&!t.selection.isEmpty()){t.insert('');t.session.markUndoGroup();t.selection.clearSelection()}t.session.markUndoGroup()},N=function(){if(!m||!t.onCompositionUpdate||t.$readOnly)return;var e=p.value.replace(/\x01/g,'');if(m.lastValue===e)return;t.onCompositionUpdate(e);if(m.lastValue)t.undo();if(m.canUndo)m.lastValue=e;if(m.lastValue){var n=t.selection.getRange();t.insert(m.lastValue);t.session.markUndoGroup();m.range=t.selection.getRange();t.selection.setRange(n);t.selection.clearSelection()}},j=function(n){if(!t.onCompositionEnd||t.$readOnly)return;var e=m;m=!1;var r=setTimeout(function(){r=null;var t=p.value.replace(/\x01/g,'');if(m)return;else if(t==e.lastValue)u();else if(!e.lastValue&&t){u();T(t)}});_=function n(o){if(r)clearTimeout(r);o=o.replace(/\x01/g,'');if(o==e.lastValue)return'';if(e.lastValue&&r)t.undo();return o};t.onCompositionEnd();t.removeListener('mousedown',j);if('compositionend'==n.type&&e.range){t.selection.setRange(e.range)}if(o.isChrome&&53<=o.isChrome){D()}},I=i.delayedCall(N,50);r.addListener(p,'compositionstart',O);if(o.isGecko){r.addListener(p,'text',function(){I.schedule()})}else{r.addListener(p,'keyup',function(){I.schedule()});r.addListener(p,'keydown',function(){I.schedule()})}r.addListener(p,'compositionend',j);this.getElement=function(){return p};this.setReadOnly=function(e){p.readOnly=e};this.onContextMenu=function(r){L=!0;n(t.selection.isEmpty());t._emit('nativecontextmenu',{target:t,domEvent:r});this.moveToMouse(r,!0)};this.moveToMouse=function(n,e){if(!e&&o.isOldIE)return;if(!b)b=p.style.cssText;p.style.cssText=(e?'z-index:100000;':'')+'height:'+p.style.height+';'+(o.isIE?'opacity:0.1;':'');var i=t.container.getBoundingClientRect(),s=a.computedStyle(t.container),l=i.top+(parseInt(s.borderTopWidth)||0),u=i.left+(parseInt(i.borderLeftWidth)||0),g=i.bottom-l-p.clientHeight-2,f=function(t){p.style.left=t.clientX-u-2+'px';p.style.top=d(t.clientY-l-2,g)+'px'};f(n);if('mousedown'!=n.type)return;if(t.renderer.$keepTextAreaAtCursor)t.renderer.$keepTextAreaAtCursor=null;clearTimeout(W);if(o.isWin&&!o.isOldIE)r.capture(t.container,f,c)};this.onContextMenuClose=c;var W;function c(){clearTimeout(W);W=setTimeout(function(){if(b){p.style.cssText=b;b=''}if(null==t.renderer.$keepTextAreaAtCursor){t.renderer.$keepTextAreaAtCursor=!0;t.renderer.$moveTextAreaToCursor()}},o.isOldIE?200:0)}var H=function(n){t.textInput.onContextMenu(n);c()};r.addListener(p,'mouseup',H);r.addListener(p,'mousedown',function(t){t.preventDefault();c()});r.addListener(t.renderer.scroller,'contextmenu',H);r.addListener(p,'contextmenu',H)};t.TextInput=c});ace.define('ace/mouse/default_handlers',['require','exports','module','ace/lib/dom','ace/lib/event','ace/lib/useragent'],function(e,t,n){'use strict';var l=e('../lib/dom'),d=e('../lib/event'),c=e('../lib/useragent'),u=0;function r(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler('mousedown',this.onMouseDown.bind(e));t.setDefaultHandler('dblclick',this.onDoubleClick.bind(e));t.setDefaultHandler('tripleclick',this.onTripleClick.bind(e));t.setDefaultHandler('quadclick',this.onQuadClick.bind(e));t.setDefaultHandler('mousewheel',this.onMouseWheel.bind(e));t.setDefaultHandler('touchmove',this.onTouchMove.bind(e));var n=['select','startSelect','selectEnd','selectAllEnd','selectByWordsEnd','selectByLinesEnd','dragWait','dragWaitEnd','focusWait'];n.forEach(function(t){e[t]=this[t]},this);e.selectByLines=this.extendSelectionBy.bind(e,'getLineRange');e.selectByWords=this.extendSelectionBy.bind(e,'getWordRange')}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,o=e.getButton();if(0!==o){var a=r.getSelectionRange(),i=a.isEmpty();r.$blockScrolling++;if(i||1==o)r.selection.moveToPosition(n);r.$blockScrolling--;if(2==o)r.textInput.onContextMenu(e.domEvent);return}this.mousedownEvent.time=Date.now();if(t&&!r.isFocused()){r.focus();if(this.$focusTimout&&!this.$clickSelection&&!r.inMultiSelectMode){this.setState('focusWait');this.captureMouse(e);return}}this.captureMouse(e);this.startSelect(n,1=s){t=this.$clickSelection.end;if(o.end.row!=r.row||o.end.column!=r.column)r=o.start}else if(1==s&&0<=a){t=this.$clickSelection.start;if(o.start.row!=r.row||o.start.column!=r.column)r=o.end}else if(-1==a&&1==s){r=o.end;t=o.start}else{var l=i(this.$clickSelection,r);r=l.cursor;t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r);n.$blockScrolling--;n.renderer.scrollCursorIntoView()};this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null;this.editor.unsetStyle('ace_selecting');if(this.editor.renderer.scroller.releaseCapture){this.editor.renderer.scroller.releaseCapture()}};this.focusWait=function(){var e=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();if(e>u||t-this.mousedownEvent.time>this.$focusTimout)this.startSelect(this.mousedownEvent.getDocumentPosition())};this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session,o=r.getBracketRange(t);if(o){if(o.isEmpty()){o.start.column--;o.end.column++}this.setState('select')}else{o=n.selection.getWordRange(t.row,t.column);this.setState('selectByWords')}this.$clickSelection=o;this.select()};this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState('selectByLines');var r=n.getSelectionRange();if(r.isMultiLine()&&r.contains(t.row,t.column)){this.$clickSelection=n.selection.getLineRange(r.start.row);this.$clickSelection.end=n.selection.getLineRange(r.end.row).end}else{this.$clickSelection=n.selection.getLineRange(t.row)}this.select()};this.onQuadClick=function(e){var t=this.editor;t.selectAll();this.$clickSelection=t.getSelectionRange();this.setState('selectAll')};this.onMouseWheel=function(e){if(e.getAccelKey())return;if(e.getShiftKey()&&e.wheelY&&!e.wheelX){e.wheelX=e.wheelY;e.wheelY=0}var n=e.domEvent.timeStamp,t=n-(this.$lastScrollTime||0),r=this.editor,o=r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed);if(o||200>t){this.$lastScrollTime=n;r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed);return e.stop()}};this.onTouchMove=function(e){var n=e.domEvent.timeStamp,t=n-(this.$lastScrollTime||0),r=this.editor,o=r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed);if(o||200>t){this.$lastScrollTime=n;r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed);return e.stop()}}}).call(r.prototype);t.DefaultHandlers=r;function o(e,t,n,r){return a(s(n-e,2)+s(r-t,2))}function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row==e.end.row-1&&!e.start.column&&!e.end.column)var n=t.column-4;else var n=2*t.row-e.start.row-e.end.row;if(0>n)return{cursor:e.start,anchor:e.end};else return{cursor:e.end,anchor:e.start}}});ace.define('ace/tooltip',['require','exports','module','ace/lib/oop','ace/lib/dom'],function(e,t,n){'use strict';var o=e('./lib/oop'),a=e('./lib/dom');function r(e){this.isOpen=!1;this.$element=null;this.$parentNode=e}(function(){this.$init=function(){this.$element=a.createElement('div');this.$element.className='ace_tooltip';this.$element.style.display='none';this.$parentNode.appendChild(this.$element);return this.$element};this.getElement=function(){return this.$element||this.$init()};this.setText=function(e){a.setInnerText(this.getElement(),e)};this.setHtml=function(e){this.getElement().innerHTML=e};this.setPosition=function(e,t){this.getElement().style.left=e+'px';this.getElement().style.top=t+'px'};this.setClassName=function(e){a.addCssClass(this.getElement(),e)};this.show=function(e,t,n){if(null!=e)this.setText(e);if(null!=t&&null!=n)this.setPosition(t,n);if(!this.isOpen){this.getElement().style.display='block';this.isOpen=!0}};this.hide=function(){if(this.isOpen){this.getElement().style.display='none';this.isOpen=!1}};this.getHeight=function(){return this.getElement().offsetHeight};this.getWidth=function(){return this.getElement().offsetWidth}}).call(r.prototype);t.Tooltip=r});ace.define('ace/mouse/default_gutter_handler',['require','exports','module','ace/lib/dom','ace/lib/oop','ace/lib/event','ace/tooltip'],function(e,t,n){'use strict';var a=e('../lib/dom'),i=e('../lib/oop'),s=e('../lib/event'),l=e('../tooltip').Tooltip;function r(t){var i=t.editor,l=i.renderer.$gutterLayer,d=new o(i.container);t.editor.setDefaultHandler('guttermousedown',function(n){if(!i.isFocused()||0!=n.getButton())return;var e=l.getRegion(n);if('foldWidgets'==e)return;var r=n.getDocumentPosition().row,o=i.session.selection;if(n.getShiftKey())o.selectTo(r,0);else{if(2==n.domEvent.detail){i.selectAll();return n.preventDefault()}t.$clickSelection=i.selection.getLineRange(r)}t.setState('selectByLines');t.captureMouse(n);return n.preventDefault()});var c,u,p;function e(){var e=u.getDocumentPosition().row,o=l.$annotations[e];if(!o)return n();var a=i.session.getLength();if(e==a){var s=i.renderer.pixelToScreenCoordinates(0,u.y).row,c=u.$pos;if(s>i.session.documentToScreenRow(c.row,c.column))return n()}if(p==o)return;p=o.text.join('
');d.setHtml(p);d.show();i._signal('showGutterTooltip',d);i.on('mousewheel',n);if(t.$tooltipFollowsMouse){r(u)}else{var g=u.domEvent.target,f=g.getBoundingClientRect(),h=d.getElement().style;h.left=f.right+'px';h.top=f.bottom+'px'}}function n(){if(c)c=clearTimeout(c);if(p){d.hide();p=null;i._signal('hideGutterTooltip',d);i.removeEventListener('mousewheel',n)}}function r(t){d.setPosition(t.x,t.y)}t.editor.setDefaultHandler('guttermousemove',function(o){var i=o.domEvent.target||o.domEvent.srcElement;if(a.hasCssClass(i,'ace_fold-widget'))return n();if(p&&t.$tooltipFollowsMouse)r(o);u=o;if(c)return;c=setTimeout(function(){c=null;if(u&&!t.isMousePressed)e();else n()},50)});s.addListener(i.renderer.$gutter,'mouseout',function(t){u=null;if(!p||c)return;c=setTimeout(function(){c=null;n()},50)});i.on('changeSession',n)}function o(e){l.call(this,e)}i.inherits(o,l);(function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),a=this.getHeight();e+=15;t+=15;if(e+o>n){e-=e+o-n}if(t+a>r){t-=20+a}l.prototype.setPosition.call(this,e,t)}}).call(o.prototype);t.GutterHandler=r});ace.define('ace/mouse/mouse_event',['require','exports','module','ace/lib/event','ace/lib/useragent'],function(e,t,n){'use strict';var r=e('../lib/event'),o=e('../lib/useragent'),a=t.MouseEvent=function(e,t){this.domEvent=e;this.editor=t;this.x=this.clientX=e.clientX;this.y=this.clientY=e.clientY;this.$pos=null;this.$inSelection=null;this.propagationStopped=!1;this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent);this.propagationStopped=!0};this.preventDefault=function(){r.preventDefault(this.domEvent);this.defaultPrevented=!0};this.stop=function(){this.stopPropagation();this.preventDefault()};this.getDocumentPosition=function(){if(this.$pos)return this.$pos;this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY);return this.$pos};this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection};this.getButton=function(){return r.getButton(this.domEvent)};this.getShiftKey=function(){return this.domEvent.shiftKey};this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(a.prototype)});ace.define('ace/mouse/dragdrop_handler',['require','exports','module','ace/lib/dom','ace/lib/event','ace/lib/useragent'],function(e,t,n){'use strict';var i=e('../lib/dom'),l=e('../lib/event'),c=e('../lib/useragent'),u=200,p=200,g=5;function r(e){var b=e.editor,v=i.createElement('img');v.src='data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';if(c.isOpera)v.style.cssText='width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;';var k=['dragWait','dragWaitEnd','startDrag','dragReadyEnd','onMouseDrag'];k.forEach(function(t){e[t]=this[t]},this);b.addEventListener('mousedown',this.onMouseDown.bind(e));var w=b.container,C,A,E,F,S,_,L=0,T,D,B,$,R;this.onDragStart=function(t){if(this.cancelDrag||!w.draggable){var e=this;setTimeout(function(){e.startSelect();e.captureMouse(t)},0);return t.preventDefault()}S=b.getSelectionRange();var n=t.dataTransfer;n.effectAllowed=b.getReadOnly()?'copy':'copyMove';if(c.isOpera){b.container.appendChild(v);v.scrollTop=0}n.setDragImage&&n.setDragImage(v,0,0);if(c.isOpera){b.container.removeChild(v)}n.clearData();n.setData('Text',b.session.getTextRange());D=!0;this.setState('drag')};this.onDragEnd=function(t){w.draggable=!1;D=!1;this.setState(null);if(!b.getReadOnly()){var e=t.dataTransfer.dropEffect;if(!T&&'move'==e)b.session.remove(b.getSelectionRange());b.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle('ace_dragging');this.editor.renderer.setCursorStyle('')};this.onDragEnter=function(t){if(b.getReadOnly()||!h(t.dataTransfer))return;A=t.clientX;E=t.clientY;if(!C)a();L++;t.dataTransfer.dropEffect=T=m(t);return l.preventDefault(t)};this.onDragOver=function(t){if(b.getReadOnly()||!h(t.dataTransfer))return;A=t.clientX;E=t.clientY;if(!C){a();L++}if(null!==M)M=null;t.dataTransfer.dropEffect=T=m(t);return l.preventDefault(t)};this.onDragLeave=function(t){L--;if(0>=L&&C){s();T=null;return l.preventDefault(t)}};this.onDrop=function(t){if(!_)return;var e=t.dataTransfer;if(D){switch(T){case'move':if(S.contains(_.row,_.column)){S={start:_,end:_}}else{S=b.moveText(S,_)}break;case'copy':S=b.moveText(S,_,!0);break;}}else{var n=e.getData('Text');S={start:_,end:b.session.insert(_,n)};b.focus();T=null}s();return l.preventDefault(t)};l.addListener(w,'dragstart',this.onDragStart.bind(e));l.addListener(w,'dragend',this.onDragEnd.bind(e));l.addListener(w,'dragenter',this.onDragEnter.bind(e));l.addListener(w,'dragover',this.onDragOver.bind(e));l.addListener(w,'dragleave',this.onDragLeave.bind(e));l.addListener(w,'drop',this.onDrop.bind(e));function t(e,t){var n=Date.now(),r=!t||e.row!=t.row,a=!t||e.column!=t.column;if(!$||r||a){b.$blockScrolling+=1;b.moveCursorToPosition(e);b.$blockScrolling-=1;$=n;R={x:A,y:E}}else{var i=o(R.x,R.y,A,E);if(i>g){$=null}else if(n-$>=p){b.renderer.scrollCursorIntoView();$=null}}}function n(e,t){var n=Date.now(),r=b.renderer.layerConfig.lineHeight,o=b.renderer.layerConfig.characterWidth,a=b.renderer.scroller.getBoundingClientRect(),i={x:{left:A-a.left,right:a.right-A},y:{top:E-a.top,bottom:a.bottom-E}},s=d(i.x.left,i.x.right),l=d(i.y.top,i.y.bottom),c={row:e.row,column:e.column};if(2>=s/o){c.column+=i.x.left=l/r){c.row+=i.y.top=u)b.renderer.scrollCursorIntoView(c)}else{B=null}}function r(){var e=_;_=b.renderer.screenToTextCoordinates(A,E);t(_,e);n(_,e)}function a(){S=b.selection.toOrientedRange();C=b.session.addMarker(S,'ace_selection',b.getSelectionStyle());b.clearSelection();if(b.isFocused())b.renderer.$cursorLayer.setBlinking(!1);clearInterval(F);r();F=setInterval(r,20);L=0;l.addListener(document,'mousemove',f)}function s(){clearInterval(F);b.session.removeMarker(C);C=null;b.$blockScrolling+=1;b.selection.fromOrientedRange(S);b.$blockScrolling-=1;if(b.isFocused()&&!D)b.renderer.$cursorLayer.setBlinking(!b.getReadOnly());S=null;_=null;L=0;B=null;$=null;l.removeListener(document,'mousemove',f)}var M=null;function f(){if(null==M){M=setTimeout(function(){if(null!=M&&C)s()},20)}}function h(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return'text/plain'==e||'Text'==e})}function m(t){var e=['copy','copymove','all','uninitialized'],n=['move','copymove','linkmove','all','uninitialized'],r=c.isMac?t.altKey:t.ctrlKey,o='uninitialized';try{o=t.dataTransfer.effectAllowed.toLowerCase()}catch(t){}var a='none';if(r&&0<=e.indexOf(o))a='copy';else if(0<=n.indexOf(o))a='move';else if(0<=e.indexOf(o))a='copy';return a}}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;if(e>this.editor.getDragDelay())this.startDrag()};this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1;this.startSelect(this.mousedownEvent.getDocumentPosition());this.selectEnd()};this.dragReadyEnd=function(t){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly());this.editor.unsetStyle('ace_dragging');this.editor.renderer.setCursorStyle('');this.dragWaitEnd()};this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0;e.renderer.$cursorLayer.setBlinking(!1);e.setStyle('ace_dragging');var n=c.isWin?'default':'move';e.renderer.setCursorStyle(n);this.setState('dragReady')};this.onMouseDrag=function(t){var e=this.editor.container;if(c.isIE&&'dragReady'==this.state){var n=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);if(3 ['+this.end.row+'/'+this.end.column+']'};this.contains=function(e,t){return 0==this.compare(e,t)};this.compareRange=function(e){var t,n=e.end,r=e.start;t=this.compare(n.row,n.column);if(1==t){t=this.compare(r.row,r.column);if(1==t){return 2}else if(0==t){return 1}else{return 0}}else if(-1==t){return-2}else{t=this.compare(r.row,r.column);if(-1==t){return-1}else if(1==t){return 42}else{return 0}}};this.comparePoint=function(e){return this.compare(e.row,e.column)};this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)};this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t};this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t};this.isStart=function(e,t){return this.start.row==e&&this.start.column==t};this.setStart=function(e,t){if('object'==typeof e){this.start.column=e.column;this.start.row=e.row}else{this.start.row=e;this.start.column=t}};this.setEnd=function(e,t){if('object'==typeof e){this.end.column=e.column;this.end.row=e.row}else{this.end.row=e;this.end.column=t}};this.inside=function(e,t){if(0==this.compare(e,t)){if(this.isEnd(e,t)||this.isStart(e,t)){return!1}else{return!0}}return!1};this.insideStart=function(e,t){if(0==this.compare(e,t)){if(this.isEnd(e,t)){return!1}else{return!0}}return!1};this.insideEnd=function(e,t){if(0==this.compare(e,t)){if(this.isStart(e,t)){return!1}else{return!0}}return!1};this.compare=function(e,t){if(!this.isMultiLine()){if(e===this.start.row){return tthis.end.column?1:0}}if(ethis.end.row)return 1;if(this.start.row===e)return t>=this.start.column?0:-1;if(this.end.row===e)return t<=this.end.column?0:1;return 0};this.compareStart=function(e,t){if(this.start.row==e&&this.start.column==t){return-1}else{return this.compare(e,t)}};this.compareEnd=function(e,t){if(this.end.row==e&&this.end.column==t){return 1}else{return this.compare(e,t)}};this.compareInside=function(e,t){if(this.end.row==e&&this.end.column==t){return 1}else if(this.start.row==e&&this.start.column==t){return-1}else{return this.compare(e,t)}};this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var r={row:t+1,column:0};else if(this.start.rowt.row||e.row==t.row&&e.column>t.column};this.getRange=function(){var e=this.anchor,t=this.lead;if(this.isEmpty())return s.fromPoints(t,t);if(this.isBackwards()){return s.fromPoints(t,e)}else{return s.fromPoints(e,t)}};this.clearSelection=function(){if(!this.$isEmpty){this.$isEmpty=!0;this._emit('changeSelection')}};this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0);this.moveCursorTo(e,this.doc.getLine(e).length)};this.setRange=this.setSelectionRange=function(e,t){if(t){this.setSelectionAnchor(e.end.row,e.end.column);this.selectTo(e.start.row,e.start.column)}else{this.setSelectionAnchor(e.start.row,e.start.column);this.selectTo(e.end.row,e.end.column)}if(this.getRange().isEmpty())this.$isEmpty=!0;this.$desiredColumn=null};this.$moveSelection=function(e){var t=this.lead;if(this.$isEmpty)this.setSelectionAnchor(t.row,t.column);e.call(this)};this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})};this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})};this.moveTo=function(e,t){this.clearSelection();this.moveCursorTo(e,t)};this.moveToPosition=function(e){this.clearSelection();this.moveCursorToPosition(e)};this.selectUp=function(){this.$moveSelection(this.moveCursorUp)};this.selectDown=function(){this.$moveSelection(this.moveCursorDown)};this.selectRight=function(){this.$moveSelection(this.moveCursorRight)};this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)};this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)};this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)};this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)};this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)};this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)};this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)};this.getWordRange=function(e,t){if('undefined'==typeof t){var n=e||this.lead;e=n.row;t=n.column}return this.session.getWordRange(e,t)};this.selectWord=function(){this.setSelectionRange(this.getWordRange())};this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)};this.getLineRange=function(e,t){var n='number'==typeof e?e:this.lead.row,r,o=this.session.getFoldLine(n);if(o){n=o.start.row;r=o.end.row}else{r=n}if(!0===t)return new s(n,0,r,this.session.getLine(r).length);else return new s(n,0,r+1,0)};this.selectLine=function(){this.setSelectionRange(this.getLineRange())};this.moveCursorUp=function(){this.moveCursorBy(-1,0)};this.moveCursorDown=function(){this.moveCursorBy(1,0)};this.moveCursorLeft=function(){var e=this.lead.getPosition(),t;if(t=this.session.getFoldAt(e.row,e.column,-1)){this.moveCursorTo(t.start.row,t.start.column)}else if(0===e.column){if(0=n.length){this.moveCursorTo(e,n.length);this.moveCursorRight();if(e=t){this.moveCursorTo(e,0);this.moveCursorLeft();if(0n){a.lastIndex=0;while((r=e[n])&&!a.test(r)){a.lastIndex=0;n++;if(o.test(r)){if(2u){var y=e.substring(u,b-m.length);if(g.type==f){g.value+=y}else{if(g.type)c.push(g);g={type:f,value:y}}}for(var v=0;vo){if(p>2*e.length){this.reportError('infinite loop with in ace tokenizer',{startState:t,line:e})}while(uthis.$tokenIndex){this.$row-=1;if(0>this.$row){this.$row=0;return null}this.$rowTokens=this.$session.getTokens(this.$row);this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]};this.stepForward=function(){this.$tokenIndex+=1;var e;while(this.$tokenIndex>=this.$rowTokens.length){this.$row+=1;if(!e)e=this.$session.getLength();if(this.$row>=e){this.$row=e-1;return null}this.$rowTokens=this.$session.getTokens(this.$row);this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]};this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]};this.getCurrentTokenRow=function(){return this.$row};this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(n!==void 0)return n;n=0;while(0e.length){w=e.length}});if(c==Infinity){c=w;s=!1;d=!1}if(p&&0!=c%u)c=i(c/u)*u;o(d?y:m)};this.toggleBlockComment=function(e,t,n,r){var o=this.blockComment;if(!o)return;if(!o.start&&o[0])o=o[0];var a=new d(t,r.row,r.column),s=a.getCurrentToken(),l=t.selection,u=t.selection.toOrientedRange(),p,g;if(s&&/comment/.test(s.type)){var f,h;while(s&&/comment/.test(s.type)){var m=s.value.indexOf(o.start);if(-1!=m){var i=a.getCurrentTokenRow(),b=a.getCurrentTokenColumn()+m;f=new c(i,b,i,b+o.start.length);break}s=a.stepBackward()}var a=new d(t,r.row,r.column),s=a.getCurrentToken();while(s&&/comment/.test(s.type)){var m=s.value.indexOf(o.end);if(-1!=m){var i=a.getCurrentTokenRow(),b=a.getCurrentTokenColumn()+m;h=new c(i,b,i,b+o.end.length);break}s=a.stepForward()}if(h)t.remove(h);if(f){t.remove(f);p=f.start.row;g=-o.start.length}}else{g=o.start.length;p=n.start.row;t.insert(n.end,o.end);t.insert(n.start,o.start)}if(u.start.row==p)u.start.column+=g;if(u.end.row==p)u.end.column+=g;t.selection.fromOrientedRange(u)};this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)};this.checkOutdent=function(e,t,n){return!1};this.autoOutdent=function(e,t,n){};this.$getIndent=function(e){return e.match(/^\s*/)[0]};this.createWorker=function(e){return null};this.createModeDelegates=function(e){this.$embeds=[];this.$modes={};for(var t in e){if(e[t]){this.$embeds.push(t);this.$modes[t]=new e[t]}}for(var n=['toggleBlockComment','toggleCommentLines','getNextLineIndent','checkOutdent','autoOutdent','transformAction','getCompletions'],t=0;tthis.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)};function e(e,t,n){var r=n?e.column<=t.column:e.column=this.document.getLength()){n.row=c(0,this.document.getLength()-1);n.column=this.document.getLine(n.row).length}else if(0>e){n.row=0;n.column=0}else{n.row=e;n.column=d(this.document.getLine(n.row).length,c(0,t))}if(0>t)n.column=0;return n}}).call(a.prototype)});ace.define('ace/document',['require','exports','module','ace/lib/oop','ace/apply_delta','ace/lib/event_emitter','ace/range','ace/anchor'],function(e,t,n){'use strict';var r=e('./lib/oop'),o=e('./apply_delta').applyDelta,a=e('./lib/event_emitter').EventEmitter,i=e('./range').Range,s=e('./anchor').Anchor,l=function(e){this.$lines=[''];if(0===e.length){this.$lines=['']}else if(Array.isArray(e)){this.insertMergedLines({row:0,column:0},e)}else{this.insert({row:0,column:0},e)}};(function(){r.implement(this,a);this.setValue=function(e){var t=this.getLength()-1;this.remove(new i(0,0,t,this.getLine(t).length));this.insert({row:0,column:0},e)};this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())};this.createAnchor=function(e,t){return new s(this,e,t)};if(0==='aaa'.split(/a/).length){this.$split=function(e){return e.replace(/\r\n|\r/g,'\n').split('\n')}}else{this.$split=function(e){return e.split(/\r\n|\r|\n/)}}this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:'\n';this._signal('changeNewLineMode')};this.getNewLineCharacter=function(){switch(this.$newLineMode){case'windows':return'\r\n';case'unix':return'\n';default:return this.$autoNewLine||'\n';}};this.$autoNewLine='';this.$newLineMode='auto';this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e;this._signal('changeNewLineMode')};this.getNewLineMode=function(){return this.$newLineMode};this.isNewLine=function(e){return'\r\n'==e||'\r'==e||'\n'==e};this.getLine=function(e){return this.$lines[e]||''};this.getLines=function(e,t){return this.$lines.slice(e,t+1)};this.getAllLines=function(){return this.getLines(0,this.getLength())};this.getLength=function(){return this.$lines.length};this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())};this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row){t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]}else{t=this.getLines(e.start.row,e.end.row);t[0]=(t[0]||'').substring(e.start.column);var n=t.length-1;if(e.end.row-e.start.row==n)t[n]=t[n].substring(0,e.end.column)}return t};this.insertLines=function(e,t){console.warn('Use of document.insertLines is deprecated. Use the insertFullLines method instead.');return this.insertFullLines(e,t)};this.removeLines=function(e,t){console.warn('Use of document.removeLines is deprecated. Use the removeFullLines method instead.');return this.removeFullLines(e,t)};this.insertNewLine=function(e){console.warn('Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead.');return this.insertMergedLines(e,['',''])};this.insert=function(e,t){if(1>=this.getLength())this.$detectNewLine(t);return this.insertMergedLines(e,this.$split(t))};this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);this.applyDelta({start:n,end:r,action:'insert',lines:[t]},!0);return this.clonePos(r)};this.clippedPos=function(e,t){var n=this.getLength();if(e===void 0){e=n}else if(0>e){e=0}else if(e>=n){e=n-1;t=void 0}var r=this.getLine(e);if(t==void 0)t=r.length;t=d(c(t,0),r.length);return{row:e,column:t}};this.clonePos=function(e){return{row:e.row,column:e.column}};this.pos=function(e,t){return{row:e,column:t}};this.$clipPosition=function(e){var t=this.getLength();if(e.row>=t){e.row=c(0,t-1);e.column=this.getLine(t-1).length}else{e.row=c(0,e.row);e.column=d(c(e.column,0),this.getLine(e.row).length)}return e};this.insertFullLines=function(e,t){e=d(c(e,0),this.getLength());var n=0;if(e=e.lines.length&&!e.lines[0]:!i.comparePoints(e.start,e.end)){return}if(n&&2e4r){e.lines=l;e.start.row=o+i;e.start.column=a;break}l.push('');this.applyDelta({start:this.pos(o+i,a),end:this.pos(o+s,a=0),action:e.action,lines:l},!0)}while(!0)};this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:'insert'==e.action?'remove':'insert',lines:e.lines.slice()})};this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=t||0,a=n.length;oe)return{row:o,column:e+n[o].length+r}}return{row:a-1,column:n[a-1].length}};this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=0,a=d(e.row,n.length),s=t||0;se+1)this.currentLine=e+1}else if(this.currentLine==e){this.currentLine=e+1}return this.lines[e]=r.tokens}}).call(a.prototype);t.BackgroundTokenizer=a});ace.define('ace/search_highlight',['require','exports','module','ace/lib/lang','ace/lib/oop','ace/range'],function(e,t,n){'use strict';var r=e('./lib/lang'),o=e('./lib/oop'),a=e('./range').Range,i=function(e,t,n){this.setRegexp(e);this.clazz=t;this.type=n||'text'};(function(){this.MAX_RANGES=500;this.setRegexp=function(e){if(this.regExp+''==e+'')return;this.regExp=e;this.cache=[]};this.update=function(e,t,n,o){if(!this.regExp)return;for(var s=o.firstRow,l=o.lastRow,d=s,i;d<=l;d++){i=this.cache[d];if(null==i){i=r.getMatchOffsets(n.getLine(d),this.regExp);if(i.length>this.MAX_RANGES)i=i.slice(0,this.MAX_RANGES);i=i.map(function(e){return new a(d,e.offset,d,e.offset+e.length)});this.cache[d]=i.length?i:''}for(var c=i.length;c--;){t.drawSingleLineMarker(e,i[c].toScreenRange(n),this.clazz,o)}}}}).call(i.prototype);t.SearchHighlight=i});ace.define('ace/edit_session/fold_line',['require','exports','module','ace/range'],function(e,t,n){'use strict';var o=e('../range').Range;function r(e,t){this.foldData=e;if(Array.isArray(t)){this.folds=t}else{t=this.folds=[t]}var n=t[t.length-1];this.range=new o(t[0].start.row,t[0].start.column,n.end.row,n.end.column);this.start=this.range.start;this.end=this.range.end;this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(e){this.start.row+=e;this.end.row+=e;this.folds.forEach(function(t){t.start.row+=e;t.end.row+=e})};this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow){throw new Error('Can\'t add a fold to this FoldLine as it has no connection')}this.folds.push(e);this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)});if(0this.range.compareStart(e.end.row,e.end.column)){this.start.row=e.start.row;this.start.column=e.start.column}}else if(e.start.row==this.end.row){this.folds.push(e);this.end.row=e.end.row;this.end.column=e.end.column}else if(e.end.row==this.start.row){this.folds.unshift(e);this.start.row=e.start.row;this.start.column=e.start.column}else{throw new Error('Trying to add fold to FoldRow that doesn\'t have a matching row')}e.foldLine=this};this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row};this.walk=function(e,t,n){var r=0,o=this.folds,a,s,l,d=!0;if(null==t){t=this.end.row;n=this.end.column}for(var c=0;ce){return{row:r.start.row,column:r.start.column+e}}e-=r.placeholder.length;if(0>e){return r.start}t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(r.prototype);t.FoldLine=r});ace.define('ace/range_list',['require','exports','module','ace/range'],function(e,t,n){'use strict';var r=e('./range').Range,o=r.comparePoints,a=function(){this.ranges=[]};(function(){this.comparePoints=o;this.pointIndex=function(e,t,n){for(var r=this.ranges,a=n||0;an)n=-n-1;var r=this.pointIndex(e.end,t,n);if(0>r)r=-r-1;else r++;return this.ranges.splice(n,r-n,e)};this.addList=function(e){for(var t=[],n=e.length;n--;){t.push.apply(t,this.add(e[n]))}return t};this.substractPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges.splice(t,1)};this.merge=function(){var e=[],t=this.ranges;t=t.sort(function(e,t){return o(e.start,t.start)});for(var n=t[0],r,a=1;ai)continue;if(0==i&&!r.isEmpty()&&!n.isEmpty())continue;if(0>o(r.end,n.end)){r.end.row=n.end.row;r.end.column=n.end.column}t.splice(a,1);e.push(n);n=r;a--}this.ranges=t;return e};this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})};this.containsPoint=function(e){return 0<=this.pointIndex(e)};this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges[t]};this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.rowr)r=-r-1;var o=this.pointIndex({row:t,column:0},r);if(0>o)o=-o-1;for(var a=[],s=r;sa)break;if(n.start.row==a&&n.start.column>=t.column){if(n.start.column==t.column&&this.$insertRight){}else{n.start.column+=d;n.start.row+=l}}if(n.end.row==a&&n.end.column>=t.column){if(n.end.column==t.column&&this.$insertRight){continue}if(n.end.column==t.column&&0n.start.column&&n.end.column==c[u+1].start.column)n.end.column-=d}n.end.column+=d;n.end.row+=l}}if(0!=l&&u=e){return o}else if(o.end.row>e){return null}}return null};this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;if(t)r=n.indexOf(t);if(-1==r)r=0;for(r;r=e){return o}}return null};this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,o=0;o=t){if(s=e)r-=t-s;else r=0}break}else if(i>=e){if(s>=e)r-=i-s;else r-=i-e+1}}return r};this.$addFoldLine=function(e){this.$foldData.push(e);this.$foldData.sort(function(e,t){return e.start.row-t.start.row});return e};this.addFold=function(e,t){var n=this.$foldData,r=!1,o;if(e instanceof s)o=e;else{o=new s(t,e);o.collapseChildren=t.collapseChildren}this.$clipRangeToDocument(o.range);var l=o.start.row,d=o.start.column,c=o.end.row,u=o.end.column;if(!(ls.length)return;s=s.trim().substring(0,2)+'..'}this.addFold(s,n)};this.getCommentFoldRange=function(e,t,n){var r=new i(this,e,t),a=r.getCurrentToken();if(a&&/^comment|string/.test(a.type)){var s=new o,l=new RegExp(a.type.replace(/\..*/,'\\.'));if(1!=n){do{a=r.stepBackward()}while(a&&l.test(a.type));r.stepForward()}s.start.row=r.getCurrentTokenRow();s.start.column=r.getCurrentTokenColumn()+2;r=new i(this,e,t);if(-1!=n){do{a=r.stepForward()}while(a&&l.test(a.type));a=r.stepBackward()}else a=r.getCurrentToken();s.end.row=r.getCurrentTokenRow();s.end.column=r.getCurrentTokenColumn()+a.value.length-2;return s}};this.foldAll=function(e,t,n){if(n==void 0)n=1e5;var r=this.foldWidgets;if(!r)return;t=t||this.getLength();e=e||0;for(var o=e;o=e){o=a.end.row;try{var i=this.addFold('...',a);if(i)i.collapseChildren=n}catch(t){}}}};this.$foldStyles={manual:1,markbegin:1,markbeginend:1};this.$foldStyle='markbegin';this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error('invalid fold style: '+e+'['+Object.keys(this.$foldStyles).join(', ')+']');if(this.$foldStyle==e)return;this.$foldStyle=e;if('manual'==e)this.unfold();var t=this.$foldMode;this.$setFolding(null);this.$setFolding(t)};this.$setFolding=function(e){if(this.$foldMode==e)return;this.$foldMode=e;this.off('change',this.$updateFoldWidgets);this.off('tokenizerUpdate',this.$tokenizerUpdateFoldWidgets);this._signal('changeAnnotation');if(!e||'manual'==this.$foldStyle){this.foldWidgets=null;return}this.foldWidgets=[];this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle);this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle);this.$updateFoldWidgets=this.updateFoldWidgets.bind(this);this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this);this.on('change',this.$updateFoldWidgets);this.on('tokenizerUpdate',this.$tokenizerUpdateFoldWidgets)};this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var r=e-1,o;while(0<=r){var a=n[r];if(null==a)a=n[r]=this.getFoldWidget(r);if('start'==a){var i=this.getFoldWidgetRange(r);if(!o)o=i;if(i&&i.end.row>=e)break}r--}return{range:-1!=r&&i,firstRange:o}};this.onFoldWidgetClick=function(t,n){n=n.domEvent;var e={children:n.shiftKey,all:n.ctrlKey||n.metaKey,siblings:n.altKey},r=this.$toggleFoldWidget(t,e);if(!r){var o=n.target||n.srcElement;if(o&&/ace_fold-widget/.test(o.className))o.className+=' ace_invalid'}};this.$toggleFoldWidget=function(e,t){if(!this.getFoldWidget)return;var n=this.getFoldWidget(e),r=this.getLine(e),o='end'===n?-1:1,a=this.getFoldAt(e,-1===o?0:r.length,o);if(a){if(t.children||t.all)this.removeFold(a);else this.expandFold(a);return a}var i=this.getFoldWidgetRange(e,!0);if(i&&!i.isMultiLine()){a=this.getFoldAt(i.start.row,i.start.column,1);if(a&&i.isEqual(a.range)){this.removeFold(a);return a}}if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range){var l=s.range.start.row+1,d=s.range.end.row}this.foldAll(l,d,t.all?1e4:0)}else if(t.children){d=i?i.end.row:this.getLength();this.foldAll(e+1,d,t.all?1e4:0)}else if(i){if(t.all)i.collapseChildren=1e4;this.addFold('...',i)}return i};this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(n)return;var r=this.getParentFoldRangeData(t,!0);n=r.range||r.firstRange;if(n){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);if(o){this.removeFold(o)}else{this.addFold('...',n)}}};this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0==n){this.foldWidgets[t]=null}else if('remove'==e.action){this.foldWidgets.splice(t,n+1,null)}else{var r=Array(n+1);r.unshift(t,1);this.foldWidgets.splice.apply(this.foldWidgets,r)}};this.tokenizerUpdateFoldWidgets=function(t){var e=t.data;if(e.first!=e.last){if(this.foldWidgets.length>e.first)this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}t.Folding=r});ace.define('ace/edit_session/bracket_match',['require','exports','module','ace/token_iterator','ace/range'],function(e,t,n){'use strict';var o=e('../token_iterator').TokenIterator,a=e('../range').Range;function r(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(''==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);if(!r)return null;if(r[1])return this.$findClosingBracket(r[1],e);else return this.$findOpeningBracket(r[2],e)};this.getBracketRange=function(e){var t=this.getLine(e.row),n=!0,r,o=t.charAt(e.column-1),i=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(!i){o=t.charAt(e.column);e={row:e.row,column:e.column+1};i=o&&o.match(/([\(\[\{])|([\)\]\}])/);n=!1}if(!i)return null;if(i[1]){var s=this.$findClosingBracket(i[1],e);if(!s)return null;r=a.fromPoints(e,s);if(!n){r.end.column++;r.start.column--}r.cursor=r.end}else{var s=this.$findOpeningBracket(i[2],e);if(!s)return null;r=a.fromPoints(s,e);if(!n){r.start.column++;r.end.column--}r.cursor=r.start}return r};this.$brackets={")":'(',"(":')',"]":'[',"[":']',"{":'}',"}":'{'};this.$findOpeningBracket=function(e,t,n){var r=this.$brackets[e],a=1,i=new o(this,t.row,t.column),s=i.getCurrentToken();if(!s)s=i.stepForward();if(!s)return;if(!n){n=new RegExp('(\\.?'+s.type.replace('.','\\.').replace('rparen','.paren').replace(/\b(?:end)\b/,'(?:start|begin|end)')+')+')}var l=t.column-i.getCurrentTokenColumn()-2,d=s.value;while(!0){while(0<=l){var c=d.charAt(l);if(c==r){a-=1;if(0==a){return{row:i.getCurrentTokenRow(),column:l+i.getCurrentTokenColumn()}}}else if(c==e){a+=1}l-=1}do{s=i.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;d=s.value;l=d.length-1}return null};this.$findClosingBracket=function(e,t,n){var r=this.$brackets[e],a=1,i=new o(this,t.row,t.column),s=i.getCurrentToken();if(!s)s=i.stepForward();if(!s)return;if(!n){n=new RegExp('(\\.?'+s.type.replace('.','\\.').replace('lparen','.paren').replace(/\b(?:start|begin)\b/,'(?:start|begin|end)')+')+')}var l=t.column-i.getCurrentTokenColumn();while(!0){var d=s.value,c=d.length;while(ln){this.$docRowCache.splice(n,t);this.$screenRowCache.splice(n,t)}};this.$getRowCacheIndex=function(e,t){var n=0,r=e.length-1;while(n<=r){var o=n+r>>1,a=e[o];if(t>a)n=o+1;else if(t=t)break}}r=n[a];if(!r)return null;r.index=a;r.start=o-r.value.length;return r};this.setUndoManager=function(e){this.$undoManager=e;this.$deltas=[];this.$deltasDoc=[];this.$deltasFold=[];if(this.$informUndoManager)this.$informUndoManager.cancel();if(e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel();if(t.$deltasFold.length){t.$deltas.push({group:'fold',deltas:t.$deltasFold});t.$deltasFold=[]}if(t.$deltasDoc.length){t.$deltas.push({group:'doc',deltas:t.$deltasDoc});t.$deltasDoc=[]}if(0e)e=t.screenWidth});return this.lineWidgetWidth=e};this.$computeWidth=function(e){if(this.$modified||e){this.$modified=!1;if(this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,o=0,a=this.$foldData[o],s=a?a.start.row:Infinity,l=t.length,d=0;ds){d=a.end.row+1;if(d>=l)break;a=this.$foldData[o++];s=a?a.start.row:Infinity}if(null==n[d])n[d]=this.$getStringScreenWidth(t[d])[0];if(n[d]>r)r=n[d]}this.screenWidth=r}};this.getLine=function(e){return this.doc.getLine(e)};this.getLines=function(e,t){return this.doc.getLines(e,t)};this.getLength=function(){return this.doc.getLength()};this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())};this.insert=function(e,t){return this.doc.insert(e,t)};this.remove=function(e){return this.doc.remove(e)};this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)};this.undoChanges=function(e,t){if(!e.length)return;this.$fromUndo=!0;for(var n=null,r=e.length-1,o;-1!=r;r--){o=e[r];if('doc'==o.group){this.doc.revertDeltas(o.deltas);n=this.$getUndoSelection(o.deltas,!0,n)}else{o.deltas.forEach(function(e){this.addFolds(e.folds)},this)}}this.$fromUndo=!1;n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n);return n};this.redoChanges=function(e,t){if(!e.length)return;this.$fromUndo=!0;for(var n=null,r=0,o;re.end.column)a.start.column+=s;if(a.end.row==e.end.row&&a.end.column>e.end.column)a.end.column+=s}if(i&&a.start.row>=e.end.row){a.start.row+=i;a.end.row+=i}}a.end=this.insert(a.start,r);if(o.length){var l=e.start,d=a.start,i=d.row-l.row,s=d.column-l.column;this.addFolds(o.map(function(e){e=e.clone();if(e.start.row==l.row)e.start.column+=s;if(e.end.row==l.row)e.end.column+=s;e.start.row+=i;e.end.row+=i;return e}))}return a};this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)};this.outdentRows=function(e){for(var t=e.collapseRows(),n=new f(0,0,0,0),r=this.getTabSize(),o=t.start.row,a;o<=t.end.row;++o){a=this.getLine(o);n.start.row=o;n.end.row=o;for(var i=0;in){var r=this.getRowFoldStart(e+n);if(0>r)return 0;var a=r-e}else if(0this.doc.getLength()-1)return 0;var a=r-t}else{e=this.$clipRowToDocument(e);t=this.$clipRowToDocument(t);var a=t-e+1}var i=new f(e,0,t,o),s=this.getFoldsInRange(i).map(function(e){e=e.clone();e.start.row+=a;e.end.row+=a;return e}),l=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);this.doc.insertFullLines(e+a,l);s.length&&this.addFolds(s);return a};this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)};this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)};this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)};this.$clipRowToDocument=function(e){return c(0,d(e,this.doc.getLength()-1))};this.$clipColumnToRow=function(e,t){if(0>t)return 0;return d(this.doc.getLine(e).length,t)};this.$clipPositionToDocument=function(e,t){t=c(0,t);if(0>e){e=0;t=0}else{var n=this.doc.getLength();if(e>=n){e=n-1;t=this.doc.getLine(n-1).length}else{t=d(this.doc.getLine(e).length,t)}}return{row:e,column:t}};this.$clipRangeToDocument=function(e){if(0>e.start.row){e.start.row=0;e.start.column=0}else{e.start.column=this.$clipColumnToRow(e.start.row,e.start.column)}var t=this.doc.getLength()-1;if(e.end.row>t){e.end.row=t;e.end.column=this.doc.getLine(t).length}else{e.end.column=this.$clipColumnToRow(e.end.row,e.end.column)}return e};this.$wrapLimit=80;this.$useWrapMode=!1;this.$wrapLimitRange={min:null,max:null};this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){this.$useWrapMode=e;this.$modified=!0;this.$resetRowCache(0);if(e){var t=this.getLength();this.$wrapData=Array(t);this.$updateWrapData(0,t-1)}this._signal('changeWrapMode')}};this.getUseWrapMode=function(){return this.$useWrapMode};this.setWrapLimitRange=function(e,t){if(this.$wrapLimitRange.min!==e||this.$wrapLimitRange.max!==t){this.$wrapLimitRange={min:e,max:t};this.$modified=!0;if(this.$useWrapMode)this._signal('changeWrapMode')}};this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;if(0>n.max)n={min:t,max:t};var r=this.$constrainWrapLimit(e,n.min,n.max);if(r!=this.$wrapLimit&&1=o.row){u.shiftRow(-s)}}i=a}else{var f=Array(s);f.unshift(a,0);var h=t?this.$wrapData:this.$rowLengthCache;h.splice.apply(h,f);var c=this.$foldData,u=this.getFoldLine(a),p=0;if(u){var m=u.range.compareInside(r.row,r.column);if(0==m){u=u.split(r.row,r.column);if(u){u.shiftRow(s);u.addRemoveChars(i,0,o.column-r.column)}}else if(-1==m){u.addRemoveChars(a,0,o.column-r.column);u.shiftRow(s)}p=c.indexOf(u)+1}for(p;p=a){u.shiftRow(s)}}}}else{s=l(e.start.column-e.end.column);if('remove'===n){d=this.getFoldsInRange(e);this.removeFolds(d);s=-s}var u=this.getFoldLine(a);if(u){u.addRemoveChars(a,r.column,s)}}if(t&&this.$wrapData.length!=this.doc.getLength()){console.error('doc.getLength() and $wrapData.length have to be the same!')}this.$updating=!1;if(t)this.$updateWrapData(a,i);else this.$updateRowLengthCache(a,i);return d};this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null;this.$rowLengthCache[t]=null};this.$updateWrapData=function(e,t){var n=this.doc.getAllLines(),r=this.getTabSize(),o=this.$wrapData,a=this.$wrapLimit,s,i,l=e;t=d(t,n.length-1);while(l<=t){i=this.getFoldLine(l,i);if(!i){s=this.$getDisplayTokens(n[l]);o[l]=this.$computeWrapSplits(s,a,r);l++}else{s=[];i.walk(function(e,t,r,o){var a;if(null!=e){a=this.$getDisplayTokens(e,s.length);a[0]=p;for(var l=1;lt-w){var C=u+t-w;if(e[C-1]>=v&&e[C]>=v){a(C);continue}if(e[C]==p||e[C]==h){for(C;C!=u-1;C--){if(e[C]==p){break}}if(C>u){a(C);continue}C=u+t;for(C;C>2)),u-1);while(C>A&&e[C]A&&e[C]A&&e[C]==y){C--}}else{while(C>A&&e[C]A){a(++C);continue}C=u+t;if(e[C]==n)C--;a(C-w)}return s};this.$getDisplayTokens=function(r,o){var a=[],s;o=o||0;for(var l=0,i;li||57i){a.push(y)}else if(4352<=i&&e(i)){a.push(t,n)}else{a.push(t)}}return a};this.$getStringScreenWidth=function(t,n,r){if(0==n)return[0,0];if(null==n)n=Infinity;r=r||0;var o,a;for(a=0;an){break}}return[r,a]};this.lineWidgets=null;this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;if(!this.$useWrapMode||!this.$wrapData[e]){return 1+t}else{return this.$wrapData[e].length+1+t}};this.getRowLineCount=function(e){if(!this.$useWrapMode||!this.$wrapData[e]){return 1}else{return this.$wrapData[e].length+1}};this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]e)return{row:0,column:0};var n,r=0,o=0,a,s=0,d=0,c=this.$screenRowCache,u=this.$getRowCacheIndex(c,e),p=c.length;if(p&&0<=u){var s=c[u],r=this.$docRowCache[u],g=e>c[p-1]}else{var g=!p}var f=this.getLength()-1,h=this.getNextFoldLine(r),m=h?h.start.row:Infinity;while(s<=e){d=this.getRowLength(r);if(s+d>e||r>=f){break}else{s+=d;r++;if(r>m){r=h.end.row+1;h=this.getNextFoldLine(r,h);m=h?h.start.row:Infinity}}if(g){this.$docRowCache.push(r);this.$screenRowCache.push(s)}}if(h&&h.start.row<=r){n=this.getFoldDisplayLine(h);r=h.start.row}else if(s+d<=e||r>f){return{row:f,column:this.getLine(f).length}}else{n=this.getLine(r);h=null}var b=0;if(this.$useWrapMode){var y=this.$wrapData[r];if(y){var v=i(e-s);a=y[v];if(0=a)o=a-1;if(h)return h.idxToPosition(o);return{row:r,column:o}};this.documentToScreenPosition=function(e,t){if('undefined'==typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row;t=n.column;var r=0,o=null,a=null;a=this.getFoldAt(e,t,1);if(a){e=a.start.row;t=a.start.column}var s,d=0,c=this.$docRowCache,u=this.$getRowCacheIndex(c,e),i=c.length;if(i&&0<=u){var d=c[u],r=this.$screenRowCache[u],p=e>c[i-1]}else{var p=!i}var g=this.getNextFoldLine(d),f=g?g.start.row:Infinity;while(d=f){s=g.end.row+1;if(s>e)break;g=this.getNextFoldLine(s,g);f=g?g.start.row:Infinity}else{s=d+1}r+=this.getRowLength(d);d=s;if(p){this.$docRowCache.push(d);this.$screenRowCache.push(r)}}var h='';if(g&&d>=f){h=this.getFoldDisplayLine(g,e,t);o=g.start.row}else{h=this.getLine(e).substring(0,t);o=e}var m=0;if(this.$useWrapMode){var b=this.$wrapData[o];if(b){var y=0;while(h.length>=b[y]){r++;y++}h=h.substring(b[y-1]||0,h.length);m=0i){a=t.end.row+1;t=this.$foldData[r++];i=t?t.start.row:Infinity}}}if(this.lineWidgets)e+=this.$getWidgetScreenLength();return e};this.$setFontMetrics=function(e){if(!this.$enableVarChar)return;this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];if(!n)n=Infinity;r=r||0;var o,a;for(a=0;an){break}}return[r,a]}};this.destroy=function(){if(this.bgTokenizer){this.bgTokenizer.setDocument(null);this.bgTokenizer=null}this.$stopWorker()};function e(e){if(4352>e)return!1;return 4352<=e&&4447>=e||4515<=e&&4519>=e||4602<=e&&4607>=e||9001<=e&&9002>=e||11904<=e&&11929>=e||11931<=e&&12019>=e||12032<=e&&12245>=e||12272<=e&&12283>=e||12288<=e&&12350>=e||12353<=e&&12438>=e||12441<=e&&12543>=e||12549<=e&&12589>=e||12593<=e&&12686>=e||12688<=e&&12730>=e||12736<=e&&12771>=e||12784<=e&&12830>=e||12832<=e&&12871>=e||12880<=e&&13054>=e||13056<=e&&19903>=e||19968<=e&&42124>=e||42128<=e&&42182>=e||43360<=e&&43388>=e||44032<=e&&55203>=e||55216<=e&&55238>=e||55243<=e&&55291>=e||63744<=e&&64255>=e||65040<=e&&65049>=e||65072<=e&&65106>=e||65108<=e&&65126>=e||65128<=e&&65131>=e||65281<=e&&65376>=e||65504<=e&&65510>=e}}).call(y.prototype);e('./edit_session/folding').Folding.call(y.prototype);e('./edit_session/bracket_match').BracketMatch.call(y.prototype);s.defineOptions(y.prototype,'session',{wrap:{set:function(e){if(!e||'off'==e)e=!1;else if('free'==e)e=!0;else if('printMargin'==e)e=-1;else if('string'==typeof e)e=parseInt(e,10)||!1;if(this.$wrap==e)return;this.$wrap=e;if(!e){this.setUseWrapMode(!1)}else{var t='number'==typeof e?e:null;this.setWrapLimitRange(t,t);this.setUseWrapMode(!0)}},get:function(){if(this.getUseWrapMode()){if(-1==this.$wrap)return'printMargin';if(!this.getWrapLimitRange().min)return'free';return this.$wrap}return'off'},handlesSet:!0},wrapMethod:{set:function(e){e='auto'==e?'text'!=this.$mode.type:'text'!=e;if(e!=this.$wrapAsCode){this.$wrapAsCode=e;if(this.$useWrapMode){this.$modified=!0;this.$resetRowCache(0);this.$updateWrapData(0,this.getLength()-1)}}},initialValue:'auto'},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal('changeBreakpoint')},initialValue:1},useWorker:{set:function(e){this.$useWorker=e;this.$stopWorker();if(e)this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){if(isNaN(e)||this.$tabSize===e)return;this.$modified=!0;this.$rowLengthCache=[];this.$tabSize=e;this._signal('changeTabSize')},initialValue:4,handlesSet:!0},overwrite:{set:function(e){this._signal('changeOverwrite')},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}});t.EditSession=y});ace.define('ace/search',['require','exports','module','ace/lib/lang','ace/lib/oop','ace/range'],function(e,t,n){'use strict';var a=e('./lib/lang'),i=e('./lib/oop'),s=e('./range').Range,l=function(){this.$options={}};(function(){this.set=function(e){i.mixin(this.$options,e);return this};this.getOptions=function(){return a.copyObject(this.$options)};this.setOptions=function(e){this.$options=e};this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;n.forEach(function(e,n,o){if(!e.start){var a=e.offset+(o||0);r=new s(n,a,n,a+e.length);if(!e.length&&t.start&&t.start.start&&!1!=t.skipCurrent&&r.isEqual(t.start)){r=null;return!1}}else r=e;return!0});return r};this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,r=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),o=[],l=t.re;if(t.$isMultiLine){var d=l.length,c=r.length-d,u;outer:for(var p=l.offset||0;p<=c;p++){for(var g=0;gm){continue}o.push(u=new s(p,m,p+d-1,b));if(2x&&o[g].end.row==n.end.row)g--;o=o.slice(y,g+1);for(y=0,g=o.length;y=i;r--)if(n(e.getLine(r),r))return;if(!1==t.wrap)return;for(r=s,i=a.row;r>=i;r--)if(n(e.getLine(r),r))return}:function(n){var r=a.row,o=e.getLine(r).substr(a.column);if(n(o,r,a.column))return;for(r=r+1;r<=s;r++)if(n(e.getLine(r),r))return;if(!1==t.wrap)return;for(r=i,s=a.row;r<=s;r++)if(n(e.getLine(r),r))return};return{forEach:l}}}).call(l.prototype);function r(e,t){function n(e){if(/\w/.test(e)||t.regExp)return'\\b';return''}return n(e[0])+e+n(e[e.length-1])}t.Search=l});ace.define('ace/keyboard/hash_handler',['require','exports','module','ace/lib/keys','ace/lib/useragent'],function(e,t,n){'use strict';var a=e('../lib/keys'),i=e('../lib/useragent'),s=a.KEY_MODS;function r(e,t){this.platform=t||(i.isMac?'mac':'win');this.commands={};this.commandKeyBinding={};this.addCommands(e);this.$singleCommand=!0}function o(e,t){r.call(this,e,t);this.$singleCommand=!1}o.prototype=r.prototype;(function(){this.addCommand=function(e){if(this.commands[e.name])this.removeCommand(e);this.commands[e.name]=e;if(e.bindKey)this._buildKeyHash(e)};this.removeCommand=function(e,t){var n=e&&('string'==typeof e?e:e.name);e=this.commands[n];if(!t)delete this.commands[n];var r=this.commandKeyBinding;for(var o in r){var a=r[o];if(a==e){delete r[o]}else if(Array.isArray(a)){var s=a.indexOf(e);if(-1!=s){a.splice(s,1);if(1==a.length)r[o]=a[0]}}}};this.bindKey=function(e,t,n){if('object'==typeof e&&e){if(n==void 0)n=e.position;e=e[this.platform]}if(!e)return;if('function'==typeof t)return this.addCommand({exec:t,bindKey:e,name:t.name||e});e.split('|').forEach(function(e){var r='';if(-1!=e.indexOf(' ')){var o=e.split(/\s+/);e=o.pop();o.forEach(function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;r+=(r?' ':'')+n;this._addCommandToBinding(r,'chainKeys')},this);r+=' '}var a=this.parseKeys(e),i=s[a.hashId]+a.key;this._addCommandToBinding(r+i,t,n)},this)};function e(e){return'object'==typeof e&&e.bindKey&&e.bindKey.position||0}this._addCommandToBinding=function(t,n,r){var o=this.commandKeyBinding,a;if(!n){delete o[t]}else if(!o[t]||this.$singleCommand){o[t]=n}else{if(!Array.isArray(o[t])){o[t]=[o[t]]}else if(-1!=(a=o[t].indexOf(n))){o[t].splice(a,1)}if('number'!=typeof r){if(r||n.isDefault)r=-100;else r=e(n)}var i=o[t];for(a=0;ar)break}i.splice(a,0,n)}};this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(!n)return;if('string'==typeof n)return this.bindKey(n,t);if('function'==typeof n)n={exec:n};if('object'!=typeof n)return;if(!n.name)n.name=t;this.addCommand(n)},this)};this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)};this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)};this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)};this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),r=a[n];if(a.FUNCTION_KEYS[r])n=a.FUNCTION_KEYS[r].toLowerCase();else if(!t.length)return{key:n,hashId:-1};else if(1==t.length&&'shift'==t[0])return{key:n.toUpperCase(),hashId:-1};for(var o=0,s=t.length,i;s--;){i=a.KEY_MODS[t[s]];if(null==i){if('undefined'!=typeof console)console.error('invalid modifier '+t[s]+' in '+e);return!1}o|=i}return{key:n,hashId:o}};this.findKeyCommand=function e(t,n){var r=s[t]+n;return this.commandKeyBinding[r]};this.handleKeyboard=function(e,t,n,r){if(0>r)return;var o=s[t]+n,a=this.commandKeyBinding[o];if(e.$keyChain){e.$keyChain+=' '+o;a=this.commandKeyBinding[e.$keyChain]||a}if(a){if('chainKeys'==a||'chainKeys'==a[a.length-1]){e.$keyChain=e.$keyChain||o;return{command:'null'}}}if(e.$keyChain){if((!t||4==t)&&1==n.length)e.$keyChain=e.$keyChain.slice(0,-o.length-1);else if(-1==t||0a?a+1:a;e.selection.moveCursorTo(n.row,a)}},multiSelectAction:'forEach',readOnly:!0},{name:'invertSelection',bindKey:r(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,o=[];if(1>r.length){r=[e.selection.getRange()]}for(var a=0;a=o.lastRow||r.end.row<=o.firstRow){this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}break;default:break;}if('animate'==n)this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp;this.curOp=null}};this.$mergeableCommands=['backspace','del','insertstring'];this.$historyTracker=function(t){if(!this.$mergeUndoDeltas)return;var e=this.prevOp,n=this.$mergeableCommands,r=e.command&&t.command.name==e.command.name;if('insertstring'==t.command.name){var o=t.args;if(this.mergeNextCommand===void 0)this.mergeNextCommand=!0;r=r&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(e.args));this.mergeNextCommand=!0}else{r=r&&-1!==n.indexOf(t.command.name)}if('always'!=this.$mergeUndoDeltas&&2e3=i);r.stepForward()}if(!o){t.removeMarker(t.$tagHighlight);t.$tagHighlight=null;return}var l=r.getCurrentTokenRow(),d=r.getCurrentTokenColumn(),c=new y(l,d,l,d+o.value.length),u=t.$backMarkers[t.$tagHighlight];if(t.$tagHighlight&&u!=void 0&&0!==c.compareRange(u.range)){t.removeMarker(t.$tagHighlight);t.$tagHighlight=null}if(c&&!t.$tagHighlight)t.$tagHighlight=t.addMarker(c,'ace_bracket','text')},50)};this.focus=function(){var e=this;setTimeout(function(){e.textInput.focus()});this.textInput.focus()};this.isFocused=function(){return this.textInput.isFocused()};this.blur=function(){this.textInput.blur()};this.onFocus=function(t){if(this.$isFocused)return;this.$isFocused=!0;this.renderer.showCursor();this.renderer.visualizeFocus();this._emit('focus',t)};this.onBlur=function(t){if(!this.$isFocused)return;this.$isFocused=!1;this.renderer.hideCursor();this.renderer.visualizeBlur();this._emit('blur',t)};this.$cursorChange=function(){this.renderer.updateCursor()};this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:Infinity;this.renderer.updateLines(e.start.row,n,t);this._signal('change',e);this.$cursorChange();this.$updateHighlightActiveLine()};this.onTokenizerUpdate=function(t){var e=t.data;this.renderer.updateLines(e.first,e.last)};this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())};this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())};this.onCursorChange=function(){this.$cursorChange();if(!this.$blockScrolling){w.warn('Automatically scrolling cursor into view after selection change','this will be disabled in the next version','set editor.$blockScrolling = Infinity to disable this message');this.renderer.scrollCursorIntoView()}this.$highlightBrackets();this.$highlightTags();this.$updateHighlightActiveLine();this._signal('changeSelection')};this.$updateHighlightActiveLine=function(){var e=this.getSession(),t;if(this.$highlightActiveLine){if('line'!=this.$selectionStyle||!this.selection.isMultiLine())t=this.getCursorPosition();if(this.renderer.$maxLines&&1===this.session.getLength()&&!(1o.length||2>r.length||!r[1])return this.commands.exec('insertstring',this,n);for(var a=o.length,i;a--;){i=o[a];if(!i.isEmpty())this.session.remove(i);this.session.insert(i.start,r[a])}}};this.execCommand=function(e,t){return this.commands.exec(e,this,t)};this.insert=function(e,t){var n=this.session,r=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var a=r.transformAction(n.getState(o.row),'insertion',this,n,e);if(a){if(e!==a.text){this.session.mergeUndoDeltas=!1;this.$mergeNextCommand=!1}e=a.text}}if('\t'==e)e=this.session.getTabString();if(!this.selection.isEmpty()){var i=this.getSelectionRange();o=this.session.remove(i);this.clearSelection()}else if(this.session.getOverwrite()){var i=new y.fromPoints(o,o);i.end.column+=e.length;this.session.remove(i)}if('\n'==e||'\r\n'==e){var s=n.getLine(o.row);if(o.column>s.search(/\S|$/)){var l=s.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var d=o.column,c=n.getState(o.row),s=n.getLine(o.row),u=r.checkOutdent(c,s,e),p=n.insert(o,e);if(a&&a.selection){if(2==a.selection.length){this.selection.setSelectionRange(new y(o.row,d+a.selection[0],o.row,d+a.selection[1]))}else{this.selection.setSelectionRange(new y(o.row+a.selection[0],a.selection[1],o.row+a.selection[2],a.selection[3]))}}if(n.getDocument().isNewLine(e)){var g=r.getNextLineIndent(c,s.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},g)}if(u)r.autoOutdent(c,n,o.row)};this.onTextInput=function(e){this.keyBinding.onTextInput(e)};this.onCommandKey=function(t,e,n){this.keyBinding.onCommandKey(t,e,n)};this.setOverwrite=function(e){this.session.setOverwrite(e)};this.getOverwrite=function(){return this.session.getOverwrite()};this.toggleOverwrite=function(){this.session.toggleOverwrite()};this.setScrollSpeed=function(e){this.setOption('scrollSpeed',e)};this.getScrollSpeed=function(){return this.getOption('scrollSpeed')};this.setDragDelay=function(e){this.setOption('dragDelay',e)};this.getDragDelay=function(){return this.getOption('dragDelay')};this.setSelectionStyle=function(e){this.setOption('selectionStyle',e)};this.getSelectionStyle=function(){return this.getOption('selectionStyle')};this.setHighlightActiveLine=function(e){this.setOption('highlightActiveLine',e)};this.getHighlightActiveLine=function(){return this.getOption('highlightActiveLine')};this.setHighlightGutterLine=function(e){this.setOption('highlightGutterLine',e)};this.getHighlightGutterLine=function(){return this.getOption('highlightGutterLine')};this.setHighlightSelectedWord=function(e){this.setOption('highlightSelectedWord',e)};this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord};this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)};this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()};this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)};this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()};this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)};this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()};this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)};this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()};this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)};this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()};this.setReadOnly=function(e){this.setOption('readOnly',e)};this.getReadOnly=function(){return this.getOption('readOnly')};this.setBehavioursEnabled=function(e){this.setOption('behavioursEnabled',e)};this.getBehavioursEnabled=function(){return this.getOption('behavioursEnabled')};this.setWrapBehavioursEnabled=function(e){this.setOption('wrapBehavioursEnabled',e)};this.getWrapBehavioursEnabled=function(){return this.getOption('wrapBehavioursEnabled')};this.setShowFoldWidgets=function(e){this.setOption('showFoldWidgets',e)};this.getShowFoldWidgets=function(){return this.getOption('showFoldWidgets')};this.setFadeFoldWidgets=function(e){this.setOption('fadeFoldWidgets',e)};this.getFadeFoldWidgets=function(){return this.getOption('fadeFoldWidgets')};this.remove=function(e){if(this.selection.isEmpty()){if('left'==e)this.selection.selectLeft();else this.selection.selectRight()}var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),o=n.getMode().transformAction(r,'deletion',this,n,t);if(0===t.end.column){var a=n.getTextRange(t);if('\n'==a[a.length-1]){var i=n.getLine(t.end.row);if(/^\s+$/.test(i)){t.end.column=i.length}}}if(o)t=o}this.session.remove(t);this.clearSelection()};this.removeWordRight=function(){if(this.selection.isEmpty())this.selection.selectWordRight();this.session.remove(this.getSelectionRange());this.clearSelection()};this.removeWordLeft=function(){if(this.selection.isEmpty())this.selection.selectWordLeft();this.session.remove(this.getSelectionRange());this.clearSelection()};this.removeToLineStart=function(){if(this.selection.isEmpty())this.selection.selectLineStart();this.session.remove(this.getSelectionRange());this.clearSelection()};this.removeToLineEnd=function(){if(this.selection.isEmpty())this.selection.selectLineEnd();var e=this.getSelectionRange();if(e.start.column==e.end.column&&e.start.row==e.end.row){e.end.column=0;e.end.row++}this.session.remove(e);this.clearSelection()};this.splitLine=function(){if(!this.selection.isEmpty()){this.session.remove(this.getSelectionRange());this.clearSelection()}var e=this.getCursorPosition();this.insert('\n');this.moveCursorToPosition(e)};this.transposeLetters=function(){if(!this.selection.isEmpty()){return}var e=this.getCursorPosition(),t=e.column;if(0===t)return;var n=this.session.getLine(e.row),r,o;if(tt.toLowerCase())return 1;return 0});for(var r=new y(0,0,0,0),o=e.first,a;o<=e.last;o++){a=t.getLine(o);r.start.row=o;r.end.row=o;r.end.column=a.length;t.replace(r,n[o-e.first])}};this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)};this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)};this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var r=this.session.getLine(e);while(n.lastIndex=t){var a={value:o[0],start:o.index,end:o.index+o[0].length};return a}}return null};this.modifyNumber=function(e){var n=this.selection.getCursor().row,r=this.selection.getCursor().column,o=new y(n,r-1,n,r),a=this.session.getTextRange(o);if(!isNaN(parseFloat(a))&&isFinite(a)){var i=this.getNumberAt(n,r);if(i){var l=0<=i.value.indexOf('.')?i.start+i.value.indexOf('.')+1:i.end,d=i.start+i.value.length-l,u=parseFloat(i.value);u*=s(10,d);if(l!==i.end&&rg+1)break;g=f.last}l--;d=this.session.$moveLines(p,g,t?0:e);if(t&&-1==e)i=l+1;while(i<=l){s[i].moveBy(d,0);i++}if(!t)d=0;c+=d}o.fromOrientedRange(o.ranges[0]);o.rangeList.attach(this.session);this.inVirtualSelectionMode=!1}};this.$getSelectedRows=function(e){e=(e||this.getSelectionRange()).collapseRows();return{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}};this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())};this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)};this.onCompositionEnd=function(){this.renderer.hideComposition()};this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()};this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()};this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()};this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()};this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1};this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,o=e*i(r.height/r.lineHeight);this.$blockScrolling++;if(!0===t){this.selection.$moveSelection(function(){this.moveCursorBy(o,0)})}else if(!1===t){this.selection.moveCursorBy(o,0);this.selection.clearSelection()}this.$blockScrolling--;var a=n.scrollTop;n.scrollBy(0,o*r.lineHeight);if(null!=t)n.scrollCursorIntoView(null,0.5);n.animateScrolling(a)};this.selectPageDown=function(){this.$moveByPage(1,!0)};this.selectPageUp=function(){this.$moveByPage(-1,!0)};this.gotoPageDown=function(){this.$moveByPage(1,!1)};this.gotoPageUp=function(){this.$moveByPage(-1,!1)};this.scrollPageDown=function(){this.$moveByPage(1)};this.scrollPageUp=function(){this.$moveByPage(-1)};this.scrollToRow=function(e){this.renderer.scrollToRow(e)};this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)};this.centerSelection=function(){var e=this.getSelectionRange(),t={row:i(e.start.row+(e.end.row-e.start.row)/2),column:i(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,0.5)};this.getCursorPosition=function(){return this.selection.getCursor()};this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())};this.getSelectionRange=function(){return this.selection.getRange()};this.selectAll=function(){this.$blockScrolling+=1;this.selection.selectAll();this.$blockScrolling-=1};this.clearSelection=function(){this.selection.clearSelection()};this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)};this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)};this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new C(this.session,n.row,n.column),o=r.getCurrentToken(),a=o||r.stepForward();if(!a)return;var s,d=!1,c={},u=n.column-a.start,i,p={")":'(',"(":'(',"]":'[',"[":'[',"{":'{',"}":'{'};do{if(a.value.match(/[{}()\[\]]/g)){for(;ul(f.column-n.column))g=this.session.getBracketRange(f)}}else if('tag'===s){if(a&&-1!==a.type.indexOf('tag-name'))var h=a.value;else return;g=new y(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2);if(0===g.compare(n.row,n.column)){d=!1;do{a=o;o=r.stepBackward();if(o){if(-1!==o.type.indexOf('tag-close')){g.setEnd(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+1)}if(a.value===h&&-1!==a.type.indexOf('tag-name')){if('<'===o.value){c[h]++}else if('l(f.column-n.column))f=g.end}}f=g&&g.cursor||f;if(f){if(e){if(g&&t){this.selection.setRange(g)}else if(g&&g.isEqual(this.getSelectionRange())){this.clearSelection()}else{this.selection.selectTo(f.row,f.column)}}else{this.selection.moveTo(f.row,f.column)}}};this.gotoLine=function(e,t,n){this.selection.clearSelection();this.session.unfold({row:e-1,column:t||0});this.$blockScrolling+=1;this.exitMultiSelectMode&&this.exitMultiSelectMode();this.moveCursorTo(e-1,t||0);this.$blockScrolling-=1;if(!this.isRowFullyVisible(e-1))this.scrollToLine(e-1,!0,n)};this.navigateTo=function(e,t){this.selection.moveTo(e,t)};this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection();this.selection.moveCursorBy(-e||-1,0)};this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection();this.selection.moveCursorBy(e||1,0)};this.navigateLeft=function(e){if(!this.selection.isEmpty()){var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}else{e=e||1;while(e--){this.selection.moveCursorLeft()}}this.clearSelection()};this.navigateRight=function(e){if(!this.selection.isEmpty()){var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}else{e=e||1;while(e--){this.selection.moveCursorRight()}}this.clearSelection()};this.navigateLineStart=function(){this.selection.moveCursorLineStart();this.clearSelection()};this.navigateLineEnd=function(){this.selection.moveCursorLineEnd();this.clearSelection()};this.navigateFileEnd=function(){this.selection.moveCursorFileEnd();this.clearSelection()};this.navigateFileStart=function(){this.selection.moveCursorFileStart();this.clearSelection()};this.navigateWordRight=function(){this.selection.moveCursorWordRight();this.clearSelection()};this.navigateWordLeft=function(){this.selection.moveCursorWordLeft();this.clearSelection()};this.replace=function(e,t){if(t)this.$search.set(t);var n=this.$search.find(this.session),r=0;if(!n)return r;if(this.$tryReplace(n,e)){r=1}if(null!==n){this.selection.setSelectionRange(n);this.renderer.scrollSelectionIntoView(n.start,n.end)}return r};this.replaceAll=function(e,t){if(t){this.$search.set(t)}var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;this.$blockScrolling+=1;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var a=n.length-1;0<=a;--a){if(this.$tryReplace(n[a],e)){r++}}this.selection.setSelectionRange(o);this.$blockScrolling-=1;return r};this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);t=this.$search.replace(n,t);if(null!==t){e.end=this.session.replace(e,t);return e}else{return null}};this.getLastSearchOptions=function(){return this.$search.getOptions()};this.find=function(e,t,n){if(!t)t={};if('string'==typeof e||e instanceof RegExp)t.needle=e;else if('object'==typeof e)r.mixin(t,e);var o=this.selection.getRange();if(null==t.needle){e=this.session.getTextRange(o)||this.$search.$options.needle;if(!e){o=this.session.getWordRange(o.start.row,o.start.column);e=this.session.getTextRange(o)}this.$search.set({needle:e})}this.$search.set(t);if(!t.start)this.$search.set({start:o});var a=this.$search.find(this.session);if(t.preventScroll)return a;if(a){this.revealRange(a,n);return a}if(t.backwards)o.start=o.end;else o.end=o.start;this.selection.setRange(o)};this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)};this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)};this.revealRange=function(e,t){this.$blockScrolling+=1;this.session.unfold(e);this.selection.setSelectionRange(e);this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,0.5);if(!1!==t)this.renderer.animateScrolling(n)};this.undo=function(){this.$blockScrolling++;this.session.getUndoManager().undo();this.$blockScrolling--;this.renderer.scrollCursorIntoView(null,0.5)};this.redo=function(){this.$blockScrolling++;this.session.getUndoManager().redo();this.$blockScrolling--;this.renderer.scrollCursorIntoView(null,0.5)};this.destroy=function(){this.renderer.destroy();this._signal('destroy',this);if(this.session){this.session.destroy()}};this.setAutoScrollEditorIntoView=function(e){if(!e)return;var t,n=this,r=!1;if(!this.$scrollAnchor)this.$scrollAnchor=document.createElement('div');var o=this.$scrollAnchor;o.style.cssText='position:absolute';this.container.insertBefore(o,this.container.firstChild);var a=this.on('changeSelection',function(){r=!0}),i=this.renderer.on('beforeRender',function(){if(r)t=n.renderer.container.getBoundingClientRect()}),s=this.renderer.on('afterRender',function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,a=e.$cursorLayer.$pixelPos,i=e.layerConfig,s=a.top-i.offset;if(0<=a.top&&0>s+t.top){r=!0}else if(a.topwindow.innerHeight){r=!1}else{r=null}if(null!=r){o.style.top=s+'px';o.style.left=a.left+'px';o.style.height=i.lineHeight+'px';o.scrollIntoView(r)}r=t=null}});this.setAutoScrollEditorIntoView=function(e){if(e)return;delete this.setAutoScrollEditorIntoView;this.off('changeSelection',a);this.renderer.off('afterRender',s);this.renderer.off('beforeRender',i)}};this.$resetCursorStyle=function(){var e=this.$cursorStyle||'ace',t=this.renderer.$cursorLayer;if(!t)return;t.setSmoothBlinking(/smooth/.test(e));t.isBlinking=!this.$readOnly&&'wide'!=e;o.setCssClass(t.element,'ace_slim-cursors',/slim/.test(e))}}).call(A.prototype);w.defineOptions(A.prototype,'editor',{selectionStyle:{set:function(e){this.onSelectionChange();this._signal('changeSelectionStyle',{data:e})},initialValue:'line'},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:['ace','slim','smooth','wide'],initialValue:'ace'},mergeUndoDeltas:{values:[!1,!0,'always'],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:'renderer',vScrollBarAlwaysVisible:'renderer',highlightGutterLine:'renderer',animatedScroll:'renderer',showInvisibles:'renderer',showPrintMargin:'renderer',printMarginColumn:'renderer',printMargin:'renderer',fadeFoldWidgets:'renderer',showFoldWidgets:'renderer',showLineNumbers:'renderer',showGutter:'renderer',displayIndentGuides:'renderer',fontSize:'renderer',fontFamily:'renderer',maxLines:'renderer',minLines:'renderer',scrollPastEnd:'renderer',fixedWidthGutter:'renderer',theme:'renderer',scrollSpeed:'$mouseHandler',dragDelay:'$mouseHandler',dragEnabled:'$mouseHandler',focusTimout:'$mouseHandler',tooltipFollowsMouse:'$mouseHandler',firstLineNumber:'session',overwrite:'session',newLineMode:'session',useWorker:'session',useSoftTabs:'session',tabSize:'session',wrap:'session',indentedSoftWrap:'session',foldStyle:'session',mode:'session'});t.Editor=A});ace.define('ace/undomanager',['require','exports','module'],function(e,t,n){'use strict';var r=function(){this.reset()};(function(){this.execute=function(e){var t=e.args[0];this.$doc=e.args[1];if(e.merge&&this.hasUndo()){this.dirtyCounter--;t=this.$undoStack.pop().concat(t)}this.$undoStack.push(t);this.$redoStack=[];if(0>this.dirtyCounter){this.dirtyCounter=NaN}this.dirtyCounter++};this.undo=function(e){var t=this.$undoStack.pop(),n=null;if(t){n=this.$doc.undoChanges(t,e);this.$redoStack.push(t);this.dirtyCounter--}return n};this.redo=function(e){var t=this.$redoStack.pop(),n=null;if(t){n=this.$doc.redoChanges(this.$deserializeDeltas(t),e);this.$undoStack.push(t);this.dirtyCounter++}return n};this.reset=function(){this.$undoStack=[];this.$redoStack=[];this.dirtyCounter=0};this.hasUndo=function(){return 0s){y=i.end.row+1;i=t.getNextFoldLine(y,i);s=i?i.start.row:Infinity}if(y>a){while(this.$cells.length>b+1){m=this.$cells.pop();this.element.removeChild(m.element)}break}m=this.$cells[++b];if(!m){m={element:null,textNode:null,foldWidget:null};m.element=o.createElement('div');m.textNode=document.createTextNode('');m.element.appendChild(m.textNode);this.element.appendChild(m.element);this.$cells[b]=m}var v='ace_gutter-cell ';if(u[y])v+=u[y];if(p[y])v+=p[y];if(this.$annotations[y])v+=this.$annotations[y].className;if(m.element.className!=v)m.element.className=v;var k=t.getRowLength(y)*e.lineHeight+'px';if(k!=m.element.style.height)m.element.style.height=k;if(l){var x=l[y];if(null==x)x=l[y]=t.getFoldWidget(y)}if(x){if(!m.foldWidget){m.foldWidget=o.createElement('span');m.element.appendChild(m.foldWidget)}var v='ace_fold-widget ace_'+x;if('start'==x&&y==s&&yn.right-t.right)return'foldWidgets'}}).call(l.prototype);t.Gutter=l});ace.define('ace/layer/marker',['require','exports','module','ace/range','ace/lib/dom'],function(e,t,n){'use strict';var r=e('../range').Range,o=e('../lib/dom'),a=function(e){this.element=o.createElement('div');this.element.className='ace_layer ace_marker-layer';e.appendChild(this.element)};(function(){this.$padding=0;this.setPadding=function(e){this.$padding=e};this.setSession=function(e){this.session=e};this.setMarkers=function(e){this.markers=e};this.update=function(e){var e=e||this.config;if(!e)return;this.config=e;var t=[];for(var n in this.markers){var r=this.markers[n];if(!r.range){r.update(t,this,this.session,e);continue}var o=r.range.clipRows(e.firstRow,e.lastRow);if(o.isEmpty())continue;o=o.toScreenRange(this.session);if(r.renderer){var a=this.$getTop(o.start.row,e),i=this.$padding+o.start.column*e.characterWidth;r.renderer(t,o,i,a,e)}else if('fullLine'==r.type){this.drawFullLineMarker(t,o,r.clazz,e)}else if('screenLine'==r.type){this.drawScreenLineMarker(t,o,r.clazz,e)}else if(o.isMultiLine()){if('text'==r.type)this.drawTextMarker(t,o,r.clazz,e);else this.drawMultiLineMarker(t,o,r.clazz,e)}else{this.drawSingleLineMarker(t,o,r.clazz+' ace_start ace_br15',e)}}this.element.innerHTML=t.join('')};this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight};function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.drawTextMarker=function(t,n,o,a,i){var s=this.session,l=n.start.row,d=n.end.row,c=l,u=0,p=0,g=s.getScreenLastRowColumn(c),f=new r(c,n.start.column,c,p);for(;c<=d;c++){f.start.row=f.end.row=c;f.start.column=c==l?n.start.column:s.getRowWrapIndent(c);f.end.column=g;u=p;p=g;g=c+1g,c==d),a,c==d?0:1,i)}};this.drawMultiLineMarker=function(e,t,n,r,o){var a=this.$padding,i=r.lineHeight,s=this.$getTop(t.start.row,r),l=a+t.start.column*r.characterWidth;o=o||'';e.push('
');s=this.$getTop(t.end.row,r);var d=t.end.column*r.characterWidth;e.push('
');i=(t.end.row-t.start.row-1)*r.lineHeight;if(0>=i)return;s=this.$getTop(t.start.row+1,r);var c=(t.start.column?1:0)|(t.end.column?0:8);e.push('
')};this.drawSingleLineMarker=function(e,t,n,r,o,a){var i=r.lineHeight,s=(t.end.column+(o||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),d=this.$padding+t.start.column*r.characterWidth;e.push('
')};this.drawFullLineMarker=function(e,t,n,r,o){var a=this.$getTop(t.start.row,r),i=r.lineHeight;if(t.start.row!=t.end.row)i+=this.$getTop(t.end.row,r)-a;e.push('
')};this.drawScreenLineMarker=function(e,t,n,r,o){var a=this.$getTop(t.start.row,r),i=r.lineHeight;e.push('
')}}).call(a.prototype);t.Marker=a});ace.define('ace/layer/text',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/lib/lang','ace/lib/useragent','ace/lib/event_emitter'],function(e,t,n){'use strict';var r=e('../lib/oop'),a=e('../lib/dom'),s=e('../lib/lang'),i=e('../lib/useragent'),l=e('../lib/event_emitter').EventEmitter,u=function(e){this.element=a.createElement('div');this.element.className='ace_layer ace_text-layer';e.appendChild(this.element);this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){r.implement(this,l);this.EOF_CHAR='\xB6';this.EOL_CHAR_LF='\xAC';this.EOL_CHAR_CRLF='\xA4';this.EOL_CHAR=this.EOL_CHAR_LF;this.TAB_CHAR='\u2014';this.SPACE_CHAR='\xB7';this.$padding=0;this.$updateEolChar=function(){var e='\n'==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e){this.EOL_CHAR=e;return!0}};this.setPadding=function(e){this.$padding=e;this.element.style.padding='0 '+e+'px'};this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0};this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0};this.$setFontMetrics=function(e){this.$fontMetrics=e;this.$fontMetrics.on('changeCharacterSize',function(t){this._signal('changeCharacterSize',t)}.bind(this));this.$pollSizeChanges()};this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()};this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()};this.setSession=function(e){this.session=e;if(e)this.$computeTabString()};this.showInvisibles=!1;this.setShowInvisibles=function(e){if(this.showInvisibles==e)return!1;this.showInvisibles=e;this.$computeTabString();return!0};this.displayIndentGuides=!0;this.setDisplayIndentGuides=function(e){if(this.displayIndentGuides==e)return!1;this.displayIndentGuides=e;this.$computeTabString();return!0};this.$tabStrings=[];this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n'+s.stringRepeat(this.TAB_CHAR,n)+'')}else{t.push(s.stringRepeat(' ',n))}}if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r='ace_indent-guide',o='',a='';if(this.showInvisibles){r+=' ace_invisible';o=' ace_invisible_space';a=' ace_invisible_tab';var i=s.stringRepeat(this.SPACE_CHAR,this.tabSize),l=s.stringRepeat(this.TAB_CHAR,this.tabSize)}else{var i=s.stringRepeat(' ',this.tabSize),l=i}this.$tabStrings[' ']=''+i+'';this.$tabStrings['\t']=''+l+''}};this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow){this.scrollLines(e)}this.config=e;for(var r=c(t,e.firstRow),o=d(n,e.lastRow),a=this.element.childNodes,i=0,s=e.firstRow,l;su){s=l.end.row+1;l=this.session.getNextFoldLine(s,l);u=l?l.start.row:Infinity}if(s>o)break;var p=a[i++];if(p){var g=[];this.$renderLine(g,s,!this.$useLineGroups(),s==u?l:!1);p.style.height=e.lineHeight*this.session.getRowLength(s)+'px';p.innerHTML=g.join('')}s++}};this.scrollLines=function(e){var t=this.config;this.config=e;if(!t||t.lastRowe.lastRow)for(var r=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0t.lastRow){var o=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(o)}};this.$renderLinesFragment=function(e,t,n){var r=this.element.ownerDocument.createDocumentFragment(),o=t,i=this.session.getNextFoldLine(o),s=i?i.start.row:Infinity;while(!0){if(o>s){o=i.end.row+1;i=this.session.getNextFoldLine(o,i);s=i?i.start.row:Infinity}if(o>n)break;var l=a.createElement('div'),d=[];this.$renderLine(d,o,!1,o==s?i:!1);l.innerHTML=d.join('');if(this.$useLineGroups()){l.className='ace_line_group';r.appendChild(l);l.style.height=e.lineHeight*this.session.getRowLength(o)+'px'}else{while(l.firstChild)r.appendChild(l.firstChild)}o++}return r};this.update=function(e){this.config=e;var t=[],n=e.firstRow,r=e.lastRow,o=n,a=this.session.getNextFoldLine(o),i=a?a.start.row:Infinity;while(!0){if(o>i){o=a.end.row+1;a=this.session.getNextFoldLine(o,a);i=a?a.start.row:Infinity}if(o>r)break;if(this.$useLineGroups())t.push('
');this.$renderLine(t,o,!1,o==i?a:!1);if(this.$useLineGroups())t.push('
');o++}this.element.innerHTML=t.join('')};this.$textToken={text:!0,rparen:!0,lparen:!0};this.$renderToken=function(e,t,n,r){var o=this,a=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]/g,i=function(e,n,r,a,i){if(n){return o.showInvisibles?''+s.stringRepeat(o.SPACE_CHAR,e.length)+'':e}else if('&'==e){return'&'}else if('<'==e){return'<'}else if('>'==e){return'>'}else if('\t'==e){var l=o.session.getScreenTabSize(t+a);t+=l-1;return o.$tabStrings[l]}else if('\u3000'==e){var d=o.showInvisibles?'ace_cjk ace_invisible ace_invisible_space':'ace_cjk',c=o.showInvisibles?o.SPACE_CHAR:'';t+=1;return''+c+''}else if(r){return''+o.SPACE_CHAR+''}else{t+=1;return''+e+''}},l=r.replace(a,i);if(!this.$textToken[n.type]){var d='ace_'+n.type.replace(/\./g,' ace_'),c='';if('fold'==n.type)c=' style=\'width:'+n.value.length*this.config.characterWidth+'px;\' ';e.push('',l,'')}else{e.push(l)}return t+r.length};this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(0>=r||r>=n)return t;if(' '==t[0]){r-=r%this.tabSize;e.push(s.stringRepeat(this.$tabStrings[' '],r/this.tabSize));return t.substr(r)}else if('\t'==t[0]){e.push(s.stringRepeat(this.$tabStrings['\t'],r));return t.substr(r)}return t};this.$renderWrappedLine=function(e,t,n,r){for(var a=0,l=0,d=n[0],c=0,u=0;u=d){c=this.$renderToken(e,c,i,p.substring(0,d-a));p=p.substring(d-a);a=d;if(!r){e.push('','
')}e.push(s.stringRepeat('\xA0',n.indent));l++;c=0;d=n[l]||o}if(0!=p.length){a+=p.length;c=this.$renderToken(e,c,i,p)}}}};this.$renderSimpleLine=function(e,t){var n=0,r=t[0],o=r.value;if(this.displayIndentGuides)o=this.renderIndentGuide(e,o);if(o)n=this.$renderToken(e,n,r,o);for(var a=1;a')}if(o.length){var a=this.session.getRowSplitData(t);if(a&&a.length)this.$renderWrappedLine(e,o,a,n);else this.$renderSimpleLine(e,o)}if(this.showInvisibles){if(r)t=r.end.row;e.push('',t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,'')}if(!n)e.push('
')};this.$getFoldLineTokens=function(e,t){var r=this.session,o=[];function n(e,t,n){var r=0,a=0;while(a+e[r].value.lengthn-t)i=i.substring(0,n-t);o.push({type:e[r].type,value:i});a=t+i.length;r+=1}while(an){o.push({type:e[r].type,value:i.substring(0,n-a)})}else o.push(e[r]);a+=i.length;r+=1}}var a=r.getTokens(e);t.walk(function(e,t,i,s,l){if(null!=e){o.push({type:'fold',value:e})}else{if(l)a=r.getTokens(t);if(a.length)n(a,s,i)}},t.end.row,this.session.getLine(t.end.row).length);return o};this.$useLineGroups=function(){return this.session.getUseWrapMode()};this.destroy=function(){clearInterval(this.$pollSizeChangesTimer);if(this.$measureNode)this.$measureNode.parentNode.removeChild(this.$measureNode);delete this.$measureNode}}).call(u.prototype);t.Text=u});ace.define('ace/layer/cursor',['require','exports','module','ace/lib/dom'],function(e,t,n){'use strict';var r=e('../lib/dom'),o,a=function(e){this.element=r.createElement('div');this.element.className='ace_layer ace_cursor-layer';e.appendChild(this.element);if(o===void 0)o=!('opacity'in this.element.style);this.isVisible=!1;this.isBlinking=!0;this.blinkInterval=1e3;this.smoothBlinking=!1;this.cursors=[];this.cursor=this.addCursor();r.addCssClass(this.element,'ace_hidden-cursors');this.$updateCursors=(o?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?'':'hidden'};this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?'':'0'};this.$padding=0;this.setPadding=function(e){this.$padding=e};this.setSession=function(e){this.session=e};this.setBlinking=function(e){if(e!=this.isBlinking){this.isBlinking=e;this.restartTimer()}};this.setBlinkInterval=function(e){if(e!=this.blinkInterval){this.blinkInterval=e;this.restartTimer()}};this.setSmoothBlinking=function(e){if(e!=this.smoothBlinking&&!o){this.smoothBlinking=e;r.setCssClass(this.element,'ace_smooth-blinking',e);this.$updateCursors(!0);this.$updateCursors=this.$updateOpacity.bind(this);this.restartTimer()}};this.addCursor=function(){var e=r.createElement('div');e.className='ace_cursor';this.element.appendChild(e);this.cursors.push(e);return e};this.removeCursor=function(){if(1e.height+e.offset||0>n.top)&&1o)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s);this.$pixelPos=n;this.restartTimer()};this.drawCursor=null;this.$setOverwrite=function(e){if(e!=this.overwrite){this.overwrite=e;if(e)r.addCssClass(this.element,'ace_overwrite-cursors');else r.removeCssClass(this.element,'ace_overwrite-cursors')}};this.destroy=function(){clearInterval(this.intervalId);clearTimeout(this.timeoutId)}}).call(a.prototype);t.Cursor=a});ace.define('ace/scrollbar',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/lib/event','ace/lib/event_emitter'],function(e,t,n){'use strict';var r=e('./lib/oop'),o=e('./lib/dom'),a=e('./lib/event'),i=e('./lib/event_emitter').EventEmitter,s=32768,l=function(e){this.element=o.createElement('div');this.element.className='ace_scrollbar ace_scrollbar'+this.classSuffix;this.inner=o.createElement('div');this.inner.className='ace_scrollbar-inner';this.element.appendChild(this.inner);e.appendChild(this.element);this.setVisible(!1);this.skipEvent=!1;a.addListener(this.element,'scroll',this.onScroll.bind(this));a.addListener(this.element,'mousedown',a.preventDefault)};(function(){r.implement(this,i);this.setVisible=function(e){this.element.style.display=e?'':'none';this.isVisible=e;this.coeff=1}}).call(l.prototype);var d=function(e,t){l.call(this,e);this.scrollTop=0;this.scrollHeight=0;t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument);this.inner.style.width=this.element.style.width=(this.width||15)+5+'px'};r.inherits(d,l);(function(){this.classSuffix='-v';this.onScroll=function(){if(!this.skipEvent){this.scrollTop=this.element.scrollTop;if(1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit('scroll',{data:this.scrollTop})}this.skipEvent=!1};this.getWidth=function(){return this.isVisible?this.width:0};this.setHeight=function(e){this.element.style.height=e+'px'};this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e;if(e>s){this.coeff=s/e;e=s}else if(1!=this.coeff){this.coeff=1}this.inner.style.height=e+'px'};this.setScrollTop=function(e){if(this.scrollTop!=e){this.skipEvent=!0;this.scrollTop=e;this.element.scrollTop=e*this.coeff}}}).call(d.prototype);var c=function(e,t){l.call(this,e);this.scrollLeft=0;this.height=t.$scrollbarWidth;this.inner.style.height=this.element.style.height=(this.height||15)+5+'px'};r.inherits(c,l);(function(){this.classSuffix='-h';this.onScroll=function(){if(!this.skipEvent){this.scrollLeft=this.element.scrollLeft;this._emit('scroll',{data:this.scrollLeft})}this.skipEvent=!1};this.getHeight=function(){return this.isVisible?this.height:0};this.setWidth=function(e){this.element.style.width=e+'px'};this.setInnerWidth=function(e){this.inner.style.width=e+'px'};this.setScrollWidth=function(e){this.inner.style.width=e+'px'};this.setScrollLeft=function(e){if(this.scrollLeft!=e){this.skipEvent=!0;this.scrollLeft=this.element.scrollLeft=e}}}).call(c.prototype);t.ScrollBar=d;t.ScrollBarV=d;t.ScrollBarH=c;t.VScrollBar=d;t.HScrollBar=c});ace.define('ace/renderloop',['require','exports','module','ace/lib/event'],function(e,t,n){'use strict';var r=e('./lib/event'),o=function(e,t){this.onRender=e;this.pending=!1;this.changes=0;this.window=t||window};(function(){this.schedule=function(e){this.changes=this.changes|e;if(!this.pending&&this.changes){this.pending=!0;var t=this;r.nextFrame(function(){t.pending=!1;var e;while(e=t.changes){t.changes=0;t.onRender(e)}},this.window)}}}).call(o.prototype);t.RenderLoop=o});ace.define('ace/layer/font_metrics',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/lib/lang','ace/lib/useragent','ace/lib/event_emitter'],function(e,t,n){var r=e('../lib/oop'),o=e('../lib/dom'),a=e('../lib/lang'),i=e('../lib/useragent'),s=e('../lib/event_emitter').EventEmitter,l=0,d=t.FontMetrics=function(e){this.el=o.createElement('div');this.$setMeasureNodeStyles(this.el.style,!0);this.$main=o.createElement('div');this.$setMeasureNodeStyles(this.$main.style);this.$measureNode=o.createElement('div');this.$setMeasureNodeStyles(this.$measureNode.style);this.el.appendChild(this.$main);this.el.appendChild(this.$measureNode);e.appendChild(this.el);if(!l)this.$testFractionalRect();this.$measureNode.innerHTML=a.stringRepeat('X',l);this.$characterSize={width:0,height:0};this.checkForSizeChanges()};(function(){r.implement(this,s);this.$characterSize={width:0,height:0};this.$testFractionalRect=function(){var e=o.createElement('div');this.$setMeasureNodeStyles(e.style);e.style.width='0.2px';document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;if(0t)l=50;else l=100;e.parentNode.removeChild(e)};this.$setMeasureNodeStyles=function(e,t){e.width=e.height='auto';e.left=e.top='0px';e.visibility='hidden';e.position='absolute';e.whiteSpace='pre';if(8>i.isIE){e['font-family']='inherit'}else{e.font='inherit'}e.overflow=t?'hidden':'visible'};this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight='bold';var t=this.$measureSizes();this.$measureNode.style.fontWeight='';this.$characterSize=e;this.charSizes=Object.create(null);this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height;this._emit('changeCharacterSize',{data:e})}};this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval(function(){e.checkForSizeChanges()},500)};this.setPolling=function(e){if(e){this.$pollSizeChanges()}else if(this.$pollSizeChangesTimer){clearInterval(this.$pollSizeChangesTimer);this.$pollSizeChangesTimer=0}};this.$measureSizes=function(){if(50==l){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(t){e={width:0,height:0}}var t={height:e.height,width:e.width/l}}else{var t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/l}}if(0===t.width||0===t.height)return null;return t};this.$measureCharWidth=function(e){this.$main.innerHTML=a.stringRepeat(e,l);var t=this.$main.getBoundingClientRect();return t.width/l};this.getCharacterWidth=function(e){var t=this.charSizes[e];if(t===void 0){t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width}return t};this.destroy=function(){clearInterval(this.$pollSizeChangesTimer);if(this.el&&this.el.parentNode)this.el.parentNode.removeChild(this.el)}}).call(d.prototype)});ace.define('ace/virtual_renderer',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/config','ace/lib/useragent','ace/layer/gutter','ace/layer/marker','ace/layer/text','ace/layer/cursor','ace/scrollbar','ace/scrollbar','ace/renderloop','ace/layer/font_metrics','ace/lib/event_emitter'],function(e,t,n){'use strict';var o=e('./lib/oop'),a=e('./lib/dom'),l=e('./config'),u=e('./lib/useragent'),p=e('./layer/gutter').Gutter,g=e('./layer/marker').Marker,f=e('./layer/text').Text,h=e('./layer/cursor').Cursor,m=e('./scrollbar').HScrollBar,b=e('./scrollbar').VScrollBar,y=e('./renderloop').RenderLoop,v=e('./layer/font_metrics').FontMetrics,k=e('./lib/event_emitter').EventEmitter,x='.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_editor.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}';a.importCssString(x,'ace_editor.css');var w=function(e,t){var n=this;this.container=e||a.createElement('div');this.$keepTextAreaAtCursor=!u.isOldIE;a.addCssClass(this.container,'ace_editor');this.setTheme(t);this.$gutter=a.createElement('div');this.$gutter.className='ace_gutter';this.container.appendChild(this.$gutter);this.scroller=a.createElement('div');this.scroller.className='ace_scroller';this.container.appendChild(this.scroller);this.content=a.createElement('div');this.content.className='ace_content';this.scroller.appendChild(this.content);this.$gutterLayer=new p(this.$gutter);this.$gutterLayer.on('changeGutterWidth',this.onGutterResize.bind(this));this.$markerBack=new g(this.content);var r=this.$textLayer=new f(this.content);this.canvas=r.element;this.$markerFront=new g(this.content);this.$cursorLayer=new h(this.content);this.$horizScroll=!1;this.$vScroll=!1;this.scrollBar=this.scrollBarV=new b(this.container,this);this.scrollBarH=new m(this.container,this);this.scrollBarV.addEventListener('scroll',function(t){if(!n.$scrollAnimation)n.session.setScrollTop(t.data-n.scrollMargin.top)});this.scrollBarH.addEventListener('scroll',function(t){if(!n.$scrollAnimation)n.session.setScrollLeft(t.data-n.scrollMargin.left)});this.scrollTop=0;this.scrollLeft=0;this.cursorPos={row:0,column:0};this.$fontMetrics=new v(this.container);this.$textLayer.$setFontMetrics(this.$fontMetrics);this.$textLayer.addEventListener('changeCharacterSize',function(t){n.updateCharacterSize();n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height);n._signal('changeCharacterSize',t)});this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0};this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1};this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0};this.$loop=new y(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView);this.$loop.schedule(this.CHANGE_FULL);this.updateCharacterSize();this.setPadding(4);l.resetOptions(this);l._emit('renderer',this)};(function(){var e=Math.round;this.CHANGE_CURSOR=1;this.CHANGE_MARKER=2;this.CHANGE_GUTTER=4;this.CHANGE_SCROLL=8;this.CHANGE_LINES=16;this.CHANGE_TEXT=32;this.CHANGE_SIZE=64;this.CHANGE_MARKER_BACK=128;this.CHANGE_MARKER_FRONT=256;this.CHANGE_FULL=512;this.CHANGE_H_SCROLL=1024;o.implement(this,k);this.updateCharacterSize=function(){if(this.$textLayer.allowBoldFonts!=this.$allowBoldFonts){this.$allowBoldFonts=this.$textLayer.allowBoldFonts;this.setStyle('ace_nobold',!this.$allowBoldFonts)}this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth();this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight();this.$updatePrintMargin()};this.setSession=function(e){if(this.session)this.session.doc.off('changeNewLineMode',this.onChangeNewLineMode);this.session=e;if(e&&this.scrollMargin.top&&0>=e.getScrollTop())e.setScrollTop(-this.scrollMargin.top);this.$cursorLayer.setSession(e);this.$markerBack.setSession(e);this.$markerFront.setSession(e);this.$gutterLayer.setSession(e);this.$textLayer.setSession(e);if(!e)return;this.$loop.schedule(this.CHANGE_FULL);this.session.$setFontMetrics(this.$fontMetrics);this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null;this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this);this.onChangeNewLineMode();this.session.doc.on('changeNewLineMode',this.onChangeNewLineMode)};this.updateLines=function(e,t,n){if(t===void 0)t=Infinity;if(!this.$changedLines){this.$changedLines={firstRow:e,lastRow:t}}else{if(this.$changedLines.firstRow>e)this.$changedLines.firstRow=e;if(this.$changedLines.lastRowthis.layerConfig.lastRow)return;this.$loop.schedule(this.CHANGE_LINES)};this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT);this.$textLayer.$updateEolChar()};this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER);this.$textLayer.onChangeTabSize()};this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)};this.updateFull=function(e){if(e)this.$renderChanges(this.CHANGE_FULL,!0);else this.$loop.schedule(this.CHANGE_FULL)};this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()};this.$changes=0;this.$updateSizeAsync=function(){if(this.$loop.pending)this.$size.$dirty=!0;else this.onResize()};this.onResize=function(e,t,n,r){if(2t||t>e.height-o){r.top=r.left='0';return}var a=this.characterWidth;if(this.$composition){var i=this.textarea.value.replace(/^\x01+/,'');a*=this.session.$getStringScreenWidth(i)[0]+2;o+=2}n-=this.scrollLeft;if(n>this.$size.scrollerWidth-a)n=this.$size.scrollerWidth-a;n+=this.gutterWidth;r.height=o+'px';r.width=a+'px';r.left=d(n,this.$size.scrollerWidth-a)+'px';r.top=d(t,this.$size.height-o)+'px'};this.getFirstVisibleRow=function(){return this.layerConfig.firstRow};this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)};this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;if(n-this.session.getScrollTop()>e.height-e.lineHeight)return t-1;return t};this.getLastVisibleRow=function(){return this.layerConfig.lastRow};this.$padding=null;this.setPadding=function(e){this.$padding=e;this.$textLayer.setPadding(e);this.$cursorLayer.setPadding(e);this.$markerFront.setPadding(e);this.$markerBack.setPadding(e);this.$loop.schedule(this.CHANGE_FULL);this.$updatePrintMargin()};this.setScrollMargin=function(e,t,n,r){var o=this.scrollMargin;o.top=0|e;o.bottom=0|t;o.right=0|r;o.left=0|n;o.v=o.top+o.bottom;o.h=o.left+o.right;if(o.top&&0>=this.scrollTop&&this.session)this.session.setScrollTop(-o.top);this.updateFull()};this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible};this.setHScrollBarAlwaysVisible=function(e){this.setOption('hScrollBarAlwaysVisible',e)};this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible};this.setVScrollBarAlwaysVisible=function(e){this.setOption('vScrollBarAlwaysVisible',e)};this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;if(!this.$maxLines&&this.$scrollPastEnd){e-=(t-this.lineHeight)*this.$scrollPastEnd;if(this.scrollTop>e-t){e=this.scrollTop+t;this.scrollBarV.scrollTop=null}}this.scrollBarV.setScrollHeight(e+this.scrollMargin.v);this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)};this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h);this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)};this.$frozen=!1;this.freeze=function(){this.$frozen=!0};this.unfreeze=function(){this.$frozen=!1};this.$renderChanges=function(e,t){if(this.$changes){e|=this.$changes;this.$changes=0}if(!this.session||!this.container.offsetWidth||this.$frozen||!e&&!t){this.$changes|=e;return}if(this.$size.$dirty){this.$changes|=e;return this.onResize(!0)}if(!this.lineHeight){this.$textLayer.checkForSizeChanges()}this._signal('beforeRender');var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){e|=this.$computeLayerConfig();if(n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;if(0=this.scrollLeft?'ace_scroller':'ace_scroller ace_scroll-left'}if(e&this.CHANGE_FULL){this.$textLayer.update(n);if(this.$showGutter)this.$gutterLayer.update(n);this.$markerBack.update(n);this.$markerFront.update(n);this.$cursorLayer.update(n);this.$moveTextAreaToCursor();this.$highlightGutterLine&&this.$updateGutterLineHighlight();this._signal('afterRender');return}if(e&this.CHANGE_SCROLL){if(e&this.CHANGE_TEXT||e&this.CHANGE_LINES)this.$textLayer.update(n);else this.$textLayer.scrollLines(n);if(this.$showGutter)this.$gutterLayer.update(n);this.$markerBack.update(n);this.$markerFront.update(n);this.$cursorLayer.update(n);this.$highlightGutterLine&&this.$updateGutterLineHighlight();this.$moveTextAreaToCursor();this._signal('afterRender');return}if(e&this.CHANGE_TEXT){this.$textLayer.update(n);if(this.$showGutter)this.$gutterLayer.update(n)}else if(e&this.CHANGE_LINES){if(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)this.$gutterLayer.update(n)}else if(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER){if(this.$showGutter)this.$gutterLayer.update(n)}if(e&this.CHANGE_CURSOR){this.$cursorLayer.update(n);this.$moveTextAreaToCursor();this.$highlightGutterLine&&this.$updateGutterLineHighlight()}if(e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)){this.$markerFront.update(n)}if(e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)){this.$markerBack.update(n)}this._signal('afterRender')};this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=d(t,c((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);if(this.$horizScroll)n+=this.scrollBarH.getHeight();if(this.$maxPixelHeight&&n>this.$maxPixelHeight)n=this.$maxPixelHeight;var r=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){if(r!=this.$vScroll){this.$vScroll=r;this.scrollBarV.setVisible(r)}var o=this.container.clientWidth;this.container.style.height=n+'px';this.$updateCachedSize(!0,this.$gutterWidth,o,n);this.desiredHeight=n;this._signal('autosize')}};this.$computeLayerConfig=function(){var t=this.session,n=this.$size,o=n.height<=2*this.lineHeight,a=this.session.getScreenLength(),i=a*this.lineHeight,s=this.$getLongestLine(),l=!o&&(this.$hScrollBarAlwaysVisible||0>n.scrollerWidth-s-2*this.$padding),u=this.$horizScroll!==l;if(u){this.$horizScroll=l;this.scrollBarH.setVisible(l)}var p=this.$vScroll;if(this.$maxLines&&1n.scrollerHeight-i+h||this.scrollTop>m.top),y=p!==b;if(y){this.$vScroll=b;this.scrollBarV.setVisible(b)}var v=r(f/this.lineHeight)-1,k=c(0,e((this.scrollTop-g)/this.lineHeight)),x=k+v,w,C,A=this.lineHeight;k=t.screenToDocumentRow(k,0);var E=t.getFoldLine(k);if(E){k=E.start.row}w=t.documentToScreenRow(k,0);C=t.getRowLength(k)*A;x=d(t.screenToDocumentRow(x,0),t.getLength()-1);f=n.scrollerHeight+t.getRowLength(x)*A+C;g=this.scrollTop-w*A;var F=0;if(this.layerConfig.width!=s)F=this.CHANGE_H_SCROLL;if(u||y){F=this.$updateCachedSize(!0,this.gutterWidth,n.width,n.height);this._signal('scrollbarVisibilityChanged');if(y)s=this.$getLongestLine()}this.layerConfig={width:s,padding:this.$padding,firstRow:k,firstRowScreen:w,lastRow:x,lineHeight:A,characterWidth:this.characterWidth,minHeight:f,maxHeight:i,offset:g,gutterOffset:A?c(0,r((g+n.height-n.scrollerHeight)/A)):0,height:this.$size.scrollerHeight};return F};this.$updateLines=function(){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(e>n.lastRow+1){return}if(ti){if(n&&d+s>i+this.lineHeight)i-=n*this.$size.scrollerHeight;if(0===i)i=-this.scrollMargin.top;this.session.setScrollTop(i)}else if(d+this.$size.scrollerHeight-la){if(at&&this.session.getScrollTop()>=1-this.scrollMargin.top)return!0;if(0e&&this.session.getScrollLeft()>=1-this.scrollMargin.left)return!0;if(0this.$doc.getLength()>>1){this.call('setValue',[this.$doc.getValue()])}else this.emit('change',{data:e})};this.$workerBlob=function(e){var t='importScripts(\''+a.qualifyURL(e)+'\');';try{return new Blob([t],{type:'application/javascript'})}catch(o){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,r=new n;r.append(t);return r.getBlob('application/javascript')}}}).call(l.prototype);var d=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this);this.changeListener=this.changeListener.bind(this);this.callbackId=1;this.callbacks={};this.messageBuffer=[];var r=null,o=!1,a=Object.create(i),l=this;this.$worker={};this.$worker.terminate=function(){};this.$worker.postMessage=function(t){l.messageBuffer.push(t);if(r){if(o)setTimeout(d);else d()}};this.setEmitSync=function(e){o=e};var d=function(){var e=l.messageBuffer.shift();if(e.command)r[e.command].apply(r,e.args);else if(e.event)a._signal(e.event,e.data)};a.postMessage=function(e){l.onMessage({data:e})};a.callback=function(e,t){this.postMessage({type:'call',id:t,data:e})};a.emit=function(e,t){this.postMessage({type:'event',name:e,data:t})};s.loadModule(['worker',t],function(e){r=new e[n](a);while(l.messageBuffer.length)d()})};d.prototype=l.prototype;t.UIWorkerClient=d;t.WorkerClient=l});ace.define('ace/placeholder',['require','exports','module','ace/range','ace/lib/event_emitter','ace/lib/oop'],function(e,t,n){'use strict';var r=e('./range').Range,o=e('./lib/event_emitter').EventEmitter,a=e('./lib/oop'),i=function(e,t,n,r,o,a){var i=this;this.length=t;this.session=e;this.doc=e.getDocument();this.mainClass=o;this.othersClass=a;this.$onUpdate=this.onUpdate.bind(this);this.doc.on('change',this.$onUpdate);this.$others=r;this.$onCursorChange=function(){setTimeout(function(){i.onCursorChange()})};this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length;this.setup();e.selection.on('changeCursor',this.$onCursorChange)};(function(){a.implement(this,o);this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON();if(n.selection.inMultiSelectMode)n.selection.toSingleRange();this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0;o.detach();o.markerId=n.addMarker(new r(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1);this.others=[];this.$others.forEach(function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0;r.detach();e.others.push(r)});n.setUndoSelect(!1)};this.showOtherMarkers=function(){if(this.othersActive)return;var e=this.session,t=this;this.othersActive=!0;this.others.forEach(function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})};this.hideOtherMarkers=function(){if(!this.othersActive)return;this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,a=t.start.column-this.pos.column;this.updateAnchors(e);if(o)this.length+=n;if(o&&!this.session.$fromUndo){if('insert'===e.action){for(var s=this.others.length-1;0<=s;s--){var i=this.others[s],l={row:i.row,column:i.column+a};this.doc.insertMergedLines(l,e.lines)}}else if('remove'===e.action){for(var s=this.others.length-1;0<=s;s--){var i=this.others[s],l={row:i.row,column:i.column+a};this.doc.remove(new r(l.row,l.column,l.row,l.column-n))}}}this.$updating=!1;this.updateMarkers()};this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()};this.updateMarkers=function(){if(this.$updating)return;var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId);n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)};this.onCursorChange=function(e){if(this.$updating||!this.session)return;var t=this.session.selection.getCursor();if(t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length){this.showOtherMarkers();this._emit('cursorEnter',e)}else{this.hideOtherMarkers();this._emit('cursorLeave',e)}};this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId);this.hideOtherMarkers();this.doc.removeEventListener('change',this.$onUpdate);this.session.selection.removeEventListener('changeCursor',this.$onCursorChange);this.session.setUndoSelect(!0);this.session=null};this.cancel=function(){if(-1===this.$undoStackDepth)return;for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;ns)s=0;if(0>u)u=0;if(u==p)n=!0;for(var g=u,f;g<=p;g++){f=c.fromPoints(this.session.screenToDocumentPosition(g,s),this.session.screenToDocumentPosition(g,l));if(f.isEmpty()){if(h&&o(f.end,h))break;var h=f.end}f.cursor=a?f.start:f.end;r.push(f)}if(d)r.reverse();if(!n){var m=r.length-1;while(r[m].isEmpty()&&0=b;y--){if(r[y].isEmpty())r.splice(y,1)}}return r}}).call(l.prototype);var b=e('./editor').Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.addSelectionMarker=function(e){if(!e.cursor)e.cursor=e.end;var t=this.getSelectionStyle();e.marker=this.session.addMarker(e,'ace_selection',t);this.session.$selectionMarkers.push(e);this.session.selectionMarkerCount=this.session.$selectionMarkers.length;return e};this.removeSelectionMarker=function(e){if(!e.marker)return;this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);if(-1!=t)this.session.$selectionMarkers.splice(t,1);this.session.selectionMarkerCount=this.session.$selectionMarkers.length};this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length,r;n--;){r=e[n];if(!r.marker)continue;this.session.removeMarker(r.marker);var o=t.indexOf(r);if(-1!=o)t.splice(o,1)}this.session.selectionMarkerCount=t.length};this.$onAddRange=function(t){this.addSelectionMarker(t.range);this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.$onRemoveRange=function(t){this.removeSelectionMarkers(t.ranges);this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.$onMultiSelect=function(t){if(this.inMultiSelectMode)return;this.inMultiSelectMode=!0;this.setStyle('ace_multiselect');this.keyBinding.addKeyboardHandler(p.keyboardHandler);this.commands.setDefaultHandler('exec',this.$onMultiSelectExec);this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.$onSingleSelect=function(t){if(this.session.multiSelect.inVirtualMode)return;this.inMultiSelectMode=!1;this.unsetStyle('ace_multiselect');this.keyBinding.removeKeyboardHandler(p.keyboardHandler);this.commands.removeDefaultHandler('exec',this.$onMultiSelectExec);this.renderer.updateCursor();this.renderer.updateBackMarkers();this._emit('changeSelection')};this.$onMultiSelectExec=function(t){var e=t.command,n=t.editor;if(!n.multiSelect)return;if(!e.multiSelectAction){var r=e.exec(n,t.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange());n.multiSelect.mergeOverlappingRanges()}else if('forEach'==e.multiSelectAction){r=n.forEachSelection(e,t.args)}else if('forEachLine'==e.multiSelectAction){r=n.forEachSelection(e,t.args,!0)}else if('single'==e.multiSelectAction){n.exitMultiSelectMode();r=e.exec(n,t.args||{})}else{r=e.multiSelectAction(n,t.args||{})}return r};this.forEachSelection=function(e,t,n){if(this.inVirtualSelectionMode)return;var r=n&&n.keepOrder,o=!0==n||n&&n.$byLines,a=this.session,s=this.selection,d=s.rangeList,c=(r?s:d).ranges,u;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var p=s._eventRegistry;s._eventRegistry={};var g=new l(a);this.inVirtualSelectionMode=!0;for(var f=c.length;f--;){if(o){while(0e)s.unshift(s.pop());else s.push(s.shift());for(var o=r.length;o--;){var a=r[o],i=a.clone();t.replace(a,s[o]);a.start.row=i.start.row;a.start.column=i.start.column}};this.selectMore=function(e,t,n){var o=this.session,a=o.multiSelect,i=a.toOrientedRange();if(i.isEmpty()){i=o.getWordRange(i.start.row,i.start.column);i.cursor=-1==e?i.start:i.end;this.multiSelect.addRange(i);if(n)return}var s=o.getTextRange(i),l=r(o,s,e);if(l){l.cursor=-1==e?l.start:l.end;this.$blockScrolling+=1;this.session.unfold(l);this.multiSelect.addRange(l);this.$blockScrolling-=1;this.renderer.scrollCursorIntoView(null,0.5)}if(t)this.multiSelect.substractPoint(i.cursor)};this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,o=-1,r=n.filter(function(e){if(e.cursor.row==o)return!0;o=e.cursor.row});if(!n.length||r.length==n.length-1){var a=this.selection.getRange(),i=a.start.row,s=a.end.row,l=i==s;if(l){var d=this.session.getLength(),u;do{u=this.session.getLine(s)}while(/[=:]/.test(u)&&++si)i=0;if(s>=d)s=d-1}var p=this.session.removeFullLines(i,s);p=this.$reAlignText(p,l);this.session.insert({row:i,column:0},p.join('\n')+'\n');if(!l){a.start.column=0;a.end.column=p[p.length-1].length}this.selection.setRange(a)}else{r.forEach(function(e){t.substractPoint(e.cursor)});var f=0,h=Infinity,m=n.map(function(t){var n=t.cursor,r=e.getLine(n.row),o=r.substr(n.column).search(/\S/g);if(-1==o)o=0;if(n.column>f)f=n.column;if(oa)e.insert(r,g.stringRepeat(' ',o-a));else e.remove(new c(r.row,r.column,r.row,r.column-o+a));t.start.column=t.end.column=f;t.start.row=t.end.row=r.row;t.cursor=t.end});t.fromOrientedRange(n[0]);this.renderer.updateCursor();this.renderer.updateBackMarkers()}};this.$reAlignText=function(e,t){var i=!0,s=!0,l,d,c;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);if(!t)return[e];if(null==l){l=t[1].length;d=t[2].length;c=t[3].length;return t}if(l+d+c!=t[1].length+t[2].length+t[3].length)s=!1;if(l!=t[1].length)i=!1;if(l>t[1].length)l=t[1].length;if(dt[3].length)c=t[3].length;return t}).map(t?r:i?s?o:r:a);function n(e){return g.stringRepeat(' ',e)}function r(e){return!e[2]?e[0]:n(l)+e[2]+n(d-e[2].length+c)+e[4].replace(/^([=:])\s+/,'$1 ')}function o(e){return!e[2]?e[0]:n(l+d-e[2].length)+e[2]+n(c,' ')+e[4].replace(/^([=:])\s+/,'$1 ')}function a(e){return!e[2]?e[0]:n(l)+e[2]+n(c)+e[4].replace(/^([=:])\s+/,'$1 ')}}}).call(b.prototype);function o(e,t){return e.row==t.row&&e.column==t.column}t.onSessionChange=function(t){var e=t.session;if(e&&!e.multiSelect){e.$selectionMarkers=[];e.selection.$initRangeList();e.multiSelect=e.selection}this.multiSelect=e&&e.multiSelect;var n=t.oldSession;if(n){n.multiSelect.off('addRange',this.$onAddRange);n.multiSelect.off('removeRange',this.$onRemoveRange);n.multiSelect.off('multiSelect',this.$onMultiSelect);n.multiSelect.off('singleSelect',this.$onSingleSelect);n.multiSelect.lead.off('change',this.$checkMultiselectChange);n.multiSelect.anchor.off('change',this.$checkMultiselectChange)}if(e){e.multiSelect.on('addRange',this.$onAddRange);e.multiSelect.on('removeRange',this.$onRemoveRange);e.multiSelect.on('multiSelect',this.$onMultiSelect);e.multiSelect.on('singleSelect',this.$onSingleSelect);e.multiSelect.lead.on('change',this.$checkMultiselectChange);e.multiSelect.anchor.on('change',this.$checkMultiselectChange)}if(e&&this.inMultiSelectMode!=e.selection.inMultiSelectMode){if(e.selection.inMultiSelectMode)this.$onMultiSelect();else this.$onSingleSelect()}};function a(e){if(e.$multiselectOnSessionChange)return;e.$onAddRange=e.$onAddRange.bind(e);e.$onRemoveRange=e.$onRemoveRange.bind(e);e.$onMultiSelect=e.$onMultiSelect.bind(e);e.$onSingleSelect=e.$onSingleSelect.bind(e);e.$multiselectOnSessionChange=t.onSessionChange.bind(e);e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e);e.$multiselectOnSessionChange(e);e.on('changeSession',e.$multiselectOnSessionChange);e.on('mousedown',d);e.commands.addCommands(p.defaultCommands);i(e)}function i(t){var n=t.textInput.getElement(),r=!1;u.addListener(n,'keydown',function(n){var o=18==n.keyCode&&!(n.ctrlKey||n.shiftKey||n.metaKey);if(t.$blockSelectEnabled&&o){if(!r){t.renderer.setMouseCursor('crosshair');r=!0}}else if(r){e()}});u.addListener(n,'keyup',e);u.addListener(n,'blur',e);function e(n){if(r){t.renderer.setMouseCursor('');r=!1}}}t.MultiSelect=a;e('./config').defineOptions(b.prototype,'editor',{enableMultiselect:{set:function(e){a(this);if(e){this.on('changeSession',this.$multiselectOnSessionChange);this.on('mousedown',d)}else{this.off('changeSession',this.$multiselectOnSessionChange);this.off('mousedown',d)}},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})});ace.define('ace/mode/folding/fold_mode',['require','exports','module','ace/range'],function(e,t,n){'use strict';var r=e('../../range').Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null;this.foldingStopMarker=null;this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.foldingStartMarker.test(r))return'start';if('markbeginend'==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r))return'end';return''};this.getFoldWidgetRange=function(e,t,n){return null};this.indentationBlock=function(e,t,n){var o=/\S/,a=e.getLine(t),i=a.search(o);if(-1==i)return;var s=n||a.length,l=e.getLength(),d=t,c=t;while(++td){var p=e.getLine(c).length;return new r(d,s,c,p)}};this.openingBracketBlock=function(e,t,n,o,a){var i={row:n,column:o+1},s=e.$findClosingBracket(t,i,a);if(!s)return;var l=e.foldWidgets[s.row];if(null==l)l=e.getFoldWidget(s.row);if('start'==l&&s.row>i.row){s.row--;s.column=e.getLine(s.row).length}return r.fromPoints(i,s)};this.closingBracketBlock=function(e,t,n,o,a){var i={row:n,column:o},s=e.$findOpeningBracket(t,i);if(!s)return;s.column++;i.column--;return r.fromPoints(s,i)}}).call(o.prototype)});ace.define('ace/theme/textmate',['require','exports','module','ace/lib/dom'],function(e,t,n){'use strict';t.isDark=!1;t.cssClass='ace-tm';t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e('../lib/dom');r.importCssString(t.cssText,t.cssClass)});ace.define('ace/line_widgets',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/range'],function(e,t,n){'use strict';var a=e('./lib/oop'),i=e('./lib/dom'),s=e('./range').Range;function o(e){this.session=e;this.session.widgetManager=this;this.session.getRowLength=this.getRowLength;this.session.$getWidgetScreenLength=this.$getWidgetScreenLength;this.updateOnChange=this.updateOnChange.bind(this);this.renderWidgets=this.renderWidgets.bind(this);this.measureWidgets=this.measureWidgets.bind(this);this.session._changedWidgets=[];this.$onChangeEditor=this.$onChangeEditor.bind(this);this.session.on('change',this.updateOnChange);this.session.on('changeFold',this.updateOnFold);this.session.on('changeEditor',this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;if(this.lineWidgets)t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;if(!this.$useWrapMode||!this.$wrapData[e]){return 1+t}else{return this.$wrapData[e].length+1+t}};this.$getWidgetScreenLength=function(){var e=0;this.lineWidgets.forEach(function(t){if(t&&t.rowCount&&!t.hidden)e+=t.rowCount});return e};this.$onChangeEditor=function(t){this.attach(t.editor)};this.attach=function(e){if(e&&e.widgetManager&&e.widgetManager!=this)e.widgetManager.detach();if(this.editor==e)return;this.detach();this.editor=e;if(e){e.widgetManager=this;e.renderer.on('beforeRender',this.measureWidgets);e.renderer.on('afterRender',this.renderWidgets)}};this.detach=function(t){var e=this.editor;if(!e)return;this.editor=null;e.widgetManager=null;e.renderer.off('beforeRender',this.measureWidgets);e.renderer.off('afterRender',this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){if(e&&e.el&&e.el.parentNode){e._inDocument=!1;e.el.parentNode.removeChild(e.el)}})};this.updateOnFold=function(t,e){var n=e.lineWidgets;if(!n||!t.action)return;for(var r=t.data,o=r.start.row,a=r.end.row,s='add'==t.action,l=o+1;ll)l=0}if(i.rowCount!=l){i.rowCount=l;if(i.row>1,i=n(t,e[a]);if(0i)o=a-1;else return a}return-(r+1)}function o(e,t,n){var o=e.getAnnotations().sort(s.comparePoints);if(!o.length)return;var a=r(o,{row:t,column:-1},s.comparePoints);if(0>a)a=-a-1;if(a>=o.length)a=0n)a=o.length-1;var l=o[a];if(!l||!n)return;if(l.row===t){do{l=o[a+=n]}while(l&&l.row===t);if(!l)return o.slice()}var d=[];t=l.row;do{d[0>n?'unshift':'push'](l);l=o[a+=n]}while(l&&l.row==t);return d.length&&d}t.showErrorMarker=function(e,t){var n=e.session;if(!n.widgetManager){n.widgetManager=new a(n);n.widgetManager.attach(e)}var r=e.getCursorPosition(),s=r.row,l=n.widgetManager.getWidgetsAtRow(s).filter(function(e){return'errorMarker'==e.type})[0];if(l){l.destroy()}else{s-=t}var d=o(n,s,t),c;if(d){var u=d[0];r.column=(u.pos&&'number'!=typeof u.column?u.pos.sc:u.column)||0;r.row=u.row;c=e.renderer.$gutterLayer.$annotations[r.row]}else if(l){return}else{c={text:['Looks good!'],className:'ace_ok'}}e.session.unfold(r.row);e.selection.moveToPosition(r);var p={row:r.row,fixedWidth:!0,coverGutter:!0,el:i.createElement('div'),type:'errorMarker'},g=p.el.appendChild(i.createElement('div')),f=p.el.appendChild(i.createElement('div'));f.className='error_widget_arrow '+c.className;var h=e.renderer.$cursorLayer.getPixelPosition(r).left;f.style.left=h+e.renderer.gutterWidth-5+'px';p.el.className='error_widget_wrapper';g.className='error_widget '+c.className;g.innerHTML=c.text.join('
');g.appendChild(i.createElement('div'));var m=function(e,t,n){if(0===t&&('esc'===n||'return'===n)){p.destroy();return{command:'null'}}};p.destroy=function(){if(e.$mouseHandler.isMousePressed)return;e.keyBinding.removeKeyboardHandler(m);n.widgetManager.removeLineWidget(p);e.off('changeSelection',p.destroy);e.off('changeSession',p.destroy);e.off('mouseup',p.destroy);e.off('change',p.destroy)};e.keyBinding.addKeyboardHandler(m);e.on('changeSelection',p.destroy);e.on('changeSession',p.destroy);e.on('mouseup',p.destroy);e.on('change',p.destroy);e.session.widgetManager.addLineWidget(p);p.el.onmousedown=e.focus.bind(e);e.renderer.scrollCursorIntoView(null,0.5,{bottom:p.el.offsetHeight})};i.importCssString(' .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }','')});ace.define('ace/ace',['require','exports','module','ace/lib/fixoldbrowsers','ace/lib/dom','ace/lib/event','ace/editor','ace/edit_session','ace/undomanager','ace/virtual_renderer','ace/worker/worker_client','ace/keyboard/hash_handler','ace/placeholder','ace/multi_select','ace/mode/folding/fold_mode','ace/theme/textmate','ace/ext/error_marker','ace/config'],function(e,t,r){'use strict';e('./lib/fixoldbrowsers');var o=e('./lib/dom'),a=e('./lib/event'),i=e('./editor').Editor,s=e('./edit_session').EditSession,l=e('./undomanager').UndoManager,d=e('./virtual_renderer').VirtualRenderer;e('./worker/worker_client');e('./keyboard/hash_handler');e('./placeholder');e('./multi_select');e('./mode/folding/fold_mode');e('./theme/textmate');e('./ext/error_marker');t.config=e('./config');t.acequire=e;if(!0)t.define=n(11);t.edit=function(e){if('string'==typeof e){var n=e;e=document.getElementById(n);if(!e)throw new Error('ace.edit can\'t find div #'+n)}if(e&&e.env&&e.env.editor instanceof i)return e.env.editor;var r='';if(e&&/input|textarea/i.test(e.tagName)){var s=e;r=s.value;e=o.createElement('pre');s.parentNode.replaceChild(e,s)}else if(e){r=o.getInnerText(e);e.innerHTML=''}var l=t.createEditSession(r),c=new i(new d(e));c.setSession(l);var u={document:l,editor:c,onResize:c.resize.bind(c,null)};if(s)u.textarea=s;a.addListener(window,'resize',u.onResize);c.on('destroy',function(){a.removeListener(window,'resize',u.onResize);u.editor.container.env=null});c.container.env=c.env=u;return c};t.createEditSession=function(e,t){var n=new s(e,t);n.setUndoManager(new l);return n};t.EditSession=s;t.UndoManager=l;t.version='1.2.6'});(function(){ace.acequire(['ace/ace'],function(e){if(e){e.config.init(!0);e.define=ace.define}if(!window.ace)window.ace=e;for(var t in e)if(e.hasOwnProperty(t))window.ace[t]=e[t]})})();e.exports=window.ace.acequire('ace/ace')},function(e,t){e.exports=function(){throw new Error('define cannot be used indirect')}},function(e,t,n){(function(e,n){var ve=200,ke='__lodash_hash_undefined__',xe=1,we=2,Ce=9007199254740991,Ae='[object Arguments]',Ee='[object Array]',Fe='[object AsyncFunction]',Se='[object Boolean]',_e='[object Date]',Le='[object Error]',Te='[object Function]',De='[object GeneratorFunction]',Be='[object Map]',$e='[object Number]',Re='[object Null]',Me='[object Object]',Pe='[object Promise]',Oe='[object Proxy]',Ne='[object RegExp]',je='[object Set]',Ie='[object String]',We='[object Symbol]',He='[object Undefined]',Ve='[object WeakMap]',Ue='[object ArrayBuffer]',ze='[object DataView]',Ge='[object Float32Array]',qe='[object Float64Array]',Ke='[object Int8Array]',Ye='[object Int16Array]',Xe='[object Int32Array]',Qe='[object Uint8Array]',Je='[object Uint8ClampedArray]',Ze='[object Uint16Array]',et='[object Uint32Array]',tt=/[\\^$.*+?()[\]{}|]/g,nt=/^\[object .+?Constructor\]$/,rt=/^(?:0|[1-9]\d*)$/,ot={};ot[Ge]=ot[qe]=ot[Ke]=ot[Ye]=ot[Xe]=ot[Qe]=ot[Je]=ot[Ze]=ot[et]=!0;ot[Ae]=ot[Ee]=ot[Ue]=ot[Se]=ot[ze]=ot[_e]=ot[Le]=ot[Te]=ot[Be]=ot[$e]=ot[Me]=ot[Ne]=ot[je]=ot[Ie]=ot[Ve]=!1;var at='object'==typeof e&&e&&e.Object===Object&&e,it='object'==typeof self&&self&&self.Object===Object&&self,st=at||it||Function('return this')(),lt='object'==typeof t&&t&&!t.nodeType&&t,dt=lt&&'object'==typeof n&&n&&!n.nodeType&&n,ct=dt&&dt.exports===lt,ut=ct&&at.process,pt=function(){try{return ut&&ut.binding&&ut.binding('util')}catch(t){}}(),gt=pt&&pt.isTypedArray;function r(e,t){var n=-1,r=null==e?0:e.length,o=0,a=[];while(++nn){return!1}var r=t.length-1;if(n==r){t.pop()}else{St.call(t,n,1)}--this.size;return!0}function w(e){var t=this.__data__,n=W(t,e);return 0>n?void 0:t[n][1]}function C(e){return-1r){++this.size;n.push([e,t])}else{n[r][1]=t}return this}v.prototype.clear=k;v.prototype['delete']=x;v.prototype.get=w;v.prototype.has=C;v.prototype.set=A;function E(e){var t=-1,n=null==e?0:e.length;this.clear();while(++td)){return!1}var u=i.get(e);if(u&&i.get(t)){return u==t}var p=-1,g=!0,f=n&we?new D:void 0;i.set(e,t);i.set(t,e);while(++p\n body,\n html {\n height: 100%;\n width: 100%;\n }\n * {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n }\n .footer {\n position: absolute;\n bottom: 0;\n }\n pre {\n display: inline-block;\n background: black;\n color: white !important;\n }\n code {\n display: inline-block;\n padding: 0;\n margin: 0;\n color: grey;\n }\n \n
\n

lcov-server

\n

\uD83C\uDFAF A simple lcov server & cli parser

\n v1.1.3\n
\n
\n \n
npm install -g lcov-server
\n
\n
\n  $ lcov-server  this will startup the lcov-server \n  $ tap test/**/*.js --coverage-report=text-lcov | lcov-server --upload https://localhost:8080
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Lines\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Branches\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Functions\n \n \n \n \n
\n
\n ',options:{width:'100%'},footer:{author:'Made with \uD83D\uDC12 by @gabrielcsapo',website:'http://www.gabrielcsapo.com'},path:'/Users/gacsapo/Documents/temp/lcov-server/tryitout.js'}){var m=window&&window.source||{title:'lcov-server',nav:{Source:'https://github.com/gabrielcsapo/lcov-server',Storybook:'./storybook/index.html'},body:'\n \n
\n

lcov-server

\n

\uD83C\uDFAF A simple lcov server & cli parser

\n v1.1.3\n
\n
\n \n
npm install -g lcov-server
\n
\n
\n  $ lcov-server  this will startup the lcov-server \n  $ tap test/**/*.js --coverage-report=text-lcov | lcov-server --upload https://localhost:8080
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Lines\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Branches\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Functions\n \n \n \n \n
\n
\n ',options:{width:'100%'},footer:{author:'Made with \uD83D\uDC12 by @gabrielcsapo',website:'http://www.gabrielcsapo.com'},path:'/Users/gacsapo/Documents/temp/lcov-server/tryitout.js'};(0,p.render)(d.default.createElement(h,m),document.getElementById('root'));if(!1){e.hot.accept();e.hot.dispose(function(){location.reload()})}}else{e.exports=h}},function(e,t,n){var r=n(16);if('string'==typeof r)r=[[e.i,r,'']];var o,a={hmr:!0};a.transform=o;var i=n(7)(r,a);if(r.locals)e.exports=r.locals;if(!1){if(!r.locals){e.hot.accept('!!../../css-loader/index.js!./psychic-min.css',function(){var t=require('!!../../css-loader/index.js!./psychic-min.css');if('string'==typeof t)t=[[e.id,t,'']];i(t)})}e.hot.dispose(function(){i()})}},function(e,t,n){t=e.exports=n(6)(void 0);t.push([e.i,'/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}hr{display:block;box-sizing:content-box;text-align:center;border:0;height:0;border-top:1px solid #cfcfc4;border-bottom:1px solid rgba(255,255,255,.3)}hr.ellipsis{border-top:0;border-bottom:0}hr.ellipsis:before{font-weight:400;font-style:italic;font-size:28px;letter-spacing:.6em;font-size:13px;content:\'...\';display:inline-block;margin-left:.6em;color:#000;position:relative}pre{display:block;padding:10px;font-size:13px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;white-space:normal;background-color:#f5f5f5;border-radius:5px;border-left:.3rem solid transparent}blockquote{padding:10px 20px;font-size:17.5px;border-left:5px solid #eee}code{border-radius:0;display:block;padding:1rem 1.5rem;white-space:pre;max-width:100%}a{color:#0079ad;text-decoration:none;font-weight:300}small{color:inherit;font-size:75%;font-weight:400}.alert{padding:10px 0 10px 10px;border-radius:5px;border:1px solid #cfcfc4;position:relative}.alert>.alert-close{font-size:25px;line-height:15px;position:absolute;right:10px;top:10px}.alert.alert-white{background-color:#fff;border:1px solid #e6e6e6}.alert.alert-white *{color:#000}.alert.alert-black{background-color:#000;border:1px solid #000}.alert.alert-black *{color:#fff}.alert.alert-default{background-color:#cfcfc4;border:1px solid #bdbdae}.alert.alert-default *{color:#fff}.alert.alert-primary{background-color:#779ecb;border:1px solid #608dc2}.alert.alert-primary *{color:#fff}.alert.alert-success{background-color:#7d7;border:1px solid #5cd65c}.alert.alert-success *{color:#fff}.alert.alert-info{background-color:#9bddff;border:1px solid #72cfff}.alert.alert-info *{color:#fff}.alert.alert-warning{background-color:#ffb347;border:1px solid #ffa626}.alert.alert-warning *{color:#fff}.alert.alert-danger{background-color:#ff6961;border:1px solid #ff483e}.alert.alert-danger *{color:#fff}.badge{display:table-cell;padding:8px 8px 8px 8px;border-radius:100px;border:1px solid #cfcfc4;text-align:center;vertical-align:middle}.badge.badge-white{background-color:#fff;color:#000}.badge.border-white{color:#000}.badge.badge-black{background-color:#000;color:#fff}.badge.border-black{color:#000}.badge.badge-default{background-color:#cfcfc4;color:#fff}.badge.border-default{color:#cfcfc4}.badge.badge-primary{background-color:#779ecb;color:#fff}.badge.border-primary{color:#779ecb}.badge.badge-success{background-color:#7d7;color:#fff}.badge.border-success{color:#7d7}.badge.badge-info{background-color:#9bddff;color:#fff}.badge.border-info{color:#9bddff}.badge.badge-warning{background-color:#ffb347;color:#fff}.badge.border-warning{color:#ffb347}.badge.badge-danger{background-color:#ff6961;color:#fff}.badge.border-danger{color:#ff6961}label{display:inline-block;margin-bottom:.5rem}input,select,textarea{display:block;padding:.375rem 1% .375rem 1%;line-height:1.5}select{background:url("data:image/svg+xml;utf8,");background-color:#fff;border:1px solid #cfcfc4;background-repeat:no-repeat;background-position:right 10px top 5px;background-size:16px 16px;padding:5px 30px 5px 15px;width:auto;text-align:center;border-radius:5px;appearance:none;-webkit-appearance:none;outline:0}select:active,select:focus{outline:0}select.input-white{border-color:#fff}select.input-black{border-color:#a6a6a6}select.input-default{border-color:#eeeeea}select.input-primary{border-color:#cfdded}select.input-success{border-color:#cff3cf}select.input-info{border-color:#dcf3ff}select.input-warning{border-color:#ffe4bf}select.input-danger{border-color:#ffcbc8}input,textarea{width:98%;margin:0;padding:.375rem 1% .375rem 1%;background-color:#fff;background-image:none;border:1px solid #cfcfc4;border-radius:.25rem}input:focus,textarea:focus{border-color:#779ecb;outline:0}input.input-white,textarea.input-white{border-color:#fff}input.input-white:focus,textarea.input-white:focus{border-color:#bfbfbf}input.input-black,textarea.input-black{border-color:#a6a6a6}input.input-black:focus,textarea.input-black:focus{border-color:#000}input.input-default,textarea.input-default{border-color:#eeeeea}input.input-default:focus,textarea.input-default:focus{border-color:#a2a28c}input.input-primary,textarea.input-primary{border-color:#cfdded}input.input-primary:focus,textarea.input-primary:focus{border-color:#4375af}input.input-success,textarea.input-success{border-color:#cff3cf}input.input-success:focus,textarea.input-success:focus{border-color:#3c3}input.input-info,textarea.input-info{border-color:#dcf3ff}input.input-info:focus,textarea.input-info:focus{border-color:#35baff}input.input-warning,textarea.input-warning{border-color:#ffe4bf}input.input-warning:focus,textarea.input-warning:focus{border-color:#f49000}input.input-danger,textarea.input-danger{border-color:#ffcbc8}input.input-danger:focus,textarea.input-danger:focus{border-color:#ff1509}.btn-group{margin:10px;display:inline-block}.btn-group>.btn{margin:-3px;border-radius:0}.btn-group>.btn:first-child{border-radius:5px 0 0 5px}.btn-group>.btn:last-child{border-radius:0 5px 5px 0}.btn{padding:12px 18px;margin:10px;cursor:pointer;display:inline-block;text-align:center;background-color:#fff;border-radius:5px;border:1px solid #cfcfc4;color:#655d5d}.btn:hover{border-color:#d6d6cd}.btn:active{opacity:.5}.btn:focus{outline:0}.btn.btn-block{width:100%}.btn.border-white{color:#fff}.btn.border-white:active,.btn.border-white:hover{border-color:#fff}.btn.border-white:active{border-color:#d9d9d9;opacity:.5}.btn.btn-white{color:#000;border:1px solid #d9d9d9;background-color:#fff}.btn.btn-white:active,.btn.btn-white:hover{border-color:#d9d9d9}.btn.btn-white:hover{background-color:#fff}.btn.btn-white:active{background-color:#d9d9d9;opacity:.5}.btn.border-black{color:#000}.btn.border-black:active,.btn.border-black:hover{border-color:#262626}.btn.border-black:active{border-color:#000;opacity:.5}.btn.btn-black{color:#fff;border:1px solid #000;background-color:#000}.btn.btn-black:active,.btn.btn-black:hover{border-color:#000}.btn.btn-black:hover{background-color:#262626}.btn.btn-black:active{background-color:#000;opacity:.5}.btn.border-default{color:#cfcfc4}.btn.border-default:active,.btn.border-default:hover{border-color:#d6d6cd}.btn.border-default:active{border-color:#b4b4a3;opacity:.5}.btn.btn-default{color:#fff;border:1px solid #b4b4a3;background-color:#cfcfc4}.btn.btn-default:active,.btn.btn-default:hover{border-color:#b4b4a3}.btn.btn-default:hover{background-color:#d6d6cd}.btn.btn-default:active{background-color:#b4b4a3;opacity:.5}.btn.border-primary{color:#779ecb}.btn.border-primary:active,.btn.border-primary:hover{border-color:#8badd3}.btn.border-primary:active{border-color:#5485be;opacity:.5}.btn.btn-primary{color:#fff;border:1px solid #5485be;background-color:#779ecb}.btn.btn-primary:active,.btn.btn-primary:hover{border-color:#5485be}.btn.btn-primary:hover{background-color:#8badd3}.btn.btn-primary:active{background-color:#5485be;opacity:.5}.btn.border-success{color:#7d7}.btn.border-success:active,.btn.border-success:hover{border-color:#8be28b}.btn.border-success:active{border-color:#4ed34e;opacity:.5}.btn.btn-success{color:#fff;border:1px solid #4ed34e;background-color:#7d7}.btn.btn-success:active,.btn.btn-success:hover{border-color:#4ed34e}.btn.btn-success:hover{background-color:#8be28b}.btn.btn-success:active{background-color:#4ed34e;opacity:.5}.btn.border-info{color:#9bddff}.btn.border-info:active,.btn.border-info:hover{border-color:#aae2ff}.btn.border-info:active{border-color:#5dc8ff;opacity:.5}.btn.btn-info{color:#fff;border:1px solid #5dc8ff;background-color:#9bddff}.btn.btn-info:active,.btn.btn-info:hover{border-color:#5dc8ff}.btn.btn-info:hover{background-color:#aae2ff}.btn.btn-info:active{background-color:#5dc8ff;opacity:.5}.btn.border-warning{color:#ffb347}.btn.border-warning:active,.btn.border-warning:hover{border-color:#ffbe63}.btn.border-warning:active{border-color:#ff9f16;opacity:.5}.btn.btn-warning{color:#fff;border:1px solid #ff9f16;background-color:#ffb347}.btn.btn-warning:active,.btn.btn-warning:hover{border-color:#ff9f16}.btn.btn-warning:hover{background-color:#ffbe63}.btn.btn-warning:active{background-color:#ff9f16;opacity:.5}.btn.border-danger{color:#ff6961}.btn.border-danger:active,.btn.border-danger:hover{border-color:#ff7f79}.btn.border-danger:active{border-color:#ff372c;opacity:.5}.btn.btn-danger{color:#fff;border:1px solid #ff372c;background-color:#ff6961}.btn.btn-danger:active,.btn.btn-danger:hover{border-color:#ff372c}.btn.btn-danger:hover{background-color:#ff7f79}.btn.btn-danger:active{background-color:#ff372c;opacity:.5}.grid{width:100%}.grid:after{clear:both;visibility:hidden;display:block;font-size:0;content:\' \';height:0}.grid>*>*{word-wrap:break-word}.grid>div{float:left;box-sizing:border-box;min-height:1px}.grid>.col-0-12{display:none}.grid>.col-1-12{width:8.333333333333332%;margin-left:0;margin-right:0}.grid>.col-2-12{width:16.666666666666664%;margin-left:0;margin-right:0}.grid>.col-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-4-12{width:33.33333333333333%;margin-left:0;margin-right:0}.grid>.col-5-12{width:41.66666666666667%;margin-left:0;margin-right:0}.grid>.col-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-7-12{width:58.333333333333336%;margin-left:0;margin-right:0}.grid>.col-8-12{width:66.66666666666666%;margin-left:0;margin-right:0}.grid>.col-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-10-12{width:83.33333333333334%;margin-left:0;margin-right:0}.grid>.col-11-12{width:91.66666666666666%;margin-left:0;margin-right:0}.grid>.col-12-12{width:100%;margin-left:0;margin-right:0}@media screen and (min-width:16em){.grid>.col-xs-0-12{display:none}.grid>.col-xs-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-xs-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-xs-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-xs-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-xs-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-xs-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-xs-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-xs-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-xs-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-xs-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-xs-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-xs-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:32em){.grid>.col-sm-0-12{display:none}.grid>.col-sm-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-sm-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-sm-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-sm-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-sm-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-sm-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-sm-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-sm-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-sm-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-sm-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-sm-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-sm-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:48em){.grid>.col-md-0-12{display:none}.grid>.col-md-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-md-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-md-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-md-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-md-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-md-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-md-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-md-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-md-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-md-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-md-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-md-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:64em){.grid>.col-lg-0-12{display:none}.grid>.col-lg-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-lg-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-lg-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-lg-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-lg-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-lg-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-lg-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-lg-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-lg-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-lg-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-lg-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-lg-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:80em){.grid>.col-xl-0-12{display:none}.grid>.col-xl-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-xl-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-xl-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-xl-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-xl-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-xl-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-xl-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-xl-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-xl-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-xl-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-xl-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-xl-12-12{width:100%;margin-left:0;margin-right:0}}body{margin:0}.text-white,.text-white>*{color:#fff!important}.background-white{background-color:#fff!important}.border-white{border-color:#fff!important}.text-black,.text-black>*{color:#000!important}.background-black{background-color:#000!important}.border-black{border-color:#000!important}.text-default,.text-default>*{color:#cfcfc4!important}.background-default{background-color:#cfcfc4!important}.border-default{border-color:#cfcfc4!important}.text-primary,.text-primary>*{color:#779ecb!important}.background-primary{background-color:#779ecb!important}.border-primary{border-color:#779ecb!important}.text-success,.text-success>*{color:#7d7!important}.background-success{background-color:#7d7!important}.border-success{border-color:#7d7!important}.text-info,.text-info>*{color:#9bddff!important}.background-info{background-color:#9bddff!important}.border-info{border-color:#9bddff!important}.text-warning,.text-warning>*{color:#ffb347!important}.background-warning{background-color:#ffb347!important}.border-warning{border-color:#ffb347!important}.text-danger,.text-danger>*{color:#ff6961!important}.background-danger{background-color:#ff6961!important}.border-danger{border-color:#ff6961!important}.responsive{width:100%;height:auto}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.list{list-style:none;margin:0;padding:0}.list>.list-item{clear:both;min-height:30px;height:auto;line-height:30px;overflow:auto;padding:10px;border:1px solid #cfcfc4;border-bottom:0 solid transparent}.list>.list-item>.badge{float:right;line-height:20px}.list>.list-item.list-item-white{color:#000;border-color:#fff;background-color:#fff}.list>.list-item.list-item-white *{color:#000}.list>.list-item.list-item-black{color:#fff;border-color:#333;background-color:#000}.list>.list-item.list-item-black *{color:#fff}.list>.list-item.list-item-default{color:#fff;border-color:#d9d9d0;background-color:#cfcfc4}.list>.list-item.list-item-default *{color:#fff}.list>.list-item.list-item-primary{color:#fff;border-color:#92b1d5;background-color:#779ecb}.list>.list-item.list-item-primary *{color:#fff}.list>.list-item.list-item-success{color:#fff;border-color:#92e492;background-color:#7d7}.list>.list-item.list-item-success *{color:#fff}.list>.list-item.list-item-info{color:#fff;border-color:#afe4ff;background-color:#9bddff}.list>.list-item.list-item-info *{color:#fff}.list>.list-item.list-item-warning{color:#fff;border-color:#ffc26c;background-color:#ffb347}.list>.list-item.list-item-warning *{color:#fff}.list>.list-item.list-item-danger{color:#fff;border-color:#ff8781;background-color:#ff6961}.list>.list-item.list-item-danger *{color:#fff}.list>.list-item:first-child{border-radius:5px 5px 0 0}.list>.list-item:last-child{border-bottom:1px solid #cfcfc4;border-radius:0 0 5px 5px}.list>.list-item:only-child{border-radius:5px}.list>.list-item>.list-item-right{float:right}.list>.list-item>.list-item-left{float:left}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(50,50,50,.6);z-index:99999;opacity:0;pointer-events:none}.modal.active,.modal.modal-active,.modal:target{opacity:1;pointer-events:auto}.modal.modal-absolute{position:absolute;z-index:1}.modal.modal-absolute>div{position:absolute}.modal>div{min-width:400px;max-width:90%;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:5px 20px 13px 20px;border-radius:0;background:#fff}.modal.modal-white>div{border-left:10px solid #fff;color:#000}.modal.modal-black>div{border-left:10px solid #000;color:#000}.modal.modal-default>div{border-left:10px solid #cfcfc4;color:#000}.modal.modal-primary>div{border-left:10px solid #779ecb;color:#000}.modal.modal-success>div{border-left:10px solid #7d7;color:#000}.modal.modal-info>div{border-left:10px solid #9bddff;color:#000}.modal.modal-warning>div{border-left:10px solid #ffb347;color:#000}.modal.modal-danger>div{border-left:10px solid #ff6961;color:#000}.modal-close{line-height:25px;position:absolute;right:5px;text-align:center;top:5px;width:24px;text-decoration:none}.navbar *{font-weight:300;display:inline-block;text-decoration:none}.navbar{position:relative;min-height:50px;width:100%;display:table}.navbar>.container{border-width:0 0 1px 0}.navbar.navbar-fixed{position:fixed;z-index:100000}.navbar.navbar-center>.container{border-width:0 1px 1px 1px;margin:0 auto;width:50%;position:relative}.navbar.navbar-center>.container>.navbar-content{margin:0}.navbar.border-white>.container{border-style:solid}.navbar.navbar-white>.container{background-color:#fff}.navbar.navbar-white>.container>.nav a.active,.navbar.navbar-white>.container>.nav a:hover,.navbar.navbar-white>.container>.nav a:target{background-color:#fff}.navbar.border-black>.container{border-style:solid}.navbar.navbar-black>.container{background-color:#000}.navbar.navbar-black>.container>.nav a.active,.navbar.navbar-black>.container>.nav a:hover,.navbar.navbar-black>.container>.nav a:target{background-color:#a6a6a6}.navbar.border-default>.container{border-style:solid}.navbar.navbar-default>.container{background-color:#cfcfc4}.navbar.navbar-default>.container>.nav a.active,.navbar.navbar-default>.container>.nav a:hover,.navbar.navbar-default>.container>.nav a:target{background-color:#eeeeea}.navbar.border-primary>.container{border-style:solid}.navbar.navbar-primary>.container{background-color:#779ecb}.navbar.navbar-primary>.container>.nav a.active,.navbar.navbar-primary>.container>.nav a:hover,.navbar.navbar-primary>.container>.nav a:target{background-color:#cfdded}.navbar.border-success>.container{border-style:solid}.navbar.navbar-success>.container{background-color:#7d7}.navbar.navbar-success>.container>.nav a.active,.navbar.navbar-success>.container>.nav a:hover,.navbar.navbar-success>.container>.nav a:target{background-color:#cff3cf}.navbar.border-info>.container{border-style:solid}.navbar.navbar-info>.container{background-color:#9bddff}.navbar.navbar-info>.container>.nav a.active,.navbar.navbar-info>.container>.nav a:hover,.navbar.navbar-info>.container>.nav a:target{background-color:#dcf3ff}.navbar.border-warning>.container{border-style:solid}.navbar.navbar-warning>.container{background-color:#ffb347}.navbar.navbar-warning>.container>.nav a.active,.navbar.navbar-warning>.container>.nav a:hover,.navbar.navbar-warning>.container>.nav a:target{background-color:#ffe4bf}.navbar.border-danger>.container{border-style:solid}.navbar.navbar-danger>.container{background-color:#ff6961}.navbar.navbar-danger>.container>.nav a.active,.navbar.navbar-danger>.container>.nav a:hover,.navbar.navbar-danger>.container>.nav a:target{background-color:#ffcbc8}.navbar>.container{clear:both;margin:0 auto 0 auto;display:table;width:100%;height:60px}.navbar>.container>.nav{float:right;margin:0 20px 0 0;display:inline-block}.navbar>.container>.nav>select{background-color:transparent}.navbar>.container>.nav>a{padding:20px 10px 22px 10px}.navbar>.container>.nav>a:active,.navbar>.container>.nav>a:hover,.navbar>.container>.nav>a:target{opacity:.6}.navbar .navbar-title{float:left;display:inline-block;margin:20px 0 0 20px}.panel{border:1px solid #cfcfc4;border-radius:5px}.panel.panel-white{border:1px solid #fff}.panel.panel-white .panel-footer,.panel.panel-white>.panel-heading{background-color:#fff;color:#000}.panel.panel-black{border:1px solid #000}.panel.panel-black .panel-footer,.panel.panel-black>.panel-heading{background-color:#000;color:#fff}.panel.panel-default{border:1px solid #cfcfc4}.panel.panel-default .panel-footer,.panel.panel-default>.panel-heading{background-color:#cfcfc4;color:#fff}.panel.panel-primary{border:1px solid #779ecb}.panel.panel-primary .panel-footer,.panel.panel-primary>.panel-heading{background-color:#779ecb;color:#fff}.panel.panel-success{border:1px solid #7d7}.panel.panel-success .panel-footer,.panel.panel-success>.panel-heading{background-color:#7d7;color:#fff}.panel.panel-info{border:1px solid #9bddff}.panel.panel-info .panel-footer,.panel.panel-info>.panel-heading{background-color:#9bddff;color:#fff}.panel.panel-warning{border:1px solid #ffb347}.panel.panel-warning .panel-footer,.panel.panel-warning>.panel-heading{background-color:#ffb347;color:#fff}.panel.panel-danger{border:1px solid #ff6961}.panel.panel-danger .panel-footer,.panel.panel-danger>.panel-heading{background-color:#ff6961;color:#fff}.panel .panel-footer,.panel .panel-heading,.panel>.panel-body{padding:15px}.panel>.panel-heading{top:0}.panel>.panel-footer{bottom:0}.tooltip,[data-tooltip]{position:relative;cursor:pointer}.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{position:absolute;visibility:hidden;opacity:0;-webkit-transition:opacity .2s ease-in-out,visibility .2s ease-in-out,-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24),-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);pointer-events:none}.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{visibility:visible;opacity:1}.tooltip:before,[data-tooltip]:before{z-index:1001;border:6px solid transparent;background:0 0;content:""}.tooltip:after,[data-tooltip]:after{z-index:1000;padding:8px;min-width:160px;width:auto;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-tooltip);font-size:14px;line-height:1.2}.tooltip-top:after,.tooltip-top:before,.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{bottom:100%;left:50%}.tooltip-top:before,.tooltip:before,[data-tooltip]:before{margin-left:-6px;margin-bottom:-12px;border-top-color:#000;border-top-color:rgba(51,51,51,.9)}.tooltip-top:after,.tooltip:after,[data-tooltip]:after{margin-left:-80px}.tooltip-top:focus:after,.tooltip-top:focus:before,.tooltip-top:hover:after,.tooltip-top:hover:before,.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{-webkit-transform:translateY(-12px);transform:translateY(-12px)}.tooltip-left:after,.tooltip-left:before{right:100%;bottom:50%;left:auto}.tooltip-left:before{margin-left:0;margin-right:-12px;margin-bottom:0;border-top-color:transparent;border-left-color:#000;border-left-color:rgba(51,51,51,.9)}.tooltip-left:focus:after,.tooltip-left:focus:before,.tooltip-left:hover:after,.tooltip-left:hover:before{-webkit-transform:translateX(-12px);transform:translateX(-12px)}.tooltip-bottom:after,.tooltip-bottom:before{top:100%;bottom:auto;left:50%}.tooltip-bottom:before{margin-top:-12px;margin-bottom:0;border-top-color:transparent;border-bottom-color:#000;border-bottom-color:rgba(51,51,51,.9)}.tooltip-bottom:focus:after,.tooltip-bottom:focus:before,.tooltip-bottom:hover:after,.tooltip-bottom:hover:before{-webkit-transform:translateY(12px);transform:translateY(12px)}.tooltip-right:after,.tooltip-right:before{bottom:50%;left:100%}.tooltip-right:before{margin-bottom:0;margin-left:-12px;border-top-color:transparent;border-right-color:#000;border-right-color:rgba(51,51,51,.9)}.tooltip-right:focus:after,.tooltip-right:focus:before,.tooltip-right:hover:after,.tooltip-right:hover:before{-webkit-transform:translateX(12px);transform:translateX(12px)}.tooltip-left:before,.tooltip-right:before{top:3px}.tooltip-left:after,.tooltip-right:after{margin-left:0;margin-bottom:-16px}[class^=tooltip-]{border-bottom:1px dotted #000;text-decoration:none}.progress{width:100%;border:1px solid #cfcfc4;text-align:center}.progress .progress-fill{font-size:16px;height:15px;padding:10px 0 10px 0;background-color:#779ecb}.progress .progress-fill.progress-fill-white{background-color:#fff;color:#000}.progress .progress-fill.progress-fill-white:hover{background-color:#fff}.progress .progress-fill.progress-fill-black{background-color:#000;color:#fff}.progress .progress-fill.progress-fill-black:hover{background-color:#404040}.progress .progress-fill.progress-fill-default{background-color:#cfcfc4;color:#fff}.progress .progress-fill.progress-fill-default:hover{background-color:#dbdbd3}.progress .progress-fill.progress-fill-primary{background-color:#779ecb;color:#fff}.progress .progress-fill.progress-fill-primary:hover{background-color:#99b6d8}.progress .progress-fill.progress-fill-success{background-color:#7d7;color:#fff}.progress .progress-fill.progress-fill-success:hover{background-color:#99e599}.progress .progress-fill.progress-fill-info{background-color:#9bddff;color:#fff}.progress .progress-fill.progress-fill-info:hover{background-color:#b4e6ff}.progress .progress-fill.progress-fill-warning{background-color:#ffb347;color:#fff}.progress .progress-fill.progress-fill-warning:hover{background-color:#ffc675}.progress .progress-fill.progress-fill-danger{background-color:#ff6961;color:#fff}.progress .progress-fill.progress-fill-danger:hover{background-color:#ff8f89}.spinner-overlay{position:relative;top:0;left:0;width:100%;height:100%;z-index:3}.spinner-wrapper{text-align:center;position:relative;top:calc(50% - 50px)}.spinner-wrapper>.spinner{min-height:30px;min-width:30px}.spinner-message{box-sizing:border-box;width:100%;margin-top:30px;text-align:center;font-weight:400;z-index:100;outline:0}.spinner{display:inline-block;min-height:20px;height:auto;min-width:20px;width:auto;background-color:transparent;animation:rotation .7s infinite linear;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:3px solid transparent;border-top:3px solid #2180c0;border-radius:100%}.spinner.spinner-absolute{position:absolute}.spinner.spinner-white{border-top:3px solid #fff}.spinner.spinner-white.spinner-done{border-color:#fff;border-width:3px 3px 3px 3px}.spinner.spinner-white.done:after{border-width:0 3px 0 3px}.spinner.spinner-black{border-top:3px solid #000}.spinner.spinner-black.spinner-done{border-color:#000;border-width:3px 3px 3px 3px}.spinner.spinner-black.done:after{border-width:0 3px 0 3px}.spinner.spinner-default{border-top:3px solid #cfcfc4}.spinner.spinner-default.spinner-done{border-color:#cfcfc4;border-width:3px 3px 3px 3px}.spinner.spinner-default.done:after{border-width:0 3px 0 3px}.spinner.spinner-primary{border-top:3px solid #779ecb}.spinner.spinner-primary.spinner-done{border-color:#779ecb;border-width:3px 3px 3px 3px}.spinner.spinner-primary.done:after{border-width:0 3px 0 3px}.spinner.spinner-success{border-top:3px solid #7d7}.spinner.spinner-success.spinner-done{border-color:#7d7;border-width:3px 3px 3px 3px}.spinner.spinner-success.done:after{border-width:0 3px 0 3px}.spinner.spinner-info{border-top:3px solid #9bddff}.spinner.spinner-info.spinner-done{border-color:#9bddff;border-width:3px 3px 3px 3px}.spinner.spinner-info.done:after{border-width:0 3px 0 3px}.spinner.spinner-warning{border-top:3px solid #ffb347}.spinner.spinner-warning.spinner-done{border-color:#ffb347;border-width:3px 3px 3px 3px}.spinner.spinner-warning.done:after{border-width:0 3px 0 3px}.spinner.spinner-danger{border-top:3px solid #ff6961}.spinner.spinner-danger.spinner-done{border-color:#ff6961;border-width:3px 3px 3px 3px}.spinner.spinner-danger.done:after{border-width:0 3px 0 3px}@-moz-keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}@-webkit-keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}@-o-keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}.table{text-align:center;word-break:break-all}.table.table-white{border:none}.table.table-white thead>tr>th{color:#fff}.table.table-white td,.table.table-white th{color:#fff;border-bottom:.1rem solid #fff}.table.table-black{border:none}.table.table-black thead>tr>th{color:#000}.table.table-black td,.table.table-black th{color:#0d0d0d;border-bottom:.1rem solid #000}.table.table-default{border:none}.table.table-default thead>tr>th{color:#cfcfc4}.table.table-default td,.table.table-default th{color:#d1d1c7;border-bottom:.1rem solid #cfcfc4}.table.table-primary{border:none}.table.table-primary thead>tr>th{color:#779ecb}.table.table-primary td,.table.table-primary th{color:#7ea3ce;border-bottom:.1rem solid #779ecb}.table.table-success{border:none}.table.table-success thead>tr>th{color:#7d7}.table.table-success td,.table.table-success th{color:#7edf7e;border-bottom:.1rem solid #7d7}.table.table-info{border:none}.table.table-info thead>tr>th{color:#9bddff}.table.table-info td,.table.table-info th{color:#a0dfff;border-bottom:.1rem solid #9bddff}.table.table-warning{border:none}.table.table-warning thead>tr>th{color:#ffb347}.table.table-warning td,.table.table-warning th{color:#ffb750;border-bottom:.1rem solid #ffb347}.table.table-danger{border:none}.table.table-danger thead>tr>th{color:#ff6961}.table.table-danger td,.table.table-danger th{color:#ff7069;border-bottom:.1rem solid #ff6961}.table thead>tr>th{font-weight:700}.table tbody tr:last-child>th{border-bottom:0}.table tfoot td:empty{padding:0}.table td,.table th{border-bottom:.1rem solid #e1e1e1;text-align:left;padding:10px}.table.responsive{border-collapse:collapse;border-spacing:0;display:table}',''])},function(e,t){e.exports=function(e){var t='undefined'!=typeof window&&window.location;if(!t){throw new Error('fixUrls requires window.location')}if(!e||'string'!=typeof e){return e}var n=t.protocol+'//'+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,'/'),o=e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)){return e}var a;if(0===o.indexOf('//')){a=o}else if(0===o.indexOf('/')){a=n+o}else{a=r+o.replace(/^\.\//,'')}return'url('+JSON.stringify(a)+')'});return o}},function(e,t,n){var r=n(19);if('string'==typeof r)r=[[e.i,r,'']];var o,a={hmr:!0};a.transform=o;var i=n(7)(r,a);if(r.locals)e.exports=r.locals;if(!1){if(!r.locals){e.hot.accept('!!../../../css-loader/index.js!./landing.css',function(){var t=require('!!../../../css-loader/index.js!./landing.css');if('string'==typeof t)t=[[e.id,t,'']];i(t)})}e.hot.dispose(function(){i()})}},function(e,t,n){t=e.exports=n(6)(void 0);t.push([e.i,'html, body {\n margin: 0;\n padding: 0;\n font-family: \'Open Sans\', Helvetica, sans-serif;\n width: 100%;\n height: 100%;\n}\n#root {\n height: 100%;\n width: 100%;\n}\n.wrapper {\n min-height: 100%;\n margin-bottom: -50px;\n}\n.footer,\n.push {\n height: 50px;\n}\n\n.footer {\n padding-top: 25px;\n width: 100%;\n}\n',''])},function(e,n,o){'use strict';var T=o(8),$=o(9);o(5);var p=o(2);function i(t){for(var n=arguments.length-1,r='Minified React error #'+t+'; visit http://facebook.github.io/react/docs/error-decoder.html?invariant='+t,o=0;oO.length&&O.push(e)}function _(t,n,r,o){var e=typeof t;if('undefined'==e||'boolean'==e)t=null;if(null===t||'string'==e||'number'==e||'object'==e&&t.$$typeof===M)return r(o,t,''===n?'.'+L(t,0):n),1;var s=0;n=''===n?'.':n+':';if(Array.isArray(t))for(var l=0;l=s.hasBooleanValue+s.hasNumericValue+s.hasOverloadedBooleanValue?void 0:o('50',e);i.hasOwnProperty(e)&&(s.attributeName=i[e]);a.hasOwnProperty(e)&&(s.attributeNamespace=a[e]);t.hasOwnProperty(e)&&(s.mutationMethod=t[e]);Un.properties[e]=s}}},Un={ID_ATTRIBUTE_NAME:'data-reactid',ROOT_ATTRIBUTE_NAME:'data-reactroot',ATTRIBUTE_NAME_START_CHAR:':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',ATTRIBUTE_NAME_CHAR:':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',properties:{},shouldSetAttribute:function(e,t){if(Un.isReservedProp(e)||!('o'!==e[0]&&'O'!==e[0]||'n'!==e[1]&&'N'!==e[1]))return!1;if(null===t)return!0;switch(typeof t){case'boolean':return Un.shouldAttributeAcceptBooleanValue(e);case'undefined':case'number':case'string':case'object':return!0;default:return!1;}},getPropertyInfo:function(e){return Un.properties.hasOwnProperty(e)?Un.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(Un.isReservedProp(e))return!0;var t=Un.getPropertyInfo(e);if(t)return t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue;e=e.toLowerCase().slice(0,5);return'data-'===e||'aria-'===e},isReservedProp:function(e){return Hn.hasOwnProperty(e)},injection:Vn},zn=Un,A={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},E={ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11},F=A.HostComponent,Gn=A.HostText,qn=E.ELEMENT_NODE,Kn=E.COMMENT_NODE,Yn=zn.ID_ATTRIBUTE_NAME,Xn={hasCachedChildNodes:1},Qn=Math.random().toString(36).slice(2),Jn='__reactInternalInstance$'+Qn,Zn='__reactEventHandlers$'+Qn;function m(e){for(var t;t=e._renderedComponent;)e=t;return e}function a(e,t){e=m(e);e._hostNode=t;t[Jn]=e}function d(t,n){if(!(t._flags&Xn.hasCachedChildNodes)){var r=t._renderedChildren;n=n.firstChild;var i;a:for(i in r)if(r.hasOwnProperty(i)){var s=r[i],e=m(s)._domID;if(0!==e){for(;null!==n;n=n.nextSibling){var l=n,d=e;if(l.nodeType===qn&&l.getAttribute(Yn)===''+d||l.nodeType===Kn&&l.nodeValue===' react-text: '+d+' '||l.nodeType===Kn&&l.nodeValue===' react-empty: '+d+' '){a(s,n);continue a}}o('32',e)}}t._flags|=Xn.hasCachedChildNodes}}function c(e){if(e[Jn])return e[Jn];for(var t=[];!e[Jn];)if(t.push(e),e.parentNode)e=e.parentNode;else return null;var n=e[Jn];if(n.tag===F||n.tag===Gn)return n;for(;e&&(n=e[Jn]);e=t.pop()){var r=n;t.length&&d(n,e)}return r}var er={getClosestInstanceFromNode:c,getInstanceFromNode:function(e){var t=e[Jn];if(t)return t.tag===F||t.tag===Gn?t:t._hostNode===e?t:null;t=c(e);return null!=t&&t._hostNode===e?t:null},getNodeFromInstance:function(e){if(e.tag===F||e.tag===Gn)return e.stateNode;void 0===e._hostNode?o('33'):void 0;if(e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:o('34'),e=e._hostParent;for(;t.length;e=t.pop())d(e,e._hostNode);return e._hostNode},precacheChildNodes:d,precacheNode:a,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[Jn],e._hostNode=null)},precacheFiberNode:function(e,t){t[Jn]=e},getFiberCurrentPropsFromNode:function(e){return e[Zn]||null},updateFiberProps:function(e,t){e[Zn]=t}},tr={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},nr={ReactCurrentOwner:Ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner};function y(e){if('function'==typeof e.getName)return e.getName();if('number'==typeof e.tag){e=e.type;if('string'==typeof e)return e;if('function'==typeof e)return e.displayName||e.name}return null}var rr={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},J=A.HostComponent,or=A.HostRoot,ar=A.HostPortal,ir=A.HostText,sr=rr.NoEffect,lr=rr.Placement;function v(e){var t=e;if(e.alternate)for(;t['return'];)t=t['return'];else{if((t.effectTag&lr)!==sr)return 1;for(;t['return'];)if(t=t['return'],(t.effectTag&lr)!==sr)return 1}return t.tag===or?2:3}function f(e){2!==v(e)?o('188'):void 0}function g(t){var n=t.alternate;if(!n)return n=v(t),3===n?o('188'):void 0,1===n?null:t;for(var r=t,a=n;;){var i=r['return'],s=i?i.alternate:null;if(!i||!s)break;if(i.child===s.child){for(var l=i.child;l;){if(l===r)return f(i),t;if(l===a)return f(i),n;l=l.sibling}o('188')}if(r['return']!==a['return'])r=i,a=s;else{l=!1;for(var d=i.child;d;){if(d===r){l=!0;r=i;a=s;break}if(d===a){l=!0;a=i;r=s;break}d=d.sibling}if(!l){for(d=s.child;d;){if(d===r){l=!0;r=s;a=i;break}if(d===a){l=!0;a=s;r=i;break}d=d.sibling}l?void 0:o('189')}}r.alternate!==a?o('190'):void 0}r.tag!==or?o('188'):void 0;return r.stateNode.current===r?t:n}var dr={isFiberMounted:function(e){return 2===v(e)},isMounted:function(e){return(e=tr.get(e))?2===v(e):!1},findCurrentFiberUsingSlowPath:g,findCurrentHostFiber:function(e){e=g(e);if(!e)return null;for(var t=e;;){if(t.tag===J||t.tag===ir)return t;if(t.child)t.child['return']=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t['return']||t['return']===e)return null;t=t['return']}t.sibling['return']=t['return'];t=t.sibling}}return null},findCurrentHostFiberWithNoPortals:function(e){e=g(e);if(!e)return null;for(var t=e;;){if(t.tag===J||t.tag===ir)return t;if(t.child&&t.tag!==ar)t.child['return']=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t['return']||t['return']===e)return null;t=t['return']}t.sibling['return']=t['return'];t=t.sibling}}return null}},cr={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){'function'!=typeof e.invokeGuardedCallback?o('197'):void 0;x=e.invokeGuardedCallback}},invokeGuardedCallback:function(t,n,r,o,a,e,i,s,l){x.apply(cr,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,n,r,o,a,e,i,s,l){cr.invokeGuardedCallback.apply(this,arguments);if(cr.hasCaughtError()){var d=cr.clearCaughtError();cr._hasRethrowError||(cr._hasRethrowError=!0,cr._rethrowError=d)}},rethrowCaughtError:function(){return h.apply(cr,arguments)},hasCaughtError:function(){return cr._hasCaughtError},clearCaughtError:function(){if(cr._hasCaughtError){var e=cr._caughtError;cr._caughtError=null;cr._hasCaughtError=!1;return e}o('198')}};function x(t,n,r,o,a,e,i,s,l){cr._hasCaughtError=!1;cr._caughtError=null;var d=Array.prototype.slice.call(arguments,3);try{n.apply(r,d)}catch(e){cr._caughtError=e,cr._hasCaughtError=!0}}function h(){if(cr._hasRethrowError){var e=cr._rethrowError;cr._rethrowError=null;cr._hasRethrowError=!1;throw e}}var K=cr,ur;function k(e,t,n,r){t=e.type||'unknown-event';e.currentTarget=pr.getNodeFromInstance(r);K.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e);e.currentTarget=null}var pr={isEndish:function(e){return'topMouseUp'===e||'topTouchEnd'===e||'topTouchCancel'===e},isMoveish:function(e){return'topMouseMove'===e||'topTouchMove'===e},isStartish:function(e){return'topMouseDown'===e||'topTouchStart'===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?o('103'):void 0;e.currentTarget=t?pr.getNodeFromInstance(n):null;t=t?t(e):null;e.currentTarget=null;e._dispatchListeners=null;e._dispatchInstances=null;return t},executeDispatchesInOrder:function(t,n){var r=t._dispatchListeners,o=t._dispatchInstances;if(Array.isArray(r))for(var a=0;awr.length&&wr.push(e)}}}},Ar=Cr;function B(e,t){null==t?o('30'):void 0;if(null==e)return t;if(Array.isArray(e)){if(Array.isArray(t))return e.push.apply(e,t),e;e.push(t);return e}return Array.isArray(t)?[e].concat(t):[e,t]}function $(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var Er=null;function P(e,t){e&&(gr.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))}function O(e){return P(e,!0)}function j(e){return P(e,!1)}function I(e,t,n){switch(e){case'onClick':case'onClickCapture':case'onDoubleClick':case'onDoubleClickCapture':case'onMouseDown':case'onMouseDownCapture':case'onMouseMove':case'onMouseMoveCapture':case'onMouseUp':case'onMouseUpCapture':return!(!n.disabled||'button'!==t&&'input'!==t&&'select'!==t&&'textarea'!==t);default:return!1;}}var Fr={injection:{injectEventPluginOrder:Wn.injectEventPluginOrder,injectEventPluginsByName:Wn.injectEventPluginsByName},getListener:function(e,t){if('number'==typeof e.tag){var n=e.stateNode;if(!n)return null;var r=gr.getFiberCurrentPropsFromNode(n);if(!r)return null;n=r[t];if(I(t,e.type,r))return null}else{r=e._currentElement;if('string'==typeof r||'number'==typeof r||!e._rootNodeID)return null;e=r.props;n=e[t];if(I(t,r.type,e))return null}n&&'function'!=typeof n?o('231',t,typeof n):void 0;return n},extractEvents:function(t,n,r,o){for(var a,e=Wn.plugins,i=0,s;ir||o.hasOverloadedBooleanValue&&!1===r?zr.deleteValueForProperty(t,n):o.mustUseProperty?t[o.propertyName]=r:(n=o.attributeName,(a=o.attributeNamespace)?t.setAttributeNS(a,n,''+r):o.hasBooleanValue||o.hasOverloadedBooleanValue&&!0===r?t.setAttribute(n,''):t.setAttribute(n,''+r))}else zr.setValueForAttribute(t,n,zn.shouldSetAttribute(n,r)?r:null)},setValueForAttribute:function(e,t,n){q(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,''+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=zn.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=n.hasBooleanValue?!1:'':e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Gr=zr,qr=nr.ReactDebugCurrentFrame;function _e(){return null}var Kr={current:null,phase:null,resetCurrentFiber:function(){qr.getCurrentStack=null;Kr.current=null;Kr.phase=null},setCurrentFiber:function(e,t){qr.getCurrentStack=_e;Kr.current=e;Kr.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:_e},Yr=Kr,Xr={getHostProps:function(e,t){var n=t.value,r=t.checked;return l({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:'checkbox'===t.type||'radio'===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Gr.setValueForProperty(e,'checked',n||!1);n=t.value;if(null!=n){if(0===n&&''===e.value)e.value='0';else if('number'===t.type){if(t=parseFloat(e.value)||0,n!=t||n==t&&e.value!=n)e.value=''+n}else e.value!==''+n&&(e.value=''+n);}else null==t.value&&null!=t.defaultValue&&e.defaultValue!==''+t.defaultValue&&(e.defaultValue=''+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e,t){switch(t.type){case'submit':case'reset':break;case'color':case'date':case'datetime':case'datetime-local':case'month':case'time':case'week':e.value='';e.value=e.defaultValue;break;default:e.value=e.value;}t=e.name;''!==t&&(e.name='');e.defaultChecked=!e.defaultChecked;e.defaultChecked=!e.defaultChecked;''!==t&&(e.name=t)},restoreControlledState:function(t,n){Xr.updateWrapper(t,n);var r=n.name;if('radio'===n.type&&null!=r){for(n=t;n.parentNode;)n=n.parentNode;r=n.querySelectorAll('input[name='+JSON.stringify(''+r)+'][type="radio"]');for(n=0;n=t.length?void 0:o('93'),t=t[0]),n=''+t),null==n&&(n=''),r=n);e._wrapperState={initialValue:''+r}},updateWrapper:function(e,t){var n=t.value;null!=n&&(n=''+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n));null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){eo.updateWrapper(e,t)}},to=eo,no=l({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 nt(e,t){t&&(no[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?o('137',e,''):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?o('60'):void 0,'object'==typeof t.dangerouslySetInnerHTML&&'__html'in t.dangerouslySetInnerHTML?void 0:o('61')),null!=t.style&&'object'!=typeof t.style?o('62',''):void 0)}function rt(e){var t=e.type;return(e=e.nodeName)&&'input'===e.toLowerCase()&&('checkbox'===t||'radio'===t)}function ot(e){var t=rt(e)?'checked':'value',n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=''+e[t];if(!e.hasOwnProperty(t)&&'function'==typeof n.get&&'function'==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=''+e;n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=''+e},stopTracking:function(){e._valueTracker=null;delete e[t]}}}var ro={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=ot(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r='';e&&(r=rt(e)?e.checked?'true':'false':e.value);e=r;return e!==n?(t.setValue(e),!0):!1},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}};function at(e,t){if(-1===e.indexOf('-'))return'string'==typeof t.is;switch(e){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;}}var oo=On.Namespaces,ao,io=function(t){return'undefined'!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(n,r,o,a){MSApp.execUnsafeLocalFunction(function(){return t(n,r,o,a)})}:t}(function(e,t){if(e.namespaceURI!==oo.svg||'innerHTML'in e)e.innerHTML=t;else for(ao=ao||document.createElement('div'),ao.innerHTML=''+t+'',t=ao.firstChild;t.firstChild;)e.appendChild(t.firstChild)}),so=/["'&<>]/,lo=E.TEXT_NODE;function it(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===lo){n.nodeValue=t;return}}e.textContent=t}Tn.canUseDOM&&('textContent'in document.documentElement||(it=function(t,n){if(t.nodeType===lo)t.nodeValue=n;else{if('boolean'==typeof n||'number'==typeof n)n=''+n;else{n=''+n;var r=so.exec(n);if(r){var o='',a,e=0;for(a=r.index;a\x3C/script>',e=e.removeChild(e.firstChild)):e='string'==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e);return e},createTextNode:function(e,t){return(t.nodeType===po?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(t,n,r,o){var a=at(n,r);switch(n){case'iframe':case'object':Mr.trapBubbledEvent('topLoad','load',t);var e=r;break;case'video':case'audio':for(e in yo)yo.hasOwnProperty(e)&&Mr.trapBubbledEvent(e,yo[e],t);e=r;break;case'source':Mr.trapBubbledEvent('topError','error',t);e=r;break;case'img':case'image':Mr.trapBubbledEvent('topError','error',t);Mr.trapBubbledEvent('topLoad','load',t);e=r;break;case'form':Mr.trapBubbledEvent('topReset','reset',t);Mr.trapBubbledEvent('topSubmit','submit',t);e=r;break;case'details':Mr.trapBubbledEvent('topToggle','toggle',t);e=r;break;case'input':Qr.initWrapperState(t,r);e=Qr.getHostProps(t,r);Mr.trapBubbledEvent('topInvalid','invalid',t);st(o,'onChange');break;case'option':Jr.validateProps(t,r);e=Jr.getHostProps(t,r);break;case'select':Zr.initWrapperState(t,r);e=Zr.getHostProps(t,r);Mr.trapBubbledEvent('topInvalid','invalid',t);st(o,'onChange');break;case'textarea':to.initWrapperState(t,r);e=to.getHostProps(t,r);Mr.trapBubbledEvent('topInvalid','invalid',t);st(o,'onChange');break;default:e=r;}nt(n,e,uo);var i=e,s;for(s in i)if(i.hasOwnProperty(s)){var l=i[s];'style'===s?Wr.setValueForStyles(t,l):'dangerouslySetInnerHTML'===s?(l=l?l.__html:void 0,null!=l&&io(t,l)):'children'===s?'string'==typeof l?co(t,l):'number'==typeof l&&co(t,''+l):'suppressContentEditableWarning'!=s&&(ho.hasOwnProperty(s)?null!=l&&st(o,s):a?Gr.setValueForAttribute(t,s,l):null!=l&&Gr.setValueForProperty(t,s,l))}switch(n){case'input':ro.track(t);Qr.postMountWrapper(t,r);break;case'textarea':ro.track(t);to.postMountWrapper(t,r);break;case'option':Jr.postMountWrapper(t,r);break;case'select':Zr.postMountWrapper(t,r);break;default:'function'==typeof e.onClick&&(t.onclick=Dn);}},diffProperties:function(t,n,r,o,a){var e=null;switch(n){case'input':r=Qr.getHostProps(t,r);o=Qr.getHostProps(t,o);e=[];break;case'option':r=Jr.getHostProps(t,r);o=Jr.getHostProps(t,o);e=[];break;case'select':r=Zr.getHostProps(t,r);o=Zr.getHostProps(t,o);e=[];break;case'textarea':r=to.getHostProps(t,r);o=to.getHostProps(t,o);e=[];break;default:'function'!=typeof r.onClick&&'function'==typeof o.onClick&&(t.onclick=Dn);}nt(n,o,uo);var i,s;t=null;for(i in r)if(!o.hasOwnProperty(i)&&r.hasOwnProperty(i)&&null!=r[i])if('style'===i)for(s in n=r[i],n)n.hasOwnProperty(s)&&(t||(t={}),t[s]='');else'dangerouslySetInnerHTML'!=i&&'children'!=i&&'suppressContentEditableWarning'!=i&&(ho.hasOwnProperty(i)?e||(e=[]):(e=e||[]).push(i,null));for(i in o){var l=o[i];n=null!=r?r[i]:void 0;if(o.hasOwnProperty(i)&&l!==n&&(null!=l||null!=n))if('style'===i){if(n){for(s in n)!n.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(t||(t={}),t[s]='');for(s in l)l.hasOwnProperty(s)&&n[s]!==l[s]&&(t||(t={}),t[s]=l[s])}else t||(e||(e=[]),e.push(i,t)),t=l;}else'dangerouslySetInnerHTML'===i?(l=l?l.__html:void 0,n=n?n.__html:void 0,null!=l&&n!==l&&(e=e||[]).push(i,''+l)):'children'===i?n===l||'string'!=typeof l&&'number'!=typeof l||(e=e||[]).push(i,''+l):'suppressContentEditableWarning'!=i&&(ho.hasOwnProperty(i)?(null!=l&&st(a,i),e||n===l||(e=[])):(e=e||[]).push(i,l))}t&&(e=e||[]).push('style',t);return e},updateProperties:function(t,n,r,o,a){at(r,o);o=at(r,a);for(var e=0;et&&(t=8),Fo=t=lt(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=lt(e.priorityLevel,t);)n=e,e=e.next;return n}function pt(t,n){var r=t.alternate,o=t.updateQueue;null===o&&(o=t.updateQueue=dt());null!==r?(t=r.updateQueue,null===t&&(t=r.updateQueue=dt())):t=null;No=o;jo=t!==o?t:null;var a=No;r=jo;var e=ut(a,n),i=null!==e?e.next:a.first;if(null===r)return ct(a,n,e,i),null;o=ut(r,n);t=null!==o?o.next:r.first;ct(a,n,e,i);if(i===t&&null!==i||e===o&&null!==e)return null===o&&(r.first=n),null===t&&(r.last=null),null;n={priorityLevel:n.priorityLevel,partialState:n.partialState,callback:n.callback,isReplace:n.isReplace,isForced:n.isForced,isTopLevelUnmount:n.isTopLevelUnmount,next:null};ct(r,n,o,t);return n}function gt(e,t,n,r){e=e.partialState;return'function'==typeof e?e.call(t,n,r):e}var Io={addUpdate:function(e,t,n,r){pt(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null})},addReplaceUpdate:function(e,t,n,r){pt(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null})},addForceUpdate:function(e,t,n){pt(e,{priorityLevel:n,partialState:null,callback:t,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null})},getUpdatePriority:function(e){var t=e.updateQueue;return null===t||e.tag!==Po&&e.tag!==Oo?$o:null!==t.first?t.first.priorityLevel:$o},addTopLevelUpdate:function(t,n,r,o){var a=null===n.element;n={priorityLevel:o,partialState:n,callback:r,isReplace:!1,isForced:!1,isTopLevelUnmount:a,next:null};t=pt(t,n);a&&(a=No,r=jo,null!==a&&null!==n.next&&(n.next=null,a.last=n),null!==r&&null!==t&&null!==t.next&&(t.next=null,r.last=n))},beginUpdateQueue:function(t,n,r,o,a,e,i){null!==t&&t.updateQueue===r&&(r=n.updateQueue={first:r.first,last:r.last,callbackList:null,hasForceUpdate:!1});t=r.callbackList;for(var s=r.hasForceUpdate,d=!0,c=r.first;null!==c&&0>=lt(c.priorityLevel,i);){r.first=c.next;null===r.first&&(r.last=null);var u;if(c.isReplace)a=gt(c,o,a,e),d=!0;else if(u=gt(c,o,a,e))a=d?l({},a,u):l(a,u),d=!1;c.isForced&&(s=!0);null===c.callback||c.isTopLevelUnmount&&null!==c.next||(t=null!==t?t:[],t.push(c.callback),n.effectTag|=Q);c=c.next}r.callbackList=t;r.hasForceUpdate=s;null!==r.first||null!==t||s||(n.updateQueue=null);return a},commitCallbacks:function(e,t,n){e=t.callbackList;if(null!==e)for(t.callbackList=null,t=0;tHo||(e.current=Wo[Ho],Wo[Ho]=null,Ho--)},push:function(e,t){Ho++;Wo[Ho]=e.current;e.current=t},reset:function(){for(;-1e)?e:t}},de=ae.createHostRootFiber,ee=A.IndeterminateComponent,fe=A.FunctionalComponent,ge=A.ClassComponent,he=A.HostComponent,ie,ga;'function'==typeof Symbol&&Symbol['for']?(ie=Symbol['for']('react.coroutine'),ga=Symbol['for']('react.yield')):(ie=60104,ga=60105);var fa={createCoroutine:function(e,t,n){var r=3h?(r=t,t=null):r=t.sibling;var p=y(o,t,d[h],u);if(null===p){null===t&&(t=r);break}n&&t&&null===p.alternate&&i(o,t);a=e(p,a,h);null==f?g=p:f.sibling=p;f=p;t=r}if(h===d.length)return s(o,t),g;if(null===t){for(;hb?(k=t,t=null):k=t.sibling;var v=y(d,t,p.value,g);if(null===v){t||(t=k);break}n&&t&&null===v.alternate&&i(d,t);a=e(v,a,b);null==h?f=v:h.sibling=v;h=v;t=k}if(p.done)return s(d,t),f;if(null===t){for(;!p.done;b++,p=u.next())p=c(d,p.value,g),null!==p&&(a=e(p,a,b),null===h?f=p:h.sibling=p,h=p);return f}for(t=l(d,t);!p.done;b++,p=u.next())if(p=x(t,d,b,p.value,g),null!==p){if(n&&null!==p.alternate)t['delete'](null===p.key?b:p.key);a=e(p,a,b);null===h?f=p:h.sibling=p;h=p}n&&t.forEach(function(e){return i(d,e)});return f}return function(t,n,r,a){var l='object'==typeof r&&null!==r;if(l)switch(r.$$typeof){case Je:a:{var c=r.key;for(l=n;null!==l;){if(l.key===c){if(l.type===r.type){s(t,l.sibling);n=u(l,a);n.ref=Le(l,r);n.pendingProps=r.props;n['return']=t;t=n;break a}else{s(t,l);break}}else i(t,l);l=l.sibling}a=re(r,t.internalContextTag,a);a.ref=Le(n,r);a['return']=t;t=a}return d(t);case ne:a:{for(l=r.key;null!==n;){if(n.key===l){if(n.tag===Ce){s(t,n.sibling);n=u(n,a);n.pendingProps=r;n['return']=t;t=n;break a}else{s(t,n);break}}else i(t,n);n=n.sibling}r=ue(r,t.internalContextTag,a);r['return']=t;t=r}return d(t);case oe:a:{if(null!==n)if(n.tag===De){s(t,n.sibling);n=u(n,a);n.type=r.value;n['return']=t;t=n;break a}else s(t,n);n=ve(r,t.internalContextTag,a);n.type=r.value;n['return']=t;t=n}return d(t);case pe:a:{for(l=r.key;null!==n;){if(n.key===l){if(n.tag===Be&&n.stateNode.containerInfo===r.containerInfo&&n.stateNode.implementation===r.implementation){s(t,n.sibling);n=u(n,a);n.pendingProps=r.children||[];n['return']=t;t=n;break a}else{s(t,n);break}}else i(t,n);n=n.sibling}r=we(r,t.internalContextTag,a);r['return']=t;t=r}return d(t);}if('string'==typeof r||'number'==typeof r)return r=''+r,null!==n&&n.tag===Ae?(s(t,n.sibling),n=u(n,a),n.pendingProps=r,n['return']=t,t=n):(s(t,n),r=te(r,t.internalContextTag,a),r['return']=t,t=r),d(t);if(xe(r))return k(t,n,r,a);if(yt(r))return w(t,n,r,a);l&&Me(t,r);if('undefined'==typeof r)switch(t.tag){case ze:case ye:r=t.type,o('152',r.displayName||r.name||'Component');}return s(t,n)}}var Ke=Ne(!0,!0),ma=Ne(!1,!0),ba=Ne(!1,!1),ya={reconcileChildFibers:Ke,reconcileChildFibersInPlace:ma,mountChildFibersInPlace:ba,cloneChildFibers:function(e,t){null!==e&&t.child!==e.child?o('153'):void 0;if(null!==t.child){e=t.child;var n=qe(e,e.pendingWorkPriority);n.pendingProps=e.pendingProps;t.child=n;for(n['return']=t;null!==e.sibling;)e=e.sibling,n=n.sibling=qe(e,e.pendingWorkPriority),n.pendingProps=e.pendingProps,n['return']=t;n.sibling=null}}},Se=rr.Update,Te=R.AsyncUpdates,Ue=Zo.cacheContext,Ve=Zo.getMaskedContext,We=Zo.getUnmaskedContext,Xe=Zo.isContextConsumer,Ye=Io.addUpdate,Ze=Io.addReplaceUpdate,$e=Io.addForceUpdate,va=Io.beginUpdateQueue,ka=Zo.hasContextChanged,xa=dr.isMounted;function Oe(t,n,r,i){function s(e,t){t.updater=l;e.stateNode=t;tr.set(t,e)}var l={isMounted:xa,enqueueSetState:function(r,o,a){r=tr.get(r);var e=n(r,!1);Ye(r,o,void 0===a?null:a,e);t(r,e)},enqueueReplaceState:function(r,o,a){r=tr.get(r);var e=n(r,!1);Ze(r,o,void 0===a?null:a,e);t(r,e)},enqueueForceUpdate:function(r,o){r=tr.get(r);var a=n(r,!1);$e(r,void 0===o?null:o,a);t(r,a)}};return{adoptClassInstance:s,constructClassInstance:function(e,t){var n=e.type,r=We(e),o=Xe(e),a=o?Ve(e,r):Bn;t=new n(t,a);s(e,t);o&&Ue(e,r,a);return t},mountClassInstance:function(t,n){var r=t.alternate,a=t.stateNode,i=a.state||null,e=t.pendingProps;e?void 0:o('158');var s=We(t);a.props=e;a.state=i;a.refs=Bn;a.context=Ve(t,s);Do.enableAsyncSubtreeAPI&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent&&(t.internalContextTag|=Te);'function'==typeof a.componentWillMount&&(s=a.state,a.componentWillMount(),s!==a.state&&l.enqueueReplaceState(a,a.state,null),s=t.updateQueue,null!==s&&(a.state=va(r,t,s,a,i,e,n)));'function'==typeof a.componentDidMount&&(t.effectTag|=Se)},updateClassInstance:function(t,n,a){var e=n.stateNode;e.props=n.memoizedProps;e.state=n.memoizedState;var s=n.memoizedProps,d=n.pendingProps;d||(d=s,null==d?o('159'):void 0);var c=e.context,u=We(n);u=Ve(n,u);'function'!=typeof e.componentWillReceiveProps||s===d&&c===u||(c=e.state,e.componentWillReceiveProps(d,u),e.state!==c&&l.enqueueReplaceState(e,e.state,null));c=n.memoizedState;a=null!==n.updateQueue?va(t,n,n.updateQueue,e,c,d,a):c;if(!(s!==d||c!==a||ka()||null!==n.updateQueue&&n.updateQueue.hasForceUpdate))return'function'!=typeof e.componentDidUpdate||s===t.memoizedProps&&c===t.memoizedState||(n.effectTag|=Se),!1;var p=d;if(null===s||null!==n.updateQueue&&n.updateQueue.hasForceUpdate)p=!0;else{var g=n.stateNode,f=n.type;p='function'==typeof g.shouldComponentUpdate?g.shouldComponentUpdate(p,a,u):f.prototype&&f.prototype.isPureReactComponent?!$n(s,p)||!$n(c,a):!0}p?('function'==typeof e.componentWillUpdate&&e.componentWillUpdate(d,a,u),'function'==typeof e.componentDidUpdate&&(n.effectTag|=Se)):('function'!=typeof e.componentDidUpdate||s===t.memoizedProps&&c===t.memoizedState||(n.effectTag|=Se),r(n,d),i(n,a));e.props=d;e.state=a;e.context=u;return p}}}var Aa=ya.mountChildFibersInPlace,Ea=ya.reconcileChildFibers,Fa=ya.reconcileChildFibersInPlace,Ca=ya.cloneChildFibers,Sa=Io.beginUpdateQueue,_a=Zo.getMaskedContext,La=Zo.getUnmaskedContext,Ta=Zo.hasContextChanged,Da=Zo.pushContextProvider,Ba=Zo.pushTopLevelContextObject,$a=Zo.invalidateContextProvider,Ra=A.IndeterminateComponent,Pa=A.FunctionalComponent,Ia=A.ClassComponent,Wa=A.HostRoot,Ha=A.HostComponent,Va=A.HostText,Ua=A.HostPortal,za=A.CoroutineComponent,Ga=A.CoroutineHandlerPhase,qa=A.YieldComponent,Ka=A.Fragment,Ya=Bo.NoWork,Xa=Bo.OffscreenPriority,Qa=rr.PerformedWork,Ja=rr.Placement,Za=rr.ContentReset,ti=rr.Err,ni=rr.Ref,ai=nr.ReactCurrentOwner;function vt(n,a,i,s,l){function u(t,n,r){e(t,n,r,n.pendingWorkPriority)}function e(e,t,n,r){t.child=null===e?Aa(t,t.child,n,r):e.child===t.child?Ea(t,t.child,n,r):Fa(t,t.child,n,r)}function f(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=ni)}function h(t,n,r,o){f(t,n);if(!r)return o&&$a(n,!1),p(t,n);r=n.stateNode;ai.current=n;var a=r.render();n.effectTag|=Qa;u(t,n,a);n.memoizedState=r.state;n.memoizedProps=r.props;o&&$a(n,!0);return n.child}function k(e){var t=e.stateNode;t.pendingContext?Ba(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ba(e,t.context,!1);d(e,t.containerInfo)}function p(e,t){Ca(e,t);return t.child}function x(e,t){switch(t.tag){case Wa:k(t);break;case Ia:Da(t);break;case Ua:d(t,t.stateNode.containerInfo);}return null}var w=n.shouldSetTextContent,A=n.useSyncScheduling,E=n.shouldDeprioritizeSubtree,F=a.pushHostContext,d=a.pushHostContainer,C=i.enterHydrationState,S=i.resetHydrationState,r=i.tryToClaimNextHydratableInstance;n=Oe(s,l,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var m=n.adoptClassInstance,t=n.constructClassInstance,v=n.mountClassInstance,_=n.updateClassInstance;return{beginWork:function(n,a,i){if(a.pendingWorkPriority===Ya||a.pendingWorkPriority>i)return x(n,a);switch(a.tag){case Ra:null!==n?o('155'):void 0;var s=a.type,l=a.pendingProps,e=La(a);e=_a(a,e);s=s(l,e);a.effectTag|=Qa;'object'==typeof s&&null!==s&&'function'==typeof s.render?(a.tag=Ia,l=Da(a),m(a,s),v(a,i),a=h(n,a,!0,l)):(a.tag=Pa,u(n,a,s),a.memoizedProps=l,a=a.child);return a;case Pa:a:{l=a.type;i=a.pendingProps;s=a.memoizedProps;if(Ta())null===i&&(i=s);else if(null===i||s===i){a=p(n,a);break a}s=La(a);s=_a(a,s);l=l(i,s);a.effectTag|=Qa;u(n,a,l);a.memoizedProps=i;a=a.child}return a;case Ia:return l=Da(a),s=void 0,null===n?a.stateNode?o('153'):(t(a,a.pendingProps),v(a,i),s=!0):s=_(n,a,i),h(n,a,s,l);case Wa:return k(a),s=a.updateQueue,null!==s?(l=a.memoizedState,s=Sa(n,a,s,null,l,null,i),l===s?(S(),a=p(n,a)):(l=s.element,null!==n&&null!==n.child||!C(a)?(S(),u(n,a,l)):(a.effectTag|=Ja,a.child=Aa(a,a.child,l,i)),a.memoizedState=s,a=a.child)):(S(),a=p(n,a)),a;case Ha:F(a);null===n&&r(a);l=a.type;var c=a.memoizedProps;s=a.pendingProps;null===s&&(s=c,null===s?o('154'):void 0);e=null!==n?n.memoizedProps:null;Ta()||null!==s&&c!==s?(c=s.children,w(l,s)?c=null:e&&w(l,e)&&(a.effectTag|=Za),f(n,a),i!==Xa&&!A&&E(l,s)?(a.pendingWorkPriority=Xa,a=null):(u(n,a,c),a.memoizedProps=s,a=a.child)):a=p(n,a);return a;case Va:return null===n&&r(a),n=a.pendingProps,null===n&&(n=a.memoizedProps),a.memoizedProps=n,null;case Ga:a.tag=za;case za:i=a.pendingProps;if(Ta())null===i&&(i=n&&n.memoizedProps,null===i?o('154'):void 0);else if(null===i||a.memoizedProps===i)i=a.memoizedProps;l=i.children;s=a.pendingWorkPriority;a.stateNode=null===n?Aa(a,a.stateNode,l,s):n.child===a.child?Ea(a,a.stateNode,l,s):Fa(a,a.stateNode,l,s);a.memoizedProps=i;return a.stateNode;case qa:return null;case Ua:a:{d(a,a.stateNode.containerInfo);i=a.pendingWorkPriority;l=a.pendingProps;if(Ta())null===l&&(l=n&&n.memoizedProps,null==l?o('154'):void 0);else if(null===l||a.memoizedProps===l){a=p(n,a);break a}null===n?a.child=Fa(a,a.child,l,i):u(n,a,l);a.memoizedProps=l;a=a.child}return a;case Ka:a:{i=a.pendingProps;if(Ta())null===i&&(i=a.memoizedProps);else if(null===i||a.memoizedProps===i){a=p(n,a);break a}u(n,a,i);a.memoizedProps=i;a=a.child}return a;default:o('156');}},beginFailedWork:function(t,n,r){switch(n.tag){case Ia:Da(n);break;case Wa:k(n);break;default:o('157');}n.effectTag|=ti;null===t?n.child=null:n.child!==t.child&&(n.child=t.child);if(n.pendingWorkPriority===Ya||n.pendingWorkPriority>r)return x(t,n);n.firstEffect=null;n.lastEffect=null;e(t,n,null,r);n.tag===Ia&&(t=n.stateNode,n.memoizedProps=t.props,n.memoizedState=t.state);return n.child}}}var pi=ya.reconcileChildFibers,mi=Zo.popContextProvider,bi=Zo.popTopLevelContextObject,yi=A.IndeterminateComponent,vi=A.FunctionalComponent,Ci=A.ClassComponent,Ai=A.HostRoot,Ei=A.HostComponent,Fi=A.HostText,_i=A.HostPortal,Li=A.CoroutineComponent,Di=A.CoroutineHandlerPhase,Ni=A.YieldComponent,Wi=A.Fragment,Hi=rr.Placement,Vi=rr.Ref,Ui=rr.Update,zi=Bo.OffscreenPriority;function kt(t,n,r){var i=t.createInstance,s=t.createTextInstance,e=t.appendInitialChild,l=t.finalizeInitialChildren,d=t.prepareUpdate,u=n.getRootHostContainer,g=n.popHostContext,p=n.getHostContext,f=n.popHostContainer,h=r.prepareToHydrateHostInstance,m=r.prepareToHydrateHostTextInstance,y=r.popHydrationState;return{completeWork:function(n,a,b){var c=a.pendingProps;if(null===c)c=a.memoizedProps;else if(a.pendingWorkPriority!==zi||b===zi)a.pendingProps=null;switch(a.tag){case vi:return null;case Ci:return mi(a),null;case Ai:f(a);bi(a);c=a.stateNode;c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null);if(null===n||null===n.child)y(a),a.effectTag&=~Hi;return null;case Ei:g(a);b=u();var v=a.type;if(null!==n&&null!=a.stateNode){var k=n.memoizedProps,t=a.stateNode,x=p();c=d(t,v,k,c,b,x);if(a.updateQueue=c)a.effectTag|=Ui;n.ref!==a.ref&&(a.effectTag|=Vi)}else{if(!c)return null===a.stateNode?o('166'):void 0,null;n=p();if(y(a))h(a,b,n)&&(a.effectTag|=Ui);else{n=i(v,c,b,n,a);a:for(k=a.child;null!==k;){if(k.tag===Ei||k.tag===Fi)e(n,k.stateNode);else if(k.tag!==_i&&null!==k.child){k=k.child;continue}if(k===a)break a;for(;null===k.sibling;){if(null===k['return']||k['return']===a)break a;k=k['return']}k=k.sibling}l(n,v,c,b)&&(a.effectTag|=Ui);a.stateNode=n}null!==a.ref&&(a.effectTag|=Vi)}return null;case Fi:if(n&&null!=a.stateNode)n.memoizedProps!==c&&(a.effectTag|=Ui);else{if('string'!=typeof c)return null===a.stateNode?o('166'):void 0,null;n=u();b=p();y(a)?m(a)&&(a.effectTag|=Ui):a.stateNode=s(c,n,b,a)}return null;case Li:(c=a.memoizedProps)?void 0:o('165');a.tag=Di;b=[];a:for((v=a.stateNode)&&(v['return']=a);null!==v;){if(v.tag===Ei||v.tag===Fi||v.tag===_i)o('164');else if(v.tag===Ni)b.push(v.type);else if(null!==v.child){v.child['return']=v;v=v.child;continue}for(;null===v.sibling;){if(null===v['return']||v['return']===a)break a;v=v['return']}v.sibling['return']=v['return'];v=v.sibling}v=c.handler;c=v(c.props,b);a.child=pi(a,null!==n?n.child:null,c,a.pendingWorkPriority);return a.child;case Di:return a.tag=Li,null;case Ni:return null;case Wi:return null;case _i:return a.effectTag|=Ui,f(a),null;case yi:o('167');default:o('156');}}}}var Gi=null,qi=null;function xt(e){return function(t){try{return e(t)}catch(e){}}}var Yi={injectInternals:function(e){if('undefined'==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.supportsFiber)return!0;try{var n=t.inject(e);Gi=xt(function(e){return t.onCommitFiberRoot(n,e)});qi=xt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0},onCommitRoot:function(e){'function'==typeof Gi&&Gi(e)},onCommitUnmount:function(e){'function'==typeof qi&&qi(e)}},Xi=A.ClassComponent,Ji=A.HostRoot,es=A.HostComponent,ts=A.HostText,ns=A.HostPortal,rs=A.CoroutineComponent,os=Io.commitCallbacks,as=Yi.onCommitUnmount,is=rr.Placement,ss=rr.Update,ls=rr.Callback,ds=rr.ContentReset;function wt(t,n){function r(e){var t=e.ref;if(null!==t)try{t(null)}catch(r){n(e,r)}}function a(e){return e.tag===es||e.tag===Ji||e.tag===ns}function i(e){for(var t=e;;)if(s(t),null!==t.child&&t.tag!==ns)t.child['return']=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t['return']||t['return']===e)return;t=t['return']}t.sibling['return']=t['return'];t=t.sibling}}function e(e){for(var t=e,n=!1,r=void 0,a=void 0;;){if(!n){n=t['return'];a:for(;;){null===n?o('160'):void 0;switch(n.tag){case es:r=n.stateNode;a=!1;break a;case Ji:r=n.stateNode.containerInfo;a=!0;break a;case ns:r=n.stateNode.containerInfo;a=!0;break a;}n=n['return']}n=!0}if(t.tag===es||t.tag===ts)i(t),a?k(r,t.stateNode):v(r,t.stateNode);else if(t.tag===ns?r=t.stateNode.containerInfo:s(t),null!==t.child){t.child['return']=t;t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t['return']||t['return']===e)return;t=t['return'];t.tag===ns&&(n=!1)}t.sibling['return']=t['return'];t=t.sibling}}function s(o){'function'==typeof as&&as(o);switch(o.tag){case Xi:r(o);var t=o.stateNode;if('function'==typeof t.componentWillUnmount)try{t.props=o.memoizedProps,t.state=o.memoizedState,t.componentWillUnmount()}catch(e){n(o,e)}break;case es:r(o);break;case rs:i(o.stateNode);break;case ns:e(o);}}var l=t.commitMount,u=t.commitUpdate,d=t.resetTextContent,p=t.commitTextUpdate,g=t.appendChild,h=t.appendChildToContainer,m=t.insertBefore,y=t.insertInContainerBefore,v=t.removeChild,k=t.removeChildFromContainer,f=t.getPublicInstance;return{commitPlacement:function(t){a:{for(var n=t['return'];null!==n;){if(a(n)){var r=n;break a}n=n['return']}o('160');r=void 0}var i=n=void 0;switch(r.tag){case es:n=r.stateNode;i=!1;break;case Ji:n=r.stateNode.containerInfo;i=!0;break;case ns:n=r.stateNode.containerInfo;i=!0;break;default:o('161');}r.effectTag&ds&&(d(n),r.effectTag&=~ds);a:b:for(r=t;;){for(;null===r.sibling;){if(null===r['return']||a(r['return'])){r=null;break a}r=r['return']}r.sibling['return']=r['return'];for(r=r.sibling;r.tag!==es&&r.tag!==ts;){if(r.effectTag&is)continue b;if(null===r.child||r.tag===ns)continue b;else r.child['return']=r,r=r.child}if(!(r.effectTag&is)){r=r.stateNode;break a}}for(var e=t;;){if(e.tag===es||e.tag===ts)r?i?y(n,e.stateNode,r):m(n,e.stateNode,r):i?h(n,e.stateNode):g(n,e.stateNode);else if(e.tag!==ns&&null!==e.child){e.child['return']=e;e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e['return']||e['return']===t)return;e=e['return']}e.sibling['return']=e['return'];e=e.sibling}},commitDeletion:function(t){e(t);t['return']=null;t.child=null;t.alternate&&(t.alternate.child=null,t.alternate['return']=null)},commitWork:function(t,n){switch(n.tag){case Xi:break;case es:var r=n.stateNode;if(null!=r){var a=n.memoizedProps;t=null!==t?t.memoizedProps:a;var i=n.type,e=n.updateQueue;n.updateQueue=null;null!==e&&u(r,e,i,t,a,n)}break;case ts:null===n.stateNode?o('162'):void 0;r=n.memoizedProps;p(n.stateNode,null!==t?t.memoizedProps:r,r);break;case Ji:break;case ns:break;default:o('163');}},commitLifeCycles:function(e,t){switch(t.tag){case Xi:var n=t.stateNode;if(t.effectTag&ss)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var r=e.memoizedProps;e=e.memoizedState;n.props=t.memoizedProps;n.state=t.memoizedState;n.componentDidUpdate(r,e)}t.effectTag&ls&&null!==t.updateQueue&&os(t,t.updateQueue,n);break;case Ji:e=t.updateQueue;null!==e&&os(t,e,t.child&&t.child.stateNode);break;case es:n=t.stateNode;null===e&&t.effectTag&ss&&l(n,t.type,t.memoizedProps,t);break;case ts:break;case ns:break;default:o('163');}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case es:t(f(n));break;default:t(n);}}},commitDetachRef:function(e){e=e.ref;null!==e&&e(null)}}}var cs=Vo.createCursor,us=Vo.pop,ps=Vo.push,gs={};function Ct(t){function n(e){e===gs?o('174'):void 0;return e}var r=t.getChildHostContext,i=t.getRootHostContext,s=cs(gs),e=cs(gs),l=cs(gs);return{getHostContext:function(){return n(s.current)},getRootHostContainer:function(){return n(l.current)},popHostContainer:function(t){us(s,t);us(e,t);us(l,t)},popHostContext:function(t){e.current===t&&(us(s,t),us(e,t))},pushHostContainer:function(t,n){ps(l,n,t);n=i(n);ps(e,t,t);ps(s,n,t)},pushHostContext:function(t){var o=n(l.current),a=n(s.current);o=r(a,t.type,o);a!==o&&(ps(e,t,t),ps(s,o,t))},resetHostContainer:function(){s.current=gs;l.current=gs}}}var fs=A.HostComponent,hs=A.HostText,ms=A.HostRoot,bs=rr.Deletion,ys=rr.Placement,vs=ae.createFiberFromHostInstanceForDeletion;function At(t){function n(e,t){var n=vs();n.stateNode=t;n['return']=e;n.effectTag=bs;null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function r(t,n){switch(t.tag){case fs:return e(n,t.type,t.pendingProps);case hs:return l(n,t.pendingProps);default:return!1;}}function i(e){for(e=e['return'];null!==e&&e.tag!==fs&&e.tag!==ms;)e=e['return'];f=e}var s=t.shouldSetTextContent,e=t.canHydrateInstance,l=t.canHydrateTextInstance,u=t.getNextHydratableSibling,c=t.getFirstHydratableChild,d=t.hydrateInstance,p=t.hydrateTextInstance,a=t.didNotHydrateInstance,g=t.didNotFindHydratableInstance;t=t.didNotFindHydratableTextInstance;if(!(e&&l&&u&&c&&d&&p&&a&&g&&t))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){o('175')},prepareToHydrateHostTextInstance:function(){o('176')},popHydrationState:function(){return!1}};var f=null,h=null,m=!1;return{enterHydrationState:function(e){h=c(e.stateNode.containerInfo);f=e;return m=!0},resetHydrationState:function(){h=f=null;m=!1},tryToClaimNextHydratableInstance:function(e){if(m){var t=h;if(t){if(!r(e,t)){t=u(t);if(!t||!r(e,t)){e.effectTag|=ys;m=!1;f=e;return}n(f,h)}e.stateNode=t;f=e;h=c(t)}else e.effectTag|=ys,m=!1,f=e}},prepareToHydrateHostInstance:function(e,t,n){t=d(e.stateNode,e.type,e.memoizedProps,t,n,e);e.updateQueue=t;return null!==t?!0:!1},prepareToHydrateHostTextInstance:function(e){return p(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==f)return!1;if(!m)return i(e),m=!0,!1;var t=e.type;if(e.tag!==fs||'head'!==t&&'body'!==t&&!s(t,e.memoizedProps))for(t=h;t;)n(e,t),t=u(t);i(e);h=f?u(e.stateNode):null;return!0}}}var ks=Zo.popContextProvider,xs=Vo.reset,ws=nr.ReactCurrentOwner,Cs=ae.createWorkInProgress,As=ae.largerPriority,Es=Yi.onCommitRoot,Fs=Bo.NoWork,T=Bo.SynchronousPriority,Ss=Bo.TaskPriority,U=Bo.HighPriority,_s=Bo.LowPriority,Ls=Bo.OffscreenPriority,Ts=R.AsyncUpdates,Ds=rr.PerformedWork,Bs=rr.Placement,$s=rr.Update,Rs=rr.PlacementAndUpdate,Ms=rr.Deletion,Ps=rr.ContentReset,Os=rr.Callback,Ns=rr.Err,js=rr.Ref,Is=A.HostRoot,Ws=A.HostComponent,Hs=A.HostPortal,Vs=A.ClassComponent,Us=Io.getUpdatePriority,zs=Zo.resetContext;function Et(n){function i(){for(;null!==Q&&Q.current.pendingWorkPriority===Fs;){Q.isScheduled=!1;var e=Q.nextScheduledRoot;Q.nextScheduledRoot=null;if(Q===J)return J=Q=null,I=Fs,null;Q=e}e=Q;for(var t=null,n=Fs;null!==e;)e.current.pendingWorkPriority!==Fs&&(n===Fs||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(I=n,xs(),zs(),m(),X=Cs(t.current,n),t!==de&&(le=0,de=t)):(I=Fs,de=X=null)}function s(t){ae=!0;u=null;var r=t.stateNode;r.current===t?o('177'):void 0;I!==T&&I!==Ss||le++;ws.current=null;if(t.effectTag>Ds){if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var a=t.firstEffect}else a=t;}else a=t.firstEffect;V();for(z=a;null!==z;){var e=!1,s=void 0;try{for(;null!==z;){var l=z.effectTag;l&Ps&&n.resetTextContent(z.stateNode);if(l&js){var d=z.alternate;null!==d&&N(d)}switch(l&~(Os|Ns|Ps|js|Ds)){case Bs:_(z);z.effectTag&=~Bs;break;case Rs:_(z);z.effectTag&=~Bs;$(z.alternate,z);break;case $s:$(z.alternate,z);break;case Ms:ie=!0,L(z),ie=!1;}z=z.nextEffect}}catch(t){e=!0,s=t}e&&(null===z?o('178'):void 0,A(z,s),null!==z&&(z=z.nextEffect))}G();r.current=t;for(z=a;null!==z;){r=!1;a=void 0;try{for(;null!==z;){var p=z.effectTag;p&($s|Os)&&R(z.alternate,z);p&js&&M(z);if(p&Ns)switch(e=z,s=void 0,null!==te&&(s=te.get(e),te['delete'](e),null==s&&null!==e.alternate&&(e=e.alternate,s=te.get(e),te['delete'](e))),null==s?o('184'):void 0,e.tag){case Vs:e.stateNode.componentDidCatch(s.error,{componentStack:s.componentStack});break;case Is:null===re&&(re=s.error);break;default:o('157');}var g=z.nextEffect;z.nextEffect=null;z=g}}catch(e){r=!0,a=e}r&&(null===z?o('178'):void 0,A(z,a),null!==z&&(z=z.nextEffect))}ae=!1;'function'==typeof Es&&Es(t.stateNode);ne&&(ne.forEach(E),ne=null);i()}function l(t){for(;;){var n=S(t.alternate,t,I),r=t['return'],o=t.sibling,a=t;if(!(a.pendingWorkPriority!==Fs&&a.pendingWorkPriority>I)){for(var e=Us(a),i=a.child;null!==i;)e=As(e,i.pendingWorkPriority),i=i.sibling;a.pendingWorkPriority=e}if(null!==n)return n;null!==r&&(null===r.firstEffect&&(r.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=t.firstEffect),r.lastEffect=t.lastEffect),t.effectTag>Ds&&(null!==r.lastEffect?r.lastEffect.nextEffect=t:r.firstEffect=t,r.lastEffect=t));if(null!==o)return o;if(null!==r)t=r;else{u=t;break}}return null}function c(e){var t=v(e.alternate,e,I);null===t&&(t=l(e));ws.current=null;return t}function w(e){var t=F(e.alternate,e,I);null===t&&(t=l(e));ws.current=null;return t}function f(e){d(Ls,e)}function e(){if(null!==te&&0t)){K=I;a:do{if(I<=Ss)for(;null!==X&&!(X=c(X),null===X&&(null===u?o('179'):void 0,K=Ss,s(u),K=I,e(),I===Fs||I>t||I>Ss)););else if(null!==n)for(;null!==X&&!Y;)if(1t||ISs&&!Z&&(j(f),Z=!0);t=re;oe=Y=O=!1;de=P=te=re=null;le=0;if(null!==t)throw t}function A(t,n){var r=ws.current=null,o=!1,i=!1,s=null;if(t.tag===Is)r=t,x(t)&&(oe=!0);else for(var l=t['return'];null!==l&&null==r;){l.tag===Vs?'function'==typeof l.stateNode.componentDidCatch&&(o=!0,s=y(l),r=l,i=!0):l.tag===Is&&(r=l);if(x(l)){if(ie||null!=ne&&(ne.has(l)||null!==l.alternate&&ne.has(l.alternate)))return null;r=null;i=!1}l=l['return']}if(null!==r){null==P&&(P=new Set);P.add(r);var c='';l=t;do{a:switch(l.tag){case ee:case fe:case ge:case he:var u=l._debugOwner,h=l._debugSource,m=y(l),p=null;u&&(p=y(u));u=h;m='\n in '+(m||'Unknown')+(u?' (at '+u.fileName.replace(/^.*[\\\/]/,'')+':'+u.lineNumber+')':p?' (created by '+p+')':'');break a;default:m='';}c+=m;l=l['return']}while(l);l=c;t=y(t);null==te&&(te=new Map);n={componentName:t,componentStack:l,error:n,errorBoundary:o?r.stateNode:null,errorBoundaryFound:o,errorBoundaryName:s,willRetry:i};te.set(r,n);try{console.error(n.error)}catch(e){console.error(e)}ae?(null==ne&&(ne=new Set),ne.add(r)):E(r);return r}null===re&&(re=n);return null}function x(e){return null!==P&&(P.has(e)||null!==e.alternate&&P.has(e.alternate))}function a(e,t){return p(e,t,!1)}function p(e,t){le>se&&(oe=!0,o('185'));!O&&t<=I&&(X=null);for(var n=!0;null!==e&&n;){n=!1;if(e.pendingWorkPriority===Fs||e.pendingWorkPriority>t)n=!0,e.pendingWorkPriority=t;null!==e.alternate&&(e.alternate.pendingWorkPriority===Fs||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t);if(null===e['return'])if(e.tag===Is){var r=e.stateNode;t===Fs||r.isScheduled||(r.isScheduled=!0,J?J.nextScheduledRoot=r:Q=r,J=r);if(!O)switch(t){case T:W?d(T,null):d(Ss,null);break;case Ss:q?void 0:o('186');break;default:Z||(j(f),Z=!0);}}else break;e=e['return']}}function h(e,t){var n=K;n===Fs&&(n=!H||e.internalContextTag&Ts||t?_s:T);return n===T&&(O||q)?Ss:n}function E(e){p(e,Ss,!0)}var b=Ct(n),k=At(n),C=b.popHostContainer,r=b.popHostContext,m=b.resetHostContainer,t=vt(n,b,k,a,h),v=t.beginWork,F=t.beginFailedWork,S=kt(n,b,k).completeWork;b=wt(n,A);var _=b.commitPlacement,L=b.commitDeletion,$=b.commitWork,R=b.commitLifeCycles,M=b.commitAttachRef,N=b.commitDetachRef,j=n.scheduleDeferredCallback,H=n.useSyncScheduling,V=n.prepareForCommit,G=n.resetAfterCommit,K=Fs,O=!1,Y=!1,q=!1,W=!1,X=null,I=Fs,z=null,u=null,Q=null,J=null,Z=!1,te=null,P=null,ne=null,re=null,oe=!1,ae=!1,ie=!1,se=1E3,le=0,de=null;return{scheduleUpdate:a,getPriorityContext:h,batchedUpdates:function(e,t){var n=q;q=!0;try{return e(t)}finally{q=n,O||q||d(Ss,null)}},unbatchedUpdates:function(e){var t=W,n=q;W=q;q=!1;try{return e()}finally{q=n,W=t}},flushSync:function(e){var t=q,n=K;q=!0;K=T;try{return e()}finally{q=t,K=n,O?o('187'):void 0,d(Ss,null)}},deferredUpdates:function(e){var t=K;K=_s;try{return e()}finally{K=t}}}}function Ft(){o('196')}function St(e){if(!e)return Bn;e=tr.get(e);return'number'==typeof e.tag?Ft(e):e._processChildContext(e._context)}St._injectFiber=function(e){Ft=e};var Gs=Io.addTopLevelUpdate,qs=Zo.findCurrentUnmaskedContext,Ks=Zo.isContextProvider,Ys=Zo.processChildContext,Xs=A.HostComponent,Qs=dr.findCurrentHostFiber,Js=dr.findCurrentHostFiberWithNoPortals;St._injectFiber(function(e){var t=qs(e);return Ks(e)?Ys(e,t,!1):t});var Zs=E.TEXT_NODE;function _t(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lt(e,t){var n=_t(e);e=0;for(var r;n;){if(n.nodeType===Zs){r=e+n.textContent.length;if(e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=_t(n)}}var el=null;function Tt(){!el&&Tn.canUseDOM&&(el='textContent'in document.documentElement?'textContent':'innerText');return el}var tl={getOffsets:function(t){var n=window.getSelection&&window.getSelection();if(!n||0===n.rangeCount)return null;var r=n.anchorNode,o=n.anchorOffset,a=n.focusNode,e=n.focusOffset,i=n.getRangeAt(0);try{i.startContainer.nodeType,i.endContainer.nodeType}catch(e){return null}n=n.anchorNode===n.focusNode&&n.anchorOffset===n.focusOffset?0:i.toString().length;var s=i.cloneRange();s.selectNodeContents(t);s.setEnd(i.startContainer,i.startOffset);t=s.startContainer===s.endContainer&&s.startOffset===s.endOffset?0:s.toString().length;i=t+n;n=document.createRange();n.setStart(r,o);n.setEnd(a,e);r=n.collapsed;return{start:r?i:t,end:r?t:i}},setOffsets:function(t,n){if(window.getSelection){var r=window.getSelection(),o=t[Tt()].length,a=Sn(n.start,o);n=void 0===n.end?a:Sn(n.end,o);!r.extend&&a>n&&(o=n,n=a,a=o);o=Lt(t,a);t=Lt(t,n);if(o&&t){var e=document.createRange();e.setStart(o.node,o.offset);r.removeAllRanges();a>n?(r.addRange(e),r.extend(t.node,t.offset)):(e.setEnd(t.node,t.offset),r.addRange(e))}}}},nl=E.ELEMENT_NODE,rl={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&('input'===t&&'text'===e.type||'textarea'===t||'true'===e.contentEditable)},getSelectionInformation:function(){var e=Pn();return{focusedElem:e,selectionRange:rl.hasSelectionCapabilities(e)?rl.getSelection(e):null}},restoreSelection:function(e){var t=Pn(),n=e.focusedElem;e=e.selectionRange;if(t!==n&&Rn(document.documentElement,n)){rl.hasSelectionCapabilities(n)&&rl.setSelection(n,e);t=[];for(e=n;e=e.parentNode;)e.nodeType===nl&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});Mn(n);for(n=0;nthis.eventPool.length&&this.eventPool.push(e)}function Vt(e){e.eventPool=[];e.getPooled=Y;e.release=Ht}function Ut(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(Ut,{data:null});function zt(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(zt,{data:null});var fl=[9,13,27,32],ci=Tn.canUseDOM&&'CompositionEvent'in window,hl=null;Tn.canUseDOM&&'documentMode'in document&&(hl=document.documentMode);var ml;if(ml=Tn.canUseDOM&&'TextEvent'in window&&!hl){var fi=window.opera;ml=!('object'==typeof fi&&'function'==typeof fi.version&&12>=parseInt(fi.version(),10))}var bl=ml,hi=Tn.canUseDOM&&(!ci||hl&&8=hl),ii=' ',ji={beforeInput:{phasedRegistrationNames:{bubbled:'onBeforeInput',captured:'onBeforeInputCapture'},dependencies:['topCompositionEnd','topKeyPress','topTextInput','topPaste']},compositionEnd:{phasedRegistrationNames:{bubbled:'onCompositionEnd',captured:'onCompositionEndCapture'},dependencies:['topBlur','topCompositionEnd','topKeyDown','topKeyPress','topKeyUp','topMouseDown']},compositionStart:{phasedRegistrationNames:{bubbled:'onCompositionStart',captured:'onCompositionStartCapture'},dependencies:['topBlur','topCompositionStart','topKeyDown','topKeyPress','topKeyUp','topMouseDown']},compositionUpdate:{phasedRegistrationNames:{bubbled:'onCompositionUpdate',captured:'onCompositionUpdateCapture'},dependencies:['topBlur','topCompositionUpdate','topKeyDown','topKeyPress','topKeyUp','topMouseDown']}},yl=!1;function Gt(e,t){switch(e){case'topKeyUp':return-1!==fl.indexOf(t.keyCode);case'topKeyDown':return 229!==t.keyCode;case'topKeyPress':case'topMouseDown':case'topBlur':return!0;default:return!1;}}function qt(e){e=e.detail;return'object'==typeof e&&'data'in e?e.data:null}var li=!1;function Kt(e,t){switch(e){case'topCompositionEnd':return qt(t);case'topKeyPress':if(32!==t.which)return null;yl=!0;return ii;case'topTextInput':return e=t.data,e===ii&&yl?null:e;default:return null;}}function Yt(e,t){if(li)return'topCompositionEnd'===e||!ci&&Gt(e,t)?(e=ul.getData(),ul.reset(),li=!1,e):null;switch(e){case'topPaste':return null;case'topKeyPress':if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,Ri={select:{phasedRegistrationNames:{bubbled:'onSelect',captured:'onSelectCapture'},dependencies:['topBlur','topContextMenu','topFocus','topKeyDown','topKeyUp','topMouseDown','topMouseUp','topSelectionChange']}},El=null,Ti=null,Zi=null,$i=!1,Fl=Mr.isListeningToAllDependencies;function pn(e,t){if($i||null==El||El!==Pn())return null;var n=El;'selectionStart'in n&&ol.hasSelectionCapabilities(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0;return Zi&&$n(Zi,n)?null:(Zi=n,e=Wt.getPooled(Ri.select,Ti,e,t),e.type='select',e.target=El,dl.accumulateTwoPhaseDispatches(e),e)}var Sl={eventTypes:Ri,extractEvents:function(t,n,r,o){var a=o.window===o?o.document:o.nodeType===Al?o:o.ownerDocument;if(!a||!Fl('onSelect',a))return null;a=n?er.getNodeFromInstance(n):window;switch(t){case'topFocus':if(Xt(a)||'true'===a.contentEditable)El=a,Ti=n,Zi=null;break;case'topBlur':Zi=Ti=El=null;break;case'topMouseDown':$i=!0;break;case'topContextMenu':case'topMouseUp':return $i=!1,pn(r,o);case'topSelectionChange':if(Qi)break;case'topKeyDown':case'topKeyUp':return pn(r,o);}return null}};function gn(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(gn,{animationName:null,elapsedTime:null,pseudoElement:null});function fn(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(fn,{clipboardData:function(e){return'clipboardData'in e?e.clipboardData:window.clipboardData}});function hn(e,t,n,r){return Wt.call(this,e,t,n,r)}ln.augmentClass(hn,{relatedTarget:null});function mn(e){var t=e.keyCode;'charCode'in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t;return 32<=e||13===e?e:0}var _l={Esc:'Escape',Spacebar:' ',Left:'ArrowLeft',Up:'ArrowUp',Right:'ArrowRight',Down:'ArrowDown',Del:'Delete',Win:'OS',Menu:'ContextMenu',Apps:'ContextMenu',Scroll:'ScrollLock',MozPrintableKey:'Unidentified'},Ll={8:'Backspace',9:'Tab',12:'Clear',13:'Enter',16:'Shift',17:'Control',18:'Alt',19:'Pause',20:'CapsLock',27:'Escape',32:' ',33:'PageUp',34:'PageDown',35:'End',36:'Home',37:'ArrowLeft',38:'ArrowUp',39:'ArrowRight',40:'ArrowDown',45:'Insert',46:'Delete',112:'F1',113:'F2',114:'F3',115:'F4',116:'F5',117:'F6',118:'F7',119:'F8',120:'F9',121:'F10',122:'F11',123:'F12',144:'NumLock',145:'ScrollLock',224:'Meta'};function bn(e,t,n,r){return Wt.call(this,e,t,n,r)}ln.augmentClass(bn,{key:function(e){if(e.key){var t=_l[e.key]||e.key;if('Unidentified'!==t)return t}return'keypress'===e.type?(e=mn(e),13===e?'Enter':_n(e)):'keydown'===e.type||'keyup'===e.type?Ll[e.keyCode]||'Unidentified':''},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:cn,charCode:function(e){return'keypress'===e.type?mn(e):0},keyCode:function(e){return'keydown'===e.type||'keyup'===e.type?e.keyCode:0},which:function(e){return'keypress'===e.type?mn(e):'keydown'===e.type||'keyup'===e.type?e.keyCode:0}});function yn(e,t,n,r){return Wt.call(this,e,t,n,r)}un.augmentClass(yn,{dataTransfer:null});function vn(e,t,n,r){return Wt.call(this,e,t,n,r)}ln.augmentClass(vn,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:cn});function kn(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(kn,{propertyName:null,elapsedTime:null,pseudoElement:null});function xn(e,t,n,r){return Wt.call(this,e,t,n,r)}un.augmentClass(xn,{deltaX:function(e){return'deltaX'in e?e.deltaX:'wheelDeltaX'in e?-e.wheelDeltaX:0},deltaY:function(e){return'deltaY'in e?e.deltaY:'wheelDeltaY'in e?-e.wheelDeltaY:'wheelDelta'in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var Tl={},Dl={};['abort','animationEnd','animationIteration','animationStart','blur','cancel','canPlay','canPlayThrough','click','close','contextMenu','copy','cut','doubleClick','drag','dragEnd','dragEnter','dragExit','dragLeave','dragOver','dragStart','drop','durationChange','emptied','encrypted','ended','error','focus','input','invalid','keyDown','keyPress','keyUp','load','loadedData','loadedMetadata','loadStart','mouseDown','mouseMove','mouseOut','mouseOver','mouseUp','paste','pause','play','playing','progress','rateChange','reset','scroll','seeked','seeking','stalled','submit','suspend','timeUpdate','toggle','touchCancel','touchEnd','touchMove','touchStart','transitionEnd','volumeChange','waiting','wheel'].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n='on'+t;t='top'+t;n={phasedRegistrationNames:{bubbled:n,captured:n+'Capture'},dependencies:[t]};Tl[e]=n;Dl[t]=n});var Bl={eventTypes:Tl,extractEvents:function(t,n,r,a){var i=Dl[t];if(!i)return null;switch(t){case'topAbort':case'topCancel':case'topCanPlay':case'topCanPlayThrough':case'topClose':case'topDurationChange':case'topEmptied':case'topEncrypted':case'topEnded':case'topError':case'topInput':case'topInvalid':case'topLoad':case'topLoadedData':case'topLoadedMetadata':case'topLoadStart':case'topPause':case'topPlay':case'topPlaying':case'topProgress':case'topRateChange':case'topReset':case'topSeeked':case'topSeeking':case'topStalled':case'topSubmit':case'topSuspend':case'topTimeUpdate':case'topToggle':case'topVolumeChange':case'topWaiting':var s=Wt;break;case'topKeyPress':if(0===mn(r))return null;case'topKeyDown':case'topKeyUp':s=bn;break;case'topBlur':case'topFocus':s=hn;break;case'topClick':if(2===r.button)return null;case'topDoubleClick':case'topMouseDown':case'topMouseMove':case'topMouseUp':case'topMouseOut':case'topMouseOver':case'topContextMenu':s=un;break;case'topDrag':case'topDragEnd':case'topDragEnter':case'topDragExit':case'topDragLeave':case'topDragOver':case'topDragStart':case'topDrop':s=yn;break;case'topTouchCancel':case'topTouchEnd':case'topTouchMove':case'topTouchStart':s=vn;break;case'topAnimationEnd':case'topAnimationIteration':case'topAnimationStart':s=gn;break;case'topTransitionEnd':s=kn;break;case'topScroll':s=ln;break;case'topWheel':s=xn;break;case'topCopy':case'topCut':case'topPaste':s=fn;}s?void 0:o('86',t);t=s.getPooled(i,n,r,a);dl.accumulateTwoPhaseDispatches(t);return t}};Ar.setHandleTopLevel(Mr.handleTopLevel);Fr.injection.injectEventPluginOrder(['ResponderEventPlugin','SimpleEventPlugin','TapEventPlugin','EnterLeaveEventPlugin','ChangeEventPlugin','SelectEventPlugin','BeforeInputEventPlugin']);gr.injection.injectComponentTree(er);Fr.injection.injectEventPluginsByName({SimpleEventPlugin:Bl,EnterLeaveEventPlugin:Cl,ChangeEventPlugin:xl,SelectEventPlugin:Sl,BeforeInputEventPlugin:oi});var $l=zn.injection.MUST_USE_PROPERTY,Rl=zn.injection.HAS_BOOLEAN_VALUE,Ml=zn.injection.HAS_NUMERIC_VALUE,Pl=zn.injection.HAS_POSITIVE_NUMERIC_VALUE,Ol=zn.injection.HAS_STRING_BOOLEAN_VALUE,Nl={Properties:{allowFullScreen:Rl,allowTransparency:Ol,async:Rl,autoPlay:Rl,capture:Rl,checked:$l|Rl,cols:Pl,contentEditable:Ol,controls:Rl,default:Rl,defer:Rl,disabled:Rl,download:zn.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:Ol,formNoValidate:Rl,hidden:Rl,loop:Rl,multiple:$l|Rl,muted:$l|Rl,noValidate:Rl,open:Rl,playsInline:Rl,readOnly:Rl,required:Rl,reversed:Rl,rows:Pl,rowSpan:Ml,scoped:Rl,seamless:Rl,selected:$l|Rl,size:Pl,start:Ml,span:Pl,spellCheck:Ol,style:0,itemScope:Rl,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Ol},DOMAttributeNames:{acceptCharset:'accept-charset',className:'class',htmlFor:'for',httpEquiv:'http-equiv'},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute('value');'number'!==e.type||!1===e.hasAttribute('value')?e.setAttribute('value',''+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute('value',''+t)}}},jl=zn.injection.HAS_STRING_BOOLEAN_VALUE,Il={xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace'},Wl={Properties:{autoReverse:jl,externalResourcesRequired:jl,preserveAlpha:jl},DOMAttributeNames:{autoReverse:'autoReverse',externalResourcesRequired:'externalResourcesRequired',preserveAlpha:'preserveAlpha'},DOMAttributeNamespaces:{xlinkActuate:Il.xlink,xlinkArcrole:Il.xlink,xlinkHref:Il.xlink,xlinkRole:Il.xlink,xlinkShow:Il.xlink,xlinkTitle:Il.xlink,xlinkType:Il.xlink,xmlBase:Il.xml,xmlLang:Il.xml,xmlSpace:Il.xml}},Hl=/[\-\:]([a-z])/g;function wn(e){return e[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','x-height','xlink:actuate','xlink:arcrole','xlink:href','xlink:role','xlink:show','xlink:title','xlink:type','xml:base','xmlns:xlink','xml:lang','xml:space'].forEach(function(e){var t=e.replace(Hl,wn);Wl.Properties[t]=0;Wl.DOMAttributeNames[t]=e});zn.injection.injectDOMPropertyConfig(Nl);zn.injection.injectDOMPropertyConfig(Wl);var Vl=Yi.injectInternals,Ul=E.ELEMENT_NODE,zl=E.TEXT_NODE,Gl=E.COMMENT_NODE,ql=E.DOCUMENT_NODE,Kl=E.DOCUMENT_FRAGMENT_NODE,Yl=zn.ROOT_ATTRIBUTE_NAME,Xl=On.getChildNamespace,Ql=vo.createElement,Jl=vo.createTextNode,Zl=vo.setInitialProperties,ed=vo.diffProperties,td=vo.updateProperties,nd=vo.diffHydratedProperties,rd=vo.diffHydratedText,od=vo.warnForDeletedHydratableElement,ad=vo.warnForDeletedHydratableText,id=vo.warnForInsertedHydratedElement,sd=vo.warnForInsertedHydratedText,ld=er.precacheFiberNode,dd=er.updateFiberProps;br.injection.injectFiberControlledHostComponent(vo);$t._injectFiber(function(e){return pd.findHostInstance(e)});var cd=null,ud=null;function Cn(e){return!(!e||e.nodeType!==Ul&&e.nodeType!==ql&&e.nodeType!==Kl&&(e.nodeType!==Gl||' react-mount-point-unstable '!==e.nodeValue))}function An(e){e=e?e.nodeType===ql?e.documentElement:e.firstChild:null;return!(!e||e.nodeType!==Ul||!e.hasAttribute(Yl))}var pd=function(e){var t=e.getPublicInstance;e=Et(e);var n=e.scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=de();e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null};return t.stateNode=e},updateContainer:function(t,o,i,s){var l=o.current;i=St(i);null===o.context?o.context=i:o.pendingContext=i;o=s;s=r(l,Do.enableAsyncSubtreeAPI&&null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent);t={element:t};Gs(l,t,void 0===o?null:o,s);n(l,s)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){e=e.current;if(!e.child)return null;switch(e.child.tag){case Xs:return t(e.child.stateNode);default:return e.child.stateNode;}},findHostInstance:function(e){e=Qs(e);return null===e?null:e.stateNode},findHostInstanceWithNoPortals:function(e){e=Js(e);return null===e?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===ql)e=(e=e.documentElement)?e.namespaceURI:Xl(null,'');else{var t=e.nodeType===Gl?e.parentNode:e;e=t.namespaceURI||null;t=t.tagName;e=Xl(e,t)}return e},getChildHostContext:function(e,t){return Xl(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){cd=Mr.isEnabled();ud=ol.getSelectionInformation();Mr.setEnabled(!1)},resetAfterCommit:function(){ol.restoreSelection(ud);ud=null;Mr.setEnabled(cd);cd=null},createInstance:function(t,n,r,o,a){t=Ql(t,n,r,o);ld(a,t);dd(t,n);return t},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){Zl(e,t,n,r);a:{switch(t){case'button':case'input':case'select':case'textarea':e=!!n.autoFocus;break a;}e=!1}return e},prepareUpdate:function(t,n,r,o,a){return ed(t,n,r,o,a)},commitMount:function(e){e.focus()},commitUpdate:function(t,n,r,o,a){dd(t,a);td(t,n,r,o,a)},shouldSetTextContent:function(e,t){return'textarea'===e||'string'==typeof t.children||'number'==typeof t.children||'object'==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&'string'==typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=''},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){e=Jl(e,t);ld(r,e);return e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===Gl?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===Gl?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===Gl?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===Ul&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return''===t?!1:e.nodeType===zl},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==Ul&&e.nodeType!==zl;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==Ul&&e.nodeType!==zl;)e=e.nextSibling;return e},hydrateInstance:function(t,n,r,o,a,e){ld(e,t);dd(t,r);return nd(t,n,r,a,o)},hydrateTextInstance:function(e,t,n){ld(n,e);return rd(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?od(e,t):ad(e,t)},didNotFindHydratableInstance:function(e,t,n){id(e,t,n)},didNotFindHydratableTextInstance:function(e,t){sd(e,t)},scheduleDeferredCallback:To.rIC,useSyncScheduling:!0});vr.injection.injectFiberBatchedUpdates(pd.batchedUpdates);function En(t,n,r,a,i){Cn(r)?void 0:o('200');var e=r._reactRootContainer;if(e)pd.updateContainer(n,e,t,i);else{if(!a&&!An(r))for(a=void 0;a=r.lastChild;)r.removeChild(a);var s=pd.createContainer(r);e=r._reactRootContainer=s;pd.unbatchedUpdates(function(){pd.updateContainer(n,s,t,i)})}return pd.getPublicRootInstance(e)}function Fn(e,t){var n=2=arguments.length?0:arguments.length-1)){n+=arguments.length<=r+1?void 0:arguments[r+1]}}var o=n.split('\n'),a=null;o.forEach(function(e){var t=e.match(/^(\s+)\S+/);if(t){var n=t[1].length;if(!a){a=n}else{a=Math.min(a,n)}}});if(null!==a){n=o.map(function(e){return' '===e[0]?e.slice(a):e}).join('\n')}n=n.trim();return n.replace(/\\n/g,'\n')}if(!0){e.exports=r}},function(e,t,n){'use strict';var s=function(){function e(e,t){for(var n=0,r;n[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:d,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};p.item=l(p.item,'gm')(/bull/g,p.bullet)();p.list=l(p.list)(/bull/g,p.bullet)('hr','\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')('def','\\n+(?='+p.def.source+')')();p.blockquote=l(p.blockquote)('def',p.def)();p._tag='(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';p.html=l(p.html)('comment',//)('closed',/<(tag)[\s\S]+?<\/\1>/)('closing',/])*?>/)(/tag/g,p._tag)();p.paragraph=l(p.paragraph)('hr',p.hr)('heading',p.heading)('lheading',p.lheading)('blockquote',p.blockquote)('tag','<'+p._tag)('def',p.def)();p.normal=c({},p);p.gfm=c({},p.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});p.gfm.paragraph=l(p.paragraph)('(?!','(?!'+p.gfm.fences.source.replace('\\1','\\2')+'|'+p.list.source.replace('\\1','\\3')+'|')();p.tables=c({},p.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function t(e){this.tokens=[];this.tokens.links={};this.options=e||u.defaults;this.rules=p.normal;if(this.options.gfm){if(this.options.tables){this.rules=p.tables}else{this.rules=p.gfm}}}t.rules=p;t.lex=function(e,n){var r=new t(n);return r.lex(e)};t.prototype.lex=function(e){e=e.replace(/\r\n|\r/g,'\n').replace(/\t/g,' ').replace(/\u00a0/g,' ').replace(/\u2424/g,'\n');return this.token(e,!0)};t.prototype.token=function(e,t,n){var e=e.replace(/^ +$/gm,''),r,o,a,s,d,c,u,g,i;while(e){if(a=this.rules.newline.exec(e)){e=e.substring(a[0].length);if(1 ?/gm,'');this.token(a,t,!0);this.tokens.push({type:'blockquote_end'});continue}if(a=this.rules.list.exec(e)){e=e.substring(a[0].length);s=a[2];this.tokens.push({type:'list_start',ordered:1])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:d,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:d,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};g.link=l(g.link)('inside',g._inside)('href',g._href)();g.reflink=l(g.reflink)('inside',g._inside)();g.normal=c({},g);g.pedantic=c({},g.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});g.gfm=c({},g.normal,{escape:l(g.escape)('])','~|])')(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(g.text)(']|','~]|')('|','|https?://|')()});g.breaks=c({},g.gfm,{br:l(g.br)('{2,}','*')(),text:l(g.gfm.text)('{2,}','*')()});function n(e,t){this.options=t||u.defaults;this.links=e;this.rules=g.normal;this.renderer=this.options.renderer||new o;this.renderer.options=this.options;if(!this.links){throw new Error('Tokens array requires a `links` property.')}if(this.options.gfm){if(this.options.breaks){this.rules=g.breaks}else{this.rules=g.gfm}}else if(this.options.pedantic){this.rules=g.pedantic}}n.rules=g;n.output=function(e,t,r){var o=new n(t,r);return o.output(e)};n.prototype.output=function(e){var t='',n,r,o,a;while(e){if(a=this.rules.escape.exec(e)){e=e.substring(a[0].length);t+=a[1];continue}if(a=this.rules.autolink.exec(e)){e=e.substring(a[0].length);if('@'===a[2]){r=':'===a[1].charAt(6)?this.mangle(a[1].substring(7)):this.mangle(a[1]);o=this.mangle('mailto:')+r}else{r=i(a[1]);o=r}t+=this.renderer.link(o,null,r);continue}if(!this.inLink&&(a=this.rules.url.exec(e))){e=e.substring(a[0].length);r=i(a[1]);o=r;t+=this.renderer.link(o,null,r);continue}if(a=this.rules.tag.exec(e)){if(!this.inLink&&/^/i.test(a[0])){this.inLink=!1}e=e.substring(a[0].length);t+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):i(a[0]):a[0];continue}if(a=this.rules.link.exec(e)){e=e.substring(a[0].length);this.inLink=!0;t+=this.outputLink(a,{href:a[2],title:a[3]});this.inLink=!1;continue}if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){e=e.substring(a[0].length);n=(a[2]||a[1]).replace(/\s+/g,' ');n=this.links[n.toLowerCase()];if(!n||!n.href){t+=a[0].charAt(0);e=a[0].substring(1)+e;continue}this.inLink=!0;t+=this.outputLink(a,n);this.inLink=!1;continue}if(a=this.rules.strong.exec(e)){e=e.substring(a[0].length);t+=this.renderer.strong(this.output(a[2]||a[1]));continue}if(a=this.rules.em.exec(e)){e=e.substring(a[0].length);t+=this.renderer.em(this.output(a[2]||a[1]));continue}if(a=this.rules.code.exec(e)){e=e.substring(a[0].length);t+=this.renderer.codespan(i(a[2],!0));continue}if(a=this.rules.br.exec(e)){e=e.substring(a[0].length);t+=this.renderer.br();continue}if(a=this.rules.del.exec(e)){e=e.substring(a[0].length);t+=this.renderer.del(this.output(a[1]));continue}if(a=this.rules.text.exec(e)){e=e.substring(a[0].length);t+=this.renderer.text(i(this.smartypants(a[0])));continue}if(e){throw new Error('Infinite loop on byte: '+e.charCodeAt(0))}}return t};n.prototype.outputLink=function(e,t){var n=i(t.href),r=t.title?i(t.title):null;return'!'!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,i(e[1]))};n.prototype.smartypants=function(e){if(!this.options.smartypants)return e;return e.replace(/---/g,'\u2014').replace(/--/g,'\u2013').replace(/(^|[-\u2014/(\[{"\s])'/g,'$1\u2018').replace(/'/g,'\u2019').replace(/(^|[-\u2014/(\[{\u2018\s])"/g,'$1\u201C').replace(/"/g,'\u201D').replace(/\.{3}/g,'\u2026')};n.prototype.mangle=function(e){if(!this.options.mangle)return e;var t='',n=e.length,r=0,o;for(;r'+(n?e:i(e,!0))+'\n'}return'
'+(n?e:i(e,!0))+'\n
\n'};o.prototype.blockquote=function(e){return'
\n'+e+'
\n'};o.prototype.html=function(e){return e};o.prototype.heading=function(e,t,n){return''+e+'\n'};o.prototype.hr=function(){return this.options.xhtml?'
\n':'
\n'};o.prototype.list=function(e,t){var n=t?'ol':'ul';return'<'+n+'>\n'+e+'\n'};o.prototype.listitem=function(e){return'
  • '+e+'
  • \n'};o.prototype.paragraph=function(e){return'

    '+e+'

    \n'};o.prototype.table=function(e,t){return'\n\n'+e+'\n\n'+t+'\n
    \n'};o.prototype.tablerow=function(e){return'\n'+e+'\n'};o.prototype.tablecell=function(e,t){var n=t.header?'th':'td',r=t.align?'<'+n+' style="text-align:'+t.align+'">':'<'+n+'>';return r+e+'\n'};o.prototype.strong=function(e){return''+e+''};o.prototype.em=function(e){return''+e+''};o.prototype.codespan=function(e){return''+e+''};o.prototype.br=function(){return this.options.xhtml?'
    ':'
    '};o.prototype.del=function(e){return''+e+''};o.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(s(e)).replace(/[^\w:]/g,'').toLowerCase()}catch(t){return''}if(0===r.indexOf('javascript:')||0===r.indexOf('vbscript:')){return''}}var o='
    ';return o};o.prototype.image=function(e,t,n){var r=''+n+'':'>';return r};o.prototype.text=function(e){return e};function a(e){this.tokens=[];this.token=null;this.options=e||u.defaults;this.options.renderer=this.options.renderer||new o;this.renderer=this.options.renderer;this.renderer.options=this.options}a.parse=function(e,t,n){var r=new a(t,n);return r.parse(e)};a.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer);this.tokens=e.reverse();var t='';while(this.next()){t+=this.tok()}return t};a.prototype.next=function(){return this.token=this.tokens.pop()};a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};a.prototype.parseText=function(){var e=this.token.text;while('text'===this.peek().type){e+='\n'+this.next().text}return this.inline.output(e)};a.prototype.tok=function(){switch(this.token.type){case'space':{return''}case'hr':{return this.renderer.hr()}case'heading':{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case'code':{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case'table':{var e='',t='',n,r,o,a,i;o='';for(n=0;n/g,'>').replace(/"/g,'"').replace(/'/g,''')}function s(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){t=t.toLowerCase();if('colon'===t)return':';if('#'===t.charAt(0)){return'x'===t.charAt(1)?r(parseInt(t.substring(2),16)):r(+t.substring(1))}return''})}function l(e,t){e=e.source;t=t||'';return function n(r,o){if(!r)return new RegExp(e,t);o=o.source||o;o=o.replace(/(^|[^\[])\^/g,'$1');e=e.replace(r,o);return n}}function d(){}d.exec=d;function c(e){var t=1,n,r;for(;to.length){return p()}delete n.highlight;if(!l)return p();for(;dAn error occured:

    '+i(t.message+'',!0)+'
    '}throw t}}u.options=u.setOptions=function(e){c(u.defaults,e);return u};u.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:'lang-',smartypants:!1,headerPrefix:'',renderer:new o,xhtml:!1};u.Parser=a;u.parser=a.parse;u.Renderer=o;u.Lexer=t;u.lexer=t.lex;u.InlineLexer=n;u.inlineLexer=n.output;u.parse=u;if(!0){e.exports=u}else if('function'==typeof define&&define.amd){define(function(){return u})}else{this.marked=u}}).call(function(){return this||('undefined'!=typeof window?window:t)}())}).call(t,n(4))},function(module,exports,__webpack_require__){'use strict';var _createClass=function(){function e(e,t){for(var n=0,r;n ',d,' ',_react2.default.createElement('br',null),' '):'',l&&0n){return!1}var r=t.length-1;if(n==r){t.pop()}else{fe.call(t,n,1)}return!0}function g(e){var t=this.__data__,n=w(t,e);return 0>n?void 0:t[n][1]}function f(e){return-1r){n.push([e,t])}else{n[r][1]=t}return this}c.prototype.clear=u;c.prototype['delete']=p;c.prototype.get=g;c.prototype.has=f;c.prototype.set=h;function m(e){var t=-1,n=e?e.length:0;this.clear();while(++te){throw'The number of splits have to be > 0!'}if(e==this.$splits){return}else if(e>this.$splits){while(this.$splitse){t=this.$editors[this.$splits-1];this.$container.removeChild(t.container);this.$splits--}}this.resize()};this.getSplits=function(){return this.$splits};this.getEditor=function(e){return this.$editors[e]};this.getCurrentEditor=function(){return this.$cEditor};this.focus=function(){this.$cEditor.focus()};this.blur=function(){this.$cEditor.blur()};this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})};this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})};this.forEach=function(e,t){this.$editors.forEach(e,t)};this.$fontSize='';this.setFontSize=function(e){this.$fontSize=e;this.forEach(function(t){t.setFontSize(e)})};this.$cloneSession=function(e){var t=new d(e.getDocument(),e.getMode()),n=e.getUndoManager();if(n){var o=new r(n,t);t.setUndoManager(o)}t.$informUndoManager=a.delayedCall(function(){t.$deltas=[]});t.setTabSize(e.getTabSize());t.setUseSoftTabs(e.getUseSoftTabs());t.setOverwrite(e.getOverwrite());t.setBreakpoints(e.getBreakpoints());t.setUseWrapMode(e.getUseWrapMode());t.setUseWorker(e.getUseWorker());t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max);t.$foldData=e.$cloneFoldData();return t};this.setSession=function(e,t){var n;if(null==t){n=this.$cEditor}else{n=this.$editors[t]}var r=this.$editors.some(function(t){return t.session===e});if(r){e=this.$cloneSession(e)}n.setSession(e);return e};this.getOrientation=function(){return this.$orientation};this.setOrientation=function(e){if(this.$orientation==e){return}this.$orientation=e;this.resize()};this.resize=function(){var e=this.$container.clientWidth,t=this.$container.clientHeight,n;if(this.$orientation==this.BESIDE){for(var r=e/this.$splits,o=0;o+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:'start'},{token:'punctuation.operator',regex:/[?:,;.]/,next:'start'},{token:'paren.lparen',regex:/[\[({]/,next:'start'},{token:'paren.rparen',regex:/[\])}]/},{token:'comment',regex:/^#!.*$/}],property:[{token:'text',regex:'\\s+'},{token:['storage.type','punctuation.operator','entity.name.function','text','keyword.operator','text','storage.type','text','entity.name.function','text','paren.lparen'],regex:'('+l+')(\\.)('+l+')(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()',next:'function_arguments'},{token:'punctuation.operator',regex:/[.](?![.])/},{token:'support.function',regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:'support.function.dom',regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:'support.constant',regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:'identifier',regex:l},{regex:'',token:'empty',next:'no_regex'}],start:[i.getStartRule('doc-start'),o('start'),{token:'string.regexp',regex:'\\/',next:'regex'},{token:'text',regex:'\\s+|^$',next:'start'},{token:'empty',regex:'',next:'no_regex'}],regex:[{token:'regexp.keyword.operator',regex:'\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)'},{token:'string.regexp',regex:'/[sxngimy]*',next:'no_regex'},{token:'invalid',regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:'constant.language.escape',regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:'constant.language.delimiter',regex:/\|/},{token:'constant.language.escape',regex:/\[\^?/,next:'regex_character_class'},{token:'empty',regex:'$',next:'no_regex'},{defaultToken:'string.regexp'}],regex_character_class:[{token:'regexp.charclass.keyword.operator',regex:'\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)'},{token:'constant.language.escape',regex:']',next:'regex'},{token:'constant.language.escape',regex:'-'},{token:'empty',regex:'$',next:'no_regex'},{defaultToken:'string.regexp.charachterclass'}],function_arguments:[{token:'variable.parameter',regex:l},{token:'punctuation.operator',regex:'[, ]+'},{token:'punctuation.operator',regex:'$'},{token:'empty',regex:'',next:'no_regex'}],qqstring:[{token:'constant.language.escape',regex:a},{token:'string',regex:'\\\\$',next:'qqstring'},{token:'string',regex:'"|$',next:'no_regex'},{defaultToken:'string'}],qstring:[{token:'constant.language.escape',regex:a},{token:'string',regex:'\\\\$',next:'qstring'},{token:'string',regex:'\'|$',next:'no_regex'},{defaultToken:'string'}]};if(!e||!e.noES6){this.$rules.no_regex.unshift({regex:'[{}]',onMatch:function(e,t,n){this.next='{'==e?this.nextState:'';if('{'==e&&n.length){n.unshift('start',t)}else if('}'==e&&n.length){n.shift();this.next=n.shift();if(-1!=this.next.indexOf('string')||-1!=this.next.indexOf('jsx'))return'paren.quasi.end'}return'{'==e?'paren.lparen':'paren.rparen'},nextState:'start'},{token:'string.quasi.start',regex:/`/,push:[{token:'constant.language.escape',regex:a},{token:'paren.quasi.start',regex:/\${/,push:'start'},{token:'string.quasi.end',regex:/`/,next:'pop'},{defaultToken:'string.quasi'}]});if(!e||!1!=e.jsx)r.call(this)}this.embedRules(i,'doc-',[i.getEndRule('no_regex')]);this.normalizeRules()};a.inherits(d,s);function r(){var e=l.replace('\\d','\\d\\-'),t={onMatch:function(e,t,n){var r='/'==e.charAt(1)?2:1;if(1==r){if(t!=this.nextState)n.unshift(this.next,this.nextState,0);else n.unshift(this.next);n[2]++}else if(2==r){if(t==this.nextState){n[1]--;if(!n[1]||0>n[1]){n.shift();n.shift()}}}return[{type:'meta.tag.punctuation.'+(1==r?'':'end-')+'tag-open.xml',value:e.slice(0,r)},{type:'meta.tag.tag-name.xml',value:e.substr(r)}]},regex:'',onMatch:function(e,t,n){if(t==n[0])n.shift();if(2==e.length){if(n[0]==this.nextState)n[1]--;if(!n[1]||0>n[1]){n.splice(0,2)}}this.next=n[0]||'start';return[{type:this.token,value:e}]},nextState:'jsx'},n,o('jsxAttributes'),{token:'entity.other.attribute-name.xml',regex:e},{token:'keyword.operator.attribute-equals.xml',regex:'='},{token:'text.tag-whitespace.xml',regex:'\\s+'},{token:'string.attribute-value.xml',regex:'\'',stateName:'jsx_attr_q',push:[{token:'string.attribute-value.xml',regex:'\'',next:'pop'},{include:'reference'},{defaultToken:'string.attribute-value.xml'}]},{token:'string.attribute-value.xml',regex:'"',stateName:'jsx_attr_qq',push:[{token:'string.attribute-value.xml',regex:'"',next:'pop'},{include:'reference'},{defaultToken:'string.attribute-value.xml'}]},t];this.$rules.reference=[{token:'constant.language.escape.reference.xml',regex:'(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)'}]}function o(e){return[{token:'comment',regex:/\/\*/,next:[i.getTagRule(),{token:'comment',regex:'\\*\\/',next:e||'pop'},{defaultToken:'comment',caseInsensitive:!0}]},{token:'comment',regex:'\\/\\/',next:[i.getTagRule(),{token:'comment',regex:'$|^',next:e||'pop'},{defaultToken:'comment',caseInsensitive:!0}]}]}t.JavaScriptHighlightRules=d});ace.define('ace/mode/matching_brace_outdent',['require','exports','module','ace/range'],function(e,t,n){'use strict';var r=e('../range').Range,o=function(){};(function(){this.checkOutdent=function(e,t){if(!/^\s+$/.test(e))return!1;return /^\s*\}/.test(t)};this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var a=o[1].length,i=e.findMatchingBracket({row:t,column:a});if(!i||i.row==t)return 0;var s=this.$getIndent(e.getLine(i.row));e.replace(new r(t,0,t,a-1),s)};this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype);t.MatchingBraceOutdent=o});ace.define('ace/mode/folding/cstyle',['require','exports','module','ace/lib/oop','ace/range','ace/mode/folding/fold_mode'],function(e,t,n){'use strict';var r=e('../../lib/oop'),o=e('../../range').Range,a=e('./fold_mode').FoldMode,i=t.FoldMode=function(e){if(e){this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,'|'+e.start));this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,'|'+e.end))}};r.inherits(i,a);(function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/;this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/;this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/;this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/;this._getFoldWidgetBase=this.getFoldWidget;this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)){if(!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return''}var o=this._getFoldWidgetBase(e,t,n);if(!o&&this.startRegionRe.test(r))return'start';return o};this.getFoldWidgetRange=function(e,t,n,r){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var a=o.match(this.foldingStartMarker);if(a){var s=a.index;if(a[1])return this.openingBracketBlock(e,a[1],n,s);var i=e.getCommentFoldRange(n,s+a[0].length,1);if(i&&!i.isMultiLine()){if(r){i=this.getSectionRange(e,n)}else if('all'!=t)i=null}return i}if('markbegin'===t)return;var a=o.match(this.foldingStopMarker);if(a){var s=a.index+a[0].length;if(a[1])return this.closingBracketBlock(e,a[1],n,s);return e.getCommentFoldRange(n,s,-1)}};this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),a=t,i=n.length;t=t+1;var s=t,l=e.getLength();while(++td)break;var c=this.getFoldWidgetRange(e,'all',t);if(c){if(c.start.row<=a){break}else if(c.isMultiLine()){t=c.end.row}else if(r==d){break}}s=t}return new o(a,i,s,e.getLine(s).length)};this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),a=e.getLength(),i=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++ni){return new o(i,r,c,t.length)}}}).call(i.prototype)});ace.define('ace/mode/javascript',['require','exports','module','ace/lib/oop','ace/mode/text','ace/mode/javascript_highlight_rules','ace/mode/matching_brace_outdent','ace/worker/worker_client','ace/mode/behaviour/cstyle','ace/mode/folding/cstyle'],function(e,t,r){'use strict';var o=e('../lib/oop'),a=e('./text').Mode,i=e('./javascript_highlight_rules').JavaScriptHighlightRules,s=e('./matching_brace_outdent').MatchingBraceOutdent,l=e('../worker/worker_client').WorkerClient,d=e('./behaviour/cstyle').CstyleBehaviour,c=e('./folding/cstyle').FoldMode,u=function(){this.HighlightRules=i;this.$outdent=new s;this.$behaviour=new d;this.foldingRules=new c};o.inherits(u,a);(function(){this.lineCommentStart='//';this.blockComment={start:'/*',end:'*/'};this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),a=o.tokens,i=o.state;if(a.length&&'comment'==a[a.length-1].type){return r}if('start'==e||'no_regex'==e){var s=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);if(s){r+=n}}else if('doc-start'==e){if('start'==i||'no_regex'==i){return''}var s=t.match(/^\s*(\/?)\*/);if(s){if(s[1]){r+=' '}r+='* '}}return r};this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)};this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)};this.createWorker=function(e){var t=new l(['ace'],n(47),'JavaScriptWorker');t.attachToDocument(e.getDocument());t.on('annotate',function(t){e.setAnnotations(t.data)});t.on('terminate',function(){e.clearAnnotations()});return t};this.$id='ace/mode/javascript'}).call(u.prototype);t.Mode=u})},function(e,t){e.exports.id='ace/mode/javascript_worker';e.exports.src='"no use strict";(function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}})(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/\'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module \'"+name+"\'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError(\'Uncaught, unspecified "error" event.\')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this\n}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],"/node_modules/jshint/data/ascii-identifier-data.js":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],"/node_modules/jshint/lodash.js":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return"function"==typeof value||!1}function baseToString(value){return"string"==typeof value?value:null==value?"":value+""}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&"object"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return"function"!=valType&&"object"!=valType&&"function"!=othType&&"object"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+"";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+"";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if("number"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return"function"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+""}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor="constructor"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if("number"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq="string"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if("string"==type&&reIsPlainProp.test(value)||"number"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return"number"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,"function"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if("number"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),("function"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&"boolean"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:"function"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer="function"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return"function"==type||!!value&&"object"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto="function"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+"";for(var key in object)skipIndexes&&isIndex(key,length)||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\\\$&"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION="3.7.0",FUNC_ERROR_TEXT="Expected a function",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),"xo")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames="string"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return"function"==typeof Ctor&&Ctor.prototype===object||"function"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash\n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/node_modules/jshint/src/jshint.js":[function(_dereq_,module,exports){var _=_dereq_("../lodash"),events=_dereq_("events"),vars=_dereq_("./vars.js"),messages=_dereq_("./messages.js"),Lexer=_dereq_("./lex.js").Lexer,reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,style=_dereq_("./style.js"),options=_dereq_("./options.js"),scopeManager=_dereq_("./scope-manager.js"),JSHINT=function(){"use strict";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||"jslint"===t.type||_.has(options.removed,name)?!0:(error("E001",t,name),!1)}function isString(obj){return"[object String]"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return"string"==typeof r||"number"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict="global"),state.inES6()||warning("W134",state.tokens.next,"module",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict="global")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict="global")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict="global")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict="global"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:"JSHintError",line:line,character:chr,message:message+" ("+percentage+"% scanned).",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},"(end)"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:"(error)",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||"",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit("E043",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:"(internal)",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if("globals"===nt.type){body.forEach(function(g,idx){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if("-"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}"-"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]="true"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}"exported"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}state.funct["(scope)"].addExported(e)}),"members"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||\'"\'!==ch1&&"\'"!==ch1||(m=m.substr(1,m.length-2).replace(\'\\\\"\',\'"\')),membersOnly[m]=!1}));var numvals=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];("jshint"===nt.type||"jslint"===nt.type)&&(body.forEach(function(g){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if("false"!==val){if(val=+val,"number"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error("E032",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]="indent"===key?4:!1;else{if("validthis"===key)return state.funct["(global)"]?void error("E009"):"true"!==val&&"false"!==val?void error("E002",nt):(state.option.validthis="true"===val,void 0);if("quotmark"!==key)if("shadow"!==key)if("unused"!==key)if("latedef"!==key)if("ignore"!==key)if("strict"!==key){"module"===key&&(hasParsedCode(state.funct)||error("E055",state.tokens.next,"module"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if("esversion"===key){switch(val){case"5":state.inES5(!0)&&warning("I003");case"3":case"6":state.option.moz=!1,state.option.esversion=+val;break;case"2015":state.option.moz=!1,state.option.esversion=6;break;default:error("E002",nt)}return hasParsedCode(state.funct)||error("E055",state.tokens.next,"esversion"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]="-"===match[1],void 0;var tn;return"true"===val||"false"===val?("jslint"===nt.type?(tn=options.renamed[key]||key,state.option[tn]="true"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]="true"===val,"newcap"===key&&(state.option["(explicitNewcap)"]=!0),void 0):(error("E002",nt),void 0)}switch(val){case"true":state.option.moz=!1,state.option.esversion=esversions[key];break;case"false":state.option.moz||(state.option.esversion=5);break;default:error("E002",nt)}}else switch(val){case"true":state.option.strict=!0;break;case"false":state.option.strict=!1;break;case"func":case"global":case"implied":state.option.strict=val;break;default:error("E002",nt)}else switch(val){case"line":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error("E002",nt)}else switch(val){case"true":state.option.latedef=!0;break;case"false":state.option.latedef=!1;break;case"nofunc":state.option.latedef="nofunc";break;default:error("E002",nt)}else switch(val){case"true":state.option.unused=!0;break;case"false":state.option.unused=!1;break;case"vars":case"strict":state.option.unused=val;break;default:error("E002",nt)}else switch(val){case"true":state.option.shadow=!0;break;case"outer":state.option.shadow="outer";break;case"false":case"inner":state.option.shadow="inner";break;default:error("E002",nt)}else switch(val){case"true":case"false":state.option.quotmark="true"===val;break;case"double":case"single":state.option.quotmark=val;break;default:error("E002",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||"(end)"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while("(endline)"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case"(number)":"."===state.tokens.next.id&&warning("W005",state.tokens.curr);break;case"-":("-"===state.tokens.next.id||"--"===state.tokens.next.id)&&warning("W006");break;case"+":("+"===state.tokens.next.id||"++"===state.tokens.next.id)&&warning("W007")}for(id&&state.tokens.next.id!==id&&(t?"(end)"===state.tokens.next.id?error("E019",t,t.id):error("E020",state.tokens.next,id,t.id,t.line,state.tokens.next.value):("(identifier)"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning("W116",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit("E041",state.tokens.curr.line),"(end)"===state.tokens.next.id||"(error)"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)"falls through"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if("(endline)"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return";"===next.id||"}"===next.id||":"===next.id?!0:isInfix(next)===isInfix(curr)||"yield"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&"unary"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||"let"!==state.tokens.next.value||"("!==peek(0).value||(state.inMoz()||warning("W118",state.tokens.next,"let expressions"),isLetExpr=!0,state.funct["(scope)"].stack(),advance("let"),advance("("),state.tokens.prev.fud(),advance(")")),"(end)"===state.tokens.next.id&&error("E006",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains(["]",")"],state.tokens.prev.id)&&_.contains(["[","("],state.tokens.curr.id);if(isDangerous&&warning("W014",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct["(verb)"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error("E030",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||"(template)"===state.tokens.next.type)&&!isEndOfExpr();)isArray="Array"===state.tokens.curr.value,isObject="Object"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&("new"!==left.value||left.first&&left.first.value&&"."===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W009",state.tokens.curr),isObject&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W010",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error("E033",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct["(scope)"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning("W014",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning("E022",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning("I001"),comma.first=!1),warning("W014",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(",")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return error("E024",state.tokens.next,state.tokens.next.value),!1}if("(punctuator)"===state.tokens.next.type)switch(state.tokens.next.value){case"}":case"]":case",":if(opts.allowTrailing)return!0;case")":return error("E024",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&"object"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>="a"&&"z">=c||c>="A"&&"Z">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud="function"==typeof f?f:function(){return this.arity="unary",this.right=expression(150),("++"===this.id||"--"===this.id)&&(state.option.plusplus?warning("W016",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||"."===this.right.id||"["===this.right.id||warning("W017",this),this.right&&this.right.isMetaProperty?error("E031",this):this.right&&this.right.identifier&&state.funct["(scope)"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return"function"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),"in"!==s&&"instanceof"!==s||"!"!==left.id||warning("W018",left,"!"),"function"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:"arrow",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,"NaN")||isIdentifier(right,"NaN")?warning("W019",this):f&&f.apply(this,[left,right]),left&&right||quit("E041",state.tokens.curr.line),"!"===left.id&&warning("W018",left,"!"),"!"===right.id&&warning("W018",right,"!"),this},x}function isPoorRelation(node){return node&&("(number)"===node.type&&0===+node.value||"(string)"===node.type&&""===node.value||"null"===node.type&&!state.option.eqnull||"true"===node.type||"false"===node.type||"undefined"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,"(identifier)"===right.type&&"typeof"===right.value&&"(string)"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return"this"===left.type&&null===state.funct["(context)"]?isGlobal=!0:"(identifier)"===left.type&&(state.option.node&&"global"===left.value?isGlobal=!0:!state.option.browser||"window"!==left.value&&"document"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return"object"==typeof obj?"prototype"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&"object"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning("W121",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct["(scope)"].block.reassign(left.value,left),"."===left.id?((!left.left||"arguments"===left.left.value&&!state.isStrict())&&warning("E031",assignToken),state.nameStack.set(state.tokens.prev),!0):"{"===left.id||"["===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct["(scope)"].block.modify(t.id,t.token)}):"{"!==left.id&&left.left?"arguments"!==left.left.value||state.isStrict()||warning("E031",assignToken):warning("E031",assignToken),"["===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error("E031",assignToken),!0):left.identifier&&!isReserved(left)?("exception"===state.funct["(scope)"].labeltype(left.value)&&warning("W022",left),state.nameStack.set(left),!0):(left===state.syntax["function"]&&warning("W023",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,"function"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error("E031",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led="function"==typeof f?f:function(left){return state.option.bitwise&&warning("W016",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning("W016",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error("E031",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning("W016",this,this.id):left.identifier&&!isReserved(left)||"."===left.id||"["===left.id||warning("W017",this),left.isMetaProperty?error("E031",this):left&&left.identifier&&state.funct["(scope)"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&"undefined"===val?val:(warning("W024",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if("..."===state.tokens.next.value){if(state.inES6(!0)||warning("W119",state.tokens.next,"spread/rest operator","6"),advance(),checkPunctuator(state.tokens.next,"..."))for(warning("E024",state.tokens.next,"...");checkPunctuator(state.tokens.next,"...");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning("E024",state.tokens.curr,"..."),void 0)}error("E030",state.tokens.next,state.tokens.next.value),";"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(";"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){state.option.latedef===!0&&warning("W026",t);break}warning("W027",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(";"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&"(end)"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,"}");sameLine&&!blockEnd?errorAt("E058",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt("W033",state.tokens.curr.line,state.tokens.curr.character)}else advance(";")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(";"===t.id)return advance(";"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&":"===peek().id&&(warning("W024",t,t.id),res=!1),t.identifier&&!res&&":"===peek().id&&(advance(),advance(":"),hasOwnScope=!0,state.funct["(scope)"].stack(),state.funct["(scope)"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||"{"===state.tokens.next.value||warning("W028",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),"{"===t.id){var iscase="case"===state.funct["(verb)"]&&":"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&"function"===r.value||"(punctuator)"===r.type&&r.left&&r.left.identifier&&"function"===r.left.value||state.isStrict()||"global"!==state.option.strict||warning("E007"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&"("===r.id&&"new"===r.left.id&&warning("W031",t):warning("W030",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct["(scope)"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&"(end)"!==state.tokens.next.id;)";"===state.tokens.next.id?(p=peek(),(!p||"("!==p.id&&"["!==p.id)&&warning("W032"),advance(";")):a.push(statement());return a}function directives(){for(var i,p,pn;"(string)"===state.tokens.next.id;){if(p=peek(0),"(endline)"===p.id){i=1;do pn=peek(i++);while("(endline)"===pn.id);if(";"===pn.id)p=pn;else{if("["===pn.value||"."===pn.value)break;state.option.asi&&"("!==pn.value||warning("W033",state.tokens.next)}}else{if("."===p.id||"["===p.id)break;";"!==p.id&&warning("W033",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||"use strict"===directive&&"implied"===state.option.strict)&&warning("W034",state.tokens.curr,directive),state.directive[directive]=!0,";"===p.id&&advance(";")}state.isStrict()&&(state.option["(explicitNewcap)"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct["(metrics)"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),"{"===state.tokens.next.id){if(advance("{"),state.funct["(scope)"].stack(),line=state.tokens.curr.line,"}"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance("}",t),isfunc&&(state.funct["(scope)"].validateParams(),m&&(state.directive=m)),state.funct["(scope)"].unstack(),indent=old_indent}else if(ordinary)state.funct["(noblockscopedvar)"]="for"!==state.tokens.next.id,state.funct["(scope)"].stack(),(!stmt||state.option.curly)&&warning("W116",state.tokens.next,"{",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct["(scope)"].unstack(),delete state.funct["(noblockscopedvar)"];else if(isfunc){if(state.funct["(scope)"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error("W118",state.tokens.curr,"function closure expressions"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007")),state.funct["(scope)"].unstack()}else error("E021",state.tokens.next,"{",state.tokens.next.value);switch(state.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(iscase)break;default:state.funct["(verb)"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning("W035",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&"boolean"!=typeof membersOnly[m]&&warning("W036",state.tokens.curr,m),"number"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct["(comparray)"].stack();var reversed=!1;return"for"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning("W116",state.tokens.next,"for",state.tokens.next.value),state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("for"),"each"===state.tokens.next.value&&(advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),advance("("),state.funct["(comparray)"].setState("define"),res.left=expression(130),_.contains(["in","of"],state.tokens.next.value)?advance():error("E045",state.tokens.curr),state.funct["(comparray)"].setState("generate"),expression(10),advance(")"),"if"===state.tokens.next.value&&(advance("if"),advance("("),state.funct["(comparray)"].setState("filter"),res.filter=expression(10),advance(")")),reversed||(state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("]"),state.funct["(comparray)"].unstack(),res}function isMethod(){return state.funct["(statement)"]&&"class"===state.funct["(statement)"].type||state.funct["(context)"]&&"class"===state.funct["(context)"]["(verb)"]}function isPropertyName(token){return token.identifier||"(string)"===token.id||"(number)"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return"object"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?"object"==typeof id&&("(string)"===id.id||"(identifier)"===id.id?id=id.value:"(number)"===id.id&&(id=""+id.value)):"(string)"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):"(number)"===state.tokens.next.id&&(id=""+state.tokens.next.value,preserve||advance()),"hasOwnProperty"===id&&warning("W001"),id}function functionparams(options){function addParam(addParamArgs){state.funct["(scope)"].addParam.apply(state.funct["(scope)"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct["(scope)"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance("("),")"===state.tokens.next.id)return advance(")"),void 0;for(;;){arity++;var currentParams=[];if(_.contains(["{","["],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,"...")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[",",")"]);)advance();if(pastDefault&&"="!==state.tokens.next.id&&error("W138",state.tokens.current),"="===state.tokens.next.id&&(state.inES6()||warning("W119",state.tokens.next,"default parameters","6"),advance("="),pastDefault=!0,expression(10)),currentParams.forEach(addParam),","!==state.tokens.next.id)return advance(")",next),{arity:arity,params:paramsIds};pastRest&&warning("W131",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={"(name)":name,"(breakage)":0,"(loopage)":0,"(tokens)":{},"(properties)":{},"(catch)":!1,"(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(generator)":null,"(arrow)":null,"(params)":null};return token&&_.extend(funct,{"(line)":token.line,"(character)":token.character,"(metrics)":createMetrics(token)}),_.extend(funct,overwrites),funct["(context)"]&&(funct["(scope)"]=funct["(context)"]["(scope)"],funct["(comparray)"]=funct["(context)"]["(comparray)"]),funct}function isFunctor(token){return"(scope)"in token}function hasParsedCode(funct){return funct["(global)"]&&!funct["(verb)"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:"(template)",type:"(template)",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator="generator"===options.type,isArrow="arrow"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{"(statement)":statement,"(context)":state.funct,"(arrow)":isArrow,"(generator)":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct["(scope)"].stack("functionouter");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct["(scope)"].block.add(internallyAccessibleName,classExprBinding?"class":"function",state.tokens.curr,!1),state.funct["(scope)"].stack("functionparams");var paramsInfo=functionparams(options);return paramsInfo?(state.funct["(params)"]=paramsInfo.params,state.funct["(metrics)"].arity=paramsInfo.arity,state.funct["(metrics)"].verifyMaxParametersPerFunction()):state.funct["(metrics)"].arity=0,isArrow&&(state.inES6(!0)||warning("W119",state.tokens.curr,"arrow function syntax (=>)","6"),options.loneArg||advance("=>")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&"yielded"!==state.funct["(generator)"]&&warning("W124",state.tokens.curr),state.funct["(metrics)"].verifyMaxStatementsPerFunction(),state.funct["(metrics)"].verifyMaxComplexityPerFunction(),state.funct["(unusedOption)"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct["(last)"]=state.tokens.curr.line,state.funct["(lastcharacter)"]=state.tokens.curr.character,state.funct["(scope)"].unstack(),state.funct["(scope)"].unstack(),state.funct=state.funct["(context)"],ignoreLoopFunc||state.option.loopfunc||!state.funct["(loopage)"]||f["(isCapturing)"]&&warning("W083",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning("W071",functionStartToken,this.statementCount)\n},verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning("W072",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning("W074",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct["(metrics)"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,","===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":paren||state.option.boss||warning("W084")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning("W078",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,".")){var left=state.tokens.curr.id;advance(".");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error("E057",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning("W104",state.tokens.curr,isAssignment?"destructuring assignment":"destructuring binding","6"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,["[","{"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,","))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,"(")){var is_rest=checkPunctuator(state.tokens.next,"...");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning("E030",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance("("),nextInnerDE(),advance(")")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,"[")?(advance("["),expression(10),advance("]"),advance(":"),nextInnerDE()):"(string)"===state.tokens.next.id||"(number)"===state.tokens.next.id?(advance(),advance(":"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,":")?(advance(":"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,"[")){openingParsed||advance("["),checkPunctuator(state.tokens.next,"]")&&warning("W137",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,"]");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,",")&&(warning("W130",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,"=")&&(checkPunctuator(state.tokens.prev,"...")?advance("]"):advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"]")||advance(",");advance("]")}else if(checkPunctuator(firstToken,"{")){for(openingParsed||advance("{"),checkPunctuator(state.tokens.next,"}")&&warning("W137",state.tokens.curr);!checkPunctuator(state.tokens.next,"}")&&(assignmentProperty(),checkPunctuator(state.tokens.next,"=")&&(advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"}")||(advance(","),!checkPunctuator(state.tokens.next,"}"))););advance("}")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning("W080",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet="let"===type,isConst="const"===type;for(state.inES6()||warning("W104",state.tokens.curr,type,"6"),isLet&&"("===state.tokens.next.value?(state.inMoz()||warning("W118",state.tokens.next,"let block"),advance("("),state.funct["(scope)"].stack(),letblock=!0):state.funct["(noblockscopedvar)"]&&error("E048",state.tokens.curr,isConst?"Const":"Let"),statement.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&"="!==state.tokens.next.id&&warning("E012",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct["(scope)"].block.isGlobal()&&predefined[t.id]===!1&&warning("W079",t.token,t.id),t.id&&!state.funct["(noblockscopedvar)"]&&(state.funct["(scope)"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct["(scope)"].setExported(t.token.value,t.token)));if("="===state.tokens.next.id&&(advance("="),prefix||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),!prefix&&"="===peek(0).id&&state.tokens.next.identifier&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),","!==state.tokens.next.id)break;comma()}return letblock&&(advance(")"),block(!0,!0),statement.block=!0,state.funct["(scope)"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning("W104",state.tokens.curr,"class","6"),isStatement?(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"class",token:state.tokens.curr})):state.tokens.next.identifier&&"extends"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;"extends"===state.tokens.next.value&&(advance("extends"),c.heritage=expression(10)),state.inClassBody=!0,advance("{"),c.body=classbody(c),advance("}"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;"}"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,";"!==name.id){if("*"===name.id&&(isGenerator=!0,advance("*"),name=state.tokens.next),"["===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning("W052",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&"static"===name.value&&(checkPunctuator(state.tokens.next,"*")&&(isGenerator=!0,advance("*")),(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,isStatic=!0,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||"get"!==name.value&&"set"!==name.value||(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,getset=name,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,"(")){for(error("E054",state.tokens.next,state.tokens.next.value);"}"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,"(");)advance();"("!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):("constructor"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&"constructor"===name.value){var propDesc="get"===getset.value?"class getter method":"class setter method";error("E049",name,propDesc,"constructor")}else"prototype"===name.value&&error("E049",name,"class method","prototype");propertyName(name),doFunction({statement:c,type:isGenerator?"generator":null,classExprBinding:c.namedExpr?c.name:null})}else warning("W032"),advance(";");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=["key","class method","static class method"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&"__proto__"!==name?warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName="get"===accessorType?"getterToken":"setterToken",msg="";isClass?(isStatic&&(msg+="static "),msg+=accessorType+"ter method"):msg="key",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&"__proto__"!==name&&warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance("["),state.inES6()||warning("W119",state.tokens.curr,"computed property names","6");var value=expression(10);return advance("]"),value}function checkPunctuators(token,values){return"(punctuator)"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return"(punctuator)"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning("W104",state.tokens.curr,"destructuring assignment","6"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance("{"),"}"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E026",state.tokens.next,t.line);else{if("}"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id?error("E028",state.tokens.next):"(string)"!==state.tokens.next.id&&warning("W095",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning("W075",state.tokens.next,"key",state.tokens.next.value):"__proto__"===state.tokens.next.value&&!state.option.proto||"__iterator__"===state.tokens.next.value&&!state.option.iterator?warning("W096",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(":"),jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("}")}function jsonArray(){var t=state.tokens.next;if(advance("["),"]"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E027",state.tokens.next,t.line);else{if("]"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id&&error("E028",state.tokens.next)}if(jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("]")}switch(state.tokens.next.id){case"{":jsonObject();break;case"[":jsonArray();break;case"true":case"false":case"null":case"(number)":case"(string)":advance();break;case"-":advance("-"),advance("(number)");break;default:error("E003",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},functionicity=["closure","exception","global","label","outer","unused","var"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=["xml","unknown"],typeofValues.es3=["undefined","boolean","number","string","function","object"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat("symbol"),type("(number)",function(){return this}),type("(string)",function(){return this}),state.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var v=this.value;return"=>"===state.tokens.next.id?this:(state.funct["(comparray)"].check(v)||state.funct["(scope)"].block.use(v,state.tokens.curr),this)},led:function(){error("E033",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax["(template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax["(template middle)"]=_.extend({type:"(template middle)",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(template tail)"]=_.extend({type:"(template tail)",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(no subst template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type("(regexp)",function(){return this}),delim("(endline)"),delim("(begin)"),delim("(end)").reach=!0,delim("(error)").reach=!0,delim("}").reach=!0,delim(")"),delim("]"),delim(\'"\').reach=!0,delim("\'").reach=!0,delim(";"),delim(":").reach=!0,delim("#"),reserve("else"),reserve("case").reach=!0,reserve("catch"),reserve("default").reach=!0,reserve("finally"),reservevar("arguments",function(x){state.isStrict()&&state.funct["(global)"]&&warning("E008",x)}),reservevar("eval"),reservevar("false"),reservevar("Infinity"),reservevar("null"),reservevar("this",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct["(statement)"]&&state.funct["(name)"].charAt(0)>"Z"||state.funct["(global)"])&&warning("W040",x)}),reservevar("true"),reservevar("undefined"),assignop("=","assign",20),assignop("+=","assignadd",20),assignop("-=","assignsub",20),assignop("*=","assignmult",20),assignop("/=","assigndiv",20).nud=function(){error("E014")},assignop("%=","assignmod",20),bitwiseassignop("&="),bitwiseassignop("|="),bitwiseassignop("^="),bitwiseassignop("<<="),bitwiseassignop(">>="),bitwiseassignop(">>>="),infix(",",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning("W127"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),","!==state.tokens.next.value||!comma())break}return that},10,!0),infix("?",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(":"),that["else"]=expression(10),that},30);var orPrecendence=40;infix("||",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix("&&","and",50),bitwise("|","bitor",70),bitwise("^","bitxor",80),bitwise("&","bitand",90),relation("==",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning("W116",this,"===","==");break;case isPoorRelation(left):warning("W041",this,"===",left.value);break;case isPoorRelation(right):warning("W041",this,"===",right.value);break;case isTypoTypeof(right,left,state):warning("W122",this,right.value);break;case isTypoTypeof(left,right,state):warning("W122",this,left.value)}return this}),relation("===",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!=",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning("W116",this,"!==","!=")):isPoorRelation(left)?warning("W041",this,"!==",left.value):isPoorRelation(right)?warning("W041",this,"!==",right.value):isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!==",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("<"),relation(">"),relation("<="),relation(">="),bitwise("<<","shiftleft",120),bitwise(">>","shiftright",120),bitwise(">>>","shiftrightunsigned",120),infix("in","in",120),infix("instanceof","instanceof",120),infix("+",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&"(string)"===left.id&&"(string)"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning("W050",left),left):that},130),prefix("+","num"),prefix("+++",function(){return warning("W007"),this.arity="unary",this.right=expression(150),this}),infix("+++",function(left){return warning("W007"),this.left=left,this.right=expression(130),this},130),infix("-","sub",130),prefix("-","neg"),prefix("---",function(){return warning("W006"),this.arity="unary",this.right=expression(150),this}),infix("---",function(left){return warning("W006"),this.left=left,this.right=expression(130),this},130),infix("*","mult",140),infix("/","div",140),infix("%","mod",140),suffix("++"),prefix("++","preinc"),state.syntax["++"].exps=!0,suffix("--"),prefix("--","predec"),state.syntax["--"].exps=!0,prefix("delete",function(){var p=expression(10);return p?("."!==p.id&&"["!==p.id&&warning("W051"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix("~",function(){return state.option.bitwise&&warning("W016",this,"~"),this.arity="unary",this.right=expression(150),this}),prefix("...",function(){return state.inES6(!0)||warning("W119",this,"spread/rest operator","6"),state.tokens.next.identifier||"(string)"===state.tokens.next.type||checkPunctuators(state.tokens.next,["[","("])||error("E030",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix("!",function(){return this.arity="unary",this.right=expression(150),this.right||quit("E041",this.line||0),bang[this.right.id]===!0&&warning("W018",this,"!"),this}),prefix("typeof",function(){var p=expression(150);return this.first=this.right=p,p||quit("E041",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix("new",function(){var mp=metaProperty("target",function(){state.inES6(!0)||warning("W119",state.tokens.prev,"new.target","6");for(var inFunction,c=state.funct;c&&(inFunction=!c["(global)"],c["(arrow)"]);)c=c["(context)"];inFunction||warning("W136",state.tokens.prev,"new.target")});if(mp)return mp;var i,c=expression(155);if(c&&"function"!==c.id)if(c.identifier)switch(c["new"]=!0,c.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":warning("W053",state.tokens.prev,c.value);break;case"Symbol":state.inES6()&&warning("W053",state.tokens.prev,c.value);break;case"Function":state.option.evil||warning("W054");break;case"Date":case"RegExp":case"this":break;default:"function"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&("A">i||i>"Z")&&!state.funct["(scope)"].isPredefined(c.value)&&warning("W055",state.tokens.curr))}else"."!==c.id&&"["!==c.id&&"("!==c.id&&warning("W056",state.tokens.curr);else state.option.supernew||warning("W057",this);return"("===state.tokens.next.id||state.option.supernew||warning("W058",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax["new"].exps=!0,prefix("void").exps=!0,infix(".",function(left,that){var m=identifier(!1,!0);return"string"==typeof m&&countMember(m),that.left=left,that.right=m,m&&"hasOwnProperty"===m&&"="===state.tokens.next.value&&warning("W001"),!left||"arguments"!==left.value||"callee"!==m&&"caller"!==m?state.option.evil||!left||"document"!==left.value||"write"!==m&&"writeln"!==m||warning("W060",left):state.option.noarg?warning("W059",left,m):state.isStrict()&&error("E008"),state.option.evil||"eval"!==m&&"execScript"!==m||isGlobalEval(left,state)&&warning("W061"),that},160,!0),infix("(",function(left,that){state.option.immed&&left&&!left.immed&&"function"===left.id&&warning("W062");var n=0,p=[];if(left&&"(identifier)"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(left.value)&&("Math"===left.value?warning("W063",left):state.option.newcap&&warning("W064",left)),")"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,","===state.tokens.next.id;)comma();return advance(")"),"object"==typeof left&&(state.inES5()||"parseInt"!==left.value||1!==n||warning("W065",state.tokens.curr),state.option.evil||("eval"===left.value||"Function"===left.value||"execScript"===left.value?(warning("W061",left),p[0]&&"(string)"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||"(string)"!==p[0].id||"setTimeout"!==left.value&&"setInterval"!==left.value?!p[0]||"(string)"!==p[0].id||"."!==left.value||"window"!==left.left.value||"setTimeout"!==left.right&&"setInterval"!==left.right||(warning("W066",left),addInternalSrc(left,p[0].value)):(warning("W066",left),addInternalSrc(left,p[0].value))),left.identifier||"."===left.id||"["===left.id||"=>"===left.id||"("===left.id||"&&"===left.id||"||"===left.id||"?"===left.id||state.inES6()&&left["(name)"]||warning("W067",that)),that.left=left,that},155,!0).exps=!0,prefix("(",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do"("===pn.value?parens+=1:")"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||")"!==pn1.value)&&";"!==pn.value&&"(end)"!==pn.type);if("function"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),"=>"===pn.value)return doFunction({type:"arrow",parsedOpening:!0});var exprs=[];if(")"!==state.tokens.next.id)for(;exprs.push(expression(10)),","===state.tokens.next.id;)state.option.nocomma&&warning("W127"),comma();return advance(")",this),state.option.immed&&exprs[0]&&"function"===exprs[0].id&&"("!==state.tokens.next.id&&"."!==state.tokens.next.id&&"["!==state.tokens.next.id&&warning("W068",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[","]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&("{"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||"}"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||"{"===ret.id&&"=>"===preceeding.id||"(number)"===ret.type&&checkPunctuator(pn,".")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp"),infix("[",function(left,that){var s,e=expression(10);return e&&"(string)"===e.type&&(state.option.evil||"eval"!==e.value&&"execScript"!==e.value||isGlobalEval(left,state)&&warning("W061"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning("W069",state.tokens.prev,e.value))),advance("]",that),e&&"hasOwnProperty"===e.value&&"="===state.tokens.next.value&&warning("W001"),that.left=left,that.right=e,that},160,!0),prefix("[",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning("W118",state.tokens.curr,"array comprehension"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));"(end)"!==state.tokens.next.id;){for(;","===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning("W128");do advance(",");while(","===state.tokens.next.id);continue}warning("W070")}advance(",")}if("]"===state.tokens.next.id)break;if(this.first.push(expression(10)),","!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),"]"===state.tokens.next.id&&!state.inES5()){warning("W070",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance("]",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;"}"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||","!==peekIgnoreEOL().id&&"}"!==peekIgnoreEOL().id)if(":"===peek().id||"get"!==nextVal&&"set"!==nextVal){if("*"===state.tokens.next.value&&"(punctuator)"===state.tokens.next.type?(state.inES6()||warning("W104",state.tokens.next,"generator functions","6"),advance("*"),isGeneratorMethod=!0):isGeneratorMethod=!1,"["===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),"string"!=typeof i)break;"("===state.tokens.next.value?(state.inES6()||warning("W104",state.tokens.curr,"concise methods","6"),doFunction({type:isGeneratorMethod?"generator":null})):(advance(":"),expression(10))}else advance(nextVal),state.inES5()||error("E034"),i=propertyName(),i||state.inES6()||error("E035"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f["(params)"],"get"===nextVal&&i&&p?warning("W076",t,p[0],i):"set"!==nextVal||!i||p&&1===p.length||warning("W077",t,i);else state.inES6()||warning("W104",state.tokens.next,"object short notation","6"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),","!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),","===state.tokens.next.id?warning("W070",state.tokens.curr):"}"!==state.tokens.next.id||state.inES5()||warning("W070",state.tokens.curr)}return b&&(indent-=state.option.indent),advance("}",this),checkProperties(props),this},x.fud=function(){error("E036",state.tokens.curr)}}(delim("{"));var conststatement=stmt("const",function(context){return blockVariableStatement("const",this,context)});conststatement.exps=!0;var letstatement=stmt("let",function(context){return blockVariableStatement("let",this,context)});letstatement.exps=!0;var varstatement=stmt("var",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning("W132",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct["(global)"]&&(predefined[t.id]===!1?warning("W079",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning("W129",t.token,t.id)),t.id&&("for"===implied?(state.funct["(scope)"].has(t.id)||report&&warning("W088",t.token,t.id),state.funct["(scope)"].block.use(t.id,t.token)):(state.funct["(scope)"].addlabel(t.id,{type:"var",token:t.token}),lone&&inexport&&state.funct["(scope)"].setExported(t.id,t.token)),names.push(t.token)));if("="===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance("="),prefix||!report||state.funct["(loopage)"]||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),"="===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct["(params)"]||-1===state.funct["(params)"].indexOf(state.tokens.next.value))&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),","!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt("class",function(){return classdef.call(this,!0)}),blockstmt("function",function(context){var inexport=context&&context.inexport,generator=!1;"*"===state.tokens.next.value&&(advance("*"),state.inES6({strict:!0})?generator=!0:warning("W119",state.tokens.curr,"function*","6")),inblock&&warning("W082",state.tokens.curr);var i=optionalidentifier();return state.funct["(scope)"].addlabel(i,{type:"function",token:state.tokens.curr}),void 0===i?warning("W025"):inexport&&state.funct["(scope)"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?"generator":null,ignoreLoopFunc:inblock}),"("===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error("E039"),this}),prefix("function",function(){var generator=!1;"*"===state.tokens.next.value&&(state.inES6()||warning("W119",state.tokens.curr,"function*","6"),advance("*"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?"generator":null}),this}),blockstmt("if",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance("(");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type="(punctuator)"===expr.type&&"!"===expr.value?"(negative)":"(positive)"),advance(")",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&"(negative)"===forinifcheck.type&&s&&s[0]&&"(identifier)"===s[0].type&&"continue"===s[0].value&&(forinifcheck.type="(negative-with-continue)"),"else"===state.tokens.next.id&&(advance("else"),"if"===state.tokens.next.id||"switch"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt("try",function(){function doCatch(){if(advance("catch"),advance("("),state.funct["(scope)"].stack("catchparams"),checkPunctuators(state.tokens.next,["[","{"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct["(scope)"].addParam(token.id,token,"exception")})}else"(identifier)"!==state.tokens.next.type?warning("E030",state.tokens.next,state.tokens.next.value):state.funct["(scope)"].addParam(identifier(),state.tokens.curr,"exception");"if"===state.tokens.next.value&&(state.inMoz()||warning("W118",state.tokens.curr,"catch filter"),advance("if"),expression(0)),advance(")"),block(!1),state.funct["(scope)"].unstack()}var b;for(block(!0);"catch"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning("W118",state.tokens.next,"multiple catch blocks"),doCatch(),b=!0;return"finally"===state.tokens.next.id?(advance("finally"),block(!0),void 0):(b||error("E021",state.tokens.next,"catch",state.tokens.next.value),this)}),blockstmt("while",function(){var t=state.tokens.next;return state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),advance("("),checkCondAssignment(expression(0)),advance(")",t),block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this}).labelled=!0,blockstmt("with",function(){var t=state.tokens.next;return state.isStrict()?error("E010",state.tokens.curr):state.option.withstmt||warning("W085",state.tokens.curr),advance("("),expression(0),advance(")",t),block(!0,!0),this}),blockstmt("switch",function(){var t=state.tokens.next,g=!1,noindent=!1;\nfor(state.funct["(breakage)"]+=1,advance("("),checkCondAssignment(expression(0)),advance(")",t),t=state.tokens.next,advance("{"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case"case":switch(state.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"case")}advance("case"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(":"),state.funct["(verb)"]="case";break;case"default":switch(state.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"default"))}advance("default"),g=!0,advance(":");break;case"}":return noindent||(indent-=state.option.indent),advance("}",t),state.funct["(breakage)"]-=1,state.funct["(verb)"]=void 0,void 0;case"(end)":return error("E023",state.tokens.next,"}"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case",":return error("E040"),void 0;case":":g=!1,statements();break;default:return error("E025",state.tokens.curr),void 0}else{if(":"!==state.tokens.curr.id)return error("E021",state.tokens.next,"case",state.tokens.next.value),void 0;advance(":"),error("E024",state.tokens.curr,":"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt("debugger",function(){return state.option.debug||warning("W087",this),this}).exps=!0,function(){var x=stmt("do",function(){state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance("while");var t=state.tokens.next;return advance("("),checkCondAssignment(expression(0)),advance(")",t),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt("for",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;"each"===t.value&&(foreachtok=t,advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),increaseComplexityCount(),advance("(");var nextop,comma,initializer,i=0,inof=["in","of"],level=0;checkPunctuators(state.tokens.next,["{","["])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,["{","["])?++level:checkPunctuators(nextop,["}","]"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,",")?comma=nextop:!initializer&&checkPunctuator(nextop,"=")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&";"!==nextop.value&&"(end)"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||"of"!==nextop.value||warning("W104",nextop,"for of","6");var ok=!(initializer||comma);if(initializer&&error("W133",comma,nextop.value,"initializer is forbidden"),comma&&error("W133",comma,nextop.value,"more than one ForBinding"),"var"===state.tokens.next.id?(advance("var"),state.tokens.curr.fud({prefix:!0})):"let"===state.tokens.next.id||"const"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:"for",ignore:!ok}),advance(nextop.value),expression(20),advance(")",t),"in"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:"(none)"})),state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,s=block(!0,!0),"in"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&("object"!=typeof s[0]||"if"!==s[0].value)||"(positive)"===check.type&&s.length>1||"(negative)"===check.type)&&warning("W089",this)}state.forinifcheckneeded=!1}state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}else{if(foreachtok&&error("E045",foreachtok),";"!==state.tokens.next.id)if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud();else if("let"===state.tokens.next.id)advance("let"),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud();else for(;expression(0,"for"),","===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(";"),state.funct["(loopage)"]+=1,";"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(";"),";"===state.tokens.next.id&&error("E021",state.tokens.next,")",";"),")"!==state.tokens.next.id)for(;expression(0,"for"),","===state.tokens.next.id;)comma();advance(")",t),state.funct["(breakage)"]+=1,block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}return letscope&&state.funct["(scope)"].unstack(),this}).labelled=!0,stmt("break",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value):(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("continue",function(){var v=state.tokens.next.value;return 0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value),state.funct["(loopage)"]||warning("W052",state.tokens.next,this.value),state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("return",function(){return this.line===startLine(state.tokens.next)?";"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)):"(punctuator)"===state.tokens.next.type&&["[","{","+","-"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix("yield",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct["(generator)"]?"(catch)"===state.funct["(name)"]&&state.funct["(context)"]["(generator)"]||error("E046",state.tokens.curr,"yield"):state.inES6()||warning("W104",state.tokens.curr,"yield","6"),state.funct["(generator)"]="yielded";var delegatingYield=!1;return"*"===state.tokens.next.value&&(delegatingYield=!0,advance("*")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||";"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)),state.inMoz()&&")"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||"yield"===prev.id)&&error("E050",this)),this})),stmt("throw",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt("import",function(){if(state.inES6()||warning("W119",state.tokens.curr,"import","6"),"(string)"===state.tokens.next.type)return advance("(string)"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value)return advance("from"),advance("(string)"),this;advance(",")}if("*"===state.tokens.next.id)advance("*"),advance("as"),state.tokens.next.identifier&&(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}));else for(advance("{");;){if("}"===state.tokens.next.value){advance("}");break}var importName;if("default"===state.tokens.next.type?(importName="default",advance("default")):importName=identifier(),"as"===state.tokens.next.value&&(advance("as"),importName=identifier()),state.funct["(scope)"].addlabel(importName,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return advance("from"),advance("(string)"),this}).exps=!0,stmt("export",function(){var token,identifier,ok=!0;if(state.inES6()||(warning("W119",state.tokens.curr,"export","6"),ok=!1),state.funct["(scope)"].block.isGlobal()||(error("E053",state.tokens.curr),ok=!1),"*"===state.tokens.next.value)return advance("*"),advance("from"),advance("(string)"),this;if("default"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance("default");var exportType=state.tokens.next.id;return("function"===exportType||"class"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct["(scope)"].addlabel(identifier,{type:exportType,token:token}),state.funct["(scope)"].setExported(identifier,token)),this}if("{"===state.tokens.next.value){advance("{");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),"as"===state.tokens.next.value&&(advance("as"),state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance()),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return"from"===state.tokens.next.value?(advance("from"),advance("(string)")):ok&&exportedTokens.forEach(function(token){state.funct["(scope)"].setExported(token.value,token)}),this}if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud({inexport:!0});else if("let"===state.tokens.next.id)advance("let"),state.tokens.curr.fud({inexport:!0});else if("const"===state.tokens.next.id)advance("const"),state.tokens.curr.fud({inexport:!0});else if("function"===state.tokens.next.id)this.block=!0,advance("function"),state.syntax["function"].fud({inexport:!0});else if("class"===state.tokens.next.id){this.block=!0,advance("class");var classNameToken=state.tokens.next;state.syntax["class"].fud(),state.funct["(scope)"].setExported(classNameToken.value,classNameToken)}else error("E024",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord("abstract"),FutureReservedWord("boolean"),FutureReservedWord("byte"),FutureReservedWord("char"),FutureReservedWord("class",{es5:!0,nud:classdef}),FutureReservedWord("double"),FutureReservedWord("enum",{es5:!0}),FutureReservedWord("export",{es5:!0}),FutureReservedWord("extends",{es5:!0}),FutureReservedWord("final"),FutureReservedWord("float"),FutureReservedWord("goto"),FutureReservedWord("implements",{es5:!0,strictOnly:!0}),FutureReservedWord("import",{es5:!0}),FutureReservedWord("int"),FutureReservedWord("interface",{es5:!0,strictOnly:!0}),FutureReservedWord("long"),FutureReservedWord("native"),FutureReservedWord("package",{es5:!0,strictOnly:!0}),FutureReservedWord("private",{es5:!0,strictOnly:!0}),FutureReservedWord("protected",{es5:!0,strictOnly:!0}),FutureReservedWord("public",{es5:!0,strictOnly:!0}),FutureReservedWord("short"),FutureReservedWord("static",{es5:!0,strictOnly:!0}),FutureReservedWord("super",{es5:!0}),FutureReservedWord("synchronized"),FutureReservedWord("transient"),FutureReservedWord("volatile");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,["[","{"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,["[","{"])?bracketStack+=1:checkPunctuators(pn,["]","}"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&"for"===pn.value&&!checkPunctuator(prev,".")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,["}","]"])){if("="===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if("."===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,";")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&"(end)"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode="use",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning("W098",v.token,v.raw_text||v.value),v.undef&&state.funct["(scope)"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains(["use","define","generate","filter"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&"use"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&"define"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&"generate"===_current.mode?(state.funct["(scope)"].block.use(v,state.tokens.curr),!0):_current&&"filter"===_current.mode?(use(v)&&state.funct["(scope)"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,"\\\\$&")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||"object"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope="(main)"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;"-"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],("esversion"===optionKey&&5===o[optionKey]||"es5"===optionKey&&o[optionKey])&&warning("I003"),"newcap"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj["(explicitNewcap)"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on("warning",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on("error",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor("(global)",null,{"(global)":!0,"(scope)":scopeManagerInst,"(comparray)":arrayComprehension(),"(metrics)":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt("E004",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax["(begin)"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+"[\\\\s\\\\S]*?"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,"ig"),s=s.replace(reIgnore,function(match){return match.replace(/./g," ")}))})),lex=new Lexer(s),lex.on("warning",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("error",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("fatal",function(ev){quit("E041",ev.line,ev.from)}),lex.on("Identifier",function(ev){emitter.emit("Identifier",ev)}),lex.on("String",function(ev){emitter.emit("String",ev)}),lex.on("Number",function(ev){emitter.emit("Number",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case"{":case"[":destructuringAssignOrJsonValue();break;default:directives(),state.directive["use strict"]&&"global"!==state.option.strict&&warning("W097",state.tokens.prev),statements()}"(end)"!==state.tokens.next.id&&quit("E041",state.tokens.curr.line),state.funct["(scope)"].unstack()}catch(err){if(!err||"JSHintError"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:"(main)",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if("(main)"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct["(scope)"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct["(scope)"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f["(name)"],fu.param=f["(params)"],fu.line=f["(line)"],fu.character=f["(character)"],fu.last=f["(last)"],fu.lastcharacter=f["(lastcharacter)"],fu.metrics={complexity:f["(metrics)"].ComplexityCount,parameters:f["(metrics)"].arity,statements:f["(metrics)"].statementCount},data.functions.push(fu)}var unuseds=state.funct["(scope)"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if("number"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{"../lodash":"/node_modules/jshint/lodash.js","./lex.js":"/node_modules/jshint/src/lex.js","./messages.js":"/node_modules/jshint/src/messages.js","./options.js":"/node_modules/jshint/src/options.js","./reg.js":"/node_modules/jshint/src/reg.js","./scope-manager.js":"/node_modules/jshint/src/scope-manager.js","./state.js":"/node_modules/jshint/src/state.js","./style.js":"/node_modules/jshint/src/style.js","./vars.js":"/node_modules/jshint/src/vars.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/lex.js":[function(_dereq_,module,exports){"use strict";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;"string"==typeof lines&&(lines=lines.replace(/\\r\\n/g,"\\n").replace(/\\r/g,"\\n").split("\\n")),lines[0]&&"#!"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf("node")&&(state.option.node=!0),lines[0]=""),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=" ";this.ignoreLinterErrors=!1}var _=_dereq_("../lodash"),events=_dereq_("events"),reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,unicodeData=_dereq_("../data/ascii-identifier-data.js"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(" ").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:Token.Punctuator,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:Token.Punctuator,value:ch1};case"{":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case"}":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case"#":return{type:Token.Punctuator,value:ch1};case"":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),">"===ch1&&">"===ch2&&">"===ch3&&"="===ch4?{type:Token.Punctuator,value:">>>="}:"="===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"==="}:"!"===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"!=="}:">"===ch1&&">"===ch2&&">"===ch3?{type:Token.Punctuator,value:">>>"}:"<"===ch1&&"<"===ch2&&"="===ch3?{type:Token.Punctuator,value:"<<="}:">"===ch1&&">"===ch2&&"="===ch3?{type:Token.Punctuator,value:">>="}:"="===ch1&&">"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&"+-<>&|".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:"<>=!+-*%&|^".indexOf(ch1)>=0?"="===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:"/"===ch1?"="===ch2?{type:Token.Punctuator,value:"/="}:{type:Token.Punctuator,value:"/"}:null},scanComments:function(){function commentToken(label,body,opt){var special=["jshint","jslint","members","member","globals","global","exported"],isSpecial=!1,value=label+body,commentType="plain";return opt=opt||{},opt.isMultiline&&(value+="*/"),body=body.replace(/\\n/g," "),"/*"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType="falls through"),special.forEach(function(str){if(!isSpecial&&("//"!==label||"jshint"===str)&&(" "===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||" "!==body.charAt(0)||" "!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+" "+str,body=body.substr(str.length+1)),isSpecial))switch(str){case"member":commentType="members";break;case"global":commentType="globals";break;default:var options=body.split(":").map(function(v){return v.replace(/^\\s+/,"").replace(/\\s+$/,"")});if(2===options.length)switch(options[0]){case"ignore":switch(options[1]){case"start":self.ignoringLinterErrors=!0,isSpecial=!1;break;case"end":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if("*"===ch1&&"/"===ch2)return this.trigger("error",{code:"E018",line:startLine,character:startChar}),this.skip(2),null;if("/"!==ch1||"*"!==ch2&&"/"!==ch2)return null;if("/"===ch2)return this.skip(this.input.length),commentToken("//",rest);var body="";if("*"===ch2){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(body+="\\n",!this.nextLine())return this.trigger("error",{code:"E017",line:startLine,character:startChar}),this.inComment=!1,commentToken("/*",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken("/*",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id="",index=0,readUnicodeEscapeSequence=function(){if(index+=1,"u"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,"\\\\u"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case"true":case"false":type=Token.BooleanLiteral;break;case"null":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return"$"===ch||"_"===ch||"\\\\"===ch||ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch}var bad,index=0,value="",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if("."!==char&&!isDecimalDigit(char))return null;if("."!==char){for(value=this.peek(index),index+=1,char=this.peek(index),"0"===value&&(("x"===char||"X"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),("o"===char||"O"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]}),index+=1,value+=char),("b"===char||"B"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if("."===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if("e"===char||"E"===char){if(value+=char,index+=1,char=this.peek(index),("+"===char||"-"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case"\'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\\'"]},checks,function(){return state.jsonMode});break;case"b":char="\\\\b";break;case"f":char="\\\\f";break;case"n":char="\\\\n";break;case"r":char="\\\\r";break;case"t":char="\\\\t";break;case"0":char="\\\\0";var n=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case"u":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\v"]},checks,function(){return state.jsonMode}),char="\x0B";break;case"x":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\x-"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case"\\\\":char="\\\\\\\\";break;case\'"\':char=\'\\\\"\';break;case"/":break;case"":allowNewLine=!0,char=""}return{"char":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value="",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if("`"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,"char":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||"}"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;"`"!==this.peek();){for(;""===(ch=this.peek());)if(value+="\\n",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if("$"===ch&&"{"===this.peek(1))return value+="${",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()};\nif("\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else"`"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if(\'"\'!==quote&&"\'"!==quote)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},checks,function(){return state.jsonMode&&\'"\'!==quote});var value="",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(""===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine())return this.trigger("error",{code:"E029",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(" ">char&&this.trigger("warning",{code:"W113",line:this.line,character:this.char,data:[""]}),"\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body="",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){" ">char&&(malformed=!0,this.trigger("warning",{code:"W048",line:this.line,character:this.char})),"<"===char&&(malformed=!0,this.trigger("warning",{code:"W049",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||"/"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)"]"===char&&("\\\\"!==this.peek(index-1)||"\\\\"===this.peek(index-2))&&(isCharSet=!1),"\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if("\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),"/"===char){index+=1;continue}if("["===char){index+=1;continue}}if("["!==char){if("/"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(""))}catch(err){malformed=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith("/*","//")||this.inComment&&endsWith("*/")||(this.input="")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger("warning",{code:"W125",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger("warning",{code:"W100",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen=0;--i){var scopeLabels=_scopeStack[i]["(labels)"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(usages)"][labelName])return current["(usages)"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if("outer"===state.option.shadow)for(var isGlobal="global"===_currentFunctBody["(type)"],isNewFunction="functionparams"===_current["(type)"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem["(labels)"][labelName]&&warning("W123",token,labelName),stackItem["(breakLabels)"][labelName]&&warning("W123",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&"function"===type||"function"!==type)&&warning("W003",token,labelName)}var _current,_scopeStack=[];_newScope("global"),_current["(predefined)"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt="last-param"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning("W098",{line:line,from:chr},raw_name),(unused_opt||"var"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0]["(predefined)"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||"functionparams"!==previousScope["(type)"]||(_current["(isFuncBody)"]=!0,_current["(context)"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams="functionparams"===_current["(type)"],isUnstackingFunctionOuter="functionouter"===_current["(type)"],currentUsages=_current["(usages)"],currentLabels=_current["(labels)"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf("__proto__")&&usedLabelNameList.push("__proto__"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel["(type)"];if(usedLabel["(useOutsideOfScope)"]&&!state.option.funcscope){var usedTokens=usage["(tokens)"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel["(function)"]===usedTokens[j]["(function)"]&&error("W038",usedTokens[j],usedLabelName)}if(_current["(labels)"][usedLabelName]["(unused)"]=!1,"const"===usedLabelType&&usage["(modified)"])for(j=0;usage["(modified)"].length>j;j++)error("E013",usage["(modified)"][j],usedLabelName);if(("function"===usedLabelType||"class"===usedLabelType)&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)error("W021",usage["(reassigned)"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct["(isCapturing)"]=!0),subScope)if(subScope["(usages)"][usedLabelName]){var subScopeUsage=subScope["(usages)"][usedLabelName];subScopeUsage["(modified)"]=subScopeUsage["(modified)"].concat(usage["(modified)"]),subScopeUsage["(tokens)"]=subScopeUsage["(tokens)"].concat(usage["(tokens)"]),subScopeUsage["(reassigned)"]=subScopeUsage["(reassigned)"].concat(usage["(reassigned)"]),subScopeUsage["(onlyUsedSubFunction)"]=!1}else subScope["(usages)"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope["(usages)"][usedLabelName]["(onlyUsedSubFunction)"]=!0);else if("boolean"==typeof _current["(predefined)"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current["(predefined)"][usedLabelName]===!1&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)warning("W020",usage["(reassigned)"][j])}else if(usage["(tokens)"])for(j=0;usage["(tokens)"].length>j;j++){var undefinedToken=usage["(tokens)"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning("W117",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],"var")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName]["(blockscoped)"]||"exception"===currentLabels[defLabelName]["(type)"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope["(labels)"][defLabelName]=currentLabels[defLabelName],"global"!==_currentFunctBody["(type)"]&&(subScope["(labels)"][defLabelName]["(useOutsideOfScope)"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope["(isFuncBody)"]||"global"===scope["(type)"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||"param","exception"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&"exception"!==previouslyDefinedLabelType&&(state.option.node||warning("W002",state.tokens.next,labelName))}if(_.has(_current["(labels)"],labelName)?_current["(labels)"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current["(labels)"][labelName]={"(type)":type,"(token)":token,"(unused)":!0},_current["(params)"].push(labelName)),_.has(_current["(usages)"],labelName)){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}},validateParams:function(){if("global"!==_currentFunctBody["(type)"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody["(parent)"];currentFunctParamScope["(params)"]&¤tFunctParamScope["(params)"].forEach(function(labelName){var label=currentFunctParamScope["(labels)"][labelName];label&&label.duplicated&&(isStrict?warning("E011",label["(token)"],labelName):state.option.shadow!==!0&&warning("W004",label["(token)"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf("__proto__")&&list.push("__proto__"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return"__proto__"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName]["(type)"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0]["(labels)"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName]["(unused)"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope["(type)"])break;if(_.has(scope["(labels)"],labelName)&&!scope["(labels)"][labelName]["(blockscoped)"])return scope["(labels)"][labelName]["(unused)"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token)\n},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"\'"!==data.quote&&(code="W109"),"double"===quotmark&&\'"\'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable \'(.+)\'.",\'Missing "use strict"\']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\[\'{a}\'\\\\] is better written in dot notation.","\'{a}\' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{([\'"]/.test(str)?(error.reason=\'Missing ";" before statement\',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"\'{a}\' is not defined."==raw?type="warning":"\'{a}\' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\x0B\\f\\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'},function(e,t){ace.define('ace/theme/monokai',['require','exports','module','ace/lib/dom'],function(e,t,n){t.isDark=!0;t.cssClass='ace-monokai';t.cssText='.ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}';var r=e('../lib/dom');r.importCssString(t.cssText,t.cssClass)})}]); +*/var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function r(e){if(null===e||e===void 0){throw new TypeError('Object.assign cannot be called with null or undefined')}return Object(e)}function o(){try{if(!Object.assign){return!1}var e=new String('abc');e[5]='de';if('5'===Object.getOwnPropertyNames(e)[0]){return!1}for(var t={},n=0;10>n;n++){t['_'+String.fromCharCode(n)]=n}var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if('0123456789'!==r.join('')){return!1}var o={};['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t'].forEach(function(e){o[e]=e});if('abcdefghijklmnopqrst'!==Object.keys(Object.assign({},o)).join('')){return!1}return!0}catch(e){return!1}}e.exports=o()?Object.assign:function(e,t){for(var n,o=r(e),l,d=1;dt.index)this.lastIndex--}return t};if(!l){RegExp.prototype.test=function(e){var t=a.exec.call(this,e);if(t&&this.global&&!t[0].length&&this.lastIndex>t.index)this.lastIndex--;return!!t}}function r(e){return(e.global?'g':'')+(e.ignoreCase?'i':'')+(e.multiline?'m':'')+(e.extended?'x':'')+(e.sticky?'y':'')}function o(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var r=n||0;rn)e=n}else if(void 0==e){e=0}else if(0>e){e=c(n+e,0)}if(!(e+tl){for(f=p;f--;){this[u+f]=this[l+f]}}if(a&&e===g){this.length=g;this.push.apply(this,o)}else{this.length=g+a;for(f=0;f>>0;if('[object Function]'!=b(t)){throw new TypeError}while(++a>>0,a=Array(o),s=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var l=0;l>>0,a=[],s,l=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var d=0;d>>0,a=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var s=0;s>>0,a=arguments[1];if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}for(var s=0;s>>0;if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}if(!o&&1==arguments.length){throw new TypeError('reduce of empty array with no initial value')}var a=0,i;if(2<=arguments.length){i=arguments[1]}else{do{if(a in r){i=r[a++];break}if(++a>=o){throw new TypeError('reduce of empty array with no initial value')}}while(!0)}for(;a>>0;if('[object Function]'!=b(t)){throw new TypeError(t+' is not a function')}if(!o&&1==arguments.length){throw new TypeError('reduceRight of empty array with no initial value')}var a,s=o-1;if(2<=arguments.length){a=arguments[1]}else{do{if(s in r){a=r[s--];break}if(0>--s){throw new TypeError('reduceRight of empty array with no initial value')}}while(!0)}do{if(s in this){a=t.call(void 0,a,r[s],s,n)}}while(s--);return a}}if(!Array.prototype.indexOf||-1!=[0,1].indexOf(1,2)){Array.prototype.indexOf=function e(t){var n=F&&'[object String]'==b(this)?this.split(''):H(this),r=n.length>>>0;if(!r){return-1}var o=0;if(1>>0;if(!r){return-1}var o=r-1;if(1t.isIE;t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&'Gecko'===window.navigator.product;t.isOldGecko=t.isGecko&&4>parseInt((o.match(/rv:(\d+)/)||[])[1],10);t.isOpera=window.opera&&'[object Opera]'==Object.prototype.toString.call(window.opera);t.isWebKit=parseFloat(o.split('WebKit/')[1])||void 0;t.isChrome=parseFloat(o.split(' Chrome/')[1])||void 0;t.isAIR=0<=o.indexOf('AdobeAIR');t.isIPad=0<=o.indexOf('iPad');t.isTouchPad=0<=o.indexOf('TouchPad');t.isChromeOS=0<=o.indexOf(' CrOS ')});ace.define('ace/lib/event',['require','exports','module','ace/lib/keys','ace/lib/useragent'],function(e,t,n){'use strict';var a=e('./keys'),i=e('./useragent'),s=null,d=0;t.addListener=function(e,t,n){if(e.addEventListener){return e.addEventListener(t,n,!1)}if(e.attachEvent){var r=function(){n.call(e,window.event)};n._wrapper=r;e.attachEvent('on'+t,r)}};t.removeListener=function(e,t,n){if(e.removeEventListener){return e.removeEventListener(t,n,!1)}if(e.detachEvent){e.detachEvent('on'+t,n._wrapper||n)}};t.stopEvent=function(n){t.stopPropagation(n);t.preventDefault(n);return!1};t.stopPropagation=function(t){if(t.stopPropagation)t.stopPropagation();else t.cancelBubble=!0};t.preventDefault=function(t){if(t.preventDefault)t.preventDefault();else t.returnValue=!1};t.getButton=function(t){if('dblclick'==t.type)return 0;if('contextmenu'==t.type||i.isMac&&t.ctrlKey&&!t.altKey&&!t.shiftKey)return 2;if(t.preventDefault){return t.button}else{return{1:0,2:2,4:1}[t.button]}};t.capture=function(e,n,r){function o(a){n&&n(a);r&&r(a);t.removeListener(document,'mousemove',n,!0);t.removeListener(document,'mouseup',o,!0);t.removeListener(document,'dragstart',o,!0)}t.addListener(document,'mousemove',n,!0);t.addListener(document,'mouseup',o,!0);t.addListener(document,'dragstart',o,!0);return o};t.addTouchMoveListener=function(e,n){if('ontouchmove'in e){var r,o;t.addListener(e,'touchstart',function(t){var e=t.changedTouches[0];r=e.clientX;o=e.clientY});t.addListener(e,'touchmove',function(t){var e=1,a=t.changedTouches[0];t.wheelX=-(a.clientX-r)/e;t.wheelY=-(a.clientY-o)/e;r=a.clientX;o=a.clientY;n(t)})}};t.addMouseWheelListener=function(e,n){if('onmousewheel'in e){t.addListener(e,'mousewheel',function(t){var e=8;if(t.wheelDeltaX!==void 0){t.wheelX=-t.wheelDeltaX/e;t.wheelY=-t.wheelDeltaY/e}else{t.wheelX=0;t.wheelY=-t.wheelDelta/e}n(t)})}else if('onwheel'in e){t.addListener(e,'wheel',function(t){var e=0.35;switch(t.deltaMode){case t.DOM_DELTA_PIXEL:t.wheelX=t.deltaX*e||0;t.wheelY=t.deltaY*e||0;break;case t.DOM_DELTA_LINE:case t.DOM_DELTA_PAGE:t.wheelX=5*(t.deltaX||0);t.wheelY=5*(t.deltaY||0);break;}n(t)})}else{t.addListener(e,'DOMMouseScroll',function(t){if(t.axis&&t.axis==t.HORIZONTAL_AXIS){t.wheelX=5*(t.detail||0);t.wheelY=0}else{t.wheelX=0;t.wheelY=5*(t.detail||0)}n(t)})}};t.addMultiMouseDownListener=function(e,n,r,o){var d=0,c,u,p,g={2:'dblclick',3:'tripleclick',4:'quadclick'};function a(a){if(0!==t.getButton(a)){d=0}else if(1l)s.altGr=!0}}}if(e in a.MODIFIER_KEYS){e=-1}if(8&r&&91<=e&&93>=e){e=-1}if(!r&&13===e){var o='location'in n?n.location:n.keyLocation;if(3===o){t(n,r,-e);if(n.defaultPrevented)return}}if(i.isChromeOS&&8&r){t(n,r,e);if(n.defaultPrevented)return;else r&=-9}if(!r&&!(e in a.FUNCTION_KEYS)&&!(e in a.PRINTABLE_KEYS)){return!1}return t(n,r,e)}t.addCommandKeyListener=function(e,n){var a=t.addListener;if(i.isOldGecko||i.isOpera&&!('KeyboardEvent'in window)){var l=null;a(e,'keydown',function(t){l=t.keyCode});a(e,'keypress',function(t){return r(n,t,l)})}else{var d=null;a(e,'keydown',function(t){s[t.keyCode]=(s[t.keyCode]||0)+1;var e=r(n,t,t.keyCode);d=t.defaultPrevented;return e});a(e,'keypress',function(n){if(d&&(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)){t.stopEvent(n);d=null}});a(e,'keyup',function(t){s[t.keyCode]=null});if(!s){o();a(window,'focus',o)}}};function o(){s=Object.create(null)}if('object'==typeof window&&window.postMessage&&!i.isOldIE){var u=1;t.nextTick=function(n,r){r=r||window;var o='zero-timeout-message-'+u;t.addListener(r,'message',function a(i){if(i.data==o){t.stopPropagation(i);t.removeListener(r,'message',a);n()}});r.postMessage(o,'*')}}t.nextFrame='object'==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame);if(t.nextFrame)t.nextFrame=t.nextFrame.bind(window);else t.nextFrame=function(e){setTimeout(e,17)}});ace.define('ace/lib/lang',['require','exports','module'],function(e,t,n){'use strict';t.last=function(e){return e[e.length-1]};t.stringReverse=function(e){return e.split('').reverse().join('')};t.stringRepeat=function(e,t){var n='';while(0>=1)e+=e}return n};var r=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,'')};t.stringTrimRight=function(e){return e.replace(o,'')};t.copyObject=function(e){var t={};for(var n in e){t[n]=e[n]}return t};t.copyArray=function(e){for(var t=[],n=0,r=e.length;no.isChrome,l=o.isIE,c=function(e,t){var p=a.createElement('textarea');p.className='ace_text-input';if(o.isTouchPad)p.setAttribute('x-palm-disable-auto-cap',!0);p.setAttribute('wrap','off');p.setAttribute('autocorrect','off');p.setAttribute('autocapitalize','off');p.setAttribute('spellcheck',!1);p.style.opacity='0';if(o.isOldIE)p.style.top='-1000px';e.insertBefore(p,e.firstChild);var g='\x01\x01',f=!1,h=!1,m=!1,b='',y=!0;try{var v=document.activeElement===p}catch(t){}r.addListener(p,'blur',function(n){t.onBlur(n);v=!1});r.addListener(p,'focus',function(r){v=!0;t.onFocus(r);n()});this.focus=function(){if(b)return p.focus();var e=p.style.top;p.style.position='fixed';p.style.top='0px';p.focus();setTimeout(function(){p.style.position='';if('0px'==p.style.top)p.style.top=e},0)};this.blur=function(){p.blur()};this.isFocused=function(){return v};var k=i.delayedCall(function(){v&&n(y)}),x=i.delayedCall(function(){if(!m){p.value=g;v&&n()}});function n(e){if(m)return;m=!0;if(_){t=0;n=e?0:p.value.length-1}else{var t=e?2:1,n=2}try{p.setSelectionRange(t,n)}catch(t){}m=!1}function u(){if(m)return;p.value=g;if(o.isWebKit)x.schedule()}o.isWebKit||t.addEventListener('changeSelection',function(){if(t.selection.isEmpty()!=y){y=!y;k.schedule()}});u();if(v)t.onFocus();var w=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length};if(!p.setSelectionRange&&p.createTextRange){p.setSelectionRange=function(e,t){var n=this.createTextRange();n.collapse(!0);n.moveStart('character',e);n.moveEnd('character',t);n.select()};w=function(e){try{var t=e.ownerDocument.selection.createRange()}catch(t){}if(!t||t.parentElement()!=e)return!1;return t.text==e.value}}if(o.isOldIE){var C=!1,A=function(t){if(C)return;var e=p.value;if(m||!e||e==g)return;if(t&&e==g[0])return E.schedule();T(e);C=!0;u();C=!1},E=i.delayedCall(A);r.addListener(p,'propertychange',A);var F={13:1,27:1};r.addListener(p,'keyup',function(t){if(m&&(!p.value||F[t.keyCode]))setTimeout(j,0);if(129>(p.value.charCodeAt(0)||0)){return E.call()}m?N():O()});r.addListener(p,'keydown',function(t){E.schedule(50)})}var S=function(r){if(f){f=!1}else if(w(p)){t.selectAll();n()}else if(_){n(t.selection.isEmpty())}},_=null;this.setInputHandler=function(e){_=e};this.getInputHandler=function(){return _};var L=!1,T=function(e){if(_){e=_(e);_=null}if(h){n();if(e)t.onPaste(e);h=!1}else if(e==g.charAt(0)){if(L)t.execCommand('del',{source:'ace'});else t.execCommand('backspace',{source:'ace'})}else{if(e.substring(0,2)==g)e=e.substr(2);else if(e.charAt(0)==g.charAt(0))e=e.substr(1);else if(e.charAt(e.length-1)==g.charAt(0))e=e.slice(0,-1);if(e.charAt(e.length-1)==g.charAt(0))e=e.slice(0,-1);if(e)t.onTextInput(e)}if(L)L=!1},D=function(t){if(m)return;var e=p.value;T(e);u()},B=function(t,n,r){var e=t.clipboardData||window.clipboardData;if(!e||s)return;var o=l||r?'Text':'text/plain';try{if(n){return!1!==e.setData(o,n)}else{return e.getData(o)}}catch(t){if(!r)return B(t,n,!0)}},$=function(o,e){var a=t.getCopyText();if(!a)return r.preventDefault(o);if(B(o,a)){e?t.onCut():t.onCopy();r.preventDefault(o)}else{f=!0;p.value=a;p.select();setTimeout(function(){f=!1;u();n();e?t.onCut():t.onCopy()})}},R=function(t){$(t,!0)},M=function(t){$(t,!1)},P=function(a){var e=B(a);if('string'==typeof e){if(e)t.onPaste(e,a);if(o.isIE)setTimeout(n);r.preventDefault(a)}else{p.value='';h=!0}};r.addCommandKeyListener(p,t.onCommandKey.bind(t));r.addListener(p,'select',S);r.addListener(p,'input',D);r.addListener(p,'cut',R);r.addListener(p,'copy',M);r.addListener(p,'paste',P);if(!('oncut'in p)||!('oncopy'in p)||!('onpaste'in p)){r.addListener(e,'keydown',function(t){if(o.isMac&&!t.metaKey||!t.ctrlKey)return;switch(t.keyCode){case 67:M(t);break;case 86:P(t);break;case 88:R(t);break;}})}var O=function(n){if(m||!t.onCompositionStart||t.$readOnly)return;m={};m.canUndo=t.session.$undoManager;t.onCompositionStart();setTimeout(N,0);t.on('mousedown',j);if(m.canUndo&&!t.selection.isEmpty()){t.insert('');t.session.markUndoGroup();t.selection.clearSelection()}t.session.markUndoGroup()},N=function(){if(!m||!t.onCompositionUpdate||t.$readOnly)return;var e=p.value.replace(/\x01/g,'');if(m.lastValue===e)return;t.onCompositionUpdate(e);if(m.lastValue)t.undo();if(m.canUndo)m.lastValue=e;if(m.lastValue){var n=t.selection.getRange();t.insert(m.lastValue);t.session.markUndoGroup();m.range=t.selection.getRange();t.selection.setRange(n);t.selection.clearSelection()}},j=function(n){if(!t.onCompositionEnd||t.$readOnly)return;var e=m;m=!1;var r=setTimeout(function(){r=null;var t=p.value.replace(/\x01/g,'');if(m)return;else if(t==e.lastValue)u();else if(!e.lastValue&&t){u();T(t)}});_=function n(o){if(r)clearTimeout(r);o=o.replace(/\x01/g,'');if(o==e.lastValue)return'';if(e.lastValue&&r)t.undo();return o};t.onCompositionEnd();t.removeListener('mousedown',j);if('compositionend'==n.type&&e.range){t.selection.setRange(e.range)}if(o.isChrome&&53<=o.isChrome){D()}},I=i.delayedCall(N,50);r.addListener(p,'compositionstart',O);if(o.isGecko){r.addListener(p,'text',function(){I.schedule()})}else{r.addListener(p,'keyup',function(){I.schedule()});r.addListener(p,'keydown',function(){I.schedule()})}r.addListener(p,'compositionend',j);this.getElement=function(){return p};this.setReadOnly=function(e){p.readOnly=e};this.onContextMenu=function(r){L=!0;n(t.selection.isEmpty());t._emit('nativecontextmenu',{target:t,domEvent:r});this.moveToMouse(r,!0)};this.moveToMouse=function(n,e){if(!e&&o.isOldIE)return;if(!b)b=p.style.cssText;p.style.cssText=(e?'z-index:100000;':'')+'height:'+p.style.height+';'+(o.isIE?'opacity:0.1;':'');var i=t.container.getBoundingClientRect(),s=a.computedStyle(t.container),l=i.top+(parseInt(s.borderTopWidth)||0),u=i.left+(parseInt(i.borderLeftWidth)||0),g=i.bottom-l-p.clientHeight-2,f=function(t){p.style.left=t.clientX-u-2+'px';p.style.top=d(t.clientY-l-2,g)+'px'};f(n);if('mousedown'!=n.type)return;if(t.renderer.$keepTextAreaAtCursor)t.renderer.$keepTextAreaAtCursor=null;clearTimeout(W);if(o.isWin&&!o.isOldIE)r.capture(t.container,f,c)};this.onContextMenuClose=c;var W;function c(){clearTimeout(W);W=setTimeout(function(){if(b){p.style.cssText=b;b=''}if(null==t.renderer.$keepTextAreaAtCursor){t.renderer.$keepTextAreaAtCursor=!0;t.renderer.$moveTextAreaToCursor()}},o.isOldIE?200:0)}var H=function(n){t.textInput.onContextMenu(n);c()};r.addListener(p,'mouseup',H);r.addListener(p,'mousedown',function(t){t.preventDefault();c()});r.addListener(t.renderer.scroller,'contextmenu',H);r.addListener(p,'contextmenu',H)};t.TextInput=c});ace.define('ace/mouse/default_handlers',['require','exports','module','ace/lib/dom','ace/lib/event','ace/lib/useragent'],function(e,t,n){'use strict';var l=e('../lib/dom'),d=e('../lib/event'),c=e('../lib/useragent'),u=0;function r(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler('mousedown',this.onMouseDown.bind(e));t.setDefaultHandler('dblclick',this.onDoubleClick.bind(e));t.setDefaultHandler('tripleclick',this.onTripleClick.bind(e));t.setDefaultHandler('quadclick',this.onQuadClick.bind(e));t.setDefaultHandler('mousewheel',this.onMouseWheel.bind(e));t.setDefaultHandler('touchmove',this.onTouchMove.bind(e));var n=['select','startSelect','selectEnd','selectAllEnd','selectByWordsEnd','selectByLinesEnd','dragWait','dragWaitEnd','focusWait'];n.forEach(function(t){e[t]=this[t]},this);e.selectByLines=this.extendSelectionBy.bind(e,'getLineRange');e.selectByWords=this.extendSelectionBy.bind(e,'getWordRange')}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,o=e.getButton();if(0!==o){var a=r.getSelectionRange(),i=a.isEmpty();r.$blockScrolling++;if(i||1==o)r.selection.moveToPosition(n);r.$blockScrolling--;if(2==o)r.textInput.onContextMenu(e.domEvent);return}this.mousedownEvent.time=Date.now();if(t&&!r.isFocused()){r.focus();if(this.$focusTimout&&!this.$clickSelection&&!r.inMultiSelectMode){this.setState('focusWait');this.captureMouse(e);return}}this.captureMouse(e);this.startSelect(n,1=s){t=this.$clickSelection.end;if(o.end.row!=r.row||o.end.column!=r.column)r=o.start}else if(1==s&&0<=a){t=this.$clickSelection.start;if(o.start.row!=r.row||o.start.column!=r.column)r=o.end}else if(-1==a&&1==s){r=o.end;t=o.start}else{var l=i(this.$clickSelection,r);r=l.cursor;t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r);n.$blockScrolling--;n.renderer.scrollCursorIntoView()};this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null;this.editor.unsetStyle('ace_selecting');if(this.editor.renderer.scroller.releaseCapture){this.editor.renderer.scroller.releaseCapture()}};this.focusWait=function(){var e=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();if(e>u||t-this.mousedownEvent.time>this.$focusTimout)this.startSelect(this.mousedownEvent.getDocumentPosition())};this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session,o=r.getBracketRange(t);if(o){if(o.isEmpty()){o.start.column--;o.end.column++}this.setState('select')}else{o=n.selection.getWordRange(t.row,t.column);this.setState('selectByWords')}this.$clickSelection=o;this.select()};this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState('selectByLines');var r=n.getSelectionRange();if(r.isMultiLine()&&r.contains(t.row,t.column)){this.$clickSelection=n.selection.getLineRange(r.start.row);this.$clickSelection.end=n.selection.getLineRange(r.end.row).end}else{this.$clickSelection=n.selection.getLineRange(t.row)}this.select()};this.onQuadClick=function(e){var t=this.editor;t.selectAll();this.$clickSelection=t.getSelectionRange();this.setState('selectAll')};this.onMouseWheel=function(e){if(e.getAccelKey())return;if(e.getShiftKey()&&e.wheelY&&!e.wheelX){e.wheelX=e.wheelY;e.wheelY=0}var n=e.domEvent.timeStamp,t=n-(this.$lastScrollTime||0),r=this.editor,o=r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed);if(o||200>t){this.$lastScrollTime=n;r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed);return e.stop()}};this.onTouchMove=function(e){var n=e.domEvent.timeStamp,t=n-(this.$lastScrollTime||0),r=this.editor,o=r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed);if(o||200>t){this.$lastScrollTime=n;r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed);return e.stop()}}}).call(r.prototype);t.DefaultHandlers=r;function o(e,t,n,r){return a(s(n-e,2)+s(r-t,2))}function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row==e.end.row-1&&!e.start.column&&!e.end.column)var n=t.column-4;else var n=2*t.row-e.start.row-e.end.row;if(0>n)return{cursor:e.start,anchor:e.end};else return{cursor:e.end,anchor:e.start}}});ace.define('ace/tooltip',['require','exports','module','ace/lib/oop','ace/lib/dom'],function(e,t,n){'use strict';var o=e('./lib/oop'),a=e('./lib/dom');function r(e){this.isOpen=!1;this.$element=null;this.$parentNode=e}(function(){this.$init=function(){this.$element=a.createElement('div');this.$element.className='ace_tooltip';this.$element.style.display='none';this.$parentNode.appendChild(this.$element);return this.$element};this.getElement=function(){return this.$element||this.$init()};this.setText=function(e){a.setInnerText(this.getElement(),e)};this.setHtml=function(e){this.getElement().innerHTML=e};this.setPosition=function(e,t){this.getElement().style.left=e+'px';this.getElement().style.top=t+'px'};this.setClassName=function(e){a.addCssClass(this.getElement(),e)};this.show=function(e,t,n){if(null!=e)this.setText(e);if(null!=t&&null!=n)this.setPosition(t,n);if(!this.isOpen){this.getElement().style.display='block';this.isOpen=!0}};this.hide=function(){if(this.isOpen){this.getElement().style.display='none';this.isOpen=!1}};this.getHeight=function(){return this.getElement().offsetHeight};this.getWidth=function(){return this.getElement().offsetWidth}}).call(r.prototype);t.Tooltip=r});ace.define('ace/mouse/default_gutter_handler',['require','exports','module','ace/lib/dom','ace/lib/oop','ace/lib/event','ace/tooltip'],function(e,t,n){'use strict';var a=e('../lib/dom'),i=e('../lib/oop'),s=e('../lib/event'),l=e('../tooltip').Tooltip;function r(t){var i=t.editor,l=i.renderer.$gutterLayer,d=new o(i.container);t.editor.setDefaultHandler('guttermousedown',function(n){if(!i.isFocused()||0!=n.getButton())return;var e=l.getRegion(n);if('foldWidgets'==e)return;var r=n.getDocumentPosition().row,o=i.session.selection;if(n.getShiftKey())o.selectTo(r,0);else{if(2==n.domEvent.detail){i.selectAll();return n.preventDefault()}t.$clickSelection=i.selection.getLineRange(r)}t.setState('selectByLines');t.captureMouse(n);return n.preventDefault()});var c,u,p;function e(){var e=u.getDocumentPosition().row,o=l.$annotations[e];if(!o)return n();var a=i.session.getLength();if(e==a){var s=i.renderer.pixelToScreenCoordinates(0,u.y).row,c=u.$pos;if(s>i.session.documentToScreenRow(c.row,c.column))return n()}if(p==o)return;p=o.text.join('
    ');d.setHtml(p);d.show();i._signal('showGutterTooltip',d);i.on('mousewheel',n);if(t.$tooltipFollowsMouse){r(u)}else{var g=u.domEvent.target,f=g.getBoundingClientRect(),h=d.getElement().style;h.left=f.right+'px';h.top=f.bottom+'px'}}function n(){if(c)c=clearTimeout(c);if(p){d.hide();p=null;i._signal('hideGutterTooltip',d);i.removeEventListener('mousewheel',n)}}function r(t){d.setPosition(t.x,t.y)}t.editor.setDefaultHandler('guttermousemove',function(o){var i=o.domEvent.target||o.domEvent.srcElement;if(a.hasCssClass(i,'ace_fold-widget'))return n();if(p&&t.$tooltipFollowsMouse)r(o);u=o;if(c)return;c=setTimeout(function(){c=null;if(u&&!t.isMousePressed)e();else n()},50)});s.addListener(i.renderer.$gutter,'mouseout',function(t){u=null;if(!p||c)return;c=setTimeout(function(){c=null;n()},50)});i.on('changeSession',n)}function o(e){l.call(this,e)}i.inherits(o,l);(function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),a=this.getHeight();e+=15;t+=15;if(e+o>n){e-=e+o-n}if(t+a>r){t-=20+a}l.prototype.setPosition.call(this,e,t)}}).call(o.prototype);t.GutterHandler=r});ace.define('ace/mouse/mouse_event',['require','exports','module','ace/lib/event','ace/lib/useragent'],function(e,t,n){'use strict';var r=e('../lib/event'),o=e('../lib/useragent'),a=t.MouseEvent=function(e,t){this.domEvent=e;this.editor=t;this.x=this.clientX=e.clientX;this.y=this.clientY=e.clientY;this.$pos=null;this.$inSelection=null;this.propagationStopped=!1;this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent);this.propagationStopped=!0};this.preventDefault=function(){r.preventDefault(this.domEvent);this.defaultPrevented=!0};this.stop=function(){this.stopPropagation();this.preventDefault()};this.getDocumentPosition=function(){if(this.$pos)return this.$pos;this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY);return this.$pos};this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection};this.getButton=function(){return r.getButton(this.domEvent)};this.getShiftKey=function(){return this.domEvent.shiftKey};this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(a.prototype)});ace.define('ace/mouse/dragdrop_handler',['require','exports','module','ace/lib/dom','ace/lib/event','ace/lib/useragent'],function(e,t,n){'use strict';var i=e('../lib/dom'),l=e('../lib/event'),c=e('../lib/useragent'),u=200,p=200,g=5;function r(e){var b=e.editor,v=i.createElement('img');v.src='data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';if(c.isOpera)v.style.cssText='width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;';var k=['dragWait','dragWaitEnd','startDrag','dragReadyEnd','onMouseDrag'];k.forEach(function(t){e[t]=this[t]},this);b.addEventListener('mousedown',this.onMouseDown.bind(e));var w=b.container,C,A,E,F,S,_,L=0,T,D,B,$,R;this.onDragStart=function(t){if(this.cancelDrag||!w.draggable){var e=this;setTimeout(function(){e.startSelect();e.captureMouse(t)},0);return t.preventDefault()}S=b.getSelectionRange();var n=t.dataTransfer;n.effectAllowed=b.getReadOnly()?'copy':'copyMove';if(c.isOpera){b.container.appendChild(v);v.scrollTop=0}n.setDragImage&&n.setDragImage(v,0,0);if(c.isOpera){b.container.removeChild(v)}n.clearData();n.setData('Text',b.session.getTextRange());D=!0;this.setState('drag')};this.onDragEnd=function(t){w.draggable=!1;D=!1;this.setState(null);if(!b.getReadOnly()){var e=t.dataTransfer.dropEffect;if(!T&&'move'==e)b.session.remove(b.getSelectionRange());b.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle('ace_dragging');this.editor.renderer.setCursorStyle('')};this.onDragEnter=function(t){if(b.getReadOnly()||!h(t.dataTransfer))return;A=t.clientX;E=t.clientY;if(!C)a();L++;t.dataTransfer.dropEffect=T=m(t);return l.preventDefault(t)};this.onDragOver=function(t){if(b.getReadOnly()||!h(t.dataTransfer))return;A=t.clientX;E=t.clientY;if(!C){a();L++}if(null!==M)M=null;t.dataTransfer.dropEffect=T=m(t);return l.preventDefault(t)};this.onDragLeave=function(t){L--;if(0>=L&&C){s();T=null;return l.preventDefault(t)}};this.onDrop=function(t){if(!_)return;var e=t.dataTransfer;if(D){switch(T){case'move':if(S.contains(_.row,_.column)){S={start:_,end:_}}else{S=b.moveText(S,_)}break;case'copy':S=b.moveText(S,_,!0);break;}}else{var n=e.getData('Text');S={start:_,end:b.session.insert(_,n)};b.focus();T=null}s();return l.preventDefault(t)};l.addListener(w,'dragstart',this.onDragStart.bind(e));l.addListener(w,'dragend',this.onDragEnd.bind(e));l.addListener(w,'dragenter',this.onDragEnter.bind(e));l.addListener(w,'dragover',this.onDragOver.bind(e));l.addListener(w,'dragleave',this.onDragLeave.bind(e));l.addListener(w,'drop',this.onDrop.bind(e));function t(e,t){var n=Date.now(),r=!t||e.row!=t.row,a=!t||e.column!=t.column;if(!$||r||a){b.$blockScrolling+=1;b.moveCursorToPosition(e);b.$blockScrolling-=1;$=n;R={x:A,y:E}}else{var i=o(R.x,R.y,A,E);if(i>g){$=null}else if(n-$>=p){b.renderer.scrollCursorIntoView();$=null}}}function n(e,t){var n=Date.now(),r=b.renderer.layerConfig.lineHeight,o=b.renderer.layerConfig.characterWidth,a=b.renderer.scroller.getBoundingClientRect(),i={x:{left:A-a.left,right:a.right-A},y:{top:E-a.top,bottom:a.bottom-E}},s=d(i.x.left,i.x.right),l=d(i.y.top,i.y.bottom),c={row:e.row,column:e.column};if(2>=s/o){c.column+=i.x.left=l/r){c.row+=i.y.top=u)b.renderer.scrollCursorIntoView(c)}else{B=null}}function r(){var e=_;_=b.renderer.screenToTextCoordinates(A,E);t(_,e);n(_,e)}function a(){S=b.selection.toOrientedRange();C=b.session.addMarker(S,'ace_selection',b.getSelectionStyle());b.clearSelection();if(b.isFocused())b.renderer.$cursorLayer.setBlinking(!1);clearInterval(F);r();F=setInterval(r,20);L=0;l.addListener(document,'mousemove',f)}function s(){clearInterval(F);b.session.removeMarker(C);C=null;b.$blockScrolling+=1;b.selection.fromOrientedRange(S);b.$blockScrolling-=1;if(b.isFocused()&&!D)b.renderer.$cursorLayer.setBlinking(!b.getReadOnly());S=null;_=null;L=0;B=null;$=null;l.removeListener(document,'mousemove',f)}var M=null;function f(){if(null==M){M=setTimeout(function(){if(null!=M&&C)s()},20)}}function h(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return'text/plain'==e||'Text'==e})}function m(t){var e=['copy','copymove','all','uninitialized'],n=['move','copymove','linkmove','all','uninitialized'],r=c.isMac?t.altKey:t.ctrlKey,o='uninitialized';try{o=t.dataTransfer.effectAllowed.toLowerCase()}catch(t){}var a='none';if(r&&0<=e.indexOf(o))a='copy';else if(0<=n.indexOf(o))a='move';else if(0<=e.indexOf(o))a='copy';return a}}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;if(e>this.editor.getDragDelay())this.startDrag()};this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1;this.startSelect(this.mousedownEvent.getDocumentPosition());this.selectEnd()};this.dragReadyEnd=function(t){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly());this.editor.unsetStyle('ace_dragging');this.editor.renderer.setCursorStyle('');this.dragWaitEnd()};this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0;e.renderer.$cursorLayer.setBlinking(!1);e.setStyle('ace_dragging');var n=c.isWin?'default':'move';e.renderer.setCursorStyle(n);this.setState('dragReady')};this.onMouseDrag=function(t){var e=this.editor.container;if(c.isIE&&'dragReady'==this.state){var n=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);if(3 ['+this.end.row+'/'+this.end.column+']'};this.contains=function(e,t){return 0==this.compare(e,t)};this.compareRange=function(e){var t,n=e.end,r=e.start;t=this.compare(n.row,n.column);if(1==t){t=this.compare(r.row,r.column);if(1==t){return 2}else if(0==t){return 1}else{return 0}}else if(-1==t){return-2}else{t=this.compare(r.row,r.column);if(-1==t){return-1}else if(1==t){return 42}else{return 0}}};this.comparePoint=function(e){return this.compare(e.row,e.column)};this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)};this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t};this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t};this.isStart=function(e,t){return this.start.row==e&&this.start.column==t};this.setStart=function(e,t){if('object'==typeof e){this.start.column=e.column;this.start.row=e.row}else{this.start.row=e;this.start.column=t}};this.setEnd=function(e,t){if('object'==typeof e){this.end.column=e.column;this.end.row=e.row}else{this.end.row=e;this.end.column=t}};this.inside=function(e,t){if(0==this.compare(e,t)){if(this.isEnd(e,t)||this.isStart(e,t)){return!1}else{return!0}}return!1};this.insideStart=function(e,t){if(0==this.compare(e,t)){if(this.isEnd(e,t)){return!1}else{return!0}}return!1};this.insideEnd=function(e,t){if(0==this.compare(e,t)){if(this.isStart(e,t)){return!1}else{return!0}}return!1};this.compare=function(e,t){if(!this.isMultiLine()){if(e===this.start.row){return tthis.end.column?1:0}}if(ethis.end.row)return 1;if(this.start.row===e)return t>=this.start.column?0:-1;if(this.end.row===e)return t<=this.end.column?0:1;return 0};this.compareStart=function(e,t){if(this.start.row==e&&this.start.column==t){return-1}else{return this.compare(e,t)}};this.compareEnd=function(e,t){if(this.end.row==e&&this.end.column==t){return 1}else{return this.compare(e,t)}};this.compareInside=function(e,t){if(this.end.row==e&&this.end.column==t){return 1}else if(this.start.row==e&&this.start.column==t){return-1}else{return this.compare(e,t)}};this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var r={row:t+1,column:0};else if(this.start.rowt.row||e.row==t.row&&e.column>t.column};this.getRange=function(){var e=this.anchor,t=this.lead;if(this.isEmpty())return s.fromPoints(t,t);if(this.isBackwards()){return s.fromPoints(t,e)}else{return s.fromPoints(e,t)}};this.clearSelection=function(){if(!this.$isEmpty){this.$isEmpty=!0;this._emit('changeSelection')}};this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0);this.moveCursorTo(e,this.doc.getLine(e).length)};this.setRange=this.setSelectionRange=function(e,t){if(t){this.setSelectionAnchor(e.end.row,e.end.column);this.selectTo(e.start.row,e.start.column)}else{this.setSelectionAnchor(e.start.row,e.start.column);this.selectTo(e.end.row,e.end.column)}if(this.getRange().isEmpty())this.$isEmpty=!0;this.$desiredColumn=null};this.$moveSelection=function(e){var t=this.lead;if(this.$isEmpty)this.setSelectionAnchor(t.row,t.column);e.call(this)};this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})};this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})};this.moveTo=function(e,t){this.clearSelection();this.moveCursorTo(e,t)};this.moveToPosition=function(e){this.clearSelection();this.moveCursorToPosition(e)};this.selectUp=function(){this.$moveSelection(this.moveCursorUp)};this.selectDown=function(){this.$moveSelection(this.moveCursorDown)};this.selectRight=function(){this.$moveSelection(this.moveCursorRight)};this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)};this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)};this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)};this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)};this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)};this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)};this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)};this.getWordRange=function(e,t){if('undefined'==typeof t){var n=e||this.lead;e=n.row;t=n.column}return this.session.getWordRange(e,t)};this.selectWord=function(){this.setSelectionRange(this.getWordRange())};this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)};this.getLineRange=function(e,t){var n='number'==typeof e?e:this.lead.row,r,o=this.session.getFoldLine(n);if(o){n=o.start.row;r=o.end.row}else{r=n}if(!0===t)return new s(n,0,r,this.session.getLine(r).length);else return new s(n,0,r+1,0)};this.selectLine=function(){this.setSelectionRange(this.getLineRange())};this.moveCursorUp=function(){this.moveCursorBy(-1,0)};this.moveCursorDown=function(){this.moveCursorBy(1,0)};this.moveCursorLeft=function(){var e=this.lead.getPosition(),t;if(t=this.session.getFoldAt(e.row,e.column,-1)){this.moveCursorTo(t.start.row,t.start.column)}else if(0===e.column){if(0=n.length){this.moveCursorTo(e,n.length);this.moveCursorRight();if(e=t){this.moveCursorTo(e,0);this.moveCursorLeft();if(0n){a.lastIndex=0;while((r=e[n])&&!a.test(r)){a.lastIndex=0;n++;if(o.test(r)){if(2u){var y=e.substring(u,b-m.length);if(g.type==f){g.value+=y}else{if(g.type)c.push(g);g={type:f,value:y}}}for(var v=0;vo){if(p>2*e.length){this.reportError('infinite loop with in ace tokenizer',{startState:t,line:e})}while(uthis.$tokenIndex){this.$row-=1;if(0>this.$row){this.$row=0;return null}this.$rowTokens=this.$session.getTokens(this.$row);this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]};this.stepForward=function(){this.$tokenIndex+=1;var e;while(this.$tokenIndex>=this.$rowTokens.length){this.$row+=1;if(!e)e=this.$session.getLength();if(this.$row>=e){this.$row=e-1;return null}this.$rowTokens=this.$session.getTokens(this.$row);this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]};this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]};this.getCurrentTokenRow=function(){return this.$row};this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(n!==void 0)return n;n=0;while(0e.length){w=e.length}});if(c==Infinity){c=w;s=!1;d=!1}if(p&&0!=c%u)c=i(c/u)*u;o(d?y:m)};this.toggleBlockComment=function(e,t,n,r){var o=this.blockComment;if(!o)return;if(!o.start&&o[0])o=o[0];var a=new d(t,r.row,r.column),s=a.getCurrentToken(),l=t.selection,u=t.selection.toOrientedRange(),p,g;if(s&&/comment/.test(s.type)){var f,h;while(s&&/comment/.test(s.type)){var m=s.value.indexOf(o.start);if(-1!=m){var i=a.getCurrentTokenRow(),b=a.getCurrentTokenColumn()+m;f=new c(i,b,i,b+o.start.length);break}s=a.stepBackward()}var a=new d(t,r.row,r.column),s=a.getCurrentToken();while(s&&/comment/.test(s.type)){var m=s.value.indexOf(o.end);if(-1!=m){var i=a.getCurrentTokenRow(),b=a.getCurrentTokenColumn()+m;h=new c(i,b,i,b+o.end.length);break}s=a.stepForward()}if(h)t.remove(h);if(f){t.remove(f);p=f.start.row;g=-o.start.length}}else{g=o.start.length;p=n.start.row;t.insert(n.end,o.end);t.insert(n.start,o.start)}if(u.start.row==p)u.start.column+=g;if(u.end.row==p)u.end.column+=g;t.selection.fromOrientedRange(u)};this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)};this.checkOutdent=function(e,t,n){return!1};this.autoOutdent=function(e,t,n){};this.$getIndent=function(e){return e.match(/^\s*/)[0]};this.createWorker=function(e){return null};this.createModeDelegates=function(e){this.$embeds=[];this.$modes={};for(var t in e){if(e[t]){this.$embeds.push(t);this.$modes[t]=new e[t]}}for(var n=['toggleBlockComment','toggleCommentLines','getNextLineIndent','checkOutdent','autoOutdent','transformAction','getCompletions'],t=0;tthis.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)};function e(e,t,n){var r=n?e.column<=t.column:e.column=this.document.getLength()){n.row=c(0,this.document.getLength()-1);n.column=this.document.getLine(n.row).length}else if(0>e){n.row=0;n.column=0}else{n.row=e;n.column=d(this.document.getLine(n.row).length,c(0,t))}if(0>t)n.column=0;return n}}).call(a.prototype)});ace.define('ace/document',['require','exports','module','ace/lib/oop','ace/apply_delta','ace/lib/event_emitter','ace/range','ace/anchor'],function(e,t,n){'use strict';var r=e('./lib/oop'),o=e('./apply_delta').applyDelta,a=e('./lib/event_emitter').EventEmitter,i=e('./range').Range,s=e('./anchor').Anchor,l=function(e){this.$lines=[''];if(0===e.length){this.$lines=['']}else if(Array.isArray(e)){this.insertMergedLines({row:0,column:0},e)}else{this.insert({row:0,column:0},e)}};(function(){r.implement(this,a);this.setValue=function(e){var t=this.getLength()-1;this.remove(new i(0,0,t,this.getLine(t).length));this.insert({row:0,column:0},e)};this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())};this.createAnchor=function(e,t){return new s(this,e,t)};if(0==='aaa'.split(/a/).length){this.$split=function(e){return e.replace(/\r\n|\r/g,'\n').split('\n')}}else{this.$split=function(e){return e.split(/\r\n|\r|\n/)}}this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:'\n';this._signal('changeNewLineMode')};this.getNewLineCharacter=function(){switch(this.$newLineMode){case'windows':return'\r\n';case'unix':return'\n';default:return this.$autoNewLine||'\n';}};this.$autoNewLine='';this.$newLineMode='auto';this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e;this._signal('changeNewLineMode')};this.getNewLineMode=function(){return this.$newLineMode};this.isNewLine=function(e){return'\r\n'==e||'\r'==e||'\n'==e};this.getLine=function(e){return this.$lines[e]||''};this.getLines=function(e,t){return this.$lines.slice(e,t+1)};this.getAllLines=function(){return this.getLines(0,this.getLength())};this.getLength=function(){return this.$lines.length};this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())};this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row){t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]}else{t=this.getLines(e.start.row,e.end.row);t[0]=(t[0]||'').substring(e.start.column);var n=t.length-1;if(e.end.row-e.start.row==n)t[n]=t[n].substring(0,e.end.column)}return t};this.insertLines=function(e,t){console.warn('Use of document.insertLines is deprecated. Use the insertFullLines method instead.');return this.insertFullLines(e,t)};this.removeLines=function(e,t){console.warn('Use of document.removeLines is deprecated. Use the removeFullLines method instead.');return this.removeFullLines(e,t)};this.insertNewLine=function(e){console.warn('Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead.');return this.insertMergedLines(e,['',''])};this.insert=function(e,t){if(1>=this.getLength())this.$detectNewLine(t);return this.insertMergedLines(e,this.$split(t))};this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);this.applyDelta({start:n,end:r,action:'insert',lines:[t]},!0);return this.clonePos(r)};this.clippedPos=function(e,t){var n=this.getLength();if(e===void 0){e=n}else if(0>e){e=0}else if(e>=n){e=n-1;t=void 0}var r=this.getLine(e);if(t==void 0)t=r.length;t=d(c(t,0),r.length);return{row:e,column:t}};this.clonePos=function(e){return{row:e.row,column:e.column}};this.pos=function(e,t){return{row:e,column:t}};this.$clipPosition=function(e){var t=this.getLength();if(e.row>=t){e.row=c(0,t-1);e.column=this.getLine(t-1).length}else{e.row=c(0,e.row);e.column=d(c(e.column,0),this.getLine(e.row).length)}return e};this.insertFullLines=function(e,t){e=d(c(e,0),this.getLength());var n=0;if(e=e.lines.length&&!e.lines[0]:!i.comparePoints(e.start,e.end)){return}if(n&&2e4r){e.lines=l;e.start.row=o+i;e.start.column=a;break}l.push('');this.applyDelta({start:this.pos(o+i,a),end:this.pos(o+s,a=0),action:e.action,lines:l},!0)}while(!0)};this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:'insert'==e.action?'remove':'insert',lines:e.lines.slice()})};this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=t||0,a=n.length;oe)return{row:o,column:e+n[o].length+r}}return{row:a-1,column:n[a-1].length}};this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=0,a=d(e.row,n.length),s=t||0;se+1)this.currentLine=e+1}else if(this.currentLine==e){this.currentLine=e+1}return this.lines[e]=r.tokens}}).call(a.prototype);t.BackgroundTokenizer=a});ace.define('ace/search_highlight',['require','exports','module','ace/lib/lang','ace/lib/oop','ace/range'],function(e,t,n){'use strict';var r=e('./lib/lang'),o=e('./lib/oop'),a=e('./range').Range,i=function(e,t,n){this.setRegexp(e);this.clazz=t;this.type=n||'text'};(function(){this.MAX_RANGES=500;this.setRegexp=function(e){if(this.regExp+''==e+'')return;this.regExp=e;this.cache=[]};this.update=function(e,t,n,o){if(!this.regExp)return;for(var s=o.firstRow,l=o.lastRow,d=s,i;d<=l;d++){i=this.cache[d];if(null==i){i=r.getMatchOffsets(n.getLine(d),this.regExp);if(i.length>this.MAX_RANGES)i=i.slice(0,this.MAX_RANGES);i=i.map(function(e){return new a(d,e.offset,d,e.offset+e.length)});this.cache[d]=i.length?i:''}for(var c=i.length;c--;){t.drawSingleLineMarker(e,i[c].toScreenRange(n),this.clazz,o)}}}}).call(i.prototype);t.SearchHighlight=i});ace.define('ace/edit_session/fold_line',['require','exports','module','ace/range'],function(e,t,n){'use strict';var o=e('../range').Range;function r(e,t){this.foldData=e;if(Array.isArray(t)){this.folds=t}else{t=this.folds=[t]}var n=t[t.length-1];this.range=new o(t[0].start.row,t[0].start.column,n.end.row,n.end.column);this.start=this.range.start;this.end=this.range.end;this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(e){this.start.row+=e;this.end.row+=e;this.folds.forEach(function(t){t.start.row+=e;t.end.row+=e})};this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow){throw new Error('Can\'t add a fold to this FoldLine as it has no connection')}this.folds.push(e);this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)});if(0this.range.compareStart(e.end.row,e.end.column)){this.start.row=e.start.row;this.start.column=e.start.column}}else if(e.start.row==this.end.row){this.folds.push(e);this.end.row=e.end.row;this.end.column=e.end.column}else if(e.end.row==this.start.row){this.folds.unshift(e);this.start.row=e.start.row;this.start.column=e.start.column}else{throw new Error('Trying to add fold to FoldRow that doesn\'t have a matching row')}e.foldLine=this};this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row};this.walk=function(e,t,n){var r=0,o=this.folds,a,s,l,d=!0;if(null==t){t=this.end.row;n=this.end.column}for(var c=0;ce){return{row:r.start.row,column:r.start.column+e}}e-=r.placeholder.length;if(0>e){return r.start}t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(r.prototype);t.FoldLine=r});ace.define('ace/range_list',['require','exports','module','ace/range'],function(e,t,n){'use strict';var r=e('./range').Range,o=r.comparePoints,a=function(){this.ranges=[]};(function(){this.comparePoints=o;this.pointIndex=function(e,t,n){for(var r=this.ranges,a=n||0;an)n=-n-1;var r=this.pointIndex(e.end,t,n);if(0>r)r=-r-1;else r++;return this.ranges.splice(n,r-n,e)};this.addList=function(e){for(var t=[],n=e.length;n--;){t.push.apply(t,this.add(e[n]))}return t};this.substractPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges.splice(t,1)};this.merge=function(){var e=[],t=this.ranges;t=t.sort(function(e,t){return o(e.start,t.start)});for(var n=t[0],r,a=1;ai)continue;if(0==i&&!r.isEmpty()&&!n.isEmpty())continue;if(0>o(r.end,n.end)){r.end.row=n.end.row;r.end.column=n.end.column}t.splice(a,1);e.push(n);n=r;a--}this.ranges=t;return e};this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})};this.containsPoint=function(e){return 0<=this.pointIndex(e)};this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges[t]};this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.rowr)r=-r-1;var o=this.pointIndex({row:t,column:0},r);if(0>o)o=-o-1;for(var a=[],s=r;sa)break;if(n.start.row==a&&n.start.column>=t.column){if(n.start.column==t.column&&this.$insertRight){}else{n.start.column+=d;n.start.row+=l}}if(n.end.row==a&&n.end.column>=t.column){if(n.end.column==t.column&&this.$insertRight){continue}if(n.end.column==t.column&&0n.start.column&&n.end.column==c[u+1].start.column)n.end.column-=d}n.end.column+=d;n.end.row+=l}}if(0!=l&&u=e){return o}else if(o.end.row>e){return null}}return null};this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;if(t)r=n.indexOf(t);if(-1==r)r=0;for(r;r=e){return o}}return null};this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,o=0;o=t){if(s=e)r-=t-s;else r=0}break}else if(i>=e){if(s>=e)r-=i-s;else r-=i-e+1}}return r};this.$addFoldLine=function(e){this.$foldData.push(e);this.$foldData.sort(function(e,t){return e.start.row-t.start.row});return e};this.addFold=function(e,t){var n=this.$foldData,r=!1,o;if(e instanceof s)o=e;else{o=new s(t,e);o.collapseChildren=t.collapseChildren}this.$clipRangeToDocument(o.range);var l=o.start.row,d=o.start.column,c=o.end.row,u=o.end.column;if(!(ls.length)return;s=s.trim().substring(0,2)+'..'}this.addFold(s,n)};this.getCommentFoldRange=function(e,t,n){var r=new i(this,e,t),a=r.getCurrentToken();if(a&&/^comment|string/.test(a.type)){var s=new o,l=new RegExp(a.type.replace(/\..*/,'\\.'));if(1!=n){do{a=r.stepBackward()}while(a&&l.test(a.type));r.stepForward()}s.start.row=r.getCurrentTokenRow();s.start.column=r.getCurrentTokenColumn()+2;r=new i(this,e,t);if(-1!=n){do{a=r.stepForward()}while(a&&l.test(a.type));a=r.stepBackward()}else a=r.getCurrentToken();s.end.row=r.getCurrentTokenRow();s.end.column=r.getCurrentTokenColumn()+a.value.length-2;return s}};this.foldAll=function(e,t,n){if(n==void 0)n=1e5;var r=this.foldWidgets;if(!r)return;t=t||this.getLength();e=e||0;for(var o=e;o=e){o=a.end.row;try{var i=this.addFold('...',a);if(i)i.collapseChildren=n}catch(t){}}}};this.$foldStyles={manual:1,markbegin:1,markbeginend:1};this.$foldStyle='markbegin';this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error('invalid fold style: '+e+'['+Object.keys(this.$foldStyles).join(', ')+']');if(this.$foldStyle==e)return;this.$foldStyle=e;if('manual'==e)this.unfold();var t=this.$foldMode;this.$setFolding(null);this.$setFolding(t)};this.$setFolding=function(e){if(this.$foldMode==e)return;this.$foldMode=e;this.off('change',this.$updateFoldWidgets);this.off('tokenizerUpdate',this.$tokenizerUpdateFoldWidgets);this._signal('changeAnnotation');if(!e||'manual'==this.$foldStyle){this.foldWidgets=null;return}this.foldWidgets=[];this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle);this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle);this.$updateFoldWidgets=this.updateFoldWidgets.bind(this);this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this);this.on('change',this.$updateFoldWidgets);this.on('tokenizerUpdate',this.$tokenizerUpdateFoldWidgets)};this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var r=e-1,o;while(0<=r){var a=n[r];if(null==a)a=n[r]=this.getFoldWidget(r);if('start'==a){var i=this.getFoldWidgetRange(r);if(!o)o=i;if(i&&i.end.row>=e)break}r--}return{range:-1!=r&&i,firstRange:o}};this.onFoldWidgetClick=function(t,n){n=n.domEvent;var e={children:n.shiftKey,all:n.ctrlKey||n.metaKey,siblings:n.altKey},r=this.$toggleFoldWidget(t,e);if(!r){var o=n.target||n.srcElement;if(o&&/ace_fold-widget/.test(o.className))o.className+=' ace_invalid'}};this.$toggleFoldWidget=function(e,t){if(!this.getFoldWidget)return;var n=this.getFoldWidget(e),r=this.getLine(e),o='end'===n?-1:1,a=this.getFoldAt(e,-1===o?0:r.length,o);if(a){if(t.children||t.all)this.removeFold(a);else this.expandFold(a);return a}var i=this.getFoldWidgetRange(e,!0);if(i&&!i.isMultiLine()){a=this.getFoldAt(i.start.row,i.start.column,1);if(a&&i.isEqual(a.range)){this.removeFold(a);return a}}if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range){var l=s.range.start.row+1,d=s.range.end.row}this.foldAll(l,d,t.all?1e4:0)}else if(t.children){d=i?i.end.row:this.getLength();this.foldAll(e+1,d,t.all?1e4:0)}else if(i){if(t.all)i.collapseChildren=1e4;this.addFold('...',i)}return i};this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(n)return;var r=this.getParentFoldRangeData(t,!0);n=r.range||r.firstRange;if(n){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);if(o){this.removeFold(o)}else{this.addFold('...',n)}}};this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0==n){this.foldWidgets[t]=null}else if('remove'==e.action){this.foldWidgets.splice(t,n+1,null)}else{var r=Array(n+1);r.unshift(t,1);this.foldWidgets.splice.apply(this.foldWidgets,r)}};this.tokenizerUpdateFoldWidgets=function(t){var e=t.data;if(e.first!=e.last){if(this.foldWidgets.length>e.first)this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}t.Folding=r});ace.define('ace/edit_session/bracket_match',['require','exports','module','ace/token_iterator','ace/range'],function(e,t,n){'use strict';var o=e('../token_iterator').TokenIterator,a=e('../range').Range;function r(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(''==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);if(!r)return null;if(r[1])return this.$findClosingBracket(r[1],e);else return this.$findOpeningBracket(r[2],e)};this.getBracketRange=function(e){var t=this.getLine(e.row),n=!0,r,o=t.charAt(e.column-1),i=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(!i){o=t.charAt(e.column);e={row:e.row,column:e.column+1};i=o&&o.match(/([\(\[\{])|([\)\]\}])/);n=!1}if(!i)return null;if(i[1]){var s=this.$findClosingBracket(i[1],e);if(!s)return null;r=a.fromPoints(e,s);if(!n){r.end.column++;r.start.column--}r.cursor=r.end}else{var s=this.$findOpeningBracket(i[2],e);if(!s)return null;r=a.fromPoints(s,e);if(!n){r.start.column++;r.end.column--}r.cursor=r.start}return r};this.$brackets={")":'(',"(":')',"]":'[',"[":']',"{":'}',"}":'{'};this.$findOpeningBracket=function(e,t,n){var r=this.$brackets[e],a=1,i=new o(this,t.row,t.column),s=i.getCurrentToken();if(!s)s=i.stepForward();if(!s)return;if(!n){n=new RegExp('(\\.?'+s.type.replace('.','\\.').replace('rparen','.paren').replace(/\b(?:end)\b/,'(?:start|begin|end)')+')+')}var l=t.column-i.getCurrentTokenColumn()-2,d=s.value;while(!0){while(0<=l){var c=d.charAt(l);if(c==r){a-=1;if(0==a){return{row:i.getCurrentTokenRow(),column:l+i.getCurrentTokenColumn()}}}else if(c==e){a+=1}l-=1}do{s=i.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;d=s.value;l=d.length-1}return null};this.$findClosingBracket=function(e,t,n){var r=this.$brackets[e],a=1,i=new o(this,t.row,t.column),s=i.getCurrentToken();if(!s)s=i.stepForward();if(!s)return;if(!n){n=new RegExp('(\\.?'+s.type.replace('.','\\.').replace('lparen','.paren').replace(/\b(?:start|begin)\b/,'(?:start|begin|end)')+')+')}var l=t.column-i.getCurrentTokenColumn();while(!0){var d=s.value,c=d.length;while(ln){this.$docRowCache.splice(n,t);this.$screenRowCache.splice(n,t)}};this.$getRowCacheIndex=function(e,t){var n=0,r=e.length-1;while(n<=r){var o=n+r>>1,a=e[o];if(t>a)n=o+1;else if(t=t)break}}r=n[a];if(!r)return null;r.index=a;r.start=o-r.value.length;return r};this.setUndoManager=function(e){this.$undoManager=e;this.$deltas=[];this.$deltasDoc=[];this.$deltasFold=[];if(this.$informUndoManager)this.$informUndoManager.cancel();if(e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel();if(t.$deltasFold.length){t.$deltas.push({group:'fold',deltas:t.$deltasFold});t.$deltasFold=[]}if(t.$deltasDoc.length){t.$deltas.push({group:'doc',deltas:t.$deltasDoc});t.$deltasDoc=[]}if(0e)e=t.screenWidth});return this.lineWidgetWidth=e};this.$computeWidth=function(e){if(this.$modified||e){this.$modified=!1;if(this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,o=0,a=this.$foldData[o],s=a?a.start.row:Infinity,l=t.length,d=0;ds){d=a.end.row+1;if(d>=l)break;a=this.$foldData[o++];s=a?a.start.row:Infinity}if(null==n[d])n[d]=this.$getStringScreenWidth(t[d])[0];if(n[d]>r)r=n[d]}this.screenWidth=r}};this.getLine=function(e){return this.doc.getLine(e)};this.getLines=function(e,t){return this.doc.getLines(e,t)};this.getLength=function(){return this.doc.getLength()};this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())};this.insert=function(e,t){return this.doc.insert(e,t)};this.remove=function(e){return this.doc.remove(e)};this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)};this.undoChanges=function(e,t){if(!e.length)return;this.$fromUndo=!0;for(var n=null,r=e.length-1,o;-1!=r;r--){o=e[r];if('doc'==o.group){this.doc.revertDeltas(o.deltas);n=this.$getUndoSelection(o.deltas,!0,n)}else{o.deltas.forEach(function(e){this.addFolds(e.folds)},this)}}this.$fromUndo=!1;n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n);return n};this.redoChanges=function(e,t){if(!e.length)return;this.$fromUndo=!0;for(var n=null,r=0,o;re.end.column)a.start.column+=s;if(a.end.row==e.end.row&&a.end.column>e.end.column)a.end.column+=s}if(i&&a.start.row>=e.end.row){a.start.row+=i;a.end.row+=i}}a.end=this.insert(a.start,r);if(o.length){var l=e.start,d=a.start,i=d.row-l.row,s=d.column-l.column;this.addFolds(o.map(function(e){e=e.clone();if(e.start.row==l.row)e.start.column+=s;if(e.end.row==l.row)e.end.column+=s;e.start.row+=i;e.end.row+=i;return e}))}return a};this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)};this.outdentRows=function(e){for(var t=e.collapseRows(),n=new f(0,0,0,0),r=this.getTabSize(),o=t.start.row,a;o<=t.end.row;++o){a=this.getLine(o);n.start.row=o;n.end.row=o;for(var i=0;in){var r=this.getRowFoldStart(e+n);if(0>r)return 0;var a=r-e}else if(0this.doc.getLength()-1)return 0;var a=r-t}else{e=this.$clipRowToDocument(e);t=this.$clipRowToDocument(t);var a=t-e+1}var i=new f(e,0,t,o),s=this.getFoldsInRange(i).map(function(e){e=e.clone();e.start.row+=a;e.end.row+=a;return e}),l=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);this.doc.insertFullLines(e+a,l);s.length&&this.addFolds(s);return a};this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)};this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)};this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)};this.$clipRowToDocument=function(e){return c(0,d(e,this.doc.getLength()-1))};this.$clipColumnToRow=function(e,t){if(0>t)return 0;return d(this.doc.getLine(e).length,t)};this.$clipPositionToDocument=function(e,t){t=c(0,t);if(0>e){e=0;t=0}else{var n=this.doc.getLength();if(e>=n){e=n-1;t=this.doc.getLine(n-1).length}else{t=d(this.doc.getLine(e).length,t)}}return{row:e,column:t}};this.$clipRangeToDocument=function(e){if(0>e.start.row){e.start.row=0;e.start.column=0}else{e.start.column=this.$clipColumnToRow(e.start.row,e.start.column)}var t=this.doc.getLength()-1;if(e.end.row>t){e.end.row=t;e.end.column=this.doc.getLine(t).length}else{e.end.column=this.$clipColumnToRow(e.end.row,e.end.column)}return e};this.$wrapLimit=80;this.$useWrapMode=!1;this.$wrapLimitRange={min:null,max:null};this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){this.$useWrapMode=e;this.$modified=!0;this.$resetRowCache(0);if(e){var t=this.getLength();this.$wrapData=Array(t);this.$updateWrapData(0,t-1)}this._signal('changeWrapMode')}};this.getUseWrapMode=function(){return this.$useWrapMode};this.setWrapLimitRange=function(e,t){if(this.$wrapLimitRange.min!==e||this.$wrapLimitRange.max!==t){this.$wrapLimitRange={min:e,max:t};this.$modified=!0;if(this.$useWrapMode)this._signal('changeWrapMode')}};this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;if(0>n.max)n={min:t,max:t};var r=this.$constrainWrapLimit(e,n.min,n.max);if(r!=this.$wrapLimit&&1=o.row){u.shiftRow(-s)}}i=a}else{var f=Array(s);f.unshift(a,0);var h=t?this.$wrapData:this.$rowLengthCache;h.splice.apply(h,f);var c=this.$foldData,u=this.getFoldLine(a),p=0;if(u){var m=u.range.compareInside(r.row,r.column);if(0==m){u=u.split(r.row,r.column);if(u){u.shiftRow(s);u.addRemoveChars(i,0,o.column-r.column)}}else if(-1==m){u.addRemoveChars(a,0,o.column-r.column);u.shiftRow(s)}p=c.indexOf(u)+1}for(p;p=a){u.shiftRow(s)}}}}else{s=l(e.start.column-e.end.column);if('remove'===n){d=this.getFoldsInRange(e);this.removeFolds(d);s=-s}var u=this.getFoldLine(a);if(u){u.addRemoveChars(a,r.column,s)}}if(t&&this.$wrapData.length!=this.doc.getLength()){console.error('doc.getLength() and $wrapData.length have to be the same!')}this.$updating=!1;if(t)this.$updateWrapData(a,i);else this.$updateRowLengthCache(a,i);return d};this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null;this.$rowLengthCache[t]=null};this.$updateWrapData=function(e,t){var n=this.doc.getAllLines(),r=this.getTabSize(),o=this.$wrapData,a=this.$wrapLimit,s,i,l=e;t=d(t,n.length-1);while(l<=t){i=this.getFoldLine(l,i);if(!i){s=this.$getDisplayTokens(n[l]);o[l]=this.$computeWrapSplits(s,a,r);l++}else{s=[];i.walk(function(e,t,r,o){var a;if(null!=e){a=this.$getDisplayTokens(e,s.length);a[0]=p;for(var l=1;lt-w){var C=u+t-w;if(e[C-1]>=v&&e[C]>=v){a(C);continue}if(e[C]==p||e[C]==h){for(C;C!=u-1;C--){if(e[C]==p){break}}if(C>u){a(C);continue}C=u+t;for(C;C>2)),u-1);while(C>A&&e[C]A&&e[C]A&&e[C]==y){C--}}else{while(C>A&&e[C]A){a(++C);continue}C=u+t;if(e[C]==n)C--;a(C-w)}return s};this.$getDisplayTokens=function(r,o){var a=[],s;o=o||0;for(var l=0,i;li||57i){a.push(y)}else if(4352<=i&&e(i)){a.push(t,n)}else{a.push(t)}}return a};this.$getStringScreenWidth=function(t,n,r){if(0==n)return[0,0];if(null==n)n=Infinity;r=r||0;var o,a;for(a=0;an){break}}return[r,a]};this.lineWidgets=null;this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;if(!this.$useWrapMode||!this.$wrapData[e]){return 1+t}else{return this.$wrapData[e].length+1+t}};this.getRowLineCount=function(e){if(!this.$useWrapMode||!this.$wrapData[e]){return 1}else{return this.$wrapData[e].length+1}};this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]e)return{row:0,column:0};var n,r=0,o=0,a,s=0,d=0,c=this.$screenRowCache,u=this.$getRowCacheIndex(c,e),p=c.length;if(p&&0<=u){var s=c[u],r=this.$docRowCache[u],g=e>c[p-1]}else{var g=!p}var f=this.getLength()-1,h=this.getNextFoldLine(r),m=h?h.start.row:Infinity;while(s<=e){d=this.getRowLength(r);if(s+d>e||r>=f){break}else{s+=d;r++;if(r>m){r=h.end.row+1;h=this.getNextFoldLine(r,h);m=h?h.start.row:Infinity}}if(g){this.$docRowCache.push(r);this.$screenRowCache.push(s)}}if(h&&h.start.row<=r){n=this.getFoldDisplayLine(h);r=h.start.row}else if(s+d<=e||r>f){return{row:f,column:this.getLine(f).length}}else{n=this.getLine(r);h=null}var b=0;if(this.$useWrapMode){var y=this.$wrapData[r];if(y){var v=i(e-s);a=y[v];if(0=a)o=a-1;if(h)return h.idxToPosition(o);return{row:r,column:o}};this.documentToScreenPosition=function(e,t){if('undefined'==typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row;t=n.column;var r=0,o=null,a=null;a=this.getFoldAt(e,t,1);if(a){e=a.start.row;t=a.start.column}var s,d=0,c=this.$docRowCache,u=this.$getRowCacheIndex(c,e),i=c.length;if(i&&0<=u){var d=c[u],r=this.$screenRowCache[u],p=e>c[i-1]}else{var p=!i}var g=this.getNextFoldLine(d),f=g?g.start.row:Infinity;while(d=f){s=g.end.row+1;if(s>e)break;g=this.getNextFoldLine(s,g);f=g?g.start.row:Infinity}else{s=d+1}r+=this.getRowLength(d);d=s;if(p){this.$docRowCache.push(d);this.$screenRowCache.push(r)}}var h='';if(g&&d>=f){h=this.getFoldDisplayLine(g,e,t);o=g.start.row}else{h=this.getLine(e).substring(0,t);o=e}var m=0;if(this.$useWrapMode){var b=this.$wrapData[o];if(b){var y=0;while(h.length>=b[y]){r++;y++}h=h.substring(b[y-1]||0,h.length);m=0i){a=t.end.row+1;t=this.$foldData[r++];i=t?t.start.row:Infinity}}}if(this.lineWidgets)e+=this.$getWidgetScreenLength();return e};this.$setFontMetrics=function(e){if(!this.$enableVarChar)return;this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];if(!n)n=Infinity;r=r||0;var o,a;for(a=0;an){break}}return[r,a]}};this.destroy=function(){if(this.bgTokenizer){this.bgTokenizer.setDocument(null);this.bgTokenizer=null}this.$stopWorker()};function e(e){if(4352>e)return!1;return 4352<=e&&4447>=e||4515<=e&&4519>=e||4602<=e&&4607>=e||9001<=e&&9002>=e||11904<=e&&11929>=e||11931<=e&&12019>=e||12032<=e&&12245>=e||12272<=e&&12283>=e||12288<=e&&12350>=e||12353<=e&&12438>=e||12441<=e&&12543>=e||12549<=e&&12589>=e||12593<=e&&12686>=e||12688<=e&&12730>=e||12736<=e&&12771>=e||12784<=e&&12830>=e||12832<=e&&12871>=e||12880<=e&&13054>=e||13056<=e&&19903>=e||19968<=e&&42124>=e||42128<=e&&42182>=e||43360<=e&&43388>=e||44032<=e&&55203>=e||55216<=e&&55238>=e||55243<=e&&55291>=e||63744<=e&&64255>=e||65040<=e&&65049>=e||65072<=e&&65106>=e||65108<=e&&65126>=e||65128<=e&&65131>=e||65281<=e&&65376>=e||65504<=e&&65510>=e}}).call(y.prototype);e('./edit_session/folding').Folding.call(y.prototype);e('./edit_session/bracket_match').BracketMatch.call(y.prototype);s.defineOptions(y.prototype,'session',{wrap:{set:function(e){if(!e||'off'==e)e=!1;else if('free'==e)e=!0;else if('printMargin'==e)e=-1;else if('string'==typeof e)e=parseInt(e,10)||!1;if(this.$wrap==e)return;this.$wrap=e;if(!e){this.setUseWrapMode(!1)}else{var t='number'==typeof e?e:null;this.setWrapLimitRange(t,t);this.setUseWrapMode(!0)}},get:function(){if(this.getUseWrapMode()){if(-1==this.$wrap)return'printMargin';if(!this.getWrapLimitRange().min)return'free';return this.$wrap}return'off'},handlesSet:!0},wrapMethod:{set:function(e){e='auto'==e?'text'!=this.$mode.type:'text'!=e;if(e!=this.$wrapAsCode){this.$wrapAsCode=e;if(this.$useWrapMode){this.$modified=!0;this.$resetRowCache(0);this.$updateWrapData(0,this.getLength()-1)}}},initialValue:'auto'},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal('changeBreakpoint')},initialValue:1},useWorker:{set:function(e){this.$useWorker=e;this.$stopWorker();if(e)this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){if(isNaN(e)||this.$tabSize===e)return;this.$modified=!0;this.$rowLengthCache=[];this.$tabSize=e;this._signal('changeTabSize')},initialValue:4,handlesSet:!0},overwrite:{set:function(e){this._signal('changeOverwrite')},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}});t.EditSession=y});ace.define('ace/search',['require','exports','module','ace/lib/lang','ace/lib/oop','ace/range'],function(e,t,n){'use strict';var a=e('./lib/lang'),i=e('./lib/oop'),s=e('./range').Range,l=function(){this.$options={}};(function(){this.set=function(e){i.mixin(this.$options,e);return this};this.getOptions=function(){return a.copyObject(this.$options)};this.setOptions=function(e){this.$options=e};this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;n.forEach(function(e,n,o){if(!e.start){var a=e.offset+(o||0);r=new s(n,a,n,a+e.length);if(!e.length&&t.start&&t.start.start&&!1!=t.skipCurrent&&r.isEqual(t.start)){r=null;return!1}}else r=e;return!0});return r};this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,r=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),o=[],l=t.re;if(t.$isMultiLine){var d=l.length,c=r.length-d,u;outer:for(var p=l.offset||0;p<=c;p++){for(var g=0;gm){continue}o.push(u=new s(p,m,p+d-1,b));if(2x&&o[g].end.row==n.end.row)g--;o=o.slice(y,g+1);for(y=0,g=o.length;y=i;r--)if(n(e.getLine(r),r))return;if(!1==t.wrap)return;for(r=s,i=a.row;r>=i;r--)if(n(e.getLine(r),r))return}:function(n){var r=a.row,o=e.getLine(r).substr(a.column);if(n(o,r,a.column))return;for(r=r+1;r<=s;r++)if(n(e.getLine(r),r))return;if(!1==t.wrap)return;for(r=i,s=a.row;r<=s;r++)if(n(e.getLine(r),r))return};return{forEach:l}}}).call(l.prototype);function r(e,t){function n(e){if(/\w/.test(e)||t.regExp)return'\\b';return''}return n(e[0])+e+n(e[e.length-1])}t.Search=l});ace.define('ace/keyboard/hash_handler',['require','exports','module','ace/lib/keys','ace/lib/useragent'],function(e,t,n){'use strict';var a=e('../lib/keys'),i=e('../lib/useragent'),s=a.KEY_MODS;function r(e,t){this.platform=t||(i.isMac?'mac':'win');this.commands={};this.commandKeyBinding={};this.addCommands(e);this.$singleCommand=!0}function o(e,t){r.call(this,e,t);this.$singleCommand=!1}o.prototype=r.prototype;(function(){this.addCommand=function(e){if(this.commands[e.name])this.removeCommand(e);this.commands[e.name]=e;if(e.bindKey)this._buildKeyHash(e)};this.removeCommand=function(e,t){var n=e&&('string'==typeof e?e:e.name);e=this.commands[n];if(!t)delete this.commands[n];var r=this.commandKeyBinding;for(var o in r){var a=r[o];if(a==e){delete r[o]}else if(Array.isArray(a)){var s=a.indexOf(e);if(-1!=s){a.splice(s,1);if(1==a.length)r[o]=a[0]}}}};this.bindKey=function(e,t,n){if('object'==typeof e&&e){if(n==void 0)n=e.position;e=e[this.platform]}if(!e)return;if('function'==typeof t)return this.addCommand({exec:t,bindKey:e,name:t.name||e});e.split('|').forEach(function(e){var r='';if(-1!=e.indexOf(' ')){var o=e.split(/\s+/);e=o.pop();o.forEach(function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;r+=(r?' ':'')+n;this._addCommandToBinding(r,'chainKeys')},this);r+=' '}var a=this.parseKeys(e),i=s[a.hashId]+a.key;this._addCommandToBinding(r+i,t,n)},this)};function e(e){return'object'==typeof e&&e.bindKey&&e.bindKey.position||0}this._addCommandToBinding=function(t,n,r){var o=this.commandKeyBinding,a;if(!n){delete o[t]}else if(!o[t]||this.$singleCommand){o[t]=n}else{if(!Array.isArray(o[t])){o[t]=[o[t]]}else if(-1!=(a=o[t].indexOf(n))){o[t].splice(a,1)}if('number'!=typeof r){if(r||n.isDefault)r=-100;else r=e(n)}var i=o[t];for(a=0;ar)break}i.splice(a,0,n)}};this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(!n)return;if('string'==typeof n)return this.bindKey(n,t);if('function'==typeof n)n={exec:n};if('object'!=typeof n)return;if(!n.name)n.name=t;this.addCommand(n)},this)};this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)};this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)};this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)};this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),r=a[n];if(a.FUNCTION_KEYS[r])n=a.FUNCTION_KEYS[r].toLowerCase();else if(!t.length)return{key:n,hashId:-1};else if(1==t.length&&'shift'==t[0])return{key:n.toUpperCase(),hashId:-1};for(var o=0,s=t.length,i;s--;){i=a.KEY_MODS[t[s]];if(null==i){if('undefined'!=typeof console)console.error('invalid modifier '+t[s]+' in '+e);return!1}o|=i}return{key:n,hashId:o}};this.findKeyCommand=function e(t,n){var r=s[t]+n;return this.commandKeyBinding[r]};this.handleKeyboard=function(e,t,n,r){if(0>r)return;var o=s[t]+n,a=this.commandKeyBinding[o];if(e.$keyChain){e.$keyChain+=' '+o;a=this.commandKeyBinding[e.$keyChain]||a}if(a){if('chainKeys'==a||'chainKeys'==a[a.length-1]){e.$keyChain=e.$keyChain||o;return{command:'null'}}}if(e.$keyChain){if((!t||4==t)&&1==n.length)e.$keyChain=e.$keyChain.slice(0,-o.length-1);else if(-1==t||0a?a+1:a;e.selection.moveCursorTo(n.row,a)}},multiSelectAction:'forEach',readOnly:!0},{name:'invertSelection',bindKey:r(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,o=[];if(1>r.length){r=[e.selection.getRange()]}for(var a=0;a=o.lastRow||r.end.row<=o.firstRow){this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}break;default:break;}if('animate'==n)this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp;this.curOp=null}};this.$mergeableCommands=['backspace','del','insertstring'];this.$historyTracker=function(t){if(!this.$mergeUndoDeltas)return;var e=this.prevOp,n=this.$mergeableCommands,r=e.command&&t.command.name==e.command.name;if('insertstring'==t.command.name){var o=t.args;if(this.mergeNextCommand===void 0)this.mergeNextCommand=!0;r=r&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(e.args));this.mergeNextCommand=!0}else{r=r&&-1!==n.indexOf(t.command.name)}if('always'!=this.$mergeUndoDeltas&&2e3=i);r.stepForward()}if(!o){t.removeMarker(t.$tagHighlight);t.$tagHighlight=null;return}var l=r.getCurrentTokenRow(),d=r.getCurrentTokenColumn(),c=new y(l,d,l,d+o.value.length),u=t.$backMarkers[t.$tagHighlight];if(t.$tagHighlight&&u!=void 0&&0!==c.compareRange(u.range)){t.removeMarker(t.$tagHighlight);t.$tagHighlight=null}if(c&&!t.$tagHighlight)t.$tagHighlight=t.addMarker(c,'ace_bracket','text')},50)};this.focus=function(){var e=this;setTimeout(function(){e.textInput.focus()});this.textInput.focus()};this.isFocused=function(){return this.textInput.isFocused()};this.blur=function(){this.textInput.blur()};this.onFocus=function(t){if(this.$isFocused)return;this.$isFocused=!0;this.renderer.showCursor();this.renderer.visualizeFocus();this._emit('focus',t)};this.onBlur=function(t){if(!this.$isFocused)return;this.$isFocused=!1;this.renderer.hideCursor();this.renderer.visualizeBlur();this._emit('blur',t)};this.$cursorChange=function(){this.renderer.updateCursor()};this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:Infinity;this.renderer.updateLines(e.start.row,n,t);this._signal('change',e);this.$cursorChange();this.$updateHighlightActiveLine()};this.onTokenizerUpdate=function(t){var e=t.data;this.renderer.updateLines(e.first,e.last)};this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())};this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())};this.onCursorChange=function(){this.$cursorChange();if(!this.$blockScrolling){w.warn('Automatically scrolling cursor into view after selection change','this will be disabled in the next version','set editor.$blockScrolling = Infinity to disable this message');this.renderer.scrollCursorIntoView()}this.$highlightBrackets();this.$highlightTags();this.$updateHighlightActiveLine();this._signal('changeSelection')};this.$updateHighlightActiveLine=function(){var e=this.getSession(),t;if(this.$highlightActiveLine){if('line'!=this.$selectionStyle||!this.selection.isMultiLine())t=this.getCursorPosition();if(this.renderer.$maxLines&&1===this.session.getLength()&&!(1o.length||2>r.length||!r[1])return this.commands.exec('insertstring',this,n);for(var a=o.length,i;a--;){i=o[a];if(!i.isEmpty())this.session.remove(i);this.session.insert(i.start,r[a])}}};this.execCommand=function(e,t){return this.commands.exec(e,this,t)};this.insert=function(e,t){var n=this.session,r=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var a=r.transformAction(n.getState(o.row),'insertion',this,n,e);if(a){if(e!==a.text){this.session.mergeUndoDeltas=!1;this.$mergeNextCommand=!1}e=a.text}}if('\t'==e)e=this.session.getTabString();if(!this.selection.isEmpty()){var i=this.getSelectionRange();o=this.session.remove(i);this.clearSelection()}else if(this.session.getOverwrite()){var i=new y.fromPoints(o,o);i.end.column+=e.length;this.session.remove(i)}if('\n'==e||'\r\n'==e){var s=n.getLine(o.row);if(o.column>s.search(/\S|$/)){var l=s.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var d=o.column,c=n.getState(o.row),s=n.getLine(o.row),u=r.checkOutdent(c,s,e),p=n.insert(o,e);if(a&&a.selection){if(2==a.selection.length){this.selection.setSelectionRange(new y(o.row,d+a.selection[0],o.row,d+a.selection[1]))}else{this.selection.setSelectionRange(new y(o.row+a.selection[0],a.selection[1],o.row+a.selection[2],a.selection[3]))}}if(n.getDocument().isNewLine(e)){var g=r.getNextLineIndent(c,s.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},g)}if(u)r.autoOutdent(c,n,o.row)};this.onTextInput=function(e){this.keyBinding.onTextInput(e)};this.onCommandKey=function(t,e,n){this.keyBinding.onCommandKey(t,e,n)};this.setOverwrite=function(e){this.session.setOverwrite(e)};this.getOverwrite=function(){return this.session.getOverwrite()};this.toggleOverwrite=function(){this.session.toggleOverwrite()};this.setScrollSpeed=function(e){this.setOption('scrollSpeed',e)};this.getScrollSpeed=function(){return this.getOption('scrollSpeed')};this.setDragDelay=function(e){this.setOption('dragDelay',e)};this.getDragDelay=function(){return this.getOption('dragDelay')};this.setSelectionStyle=function(e){this.setOption('selectionStyle',e)};this.getSelectionStyle=function(){return this.getOption('selectionStyle')};this.setHighlightActiveLine=function(e){this.setOption('highlightActiveLine',e)};this.getHighlightActiveLine=function(){return this.getOption('highlightActiveLine')};this.setHighlightGutterLine=function(e){this.setOption('highlightGutterLine',e)};this.getHighlightGutterLine=function(){return this.getOption('highlightGutterLine')};this.setHighlightSelectedWord=function(e){this.setOption('highlightSelectedWord',e)};this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord};this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)};this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()};this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)};this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()};this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)};this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()};this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)};this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()};this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)};this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()};this.setReadOnly=function(e){this.setOption('readOnly',e)};this.getReadOnly=function(){return this.getOption('readOnly')};this.setBehavioursEnabled=function(e){this.setOption('behavioursEnabled',e)};this.getBehavioursEnabled=function(){return this.getOption('behavioursEnabled')};this.setWrapBehavioursEnabled=function(e){this.setOption('wrapBehavioursEnabled',e)};this.getWrapBehavioursEnabled=function(){return this.getOption('wrapBehavioursEnabled')};this.setShowFoldWidgets=function(e){this.setOption('showFoldWidgets',e)};this.getShowFoldWidgets=function(){return this.getOption('showFoldWidgets')};this.setFadeFoldWidgets=function(e){this.setOption('fadeFoldWidgets',e)};this.getFadeFoldWidgets=function(){return this.getOption('fadeFoldWidgets')};this.remove=function(e){if(this.selection.isEmpty()){if('left'==e)this.selection.selectLeft();else this.selection.selectRight()}var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),o=n.getMode().transformAction(r,'deletion',this,n,t);if(0===t.end.column){var a=n.getTextRange(t);if('\n'==a[a.length-1]){var i=n.getLine(t.end.row);if(/^\s+$/.test(i)){t.end.column=i.length}}}if(o)t=o}this.session.remove(t);this.clearSelection()};this.removeWordRight=function(){if(this.selection.isEmpty())this.selection.selectWordRight();this.session.remove(this.getSelectionRange());this.clearSelection()};this.removeWordLeft=function(){if(this.selection.isEmpty())this.selection.selectWordLeft();this.session.remove(this.getSelectionRange());this.clearSelection()};this.removeToLineStart=function(){if(this.selection.isEmpty())this.selection.selectLineStart();this.session.remove(this.getSelectionRange());this.clearSelection()};this.removeToLineEnd=function(){if(this.selection.isEmpty())this.selection.selectLineEnd();var e=this.getSelectionRange();if(e.start.column==e.end.column&&e.start.row==e.end.row){e.end.column=0;e.end.row++}this.session.remove(e);this.clearSelection()};this.splitLine=function(){if(!this.selection.isEmpty()){this.session.remove(this.getSelectionRange());this.clearSelection()}var e=this.getCursorPosition();this.insert('\n');this.moveCursorToPosition(e)};this.transposeLetters=function(){if(!this.selection.isEmpty()){return}var e=this.getCursorPosition(),t=e.column;if(0===t)return;var n=this.session.getLine(e.row),r,o;if(tt.toLowerCase())return 1;return 0});for(var r=new y(0,0,0,0),o=e.first,a;o<=e.last;o++){a=t.getLine(o);r.start.row=o;r.end.row=o;r.end.column=a.length;t.replace(r,n[o-e.first])}};this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)};this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)};this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var r=this.session.getLine(e);while(n.lastIndex=t){var a={value:o[0],start:o.index,end:o.index+o[0].length};return a}}return null};this.modifyNumber=function(e){var n=this.selection.getCursor().row,r=this.selection.getCursor().column,o=new y(n,r-1,n,r),a=this.session.getTextRange(o);if(!isNaN(parseFloat(a))&&isFinite(a)){var i=this.getNumberAt(n,r);if(i){var l=0<=i.value.indexOf('.')?i.start+i.value.indexOf('.')+1:i.end,d=i.start+i.value.length-l,u=parseFloat(i.value);u*=s(10,d);if(l!==i.end&&rg+1)break;g=f.last}l--;d=this.session.$moveLines(p,g,t?0:e);if(t&&-1==e)i=l+1;while(i<=l){s[i].moveBy(d,0);i++}if(!t)d=0;c+=d}o.fromOrientedRange(o.ranges[0]);o.rangeList.attach(this.session);this.inVirtualSelectionMode=!1}};this.$getSelectedRows=function(e){e=(e||this.getSelectionRange()).collapseRows();return{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}};this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())};this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)};this.onCompositionEnd=function(){this.renderer.hideComposition()};this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()};this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()};this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()};this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()};this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1};this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,o=e*i(r.height/r.lineHeight);this.$blockScrolling++;if(!0===t){this.selection.$moveSelection(function(){this.moveCursorBy(o,0)})}else if(!1===t){this.selection.moveCursorBy(o,0);this.selection.clearSelection()}this.$blockScrolling--;var a=n.scrollTop;n.scrollBy(0,o*r.lineHeight);if(null!=t)n.scrollCursorIntoView(null,0.5);n.animateScrolling(a)};this.selectPageDown=function(){this.$moveByPage(1,!0)};this.selectPageUp=function(){this.$moveByPage(-1,!0)};this.gotoPageDown=function(){this.$moveByPage(1,!1)};this.gotoPageUp=function(){this.$moveByPage(-1,!1)};this.scrollPageDown=function(){this.$moveByPage(1)};this.scrollPageUp=function(){this.$moveByPage(-1)};this.scrollToRow=function(e){this.renderer.scrollToRow(e)};this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)};this.centerSelection=function(){var e=this.getSelectionRange(),t={row:i(e.start.row+(e.end.row-e.start.row)/2),column:i(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,0.5)};this.getCursorPosition=function(){return this.selection.getCursor()};this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())};this.getSelectionRange=function(){return this.selection.getRange()};this.selectAll=function(){this.$blockScrolling+=1;this.selection.selectAll();this.$blockScrolling-=1};this.clearSelection=function(){this.selection.clearSelection()};this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)};this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)};this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new C(this.session,n.row,n.column),o=r.getCurrentToken(),a=o||r.stepForward();if(!a)return;var s,d=!1,c={},u=n.column-a.start,i,p={")":'(',"(":'(',"]":'[',"[":'[',"{":'{',"}":'{'};do{if(a.value.match(/[{}()\[\]]/g)){for(;ul(f.column-n.column))g=this.session.getBracketRange(f)}}else if('tag'===s){if(a&&-1!==a.type.indexOf('tag-name'))var h=a.value;else return;g=new y(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2);if(0===g.compare(n.row,n.column)){d=!1;do{a=o;o=r.stepBackward();if(o){if(-1!==o.type.indexOf('tag-close')){g.setEnd(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+1)}if(a.value===h&&-1!==a.type.indexOf('tag-name')){if('<'===o.value){c[h]++}else if('l(f.column-n.column))f=g.end}}f=g&&g.cursor||f;if(f){if(e){if(g&&t){this.selection.setRange(g)}else if(g&&g.isEqual(this.getSelectionRange())){this.clearSelection()}else{this.selection.selectTo(f.row,f.column)}}else{this.selection.moveTo(f.row,f.column)}}};this.gotoLine=function(e,t,n){this.selection.clearSelection();this.session.unfold({row:e-1,column:t||0});this.$blockScrolling+=1;this.exitMultiSelectMode&&this.exitMultiSelectMode();this.moveCursorTo(e-1,t||0);this.$blockScrolling-=1;if(!this.isRowFullyVisible(e-1))this.scrollToLine(e-1,!0,n)};this.navigateTo=function(e,t){this.selection.moveTo(e,t)};this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection();this.selection.moveCursorBy(-e||-1,0)};this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection();this.selection.moveCursorBy(e||1,0)};this.navigateLeft=function(e){if(!this.selection.isEmpty()){var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}else{e=e||1;while(e--){this.selection.moveCursorLeft()}}this.clearSelection()};this.navigateRight=function(e){if(!this.selection.isEmpty()){var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}else{e=e||1;while(e--){this.selection.moveCursorRight()}}this.clearSelection()};this.navigateLineStart=function(){this.selection.moveCursorLineStart();this.clearSelection()};this.navigateLineEnd=function(){this.selection.moveCursorLineEnd();this.clearSelection()};this.navigateFileEnd=function(){this.selection.moveCursorFileEnd();this.clearSelection()};this.navigateFileStart=function(){this.selection.moveCursorFileStart();this.clearSelection()};this.navigateWordRight=function(){this.selection.moveCursorWordRight();this.clearSelection()};this.navigateWordLeft=function(){this.selection.moveCursorWordLeft();this.clearSelection()};this.replace=function(e,t){if(t)this.$search.set(t);var n=this.$search.find(this.session),r=0;if(!n)return r;if(this.$tryReplace(n,e)){r=1}if(null!==n){this.selection.setSelectionRange(n);this.renderer.scrollSelectionIntoView(n.start,n.end)}return r};this.replaceAll=function(e,t){if(t){this.$search.set(t)}var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;this.$blockScrolling+=1;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var a=n.length-1;0<=a;--a){if(this.$tryReplace(n[a],e)){r++}}this.selection.setSelectionRange(o);this.$blockScrolling-=1;return r};this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);t=this.$search.replace(n,t);if(null!==t){e.end=this.session.replace(e,t);return e}else{return null}};this.getLastSearchOptions=function(){return this.$search.getOptions()};this.find=function(e,t,n){if(!t)t={};if('string'==typeof e||e instanceof RegExp)t.needle=e;else if('object'==typeof e)r.mixin(t,e);var o=this.selection.getRange();if(null==t.needle){e=this.session.getTextRange(o)||this.$search.$options.needle;if(!e){o=this.session.getWordRange(o.start.row,o.start.column);e=this.session.getTextRange(o)}this.$search.set({needle:e})}this.$search.set(t);if(!t.start)this.$search.set({start:o});var a=this.$search.find(this.session);if(t.preventScroll)return a;if(a){this.revealRange(a,n);return a}if(t.backwards)o.start=o.end;else o.end=o.start;this.selection.setRange(o)};this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)};this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)};this.revealRange=function(e,t){this.$blockScrolling+=1;this.session.unfold(e);this.selection.setSelectionRange(e);this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,0.5);if(!1!==t)this.renderer.animateScrolling(n)};this.undo=function(){this.$blockScrolling++;this.session.getUndoManager().undo();this.$blockScrolling--;this.renderer.scrollCursorIntoView(null,0.5)};this.redo=function(){this.$blockScrolling++;this.session.getUndoManager().redo();this.$blockScrolling--;this.renderer.scrollCursorIntoView(null,0.5)};this.destroy=function(){this.renderer.destroy();this._signal('destroy',this);if(this.session){this.session.destroy()}};this.setAutoScrollEditorIntoView=function(e){if(!e)return;var t,n=this,r=!1;if(!this.$scrollAnchor)this.$scrollAnchor=document.createElement('div');var o=this.$scrollAnchor;o.style.cssText='position:absolute';this.container.insertBefore(o,this.container.firstChild);var a=this.on('changeSelection',function(){r=!0}),i=this.renderer.on('beforeRender',function(){if(r)t=n.renderer.container.getBoundingClientRect()}),s=this.renderer.on('afterRender',function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,a=e.$cursorLayer.$pixelPos,i=e.layerConfig,s=a.top-i.offset;if(0<=a.top&&0>s+t.top){r=!0}else if(a.topwindow.innerHeight){r=!1}else{r=null}if(null!=r){o.style.top=s+'px';o.style.left=a.left+'px';o.style.height=i.lineHeight+'px';o.scrollIntoView(r)}r=t=null}});this.setAutoScrollEditorIntoView=function(e){if(e)return;delete this.setAutoScrollEditorIntoView;this.off('changeSelection',a);this.renderer.off('afterRender',s);this.renderer.off('beforeRender',i)}};this.$resetCursorStyle=function(){var e=this.$cursorStyle||'ace',t=this.renderer.$cursorLayer;if(!t)return;t.setSmoothBlinking(/smooth/.test(e));t.isBlinking=!this.$readOnly&&'wide'!=e;o.setCssClass(t.element,'ace_slim-cursors',/slim/.test(e))}}).call(A.prototype);w.defineOptions(A.prototype,'editor',{selectionStyle:{set:function(e){this.onSelectionChange();this._signal('changeSelectionStyle',{data:e})},initialValue:'line'},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:['ace','slim','smooth','wide'],initialValue:'ace'},mergeUndoDeltas:{values:[!1,!0,'always'],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:'renderer',vScrollBarAlwaysVisible:'renderer',highlightGutterLine:'renderer',animatedScroll:'renderer',showInvisibles:'renderer',showPrintMargin:'renderer',printMarginColumn:'renderer',printMargin:'renderer',fadeFoldWidgets:'renderer',showFoldWidgets:'renderer',showLineNumbers:'renderer',showGutter:'renderer',displayIndentGuides:'renderer',fontSize:'renderer',fontFamily:'renderer',maxLines:'renderer',minLines:'renderer',scrollPastEnd:'renderer',fixedWidthGutter:'renderer',theme:'renderer',scrollSpeed:'$mouseHandler',dragDelay:'$mouseHandler',dragEnabled:'$mouseHandler',focusTimout:'$mouseHandler',tooltipFollowsMouse:'$mouseHandler',firstLineNumber:'session',overwrite:'session',newLineMode:'session',useWorker:'session',useSoftTabs:'session',tabSize:'session',wrap:'session',indentedSoftWrap:'session',foldStyle:'session',mode:'session'});t.Editor=A});ace.define('ace/undomanager',['require','exports','module'],function(e,t,n){'use strict';var r=function(){this.reset()};(function(){this.execute=function(e){var t=e.args[0];this.$doc=e.args[1];if(e.merge&&this.hasUndo()){this.dirtyCounter--;t=this.$undoStack.pop().concat(t)}this.$undoStack.push(t);this.$redoStack=[];if(0>this.dirtyCounter){this.dirtyCounter=NaN}this.dirtyCounter++};this.undo=function(e){var t=this.$undoStack.pop(),n=null;if(t){n=this.$doc.undoChanges(t,e);this.$redoStack.push(t);this.dirtyCounter--}return n};this.redo=function(e){var t=this.$redoStack.pop(),n=null;if(t){n=this.$doc.redoChanges(this.$deserializeDeltas(t),e);this.$undoStack.push(t);this.dirtyCounter++}return n};this.reset=function(){this.$undoStack=[];this.$redoStack=[];this.dirtyCounter=0};this.hasUndo=function(){return 0s){y=i.end.row+1;i=t.getNextFoldLine(y,i);s=i?i.start.row:Infinity}if(y>a){while(this.$cells.length>b+1){m=this.$cells.pop();this.element.removeChild(m.element)}break}m=this.$cells[++b];if(!m){m={element:null,textNode:null,foldWidget:null};m.element=o.createElement('div');m.textNode=document.createTextNode('');m.element.appendChild(m.textNode);this.element.appendChild(m.element);this.$cells[b]=m}var v='ace_gutter-cell ';if(u[y])v+=u[y];if(p[y])v+=p[y];if(this.$annotations[y])v+=this.$annotations[y].className;if(m.element.className!=v)m.element.className=v;var k=t.getRowLength(y)*e.lineHeight+'px';if(k!=m.element.style.height)m.element.style.height=k;if(l){var x=l[y];if(null==x)x=l[y]=t.getFoldWidget(y)}if(x){if(!m.foldWidget){m.foldWidget=o.createElement('span');m.element.appendChild(m.foldWidget)}var v='ace_fold-widget ace_'+x;if('start'==x&&y==s&&yn.right-t.right)return'foldWidgets'}}).call(l.prototype);t.Gutter=l});ace.define('ace/layer/marker',['require','exports','module','ace/range','ace/lib/dom'],function(e,t,n){'use strict';var r=e('../range').Range,o=e('../lib/dom'),a=function(e){this.element=o.createElement('div');this.element.className='ace_layer ace_marker-layer';e.appendChild(this.element)};(function(){this.$padding=0;this.setPadding=function(e){this.$padding=e};this.setSession=function(e){this.session=e};this.setMarkers=function(e){this.markers=e};this.update=function(e){var e=e||this.config;if(!e)return;this.config=e;var t=[];for(var n in this.markers){var r=this.markers[n];if(!r.range){r.update(t,this,this.session,e);continue}var o=r.range.clipRows(e.firstRow,e.lastRow);if(o.isEmpty())continue;o=o.toScreenRange(this.session);if(r.renderer){var a=this.$getTop(o.start.row,e),i=this.$padding+o.start.column*e.characterWidth;r.renderer(t,o,i,a,e)}else if('fullLine'==r.type){this.drawFullLineMarker(t,o,r.clazz,e)}else if('screenLine'==r.type){this.drawScreenLineMarker(t,o,r.clazz,e)}else if(o.isMultiLine()){if('text'==r.type)this.drawTextMarker(t,o,r.clazz,e);else this.drawMultiLineMarker(t,o,r.clazz,e)}else{this.drawSingleLineMarker(t,o,r.clazz+' ace_start ace_br15',e)}}this.element.innerHTML=t.join('')};this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight};function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.drawTextMarker=function(t,n,o,a,i){var s=this.session,l=n.start.row,d=n.end.row,c=l,u=0,p=0,g=s.getScreenLastRowColumn(c),f=new r(c,n.start.column,c,p);for(;c<=d;c++){f.start.row=f.end.row=c;f.start.column=c==l?n.start.column:s.getRowWrapIndent(c);f.end.column=g;u=p;p=g;g=c+1g,c==d),a,c==d?0:1,i)}};this.drawMultiLineMarker=function(e,t,n,r,o){var a=this.$padding,i=r.lineHeight,s=this.$getTop(t.start.row,r),l=a+t.start.column*r.characterWidth;o=o||'';e.push('
    ');s=this.$getTop(t.end.row,r);var d=t.end.column*r.characterWidth;e.push('
    ');i=(t.end.row-t.start.row-1)*r.lineHeight;if(0>=i)return;s=this.$getTop(t.start.row+1,r);var c=(t.start.column?1:0)|(t.end.column?0:8);e.push('
    ')};this.drawSingleLineMarker=function(e,t,n,r,o,a){var i=r.lineHeight,s=(t.end.column+(o||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),d=this.$padding+t.start.column*r.characterWidth;e.push('
    ')};this.drawFullLineMarker=function(e,t,n,r,o){var a=this.$getTop(t.start.row,r),i=r.lineHeight;if(t.start.row!=t.end.row)i+=this.$getTop(t.end.row,r)-a;e.push('
    ')};this.drawScreenLineMarker=function(e,t,n,r,o){var a=this.$getTop(t.start.row,r),i=r.lineHeight;e.push('
    ')}}).call(a.prototype);t.Marker=a});ace.define('ace/layer/text',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/lib/lang','ace/lib/useragent','ace/lib/event_emitter'],function(e,t,n){'use strict';var r=e('../lib/oop'),a=e('../lib/dom'),s=e('../lib/lang'),i=e('../lib/useragent'),l=e('../lib/event_emitter').EventEmitter,u=function(e){this.element=a.createElement('div');this.element.className='ace_layer ace_text-layer';e.appendChild(this.element);this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){r.implement(this,l);this.EOF_CHAR='\xB6';this.EOL_CHAR_LF='\xAC';this.EOL_CHAR_CRLF='\xA4';this.EOL_CHAR=this.EOL_CHAR_LF;this.TAB_CHAR='\u2014';this.SPACE_CHAR='\xB7';this.$padding=0;this.$updateEolChar=function(){var e='\n'==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e){this.EOL_CHAR=e;return!0}};this.setPadding=function(e){this.$padding=e;this.element.style.padding='0 '+e+'px'};this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0};this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0};this.$setFontMetrics=function(e){this.$fontMetrics=e;this.$fontMetrics.on('changeCharacterSize',function(t){this._signal('changeCharacterSize',t)}.bind(this));this.$pollSizeChanges()};this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()};this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()};this.setSession=function(e){this.session=e;if(e)this.$computeTabString()};this.showInvisibles=!1;this.setShowInvisibles=function(e){if(this.showInvisibles==e)return!1;this.showInvisibles=e;this.$computeTabString();return!0};this.displayIndentGuides=!0;this.setDisplayIndentGuides=function(e){if(this.displayIndentGuides==e)return!1;this.displayIndentGuides=e;this.$computeTabString();return!0};this.$tabStrings=[];this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n'+s.stringRepeat(this.TAB_CHAR,n)+'')}else{t.push(s.stringRepeat(' ',n))}}if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r='ace_indent-guide',o='',a='';if(this.showInvisibles){r+=' ace_invisible';o=' ace_invisible_space';a=' ace_invisible_tab';var i=s.stringRepeat(this.SPACE_CHAR,this.tabSize),l=s.stringRepeat(this.TAB_CHAR,this.tabSize)}else{var i=s.stringRepeat(' ',this.tabSize),l=i}this.$tabStrings[' ']=''+i+'';this.$tabStrings['\t']=''+l+''}};this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow){this.scrollLines(e)}this.config=e;for(var r=c(t,e.firstRow),o=d(n,e.lastRow),a=this.element.childNodes,i=0,s=e.firstRow,l;su){s=l.end.row+1;l=this.session.getNextFoldLine(s,l);u=l?l.start.row:Infinity}if(s>o)break;var p=a[i++];if(p){var g=[];this.$renderLine(g,s,!this.$useLineGroups(),s==u?l:!1);p.style.height=e.lineHeight*this.session.getRowLength(s)+'px';p.innerHTML=g.join('')}s++}};this.scrollLines=function(e){var t=this.config;this.config=e;if(!t||t.lastRowe.lastRow)for(var r=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0t.lastRow){var o=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(o)}};this.$renderLinesFragment=function(e,t,n){var r=this.element.ownerDocument.createDocumentFragment(),o=t,i=this.session.getNextFoldLine(o),s=i?i.start.row:Infinity;while(!0){if(o>s){o=i.end.row+1;i=this.session.getNextFoldLine(o,i);s=i?i.start.row:Infinity}if(o>n)break;var l=a.createElement('div'),d=[];this.$renderLine(d,o,!1,o==s?i:!1);l.innerHTML=d.join('');if(this.$useLineGroups()){l.className='ace_line_group';r.appendChild(l);l.style.height=e.lineHeight*this.session.getRowLength(o)+'px'}else{while(l.firstChild)r.appendChild(l.firstChild)}o++}return r};this.update=function(e){this.config=e;var t=[],n=e.firstRow,r=e.lastRow,o=n,a=this.session.getNextFoldLine(o),i=a?a.start.row:Infinity;while(!0){if(o>i){o=a.end.row+1;a=this.session.getNextFoldLine(o,a);i=a?a.start.row:Infinity}if(o>r)break;if(this.$useLineGroups())t.push('
    ');this.$renderLine(t,o,!1,o==i?a:!1);if(this.$useLineGroups())t.push('
    ');o++}this.element.innerHTML=t.join('')};this.$textToken={text:!0,rparen:!0,lparen:!0};this.$renderToken=function(e,t,n,r){var o=this,a=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]/g,i=function(e,n,r,a,i){if(n){return o.showInvisibles?''+s.stringRepeat(o.SPACE_CHAR,e.length)+'':e}else if('&'==e){return'&'}else if('<'==e){return'<'}else if('>'==e){return'>'}else if('\t'==e){var l=o.session.getScreenTabSize(t+a);t+=l-1;return o.$tabStrings[l]}else if('\u3000'==e){var d=o.showInvisibles?'ace_cjk ace_invisible ace_invisible_space':'ace_cjk',c=o.showInvisibles?o.SPACE_CHAR:'';t+=1;return''+c+''}else if(r){return''+o.SPACE_CHAR+''}else{t+=1;return''+e+''}},l=r.replace(a,i);if(!this.$textToken[n.type]){var d='ace_'+n.type.replace(/\./g,' ace_'),c='';if('fold'==n.type)c=' style=\'width:'+n.value.length*this.config.characterWidth+'px;\' ';e.push('',l,'')}else{e.push(l)}return t+r.length};this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(0>=r||r>=n)return t;if(' '==t[0]){r-=r%this.tabSize;e.push(s.stringRepeat(this.$tabStrings[' '],r/this.tabSize));return t.substr(r)}else if('\t'==t[0]){e.push(s.stringRepeat(this.$tabStrings['\t'],r));return t.substr(r)}return t};this.$renderWrappedLine=function(e,t,n,r){for(var a=0,l=0,d=n[0],c=0,u=0;u=d){c=this.$renderToken(e,c,i,p.substring(0,d-a));p=p.substring(d-a);a=d;if(!r){e.push('','
    ')}e.push(s.stringRepeat('\xA0',n.indent));l++;c=0;d=n[l]||o}if(0!=p.length){a+=p.length;c=this.$renderToken(e,c,i,p)}}}};this.$renderSimpleLine=function(e,t){var n=0,r=t[0],o=r.value;if(this.displayIndentGuides)o=this.renderIndentGuide(e,o);if(o)n=this.$renderToken(e,n,r,o);for(var a=1;a')}if(o.length){var a=this.session.getRowSplitData(t);if(a&&a.length)this.$renderWrappedLine(e,o,a,n);else this.$renderSimpleLine(e,o)}if(this.showInvisibles){if(r)t=r.end.row;e.push('',t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,'')}if(!n)e.push('
    ')};this.$getFoldLineTokens=function(e,t){var r=this.session,o=[];function n(e,t,n){var r=0,a=0;while(a+e[r].value.lengthn-t)i=i.substring(0,n-t);o.push({type:e[r].type,value:i});a=t+i.length;r+=1}while(an){o.push({type:e[r].type,value:i.substring(0,n-a)})}else o.push(e[r]);a+=i.length;r+=1}}var a=r.getTokens(e);t.walk(function(e,t,i,s,l){if(null!=e){o.push({type:'fold',value:e})}else{if(l)a=r.getTokens(t);if(a.length)n(a,s,i)}},t.end.row,this.session.getLine(t.end.row).length);return o};this.$useLineGroups=function(){return this.session.getUseWrapMode()};this.destroy=function(){clearInterval(this.$pollSizeChangesTimer);if(this.$measureNode)this.$measureNode.parentNode.removeChild(this.$measureNode);delete this.$measureNode}}).call(u.prototype);t.Text=u});ace.define('ace/layer/cursor',['require','exports','module','ace/lib/dom'],function(e,t,n){'use strict';var r=e('../lib/dom'),o,a=function(e){this.element=r.createElement('div');this.element.className='ace_layer ace_cursor-layer';e.appendChild(this.element);if(o===void 0)o=!('opacity'in this.element.style);this.isVisible=!1;this.isBlinking=!0;this.blinkInterval=1e3;this.smoothBlinking=!1;this.cursors=[];this.cursor=this.addCursor();r.addCssClass(this.element,'ace_hidden-cursors');this.$updateCursors=(o?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?'':'hidden'};this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?'':'0'};this.$padding=0;this.setPadding=function(e){this.$padding=e};this.setSession=function(e){this.session=e};this.setBlinking=function(e){if(e!=this.isBlinking){this.isBlinking=e;this.restartTimer()}};this.setBlinkInterval=function(e){if(e!=this.blinkInterval){this.blinkInterval=e;this.restartTimer()}};this.setSmoothBlinking=function(e){if(e!=this.smoothBlinking&&!o){this.smoothBlinking=e;r.setCssClass(this.element,'ace_smooth-blinking',e);this.$updateCursors(!0);this.$updateCursors=this.$updateOpacity.bind(this);this.restartTimer()}};this.addCursor=function(){var e=r.createElement('div');e.className='ace_cursor';this.element.appendChild(e);this.cursors.push(e);return e};this.removeCursor=function(){if(1e.height+e.offset||0>n.top)&&1o)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s);this.$pixelPos=n;this.restartTimer()};this.drawCursor=null;this.$setOverwrite=function(e){if(e!=this.overwrite){this.overwrite=e;if(e)r.addCssClass(this.element,'ace_overwrite-cursors');else r.removeCssClass(this.element,'ace_overwrite-cursors')}};this.destroy=function(){clearInterval(this.intervalId);clearTimeout(this.timeoutId)}}).call(a.prototype);t.Cursor=a});ace.define('ace/scrollbar',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/lib/event','ace/lib/event_emitter'],function(e,t,n){'use strict';var r=e('./lib/oop'),o=e('./lib/dom'),a=e('./lib/event'),i=e('./lib/event_emitter').EventEmitter,s=32768,l=function(e){this.element=o.createElement('div');this.element.className='ace_scrollbar ace_scrollbar'+this.classSuffix;this.inner=o.createElement('div');this.inner.className='ace_scrollbar-inner';this.element.appendChild(this.inner);e.appendChild(this.element);this.setVisible(!1);this.skipEvent=!1;a.addListener(this.element,'scroll',this.onScroll.bind(this));a.addListener(this.element,'mousedown',a.preventDefault)};(function(){r.implement(this,i);this.setVisible=function(e){this.element.style.display=e?'':'none';this.isVisible=e;this.coeff=1}}).call(l.prototype);var d=function(e,t){l.call(this,e);this.scrollTop=0;this.scrollHeight=0;t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument);this.inner.style.width=this.element.style.width=(this.width||15)+5+'px'};r.inherits(d,l);(function(){this.classSuffix='-v';this.onScroll=function(){if(!this.skipEvent){this.scrollTop=this.element.scrollTop;if(1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit('scroll',{data:this.scrollTop})}this.skipEvent=!1};this.getWidth=function(){return this.isVisible?this.width:0};this.setHeight=function(e){this.element.style.height=e+'px'};this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e;if(e>s){this.coeff=s/e;e=s}else if(1!=this.coeff){this.coeff=1}this.inner.style.height=e+'px'};this.setScrollTop=function(e){if(this.scrollTop!=e){this.skipEvent=!0;this.scrollTop=e;this.element.scrollTop=e*this.coeff}}}).call(d.prototype);var c=function(e,t){l.call(this,e);this.scrollLeft=0;this.height=t.$scrollbarWidth;this.inner.style.height=this.element.style.height=(this.height||15)+5+'px'};r.inherits(c,l);(function(){this.classSuffix='-h';this.onScroll=function(){if(!this.skipEvent){this.scrollLeft=this.element.scrollLeft;this._emit('scroll',{data:this.scrollLeft})}this.skipEvent=!1};this.getHeight=function(){return this.isVisible?this.height:0};this.setWidth=function(e){this.element.style.width=e+'px'};this.setInnerWidth=function(e){this.inner.style.width=e+'px'};this.setScrollWidth=function(e){this.inner.style.width=e+'px'};this.setScrollLeft=function(e){if(this.scrollLeft!=e){this.skipEvent=!0;this.scrollLeft=this.element.scrollLeft=e}}}).call(c.prototype);t.ScrollBar=d;t.ScrollBarV=d;t.ScrollBarH=c;t.VScrollBar=d;t.HScrollBar=c});ace.define('ace/renderloop',['require','exports','module','ace/lib/event'],function(e,t,n){'use strict';var r=e('./lib/event'),o=function(e,t){this.onRender=e;this.pending=!1;this.changes=0;this.window=t||window};(function(){this.schedule=function(e){this.changes=this.changes|e;if(!this.pending&&this.changes){this.pending=!0;var t=this;r.nextFrame(function(){t.pending=!1;var e;while(e=t.changes){t.changes=0;t.onRender(e)}},this.window)}}}).call(o.prototype);t.RenderLoop=o});ace.define('ace/layer/font_metrics',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/lib/lang','ace/lib/useragent','ace/lib/event_emitter'],function(e,t,n){var r=e('../lib/oop'),o=e('../lib/dom'),a=e('../lib/lang'),i=e('../lib/useragent'),s=e('../lib/event_emitter').EventEmitter,l=0,d=t.FontMetrics=function(e){this.el=o.createElement('div');this.$setMeasureNodeStyles(this.el.style,!0);this.$main=o.createElement('div');this.$setMeasureNodeStyles(this.$main.style);this.$measureNode=o.createElement('div');this.$setMeasureNodeStyles(this.$measureNode.style);this.el.appendChild(this.$main);this.el.appendChild(this.$measureNode);e.appendChild(this.el);if(!l)this.$testFractionalRect();this.$measureNode.innerHTML=a.stringRepeat('X',l);this.$characterSize={width:0,height:0};this.checkForSizeChanges()};(function(){r.implement(this,s);this.$characterSize={width:0,height:0};this.$testFractionalRect=function(){var e=o.createElement('div');this.$setMeasureNodeStyles(e.style);e.style.width='0.2px';document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;if(0t)l=50;else l=100;e.parentNode.removeChild(e)};this.$setMeasureNodeStyles=function(e,t){e.width=e.height='auto';e.left=e.top='0px';e.visibility='hidden';e.position='absolute';e.whiteSpace='pre';if(8>i.isIE){e['font-family']='inherit'}else{e.font='inherit'}e.overflow=t?'hidden':'visible'};this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight='bold';var t=this.$measureSizes();this.$measureNode.style.fontWeight='';this.$characterSize=e;this.charSizes=Object.create(null);this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height;this._emit('changeCharacterSize',{data:e})}};this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval(function(){e.checkForSizeChanges()},500)};this.setPolling=function(e){if(e){this.$pollSizeChanges()}else if(this.$pollSizeChangesTimer){clearInterval(this.$pollSizeChangesTimer);this.$pollSizeChangesTimer=0}};this.$measureSizes=function(){if(50==l){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(t){e={width:0,height:0}}var t={height:e.height,width:e.width/l}}else{var t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/l}}if(0===t.width||0===t.height)return null;return t};this.$measureCharWidth=function(e){this.$main.innerHTML=a.stringRepeat(e,l);var t=this.$main.getBoundingClientRect();return t.width/l};this.getCharacterWidth=function(e){var t=this.charSizes[e];if(t===void 0){t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width}return t};this.destroy=function(){clearInterval(this.$pollSizeChangesTimer);if(this.el&&this.el.parentNode)this.el.parentNode.removeChild(this.el)}}).call(d.prototype)});ace.define('ace/virtual_renderer',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/config','ace/lib/useragent','ace/layer/gutter','ace/layer/marker','ace/layer/text','ace/layer/cursor','ace/scrollbar','ace/scrollbar','ace/renderloop','ace/layer/font_metrics','ace/lib/event_emitter'],function(e,t,n){'use strict';var o=e('./lib/oop'),a=e('./lib/dom'),l=e('./config'),u=e('./lib/useragent'),p=e('./layer/gutter').Gutter,g=e('./layer/marker').Marker,f=e('./layer/text').Text,h=e('./layer/cursor').Cursor,m=e('./scrollbar').HScrollBar,b=e('./scrollbar').VScrollBar,y=e('./renderloop').RenderLoop,v=e('./layer/font_metrics').FontMetrics,k=e('./lib/event_emitter').EventEmitter,x='.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_editor.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}';a.importCssString(x,'ace_editor.css');var w=function(e,t){var n=this;this.container=e||a.createElement('div');this.$keepTextAreaAtCursor=!u.isOldIE;a.addCssClass(this.container,'ace_editor');this.setTheme(t);this.$gutter=a.createElement('div');this.$gutter.className='ace_gutter';this.container.appendChild(this.$gutter);this.scroller=a.createElement('div');this.scroller.className='ace_scroller';this.container.appendChild(this.scroller);this.content=a.createElement('div');this.content.className='ace_content';this.scroller.appendChild(this.content);this.$gutterLayer=new p(this.$gutter);this.$gutterLayer.on('changeGutterWidth',this.onGutterResize.bind(this));this.$markerBack=new g(this.content);var r=this.$textLayer=new f(this.content);this.canvas=r.element;this.$markerFront=new g(this.content);this.$cursorLayer=new h(this.content);this.$horizScroll=!1;this.$vScroll=!1;this.scrollBar=this.scrollBarV=new b(this.container,this);this.scrollBarH=new m(this.container,this);this.scrollBarV.addEventListener('scroll',function(t){if(!n.$scrollAnimation)n.session.setScrollTop(t.data-n.scrollMargin.top)});this.scrollBarH.addEventListener('scroll',function(t){if(!n.$scrollAnimation)n.session.setScrollLeft(t.data-n.scrollMargin.left)});this.scrollTop=0;this.scrollLeft=0;this.cursorPos={row:0,column:0};this.$fontMetrics=new v(this.container);this.$textLayer.$setFontMetrics(this.$fontMetrics);this.$textLayer.addEventListener('changeCharacterSize',function(t){n.updateCharacterSize();n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height);n._signal('changeCharacterSize',t)});this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0};this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1};this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0};this.$loop=new y(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView);this.$loop.schedule(this.CHANGE_FULL);this.updateCharacterSize();this.setPadding(4);l.resetOptions(this);l._emit('renderer',this)};(function(){var e=Math.round;this.CHANGE_CURSOR=1;this.CHANGE_MARKER=2;this.CHANGE_GUTTER=4;this.CHANGE_SCROLL=8;this.CHANGE_LINES=16;this.CHANGE_TEXT=32;this.CHANGE_SIZE=64;this.CHANGE_MARKER_BACK=128;this.CHANGE_MARKER_FRONT=256;this.CHANGE_FULL=512;this.CHANGE_H_SCROLL=1024;o.implement(this,k);this.updateCharacterSize=function(){if(this.$textLayer.allowBoldFonts!=this.$allowBoldFonts){this.$allowBoldFonts=this.$textLayer.allowBoldFonts;this.setStyle('ace_nobold',!this.$allowBoldFonts)}this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth();this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight();this.$updatePrintMargin()};this.setSession=function(e){if(this.session)this.session.doc.off('changeNewLineMode',this.onChangeNewLineMode);this.session=e;if(e&&this.scrollMargin.top&&0>=e.getScrollTop())e.setScrollTop(-this.scrollMargin.top);this.$cursorLayer.setSession(e);this.$markerBack.setSession(e);this.$markerFront.setSession(e);this.$gutterLayer.setSession(e);this.$textLayer.setSession(e);if(!e)return;this.$loop.schedule(this.CHANGE_FULL);this.session.$setFontMetrics(this.$fontMetrics);this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null;this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this);this.onChangeNewLineMode();this.session.doc.on('changeNewLineMode',this.onChangeNewLineMode)};this.updateLines=function(e,t,n){if(t===void 0)t=Infinity;if(!this.$changedLines){this.$changedLines={firstRow:e,lastRow:t}}else{if(this.$changedLines.firstRow>e)this.$changedLines.firstRow=e;if(this.$changedLines.lastRowthis.layerConfig.lastRow)return;this.$loop.schedule(this.CHANGE_LINES)};this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT);this.$textLayer.$updateEolChar()};this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER);this.$textLayer.onChangeTabSize()};this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)};this.updateFull=function(e){if(e)this.$renderChanges(this.CHANGE_FULL,!0);else this.$loop.schedule(this.CHANGE_FULL)};this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()};this.$changes=0;this.$updateSizeAsync=function(){if(this.$loop.pending)this.$size.$dirty=!0;else this.onResize()};this.onResize=function(e,t,n,r){if(2t||t>e.height-o){r.top=r.left='0';return}var a=this.characterWidth;if(this.$composition){var i=this.textarea.value.replace(/^\x01+/,'');a*=this.session.$getStringScreenWidth(i)[0]+2;o+=2}n-=this.scrollLeft;if(n>this.$size.scrollerWidth-a)n=this.$size.scrollerWidth-a;n+=this.gutterWidth;r.height=o+'px';r.width=a+'px';r.left=d(n,this.$size.scrollerWidth-a)+'px';r.top=d(t,this.$size.height-o)+'px'};this.getFirstVisibleRow=function(){return this.layerConfig.firstRow};this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)};this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;if(n-this.session.getScrollTop()>e.height-e.lineHeight)return t-1;return t};this.getLastVisibleRow=function(){return this.layerConfig.lastRow};this.$padding=null;this.setPadding=function(e){this.$padding=e;this.$textLayer.setPadding(e);this.$cursorLayer.setPadding(e);this.$markerFront.setPadding(e);this.$markerBack.setPadding(e);this.$loop.schedule(this.CHANGE_FULL);this.$updatePrintMargin()};this.setScrollMargin=function(e,t,n,r){var o=this.scrollMargin;o.top=0|e;o.bottom=0|t;o.right=0|r;o.left=0|n;o.v=o.top+o.bottom;o.h=o.left+o.right;if(o.top&&0>=this.scrollTop&&this.session)this.session.setScrollTop(-o.top);this.updateFull()};this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible};this.setHScrollBarAlwaysVisible=function(e){this.setOption('hScrollBarAlwaysVisible',e)};this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible};this.setVScrollBarAlwaysVisible=function(e){this.setOption('vScrollBarAlwaysVisible',e)};this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;if(!this.$maxLines&&this.$scrollPastEnd){e-=(t-this.lineHeight)*this.$scrollPastEnd;if(this.scrollTop>e-t){e=this.scrollTop+t;this.scrollBarV.scrollTop=null}}this.scrollBarV.setScrollHeight(e+this.scrollMargin.v);this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)};this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h);this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)};this.$frozen=!1;this.freeze=function(){this.$frozen=!0};this.unfreeze=function(){this.$frozen=!1};this.$renderChanges=function(e,t){if(this.$changes){e|=this.$changes;this.$changes=0}if(!this.session||!this.container.offsetWidth||this.$frozen||!e&&!t){this.$changes|=e;return}if(this.$size.$dirty){this.$changes|=e;return this.onResize(!0)}if(!this.lineHeight){this.$textLayer.checkForSizeChanges()}this._signal('beforeRender');var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){e|=this.$computeLayerConfig();if(n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;if(0=this.scrollLeft?'ace_scroller':'ace_scroller ace_scroll-left'}if(e&this.CHANGE_FULL){this.$textLayer.update(n);if(this.$showGutter)this.$gutterLayer.update(n);this.$markerBack.update(n);this.$markerFront.update(n);this.$cursorLayer.update(n);this.$moveTextAreaToCursor();this.$highlightGutterLine&&this.$updateGutterLineHighlight();this._signal('afterRender');return}if(e&this.CHANGE_SCROLL){if(e&this.CHANGE_TEXT||e&this.CHANGE_LINES)this.$textLayer.update(n);else this.$textLayer.scrollLines(n);if(this.$showGutter)this.$gutterLayer.update(n);this.$markerBack.update(n);this.$markerFront.update(n);this.$cursorLayer.update(n);this.$highlightGutterLine&&this.$updateGutterLineHighlight();this.$moveTextAreaToCursor();this._signal('afterRender');return}if(e&this.CHANGE_TEXT){this.$textLayer.update(n);if(this.$showGutter)this.$gutterLayer.update(n)}else if(e&this.CHANGE_LINES){if(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)this.$gutterLayer.update(n)}else if(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER){if(this.$showGutter)this.$gutterLayer.update(n)}if(e&this.CHANGE_CURSOR){this.$cursorLayer.update(n);this.$moveTextAreaToCursor();this.$highlightGutterLine&&this.$updateGutterLineHighlight()}if(e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)){this.$markerFront.update(n)}if(e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)){this.$markerBack.update(n)}this._signal('afterRender')};this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=d(t,c((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);if(this.$horizScroll)n+=this.scrollBarH.getHeight();if(this.$maxPixelHeight&&n>this.$maxPixelHeight)n=this.$maxPixelHeight;var r=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){if(r!=this.$vScroll){this.$vScroll=r;this.scrollBarV.setVisible(r)}var o=this.container.clientWidth;this.container.style.height=n+'px';this.$updateCachedSize(!0,this.$gutterWidth,o,n);this.desiredHeight=n;this._signal('autosize')}};this.$computeLayerConfig=function(){var t=this.session,n=this.$size,o=n.height<=2*this.lineHeight,a=this.session.getScreenLength(),i=a*this.lineHeight,s=this.$getLongestLine(),l=!o&&(this.$hScrollBarAlwaysVisible||0>n.scrollerWidth-s-2*this.$padding),u=this.$horizScroll!==l;if(u){this.$horizScroll=l;this.scrollBarH.setVisible(l)}var p=this.$vScroll;if(this.$maxLines&&1n.scrollerHeight-i+h||this.scrollTop>m.top),y=p!==b;if(y){this.$vScroll=b;this.scrollBarV.setVisible(b)}var v=r(f/this.lineHeight)-1,k=c(0,e((this.scrollTop-g)/this.lineHeight)),x=k+v,w,C,A=this.lineHeight;k=t.screenToDocumentRow(k,0);var E=t.getFoldLine(k);if(E){k=E.start.row}w=t.documentToScreenRow(k,0);C=t.getRowLength(k)*A;x=d(t.screenToDocumentRow(x,0),t.getLength()-1);f=n.scrollerHeight+t.getRowLength(x)*A+C;g=this.scrollTop-w*A;var F=0;if(this.layerConfig.width!=s)F=this.CHANGE_H_SCROLL;if(u||y){F=this.$updateCachedSize(!0,this.gutterWidth,n.width,n.height);this._signal('scrollbarVisibilityChanged');if(y)s=this.$getLongestLine()}this.layerConfig={width:s,padding:this.$padding,firstRow:k,firstRowScreen:w,lastRow:x,lineHeight:A,characterWidth:this.characterWidth,minHeight:f,maxHeight:i,offset:g,gutterOffset:A?c(0,r((g+n.height-n.scrollerHeight)/A)):0,height:this.$size.scrollerHeight};return F};this.$updateLines=function(){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(e>n.lastRow+1){return}if(ti){if(n&&d+s>i+this.lineHeight)i-=n*this.$size.scrollerHeight;if(0===i)i=-this.scrollMargin.top;this.session.setScrollTop(i)}else if(d+this.$size.scrollerHeight-la){if(at&&this.session.getScrollTop()>=1-this.scrollMargin.top)return!0;if(0e&&this.session.getScrollLeft()>=1-this.scrollMargin.left)return!0;if(0this.$doc.getLength()>>1){this.call('setValue',[this.$doc.getValue()])}else this.emit('change',{data:e})};this.$workerBlob=function(e){var t='importScripts(\''+a.qualifyURL(e)+'\');';try{return new Blob([t],{type:'application/javascript'})}catch(o){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,r=new n;r.append(t);return r.getBlob('application/javascript')}}}).call(l.prototype);var d=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this);this.changeListener=this.changeListener.bind(this);this.callbackId=1;this.callbacks={};this.messageBuffer=[];var r=null,o=!1,a=Object.create(i),l=this;this.$worker={};this.$worker.terminate=function(){};this.$worker.postMessage=function(t){l.messageBuffer.push(t);if(r){if(o)setTimeout(d);else d()}};this.setEmitSync=function(e){o=e};var d=function(){var e=l.messageBuffer.shift();if(e.command)r[e.command].apply(r,e.args);else if(e.event)a._signal(e.event,e.data)};a.postMessage=function(e){l.onMessage({data:e})};a.callback=function(e,t){this.postMessage({type:'call',id:t,data:e})};a.emit=function(e,t){this.postMessage({type:'event',name:e,data:t})};s.loadModule(['worker',t],function(e){r=new e[n](a);while(l.messageBuffer.length)d()})};d.prototype=l.prototype;t.UIWorkerClient=d;t.WorkerClient=l});ace.define('ace/placeholder',['require','exports','module','ace/range','ace/lib/event_emitter','ace/lib/oop'],function(e,t,n){'use strict';var r=e('./range').Range,o=e('./lib/event_emitter').EventEmitter,a=e('./lib/oop'),i=function(e,t,n,r,o,a){var i=this;this.length=t;this.session=e;this.doc=e.getDocument();this.mainClass=o;this.othersClass=a;this.$onUpdate=this.onUpdate.bind(this);this.doc.on('change',this.$onUpdate);this.$others=r;this.$onCursorChange=function(){setTimeout(function(){i.onCursorChange()})};this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length;this.setup();e.selection.on('changeCursor',this.$onCursorChange)};(function(){a.implement(this,o);this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON();if(n.selection.inMultiSelectMode)n.selection.toSingleRange();this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0;o.detach();o.markerId=n.addMarker(new r(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1);this.others=[];this.$others.forEach(function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0;r.detach();e.others.push(r)});n.setUndoSelect(!1)};this.showOtherMarkers=function(){if(this.othersActive)return;var e=this.session,t=this;this.othersActive=!0;this.others.forEach(function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})};this.hideOtherMarkers=function(){if(!this.othersActive)return;this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,a=t.start.column-this.pos.column;this.updateAnchors(e);if(o)this.length+=n;if(o&&!this.session.$fromUndo){if('insert'===e.action){for(var s=this.others.length-1;0<=s;s--){var i=this.others[s],l={row:i.row,column:i.column+a};this.doc.insertMergedLines(l,e.lines)}}else if('remove'===e.action){for(var s=this.others.length-1;0<=s;s--){var i=this.others[s],l={row:i.row,column:i.column+a};this.doc.remove(new r(l.row,l.column,l.row,l.column-n))}}}this.$updating=!1;this.updateMarkers()};this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()};this.updateMarkers=function(){if(this.$updating)return;var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId);n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)};this.onCursorChange=function(e){if(this.$updating||!this.session)return;var t=this.session.selection.getCursor();if(t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length){this.showOtherMarkers();this._emit('cursorEnter',e)}else{this.hideOtherMarkers();this._emit('cursorLeave',e)}};this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId);this.hideOtherMarkers();this.doc.removeEventListener('change',this.$onUpdate);this.session.selection.removeEventListener('changeCursor',this.$onCursorChange);this.session.setUndoSelect(!0);this.session=null};this.cancel=function(){if(-1===this.$undoStackDepth)return;for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;ns)s=0;if(0>u)u=0;if(u==p)n=!0;for(var g=u,f;g<=p;g++){f=c.fromPoints(this.session.screenToDocumentPosition(g,s),this.session.screenToDocumentPosition(g,l));if(f.isEmpty()){if(h&&o(f.end,h))break;var h=f.end}f.cursor=a?f.start:f.end;r.push(f)}if(d)r.reverse();if(!n){var m=r.length-1;while(r[m].isEmpty()&&0=b;y--){if(r[y].isEmpty())r.splice(y,1)}}return r}}).call(l.prototype);var b=e('./editor').Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.addSelectionMarker=function(e){if(!e.cursor)e.cursor=e.end;var t=this.getSelectionStyle();e.marker=this.session.addMarker(e,'ace_selection',t);this.session.$selectionMarkers.push(e);this.session.selectionMarkerCount=this.session.$selectionMarkers.length;return e};this.removeSelectionMarker=function(e){if(!e.marker)return;this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);if(-1!=t)this.session.$selectionMarkers.splice(t,1);this.session.selectionMarkerCount=this.session.$selectionMarkers.length};this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length,r;n--;){r=e[n];if(!r.marker)continue;this.session.removeMarker(r.marker);var o=t.indexOf(r);if(-1!=o)t.splice(o,1)}this.session.selectionMarkerCount=t.length};this.$onAddRange=function(t){this.addSelectionMarker(t.range);this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.$onRemoveRange=function(t){this.removeSelectionMarkers(t.ranges);this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.$onMultiSelect=function(t){if(this.inMultiSelectMode)return;this.inMultiSelectMode=!0;this.setStyle('ace_multiselect');this.keyBinding.addKeyboardHandler(p.keyboardHandler);this.commands.setDefaultHandler('exec',this.$onMultiSelectExec);this.renderer.updateCursor();this.renderer.updateBackMarkers()};this.$onSingleSelect=function(t){if(this.session.multiSelect.inVirtualMode)return;this.inMultiSelectMode=!1;this.unsetStyle('ace_multiselect');this.keyBinding.removeKeyboardHandler(p.keyboardHandler);this.commands.removeDefaultHandler('exec',this.$onMultiSelectExec);this.renderer.updateCursor();this.renderer.updateBackMarkers();this._emit('changeSelection')};this.$onMultiSelectExec=function(t){var e=t.command,n=t.editor;if(!n.multiSelect)return;if(!e.multiSelectAction){var r=e.exec(n,t.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange());n.multiSelect.mergeOverlappingRanges()}else if('forEach'==e.multiSelectAction){r=n.forEachSelection(e,t.args)}else if('forEachLine'==e.multiSelectAction){r=n.forEachSelection(e,t.args,!0)}else if('single'==e.multiSelectAction){n.exitMultiSelectMode();r=e.exec(n,t.args||{})}else{r=e.multiSelectAction(n,t.args||{})}return r};this.forEachSelection=function(e,t,n){if(this.inVirtualSelectionMode)return;var r=n&&n.keepOrder,o=!0==n||n&&n.$byLines,a=this.session,s=this.selection,d=s.rangeList,c=(r?s:d).ranges,u;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var p=s._eventRegistry;s._eventRegistry={};var g=new l(a);this.inVirtualSelectionMode=!0;for(var f=c.length;f--;){if(o){while(0e)s.unshift(s.pop());else s.push(s.shift());for(var o=r.length;o--;){var a=r[o],i=a.clone();t.replace(a,s[o]);a.start.row=i.start.row;a.start.column=i.start.column}};this.selectMore=function(e,t,n){var o=this.session,a=o.multiSelect,i=a.toOrientedRange();if(i.isEmpty()){i=o.getWordRange(i.start.row,i.start.column);i.cursor=-1==e?i.start:i.end;this.multiSelect.addRange(i);if(n)return}var s=o.getTextRange(i),l=r(o,s,e);if(l){l.cursor=-1==e?l.start:l.end;this.$blockScrolling+=1;this.session.unfold(l);this.multiSelect.addRange(l);this.$blockScrolling-=1;this.renderer.scrollCursorIntoView(null,0.5)}if(t)this.multiSelect.substractPoint(i.cursor)};this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,o=-1,r=n.filter(function(e){if(e.cursor.row==o)return!0;o=e.cursor.row});if(!n.length||r.length==n.length-1){var a=this.selection.getRange(),i=a.start.row,s=a.end.row,l=i==s;if(l){var d=this.session.getLength(),u;do{u=this.session.getLine(s)}while(/[=:]/.test(u)&&++si)i=0;if(s>=d)s=d-1}var p=this.session.removeFullLines(i,s);p=this.$reAlignText(p,l);this.session.insert({row:i,column:0},p.join('\n')+'\n');if(!l){a.start.column=0;a.end.column=p[p.length-1].length}this.selection.setRange(a)}else{r.forEach(function(e){t.substractPoint(e.cursor)});var f=0,h=Infinity,m=n.map(function(t){var n=t.cursor,r=e.getLine(n.row),o=r.substr(n.column).search(/\S/g);if(-1==o)o=0;if(n.column>f)f=n.column;if(oa)e.insert(r,g.stringRepeat(' ',o-a));else e.remove(new c(r.row,r.column,r.row,r.column-o+a));t.start.column=t.end.column=f;t.start.row=t.end.row=r.row;t.cursor=t.end});t.fromOrientedRange(n[0]);this.renderer.updateCursor();this.renderer.updateBackMarkers()}};this.$reAlignText=function(e,t){var i=!0,s=!0,l,d,c;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);if(!t)return[e];if(null==l){l=t[1].length;d=t[2].length;c=t[3].length;return t}if(l+d+c!=t[1].length+t[2].length+t[3].length)s=!1;if(l!=t[1].length)i=!1;if(l>t[1].length)l=t[1].length;if(dt[3].length)c=t[3].length;return t}).map(t?r:i?s?o:r:a);function n(e){return g.stringRepeat(' ',e)}function r(e){return!e[2]?e[0]:n(l)+e[2]+n(d-e[2].length+c)+e[4].replace(/^([=:])\s+/,'$1 ')}function o(e){return!e[2]?e[0]:n(l+d-e[2].length)+e[2]+n(c,' ')+e[4].replace(/^([=:])\s+/,'$1 ')}function a(e){return!e[2]?e[0]:n(l)+e[2]+n(c)+e[4].replace(/^([=:])\s+/,'$1 ')}}}).call(b.prototype);function o(e,t){return e.row==t.row&&e.column==t.column}t.onSessionChange=function(t){var e=t.session;if(e&&!e.multiSelect){e.$selectionMarkers=[];e.selection.$initRangeList();e.multiSelect=e.selection}this.multiSelect=e&&e.multiSelect;var n=t.oldSession;if(n){n.multiSelect.off('addRange',this.$onAddRange);n.multiSelect.off('removeRange',this.$onRemoveRange);n.multiSelect.off('multiSelect',this.$onMultiSelect);n.multiSelect.off('singleSelect',this.$onSingleSelect);n.multiSelect.lead.off('change',this.$checkMultiselectChange);n.multiSelect.anchor.off('change',this.$checkMultiselectChange)}if(e){e.multiSelect.on('addRange',this.$onAddRange);e.multiSelect.on('removeRange',this.$onRemoveRange);e.multiSelect.on('multiSelect',this.$onMultiSelect);e.multiSelect.on('singleSelect',this.$onSingleSelect);e.multiSelect.lead.on('change',this.$checkMultiselectChange);e.multiSelect.anchor.on('change',this.$checkMultiselectChange)}if(e&&this.inMultiSelectMode!=e.selection.inMultiSelectMode){if(e.selection.inMultiSelectMode)this.$onMultiSelect();else this.$onSingleSelect()}};function a(e){if(e.$multiselectOnSessionChange)return;e.$onAddRange=e.$onAddRange.bind(e);e.$onRemoveRange=e.$onRemoveRange.bind(e);e.$onMultiSelect=e.$onMultiSelect.bind(e);e.$onSingleSelect=e.$onSingleSelect.bind(e);e.$multiselectOnSessionChange=t.onSessionChange.bind(e);e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e);e.$multiselectOnSessionChange(e);e.on('changeSession',e.$multiselectOnSessionChange);e.on('mousedown',d);e.commands.addCommands(p.defaultCommands);i(e)}function i(t){var n=t.textInput.getElement(),r=!1;u.addListener(n,'keydown',function(n){var o=18==n.keyCode&&!(n.ctrlKey||n.shiftKey||n.metaKey);if(t.$blockSelectEnabled&&o){if(!r){t.renderer.setMouseCursor('crosshair');r=!0}}else if(r){e()}});u.addListener(n,'keyup',e);u.addListener(n,'blur',e);function e(n){if(r){t.renderer.setMouseCursor('');r=!1}}}t.MultiSelect=a;e('./config').defineOptions(b.prototype,'editor',{enableMultiselect:{set:function(e){a(this);if(e){this.on('changeSession',this.$multiselectOnSessionChange);this.on('mousedown',d)}else{this.off('changeSession',this.$multiselectOnSessionChange);this.off('mousedown',d)}},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})});ace.define('ace/mode/folding/fold_mode',['require','exports','module','ace/range'],function(e,t,n){'use strict';var r=e('../../range').Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null;this.foldingStopMarker=null;this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.foldingStartMarker.test(r))return'start';if('markbeginend'==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r))return'end';return''};this.getFoldWidgetRange=function(e,t,n){return null};this.indentationBlock=function(e,t,n){var o=/\S/,a=e.getLine(t),i=a.search(o);if(-1==i)return;var s=n||a.length,l=e.getLength(),d=t,c=t;while(++td){var p=e.getLine(c).length;return new r(d,s,c,p)}};this.openingBracketBlock=function(e,t,n,o,a){var i={row:n,column:o+1},s=e.$findClosingBracket(t,i,a);if(!s)return;var l=e.foldWidgets[s.row];if(null==l)l=e.getFoldWidget(s.row);if('start'==l&&s.row>i.row){s.row--;s.column=e.getLine(s.row).length}return r.fromPoints(i,s)};this.closingBracketBlock=function(e,t,n,o,a){var i={row:n,column:o},s=e.$findOpeningBracket(t,i);if(!s)return;s.column++;i.column--;return r.fromPoints(s,i)}}).call(o.prototype)});ace.define('ace/theme/textmate',['require','exports','module','ace/lib/dom'],function(e,t,n){'use strict';t.isDark=!1;t.cssClass='ace-tm';t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e('../lib/dom');r.importCssString(t.cssText,t.cssClass)});ace.define('ace/line_widgets',['require','exports','module','ace/lib/oop','ace/lib/dom','ace/range'],function(e,t,n){'use strict';var a=e('./lib/oop'),i=e('./lib/dom'),s=e('./range').Range;function o(e){this.session=e;this.session.widgetManager=this;this.session.getRowLength=this.getRowLength;this.session.$getWidgetScreenLength=this.$getWidgetScreenLength;this.updateOnChange=this.updateOnChange.bind(this);this.renderWidgets=this.renderWidgets.bind(this);this.measureWidgets=this.measureWidgets.bind(this);this.session._changedWidgets=[];this.$onChangeEditor=this.$onChangeEditor.bind(this);this.session.on('change',this.updateOnChange);this.session.on('changeFold',this.updateOnFold);this.session.on('changeEditor',this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;if(this.lineWidgets)t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;if(!this.$useWrapMode||!this.$wrapData[e]){return 1+t}else{return this.$wrapData[e].length+1+t}};this.$getWidgetScreenLength=function(){var e=0;this.lineWidgets.forEach(function(t){if(t&&t.rowCount&&!t.hidden)e+=t.rowCount});return e};this.$onChangeEditor=function(t){this.attach(t.editor)};this.attach=function(e){if(e&&e.widgetManager&&e.widgetManager!=this)e.widgetManager.detach();if(this.editor==e)return;this.detach();this.editor=e;if(e){e.widgetManager=this;e.renderer.on('beforeRender',this.measureWidgets);e.renderer.on('afterRender',this.renderWidgets)}};this.detach=function(t){var e=this.editor;if(!e)return;this.editor=null;e.widgetManager=null;e.renderer.off('beforeRender',this.measureWidgets);e.renderer.off('afterRender',this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){if(e&&e.el&&e.el.parentNode){e._inDocument=!1;e.el.parentNode.removeChild(e.el)}})};this.updateOnFold=function(t,e){var n=e.lineWidgets;if(!n||!t.action)return;for(var r=t.data,o=r.start.row,a=r.end.row,s='add'==t.action,l=o+1;ll)l=0}if(i.rowCount!=l){i.rowCount=l;if(i.row>1,i=n(t,e[a]);if(0i)o=a-1;else return a}return-(r+1)}function o(e,t,n){var o=e.getAnnotations().sort(s.comparePoints);if(!o.length)return;var a=r(o,{row:t,column:-1},s.comparePoints);if(0>a)a=-a-1;if(a>=o.length)a=0n)a=o.length-1;var l=o[a];if(!l||!n)return;if(l.row===t){do{l=o[a+=n]}while(l&&l.row===t);if(!l)return o.slice()}var d=[];t=l.row;do{d[0>n?'unshift':'push'](l);l=o[a+=n]}while(l&&l.row==t);return d.length&&d}t.showErrorMarker=function(e,t){var n=e.session;if(!n.widgetManager){n.widgetManager=new a(n);n.widgetManager.attach(e)}var r=e.getCursorPosition(),s=r.row,l=n.widgetManager.getWidgetsAtRow(s).filter(function(e){return'errorMarker'==e.type})[0];if(l){l.destroy()}else{s-=t}var d=o(n,s,t),c;if(d){var u=d[0];r.column=(u.pos&&'number'!=typeof u.column?u.pos.sc:u.column)||0;r.row=u.row;c=e.renderer.$gutterLayer.$annotations[r.row]}else if(l){return}else{c={text:['Looks good!'],className:'ace_ok'}}e.session.unfold(r.row);e.selection.moveToPosition(r);var p={row:r.row,fixedWidth:!0,coverGutter:!0,el:i.createElement('div'),type:'errorMarker'},g=p.el.appendChild(i.createElement('div')),f=p.el.appendChild(i.createElement('div'));f.className='error_widget_arrow '+c.className;var h=e.renderer.$cursorLayer.getPixelPosition(r).left;f.style.left=h+e.renderer.gutterWidth-5+'px';p.el.className='error_widget_wrapper';g.className='error_widget '+c.className;g.innerHTML=c.text.join('
    ');g.appendChild(i.createElement('div'));var m=function(e,t,n){if(0===t&&('esc'===n||'return'===n)){p.destroy();return{command:'null'}}};p.destroy=function(){if(e.$mouseHandler.isMousePressed)return;e.keyBinding.removeKeyboardHandler(m);n.widgetManager.removeLineWidget(p);e.off('changeSelection',p.destroy);e.off('changeSession',p.destroy);e.off('mouseup',p.destroy);e.off('change',p.destroy)};e.keyBinding.addKeyboardHandler(m);e.on('changeSelection',p.destroy);e.on('changeSession',p.destroy);e.on('mouseup',p.destroy);e.on('change',p.destroy);e.session.widgetManager.addLineWidget(p);p.el.onmousedown=e.focus.bind(e);e.renderer.scrollCursorIntoView(null,0.5,{bottom:p.el.offsetHeight})};i.importCssString(' .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }','')});ace.define('ace/ace',['require','exports','module','ace/lib/fixoldbrowsers','ace/lib/dom','ace/lib/event','ace/editor','ace/edit_session','ace/undomanager','ace/virtual_renderer','ace/worker/worker_client','ace/keyboard/hash_handler','ace/placeholder','ace/multi_select','ace/mode/folding/fold_mode','ace/theme/textmate','ace/ext/error_marker','ace/config'],function(e,t,r){'use strict';e('./lib/fixoldbrowsers');var o=e('./lib/dom'),a=e('./lib/event'),i=e('./editor').Editor,s=e('./edit_session').EditSession,l=e('./undomanager').UndoManager,d=e('./virtual_renderer').VirtualRenderer;e('./worker/worker_client');e('./keyboard/hash_handler');e('./placeholder');e('./multi_select');e('./mode/folding/fold_mode');e('./theme/textmate');e('./ext/error_marker');t.config=e('./config');t.acequire=e;if(!0)t.define=n(11);t.edit=function(e){if('string'==typeof e){var n=e;e=document.getElementById(n);if(!e)throw new Error('ace.edit can\'t find div #'+n)}if(e&&e.env&&e.env.editor instanceof i)return e.env.editor;var r='';if(e&&/input|textarea/i.test(e.tagName)){var s=e;r=s.value;e=o.createElement('pre');s.parentNode.replaceChild(e,s)}else if(e){r=o.getInnerText(e);e.innerHTML=''}var l=t.createEditSession(r),c=new i(new d(e));c.setSession(l);var u={document:l,editor:c,onResize:c.resize.bind(c,null)};if(s)u.textarea=s;a.addListener(window,'resize',u.onResize);c.on('destroy',function(){a.removeListener(window,'resize',u.onResize);u.editor.container.env=null});c.container.env=c.env=u;return c};t.createEditSession=function(e,t){var n=new s(e,t);n.setUndoManager(new l);return n};t.EditSession=s;t.UndoManager=l;t.version='1.2.6'});(function(){ace.acequire(['ace/ace'],function(e){if(e){e.config.init(!0);e.define=ace.define}if(!window.ace)window.ace=e;for(var t in e)if(e.hasOwnProperty(t))window.ace[t]=e[t]})})();e.exports=window.ace.acequire('ace/ace')},function(e,t){e.exports=function(){throw new Error('define cannot be used indirect')}},function(e,t,n){(function(e,n){var ve=200,ke='__lodash_hash_undefined__',xe=1,we=2,Ce=9007199254740991,Ae='[object Arguments]',Ee='[object Array]',Fe='[object AsyncFunction]',Se='[object Boolean]',_e='[object Date]',Le='[object Error]',Te='[object Function]',De='[object GeneratorFunction]',Be='[object Map]',$e='[object Number]',Re='[object Null]',Me='[object Object]',Pe='[object Promise]',Oe='[object Proxy]',Ne='[object RegExp]',je='[object Set]',Ie='[object String]',We='[object Symbol]',He='[object Undefined]',Ve='[object WeakMap]',Ue='[object ArrayBuffer]',ze='[object DataView]',Ge='[object Float32Array]',qe='[object Float64Array]',Ke='[object Int8Array]',Ye='[object Int16Array]',Xe='[object Int32Array]',Qe='[object Uint8Array]',Je='[object Uint8ClampedArray]',Ze='[object Uint16Array]',et='[object Uint32Array]',tt=/[\\^$.*+?()[\]{}|]/g,nt=/^\[object .+?Constructor\]$/,rt=/^(?:0|[1-9]\d*)$/,ot={};ot[Ge]=ot[qe]=ot[Ke]=ot[Ye]=ot[Xe]=ot[Qe]=ot[Je]=ot[Ze]=ot[et]=!0;ot[Ae]=ot[Ee]=ot[Ue]=ot[Se]=ot[ze]=ot[_e]=ot[Le]=ot[Te]=ot[Be]=ot[$e]=ot[Me]=ot[Ne]=ot[je]=ot[Ie]=ot[Ve]=!1;var at='object'==typeof e&&e&&e.Object===Object&&e,it='object'==typeof self&&self&&self.Object===Object&&self,st=at||it||Function('return this')(),lt='object'==typeof t&&t&&!t.nodeType&&t,dt=lt&&'object'==typeof n&&n&&!n.nodeType&&n,ct=dt&&dt.exports===lt,ut=ct&&at.process,pt=function(){try{return ut&&ut.binding&&ut.binding('util')}catch(t){}}(),gt=pt&&pt.isTypedArray;function r(e,t){var n=-1,r=null==e?0:e.length,o=0,a=[];while(++nn){return!1}var r=t.length-1;if(n==r){t.pop()}else{St.call(t,n,1)}--this.size;return!0}function w(e){var t=this.__data__,n=W(t,e);return 0>n?void 0:t[n][1]}function C(e){return-1r){++this.size;n.push([e,t])}else{n[r][1]=t}return this}v.prototype.clear=k;v.prototype['delete']=x;v.prototype.get=w;v.prototype.has=C;v.prototype.set=A;function E(e){var t=-1,n=null==e?0:e.length;this.clear();while(++td)){return!1}var u=i.get(e);if(u&&i.get(t)){return u==t}var p=-1,g=!0,f=n&we?new D:void 0;i.set(e,t);i.set(t,e);while(++p\n body,\n html {\n height: 100%;\n width: 100%;\n }\n * {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n }\n .footer {\n position: absolute;\n bottom: 0;\n }\n pre {\n display: inline-block;\n background: black;\n color: white !important;\n }\n code {\n display: inline-block;\n padding: 0;\n margin: 0;\n color: grey;\n }\n \n
    \n

    lcov-server

    \n

    \uD83C\uDFAF A simple lcov server & cli parser

    \n v1.1.5\n
    \n
    \n \n
    npm install -g lcov-server
    \n
    \n
    \n  $ lcov-server  this will startup the lcov-server \n  $ tap test/**/*.js --coverage-report=text-lcov | lcov-server --upload https://localhost:8080
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Lines\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Branches\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Functions\n \n \n \n \n
    \n
    \n ',options:{width:'100%'},footer:{author:'Made with \uD83D\uDC12 by @gabrielcsapo',website:'http://www.gabrielcsapo.com'},path:'/Users/gacsapo/Documents/temp/lcov-server/tryitout.js'}){var m=window&&window.source||{title:'lcov-server',nav:{Source:'https://github.com/gabrielcsapo/lcov-server',Storybook:'./storybook/index.html'},body:'\n \n
    \n

    lcov-server

    \n

    \uD83C\uDFAF A simple lcov server & cli parser

    \n v1.1.5\n
    \n
    \n \n
    npm install -g lcov-server
    \n
    \n
    \n  $ lcov-server  this will startup the lcov-server \n  $ tap test/**/*.js --coverage-report=text-lcov | lcov-server --upload https://localhost:8080
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Lines\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Branches\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Functions\n \n \n \n \n
    \n
    \n ',options:{width:'100%'},footer:{author:'Made with \uD83D\uDC12 by @gabrielcsapo',website:'http://www.gabrielcsapo.com'},path:'/Users/gacsapo/Documents/temp/lcov-server/tryitout.js'};(0,p.render)(d.default.createElement(h,m),document.getElementById('root'));if(!1){e.hot.accept();e.hot.dispose(function(){location.reload()})}}else{e.exports=h}},function(e,t,n){var r=n(16);if('string'==typeof r)r=[[e.i,r,'']];var o,a={hmr:!0};a.transform=o;var i=n(7)(r,a);if(r.locals)e.exports=r.locals;if(!1){if(!r.locals){e.hot.accept('!!../../css-loader/index.js!./psychic-min.css',function(){var t=require('!!../../css-loader/index.js!./psychic-min.css');if('string'==typeof t)t=[[e.id,t,'']];i(t)})}e.hot.dispose(function(){i()})}},function(e,t,n){t=e.exports=n(6)(void 0);t.push([e.i,'/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}hr{display:block;box-sizing:content-box;text-align:center;border:0;height:0;border-top:1px solid #cfcfc4;border-bottom:1px solid rgba(255,255,255,.3)}hr.ellipsis{border-top:0;border-bottom:0}hr.ellipsis:before{font-weight:400;font-style:italic;font-size:28px;letter-spacing:.6em;font-size:13px;content:\'...\';display:inline-block;margin-left:.6em;color:#000;position:relative}pre{display:block;padding:10px;font-size:13px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;white-space:normal;background-color:#f5f5f5;border-radius:5px;border-left:.3rem solid transparent}blockquote{padding:10px 20px;font-size:17.5px;border-left:5px solid #eee}code{border-radius:0;display:block;padding:1rem 1.5rem;white-space:pre;max-width:100%}a{color:#0079ad;text-decoration:none;font-weight:300}small{color:inherit;font-size:75%;font-weight:400}.alert{padding:10px 0 10px 10px;border-radius:5px;border:1px solid #cfcfc4;position:relative}.alert>.alert-close{font-size:25px;line-height:15px;position:absolute;right:10px;top:10px}.alert.alert-white{background-color:#fff;border:1px solid #e6e6e6}.alert.alert-white *{color:#000}.alert.alert-black{background-color:#000;border:1px solid #000}.alert.alert-black *{color:#fff}.alert.alert-default{background-color:#cfcfc4;border:1px solid #bdbdae}.alert.alert-default *{color:#fff}.alert.alert-primary{background-color:#779ecb;border:1px solid #608dc2}.alert.alert-primary *{color:#fff}.alert.alert-success{background-color:#7d7;border:1px solid #5cd65c}.alert.alert-success *{color:#fff}.alert.alert-info{background-color:#9bddff;border:1px solid #72cfff}.alert.alert-info *{color:#fff}.alert.alert-warning{background-color:#ffb347;border:1px solid #ffa626}.alert.alert-warning *{color:#fff}.alert.alert-danger{background-color:#ff6961;border:1px solid #ff483e}.alert.alert-danger *{color:#fff}.badge{display:table-cell;padding:8px 8px 8px 8px;border-radius:100px;border:1px solid #cfcfc4;text-align:center;vertical-align:middle}.badge.badge-white{background-color:#fff;color:#000}.badge.border-white{color:#000}.badge.badge-black{background-color:#000;color:#fff}.badge.border-black{color:#000}.badge.badge-default{background-color:#cfcfc4;color:#fff}.badge.border-default{color:#cfcfc4}.badge.badge-primary{background-color:#779ecb;color:#fff}.badge.border-primary{color:#779ecb}.badge.badge-success{background-color:#7d7;color:#fff}.badge.border-success{color:#7d7}.badge.badge-info{background-color:#9bddff;color:#fff}.badge.border-info{color:#9bddff}.badge.badge-warning{background-color:#ffb347;color:#fff}.badge.border-warning{color:#ffb347}.badge.badge-danger{background-color:#ff6961;color:#fff}.badge.border-danger{color:#ff6961}label{display:inline-block;margin-bottom:.5rem}input,select,textarea{display:block;padding:.375rem 1% .375rem 1%;line-height:1.5}select{background:url("data:image/svg+xml;utf8,");background-color:#fff;border:1px solid #cfcfc4;background-repeat:no-repeat;background-position:right 10px top 5px;background-size:16px 16px;padding:5px 30px 5px 15px;width:auto;text-align:center;border-radius:5px;appearance:none;-webkit-appearance:none;outline:0}select:active,select:focus{outline:0}select.input-white{border-color:#fff}select.input-black{border-color:#a6a6a6}select.input-default{border-color:#eeeeea}select.input-primary{border-color:#cfdded}select.input-success{border-color:#cff3cf}select.input-info{border-color:#dcf3ff}select.input-warning{border-color:#ffe4bf}select.input-danger{border-color:#ffcbc8}input,textarea{width:98%;margin:0;padding:.375rem 1% .375rem 1%;background-color:#fff;background-image:none;border:1px solid #cfcfc4;border-radius:.25rem}input:focus,textarea:focus{border-color:#779ecb;outline:0}input.input-white,textarea.input-white{border-color:#fff}input.input-white:focus,textarea.input-white:focus{border-color:#bfbfbf}input.input-black,textarea.input-black{border-color:#a6a6a6}input.input-black:focus,textarea.input-black:focus{border-color:#000}input.input-default,textarea.input-default{border-color:#eeeeea}input.input-default:focus,textarea.input-default:focus{border-color:#a2a28c}input.input-primary,textarea.input-primary{border-color:#cfdded}input.input-primary:focus,textarea.input-primary:focus{border-color:#4375af}input.input-success,textarea.input-success{border-color:#cff3cf}input.input-success:focus,textarea.input-success:focus{border-color:#3c3}input.input-info,textarea.input-info{border-color:#dcf3ff}input.input-info:focus,textarea.input-info:focus{border-color:#35baff}input.input-warning,textarea.input-warning{border-color:#ffe4bf}input.input-warning:focus,textarea.input-warning:focus{border-color:#f49000}input.input-danger,textarea.input-danger{border-color:#ffcbc8}input.input-danger:focus,textarea.input-danger:focus{border-color:#ff1509}.btn-group{margin:10px;display:inline-block}.btn-group>.btn{margin:-3px;border-radius:0}.btn-group>.btn:first-child{border-radius:5px 0 0 5px}.btn-group>.btn:last-child{border-radius:0 5px 5px 0}.btn{padding:12px 18px;margin:10px;cursor:pointer;display:inline-block;text-align:center;background-color:#fff;border-radius:5px;border:1px solid #cfcfc4;color:#655d5d}.btn:hover{border-color:#d6d6cd}.btn:active{opacity:.5}.btn:focus{outline:0}.btn.btn-block{width:100%}.btn.border-white{color:#fff}.btn.border-white:active,.btn.border-white:hover{border-color:#fff}.btn.border-white:active{border-color:#d9d9d9;opacity:.5}.btn.btn-white{color:#000;border:1px solid #d9d9d9;background-color:#fff}.btn.btn-white:active,.btn.btn-white:hover{border-color:#d9d9d9}.btn.btn-white:hover{background-color:#fff}.btn.btn-white:active{background-color:#d9d9d9;opacity:.5}.btn.border-black{color:#000}.btn.border-black:active,.btn.border-black:hover{border-color:#262626}.btn.border-black:active{border-color:#000;opacity:.5}.btn.btn-black{color:#fff;border:1px solid #000;background-color:#000}.btn.btn-black:active,.btn.btn-black:hover{border-color:#000}.btn.btn-black:hover{background-color:#262626}.btn.btn-black:active{background-color:#000;opacity:.5}.btn.border-default{color:#cfcfc4}.btn.border-default:active,.btn.border-default:hover{border-color:#d6d6cd}.btn.border-default:active{border-color:#b4b4a3;opacity:.5}.btn.btn-default{color:#fff;border:1px solid #b4b4a3;background-color:#cfcfc4}.btn.btn-default:active,.btn.btn-default:hover{border-color:#b4b4a3}.btn.btn-default:hover{background-color:#d6d6cd}.btn.btn-default:active{background-color:#b4b4a3;opacity:.5}.btn.border-primary{color:#779ecb}.btn.border-primary:active,.btn.border-primary:hover{border-color:#8badd3}.btn.border-primary:active{border-color:#5485be;opacity:.5}.btn.btn-primary{color:#fff;border:1px solid #5485be;background-color:#779ecb}.btn.btn-primary:active,.btn.btn-primary:hover{border-color:#5485be}.btn.btn-primary:hover{background-color:#8badd3}.btn.btn-primary:active{background-color:#5485be;opacity:.5}.btn.border-success{color:#7d7}.btn.border-success:active,.btn.border-success:hover{border-color:#8be28b}.btn.border-success:active{border-color:#4ed34e;opacity:.5}.btn.btn-success{color:#fff;border:1px solid #4ed34e;background-color:#7d7}.btn.btn-success:active,.btn.btn-success:hover{border-color:#4ed34e}.btn.btn-success:hover{background-color:#8be28b}.btn.btn-success:active{background-color:#4ed34e;opacity:.5}.btn.border-info{color:#9bddff}.btn.border-info:active,.btn.border-info:hover{border-color:#aae2ff}.btn.border-info:active{border-color:#5dc8ff;opacity:.5}.btn.btn-info{color:#fff;border:1px solid #5dc8ff;background-color:#9bddff}.btn.btn-info:active,.btn.btn-info:hover{border-color:#5dc8ff}.btn.btn-info:hover{background-color:#aae2ff}.btn.btn-info:active{background-color:#5dc8ff;opacity:.5}.btn.border-warning{color:#ffb347}.btn.border-warning:active,.btn.border-warning:hover{border-color:#ffbe63}.btn.border-warning:active{border-color:#ff9f16;opacity:.5}.btn.btn-warning{color:#fff;border:1px solid #ff9f16;background-color:#ffb347}.btn.btn-warning:active,.btn.btn-warning:hover{border-color:#ff9f16}.btn.btn-warning:hover{background-color:#ffbe63}.btn.btn-warning:active{background-color:#ff9f16;opacity:.5}.btn.border-danger{color:#ff6961}.btn.border-danger:active,.btn.border-danger:hover{border-color:#ff7f79}.btn.border-danger:active{border-color:#ff372c;opacity:.5}.btn.btn-danger{color:#fff;border:1px solid #ff372c;background-color:#ff6961}.btn.btn-danger:active,.btn.btn-danger:hover{border-color:#ff372c}.btn.btn-danger:hover{background-color:#ff7f79}.btn.btn-danger:active{background-color:#ff372c;opacity:.5}.grid{width:100%}.grid:after{clear:both;visibility:hidden;display:block;font-size:0;content:\' \';height:0}.grid>*>*{word-wrap:break-word}.grid>div{float:left;box-sizing:border-box;min-height:1px}.grid>.col-0-12{display:none}.grid>.col-1-12{width:8.333333333333332%;margin-left:0;margin-right:0}.grid>.col-2-12{width:16.666666666666664%;margin-left:0;margin-right:0}.grid>.col-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-4-12{width:33.33333333333333%;margin-left:0;margin-right:0}.grid>.col-5-12{width:41.66666666666667%;margin-left:0;margin-right:0}.grid>.col-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-7-12{width:58.333333333333336%;margin-left:0;margin-right:0}.grid>.col-8-12{width:66.66666666666666%;margin-left:0;margin-right:0}.grid>.col-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-10-12{width:83.33333333333334%;margin-left:0;margin-right:0}.grid>.col-11-12{width:91.66666666666666%;margin-left:0;margin-right:0}.grid>.col-12-12{width:100%;margin-left:0;margin-right:0}@media screen and (min-width:16em){.grid>.col-xs-0-12{display:none}.grid>.col-xs-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-xs-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-xs-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-xs-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-xs-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-xs-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-xs-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-xs-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-xs-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-xs-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-xs-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-xs-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:32em){.grid>.col-sm-0-12{display:none}.grid>.col-sm-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-sm-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-sm-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-sm-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-sm-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-sm-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-sm-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-sm-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-sm-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-sm-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-sm-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-sm-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:48em){.grid>.col-md-0-12{display:none}.grid>.col-md-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-md-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-md-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-md-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-md-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-md-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-md-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-md-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-md-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-md-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-md-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-md-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:64em){.grid>.col-lg-0-12{display:none}.grid>.col-lg-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-lg-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-lg-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-lg-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-lg-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-lg-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-lg-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-lg-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-lg-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-lg-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-lg-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-lg-12-12{width:100%;margin-left:0;margin-right:0}}@media screen and (min-width:80em){.grid>.col-xl-0-12{display:none}.grid>.col-xl-1-12{width:8.3333%;margin-left:0;margin-right:0}.grid>.col-xl-2-12{width:16.6666%;margin-left:0;margin-right:0}.grid>.col-xl-3-12{width:25%;margin-left:0;margin-right:0}.grid>.col-xl-4-12{width:33.3333%;margin-left:0;margin-right:0}.grid>.col-xl-5-12{width:41.6666%;margin-left:0;margin-right:0}.grid>.col-xl-6-12{width:50%;margin-left:0;margin-right:0}.grid>.col-xl-7-12{width:58.3333%;margin-left:0;margin-right:0}.grid>.col-xl-8-12{width:66.6666%;margin-left:0;margin-right:0}.grid>.col-xl-9-12{width:75%;margin-left:0;margin-right:0}.grid>.col-xl-10-12{width:83.3333%;margin-left:0;margin-right:0}.grid>.col-xl-11-12{width:91.6666%;margin-left:0;margin-right:0}.grid>.col-xl-12-12{width:100%;margin-left:0;margin-right:0}}body{margin:0}.text-white,.text-white>*{color:#fff!important}.background-white{background-color:#fff!important}.border-white{border-color:#fff!important}.text-black,.text-black>*{color:#000!important}.background-black{background-color:#000!important}.border-black{border-color:#000!important}.text-default,.text-default>*{color:#cfcfc4!important}.background-default{background-color:#cfcfc4!important}.border-default{border-color:#cfcfc4!important}.text-primary,.text-primary>*{color:#779ecb!important}.background-primary{background-color:#779ecb!important}.border-primary{border-color:#779ecb!important}.text-success,.text-success>*{color:#7d7!important}.background-success{background-color:#7d7!important}.border-success{border-color:#7d7!important}.text-info,.text-info>*{color:#9bddff!important}.background-info{background-color:#9bddff!important}.border-info{border-color:#9bddff!important}.text-warning,.text-warning>*{color:#ffb347!important}.background-warning{background-color:#ffb347!important}.border-warning{border-color:#ffb347!important}.text-danger,.text-danger>*{color:#ff6961!important}.background-danger{background-color:#ff6961!important}.border-danger{border-color:#ff6961!important}.responsive{width:100%;height:auto}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.list{list-style:none;margin:0;padding:0}.list>.list-item{clear:both;min-height:30px;height:auto;line-height:30px;overflow:auto;padding:10px;border:1px solid #cfcfc4;border-bottom:0 solid transparent}.list>.list-item>.badge{float:right;line-height:20px}.list>.list-item.list-item-white{color:#000;border-color:#fff;background-color:#fff}.list>.list-item.list-item-white *{color:#000}.list>.list-item.list-item-black{color:#fff;border-color:#333;background-color:#000}.list>.list-item.list-item-black *{color:#fff}.list>.list-item.list-item-default{color:#fff;border-color:#d9d9d0;background-color:#cfcfc4}.list>.list-item.list-item-default *{color:#fff}.list>.list-item.list-item-primary{color:#fff;border-color:#92b1d5;background-color:#779ecb}.list>.list-item.list-item-primary *{color:#fff}.list>.list-item.list-item-success{color:#fff;border-color:#92e492;background-color:#7d7}.list>.list-item.list-item-success *{color:#fff}.list>.list-item.list-item-info{color:#fff;border-color:#afe4ff;background-color:#9bddff}.list>.list-item.list-item-info *{color:#fff}.list>.list-item.list-item-warning{color:#fff;border-color:#ffc26c;background-color:#ffb347}.list>.list-item.list-item-warning *{color:#fff}.list>.list-item.list-item-danger{color:#fff;border-color:#ff8781;background-color:#ff6961}.list>.list-item.list-item-danger *{color:#fff}.list>.list-item:first-child{border-radius:5px 5px 0 0}.list>.list-item:last-child{border-bottom:1px solid #cfcfc4;border-radius:0 0 5px 5px}.list>.list-item:only-child{border-radius:5px}.list>.list-item>.list-item-right{float:right}.list>.list-item>.list-item-left{float:left}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(50,50,50,.6);z-index:99999;opacity:0;pointer-events:none}.modal.active,.modal.modal-active,.modal:target{opacity:1;pointer-events:auto}.modal.modal-absolute{position:absolute;z-index:1}.modal.modal-absolute>div{position:absolute}.modal>div{min-width:400px;max-width:90%;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:5px 20px 13px 20px;border-radius:0;background:#fff}.modal.modal-white>div{border-left:10px solid #fff;color:#000}.modal.modal-black>div{border-left:10px solid #000;color:#000}.modal.modal-default>div{border-left:10px solid #cfcfc4;color:#000}.modal.modal-primary>div{border-left:10px solid #779ecb;color:#000}.modal.modal-success>div{border-left:10px solid #7d7;color:#000}.modal.modal-info>div{border-left:10px solid #9bddff;color:#000}.modal.modal-warning>div{border-left:10px solid #ffb347;color:#000}.modal.modal-danger>div{border-left:10px solid #ff6961;color:#000}.modal-close{line-height:25px;position:absolute;right:5px;text-align:center;top:5px;width:24px;text-decoration:none}.navbar *{font-weight:300;display:inline-block;text-decoration:none}.navbar{position:relative;min-height:50px;width:100%;display:table}.navbar>.container{border-width:0 0 1px 0}.navbar.navbar-fixed{position:fixed;z-index:100000}.navbar.navbar-center>.container{border-width:0 1px 1px 1px;margin:0 auto;width:50%;position:relative}.navbar.navbar-center>.container>.navbar-content{margin:0}.navbar.border-white>.container{border-style:solid}.navbar.navbar-white>.container{background-color:#fff}.navbar.navbar-white>.container>.nav a.active,.navbar.navbar-white>.container>.nav a:hover,.navbar.navbar-white>.container>.nav a:target{background-color:#fff}.navbar.border-black>.container{border-style:solid}.navbar.navbar-black>.container{background-color:#000}.navbar.navbar-black>.container>.nav a.active,.navbar.navbar-black>.container>.nav a:hover,.navbar.navbar-black>.container>.nav a:target{background-color:#a6a6a6}.navbar.border-default>.container{border-style:solid}.navbar.navbar-default>.container{background-color:#cfcfc4}.navbar.navbar-default>.container>.nav a.active,.navbar.navbar-default>.container>.nav a:hover,.navbar.navbar-default>.container>.nav a:target{background-color:#eeeeea}.navbar.border-primary>.container{border-style:solid}.navbar.navbar-primary>.container{background-color:#779ecb}.navbar.navbar-primary>.container>.nav a.active,.navbar.navbar-primary>.container>.nav a:hover,.navbar.navbar-primary>.container>.nav a:target{background-color:#cfdded}.navbar.border-success>.container{border-style:solid}.navbar.navbar-success>.container{background-color:#7d7}.navbar.navbar-success>.container>.nav a.active,.navbar.navbar-success>.container>.nav a:hover,.navbar.navbar-success>.container>.nav a:target{background-color:#cff3cf}.navbar.border-info>.container{border-style:solid}.navbar.navbar-info>.container{background-color:#9bddff}.navbar.navbar-info>.container>.nav a.active,.navbar.navbar-info>.container>.nav a:hover,.navbar.navbar-info>.container>.nav a:target{background-color:#dcf3ff}.navbar.border-warning>.container{border-style:solid}.navbar.navbar-warning>.container{background-color:#ffb347}.navbar.navbar-warning>.container>.nav a.active,.navbar.navbar-warning>.container>.nav a:hover,.navbar.navbar-warning>.container>.nav a:target{background-color:#ffe4bf}.navbar.border-danger>.container{border-style:solid}.navbar.navbar-danger>.container{background-color:#ff6961}.navbar.navbar-danger>.container>.nav a.active,.navbar.navbar-danger>.container>.nav a:hover,.navbar.navbar-danger>.container>.nav a:target{background-color:#ffcbc8}.navbar>.container{clear:both;margin:0 auto 0 auto;display:table;width:100%;height:60px}.navbar>.container>.nav{float:right;margin:0 20px 0 0;display:inline-block}.navbar>.container>.nav>select{background-color:transparent}.navbar>.container>.nav>a{padding:20px 10px 22px 10px}.navbar>.container>.nav>a:active,.navbar>.container>.nav>a:hover,.navbar>.container>.nav>a:target{opacity:.6}.navbar .navbar-title{float:left;display:inline-block;margin:20px 0 0 20px}.panel{border:1px solid #cfcfc4;border-radius:5px}.panel.panel-white{border:1px solid #fff}.panel.panel-white .panel-footer,.panel.panel-white>.panel-heading{background-color:#fff;color:#000}.panel.panel-black{border:1px solid #000}.panel.panel-black .panel-footer,.panel.panel-black>.panel-heading{background-color:#000;color:#fff}.panel.panel-default{border:1px solid #cfcfc4}.panel.panel-default .panel-footer,.panel.panel-default>.panel-heading{background-color:#cfcfc4;color:#fff}.panel.panel-primary{border:1px solid #779ecb}.panel.panel-primary .panel-footer,.panel.panel-primary>.panel-heading{background-color:#779ecb;color:#fff}.panel.panel-success{border:1px solid #7d7}.panel.panel-success .panel-footer,.panel.panel-success>.panel-heading{background-color:#7d7;color:#fff}.panel.panel-info{border:1px solid #9bddff}.panel.panel-info .panel-footer,.panel.panel-info>.panel-heading{background-color:#9bddff;color:#fff}.panel.panel-warning{border:1px solid #ffb347}.panel.panel-warning .panel-footer,.panel.panel-warning>.panel-heading{background-color:#ffb347;color:#fff}.panel.panel-danger{border:1px solid #ff6961}.panel.panel-danger .panel-footer,.panel.panel-danger>.panel-heading{background-color:#ff6961;color:#fff}.panel .panel-footer,.panel .panel-heading,.panel>.panel-body{padding:15px}.panel>.panel-heading{top:0}.panel>.panel-footer{bottom:0}.tooltip,[data-tooltip]{position:relative;cursor:pointer}.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{position:absolute;visibility:hidden;opacity:0;-webkit-transition:opacity .2s ease-in-out,visibility .2s ease-in-out,-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24),-webkit-transform .2s cubic-bezier(.71,1.7,.77,1.24);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);pointer-events:none}.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{visibility:visible;opacity:1}.tooltip:before,[data-tooltip]:before{z-index:1001;border:6px solid transparent;background:0 0;content:""}.tooltip:after,[data-tooltip]:after{z-index:1000;padding:8px;min-width:160px;width:auto;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;content:attr(data-tooltip);font-size:14px;line-height:1.2}.tooltip-top:after,.tooltip-top:before,.tooltip:after,.tooltip:before,[data-tooltip]:after,[data-tooltip]:before{bottom:100%;left:50%}.tooltip-top:before,.tooltip:before,[data-tooltip]:before{margin-left:-6px;margin-bottom:-12px;border-top-color:#000;border-top-color:rgba(51,51,51,.9)}.tooltip-top:after,.tooltip:after,[data-tooltip]:after{margin-left:-80px}.tooltip-top:focus:after,.tooltip-top:focus:before,.tooltip-top:hover:after,.tooltip-top:hover:before,.tooltip:focus:after,.tooltip:focus:before,.tooltip:hover:after,.tooltip:hover:before,[data-tooltip]:focus:after,[data-tooltip]:focus:before,[data-tooltip]:hover:after,[data-tooltip]:hover:before{-webkit-transform:translateY(-12px);transform:translateY(-12px)}.tooltip-left:after,.tooltip-left:before{right:100%;bottom:50%;left:auto}.tooltip-left:before{margin-left:0;margin-right:-12px;margin-bottom:0;border-top-color:transparent;border-left-color:#000;border-left-color:rgba(51,51,51,.9)}.tooltip-left:focus:after,.tooltip-left:focus:before,.tooltip-left:hover:after,.tooltip-left:hover:before{-webkit-transform:translateX(-12px);transform:translateX(-12px)}.tooltip-bottom:after,.tooltip-bottom:before{top:100%;bottom:auto;left:50%}.tooltip-bottom:before{margin-top:-12px;margin-bottom:0;border-top-color:transparent;border-bottom-color:#000;border-bottom-color:rgba(51,51,51,.9)}.tooltip-bottom:focus:after,.tooltip-bottom:focus:before,.tooltip-bottom:hover:after,.tooltip-bottom:hover:before{-webkit-transform:translateY(12px);transform:translateY(12px)}.tooltip-right:after,.tooltip-right:before{bottom:50%;left:100%}.tooltip-right:before{margin-bottom:0;margin-left:-12px;border-top-color:transparent;border-right-color:#000;border-right-color:rgba(51,51,51,.9)}.tooltip-right:focus:after,.tooltip-right:focus:before,.tooltip-right:hover:after,.tooltip-right:hover:before{-webkit-transform:translateX(12px);transform:translateX(12px)}.tooltip-left:before,.tooltip-right:before{top:3px}.tooltip-left:after,.tooltip-right:after{margin-left:0;margin-bottom:-16px}[class^=tooltip-]{border-bottom:1px dotted #000;text-decoration:none}.progress{width:100%;border:1px solid #cfcfc4;text-align:center}.progress .progress-fill{font-size:16px;height:15px;padding:10px 0 10px 0;background-color:#779ecb}.progress .progress-fill.progress-fill-white{background-color:#fff;color:#000}.progress .progress-fill.progress-fill-white:hover{background-color:#fff}.progress .progress-fill.progress-fill-black{background-color:#000;color:#fff}.progress .progress-fill.progress-fill-black:hover{background-color:#404040}.progress .progress-fill.progress-fill-default{background-color:#cfcfc4;color:#fff}.progress .progress-fill.progress-fill-default:hover{background-color:#dbdbd3}.progress .progress-fill.progress-fill-primary{background-color:#779ecb;color:#fff}.progress .progress-fill.progress-fill-primary:hover{background-color:#99b6d8}.progress .progress-fill.progress-fill-success{background-color:#7d7;color:#fff}.progress .progress-fill.progress-fill-success:hover{background-color:#99e599}.progress .progress-fill.progress-fill-info{background-color:#9bddff;color:#fff}.progress .progress-fill.progress-fill-info:hover{background-color:#b4e6ff}.progress .progress-fill.progress-fill-warning{background-color:#ffb347;color:#fff}.progress .progress-fill.progress-fill-warning:hover{background-color:#ffc675}.progress .progress-fill.progress-fill-danger{background-color:#ff6961;color:#fff}.progress .progress-fill.progress-fill-danger:hover{background-color:#ff8f89}.spinner-overlay{position:relative;top:0;left:0;width:100%;height:100%;z-index:3}.spinner-wrapper{text-align:center;position:relative;top:calc(50% - 50px)}.spinner-wrapper>.spinner{min-height:30px;min-width:30px}.spinner-message{box-sizing:border-box;width:100%;margin-top:30px;text-align:center;font-weight:400;z-index:100;outline:0}.spinner{display:inline-block;min-height:20px;height:auto;min-width:20px;width:auto;background-color:transparent;animation:rotation .7s infinite linear;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:3px solid transparent;border-top:3px solid #2180c0;border-radius:100%}.spinner.spinner-absolute{position:absolute}.spinner.spinner-white{border-top:3px solid #fff}.spinner.spinner-white.spinner-done{border-color:#fff;border-width:3px 3px 3px 3px}.spinner.spinner-white.done:after{border-width:0 3px 0 3px}.spinner.spinner-black{border-top:3px solid #000}.spinner.spinner-black.spinner-done{border-color:#000;border-width:3px 3px 3px 3px}.spinner.spinner-black.done:after{border-width:0 3px 0 3px}.spinner.spinner-default{border-top:3px solid #cfcfc4}.spinner.spinner-default.spinner-done{border-color:#cfcfc4;border-width:3px 3px 3px 3px}.spinner.spinner-default.done:after{border-width:0 3px 0 3px}.spinner.spinner-primary{border-top:3px solid #779ecb}.spinner.spinner-primary.spinner-done{border-color:#779ecb;border-width:3px 3px 3px 3px}.spinner.spinner-primary.done:after{border-width:0 3px 0 3px}.spinner.spinner-success{border-top:3px solid #7d7}.spinner.spinner-success.spinner-done{border-color:#7d7;border-width:3px 3px 3px 3px}.spinner.spinner-success.done:after{border-width:0 3px 0 3px}.spinner.spinner-info{border-top:3px solid #9bddff}.spinner.spinner-info.spinner-done{border-color:#9bddff;border-width:3px 3px 3px 3px}.spinner.spinner-info.done:after{border-width:0 3px 0 3px}.spinner.spinner-warning{border-top:3px solid #ffb347}.spinner.spinner-warning.spinner-done{border-color:#ffb347;border-width:3px 3px 3px 3px}.spinner.spinner-warning.done:after{border-width:0 3px 0 3px}.spinner.spinner-danger{border-top:3px solid #ff6961}.spinner.spinner-danger.spinner-done{border-color:#ff6961;border-width:3px 3px 3px 3px}.spinner.spinner-danger.done:after{border-width:0 3px 0 3px}@-moz-keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}@-webkit-keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}@-o-keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes rotation{from{transform:rotate(0)}to{transform:rotate(359deg)}}.table{text-align:center;word-break:break-all}.table.table-white{border:none}.table.table-white thead>tr>th{color:#fff}.table.table-white td,.table.table-white th{color:#fff;border-bottom:.1rem solid #fff}.table.table-black{border:none}.table.table-black thead>tr>th{color:#000}.table.table-black td,.table.table-black th{color:#0d0d0d;border-bottom:.1rem solid #000}.table.table-default{border:none}.table.table-default thead>tr>th{color:#cfcfc4}.table.table-default td,.table.table-default th{color:#d1d1c7;border-bottom:.1rem solid #cfcfc4}.table.table-primary{border:none}.table.table-primary thead>tr>th{color:#779ecb}.table.table-primary td,.table.table-primary th{color:#7ea3ce;border-bottom:.1rem solid #779ecb}.table.table-success{border:none}.table.table-success thead>tr>th{color:#7d7}.table.table-success td,.table.table-success th{color:#7edf7e;border-bottom:.1rem solid #7d7}.table.table-info{border:none}.table.table-info thead>tr>th{color:#9bddff}.table.table-info td,.table.table-info th{color:#a0dfff;border-bottom:.1rem solid #9bddff}.table.table-warning{border:none}.table.table-warning thead>tr>th{color:#ffb347}.table.table-warning td,.table.table-warning th{color:#ffb750;border-bottom:.1rem solid #ffb347}.table.table-danger{border:none}.table.table-danger thead>tr>th{color:#ff6961}.table.table-danger td,.table.table-danger th{color:#ff7069;border-bottom:.1rem solid #ff6961}.table thead>tr>th{font-weight:700}.table tbody tr:last-child>th{border-bottom:0}.table tfoot td:empty{padding:0}.table td,.table th{border-bottom:.1rem solid #e1e1e1;text-align:left;padding:10px}.table.responsive{border-collapse:collapse;border-spacing:0;display:table}',''])},function(e,t){e.exports=function(e){var t='undefined'!=typeof window&&window.location;if(!t){throw new Error('fixUrls requires window.location')}if(!e||'string'!=typeof e){return e}var n=t.protocol+'//'+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,'/'),o=e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)){return e}var a;if(0===o.indexOf('//')){a=o}else if(0===o.indexOf('/')){a=n+o}else{a=r+o.replace(/^\.\//,'')}return'url('+JSON.stringify(a)+')'});return o}},function(e,t,n){var r=n(19);if('string'==typeof r)r=[[e.i,r,'']];var o,a={hmr:!0};a.transform=o;var i=n(7)(r,a);if(r.locals)e.exports=r.locals;if(!1){if(!r.locals){e.hot.accept('!!../../../css-loader/index.js!./landing.css',function(){var t=require('!!../../../css-loader/index.js!./landing.css');if('string'==typeof t)t=[[e.id,t,'']];i(t)})}e.hot.dispose(function(){i()})}},function(e,t,n){t=e.exports=n(6)(void 0);t.push([e.i,'html, body {\n margin: 0;\n padding: 0;\n font-family: \'Open Sans\', Helvetica, sans-serif;\n width: 100%;\n height: 100%;\n}\n#root {\n height: 100%;\n width: 100%;\n}\n.wrapper {\n min-height: 100%;\n margin-bottom: -50px;\n}\n.footer,\n.push {\n height: 50px;\n}\n\n.footer {\n padding-top: 25px;\n width: 100%;\n}\n',''])},function(e,n,o){'use strict';var T=o(8),$=o(9);o(5);var p=o(2);function i(t){for(var n=arguments.length-1,r='Minified React error #'+t+'; visit http://facebook.github.io/react/docs/error-decoder.html?invariant='+t,o=0;oO.length&&O.push(e)}function _(t,n,r,o){var e=typeof t;if('undefined'==e||'boolean'==e)t=null;if(null===t||'string'==e||'number'==e||'object'==e&&t.$$typeof===M)return r(o,t,''===n?'.'+L(t,0):n),1;var s=0;n=''===n?'.':n+':';if(Array.isArray(t))for(var l=0;l=s.hasBooleanValue+s.hasNumericValue+s.hasOverloadedBooleanValue?void 0:o('50',e);i.hasOwnProperty(e)&&(s.attributeName=i[e]);a.hasOwnProperty(e)&&(s.attributeNamespace=a[e]);t.hasOwnProperty(e)&&(s.mutationMethod=t[e]);Un.properties[e]=s}}},Un={ID_ATTRIBUTE_NAME:'data-reactid',ROOT_ATTRIBUTE_NAME:'data-reactroot',ATTRIBUTE_NAME_START_CHAR:':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',ATTRIBUTE_NAME_CHAR:':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',properties:{},shouldSetAttribute:function(e,t){if(Un.isReservedProp(e)||!('o'!==e[0]&&'O'!==e[0]||'n'!==e[1]&&'N'!==e[1]))return!1;if(null===t)return!0;switch(typeof t){case'boolean':return Un.shouldAttributeAcceptBooleanValue(e);case'undefined':case'number':case'string':case'object':return!0;default:return!1;}},getPropertyInfo:function(e){return Un.properties.hasOwnProperty(e)?Un.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(Un.isReservedProp(e))return!0;var t=Un.getPropertyInfo(e);if(t)return t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue;e=e.toLowerCase().slice(0,5);return'data-'===e||'aria-'===e},isReservedProp:function(e){return Hn.hasOwnProperty(e)},injection:Vn},zn=Un,A={IndeterminateComponent:0,FunctionalComponent:1,ClassComponent:2,HostRoot:3,HostPortal:4,HostComponent:5,HostText:6,CoroutineComponent:7,CoroutineHandlerPhase:8,YieldComponent:9,Fragment:10},E={ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11},F=A.HostComponent,Gn=A.HostText,qn=E.ELEMENT_NODE,Kn=E.COMMENT_NODE,Yn=zn.ID_ATTRIBUTE_NAME,Xn={hasCachedChildNodes:1},Qn=Math.random().toString(36).slice(2),Jn='__reactInternalInstance$'+Qn,Zn='__reactEventHandlers$'+Qn;function m(e){for(var t;t=e._renderedComponent;)e=t;return e}function a(e,t){e=m(e);e._hostNode=t;t[Jn]=e}function d(t,n){if(!(t._flags&Xn.hasCachedChildNodes)){var r=t._renderedChildren;n=n.firstChild;var i;a:for(i in r)if(r.hasOwnProperty(i)){var s=r[i],e=m(s)._domID;if(0!==e){for(;null!==n;n=n.nextSibling){var l=n,d=e;if(l.nodeType===qn&&l.getAttribute(Yn)===''+d||l.nodeType===Kn&&l.nodeValue===' react-text: '+d+' '||l.nodeType===Kn&&l.nodeValue===' react-empty: '+d+' '){a(s,n);continue a}}o('32',e)}}t._flags|=Xn.hasCachedChildNodes}}function c(e){if(e[Jn])return e[Jn];for(var t=[];!e[Jn];)if(t.push(e),e.parentNode)e=e.parentNode;else return null;var n=e[Jn];if(n.tag===F||n.tag===Gn)return n;for(;e&&(n=e[Jn]);e=t.pop()){var r=n;t.length&&d(n,e)}return r}var er={getClosestInstanceFromNode:c,getInstanceFromNode:function(e){var t=e[Jn];if(t)return t.tag===F||t.tag===Gn?t:t._hostNode===e?t:null;t=c(e);return null!=t&&t._hostNode===e?t:null},getNodeFromInstance:function(e){if(e.tag===F||e.tag===Gn)return e.stateNode;void 0===e._hostNode?o('33'):void 0;if(e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:o('34'),e=e._hostParent;for(;t.length;e=t.pop())d(e,e._hostNode);return e._hostNode},precacheChildNodes:d,precacheNode:a,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[Jn],e._hostNode=null)},precacheFiberNode:function(e,t){t[Jn]=e},getFiberCurrentPropsFromNode:function(e){return e[Zn]||null},updateFiberProps:function(e,t){e[Zn]=t}},tr={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},nr={ReactCurrentOwner:Ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner};function y(e){if('function'==typeof e.getName)return e.getName();if('number'==typeof e.tag){e=e.type;if('string'==typeof e)return e;if('function'==typeof e)return e.displayName||e.name}return null}var rr={NoEffect:0,PerformedWork:1,Placement:2,Update:4,PlacementAndUpdate:6,Deletion:8,ContentReset:16,Callback:32,Err:64,Ref:128},J=A.HostComponent,or=A.HostRoot,ar=A.HostPortal,ir=A.HostText,sr=rr.NoEffect,lr=rr.Placement;function v(e){var t=e;if(e.alternate)for(;t['return'];)t=t['return'];else{if((t.effectTag&lr)!==sr)return 1;for(;t['return'];)if(t=t['return'],(t.effectTag&lr)!==sr)return 1}return t.tag===or?2:3}function f(e){2!==v(e)?o('188'):void 0}function g(t){var n=t.alternate;if(!n)return n=v(t),3===n?o('188'):void 0,1===n?null:t;for(var r=t,a=n;;){var i=r['return'],s=i?i.alternate:null;if(!i||!s)break;if(i.child===s.child){for(var l=i.child;l;){if(l===r)return f(i),t;if(l===a)return f(i),n;l=l.sibling}o('188')}if(r['return']!==a['return'])r=i,a=s;else{l=!1;for(var d=i.child;d;){if(d===r){l=!0;r=i;a=s;break}if(d===a){l=!0;a=i;r=s;break}d=d.sibling}if(!l){for(d=s.child;d;){if(d===r){l=!0;r=s;a=i;break}if(d===a){l=!0;a=s;r=i;break}d=d.sibling}l?void 0:o('189')}}r.alternate!==a?o('190'):void 0}r.tag!==or?o('188'):void 0;return r.stateNode.current===r?t:n}var dr={isFiberMounted:function(e){return 2===v(e)},isMounted:function(e){return(e=tr.get(e))?2===v(e):!1},findCurrentFiberUsingSlowPath:g,findCurrentHostFiber:function(e){e=g(e);if(!e)return null;for(var t=e;;){if(t.tag===J||t.tag===ir)return t;if(t.child)t.child['return']=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t['return']||t['return']===e)return null;t=t['return']}t.sibling['return']=t['return'];t=t.sibling}}return null},findCurrentHostFiberWithNoPortals:function(e){e=g(e);if(!e)return null;for(var t=e;;){if(t.tag===J||t.tag===ir)return t;if(t.child&&t.tag!==ar)t.child['return']=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t['return']||t['return']===e)return null;t=t['return']}t.sibling['return']=t['return'];t=t.sibling}}return null}},cr={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){'function'!=typeof e.invokeGuardedCallback?o('197'):void 0;x=e.invokeGuardedCallback}},invokeGuardedCallback:function(t,n,r,o,a,e,i,s,l){x.apply(cr,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,n,r,o,a,e,i,s,l){cr.invokeGuardedCallback.apply(this,arguments);if(cr.hasCaughtError()){var d=cr.clearCaughtError();cr._hasRethrowError||(cr._hasRethrowError=!0,cr._rethrowError=d)}},rethrowCaughtError:function(){return h.apply(cr,arguments)},hasCaughtError:function(){return cr._hasCaughtError},clearCaughtError:function(){if(cr._hasCaughtError){var e=cr._caughtError;cr._caughtError=null;cr._hasCaughtError=!1;return e}o('198')}};function x(t,n,r,o,a,e,i,s,l){cr._hasCaughtError=!1;cr._caughtError=null;var d=Array.prototype.slice.call(arguments,3);try{n.apply(r,d)}catch(e){cr._caughtError=e,cr._hasCaughtError=!0}}function h(){if(cr._hasRethrowError){var e=cr._rethrowError;cr._rethrowError=null;cr._hasRethrowError=!1;throw e}}var K=cr,ur;function k(e,t,n,r){t=e.type||'unknown-event';e.currentTarget=pr.getNodeFromInstance(r);K.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e);e.currentTarget=null}var pr={isEndish:function(e){return'topMouseUp'===e||'topTouchEnd'===e||'topTouchCancel'===e},isMoveish:function(e){return'topMouseMove'===e||'topTouchMove'===e},isStartish:function(e){return'topMouseDown'===e||'topTouchStart'===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?o('103'):void 0;e.currentTarget=t?pr.getNodeFromInstance(n):null;t=t?t(e):null;e.currentTarget=null;e._dispatchListeners=null;e._dispatchInstances=null;return t},executeDispatchesInOrder:function(t,n){var r=t._dispatchListeners,o=t._dispatchInstances;if(Array.isArray(r))for(var a=0;awr.length&&wr.push(e)}}}},Ar=Cr;function B(e,t){null==t?o('30'):void 0;if(null==e)return t;if(Array.isArray(e)){if(Array.isArray(t))return e.push.apply(e,t),e;e.push(t);return e}return Array.isArray(t)?[e].concat(t):[e,t]}function $(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var Er=null;function P(e,t){e&&(gr.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))}function O(e){return P(e,!0)}function j(e){return P(e,!1)}function I(e,t,n){switch(e){case'onClick':case'onClickCapture':case'onDoubleClick':case'onDoubleClickCapture':case'onMouseDown':case'onMouseDownCapture':case'onMouseMove':case'onMouseMoveCapture':case'onMouseUp':case'onMouseUpCapture':return!(!n.disabled||'button'!==t&&'input'!==t&&'select'!==t&&'textarea'!==t);default:return!1;}}var Fr={injection:{injectEventPluginOrder:Wn.injectEventPluginOrder,injectEventPluginsByName:Wn.injectEventPluginsByName},getListener:function(e,t){if('number'==typeof e.tag){var n=e.stateNode;if(!n)return null;var r=gr.getFiberCurrentPropsFromNode(n);if(!r)return null;n=r[t];if(I(t,e.type,r))return null}else{r=e._currentElement;if('string'==typeof r||'number'==typeof r||!e._rootNodeID)return null;e=r.props;n=e[t];if(I(t,r.type,e))return null}n&&'function'!=typeof n?o('231',t,typeof n):void 0;return n},extractEvents:function(t,n,r,o){for(var a,e=Wn.plugins,i=0,s;ir||o.hasOverloadedBooleanValue&&!1===r?zr.deleteValueForProperty(t,n):o.mustUseProperty?t[o.propertyName]=r:(n=o.attributeName,(a=o.attributeNamespace)?t.setAttributeNS(a,n,''+r):o.hasBooleanValue||o.hasOverloadedBooleanValue&&!0===r?t.setAttribute(n,''):t.setAttribute(n,''+r))}else zr.setValueForAttribute(t,n,zn.shouldSetAttribute(n,r)?r:null)},setValueForAttribute:function(e,t,n){q(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,''+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=zn.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=n.hasBooleanValue?!1:'':e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Gr=zr,qr=nr.ReactDebugCurrentFrame;function _e(){return null}var Kr={current:null,phase:null,resetCurrentFiber:function(){qr.getCurrentStack=null;Kr.current=null;Kr.phase=null},setCurrentFiber:function(e,t){qr.getCurrentStack=_e;Kr.current=e;Kr.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:_e},Yr=Kr,Xr={getHostProps:function(e,t){var n=t.value,r=t.checked;return l({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:'checkbox'===t.type||'radio'===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Gr.setValueForProperty(e,'checked',n||!1);n=t.value;if(null!=n){if(0===n&&''===e.value)e.value='0';else if('number'===t.type){if(t=parseFloat(e.value)||0,n!=t||n==t&&e.value!=n)e.value=''+n}else e.value!==''+n&&(e.value=''+n);}else null==t.value&&null!=t.defaultValue&&e.defaultValue!==''+t.defaultValue&&(e.defaultValue=''+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e,t){switch(t.type){case'submit':case'reset':break;case'color':case'date':case'datetime':case'datetime-local':case'month':case'time':case'week':e.value='';e.value=e.defaultValue;break;default:e.value=e.value;}t=e.name;''!==t&&(e.name='');e.defaultChecked=!e.defaultChecked;e.defaultChecked=!e.defaultChecked;''!==t&&(e.name=t)},restoreControlledState:function(t,n){Xr.updateWrapper(t,n);var r=n.name;if('radio'===n.type&&null!=r){for(n=t;n.parentNode;)n=n.parentNode;r=n.querySelectorAll('input[name='+JSON.stringify(''+r)+'][type="radio"]');for(n=0;n=t.length?void 0:o('93'),t=t[0]),n=''+t),null==n&&(n=''),r=n);e._wrapperState={initialValue:''+r}},updateWrapper:function(e,t){var n=t.value;null!=n&&(n=''+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n));null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){eo.updateWrapper(e,t)}},to=eo,no=l({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 nt(e,t){t&&(no[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?o('137',e,''):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?o('60'):void 0,'object'==typeof t.dangerouslySetInnerHTML&&'__html'in t.dangerouslySetInnerHTML?void 0:o('61')),null!=t.style&&'object'!=typeof t.style?o('62',''):void 0)}function rt(e){var t=e.type;return(e=e.nodeName)&&'input'===e.toLowerCase()&&('checkbox'===t||'radio'===t)}function ot(e){var t=rt(e)?'checked':'value',n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=''+e[t];if(!e.hasOwnProperty(t)&&'function'==typeof n.get&&'function'==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=''+e;n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=''+e},stopTracking:function(){e._valueTracker=null;delete e[t]}}}var ro={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=ot(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r='';e&&(r=rt(e)?e.checked?'true':'false':e.value);e=r;return e!==n?(t.setValue(e),!0):!1},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}};function at(e,t){if(-1===e.indexOf('-'))return'string'==typeof t.is;switch(e){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;}}var oo=On.Namespaces,ao,io=function(t){return'undefined'!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(n,r,o,a){MSApp.execUnsafeLocalFunction(function(){return t(n,r,o,a)})}:t}(function(e,t){if(e.namespaceURI!==oo.svg||'innerHTML'in e)e.innerHTML=t;else for(ao=ao||document.createElement('div'),ao.innerHTML=''+t+'',t=ao.firstChild;t.firstChild;)e.appendChild(t.firstChild)}),so=/["'&<>]/,lo=E.TEXT_NODE;function it(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===lo){n.nodeValue=t;return}}e.textContent=t}Tn.canUseDOM&&('textContent'in document.documentElement||(it=function(t,n){if(t.nodeType===lo)t.nodeValue=n;else{if('boolean'==typeof n||'number'==typeof n)n=''+n;else{n=''+n;var r=so.exec(n);if(r){var o='',a,e=0;for(a=r.index;a\x3C/script>',e=e.removeChild(e.firstChild)):e='string'==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e);return e},createTextNode:function(e,t){return(t.nodeType===po?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(t,n,r,o){var a=at(n,r);switch(n){case'iframe':case'object':Mr.trapBubbledEvent('topLoad','load',t);var e=r;break;case'video':case'audio':for(e in yo)yo.hasOwnProperty(e)&&Mr.trapBubbledEvent(e,yo[e],t);e=r;break;case'source':Mr.trapBubbledEvent('topError','error',t);e=r;break;case'img':case'image':Mr.trapBubbledEvent('topError','error',t);Mr.trapBubbledEvent('topLoad','load',t);e=r;break;case'form':Mr.trapBubbledEvent('topReset','reset',t);Mr.trapBubbledEvent('topSubmit','submit',t);e=r;break;case'details':Mr.trapBubbledEvent('topToggle','toggle',t);e=r;break;case'input':Qr.initWrapperState(t,r);e=Qr.getHostProps(t,r);Mr.trapBubbledEvent('topInvalid','invalid',t);st(o,'onChange');break;case'option':Jr.validateProps(t,r);e=Jr.getHostProps(t,r);break;case'select':Zr.initWrapperState(t,r);e=Zr.getHostProps(t,r);Mr.trapBubbledEvent('topInvalid','invalid',t);st(o,'onChange');break;case'textarea':to.initWrapperState(t,r);e=to.getHostProps(t,r);Mr.trapBubbledEvent('topInvalid','invalid',t);st(o,'onChange');break;default:e=r;}nt(n,e,uo);var i=e,s;for(s in i)if(i.hasOwnProperty(s)){var l=i[s];'style'===s?Wr.setValueForStyles(t,l):'dangerouslySetInnerHTML'===s?(l=l?l.__html:void 0,null!=l&&io(t,l)):'children'===s?'string'==typeof l?co(t,l):'number'==typeof l&&co(t,''+l):'suppressContentEditableWarning'!=s&&(ho.hasOwnProperty(s)?null!=l&&st(o,s):a?Gr.setValueForAttribute(t,s,l):null!=l&&Gr.setValueForProperty(t,s,l))}switch(n){case'input':ro.track(t);Qr.postMountWrapper(t,r);break;case'textarea':ro.track(t);to.postMountWrapper(t,r);break;case'option':Jr.postMountWrapper(t,r);break;case'select':Zr.postMountWrapper(t,r);break;default:'function'==typeof e.onClick&&(t.onclick=Dn);}},diffProperties:function(t,n,r,o,a){var e=null;switch(n){case'input':r=Qr.getHostProps(t,r);o=Qr.getHostProps(t,o);e=[];break;case'option':r=Jr.getHostProps(t,r);o=Jr.getHostProps(t,o);e=[];break;case'select':r=Zr.getHostProps(t,r);o=Zr.getHostProps(t,o);e=[];break;case'textarea':r=to.getHostProps(t,r);o=to.getHostProps(t,o);e=[];break;default:'function'!=typeof r.onClick&&'function'==typeof o.onClick&&(t.onclick=Dn);}nt(n,o,uo);var i,s;t=null;for(i in r)if(!o.hasOwnProperty(i)&&r.hasOwnProperty(i)&&null!=r[i])if('style'===i)for(s in n=r[i],n)n.hasOwnProperty(s)&&(t||(t={}),t[s]='');else'dangerouslySetInnerHTML'!=i&&'children'!=i&&'suppressContentEditableWarning'!=i&&(ho.hasOwnProperty(i)?e||(e=[]):(e=e||[]).push(i,null));for(i in o){var l=o[i];n=null!=r?r[i]:void 0;if(o.hasOwnProperty(i)&&l!==n&&(null!=l||null!=n))if('style'===i){if(n){for(s in n)!n.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(t||(t={}),t[s]='');for(s in l)l.hasOwnProperty(s)&&n[s]!==l[s]&&(t||(t={}),t[s]=l[s])}else t||(e||(e=[]),e.push(i,t)),t=l;}else'dangerouslySetInnerHTML'===i?(l=l?l.__html:void 0,n=n?n.__html:void 0,null!=l&&n!==l&&(e=e||[]).push(i,''+l)):'children'===i?n===l||'string'!=typeof l&&'number'!=typeof l||(e=e||[]).push(i,''+l):'suppressContentEditableWarning'!=i&&(ho.hasOwnProperty(i)?(null!=l&&st(a,i),e||n===l||(e=[])):(e=e||[]).push(i,l))}t&&(e=e||[]).push('style',t);return e},updateProperties:function(t,n,r,o,a){at(r,o);o=at(r,a);for(var e=0;et&&(t=8),Fo=t=lt(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=lt(e.priorityLevel,t);)n=e,e=e.next;return n}function pt(t,n){var r=t.alternate,o=t.updateQueue;null===o&&(o=t.updateQueue=dt());null!==r?(t=r.updateQueue,null===t&&(t=r.updateQueue=dt())):t=null;No=o;jo=t!==o?t:null;var a=No;r=jo;var e=ut(a,n),i=null!==e?e.next:a.first;if(null===r)return ct(a,n,e,i),null;o=ut(r,n);t=null!==o?o.next:r.first;ct(a,n,e,i);if(i===t&&null!==i||e===o&&null!==e)return null===o&&(r.first=n),null===t&&(r.last=null),null;n={priorityLevel:n.priorityLevel,partialState:n.partialState,callback:n.callback,isReplace:n.isReplace,isForced:n.isForced,isTopLevelUnmount:n.isTopLevelUnmount,next:null};ct(r,n,o,t);return n}function gt(e,t,n,r){e=e.partialState;return'function'==typeof e?e.call(t,n,r):e}var Io={addUpdate:function(e,t,n,r){pt(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null})},addReplaceUpdate:function(e,t,n,r){pt(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null})},addForceUpdate:function(e,t,n){pt(e,{priorityLevel:n,partialState:null,callback:t,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null})},getUpdatePriority:function(e){var t=e.updateQueue;return null===t||e.tag!==Po&&e.tag!==Oo?$o:null!==t.first?t.first.priorityLevel:$o},addTopLevelUpdate:function(t,n,r,o){var a=null===n.element;n={priorityLevel:o,partialState:n,callback:r,isReplace:!1,isForced:!1,isTopLevelUnmount:a,next:null};t=pt(t,n);a&&(a=No,r=jo,null!==a&&null!==n.next&&(n.next=null,a.last=n),null!==r&&null!==t&&null!==t.next&&(t.next=null,r.last=n))},beginUpdateQueue:function(t,n,r,o,a,e,i){null!==t&&t.updateQueue===r&&(r=n.updateQueue={first:r.first,last:r.last,callbackList:null,hasForceUpdate:!1});t=r.callbackList;for(var s=r.hasForceUpdate,d=!0,c=r.first;null!==c&&0>=lt(c.priorityLevel,i);){r.first=c.next;null===r.first&&(r.last=null);var u;if(c.isReplace)a=gt(c,o,a,e),d=!0;else if(u=gt(c,o,a,e))a=d?l({},a,u):l(a,u),d=!1;c.isForced&&(s=!0);null===c.callback||c.isTopLevelUnmount&&null!==c.next||(t=null!==t?t:[],t.push(c.callback),n.effectTag|=Q);c=c.next}r.callbackList=t;r.hasForceUpdate=s;null!==r.first||null!==t||s||(n.updateQueue=null);return a},commitCallbacks:function(e,t,n){e=t.callbackList;if(null!==e)for(t.callbackList=null,t=0;tHo||(e.current=Wo[Ho],Wo[Ho]=null,Ho--)},push:function(e,t){Ho++;Wo[Ho]=e.current;e.current=t},reset:function(){for(;-1e)?e:t}},de=ae.createHostRootFiber,ee=A.IndeterminateComponent,fe=A.FunctionalComponent,ge=A.ClassComponent,he=A.HostComponent,ie,ga;'function'==typeof Symbol&&Symbol['for']?(ie=Symbol['for']('react.coroutine'),ga=Symbol['for']('react.yield')):(ie=60104,ga=60105);var fa={createCoroutine:function(e,t,n){var r=3h?(r=t,t=null):r=t.sibling;var p=y(o,t,d[h],u);if(null===p){null===t&&(t=r);break}n&&t&&null===p.alternate&&i(o,t);a=e(p,a,h);null==f?g=p:f.sibling=p;f=p;t=r}if(h===d.length)return s(o,t),g;if(null===t){for(;hb?(k=t,t=null):k=t.sibling;var v=y(d,t,p.value,g);if(null===v){t||(t=k);break}n&&t&&null===v.alternate&&i(d,t);a=e(v,a,b);null==h?f=v:h.sibling=v;h=v;t=k}if(p.done)return s(d,t),f;if(null===t){for(;!p.done;b++,p=u.next())p=c(d,p.value,g),null!==p&&(a=e(p,a,b),null===h?f=p:h.sibling=p,h=p);return f}for(t=l(d,t);!p.done;b++,p=u.next())if(p=x(t,d,b,p.value,g),null!==p){if(n&&null!==p.alternate)t['delete'](null===p.key?b:p.key);a=e(p,a,b);null===h?f=p:h.sibling=p;h=p}n&&t.forEach(function(e){return i(d,e)});return f}return function(t,n,r,a){var l='object'==typeof r&&null!==r;if(l)switch(r.$$typeof){case Je:a:{var c=r.key;for(l=n;null!==l;){if(l.key===c){if(l.type===r.type){s(t,l.sibling);n=u(l,a);n.ref=Le(l,r);n.pendingProps=r.props;n['return']=t;t=n;break a}else{s(t,l);break}}else i(t,l);l=l.sibling}a=re(r,t.internalContextTag,a);a.ref=Le(n,r);a['return']=t;t=a}return d(t);case ne:a:{for(l=r.key;null!==n;){if(n.key===l){if(n.tag===Ce){s(t,n.sibling);n=u(n,a);n.pendingProps=r;n['return']=t;t=n;break a}else{s(t,n);break}}else i(t,n);n=n.sibling}r=ue(r,t.internalContextTag,a);r['return']=t;t=r}return d(t);case oe:a:{if(null!==n)if(n.tag===De){s(t,n.sibling);n=u(n,a);n.type=r.value;n['return']=t;t=n;break a}else s(t,n);n=ve(r,t.internalContextTag,a);n.type=r.value;n['return']=t;t=n}return d(t);case pe:a:{for(l=r.key;null!==n;){if(n.key===l){if(n.tag===Be&&n.stateNode.containerInfo===r.containerInfo&&n.stateNode.implementation===r.implementation){s(t,n.sibling);n=u(n,a);n.pendingProps=r.children||[];n['return']=t;t=n;break a}else{s(t,n);break}}else i(t,n);n=n.sibling}r=we(r,t.internalContextTag,a);r['return']=t;t=r}return d(t);}if('string'==typeof r||'number'==typeof r)return r=''+r,null!==n&&n.tag===Ae?(s(t,n.sibling),n=u(n,a),n.pendingProps=r,n['return']=t,t=n):(s(t,n),r=te(r,t.internalContextTag,a),r['return']=t,t=r),d(t);if(xe(r))return k(t,n,r,a);if(yt(r))return w(t,n,r,a);l&&Me(t,r);if('undefined'==typeof r)switch(t.tag){case ze:case ye:r=t.type,o('152',r.displayName||r.name||'Component');}return s(t,n)}}var Ke=Ne(!0,!0),ma=Ne(!1,!0),ba=Ne(!1,!1),ya={reconcileChildFibers:Ke,reconcileChildFibersInPlace:ma,mountChildFibersInPlace:ba,cloneChildFibers:function(e,t){null!==e&&t.child!==e.child?o('153'):void 0;if(null!==t.child){e=t.child;var n=qe(e,e.pendingWorkPriority);n.pendingProps=e.pendingProps;t.child=n;for(n['return']=t;null!==e.sibling;)e=e.sibling,n=n.sibling=qe(e,e.pendingWorkPriority),n.pendingProps=e.pendingProps,n['return']=t;n.sibling=null}}},Se=rr.Update,Te=R.AsyncUpdates,Ue=Zo.cacheContext,Ve=Zo.getMaskedContext,We=Zo.getUnmaskedContext,Xe=Zo.isContextConsumer,Ye=Io.addUpdate,Ze=Io.addReplaceUpdate,$e=Io.addForceUpdate,va=Io.beginUpdateQueue,ka=Zo.hasContextChanged,xa=dr.isMounted;function Oe(t,n,r,i){function s(e,t){t.updater=l;e.stateNode=t;tr.set(t,e)}var l={isMounted:xa,enqueueSetState:function(r,o,a){r=tr.get(r);var e=n(r,!1);Ye(r,o,void 0===a?null:a,e);t(r,e)},enqueueReplaceState:function(r,o,a){r=tr.get(r);var e=n(r,!1);Ze(r,o,void 0===a?null:a,e);t(r,e)},enqueueForceUpdate:function(r,o){r=tr.get(r);var a=n(r,!1);$e(r,void 0===o?null:o,a);t(r,a)}};return{adoptClassInstance:s,constructClassInstance:function(e,t){var n=e.type,r=We(e),o=Xe(e),a=o?Ve(e,r):Bn;t=new n(t,a);s(e,t);o&&Ue(e,r,a);return t},mountClassInstance:function(t,n){var r=t.alternate,a=t.stateNode,i=a.state||null,e=t.pendingProps;e?void 0:o('158');var s=We(t);a.props=e;a.state=i;a.refs=Bn;a.context=Ve(t,s);Do.enableAsyncSubtreeAPI&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent&&(t.internalContextTag|=Te);'function'==typeof a.componentWillMount&&(s=a.state,a.componentWillMount(),s!==a.state&&l.enqueueReplaceState(a,a.state,null),s=t.updateQueue,null!==s&&(a.state=va(r,t,s,a,i,e,n)));'function'==typeof a.componentDidMount&&(t.effectTag|=Se)},updateClassInstance:function(t,n,a){var e=n.stateNode;e.props=n.memoizedProps;e.state=n.memoizedState;var s=n.memoizedProps,d=n.pendingProps;d||(d=s,null==d?o('159'):void 0);var c=e.context,u=We(n);u=Ve(n,u);'function'!=typeof e.componentWillReceiveProps||s===d&&c===u||(c=e.state,e.componentWillReceiveProps(d,u),e.state!==c&&l.enqueueReplaceState(e,e.state,null));c=n.memoizedState;a=null!==n.updateQueue?va(t,n,n.updateQueue,e,c,d,a):c;if(!(s!==d||c!==a||ka()||null!==n.updateQueue&&n.updateQueue.hasForceUpdate))return'function'!=typeof e.componentDidUpdate||s===t.memoizedProps&&c===t.memoizedState||(n.effectTag|=Se),!1;var p=d;if(null===s||null!==n.updateQueue&&n.updateQueue.hasForceUpdate)p=!0;else{var g=n.stateNode,f=n.type;p='function'==typeof g.shouldComponentUpdate?g.shouldComponentUpdate(p,a,u):f.prototype&&f.prototype.isPureReactComponent?!$n(s,p)||!$n(c,a):!0}p?('function'==typeof e.componentWillUpdate&&e.componentWillUpdate(d,a,u),'function'==typeof e.componentDidUpdate&&(n.effectTag|=Se)):('function'!=typeof e.componentDidUpdate||s===t.memoizedProps&&c===t.memoizedState||(n.effectTag|=Se),r(n,d),i(n,a));e.props=d;e.state=a;e.context=u;return p}}}var Aa=ya.mountChildFibersInPlace,Ea=ya.reconcileChildFibers,Fa=ya.reconcileChildFibersInPlace,Ca=ya.cloneChildFibers,Sa=Io.beginUpdateQueue,_a=Zo.getMaskedContext,La=Zo.getUnmaskedContext,Ta=Zo.hasContextChanged,Da=Zo.pushContextProvider,Ba=Zo.pushTopLevelContextObject,$a=Zo.invalidateContextProvider,Ra=A.IndeterminateComponent,Pa=A.FunctionalComponent,Ia=A.ClassComponent,Wa=A.HostRoot,Ha=A.HostComponent,Va=A.HostText,Ua=A.HostPortal,za=A.CoroutineComponent,Ga=A.CoroutineHandlerPhase,qa=A.YieldComponent,Ka=A.Fragment,Ya=Bo.NoWork,Xa=Bo.OffscreenPriority,Qa=rr.PerformedWork,Ja=rr.Placement,Za=rr.ContentReset,ti=rr.Err,ni=rr.Ref,ai=nr.ReactCurrentOwner;function vt(n,a,i,s,l){function u(t,n,r){e(t,n,r,n.pendingWorkPriority)}function e(e,t,n,r){t.child=null===e?Aa(t,t.child,n,r):e.child===t.child?Ea(t,t.child,n,r):Fa(t,t.child,n,r)}function f(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=ni)}function h(t,n,r,o){f(t,n);if(!r)return o&&$a(n,!1),p(t,n);r=n.stateNode;ai.current=n;var a=r.render();n.effectTag|=Qa;u(t,n,a);n.memoizedState=r.state;n.memoizedProps=r.props;o&&$a(n,!0);return n.child}function k(e){var t=e.stateNode;t.pendingContext?Ba(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ba(e,t.context,!1);d(e,t.containerInfo)}function p(e,t){Ca(e,t);return t.child}function x(e,t){switch(t.tag){case Wa:k(t);break;case Ia:Da(t);break;case Ua:d(t,t.stateNode.containerInfo);}return null}var w=n.shouldSetTextContent,A=n.useSyncScheduling,E=n.shouldDeprioritizeSubtree,F=a.pushHostContext,d=a.pushHostContainer,C=i.enterHydrationState,S=i.resetHydrationState,r=i.tryToClaimNextHydratableInstance;n=Oe(s,l,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var m=n.adoptClassInstance,t=n.constructClassInstance,v=n.mountClassInstance,_=n.updateClassInstance;return{beginWork:function(n,a,i){if(a.pendingWorkPriority===Ya||a.pendingWorkPriority>i)return x(n,a);switch(a.tag){case Ra:null!==n?o('155'):void 0;var s=a.type,l=a.pendingProps,e=La(a);e=_a(a,e);s=s(l,e);a.effectTag|=Qa;'object'==typeof s&&null!==s&&'function'==typeof s.render?(a.tag=Ia,l=Da(a),m(a,s),v(a,i),a=h(n,a,!0,l)):(a.tag=Pa,u(n,a,s),a.memoizedProps=l,a=a.child);return a;case Pa:a:{l=a.type;i=a.pendingProps;s=a.memoizedProps;if(Ta())null===i&&(i=s);else if(null===i||s===i){a=p(n,a);break a}s=La(a);s=_a(a,s);l=l(i,s);a.effectTag|=Qa;u(n,a,l);a.memoizedProps=i;a=a.child}return a;case Ia:return l=Da(a),s=void 0,null===n?a.stateNode?o('153'):(t(a,a.pendingProps),v(a,i),s=!0):s=_(n,a,i),h(n,a,s,l);case Wa:return k(a),s=a.updateQueue,null!==s?(l=a.memoizedState,s=Sa(n,a,s,null,l,null,i),l===s?(S(),a=p(n,a)):(l=s.element,null!==n&&null!==n.child||!C(a)?(S(),u(n,a,l)):(a.effectTag|=Ja,a.child=Aa(a,a.child,l,i)),a.memoizedState=s,a=a.child)):(S(),a=p(n,a)),a;case Ha:F(a);null===n&&r(a);l=a.type;var c=a.memoizedProps;s=a.pendingProps;null===s&&(s=c,null===s?o('154'):void 0);e=null!==n?n.memoizedProps:null;Ta()||null!==s&&c!==s?(c=s.children,w(l,s)?c=null:e&&w(l,e)&&(a.effectTag|=Za),f(n,a),i!==Xa&&!A&&E(l,s)?(a.pendingWorkPriority=Xa,a=null):(u(n,a,c),a.memoizedProps=s,a=a.child)):a=p(n,a);return a;case Va:return null===n&&r(a),n=a.pendingProps,null===n&&(n=a.memoizedProps),a.memoizedProps=n,null;case Ga:a.tag=za;case za:i=a.pendingProps;if(Ta())null===i&&(i=n&&n.memoizedProps,null===i?o('154'):void 0);else if(null===i||a.memoizedProps===i)i=a.memoizedProps;l=i.children;s=a.pendingWorkPriority;a.stateNode=null===n?Aa(a,a.stateNode,l,s):n.child===a.child?Ea(a,a.stateNode,l,s):Fa(a,a.stateNode,l,s);a.memoizedProps=i;return a.stateNode;case qa:return null;case Ua:a:{d(a,a.stateNode.containerInfo);i=a.pendingWorkPriority;l=a.pendingProps;if(Ta())null===l&&(l=n&&n.memoizedProps,null==l?o('154'):void 0);else if(null===l||a.memoizedProps===l){a=p(n,a);break a}null===n?a.child=Fa(a,a.child,l,i):u(n,a,l);a.memoizedProps=l;a=a.child}return a;case Ka:a:{i=a.pendingProps;if(Ta())null===i&&(i=a.memoizedProps);else if(null===i||a.memoizedProps===i){a=p(n,a);break a}u(n,a,i);a.memoizedProps=i;a=a.child}return a;default:o('156');}},beginFailedWork:function(t,n,r){switch(n.tag){case Ia:Da(n);break;case Wa:k(n);break;default:o('157');}n.effectTag|=ti;null===t?n.child=null:n.child!==t.child&&(n.child=t.child);if(n.pendingWorkPriority===Ya||n.pendingWorkPriority>r)return x(t,n);n.firstEffect=null;n.lastEffect=null;e(t,n,null,r);n.tag===Ia&&(t=n.stateNode,n.memoizedProps=t.props,n.memoizedState=t.state);return n.child}}}var pi=ya.reconcileChildFibers,mi=Zo.popContextProvider,bi=Zo.popTopLevelContextObject,yi=A.IndeterminateComponent,vi=A.FunctionalComponent,Ci=A.ClassComponent,Ai=A.HostRoot,Ei=A.HostComponent,Fi=A.HostText,_i=A.HostPortal,Li=A.CoroutineComponent,Di=A.CoroutineHandlerPhase,Ni=A.YieldComponent,Wi=A.Fragment,Hi=rr.Placement,Vi=rr.Ref,Ui=rr.Update,zi=Bo.OffscreenPriority;function kt(t,n,r){var i=t.createInstance,s=t.createTextInstance,e=t.appendInitialChild,l=t.finalizeInitialChildren,d=t.prepareUpdate,u=n.getRootHostContainer,g=n.popHostContext,p=n.getHostContext,f=n.popHostContainer,h=r.prepareToHydrateHostInstance,m=r.prepareToHydrateHostTextInstance,y=r.popHydrationState;return{completeWork:function(n,a,b){var c=a.pendingProps;if(null===c)c=a.memoizedProps;else if(a.pendingWorkPriority!==zi||b===zi)a.pendingProps=null;switch(a.tag){case vi:return null;case Ci:return mi(a),null;case Ai:f(a);bi(a);c=a.stateNode;c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null);if(null===n||null===n.child)y(a),a.effectTag&=~Hi;return null;case Ei:g(a);b=u();var v=a.type;if(null!==n&&null!=a.stateNode){var k=n.memoizedProps,t=a.stateNode,x=p();c=d(t,v,k,c,b,x);if(a.updateQueue=c)a.effectTag|=Ui;n.ref!==a.ref&&(a.effectTag|=Vi)}else{if(!c)return null===a.stateNode?o('166'):void 0,null;n=p();if(y(a))h(a,b,n)&&(a.effectTag|=Ui);else{n=i(v,c,b,n,a);a:for(k=a.child;null!==k;){if(k.tag===Ei||k.tag===Fi)e(n,k.stateNode);else if(k.tag!==_i&&null!==k.child){k=k.child;continue}if(k===a)break a;for(;null===k.sibling;){if(null===k['return']||k['return']===a)break a;k=k['return']}k=k.sibling}l(n,v,c,b)&&(a.effectTag|=Ui);a.stateNode=n}null!==a.ref&&(a.effectTag|=Vi)}return null;case Fi:if(n&&null!=a.stateNode)n.memoizedProps!==c&&(a.effectTag|=Ui);else{if('string'!=typeof c)return null===a.stateNode?o('166'):void 0,null;n=u();b=p();y(a)?m(a)&&(a.effectTag|=Ui):a.stateNode=s(c,n,b,a)}return null;case Li:(c=a.memoizedProps)?void 0:o('165');a.tag=Di;b=[];a:for((v=a.stateNode)&&(v['return']=a);null!==v;){if(v.tag===Ei||v.tag===Fi||v.tag===_i)o('164');else if(v.tag===Ni)b.push(v.type);else if(null!==v.child){v.child['return']=v;v=v.child;continue}for(;null===v.sibling;){if(null===v['return']||v['return']===a)break a;v=v['return']}v.sibling['return']=v['return'];v=v.sibling}v=c.handler;c=v(c.props,b);a.child=pi(a,null!==n?n.child:null,c,a.pendingWorkPriority);return a.child;case Di:return a.tag=Li,null;case Ni:return null;case Wi:return null;case _i:return a.effectTag|=Ui,f(a),null;case yi:o('167');default:o('156');}}}}var Gi=null,qi=null;function xt(e){return function(t){try{return e(t)}catch(e){}}}var Yi={injectInternals:function(e){if('undefined'==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.supportsFiber)return!0;try{var n=t.inject(e);Gi=xt(function(e){return t.onCommitFiberRoot(n,e)});qi=xt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0},onCommitRoot:function(e){'function'==typeof Gi&&Gi(e)},onCommitUnmount:function(e){'function'==typeof qi&&qi(e)}},Xi=A.ClassComponent,Ji=A.HostRoot,es=A.HostComponent,ts=A.HostText,ns=A.HostPortal,rs=A.CoroutineComponent,os=Io.commitCallbacks,as=Yi.onCommitUnmount,is=rr.Placement,ss=rr.Update,ls=rr.Callback,ds=rr.ContentReset;function wt(t,n){function r(e){var t=e.ref;if(null!==t)try{t(null)}catch(r){n(e,r)}}function a(e){return e.tag===es||e.tag===Ji||e.tag===ns}function i(e){for(var t=e;;)if(s(t),null!==t.child&&t.tag!==ns)t.child['return']=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t['return']||t['return']===e)return;t=t['return']}t.sibling['return']=t['return'];t=t.sibling}}function e(e){for(var t=e,n=!1,r=void 0,a=void 0;;){if(!n){n=t['return'];a:for(;;){null===n?o('160'):void 0;switch(n.tag){case es:r=n.stateNode;a=!1;break a;case Ji:r=n.stateNode.containerInfo;a=!0;break a;case ns:r=n.stateNode.containerInfo;a=!0;break a;}n=n['return']}n=!0}if(t.tag===es||t.tag===ts)i(t),a?k(r,t.stateNode):v(r,t.stateNode);else if(t.tag===ns?r=t.stateNode.containerInfo:s(t),null!==t.child){t.child['return']=t;t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t['return']||t['return']===e)return;t=t['return'];t.tag===ns&&(n=!1)}t.sibling['return']=t['return'];t=t.sibling}}function s(o){'function'==typeof as&&as(o);switch(o.tag){case Xi:r(o);var t=o.stateNode;if('function'==typeof t.componentWillUnmount)try{t.props=o.memoizedProps,t.state=o.memoizedState,t.componentWillUnmount()}catch(e){n(o,e)}break;case es:r(o);break;case rs:i(o.stateNode);break;case ns:e(o);}}var l=t.commitMount,u=t.commitUpdate,d=t.resetTextContent,p=t.commitTextUpdate,g=t.appendChild,h=t.appendChildToContainer,m=t.insertBefore,y=t.insertInContainerBefore,v=t.removeChild,k=t.removeChildFromContainer,f=t.getPublicInstance;return{commitPlacement:function(t){a:{for(var n=t['return'];null!==n;){if(a(n)){var r=n;break a}n=n['return']}o('160');r=void 0}var i=n=void 0;switch(r.tag){case es:n=r.stateNode;i=!1;break;case Ji:n=r.stateNode.containerInfo;i=!0;break;case ns:n=r.stateNode.containerInfo;i=!0;break;default:o('161');}r.effectTag&ds&&(d(n),r.effectTag&=~ds);a:b:for(r=t;;){for(;null===r.sibling;){if(null===r['return']||a(r['return'])){r=null;break a}r=r['return']}r.sibling['return']=r['return'];for(r=r.sibling;r.tag!==es&&r.tag!==ts;){if(r.effectTag&is)continue b;if(null===r.child||r.tag===ns)continue b;else r.child['return']=r,r=r.child}if(!(r.effectTag&is)){r=r.stateNode;break a}}for(var e=t;;){if(e.tag===es||e.tag===ts)r?i?y(n,e.stateNode,r):m(n,e.stateNode,r):i?h(n,e.stateNode):g(n,e.stateNode);else if(e.tag!==ns&&null!==e.child){e.child['return']=e;e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e['return']||e['return']===t)return;e=e['return']}e.sibling['return']=e['return'];e=e.sibling}},commitDeletion:function(t){e(t);t['return']=null;t.child=null;t.alternate&&(t.alternate.child=null,t.alternate['return']=null)},commitWork:function(t,n){switch(n.tag){case Xi:break;case es:var r=n.stateNode;if(null!=r){var a=n.memoizedProps;t=null!==t?t.memoizedProps:a;var i=n.type,e=n.updateQueue;n.updateQueue=null;null!==e&&u(r,e,i,t,a,n)}break;case ts:null===n.stateNode?o('162'):void 0;r=n.memoizedProps;p(n.stateNode,null!==t?t.memoizedProps:r,r);break;case Ji:break;case ns:break;default:o('163');}},commitLifeCycles:function(e,t){switch(t.tag){case Xi:var n=t.stateNode;if(t.effectTag&ss)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var r=e.memoizedProps;e=e.memoizedState;n.props=t.memoizedProps;n.state=t.memoizedState;n.componentDidUpdate(r,e)}t.effectTag&ls&&null!==t.updateQueue&&os(t,t.updateQueue,n);break;case Ji:e=t.updateQueue;null!==e&&os(t,e,t.child&&t.child.stateNode);break;case es:n=t.stateNode;null===e&&t.effectTag&ss&&l(n,t.type,t.memoizedProps,t);break;case ts:break;case ns:break;default:o('163');}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case es:t(f(n));break;default:t(n);}}},commitDetachRef:function(e){e=e.ref;null!==e&&e(null)}}}var cs=Vo.createCursor,us=Vo.pop,ps=Vo.push,gs={};function Ct(t){function n(e){e===gs?o('174'):void 0;return e}var r=t.getChildHostContext,i=t.getRootHostContext,s=cs(gs),e=cs(gs),l=cs(gs);return{getHostContext:function(){return n(s.current)},getRootHostContainer:function(){return n(l.current)},popHostContainer:function(t){us(s,t);us(e,t);us(l,t)},popHostContext:function(t){e.current===t&&(us(s,t),us(e,t))},pushHostContainer:function(t,n){ps(l,n,t);n=i(n);ps(e,t,t);ps(s,n,t)},pushHostContext:function(t){var o=n(l.current),a=n(s.current);o=r(a,t.type,o);a!==o&&(ps(e,t,t),ps(s,o,t))},resetHostContainer:function(){s.current=gs;l.current=gs}}}var fs=A.HostComponent,hs=A.HostText,ms=A.HostRoot,bs=rr.Deletion,ys=rr.Placement,vs=ae.createFiberFromHostInstanceForDeletion;function At(t){function n(e,t){var n=vs();n.stateNode=t;n['return']=e;n.effectTag=bs;null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function r(t,n){switch(t.tag){case fs:return e(n,t.type,t.pendingProps);case hs:return l(n,t.pendingProps);default:return!1;}}function i(e){for(e=e['return'];null!==e&&e.tag!==fs&&e.tag!==ms;)e=e['return'];f=e}var s=t.shouldSetTextContent,e=t.canHydrateInstance,l=t.canHydrateTextInstance,u=t.getNextHydratableSibling,c=t.getFirstHydratableChild,d=t.hydrateInstance,p=t.hydrateTextInstance,a=t.didNotHydrateInstance,g=t.didNotFindHydratableInstance;t=t.didNotFindHydratableTextInstance;if(!(e&&l&&u&&c&&d&&p&&a&&g&&t))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){o('175')},prepareToHydrateHostTextInstance:function(){o('176')},popHydrationState:function(){return!1}};var f=null,h=null,m=!1;return{enterHydrationState:function(e){h=c(e.stateNode.containerInfo);f=e;return m=!0},resetHydrationState:function(){h=f=null;m=!1},tryToClaimNextHydratableInstance:function(e){if(m){var t=h;if(t){if(!r(e,t)){t=u(t);if(!t||!r(e,t)){e.effectTag|=ys;m=!1;f=e;return}n(f,h)}e.stateNode=t;f=e;h=c(t)}else e.effectTag|=ys,m=!1,f=e}},prepareToHydrateHostInstance:function(e,t,n){t=d(e.stateNode,e.type,e.memoizedProps,t,n,e);e.updateQueue=t;return null!==t?!0:!1},prepareToHydrateHostTextInstance:function(e){return p(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==f)return!1;if(!m)return i(e),m=!0,!1;var t=e.type;if(e.tag!==fs||'head'!==t&&'body'!==t&&!s(t,e.memoizedProps))for(t=h;t;)n(e,t),t=u(t);i(e);h=f?u(e.stateNode):null;return!0}}}var ks=Zo.popContextProvider,xs=Vo.reset,ws=nr.ReactCurrentOwner,Cs=ae.createWorkInProgress,As=ae.largerPriority,Es=Yi.onCommitRoot,Fs=Bo.NoWork,T=Bo.SynchronousPriority,Ss=Bo.TaskPriority,U=Bo.HighPriority,_s=Bo.LowPriority,Ls=Bo.OffscreenPriority,Ts=R.AsyncUpdates,Ds=rr.PerformedWork,Bs=rr.Placement,$s=rr.Update,Rs=rr.PlacementAndUpdate,Ms=rr.Deletion,Ps=rr.ContentReset,Os=rr.Callback,Ns=rr.Err,js=rr.Ref,Is=A.HostRoot,Ws=A.HostComponent,Hs=A.HostPortal,Vs=A.ClassComponent,Us=Io.getUpdatePriority,zs=Zo.resetContext;function Et(n){function i(){for(;null!==Q&&Q.current.pendingWorkPriority===Fs;){Q.isScheduled=!1;var e=Q.nextScheduledRoot;Q.nextScheduledRoot=null;if(Q===J)return J=Q=null,I=Fs,null;Q=e}e=Q;for(var t=null,n=Fs;null!==e;)e.current.pendingWorkPriority!==Fs&&(n===Fs||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(I=n,xs(),zs(),m(),X=Cs(t.current,n),t!==de&&(le=0,de=t)):(I=Fs,de=X=null)}function s(t){ae=!0;u=null;var r=t.stateNode;r.current===t?o('177'):void 0;I!==T&&I!==Ss||le++;ws.current=null;if(t.effectTag>Ds){if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var a=t.firstEffect}else a=t;}else a=t.firstEffect;V();for(z=a;null!==z;){var e=!1,s=void 0;try{for(;null!==z;){var l=z.effectTag;l&Ps&&n.resetTextContent(z.stateNode);if(l&js){var d=z.alternate;null!==d&&N(d)}switch(l&~(Os|Ns|Ps|js|Ds)){case Bs:_(z);z.effectTag&=~Bs;break;case Rs:_(z);z.effectTag&=~Bs;$(z.alternate,z);break;case $s:$(z.alternate,z);break;case Ms:ie=!0,L(z),ie=!1;}z=z.nextEffect}}catch(t){e=!0,s=t}e&&(null===z?o('178'):void 0,A(z,s),null!==z&&(z=z.nextEffect))}G();r.current=t;for(z=a;null!==z;){r=!1;a=void 0;try{for(;null!==z;){var p=z.effectTag;p&($s|Os)&&R(z.alternate,z);p&js&&M(z);if(p&Ns)switch(e=z,s=void 0,null!==te&&(s=te.get(e),te['delete'](e),null==s&&null!==e.alternate&&(e=e.alternate,s=te.get(e),te['delete'](e))),null==s?o('184'):void 0,e.tag){case Vs:e.stateNode.componentDidCatch(s.error,{componentStack:s.componentStack});break;case Is:null===re&&(re=s.error);break;default:o('157');}var g=z.nextEffect;z.nextEffect=null;z=g}}catch(e){r=!0,a=e}r&&(null===z?o('178'):void 0,A(z,a),null!==z&&(z=z.nextEffect))}ae=!1;'function'==typeof Es&&Es(t.stateNode);ne&&(ne.forEach(E),ne=null);i()}function l(t){for(;;){var n=S(t.alternate,t,I),r=t['return'],o=t.sibling,a=t;if(!(a.pendingWorkPriority!==Fs&&a.pendingWorkPriority>I)){for(var e=Us(a),i=a.child;null!==i;)e=As(e,i.pendingWorkPriority),i=i.sibling;a.pendingWorkPriority=e}if(null!==n)return n;null!==r&&(null===r.firstEffect&&(r.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==r.lastEffect&&(r.lastEffect.nextEffect=t.firstEffect),r.lastEffect=t.lastEffect),t.effectTag>Ds&&(null!==r.lastEffect?r.lastEffect.nextEffect=t:r.firstEffect=t,r.lastEffect=t));if(null!==o)return o;if(null!==r)t=r;else{u=t;break}}return null}function c(e){var t=v(e.alternate,e,I);null===t&&(t=l(e));ws.current=null;return t}function w(e){var t=F(e.alternate,e,I);null===t&&(t=l(e));ws.current=null;return t}function f(e){d(Ls,e)}function e(){if(null!==te&&0t)){K=I;a:do{if(I<=Ss)for(;null!==X&&!(X=c(X),null===X&&(null===u?o('179'):void 0,K=Ss,s(u),K=I,e(),I===Fs||I>t||I>Ss)););else if(null!==n)for(;null!==X&&!Y;)if(1t||ISs&&!Z&&(j(f),Z=!0);t=re;oe=Y=O=!1;de=P=te=re=null;le=0;if(null!==t)throw t}function A(t,n){var r=ws.current=null,o=!1,i=!1,s=null;if(t.tag===Is)r=t,x(t)&&(oe=!0);else for(var l=t['return'];null!==l&&null==r;){l.tag===Vs?'function'==typeof l.stateNode.componentDidCatch&&(o=!0,s=y(l),r=l,i=!0):l.tag===Is&&(r=l);if(x(l)){if(ie||null!=ne&&(ne.has(l)||null!==l.alternate&&ne.has(l.alternate)))return null;r=null;i=!1}l=l['return']}if(null!==r){null==P&&(P=new Set);P.add(r);var c='';l=t;do{a:switch(l.tag){case ee:case fe:case ge:case he:var u=l._debugOwner,h=l._debugSource,m=y(l),p=null;u&&(p=y(u));u=h;m='\n in '+(m||'Unknown')+(u?' (at '+u.fileName.replace(/^.*[\\\/]/,'')+':'+u.lineNumber+')':p?' (created by '+p+')':'');break a;default:m='';}c+=m;l=l['return']}while(l);l=c;t=y(t);null==te&&(te=new Map);n={componentName:t,componentStack:l,error:n,errorBoundary:o?r.stateNode:null,errorBoundaryFound:o,errorBoundaryName:s,willRetry:i};te.set(r,n);try{console.error(n.error)}catch(e){console.error(e)}ae?(null==ne&&(ne=new Set),ne.add(r)):E(r);return r}null===re&&(re=n);return null}function x(e){return null!==P&&(P.has(e)||null!==e.alternate&&P.has(e.alternate))}function a(e,t){return p(e,t,!1)}function p(e,t){le>se&&(oe=!0,o('185'));!O&&t<=I&&(X=null);for(var n=!0;null!==e&&n;){n=!1;if(e.pendingWorkPriority===Fs||e.pendingWorkPriority>t)n=!0,e.pendingWorkPriority=t;null!==e.alternate&&(e.alternate.pendingWorkPriority===Fs||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t);if(null===e['return'])if(e.tag===Is){var r=e.stateNode;t===Fs||r.isScheduled||(r.isScheduled=!0,J?J.nextScheduledRoot=r:Q=r,J=r);if(!O)switch(t){case T:W?d(T,null):d(Ss,null);break;case Ss:q?void 0:o('186');break;default:Z||(j(f),Z=!0);}}else break;e=e['return']}}function h(e,t){var n=K;n===Fs&&(n=!H||e.internalContextTag&Ts||t?_s:T);return n===T&&(O||q)?Ss:n}function E(e){p(e,Ss,!0)}var b=Ct(n),k=At(n),C=b.popHostContainer,r=b.popHostContext,m=b.resetHostContainer,t=vt(n,b,k,a,h),v=t.beginWork,F=t.beginFailedWork,S=kt(n,b,k).completeWork;b=wt(n,A);var _=b.commitPlacement,L=b.commitDeletion,$=b.commitWork,R=b.commitLifeCycles,M=b.commitAttachRef,N=b.commitDetachRef,j=n.scheduleDeferredCallback,H=n.useSyncScheduling,V=n.prepareForCommit,G=n.resetAfterCommit,K=Fs,O=!1,Y=!1,q=!1,W=!1,X=null,I=Fs,z=null,u=null,Q=null,J=null,Z=!1,te=null,P=null,ne=null,re=null,oe=!1,ae=!1,ie=!1,se=1E3,le=0,de=null;return{scheduleUpdate:a,getPriorityContext:h,batchedUpdates:function(e,t){var n=q;q=!0;try{return e(t)}finally{q=n,O||q||d(Ss,null)}},unbatchedUpdates:function(e){var t=W,n=q;W=q;q=!1;try{return e()}finally{q=n,W=t}},flushSync:function(e){var t=q,n=K;q=!0;K=T;try{return e()}finally{q=t,K=n,O?o('187'):void 0,d(Ss,null)}},deferredUpdates:function(e){var t=K;K=_s;try{return e()}finally{K=t}}}}function Ft(){o('196')}function St(e){if(!e)return Bn;e=tr.get(e);return'number'==typeof e.tag?Ft(e):e._processChildContext(e._context)}St._injectFiber=function(e){Ft=e};var Gs=Io.addTopLevelUpdate,qs=Zo.findCurrentUnmaskedContext,Ks=Zo.isContextProvider,Ys=Zo.processChildContext,Xs=A.HostComponent,Qs=dr.findCurrentHostFiber,Js=dr.findCurrentHostFiberWithNoPortals;St._injectFiber(function(e){var t=qs(e);return Ks(e)?Ys(e,t,!1):t});var Zs=E.TEXT_NODE;function _t(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lt(e,t){var n=_t(e);e=0;for(var r;n;){if(n.nodeType===Zs){r=e+n.textContent.length;if(e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=_t(n)}}var el=null;function Tt(){!el&&Tn.canUseDOM&&(el='textContent'in document.documentElement?'textContent':'innerText');return el}var tl={getOffsets:function(t){var n=window.getSelection&&window.getSelection();if(!n||0===n.rangeCount)return null;var r=n.anchorNode,o=n.anchorOffset,a=n.focusNode,e=n.focusOffset,i=n.getRangeAt(0);try{i.startContainer.nodeType,i.endContainer.nodeType}catch(e){return null}n=n.anchorNode===n.focusNode&&n.anchorOffset===n.focusOffset?0:i.toString().length;var s=i.cloneRange();s.selectNodeContents(t);s.setEnd(i.startContainer,i.startOffset);t=s.startContainer===s.endContainer&&s.startOffset===s.endOffset?0:s.toString().length;i=t+n;n=document.createRange();n.setStart(r,o);n.setEnd(a,e);r=n.collapsed;return{start:r?i:t,end:r?t:i}},setOffsets:function(t,n){if(window.getSelection){var r=window.getSelection(),o=t[Tt()].length,a=Sn(n.start,o);n=void 0===n.end?a:Sn(n.end,o);!r.extend&&a>n&&(o=n,n=a,a=o);o=Lt(t,a);t=Lt(t,n);if(o&&t){var e=document.createRange();e.setStart(o.node,o.offset);r.removeAllRanges();a>n?(r.addRange(e),r.extend(t.node,t.offset)):(e.setEnd(t.node,t.offset),r.addRange(e))}}}},nl=E.ELEMENT_NODE,rl={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&('input'===t&&'text'===e.type||'textarea'===t||'true'===e.contentEditable)},getSelectionInformation:function(){var e=Pn();return{focusedElem:e,selectionRange:rl.hasSelectionCapabilities(e)?rl.getSelection(e):null}},restoreSelection:function(e){var t=Pn(),n=e.focusedElem;e=e.selectionRange;if(t!==n&&Rn(document.documentElement,n)){rl.hasSelectionCapabilities(n)&&rl.setSelection(n,e);t=[];for(e=n;e=e.parentNode;)e.nodeType===nl&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});Mn(n);for(n=0;nthis.eventPool.length&&this.eventPool.push(e)}function Vt(e){e.eventPool=[];e.getPooled=Y;e.release=Ht}function Ut(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(Ut,{data:null});function zt(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(zt,{data:null});var fl=[9,13,27,32],ci=Tn.canUseDOM&&'CompositionEvent'in window,hl=null;Tn.canUseDOM&&'documentMode'in document&&(hl=document.documentMode);var ml;if(ml=Tn.canUseDOM&&'TextEvent'in window&&!hl){var fi=window.opera;ml=!('object'==typeof fi&&'function'==typeof fi.version&&12>=parseInt(fi.version(),10))}var bl=ml,hi=Tn.canUseDOM&&(!ci||hl&&8=hl),ii=' ',ji={beforeInput:{phasedRegistrationNames:{bubbled:'onBeforeInput',captured:'onBeforeInputCapture'},dependencies:['topCompositionEnd','topKeyPress','topTextInput','topPaste']},compositionEnd:{phasedRegistrationNames:{bubbled:'onCompositionEnd',captured:'onCompositionEndCapture'},dependencies:['topBlur','topCompositionEnd','topKeyDown','topKeyPress','topKeyUp','topMouseDown']},compositionStart:{phasedRegistrationNames:{bubbled:'onCompositionStart',captured:'onCompositionStartCapture'},dependencies:['topBlur','topCompositionStart','topKeyDown','topKeyPress','topKeyUp','topMouseDown']},compositionUpdate:{phasedRegistrationNames:{bubbled:'onCompositionUpdate',captured:'onCompositionUpdateCapture'},dependencies:['topBlur','topCompositionUpdate','topKeyDown','topKeyPress','topKeyUp','topMouseDown']}},yl=!1;function Gt(e,t){switch(e){case'topKeyUp':return-1!==fl.indexOf(t.keyCode);case'topKeyDown':return 229!==t.keyCode;case'topKeyPress':case'topMouseDown':case'topBlur':return!0;default:return!1;}}function qt(e){e=e.detail;return'object'==typeof e&&'data'in e?e.data:null}var li=!1;function Kt(e,t){switch(e){case'topCompositionEnd':return qt(t);case'topKeyPress':if(32!==t.which)return null;yl=!0;return ii;case'topTextInput':return e=t.data,e===ii&&yl?null:e;default:return null;}}function Yt(e,t){if(li)return'topCompositionEnd'===e||!ci&&Gt(e,t)?(e=ul.getData(),ul.reset(),li=!1,e):null;switch(e){case'topPaste':return null;case'topKeyPress':if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=document.documentMode,Ri={select:{phasedRegistrationNames:{bubbled:'onSelect',captured:'onSelectCapture'},dependencies:['topBlur','topContextMenu','topFocus','topKeyDown','topKeyUp','topMouseDown','topMouseUp','topSelectionChange']}},El=null,Ti=null,Zi=null,$i=!1,Fl=Mr.isListeningToAllDependencies;function pn(e,t){if($i||null==El||El!==Pn())return null;var n=El;'selectionStart'in n&&ol.hasSelectionCapabilities(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0;return Zi&&$n(Zi,n)?null:(Zi=n,e=Wt.getPooled(Ri.select,Ti,e,t),e.type='select',e.target=El,dl.accumulateTwoPhaseDispatches(e),e)}var Sl={eventTypes:Ri,extractEvents:function(t,n,r,o){var a=o.window===o?o.document:o.nodeType===Al?o:o.ownerDocument;if(!a||!Fl('onSelect',a))return null;a=n?er.getNodeFromInstance(n):window;switch(t){case'topFocus':if(Xt(a)||'true'===a.contentEditable)El=a,Ti=n,Zi=null;break;case'topBlur':Zi=Ti=El=null;break;case'topMouseDown':$i=!0;break;case'topContextMenu':case'topMouseUp':return $i=!1,pn(r,o);case'topSelectionChange':if(Qi)break;case'topKeyDown':case'topKeyUp':return pn(r,o);}return null}};function gn(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(gn,{animationName:null,elapsedTime:null,pseudoElement:null});function fn(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(fn,{clipboardData:function(e){return'clipboardData'in e?e.clipboardData:window.clipboardData}});function hn(e,t,n,r){return Wt.call(this,e,t,n,r)}ln.augmentClass(hn,{relatedTarget:null});function mn(e){var t=e.keyCode;'charCode'in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t;return 32<=e||13===e?e:0}var _l={Esc:'Escape',Spacebar:' ',Left:'ArrowLeft',Up:'ArrowUp',Right:'ArrowRight',Down:'ArrowDown',Del:'Delete',Win:'OS',Menu:'ContextMenu',Apps:'ContextMenu',Scroll:'ScrollLock',MozPrintableKey:'Unidentified'},Ll={8:'Backspace',9:'Tab',12:'Clear',13:'Enter',16:'Shift',17:'Control',18:'Alt',19:'Pause',20:'CapsLock',27:'Escape',32:' ',33:'PageUp',34:'PageDown',35:'End',36:'Home',37:'ArrowLeft',38:'ArrowUp',39:'ArrowRight',40:'ArrowDown',45:'Insert',46:'Delete',112:'F1',113:'F2',114:'F3',115:'F4',116:'F5',117:'F6',118:'F7',119:'F8',120:'F9',121:'F10',122:'F11',123:'F12',144:'NumLock',145:'ScrollLock',224:'Meta'};function bn(e,t,n,r){return Wt.call(this,e,t,n,r)}ln.augmentClass(bn,{key:function(e){if(e.key){var t=_l[e.key]||e.key;if('Unidentified'!==t)return t}return'keypress'===e.type?(e=mn(e),13===e?'Enter':_n(e)):'keydown'===e.type||'keyup'===e.type?Ll[e.keyCode]||'Unidentified':''},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:cn,charCode:function(e){return'keypress'===e.type?mn(e):0},keyCode:function(e){return'keydown'===e.type||'keyup'===e.type?e.keyCode:0},which:function(e){return'keypress'===e.type?mn(e):'keydown'===e.type||'keyup'===e.type?e.keyCode:0}});function yn(e,t,n,r){return Wt.call(this,e,t,n,r)}un.augmentClass(yn,{dataTransfer:null});function vn(e,t,n,r){return Wt.call(this,e,t,n,r)}ln.augmentClass(vn,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:cn});function kn(e,t,n,r){return Wt.call(this,e,t,n,r)}Wt.augmentClass(kn,{propertyName:null,elapsedTime:null,pseudoElement:null});function xn(e,t,n,r){return Wt.call(this,e,t,n,r)}un.augmentClass(xn,{deltaX:function(e){return'deltaX'in e?e.deltaX:'wheelDeltaX'in e?-e.wheelDeltaX:0},deltaY:function(e){return'deltaY'in e?e.deltaY:'wheelDeltaY'in e?-e.wheelDeltaY:'wheelDelta'in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var Tl={},Dl={};['abort','animationEnd','animationIteration','animationStart','blur','cancel','canPlay','canPlayThrough','click','close','contextMenu','copy','cut','doubleClick','drag','dragEnd','dragEnter','dragExit','dragLeave','dragOver','dragStart','drop','durationChange','emptied','encrypted','ended','error','focus','input','invalid','keyDown','keyPress','keyUp','load','loadedData','loadedMetadata','loadStart','mouseDown','mouseMove','mouseOut','mouseOver','mouseUp','paste','pause','play','playing','progress','rateChange','reset','scroll','seeked','seeking','stalled','submit','suspend','timeUpdate','toggle','touchCancel','touchEnd','touchMove','touchStart','transitionEnd','volumeChange','waiting','wheel'].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n='on'+t;t='top'+t;n={phasedRegistrationNames:{bubbled:n,captured:n+'Capture'},dependencies:[t]};Tl[e]=n;Dl[t]=n});var Bl={eventTypes:Tl,extractEvents:function(t,n,r,a){var i=Dl[t];if(!i)return null;switch(t){case'topAbort':case'topCancel':case'topCanPlay':case'topCanPlayThrough':case'topClose':case'topDurationChange':case'topEmptied':case'topEncrypted':case'topEnded':case'topError':case'topInput':case'topInvalid':case'topLoad':case'topLoadedData':case'topLoadedMetadata':case'topLoadStart':case'topPause':case'topPlay':case'topPlaying':case'topProgress':case'topRateChange':case'topReset':case'topSeeked':case'topSeeking':case'topStalled':case'topSubmit':case'topSuspend':case'topTimeUpdate':case'topToggle':case'topVolumeChange':case'topWaiting':var s=Wt;break;case'topKeyPress':if(0===mn(r))return null;case'topKeyDown':case'topKeyUp':s=bn;break;case'topBlur':case'topFocus':s=hn;break;case'topClick':if(2===r.button)return null;case'topDoubleClick':case'topMouseDown':case'topMouseMove':case'topMouseUp':case'topMouseOut':case'topMouseOver':case'topContextMenu':s=un;break;case'topDrag':case'topDragEnd':case'topDragEnter':case'topDragExit':case'topDragLeave':case'topDragOver':case'topDragStart':case'topDrop':s=yn;break;case'topTouchCancel':case'topTouchEnd':case'topTouchMove':case'topTouchStart':s=vn;break;case'topAnimationEnd':case'topAnimationIteration':case'topAnimationStart':s=gn;break;case'topTransitionEnd':s=kn;break;case'topScroll':s=ln;break;case'topWheel':s=xn;break;case'topCopy':case'topCut':case'topPaste':s=fn;}s?void 0:o('86',t);t=s.getPooled(i,n,r,a);dl.accumulateTwoPhaseDispatches(t);return t}};Ar.setHandleTopLevel(Mr.handleTopLevel);Fr.injection.injectEventPluginOrder(['ResponderEventPlugin','SimpleEventPlugin','TapEventPlugin','EnterLeaveEventPlugin','ChangeEventPlugin','SelectEventPlugin','BeforeInputEventPlugin']);gr.injection.injectComponentTree(er);Fr.injection.injectEventPluginsByName({SimpleEventPlugin:Bl,EnterLeaveEventPlugin:Cl,ChangeEventPlugin:xl,SelectEventPlugin:Sl,BeforeInputEventPlugin:oi});var $l=zn.injection.MUST_USE_PROPERTY,Rl=zn.injection.HAS_BOOLEAN_VALUE,Ml=zn.injection.HAS_NUMERIC_VALUE,Pl=zn.injection.HAS_POSITIVE_NUMERIC_VALUE,Ol=zn.injection.HAS_STRING_BOOLEAN_VALUE,Nl={Properties:{allowFullScreen:Rl,allowTransparency:Ol,async:Rl,autoPlay:Rl,capture:Rl,checked:$l|Rl,cols:Pl,contentEditable:Ol,controls:Rl,default:Rl,defer:Rl,disabled:Rl,download:zn.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:Ol,formNoValidate:Rl,hidden:Rl,loop:Rl,multiple:$l|Rl,muted:$l|Rl,noValidate:Rl,open:Rl,playsInline:Rl,readOnly:Rl,required:Rl,reversed:Rl,rows:Pl,rowSpan:Ml,scoped:Rl,seamless:Rl,selected:$l|Rl,size:Pl,start:Ml,span:Pl,spellCheck:Ol,style:0,itemScope:Rl,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Ol},DOMAttributeNames:{acceptCharset:'accept-charset',className:'class',htmlFor:'for',httpEquiv:'http-equiv'},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute('value');'number'!==e.type||!1===e.hasAttribute('value')?e.setAttribute('value',''+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute('value',''+t)}}},jl=zn.injection.HAS_STRING_BOOLEAN_VALUE,Il={xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace'},Wl={Properties:{autoReverse:jl,externalResourcesRequired:jl,preserveAlpha:jl},DOMAttributeNames:{autoReverse:'autoReverse',externalResourcesRequired:'externalResourcesRequired',preserveAlpha:'preserveAlpha'},DOMAttributeNamespaces:{xlinkActuate:Il.xlink,xlinkArcrole:Il.xlink,xlinkHref:Il.xlink,xlinkRole:Il.xlink,xlinkShow:Il.xlink,xlinkTitle:Il.xlink,xlinkType:Il.xlink,xmlBase:Il.xml,xmlLang:Il.xml,xmlSpace:Il.xml}},Hl=/[\-\:]([a-z])/g;function wn(e){return e[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','x-height','xlink:actuate','xlink:arcrole','xlink:href','xlink:role','xlink:show','xlink:title','xlink:type','xml:base','xmlns:xlink','xml:lang','xml:space'].forEach(function(e){var t=e.replace(Hl,wn);Wl.Properties[t]=0;Wl.DOMAttributeNames[t]=e});zn.injection.injectDOMPropertyConfig(Nl);zn.injection.injectDOMPropertyConfig(Wl);var Vl=Yi.injectInternals,Ul=E.ELEMENT_NODE,zl=E.TEXT_NODE,Gl=E.COMMENT_NODE,ql=E.DOCUMENT_NODE,Kl=E.DOCUMENT_FRAGMENT_NODE,Yl=zn.ROOT_ATTRIBUTE_NAME,Xl=On.getChildNamespace,Ql=vo.createElement,Jl=vo.createTextNode,Zl=vo.setInitialProperties,ed=vo.diffProperties,td=vo.updateProperties,nd=vo.diffHydratedProperties,rd=vo.diffHydratedText,od=vo.warnForDeletedHydratableElement,ad=vo.warnForDeletedHydratableText,id=vo.warnForInsertedHydratedElement,sd=vo.warnForInsertedHydratedText,ld=er.precacheFiberNode,dd=er.updateFiberProps;br.injection.injectFiberControlledHostComponent(vo);$t._injectFiber(function(e){return pd.findHostInstance(e)});var cd=null,ud=null;function Cn(e){return!(!e||e.nodeType!==Ul&&e.nodeType!==ql&&e.nodeType!==Kl&&(e.nodeType!==Gl||' react-mount-point-unstable '!==e.nodeValue))}function An(e){e=e?e.nodeType===ql?e.documentElement:e.firstChild:null;return!(!e||e.nodeType!==Ul||!e.hasAttribute(Yl))}var pd=function(e){var t=e.getPublicInstance;e=Et(e);var n=e.scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=de();e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null};return t.stateNode=e},updateContainer:function(t,o,i,s){var l=o.current;i=St(i);null===o.context?o.context=i:o.pendingContext=i;o=s;s=r(l,Do.enableAsyncSubtreeAPI&&null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent);t={element:t};Gs(l,t,void 0===o?null:o,s);n(l,s)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){e=e.current;if(!e.child)return null;switch(e.child.tag){case Xs:return t(e.child.stateNode);default:return e.child.stateNode;}},findHostInstance:function(e){e=Qs(e);return null===e?null:e.stateNode},findHostInstanceWithNoPortals:function(e){e=Js(e);return null===e?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===ql)e=(e=e.documentElement)?e.namespaceURI:Xl(null,'');else{var t=e.nodeType===Gl?e.parentNode:e;e=t.namespaceURI||null;t=t.tagName;e=Xl(e,t)}return e},getChildHostContext:function(e,t){return Xl(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){cd=Mr.isEnabled();ud=ol.getSelectionInformation();Mr.setEnabled(!1)},resetAfterCommit:function(){ol.restoreSelection(ud);ud=null;Mr.setEnabled(cd);cd=null},createInstance:function(t,n,r,o,a){t=Ql(t,n,r,o);ld(a,t);dd(t,n);return t},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){Zl(e,t,n,r);a:{switch(t){case'button':case'input':case'select':case'textarea':e=!!n.autoFocus;break a;}e=!1}return e},prepareUpdate:function(t,n,r,o,a){return ed(t,n,r,o,a)},commitMount:function(e){e.focus()},commitUpdate:function(t,n,r,o,a){dd(t,a);td(t,n,r,o,a)},shouldSetTextContent:function(e,t){return'textarea'===e||'string'==typeof t.children||'number'==typeof t.children||'object'==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&'string'==typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=''},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){e=Jl(e,t);ld(r,e);return e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===Gl?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===Gl?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===Gl?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===Ul&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return''===t?!1:e.nodeType===zl},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==Ul&&e.nodeType!==zl;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==Ul&&e.nodeType!==zl;)e=e.nextSibling;return e},hydrateInstance:function(t,n,r,o,a,e){ld(e,t);dd(t,r);return nd(t,n,r,a,o)},hydrateTextInstance:function(e,t,n){ld(n,e);return rd(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?od(e,t):ad(e,t)},didNotFindHydratableInstance:function(e,t,n){id(e,t,n)},didNotFindHydratableTextInstance:function(e,t){sd(e,t)},scheduleDeferredCallback:To.rIC,useSyncScheduling:!0});vr.injection.injectFiberBatchedUpdates(pd.batchedUpdates);function En(t,n,r,a,i){Cn(r)?void 0:o('200');var e=r._reactRootContainer;if(e)pd.updateContainer(n,e,t,i);else{if(!a&&!An(r))for(a=void 0;a=r.lastChild;)r.removeChild(a);var s=pd.createContainer(r);e=r._reactRootContainer=s;pd.unbatchedUpdates(function(){pd.updateContainer(n,s,t,i)})}return pd.getPublicRootInstance(e)}function Fn(e,t){var n=2=arguments.length?0:arguments.length-1)){n+=arguments.length<=r+1?void 0:arguments[r+1]}}var o=n.split('\n'),a=null;o.forEach(function(e){var t=e.match(/^(\s+)\S+/);if(t){var n=t[1].length;if(!a){a=n}else{a=Math.min(a,n)}}});if(null!==a){n=o.map(function(e){return' '===e[0]?e.slice(a):e}).join('\n')}n=n.trim();return n.replace(/\\n/g,'\n')}if(!0){e.exports=r}},function(e,t,n){'use strict';var s=function(){function e(e,t){for(var n=0,r;n[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:d,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};p.item=l(p.item,'gm')(/bull/g,p.bullet)();p.list=l(p.list)(/bull/g,p.bullet)('hr','\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')('def','\\n+(?='+p.def.source+')')();p.blockquote=l(p.blockquote)('def',p.def)();p._tag='(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';p.html=l(p.html)('comment',//)('closed',/<(tag)[\s\S]+?<\/\1>/)('closing',/])*?>/)(/tag/g,p._tag)();p.paragraph=l(p.paragraph)('hr',p.hr)('heading',p.heading)('lheading',p.lheading)('blockquote',p.blockquote)('tag','<'+p._tag)('def',p.def)();p.normal=c({},p);p.gfm=c({},p.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});p.gfm.paragraph=l(p.paragraph)('(?!','(?!'+p.gfm.fences.source.replace('\\1','\\2')+'|'+p.list.source.replace('\\1','\\3')+'|')();p.tables=c({},p.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function t(e){this.tokens=[];this.tokens.links={};this.options=e||u.defaults;this.rules=p.normal;if(this.options.gfm){if(this.options.tables){this.rules=p.tables}else{this.rules=p.gfm}}}t.rules=p;t.lex=function(e,n){var r=new t(n);return r.lex(e)};t.prototype.lex=function(e){e=e.replace(/\r\n|\r/g,'\n').replace(/\t/g,' ').replace(/\u00a0/g,' ').replace(/\u2424/g,'\n');return this.token(e,!0)};t.prototype.token=function(e,t,n){var e=e.replace(/^ +$/gm,''),r,o,a,s,d,c,u,g,i;while(e){if(a=this.rules.newline.exec(e)){e=e.substring(a[0].length);if(1 ?/gm,'');this.token(a,t,!0);this.tokens.push({type:'blockquote_end'});continue}if(a=this.rules.list.exec(e)){e=e.substring(a[0].length);s=a[2];this.tokens.push({type:'list_start',ordered:1])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:d,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:d,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/};g.link=l(g.link)('inside',g._inside)('href',g._href)();g.reflink=l(g.reflink)('inside',g._inside)();g.normal=c({},g);g.pedantic=c({},g.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});g.gfm=c({},g.normal,{escape:l(g.escape)('])','~|])')(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:l(g.text)(']|','~]|')('|','|https?://|')()});g.breaks=c({},g.gfm,{br:l(g.br)('{2,}','*')(),text:l(g.gfm.text)('{2,}','*')()});function n(e,t){this.options=t||u.defaults;this.links=e;this.rules=g.normal;this.renderer=this.options.renderer||new o;this.renderer.options=this.options;if(!this.links){throw new Error('Tokens array requires a `links` property.')}if(this.options.gfm){if(this.options.breaks){this.rules=g.breaks}else{this.rules=g.gfm}}else if(this.options.pedantic){this.rules=g.pedantic}}n.rules=g;n.output=function(e,t,r){var o=new n(t,r);return o.output(e)};n.prototype.output=function(e){var t='',n,r,o,a;while(e){if(a=this.rules.escape.exec(e)){e=e.substring(a[0].length);t+=a[1];continue}if(a=this.rules.autolink.exec(e)){e=e.substring(a[0].length);if('@'===a[2]){r=':'===a[1].charAt(6)?this.mangle(a[1].substring(7)):this.mangle(a[1]);o=this.mangle('mailto:')+r}else{r=i(a[1]);o=r}t+=this.renderer.link(o,null,r);continue}if(!this.inLink&&(a=this.rules.url.exec(e))){e=e.substring(a[0].length);r=i(a[1]);o=r;t+=this.renderer.link(o,null,r);continue}if(a=this.rules.tag.exec(e)){if(!this.inLink&&/^
    /i.test(a[0])){this.inLink=!1}e=e.substring(a[0].length);t+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):i(a[0]):a[0];continue}if(a=this.rules.link.exec(e)){e=e.substring(a[0].length);this.inLink=!0;t+=this.outputLink(a,{href:a[2],title:a[3]});this.inLink=!1;continue}if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){e=e.substring(a[0].length);n=(a[2]||a[1]).replace(/\s+/g,' ');n=this.links[n.toLowerCase()];if(!n||!n.href){t+=a[0].charAt(0);e=a[0].substring(1)+e;continue}this.inLink=!0;t+=this.outputLink(a,n);this.inLink=!1;continue}if(a=this.rules.strong.exec(e)){e=e.substring(a[0].length);t+=this.renderer.strong(this.output(a[2]||a[1]));continue}if(a=this.rules.em.exec(e)){e=e.substring(a[0].length);t+=this.renderer.em(this.output(a[2]||a[1]));continue}if(a=this.rules.code.exec(e)){e=e.substring(a[0].length);t+=this.renderer.codespan(i(a[2],!0));continue}if(a=this.rules.br.exec(e)){e=e.substring(a[0].length);t+=this.renderer.br();continue}if(a=this.rules.del.exec(e)){e=e.substring(a[0].length);t+=this.renderer.del(this.output(a[1]));continue}if(a=this.rules.text.exec(e)){e=e.substring(a[0].length);t+=this.renderer.text(i(this.smartypants(a[0])));continue}if(e){throw new Error('Infinite loop on byte: '+e.charCodeAt(0))}}return t};n.prototype.outputLink=function(e,t){var n=i(t.href),r=t.title?i(t.title):null;return'!'!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,i(e[1]))};n.prototype.smartypants=function(e){if(!this.options.smartypants)return e;return e.replace(/---/g,'\u2014').replace(/--/g,'\u2013').replace(/(^|[-\u2014/(\[{"\s])'/g,'$1\u2018').replace(/'/g,'\u2019').replace(/(^|[-\u2014/(\[{\u2018\s])"/g,'$1\u201C').replace(/"/g,'\u201D').replace(/\.{3}/g,'\u2026')};n.prototype.mangle=function(e){if(!this.options.mangle)return e;var t='',n=e.length,r=0,o;for(;r'+(n?e:i(e,!0))+'\n'}return'
    '+(n?e:i(e,!0))+'\n
    \n'};o.prototype.blockquote=function(e){return'
    \n'+e+'
    \n'};o.prototype.html=function(e){return e};o.prototype.heading=function(e,t,n){return''+e+'\n'};o.prototype.hr=function(){return this.options.xhtml?'
    \n':'
    \n'};o.prototype.list=function(e,t){var n=t?'ol':'ul';return'<'+n+'>\n'+e+'\n'};o.prototype.listitem=function(e){return'
  • '+e+'
  • \n'};o.prototype.paragraph=function(e){return'

    '+e+'

    \n'};o.prototype.table=function(e,t){return'\n\n'+e+'\n\n'+t+'\n
    \n'};o.prototype.tablerow=function(e){return'\n'+e+'\n'};o.prototype.tablecell=function(e,t){var n=t.header?'th':'td',r=t.align?'<'+n+' style="text-align:'+t.align+'">':'<'+n+'>';return r+e+'\n'};o.prototype.strong=function(e){return''+e+''};o.prototype.em=function(e){return''+e+''};o.prototype.codespan=function(e){return''+e+''};o.prototype.br=function(){return this.options.xhtml?'
    ':'
    '};o.prototype.del=function(e){return''+e+''};o.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(s(e)).replace(/[^\w:]/g,'').toLowerCase()}catch(t){return''}if(0===r.indexOf('javascript:')||0===r.indexOf('vbscript:')){return''}}var o='
    ';return o};o.prototype.image=function(e,t,n){var r=''+n+'':'>';return r};o.prototype.text=function(e){return e};function a(e){this.tokens=[];this.token=null;this.options=e||u.defaults;this.options.renderer=this.options.renderer||new o;this.renderer=this.options.renderer;this.renderer.options=this.options}a.parse=function(e,t,n){var r=new a(t,n);return r.parse(e)};a.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer);this.tokens=e.reverse();var t='';while(this.next()){t+=this.tok()}return t};a.prototype.next=function(){return this.token=this.tokens.pop()};a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};a.prototype.parseText=function(){var e=this.token.text;while('text'===this.peek().type){e+='\n'+this.next().text}return this.inline.output(e)};a.prototype.tok=function(){switch(this.token.type){case'space':{return''}case'hr':{return this.renderer.hr()}case'heading':{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case'code':{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case'table':{var e='',t='',n,r,o,a,i;o='';for(n=0;n/g,'>').replace(/"/g,'"').replace(/'/g,''')}function s(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){t=t.toLowerCase();if('colon'===t)return':';if('#'===t.charAt(0)){return'x'===t.charAt(1)?r(parseInt(t.substring(2),16)):r(+t.substring(1))}return''})}function l(e,t){e=e.source;t=t||'';return function n(r,o){if(!r)return new RegExp(e,t);o=o.source||o;o=o.replace(/(^|[^\[])\^/g,'$1');e=e.replace(r,o);return n}}function d(){}d.exec=d;function c(e){var t=1,n,r;for(;to.length){return p()}delete n.highlight;if(!l)return p();for(;dAn error occured:

    '+i(t.message+'',!0)+'
    '}throw t}}u.options=u.setOptions=function(e){c(u.defaults,e);return u};u.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:'lang-',smartypants:!1,headerPrefix:'',renderer:new o,xhtml:!1};u.Parser=a;u.parser=a.parse;u.Renderer=o;u.Lexer=t;u.lexer=t.lex;u.InlineLexer=n;u.inlineLexer=n.output;u.parse=u;if(!0){e.exports=u}else if('function'==typeof define&&define.amd){define(function(){return u})}else{this.marked=u}}).call(function(){return this||('undefined'!=typeof window?window:t)}())}).call(t,n(4))},function(module,exports,__webpack_require__){'use strict';var _createClass=function(){function e(e,t){for(var n=0,r;n ',d,' ',_react2.default.createElement('br',null),' '):'',l&&0n){return!1}var r=t.length-1;if(n==r){t.pop()}else{fe.call(t,n,1)}return!0}function g(e){var t=this.__data__,n=w(t,e);return 0>n?void 0:t[n][1]}function f(e){return-1r){n.push([e,t])}else{n[r][1]=t}return this}c.prototype.clear=u;c.prototype['delete']=p;c.prototype.get=g;c.prototype.has=f;c.prototype.set=h;function m(e){var t=-1,n=e?e.length:0;this.clear();while(++te){throw'The number of splits have to be > 0!'}if(e==this.$splits){return}else if(e>this.$splits){while(this.$splitse){t=this.$editors[this.$splits-1];this.$container.removeChild(t.container);this.$splits--}}this.resize()};this.getSplits=function(){return this.$splits};this.getEditor=function(e){return this.$editors[e]};this.getCurrentEditor=function(){return this.$cEditor};this.focus=function(){this.$cEditor.focus()};this.blur=function(){this.$cEditor.blur()};this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})};this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})};this.forEach=function(e,t){this.$editors.forEach(e,t)};this.$fontSize='';this.setFontSize=function(e){this.$fontSize=e;this.forEach(function(t){t.setFontSize(e)})};this.$cloneSession=function(e){var t=new d(e.getDocument(),e.getMode()),n=e.getUndoManager();if(n){var o=new r(n,t);t.setUndoManager(o)}t.$informUndoManager=a.delayedCall(function(){t.$deltas=[]});t.setTabSize(e.getTabSize());t.setUseSoftTabs(e.getUseSoftTabs());t.setOverwrite(e.getOverwrite());t.setBreakpoints(e.getBreakpoints());t.setUseWrapMode(e.getUseWrapMode());t.setUseWorker(e.getUseWorker());t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max);t.$foldData=e.$cloneFoldData();return t};this.setSession=function(e,t){var n;if(null==t){n=this.$cEditor}else{n=this.$editors[t]}var r=this.$editors.some(function(t){return t.session===e});if(r){e=this.$cloneSession(e)}n.setSession(e);return e};this.getOrientation=function(){return this.$orientation};this.setOrientation=function(e){if(this.$orientation==e){return}this.$orientation=e;this.resize()};this.resize=function(){var e=this.$container.clientWidth,t=this.$container.clientHeight,n;if(this.$orientation==this.BESIDE){for(var r=e/this.$splits,o=0;o+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:'start'},{token:'punctuation.operator',regex:/[?:,;.]/,next:'start'},{token:'paren.lparen',regex:/[\[({]/,next:'start'},{token:'paren.rparen',regex:/[\])}]/},{token:'comment',regex:/^#!.*$/}],property:[{token:'text',regex:'\\s+'},{token:['storage.type','punctuation.operator','entity.name.function','text','keyword.operator','text','storage.type','text','entity.name.function','text','paren.lparen'],regex:'('+l+')(\\.)('+l+')(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()',next:'function_arguments'},{token:'punctuation.operator',regex:/[.](?![.])/},{token:'support.function',regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:'support.function.dom',regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:'support.constant',regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:'identifier',regex:l},{regex:'',token:'empty',next:'no_regex'}],start:[i.getStartRule('doc-start'),o('start'),{token:'string.regexp',regex:'\\/',next:'regex'},{token:'text',regex:'\\s+|^$',next:'start'},{token:'empty',regex:'',next:'no_regex'}],regex:[{token:'regexp.keyword.operator',regex:'\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)'},{token:'string.regexp',regex:'/[sxngimy]*',next:'no_regex'},{token:'invalid',regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:'constant.language.escape',regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:'constant.language.delimiter',regex:/\|/},{token:'constant.language.escape',regex:/\[\^?/,next:'regex_character_class'},{token:'empty',regex:'$',next:'no_regex'},{defaultToken:'string.regexp'}],regex_character_class:[{token:'regexp.charclass.keyword.operator',regex:'\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)'},{token:'constant.language.escape',regex:']',next:'regex'},{token:'constant.language.escape',regex:'-'},{token:'empty',regex:'$',next:'no_regex'},{defaultToken:'string.regexp.charachterclass'}],function_arguments:[{token:'variable.parameter',regex:l},{token:'punctuation.operator',regex:'[, ]+'},{token:'punctuation.operator',regex:'$'},{token:'empty',regex:'',next:'no_regex'}],qqstring:[{token:'constant.language.escape',regex:a},{token:'string',regex:'\\\\$',next:'qqstring'},{token:'string',regex:'"|$',next:'no_regex'},{defaultToken:'string'}],qstring:[{token:'constant.language.escape',regex:a},{token:'string',regex:'\\\\$',next:'qstring'},{token:'string',regex:'\'|$',next:'no_regex'},{defaultToken:'string'}]};if(!e||!e.noES6){this.$rules.no_regex.unshift({regex:'[{}]',onMatch:function(e,t,n){this.next='{'==e?this.nextState:'';if('{'==e&&n.length){n.unshift('start',t)}else if('}'==e&&n.length){n.shift();this.next=n.shift();if(-1!=this.next.indexOf('string')||-1!=this.next.indexOf('jsx'))return'paren.quasi.end'}return'{'==e?'paren.lparen':'paren.rparen'},nextState:'start'},{token:'string.quasi.start',regex:/`/,push:[{token:'constant.language.escape',regex:a},{token:'paren.quasi.start',regex:/\${/,push:'start'},{token:'string.quasi.end',regex:/`/,next:'pop'},{defaultToken:'string.quasi'}]});if(!e||!1!=e.jsx)r.call(this)}this.embedRules(i,'doc-',[i.getEndRule('no_regex')]);this.normalizeRules()};a.inherits(d,s);function r(){var e=l.replace('\\d','\\d\\-'),t={onMatch:function(e,t,n){var r='/'==e.charAt(1)?2:1;if(1==r){if(t!=this.nextState)n.unshift(this.next,this.nextState,0);else n.unshift(this.next);n[2]++}else if(2==r){if(t==this.nextState){n[1]--;if(!n[1]||0>n[1]){n.shift();n.shift()}}}return[{type:'meta.tag.punctuation.'+(1==r?'':'end-')+'tag-open.xml',value:e.slice(0,r)},{type:'meta.tag.tag-name.xml',value:e.substr(r)}]},regex:'',onMatch:function(e,t,n){if(t==n[0])n.shift();if(2==e.length){if(n[0]==this.nextState)n[1]--;if(!n[1]||0>n[1]){n.splice(0,2)}}this.next=n[0]||'start';return[{type:this.token,value:e}]},nextState:'jsx'},n,o('jsxAttributes'),{token:'entity.other.attribute-name.xml',regex:e},{token:'keyword.operator.attribute-equals.xml',regex:'='},{token:'text.tag-whitespace.xml',regex:'\\s+'},{token:'string.attribute-value.xml',regex:'\'',stateName:'jsx_attr_q',push:[{token:'string.attribute-value.xml',regex:'\'',next:'pop'},{include:'reference'},{defaultToken:'string.attribute-value.xml'}]},{token:'string.attribute-value.xml',regex:'"',stateName:'jsx_attr_qq',push:[{token:'string.attribute-value.xml',regex:'"',next:'pop'},{include:'reference'},{defaultToken:'string.attribute-value.xml'}]},t];this.$rules.reference=[{token:'constant.language.escape.reference.xml',regex:'(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)'}]}function o(e){return[{token:'comment',regex:/\/\*/,next:[i.getTagRule(),{token:'comment',regex:'\\*\\/',next:e||'pop'},{defaultToken:'comment',caseInsensitive:!0}]},{token:'comment',regex:'\\/\\/',next:[i.getTagRule(),{token:'comment',regex:'$|^',next:e||'pop'},{defaultToken:'comment',caseInsensitive:!0}]}]}t.JavaScriptHighlightRules=d});ace.define('ace/mode/matching_brace_outdent',['require','exports','module','ace/range'],function(e,t,n){'use strict';var r=e('../range').Range,o=function(){};(function(){this.checkOutdent=function(e,t){if(!/^\s+$/.test(e))return!1;return /^\s*\}/.test(t)};this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var a=o[1].length,i=e.findMatchingBracket({row:t,column:a});if(!i||i.row==t)return 0;var s=this.$getIndent(e.getLine(i.row));e.replace(new r(t,0,t,a-1),s)};this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype);t.MatchingBraceOutdent=o});ace.define('ace/mode/folding/cstyle',['require','exports','module','ace/lib/oop','ace/range','ace/mode/folding/fold_mode'],function(e,t,n){'use strict';var r=e('../../lib/oop'),o=e('../../range').Range,a=e('./fold_mode').FoldMode,i=t.FoldMode=function(e){if(e){this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,'|'+e.start));this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,'|'+e.end))}};r.inherits(i,a);(function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/;this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/;this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/;this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/;this._getFoldWidgetBase=this.getFoldWidget;this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)){if(!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return''}var o=this._getFoldWidgetBase(e,t,n);if(!o&&this.startRegionRe.test(r))return'start';return o};this.getFoldWidgetRange=function(e,t,n,r){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var a=o.match(this.foldingStartMarker);if(a){var s=a.index;if(a[1])return this.openingBracketBlock(e,a[1],n,s);var i=e.getCommentFoldRange(n,s+a[0].length,1);if(i&&!i.isMultiLine()){if(r){i=this.getSectionRange(e,n)}else if('all'!=t)i=null}return i}if('markbegin'===t)return;var a=o.match(this.foldingStopMarker);if(a){var s=a.index+a[0].length;if(a[1])return this.closingBracketBlock(e,a[1],n,s);return e.getCommentFoldRange(n,s,-1)}};this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),a=t,i=n.length;t=t+1;var s=t,l=e.getLength();while(++td)break;var c=this.getFoldWidgetRange(e,'all',t);if(c){if(c.start.row<=a){break}else if(c.isMultiLine()){t=c.end.row}else if(r==d){break}}s=t}return new o(a,i,s,e.getLine(s).length)};this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),a=e.getLength(),i=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++ni){return new o(i,r,c,t.length)}}}).call(i.prototype)});ace.define('ace/mode/javascript',['require','exports','module','ace/lib/oop','ace/mode/text','ace/mode/javascript_highlight_rules','ace/mode/matching_brace_outdent','ace/worker/worker_client','ace/mode/behaviour/cstyle','ace/mode/folding/cstyle'],function(e,t,r){'use strict';var o=e('../lib/oop'),a=e('./text').Mode,i=e('./javascript_highlight_rules').JavaScriptHighlightRules,s=e('./matching_brace_outdent').MatchingBraceOutdent,l=e('../worker/worker_client').WorkerClient,d=e('./behaviour/cstyle').CstyleBehaviour,c=e('./folding/cstyle').FoldMode,u=function(){this.HighlightRules=i;this.$outdent=new s;this.$behaviour=new d;this.foldingRules=new c};o.inherits(u,a);(function(){this.lineCommentStart='//';this.blockComment={start:'/*',end:'*/'};this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),a=o.tokens,i=o.state;if(a.length&&'comment'==a[a.length-1].type){return r}if('start'==e||'no_regex'==e){var s=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);if(s){r+=n}}else if('doc-start'==e){if('start'==i||'no_regex'==i){return''}var s=t.match(/^\s*(\/?)\*/);if(s){if(s[1]){r+=' '}r+='* '}}return r};this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)};this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)};this.createWorker=function(e){var t=new l(['ace'],n(47),'JavaScriptWorker');t.attachToDocument(e.getDocument());t.on('annotate',function(t){e.setAnnotations(t.data)});t.on('terminate',function(){e.clearAnnotations()});return t};this.$id='ace/mode/javascript'}).call(u.prototype);t.Mode=u})},function(e,t){e.exports.id='ace/mode/javascript_worker';e.exports.src='"no use strict";(function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}})(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/\'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module \'"+name+"\'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError(\'Uncaught, unspecified "error" event.\')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this\n}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],"/node_modules/jshint/data/ascii-identifier-data.js":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],"/node_modules/jshint/lodash.js":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return"function"==typeof value||!1}function baseToString(value){return"string"==typeof value?value:null==value?"":value+""}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&"object"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return"function"!=valType&&"object"!=valType&&"function"!=othType&&"object"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+"";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+"";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if("number"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return"function"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+""}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor="constructor"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if("number"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq="string"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if("string"==type&&reIsPlainProp.test(value)||"number"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return"number"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,"function"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if("number"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),("function"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&"boolean"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:"function"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer="function"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return"function"==type||!!value&&"object"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto="function"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+"";for(var key in object)skipIndexes&&isIndex(key,length)||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\\\$&"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION="3.7.0",FUNC_ERROR_TEXT="Expected a function",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),"xo")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames="string"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return"function"==typeof Ctor&&Ctor.prototype===object||"function"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash\n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/node_modules/jshint/src/jshint.js":[function(_dereq_,module,exports){var _=_dereq_("../lodash"),events=_dereq_("events"),vars=_dereq_("./vars.js"),messages=_dereq_("./messages.js"),Lexer=_dereq_("./lex.js").Lexer,reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,style=_dereq_("./style.js"),options=_dereq_("./options.js"),scopeManager=_dereq_("./scope-manager.js"),JSHINT=function(){"use strict";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||"jslint"===t.type||_.has(options.removed,name)?!0:(error("E001",t,name),!1)}function isString(obj){return"[object String]"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return"string"==typeof r||"number"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict="global"),state.inES6()||warning("W134",state.tokens.next,"module",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict="global")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict="global")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict="global")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict="global"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:"JSHintError",line:line,character:chr,message:message+" ("+percentage+"% scanned).",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},"(end)"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:"(error)",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||"",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit("E043",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:"(internal)",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if("globals"===nt.type){body.forEach(function(g,idx){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if("-"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}"-"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]="true"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}"exported"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}state.funct["(scope)"].addExported(e)}),"members"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||\'"\'!==ch1&&"\'"!==ch1||(m=m.substr(1,m.length-2).replace(\'\\\\"\',\'"\')),membersOnly[m]=!1}));var numvals=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];("jshint"===nt.type||"jslint"===nt.type)&&(body.forEach(function(g){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if("false"!==val){if(val=+val,"number"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error("E032",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]="indent"===key?4:!1;else{if("validthis"===key)return state.funct["(global)"]?void error("E009"):"true"!==val&&"false"!==val?void error("E002",nt):(state.option.validthis="true"===val,void 0);if("quotmark"!==key)if("shadow"!==key)if("unused"!==key)if("latedef"!==key)if("ignore"!==key)if("strict"!==key){"module"===key&&(hasParsedCode(state.funct)||error("E055",state.tokens.next,"module"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if("esversion"===key){switch(val){case"5":state.inES5(!0)&&warning("I003");case"3":case"6":state.option.moz=!1,state.option.esversion=+val;break;case"2015":state.option.moz=!1,state.option.esversion=6;break;default:error("E002",nt)}return hasParsedCode(state.funct)||error("E055",state.tokens.next,"esversion"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]="-"===match[1],void 0;var tn;return"true"===val||"false"===val?("jslint"===nt.type?(tn=options.renamed[key]||key,state.option[tn]="true"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]="true"===val,"newcap"===key&&(state.option["(explicitNewcap)"]=!0),void 0):(error("E002",nt),void 0)}switch(val){case"true":state.option.moz=!1,state.option.esversion=esversions[key];break;case"false":state.option.moz||(state.option.esversion=5);break;default:error("E002",nt)}}else switch(val){case"true":state.option.strict=!0;break;case"false":state.option.strict=!1;break;case"func":case"global":case"implied":state.option.strict=val;break;default:error("E002",nt)}else switch(val){case"line":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error("E002",nt)}else switch(val){case"true":state.option.latedef=!0;break;case"false":state.option.latedef=!1;break;case"nofunc":state.option.latedef="nofunc";break;default:error("E002",nt)}else switch(val){case"true":state.option.unused=!0;break;case"false":state.option.unused=!1;break;case"vars":case"strict":state.option.unused=val;break;default:error("E002",nt)}else switch(val){case"true":state.option.shadow=!0;break;case"outer":state.option.shadow="outer";break;case"false":case"inner":state.option.shadow="inner";break;default:error("E002",nt)}else switch(val){case"true":case"false":state.option.quotmark="true"===val;break;case"double":case"single":state.option.quotmark=val;break;default:error("E002",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||"(end)"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while("(endline)"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case"(number)":"."===state.tokens.next.id&&warning("W005",state.tokens.curr);break;case"-":("-"===state.tokens.next.id||"--"===state.tokens.next.id)&&warning("W006");break;case"+":("+"===state.tokens.next.id||"++"===state.tokens.next.id)&&warning("W007")}for(id&&state.tokens.next.id!==id&&(t?"(end)"===state.tokens.next.id?error("E019",t,t.id):error("E020",state.tokens.next,id,t.id,t.line,state.tokens.next.value):("(identifier)"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning("W116",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit("E041",state.tokens.curr.line),"(end)"===state.tokens.next.id||"(error)"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)"falls through"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if("(endline)"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return";"===next.id||"}"===next.id||":"===next.id?!0:isInfix(next)===isInfix(curr)||"yield"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&"unary"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||"let"!==state.tokens.next.value||"("!==peek(0).value||(state.inMoz()||warning("W118",state.tokens.next,"let expressions"),isLetExpr=!0,state.funct["(scope)"].stack(),advance("let"),advance("("),state.tokens.prev.fud(),advance(")")),"(end)"===state.tokens.next.id&&error("E006",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains(["]",")"],state.tokens.prev.id)&&_.contains(["[","("],state.tokens.curr.id);if(isDangerous&&warning("W014",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct["(verb)"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error("E030",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||"(template)"===state.tokens.next.type)&&!isEndOfExpr();)isArray="Array"===state.tokens.curr.value,isObject="Object"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&("new"!==left.value||left.first&&left.first.value&&"."===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W009",state.tokens.curr),isObject&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W010",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error("E033",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct["(scope)"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning("W014",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning("E022",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning("I001"),comma.first=!1),warning("W014",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(",")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return error("E024",state.tokens.next,state.tokens.next.value),!1}if("(punctuator)"===state.tokens.next.type)switch(state.tokens.next.value){case"}":case"]":case",":if(opts.allowTrailing)return!0;case")":return error("E024",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&"object"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>="a"&&"z">=c||c>="A"&&"Z">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud="function"==typeof f?f:function(){return this.arity="unary",this.right=expression(150),("++"===this.id||"--"===this.id)&&(state.option.plusplus?warning("W016",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||"."===this.right.id||"["===this.right.id||warning("W017",this),this.right&&this.right.isMetaProperty?error("E031",this):this.right&&this.right.identifier&&state.funct["(scope)"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return"function"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),"in"!==s&&"instanceof"!==s||"!"!==left.id||warning("W018",left,"!"),"function"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:"arrow",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,"NaN")||isIdentifier(right,"NaN")?warning("W019",this):f&&f.apply(this,[left,right]),left&&right||quit("E041",state.tokens.curr.line),"!"===left.id&&warning("W018",left,"!"),"!"===right.id&&warning("W018",right,"!"),this},x}function isPoorRelation(node){return node&&("(number)"===node.type&&0===+node.value||"(string)"===node.type&&""===node.value||"null"===node.type&&!state.option.eqnull||"true"===node.type||"false"===node.type||"undefined"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,"(identifier)"===right.type&&"typeof"===right.value&&"(string)"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return"this"===left.type&&null===state.funct["(context)"]?isGlobal=!0:"(identifier)"===left.type&&(state.option.node&&"global"===left.value?isGlobal=!0:!state.option.browser||"window"!==left.value&&"document"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return"object"==typeof obj?"prototype"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&"object"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning("W121",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct["(scope)"].block.reassign(left.value,left),"."===left.id?((!left.left||"arguments"===left.left.value&&!state.isStrict())&&warning("E031",assignToken),state.nameStack.set(state.tokens.prev),!0):"{"===left.id||"["===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct["(scope)"].block.modify(t.id,t.token)}):"{"!==left.id&&left.left?"arguments"!==left.left.value||state.isStrict()||warning("E031",assignToken):warning("E031",assignToken),"["===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error("E031",assignToken),!0):left.identifier&&!isReserved(left)?("exception"===state.funct["(scope)"].labeltype(left.value)&&warning("W022",left),state.nameStack.set(left),!0):(left===state.syntax["function"]&&warning("W023",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,"function"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error("E031",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led="function"==typeof f?f:function(left){return state.option.bitwise&&warning("W016",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning("W016",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error("E031",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning("W016",this,this.id):left.identifier&&!isReserved(left)||"."===left.id||"["===left.id||warning("W017",this),left.isMetaProperty?error("E031",this):left&&left.identifier&&state.funct["(scope)"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&"undefined"===val?val:(warning("W024",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if("..."===state.tokens.next.value){if(state.inES6(!0)||warning("W119",state.tokens.next,"spread/rest operator","6"),advance(),checkPunctuator(state.tokens.next,"..."))for(warning("E024",state.tokens.next,"...");checkPunctuator(state.tokens.next,"...");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning("E024",state.tokens.curr,"..."),void 0)}error("E030",state.tokens.next,state.tokens.next.value),";"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(";"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){state.option.latedef===!0&&warning("W026",t);break}warning("W027",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(";"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&"(end)"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,"}");sameLine&&!blockEnd?errorAt("E058",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt("W033",state.tokens.curr.line,state.tokens.curr.character)}else advance(";")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(";"===t.id)return advance(";"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&":"===peek().id&&(warning("W024",t,t.id),res=!1),t.identifier&&!res&&":"===peek().id&&(advance(),advance(":"),hasOwnScope=!0,state.funct["(scope)"].stack(),state.funct["(scope)"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||"{"===state.tokens.next.value||warning("W028",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),"{"===t.id){var iscase="case"===state.funct["(verb)"]&&":"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&"function"===r.value||"(punctuator)"===r.type&&r.left&&r.left.identifier&&"function"===r.left.value||state.isStrict()||"global"!==state.option.strict||warning("E007"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&"("===r.id&&"new"===r.left.id&&warning("W031",t):warning("W030",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct["(scope)"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&"(end)"!==state.tokens.next.id;)";"===state.tokens.next.id?(p=peek(),(!p||"("!==p.id&&"["!==p.id)&&warning("W032"),advance(";")):a.push(statement());return a}function directives(){for(var i,p,pn;"(string)"===state.tokens.next.id;){if(p=peek(0),"(endline)"===p.id){i=1;do pn=peek(i++);while("(endline)"===pn.id);if(";"===pn.id)p=pn;else{if("["===pn.value||"."===pn.value)break;state.option.asi&&"("!==pn.value||warning("W033",state.tokens.next)}}else{if("."===p.id||"["===p.id)break;";"!==p.id&&warning("W033",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||"use strict"===directive&&"implied"===state.option.strict)&&warning("W034",state.tokens.curr,directive),state.directive[directive]=!0,";"===p.id&&advance(";")}state.isStrict()&&(state.option["(explicitNewcap)"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct["(metrics)"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),"{"===state.tokens.next.id){if(advance("{"),state.funct["(scope)"].stack(),line=state.tokens.curr.line,"}"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance("}",t),isfunc&&(state.funct["(scope)"].validateParams(),m&&(state.directive=m)),state.funct["(scope)"].unstack(),indent=old_indent}else if(ordinary)state.funct["(noblockscopedvar)"]="for"!==state.tokens.next.id,state.funct["(scope)"].stack(),(!stmt||state.option.curly)&&warning("W116",state.tokens.next,"{",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct["(scope)"].unstack(),delete state.funct["(noblockscopedvar)"];else if(isfunc){if(state.funct["(scope)"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error("W118",state.tokens.curr,"function closure expressions"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007")),state.funct["(scope)"].unstack()}else error("E021",state.tokens.next,"{",state.tokens.next.value);switch(state.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(iscase)break;default:state.funct["(verb)"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning("W035",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&"boolean"!=typeof membersOnly[m]&&warning("W036",state.tokens.curr,m),"number"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct["(comparray)"].stack();var reversed=!1;return"for"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning("W116",state.tokens.next,"for",state.tokens.next.value),state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("for"),"each"===state.tokens.next.value&&(advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),advance("("),state.funct["(comparray)"].setState("define"),res.left=expression(130),_.contains(["in","of"],state.tokens.next.value)?advance():error("E045",state.tokens.curr),state.funct["(comparray)"].setState("generate"),expression(10),advance(")"),"if"===state.tokens.next.value&&(advance("if"),advance("("),state.funct["(comparray)"].setState("filter"),res.filter=expression(10),advance(")")),reversed||(state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("]"),state.funct["(comparray)"].unstack(),res}function isMethod(){return state.funct["(statement)"]&&"class"===state.funct["(statement)"].type||state.funct["(context)"]&&"class"===state.funct["(context)"]["(verb)"]}function isPropertyName(token){return token.identifier||"(string)"===token.id||"(number)"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return"object"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?"object"==typeof id&&("(string)"===id.id||"(identifier)"===id.id?id=id.value:"(number)"===id.id&&(id=""+id.value)):"(string)"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):"(number)"===state.tokens.next.id&&(id=""+state.tokens.next.value,preserve||advance()),"hasOwnProperty"===id&&warning("W001"),id}function functionparams(options){function addParam(addParamArgs){state.funct["(scope)"].addParam.apply(state.funct["(scope)"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct["(scope)"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance("("),")"===state.tokens.next.id)return advance(")"),void 0;for(;;){arity++;var currentParams=[];if(_.contains(["{","["],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,"...")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[",",")"]);)advance();if(pastDefault&&"="!==state.tokens.next.id&&error("W138",state.tokens.current),"="===state.tokens.next.id&&(state.inES6()||warning("W119",state.tokens.next,"default parameters","6"),advance("="),pastDefault=!0,expression(10)),currentParams.forEach(addParam),","!==state.tokens.next.id)return advance(")",next),{arity:arity,params:paramsIds};pastRest&&warning("W131",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={"(name)":name,"(breakage)":0,"(loopage)":0,"(tokens)":{},"(properties)":{},"(catch)":!1,"(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(generator)":null,"(arrow)":null,"(params)":null};return token&&_.extend(funct,{"(line)":token.line,"(character)":token.character,"(metrics)":createMetrics(token)}),_.extend(funct,overwrites),funct["(context)"]&&(funct["(scope)"]=funct["(context)"]["(scope)"],funct["(comparray)"]=funct["(context)"]["(comparray)"]),funct}function isFunctor(token){return"(scope)"in token}function hasParsedCode(funct){return funct["(global)"]&&!funct["(verb)"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:"(template)",type:"(template)",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator="generator"===options.type,isArrow="arrow"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{"(statement)":statement,"(context)":state.funct,"(arrow)":isArrow,"(generator)":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct["(scope)"].stack("functionouter");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct["(scope)"].block.add(internallyAccessibleName,classExprBinding?"class":"function",state.tokens.curr,!1),state.funct["(scope)"].stack("functionparams");var paramsInfo=functionparams(options);return paramsInfo?(state.funct["(params)"]=paramsInfo.params,state.funct["(metrics)"].arity=paramsInfo.arity,state.funct["(metrics)"].verifyMaxParametersPerFunction()):state.funct["(metrics)"].arity=0,isArrow&&(state.inES6(!0)||warning("W119",state.tokens.curr,"arrow function syntax (=>)","6"),options.loneArg||advance("=>")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&"yielded"!==state.funct["(generator)"]&&warning("W124",state.tokens.curr),state.funct["(metrics)"].verifyMaxStatementsPerFunction(),state.funct["(metrics)"].verifyMaxComplexityPerFunction(),state.funct["(unusedOption)"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct["(last)"]=state.tokens.curr.line,state.funct["(lastcharacter)"]=state.tokens.curr.character,state.funct["(scope)"].unstack(),state.funct["(scope)"].unstack(),state.funct=state.funct["(context)"],ignoreLoopFunc||state.option.loopfunc||!state.funct["(loopage)"]||f["(isCapturing)"]&&warning("W083",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning("W071",functionStartToken,this.statementCount)\n},verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning("W072",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning("W074",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct["(metrics)"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,","===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":paren||state.option.boss||warning("W084")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning("W078",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,".")){var left=state.tokens.curr.id;advance(".");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error("E057",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning("W104",state.tokens.curr,isAssignment?"destructuring assignment":"destructuring binding","6"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,["[","{"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,","))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,"(")){var is_rest=checkPunctuator(state.tokens.next,"...");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning("E030",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance("("),nextInnerDE(),advance(")")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,"[")?(advance("["),expression(10),advance("]"),advance(":"),nextInnerDE()):"(string)"===state.tokens.next.id||"(number)"===state.tokens.next.id?(advance(),advance(":"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,":")?(advance(":"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,"[")){openingParsed||advance("["),checkPunctuator(state.tokens.next,"]")&&warning("W137",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,"]");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,",")&&(warning("W130",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,"=")&&(checkPunctuator(state.tokens.prev,"...")?advance("]"):advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"]")||advance(",");advance("]")}else if(checkPunctuator(firstToken,"{")){for(openingParsed||advance("{"),checkPunctuator(state.tokens.next,"}")&&warning("W137",state.tokens.curr);!checkPunctuator(state.tokens.next,"}")&&(assignmentProperty(),checkPunctuator(state.tokens.next,"=")&&(advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"}")||(advance(","),!checkPunctuator(state.tokens.next,"}"))););advance("}")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning("W080",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet="let"===type,isConst="const"===type;for(state.inES6()||warning("W104",state.tokens.curr,type,"6"),isLet&&"("===state.tokens.next.value?(state.inMoz()||warning("W118",state.tokens.next,"let block"),advance("("),state.funct["(scope)"].stack(),letblock=!0):state.funct["(noblockscopedvar)"]&&error("E048",state.tokens.curr,isConst?"Const":"Let"),statement.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&"="!==state.tokens.next.id&&warning("E012",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct["(scope)"].block.isGlobal()&&predefined[t.id]===!1&&warning("W079",t.token,t.id),t.id&&!state.funct["(noblockscopedvar)"]&&(state.funct["(scope)"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct["(scope)"].setExported(t.token.value,t.token)));if("="===state.tokens.next.id&&(advance("="),prefix||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),!prefix&&"="===peek(0).id&&state.tokens.next.identifier&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),","!==state.tokens.next.id)break;comma()}return letblock&&(advance(")"),block(!0,!0),statement.block=!0,state.funct["(scope)"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning("W104",state.tokens.curr,"class","6"),isStatement?(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"class",token:state.tokens.curr})):state.tokens.next.identifier&&"extends"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;"extends"===state.tokens.next.value&&(advance("extends"),c.heritage=expression(10)),state.inClassBody=!0,advance("{"),c.body=classbody(c),advance("}"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;"}"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,";"!==name.id){if("*"===name.id&&(isGenerator=!0,advance("*"),name=state.tokens.next),"["===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning("W052",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&"static"===name.value&&(checkPunctuator(state.tokens.next,"*")&&(isGenerator=!0,advance("*")),(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,isStatic=!0,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||"get"!==name.value&&"set"!==name.value||(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,getset=name,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,"(")){for(error("E054",state.tokens.next,state.tokens.next.value);"}"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,"(");)advance();"("!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):("constructor"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&"constructor"===name.value){var propDesc="get"===getset.value?"class getter method":"class setter method";error("E049",name,propDesc,"constructor")}else"prototype"===name.value&&error("E049",name,"class method","prototype");propertyName(name),doFunction({statement:c,type:isGenerator?"generator":null,classExprBinding:c.namedExpr?c.name:null})}else warning("W032"),advance(";");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=["key","class method","static class method"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&"__proto__"!==name?warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName="get"===accessorType?"getterToken":"setterToken",msg="";isClass?(isStatic&&(msg+="static "),msg+=accessorType+"ter method"):msg="key",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&"__proto__"!==name&&warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance("["),state.inES6()||warning("W119",state.tokens.curr,"computed property names","6");var value=expression(10);return advance("]"),value}function checkPunctuators(token,values){return"(punctuator)"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return"(punctuator)"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning("W104",state.tokens.curr,"destructuring assignment","6"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance("{"),"}"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E026",state.tokens.next,t.line);else{if("}"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id?error("E028",state.tokens.next):"(string)"!==state.tokens.next.id&&warning("W095",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning("W075",state.tokens.next,"key",state.tokens.next.value):"__proto__"===state.tokens.next.value&&!state.option.proto||"__iterator__"===state.tokens.next.value&&!state.option.iterator?warning("W096",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(":"),jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("}")}function jsonArray(){var t=state.tokens.next;if(advance("["),"]"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E027",state.tokens.next,t.line);else{if("]"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id&&error("E028",state.tokens.next)}if(jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("]")}switch(state.tokens.next.id){case"{":jsonObject();break;case"[":jsonArray();break;case"true":case"false":case"null":case"(number)":case"(string)":advance();break;case"-":advance("-"),advance("(number)");break;default:error("E003",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},functionicity=["closure","exception","global","label","outer","unused","var"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=["xml","unknown"],typeofValues.es3=["undefined","boolean","number","string","function","object"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat("symbol"),type("(number)",function(){return this}),type("(string)",function(){return this}),state.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var v=this.value;return"=>"===state.tokens.next.id?this:(state.funct["(comparray)"].check(v)||state.funct["(scope)"].block.use(v,state.tokens.curr),this)},led:function(){error("E033",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax["(template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax["(template middle)"]=_.extend({type:"(template middle)",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(template tail)"]=_.extend({type:"(template tail)",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(no subst template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type("(regexp)",function(){return this}),delim("(endline)"),delim("(begin)"),delim("(end)").reach=!0,delim("(error)").reach=!0,delim("}").reach=!0,delim(")"),delim("]"),delim(\'"\').reach=!0,delim("\'").reach=!0,delim(";"),delim(":").reach=!0,delim("#"),reserve("else"),reserve("case").reach=!0,reserve("catch"),reserve("default").reach=!0,reserve("finally"),reservevar("arguments",function(x){state.isStrict()&&state.funct["(global)"]&&warning("E008",x)}),reservevar("eval"),reservevar("false"),reservevar("Infinity"),reservevar("null"),reservevar("this",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct["(statement)"]&&state.funct["(name)"].charAt(0)>"Z"||state.funct["(global)"])&&warning("W040",x)}),reservevar("true"),reservevar("undefined"),assignop("=","assign",20),assignop("+=","assignadd",20),assignop("-=","assignsub",20),assignop("*=","assignmult",20),assignop("/=","assigndiv",20).nud=function(){error("E014")},assignop("%=","assignmod",20),bitwiseassignop("&="),bitwiseassignop("|="),bitwiseassignop("^="),bitwiseassignop("<<="),bitwiseassignop(">>="),bitwiseassignop(">>>="),infix(",",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning("W127"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),","!==state.tokens.next.value||!comma())break}return that},10,!0),infix("?",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(":"),that["else"]=expression(10),that},30);var orPrecendence=40;infix("||",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix("&&","and",50),bitwise("|","bitor",70),bitwise("^","bitxor",80),bitwise("&","bitand",90),relation("==",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning("W116",this,"===","==");break;case isPoorRelation(left):warning("W041",this,"===",left.value);break;case isPoorRelation(right):warning("W041",this,"===",right.value);break;case isTypoTypeof(right,left,state):warning("W122",this,right.value);break;case isTypoTypeof(left,right,state):warning("W122",this,left.value)}return this}),relation("===",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!=",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning("W116",this,"!==","!=")):isPoorRelation(left)?warning("W041",this,"!==",left.value):isPoorRelation(right)?warning("W041",this,"!==",right.value):isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!==",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("<"),relation(">"),relation("<="),relation(">="),bitwise("<<","shiftleft",120),bitwise(">>","shiftright",120),bitwise(">>>","shiftrightunsigned",120),infix("in","in",120),infix("instanceof","instanceof",120),infix("+",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&"(string)"===left.id&&"(string)"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning("W050",left),left):that},130),prefix("+","num"),prefix("+++",function(){return warning("W007"),this.arity="unary",this.right=expression(150),this}),infix("+++",function(left){return warning("W007"),this.left=left,this.right=expression(130),this},130),infix("-","sub",130),prefix("-","neg"),prefix("---",function(){return warning("W006"),this.arity="unary",this.right=expression(150),this}),infix("---",function(left){return warning("W006"),this.left=left,this.right=expression(130),this},130),infix("*","mult",140),infix("/","div",140),infix("%","mod",140),suffix("++"),prefix("++","preinc"),state.syntax["++"].exps=!0,suffix("--"),prefix("--","predec"),state.syntax["--"].exps=!0,prefix("delete",function(){var p=expression(10);return p?("."!==p.id&&"["!==p.id&&warning("W051"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix("~",function(){return state.option.bitwise&&warning("W016",this,"~"),this.arity="unary",this.right=expression(150),this}),prefix("...",function(){return state.inES6(!0)||warning("W119",this,"spread/rest operator","6"),state.tokens.next.identifier||"(string)"===state.tokens.next.type||checkPunctuators(state.tokens.next,["[","("])||error("E030",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix("!",function(){return this.arity="unary",this.right=expression(150),this.right||quit("E041",this.line||0),bang[this.right.id]===!0&&warning("W018",this,"!"),this}),prefix("typeof",function(){var p=expression(150);return this.first=this.right=p,p||quit("E041",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix("new",function(){var mp=metaProperty("target",function(){state.inES6(!0)||warning("W119",state.tokens.prev,"new.target","6");for(var inFunction,c=state.funct;c&&(inFunction=!c["(global)"],c["(arrow)"]);)c=c["(context)"];inFunction||warning("W136",state.tokens.prev,"new.target")});if(mp)return mp;var i,c=expression(155);if(c&&"function"!==c.id)if(c.identifier)switch(c["new"]=!0,c.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":warning("W053",state.tokens.prev,c.value);break;case"Symbol":state.inES6()&&warning("W053",state.tokens.prev,c.value);break;case"Function":state.option.evil||warning("W054");break;case"Date":case"RegExp":case"this":break;default:"function"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&("A">i||i>"Z")&&!state.funct["(scope)"].isPredefined(c.value)&&warning("W055",state.tokens.curr))}else"."!==c.id&&"["!==c.id&&"("!==c.id&&warning("W056",state.tokens.curr);else state.option.supernew||warning("W057",this);return"("===state.tokens.next.id||state.option.supernew||warning("W058",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax["new"].exps=!0,prefix("void").exps=!0,infix(".",function(left,that){var m=identifier(!1,!0);return"string"==typeof m&&countMember(m),that.left=left,that.right=m,m&&"hasOwnProperty"===m&&"="===state.tokens.next.value&&warning("W001"),!left||"arguments"!==left.value||"callee"!==m&&"caller"!==m?state.option.evil||!left||"document"!==left.value||"write"!==m&&"writeln"!==m||warning("W060",left):state.option.noarg?warning("W059",left,m):state.isStrict()&&error("E008"),state.option.evil||"eval"!==m&&"execScript"!==m||isGlobalEval(left,state)&&warning("W061"),that},160,!0),infix("(",function(left,that){state.option.immed&&left&&!left.immed&&"function"===left.id&&warning("W062");var n=0,p=[];if(left&&"(identifier)"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(left.value)&&("Math"===left.value?warning("W063",left):state.option.newcap&&warning("W064",left)),")"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,","===state.tokens.next.id;)comma();return advance(")"),"object"==typeof left&&(state.inES5()||"parseInt"!==left.value||1!==n||warning("W065",state.tokens.curr),state.option.evil||("eval"===left.value||"Function"===left.value||"execScript"===left.value?(warning("W061",left),p[0]&&"(string)"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||"(string)"!==p[0].id||"setTimeout"!==left.value&&"setInterval"!==left.value?!p[0]||"(string)"!==p[0].id||"."!==left.value||"window"!==left.left.value||"setTimeout"!==left.right&&"setInterval"!==left.right||(warning("W066",left),addInternalSrc(left,p[0].value)):(warning("W066",left),addInternalSrc(left,p[0].value))),left.identifier||"."===left.id||"["===left.id||"=>"===left.id||"("===left.id||"&&"===left.id||"||"===left.id||"?"===left.id||state.inES6()&&left["(name)"]||warning("W067",that)),that.left=left,that},155,!0).exps=!0,prefix("(",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do"("===pn.value?parens+=1:")"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||")"!==pn1.value)&&";"!==pn.value&&"(end)"!==pn.type);if("function"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),"=>"===pn.value)return doFunction({type:"arrow",parsedOpening:!0});var exprs=[];if(")"!==state.tokens.next.id)for(;exprs.push(expression(10)),","===state.tokens.next.id;)state.option.nocomma&&warning("W127"),comma();return advance(")",this),state.option.immed&&exprs[0]&&"function"===exprs[0].id&&"("!==state.tokens.next.id&&"."!==state.tokens.next.id&&"["!==state.tokens.next.id&&warning("W068",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[","]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&("{"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||"}"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||"{"===ret.id&&"=>"===preceeding.id||"(number)"===ret.type&&checkPunctuator(pn,".")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp"),infix("[",function(left,that){var s,e=expression(10);return e&&"(string)"===e.type&&(state.option.evil||"eval"!==e.value&&"execScript"!==e.value||isGlobalEval(left,state)&&warning("W061"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning("W069",state.tokens.prev,e.value))),advance("]",that),e&&"hasOwnProperty"===e.value&&"="===state.tokens.next.value&&warning("W001"),that.left=left,that.right=e,that},160,!0),prefix("[",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning("W118",state.tokens.curr,"array comprehension"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));"(end)"!==state.tokens.next.id;){for(;","===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning("W128");do advance(",");while(","===state.tokens.next.id);continue}warning("W070")}advance(",")}if("]"===state.tokens.next.id)break;if(this.first.push(expression(10)),","!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),"]"===state.tokens.next.id&&!state.inES5()){warning("W070",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance("]",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;"}"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||","!==peekIgnoreEOL().id&&"}"!==peekIgnoreEOL().id)if(":"===peek().id||"get"!==nextVal&&"set"!==nextVal){if("*"===state.tokens.next.value&&"(punctuator)"===state.tokens.next.type?(state.inES6()||warning("W104",state.tokens.next,"generator functions","6"),advance("*"),isGeneratorMethod=!0):isGeneratorMethod=!1,"["===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),"string"!=typeof i)break;"("===state.tokens.next.value?(state.inES6()||warning("W104",state.tokens.curr,"concise methods","6"),doFunction({type:isGeneratorMethod?"generator":null})):(advance(":"),expression(10))}else advance(nextVal),state.inES5()||error("E034"),i=propertyName(),i||state.inES6()||error("E035"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f["(params)"],"get"===nextVal&&i&&p?warning("W076",t,p[0],i):"set"!==nextVal||!i||p&&1===p.length||warning("W077",t,i);else state.inES6()||warning("W104",state.tokens.next,"object short notation","6"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),","!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),","===state.tokens.next.id?warning("W070",state.tokens.curr):"}"!==state.tokens.next.id||state.inES5()||warning("W070",state.tokens.curr)}return b&&(indent-=state.option.indent),advance("}",this),checkProperties(props),this},x.fud=function(){error("E036",state.tokens.curr)}}(delim("{"));var conststatement=stmt("const",function(context){return blockVariableStatement("const",this,context)});conststatement.exps=!0;var letstatement=stmt("let",function(context){return blockVariableStatement("let",this,context)});letstatement.exps=!0;var varstatement=stmt("var",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning("W132",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct["(global)"]&&(predefined[t.id]===!1?warning("W079",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning("W129",t.token,t.id)),t.id&&("for"===implied?(state.funct["(scope)"].has(t.id)||report&&warning("W088",t.token,t.id),state.funct["(scope)"].block.use(t.id,t.token)):(state.funct["(scope)"].addlabel(t.id,{type:"var",token:t.token}),lone&&inexport&&state.funct["(scope)"].setExported(t.id,t.token)),names.push(t.token)));if("="===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance("="),prefix||!report||state.funct["(loopage)"]||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),"="===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct["(params)"]||-1===state.funct["(params)"].indexOf(state.tokens.next.value))&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),","!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt("class",function(){return classdef.call(this,!0)}),blockstmt("function",function(context){var inexport=context&&context.inexport,generator=!1;"*"===state.tokens.next.value&&(advance("*"),state.inES6({strict:!0})?generator=!0:warning("W119",state.tokens.curr,"function*","6")),inblock&&warning("W082",state.tokens.curr);var i=optionalidentifier();return state.funct["(scope)"].addlabel(i,{type:"function",token:state.tokens.curr}),void 0===i?warning("W025"):inexport&&state.funct["(scope)"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?"generator":null,ignoreLoopFunc:inblock}),"("===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error("E039"),this}),prefix("function",function(){var generator=!1;"*"===state.tokens.next.value&&(state.inES6()||warning("W119",state.tokens.curr,"function*","6"),advance("*"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?"generator":null}),this}),blockstmt("if",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance("(");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type="(punctuator)"===expr.type&&"!"===expr.value?"(negative)":"(positive)"),advance(")",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&"(negative)"===forinifcheck.type&&s&&s[0]&&"(identifier)"===s[0].type&&"continue"===s[0].value&&(forinifcheck.type="(negative-with-continue)"),"else"===state.tokens.next.id&&(advance("else"),"if"===state.tokens.next.id||"switch"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt("try",function(){function doCatch(){if(advance("catch"),advance("("),state.funct["(scope)"].stack("catchparams"),checkPunctuators(state.tokens.next,["[","{"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct["(scope)"].addParam(token.id,token,"exception")})}else"(identifier)"!==state.tokens.next.type?warning("E030",state.tokens.next,state.tokens.next.value):state.funct["(scope)"].addParam(identifier(),state.tokens.curr,"exception");"if"===state.tokens.next.value&&(state.inMoz()||warning("W118",state.tokens.curr,"catch filter"),advance("if"),expression(0)),advance(")"),block(!1),state.funct["(scope)"].unstack()}var b;for(block(!0);"catch"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning("W118",state.tokens.next,"multiple catch blocks"),doCatch(),b=!0;return"finally"===state.tokens.next.id?(advance("finally"),block(!0),void 0):(b||error("E021",state.tokens.next,"catch",state.tokens.next.value),this)}),blockstmt("while",function(){var t=state.tokens.next;return state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),advance("("),checkCondAssignment(expression(0)),advance(")",t),block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this}).labelled=!0,blockstmt("with",function(){var t=state.tokens.next;return state.isStrict()?error("E010",state.tokens.curr):state.option.withstmt||warning("W085",state.tokens.curr),advance("("),expression(0),advance(")",t),block(!0,!0),this}),blockstmt("switch",function(){var t=state.tokens.next,g=!1,noindent=!1;\nfor(state.funct["(breakage)"]+=1,advance("("),checkCondAssignment(expression(0)),advance(")",t),t=state.tokens.next,advance("{"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case"case":switch(state.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"case")}advance("case"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(":"),state.funct["(verb)"]="case";break;case"default":switch(state.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"default"))}advance("default"),g=!0,advance(":");break;case"}":return noindent||(indent-=state.option.indent),advance("}",t),state.funct["(breakage)"]-=1,state.funct["(verb)"]=void 0,void 0;case"(end)":return error("E023",state.tokens.next,"}"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case",":return error("E040"),void 0;case":":g=!1,statements();break;default:return error("E025",state.tokens.curr),void 0}else{if(":"!==state.tokens.curr.id)return error("E021",state.tokens.next,"case",state.tokens.next.value),void 0;advance(":"),error("E024",state.tokens.curr,":"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt("debugger",function(){return state.option.debug||warning("W087",this),this}).exps=!0,function(){var x=stmt("do",function(){state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance("while");var t=state.tokens.next;return advance("("),checkCondAssignment(expression(0)),advance(")",t),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt("for",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;"each"===t.value&&(foreachtok=t,advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),increaseComplexityCount(),advance("(");var nextop,comma,initializer,i=0,inof=["in","of"],level=0;checkPunctuators(state.tokens.next,["{","["])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,["{","["])?++level:checkPunctuators(nextop,["}","]"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,",")?comma=nextop:!initializer&&checkPunctuator(nextop,"=")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&";"!==nextop.value&&"(end)"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||"of"!==nextop.value||warning("W104",nextop,"for of","6");var ok=!(initializer||comma);if(initializer&&error("W133",comma,nextop.value,"initializer is forbidden"),comma&&error("W133",comma,nextop.value,"more than one ForBinding"),"var"===state.tokens.next.id?(advance("var"),state.tokens.curr.fud({prefix:!0})):"let"===state.tokens.next.id||"const"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:"for",ignore:!ok}),advance(nextop.value),expression(20),advance(")",t),"in"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:"(none)"})),state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,s=block(!0,!0),"in"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&("object"!=typeof s[0]||"if"!==s[0].value)||"(positive)"===check.type&&s.length>1||"(negative)"===check.type)&&warning("W089",this)}state.forinifcheckneeded=!1}state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}else{if(foreachtok&&error("E045",foreachtok),";"!==state.tokens.next.id)if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud();else if("let"===state.tokens.next.id)advance("let"),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud();else for(;expression(0,"for"),","===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(";"),state.funct["(loopage)"]+=1,";"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(";"),";"===state.tokens.next.id&&error("E021",state.tokens.next,")",";"),")"!==state.tokens.next.id)for(;expression(0,"for"),","===state.tokens.next.id;)comma();advance(")",t),state.funct["(breakage)"]+=1,block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}return letscope&&state.funct["(scope)"].unstack(),this}).labelled=!0,stmt("break",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value):(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("continue",function(){var v=state.tokens.next.value;return 0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value),state.funct["(loopage)"]||warning("W052",state.tokens.next,this.value),state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("return",function(){return this.line===startLine(state.tokens.next)?";"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)):"(punctuator)"===state.tokens.next.type&&["[","{","+","-"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix("yield",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct["(generator)"]?"(catch)"===state.funct["(name)"]&&state.funct["(context)"]["(generator)"]||error("E046",state.tokens.curr,"yield"):state.inES6()||warning("W104",state.tokens.curr,"yield","6"),state.funct["(generator)"]="yielded";var delegatingYield=!1;return"*"===state.tokens.next.value&&(delegatingYield=!0,advance("*")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||";"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)),state.inMoz()&&")"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||"yield"===prev.id)&&error("E050",this)),this})),stmt("throw",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt("import",function(){if(state.inES6()||warning("W119",state.tokens.curr,"import","6"),"(string)"===state.tokens.next.type)return advance("(string)"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value)return advance("from"),advance("(string)"),this;advance(",")}if("*"===state.tokens.next.id)advance("*"),advance("as"),state.tokens.next.identifier&&(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}));else for(advance("{");;){if("}"===state.tokens.next.value){advance("}");break}var importName;if("default"===state.tokens.next.type?(importName="default",advance("default")):importName=identifier(),"as"===state.tokens.next.value&&(advance("as"),importName=identifier()),state.funct["(scope)"].addlabel(importName,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return advance("from"),advance("(string)"),this}).exps=!0,stmt("export",function(){var token,identifier,ok=!0;if(state.inES6()||(warning("W119",state.tokens.curr,"export","6"),ok=!1),state.funct["(scope)"].block.isGlobal()||(error("E053",state.tokens.curr),ok=!1),"*"===state.tokens.next.value)return advance("*"),advance("from"),advance("(string)"),this;if("default"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance("default");var exportType=state.tokens.next.id;return("function"===exportType||"class"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct["(scope)"].addlabel(identifier,{type:exportType,token:token}),state.funct["(scope)"].setExported(identifier,token)),this}if("{"===state.tokens.next.value){advance("{");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),"as"===state.tokens.next.value&&(advance("as"),state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance()),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return"from"===state.tokens.next.value?(advance("from"),advance("(string)")):ok&&exportedTokens.forEach(function(token){state.funct["(scope)"].setExported(token.value,token)}),this}if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud({inexport:!0});else if("let"===state.tokens.next.id)advance("let"),state.tokens.curr.fud({inexport:!0});else if("const"===state.tokens.next.id)advance("const"),state.tokens.curr.fud({inexport:!0});else if("function"===state.tokens.next.id)this.block=!0,advance("function"),state.syntax["function"].fud({inexport:!0});else if("class"===state.tokens.next.id){this.block=!0,advance("class");var classNameToken=state.tokens.next;state.syntax["class"].fud(),state.funct["(scope)"].setExported(classNameToken.value,classNameToken)}else error("E024",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord("abstract"),FutureReservedWord("boolean"),FutureReservedWord("byte"),FutureReservedWord("char"),FutureReservedWord("class",{es5:!0,nud:classdef}),FutureReservedWord("double"),FutureReservedWord("enum",{es5:!0}),FutureReservedWord("export",{es5:!0}),FutureReservedWord("extends",{es5:!0}),FutureReservedWord("final"),FutureReservedWord("float"),FutureReservedWord("goto"),FutureReservedWord("implements",{es5:!0,strictOnly:!0}),FutureReservedWord("import",{es5:!0}),FutureReservedWord("int"),FutureReservedWord("interface",{es5:!0,strictOnly:!0}),FutureReservedWord("long"),FutureReservedWord("native"),FutureReservedWord("package",{es5:!0,strictOnly:!0}),FutureReservedWord("private",{es5:!0,strictOnly:!0}),FutureReservedWord("protected",{es5:!0,strictOnly:!0}),FutureReservedWord("public",{es5:!0,strictOnly:!0}),FutureReservedWord("short"),FutureReservedWord("static",{es5:!0,strictOnly:!0}),FutureReservedWord("super",{es5:!0}),FutureReservedWord("synchronized"),FutureReservedWord("transient"),FutureReservedWord("volatile");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,["[","{"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,["[","{"])?bracketStack+=1:checkPunctuators(pn,["]","}"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&"for"===pn.value&&!checkPunctuator(prev,".")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,["}","]"])){if("="===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if("."===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,";")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&"(end)"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode="use",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning("W098",v.token,v.raw_text||v.value),v.undef&&state.funct["(scope)"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains(["use","define","generate","filter"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&"use"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&"define"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&"generate"===_current.mode?(state.funct["(scope)"].block.use(v,state.tokens.curr),!0):_current&&"filter"===_current.mode?(use(v)&&state.funct["(scope)"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,"\\\\$&")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||"object"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope="(main)"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;"-"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],("esversion"===optionKey&&5===o[optionKey]||"es5"===optionKey&&o[optionKey])&&warning("I003"),"newcap"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj["(explicitNewcap)"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on("warning",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on("error",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor("(global)",null,{"(global)":!0,"(scope)":scopeManagerInst,"(comparray)":arrayComprehension(),"(metrics)":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt("E004",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax["(begin)"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+"[\\\\s\\\\S]*?"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,"ig"),s=s.replace(reIgnore,function(match){return match.replace(/./g," ")}))})),lex=new Lexer(s),lex.on("warning",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("error",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("fatal",function(ev){quit("E041",ev.line,ev.from)}),lex.on("Identifier",function(ev){emitter.emit("Identifier",ev)}),lex.on("String",function(ev){emitter.emit("String",ev)}),lex.on("Number",function(ev){emitter.emit("Number",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case"{":case"[":destructuringAssignOrJsonValue();break;default:directives(),state.directive["use strict"]&&"global"!==state.option.strict&&warning("W097",state.tokens.prev),statements()}"(end)"!==state.tokens.next.id&&quit("E041",state.tokens.curr.line),state.funct["(scope)"].unstack()}catch(err){if(!err||"JSHintError"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:"(main)",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if("(main)"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct["(scope)"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct["(scope)"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f["(name)"],fu.param=f["(params)"],fu.line=f["(line)"],fu.character=f["(character)"],fu.last=f["(last)"],fu.lastcharacter=f["(lastcharacter)"],fu.metrics={complexity:f["(metrics)"].ComplexityCount,parameters:f["(metrics)"].arity,statements:f["(metrics)"].statementCount},data.functions.push(fu)}var unuseds=state.funct["(scope)"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if("number"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{"../lodash":"/node_modules/jshint/lodash.js","./lex.js":"/node_modules/jshint/src/lex.js","./messages.js":"/node_modules/jshint/src/messages.js","./options.js":"/node_modules/jshint/src/options.js","./reg.js":"/node_modules/jshint/src/reg.js","./scope-manager.js":"/node_modules/jshint/src/scope-manager.js","./state.js":"/node_modules/jshint/src/state.js","./style.js":"/node_modules/jshint/src/style.js","./vars.js":"/node_modules/jshint/src/vars.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/lex.js":[function(_dereq_,module,exports){"use strict";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;"string"==typeof lines&&(lines=lines.replace(/\\r\\n/g,"\\n").replace(/\\r/g,"\\n").split("\\n")),lines[0]&&"#!"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf("node")&&(state.option.node=!0),lines[0]=""),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=" ";this.ignoreLinterErrors=!1}var _=_dereq_("../lodash"),events=_dereq_("events"),reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,unicodeData=_dereq_("../data/ascii-identifier-data.js"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(" ").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:Token.Punctuator,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:Token.Punctuator,value:ch1};case"{":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case"}":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case"#":return{type:Token.Punctuator,value:ch1};case"":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),">"===ch1&&">"===ch2&&">"===ch3&&"="===ch4?{type:Token.Punctuator,value:">>>="}:"="===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"==="}:"!"===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"!=="}:">"===ch1&&">"===ch2&&">"===ch3?{type:Token.Punctuator,value:">>>"}:"<"===ch1&&"<"===ch2&&"="===ch3?{type:Token.Punctuator,value:"<<="}:">"===ch1&&">"===ch2&&"="===ch3?{type:Token.Punctuator,value:">>="}:"="===ch1&&">"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&"+-<>&|".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:"<>=!+-*%&|^".indexOf(ch1)>=0?"="===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:"/"===ch1?"="===ch2?{type:Token.Punctuator,value:"/="}:{type:Token.Punctuator,value:"/"}:null},scanComments:function(){function commentToken(label,body,opt){var special=["jshint","jslint","members","member","globals","global","exported"],isSpecial=!1,value=label+body,commentType="plain";return opt=opt||{},opt.isMultiline&&(value+="*/"),body=body.replace(/\\n/g," "),"/*"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType="falls through"),special.forEach(function(str){if(!isSpecial&&("//"!==label||"jshint"===str)&&(" "===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||" "!==body.charAt(0)||" "!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+" "+str,body=body.substr(str.length+1)),isSpecial))switch(str){case"member":commentType="members";break;case"global":commentType="globals";break;default:var options=body.split(":").map(function(v){return v.replace(/^\\s+/,"").replace(/\\s+$/,"")});if(2===options.length)switch(options[0]){case"ignore":switch(options[1]){case"start":self.ignoringLinterErrors=!0,isSpecial=!1;break;case"end":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if("*"===ch1&&"/"===ch2)return this.trigger("error",{code:"E018",line:startLine,character:startChar}),this.skip(2),null;if("/"!==ch1||"*"!==ch2&&"/"!==ch2)return null;if("/"===ch2)return this.skip(this.input.length),commentToken("//",rest);var body="";if("*"===ch2){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(body+="\\n",!this.nextLine())return this.trigger("error",{code:"E017",line:startLine,character:startChar}),this.inComment=!1,commentToken("/*",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken("/*",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id="",index=0,readUnicodeEscapeSequence=function(){if(index+=1,"u"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,"\\\\u"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case"true":case"false":type=Token.BooleanLiteral;break;case"null":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return"$"===ch||"_"===ch||"\\\\"===ch||ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch}var bad,index=0,value="",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if("."!==char&&!isDecimalDigit(char))return null;if("."!==char){for(value=this.peek(index),index+=1,char=this.peek(index),"0"===value&&(("x"===char||"X"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),("o"===char||"O"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]}),index+=1,value+=char),("b"===char||"B"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if("."===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if("e"===char||"E"===char){if(value+=char,index+=1,char=this.peek(index),("+"===char||"-"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case"\'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\\'"]},checks,function(){return state.jsonMode});break;case"b":char="\\\\b";break;case"f":char="\\\\f";break;case"n":char="\\\\n";break;case"r":char="\\\\r";break;case"t":char="\\\\t";break;case"0":char="\\\\0";var n=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case"u":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\v"]},checks,function(){return state.jsonMode}),char="\x0B";break;case"x":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\x-"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case"\\\\":char="\\\\\\\\";break;case\'"\':char=\'\\\\"\';break;case"/":break;case"":allowNewLine=!0,char=""}return{"char":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value="",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if("`"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,"char":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||"}"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;"`"!==this.peek();){for(;""===(ch=this.peek());)if(value+="\\n",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if("$"===ch&&"{"===this.peek(1))return value+="${",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()};\nif("\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else"`"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if(\'"\'!==quote&&"\'"!==quote)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},checks,function(){return state.jsonMode&&\'"\'!==quote});var value="",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(""===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine())return this.trigger("error",{code:"E029",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(" ">char&&this.trigger("warning",{code:"W113",line:this.line,character:this.char,data:[""]}),"\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body="",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){" ">char&&(malformed=!0,this.trigger("warning",{code:"W048",line:this.line,character:this.char})),"<"===char&&(malformed=!0,this.trigger("warning",{code:"W049",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||"/"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)"]"===char&&("\\\\"!==this.peek(index-1)||"\\\\"===this.peek(index-2))&&(isCharSet=!1),"\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if("\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),"/"===char){index+=1;continue}if("["===char){index+=1;continue}}if("["!==char){if("/"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(""))}catch(err){malformed=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith("/*","//")||this.inComment&&endsWith("*/")||(this.input="")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger("warning",{code:"W125",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger("warning",{code:"W100",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen=0;--i){var scopeLabels=_scopeStack[i]["(labels)"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(usages)"][labelName])return current["(usages)"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if("outer"===state.option.shadow)for(var isGlobal="global"===_currentFunctBody["(type)"],isNewFunction="functionparams"===_current["(type)"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem["(labels)"][labelName]&&warning("W123",token,labelName),stackItem["(breakLabels)"][labelName]&&warning("W123",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&"function"===type||"function"!==type)&&warning("W003",token,labelName)}var _current,_scopeStack=[];_newScope("global"),_current["(predefined)"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt="last-param"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning("W098",{line:line,from:chr},raw_name),(unused_opt||"var"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0]["(predefined)"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||"functionparams"!==previousScope["(type)"]||(_current["(isFuncBody)"]=!0,_current["(context)"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams="functionparams"===_current["(type)"],isUnstackingFunctionOuter="functionouter"===_current["(type)"],currentUsages=_current["(usages)"],currentLabels=_current["(labels)"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf("__proto__")&&usedLabelNameList.push("__proto__"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel["(type)"];if(usedLabel["(useOutsideOfScope)"]&&!state.option.funcscope){var usedTokens=usage["(tokens)"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel["(function)"]===usedTokens[j]["(function)"]&&error("W038",usedTokens[j],usedLabelName)}if(_current["(labels)"][usedLabelName]["(unused)"]=!1,"const"===usedLabelType&&usage["(modified)"])for(j=0;usage["(modified)"].length>j;j++)error("E013",usage["(modified)"][j],usedLabelName);if(("function"===usedLabelType||"class"===usedLabelType)&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)error("W021",usage["(reassigned)"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct["(isCapturing)"]=!0),subScope)if(subScope["(usages)"][usedLabelName]){var subScopeUsage=subScope["(usages)"][usedLabelName];subScopeUsage["(modified)"]=subScopeUsage["(modified)"].concat(usage["(modified)"]),subScopeUsage["(tokens)"]=subScopeUsage["(tokens)"].concat(usage["(tokens)"]),subScopeUsage["(reassigned)"]=subScopeUsage["(reassigned)"].concat(usage["(reassigned)"]),subScopeUsage["(onlyUsedSubFunction)"]=!1}else subScope["(usages)"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope["(usages)"][usedLabelName]["(onlyUsedSubFunction)"]=!0);else if("boolean"==typeof _current["(predefined)"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current["(predefined)"][usedLabelName]===!1&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)warning("W020",usage["(reassigned)"][j])}else if(usage["(tokens)"])for(j=0;usage["(tokens)"].length>j;j++){var undefinedToken=usage["(tokens)"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning("W117",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],"var")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName]["(blockscoped)"]||"exception"===currentLabels[defLabelName]["(type)"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope["(labels)"][defLabelName]=currentLabels[defLabelName],"global"!==_currentFunctBody["(type)"]&&(subScope["(labels)"][defLabelName]["(useOutsideOfScope)"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope["(isFuncBody)"]||"global"===scope["(type)"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||"param","exception"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&"exception"!==previouslyDefinedLabelType&&(state.option.node||warning("W002",state.tokens.next,labelName))}if(_.has(_current["(labels)"],labelName)?_current["(labels)"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current["(labels)"][labelName]={"(type)":type,"(token)":token,"(unused)":!0},_current["(params)"].push(labelName)),_.has(_current["(usages)"],labelName)){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}},validateParams:function(){if("global"!==_currentFunctBody["(type)"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody["(parent)"];currentFunctParamScope["(params)"]&¤tFunctParamScope["(params)"].forEach(function(labelName){var label=currentFunctParamScope["(labels)"][labelName];label&&label.duplicated&&(isStrict?warning("E011",label["(token)"],labelName):state.option.shadow!==!0&&warning("W004",label["(token)"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf("__proto__")&&list.push("__proto__"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return"__proto__"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName]["(type)"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0]["(labels)"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName]["(unused)"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope["(type)"])break;if(_.has(scope["(labels)"],labelName)&&!scope["(labels)"][labelName]["(blockscoped)"])return scope["(labels)"][labelName]["(unused)"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token)\n},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"\'"!==data.quote&&(code="W109"),"double"===quotmark&&\'"\'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable \'(.+)\'.",\'Missing "use strict"\']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\[\'{a}\'\\\\] is better written in dot notation.","\'{a}\' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{([\'"]/.test(str)?(error.reason=\'Missing ";" before statement\',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"\'{a}\' is not defined."==raw?type="warning":"\'{a}\' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\x0B\\f\\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'},function(e,t){ace.define('ace/theme/monokai',['require','exports','module','ace/lib/dom'],function(e,t,n){t.isDark=!0;t.cssClass='ace-monokai';t.cssText='.ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}';var r=e('../lib/dom');r.importCssString(t.cssText,t.cssClass)})}]); diff --git a/package.json b/package.json index 5ca452f..87aa689 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lcov-server", - "version": "1.1.4", + "version": "1.1.5", "description": "🎯 A simple lcov server & cli parser", "main": "index.js", "homepage": "https://github.com/gabrielcsapo/lcov-server#readme", diff --git a/src/coverage/coverage.js b/src/coverage/coverage.js index 2af7b9b..7a6fd2d 100644 --- a/src/coverage/coverage.js +++ b/src/coverage/coverage.js @@ -61,16 +61,22 @@ class Coverage extends React.Component { const { lines, branches, functions } = history.source_files[0]; allBranches.push(git.branch || git.git_branch); - if(selectedBranch && selectedBranch === (git.branch || git.git_branch)) { - data[0].push(parseInt(((lines.hit / lines.found) || 1) * 100)) - data[1].push(parseInt(((branches.hit / branches.found) || 1) * 100)) - data[2].push(parseInt(((functions.hit / functions.found) || 1) * 100)) - } else if(!selectedBranch) { - data[0].push(parseInt(((lines.hit / lines.found) || 1) * 100)) - data[1].push(parseInt(((branches.hit / branches.found) || 1) * 100)) - data[2].push(parseInt(((functions.hit / functions.found) || 1) * 100)) + if(lines && branches && functions) { + if(selectedBranch && selectedBranch === (git.branch || git.git_branch)) { + data[0].push(parseInt(((lines.hit / lines.found) || 1) * 100)) + data[1].push(parseInt(((branches.hit / branches.found) || 1) * 100)) + data[2].push(parseInt(((functions.hit / functions.found) || 1) * 100)) + } else if(!selectedBranch) { + data[0].push(parseInt(((lines.hit / lines.found) || 1) * 100)) + data[1].push(parseInt(((branches.hit / branches.found) || 1) * 100)) + data[2].push(parseInt(((functions.hit / functions.found) || 1) * 100)) + } else { + // noop + } } else { - // noop + data[0].push(0) + data[1].push(0) + data[2].push(0) } }, []); @@ -87,8 +93,10 @@ class Coverage extends React.Component { function reduceBuilds(build) { let totalCoverage = build.source_files.map((f) => { - const totalFound = f.lines.found + f.branches.found + f.functions.found; - const totalHit = f.lines.hit + f.branches.hit + f.functions.hit; + const { lines={ found: 0, hit: 0 }, branches={ found: 0, hit: 0 }, functions={ found: 0, hit: 0 } } = f; + + const totalFound = lines.found + branches.found + functions.found; + const totalHit = lines.hit + branches.hit + functions.hit; const totalCoverage = parseInt((totalHit / totalFound) * 100); return totalCoverage; }, []).reduce((p, c, _ ,a) => p + c / a.length, 0); @@ -107,8 +115,10 @@ class Coverage extends React.Component { }); function reduceSourceFiles(file) { - const totalFound = file.lines.found + file.branches.found + file.functions.found; - const totalHit = file.lines.hit + file.branches.hit + file.functions.hit; + const { lines={ found: 0, hit: 0 }, branches={ found: 0, hit: 0 }, functions={ found: 0, hit: 0 } } = file; + + const totalFound = lines.found + branches.found + functions.found; + const totalHit = lines.hit + branches.hit + functions.hit; const totalCoverage = parseInt((totalHit / totalFound) * 100); const fileName = encodeURIComponent(file.title).replace(/\./g, '$2E'); @@ -117,9 +127,9 @@ class Coverage extends React.Component { "File":
    { file.title } , - "Lines": `${file.lines.hit} / ${file.lines.found}`, - "Branches": `${file.branches.hit} / ${file.branches.found}`, - "Functions": `${file.functions.hit} / ${file.functions.found}` + "Lines": `${lines.hit} / ${lines.found}`, + "Branches": `${branches.hit} / ${branches.found}`, + "Functions": `${functions.hit} / ${functions.found}` } } diff --git a/src/coverage/file.js b/src/coverage/file.js index eade8b1..49e39a9 100644 --- a/src/coverage/file.js +++ b/src/coverage/file.js @@ -55,13 +55,17 @@ class File extends React.Component { project.history.forEach((h) => { h.source_files.forEach((f) => { if(f.title === file) { - const { lines, branches, functions } = f; - const linePercentage = parseInt(((lines.hit / lines.found) || 1) * 100); - const branchPercentage = parseInt(((branches.hit / branches.found) || 1) * 100); - const functionPercentage = parseInt(((functions.hit / functions.found) || 1) * 100); - data[0].push(linePercentage); - data[1].push(branchPercentage); - data[2].push(functionPercentage); + const { lines={ found: 0, hit: 0 }, branches={ found: 0, hit: 0 }, functions={ found: 0, hit: 0 } } = f; + + if(lines && branches && functions) { + data[0].push(parseInt(((lines.hit / lines.found) || 1) * 100)) + data[1].push(parseInt(((branches.hit / branches.found) || 1) * 100)) + data[2].push(parseInt(((functions.hit / functions.found) || 1) * 100)) + } else { + data[0].push(0) + data[1].push(0) + data[2].push(0) + } } }); }); @@ -73,7 +77,8 @@ class File extends React.Component { data[2].push(data[2][0]) } - const { lines, branches, functions } = fileSource; + const { lines={ found: 0, hit: 0 }, branches={ found: 0, hit: 0 }, functions={ found: 0, hit: 0 } } = fileSource; + lines.details.forEach((l) => { lineMap[l.line - 1] = l.hit; }); diff --git a/src/coverage/list-item.js b/src/coverage/list-item.js index 2bb510b..339f330 100644 --- a/src/coverage/list-item.js +++ b/src/coverage/list-item.js @@ -5,7 +5,7 @@ import parse from 'git-url-parse'; import CoverageChart from './chart'; import Error from '../components/error'; -class Coverages extends React.Component { +class ListItem extends React.Component { constructor(props) { super(props); this.state = { @@ -50,9 +50,15 @@ class Coverages extends React.Component { const data = [[], [], []]; history.forEach(function(history) { const { lines, branches, functions } = history.source_files[0]; - data[0].push(parseInt(((lines.hit / lines.found) || 1) * 100)) - data[1].push(parseInt(((branches.hit / branches.found) || 1) * 100)) - data[2].push(parseInt(((functions.hit / functions.found) || 1) * 100)) + if(lines && branches && functions) { + data[0].push(parseInt(((lines.hit / lines.found) || 1) * 100)) + data[1].push(parseInt(((branches.hit / branches.found) || 1) * 100)) + data[2].push(parseInt(((functions.hit / functions.found) || 1) * 100)) + } else { + data[0].push(0) + data[1].push(0) + data[2].push(0) + } }, []); // If there is only one data point // add another that is the same value to make a line @@ -107,4 +113,4 @@ class Coverages extends React.Component { } } -export default Coverages; +export default ListItem;