From 831feb7a478adf92c05a908762671764f9e38508 Mon Sep 17 00:00:00 2001 From: Ben Warzeski Date: Fri, 22 Jan 2021 11:54:25 -0500 Subject: [PATCH] add an intert react app to lms view --- .../openassessmentblock/oa_base.html | 2 + openassessment/xblock/openassessmentblock.py | 4 +- .../xblock/static/js/openassessment-lms.js | 148 +++++++++++------- .../xblock/static/js/openassessment-studio.js | 6 +- .../xblock/static/js/src/lms/oa_base.js | 8 +- .../xblock/static/js/src/lms/oa_react.js | 56 +++++++ package-lock.json | 51 +++++- package.json | 3 + 8 files changed, 215 insertions(+), 63 deletions(-) create mode 100644 openassessment/xblock/static/js/src/lms/oa_react.js diff --git a/openassessment/templates/openassessmentblock/oa_base.html b/openassessment/templates/openassessmentblock/oa_base.html index d6d58fbdc3..d188543c46 100644 --- a/openassessment/templates/openassessmentblock/oa_base.html +++ b/openassessment/templates/openassessmentblock/oa_base.html @@ -47,5 +47,7 @@

+
+
{% endspaceless %} diff --git a/openassessment/xblock/openassessmentblock.py b/openassessment/xblock/openassessmentblock.py index cb931612c8..8738df8d7f 100644 --- a/openassessment/xblock/openassessmentblock.py +++ b/openassessment/xblock/openassessmentblock.py @@ -525,6 +525,7 @@ def student_view(self, context=None): # pylint: disable=unused-argument "prompts_type": self.prompts_type, "rubric_assessments": ui_models, "show_staff_area": self.is_course_staff and not self.in_studio_preview, + "block_location": str(self.location), } template = get_template("openassessmentblock/oa_base.html") return self._create_fragment(template, context_dict, initialize_js_func='OpenAssessmentBlock') @@ -629,7 +630,8 @@ def _create_fragment(self, template, context_dict, initialize_js_func, additiona "FILE_EXT_BLACK_LIST": self.FILE_EXT_BLACK_LIST, "FILE_TYPE_WHITE_LIST": self.white_listed_file_types, "MAXIMUM_FILE_UPLOAD_COUNT": self.MAX_FILES_COUNT, - "TEAM_ASSIGNMENT": self.is_team_assignment() + "TEAM_ASSIGNMENT": self.is_team_assignment(), + "XBLOCK_LOCATION": self.location } fragment.initialize_js(initialize_js_func, js_context_dict) return fragment diff --git a/openassessment/xblock/static/js/openassessment-lms.js b/openassessment/xblock/static/js/openassessment-lms.js index 244972eca8..aedce07def 100644 --- a/openassessment/xblock/static/js/openassessment-lms.js +++ b/openassessment/xblock/static/js/openassessment-lms.js @@ -1,6 +1,6 @@ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=155)}([function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function a(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function d(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function M(e,t){var n,i=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,v=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},x={};function E(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(x[e]=a),t&&(x[t[0]]=function(){return S(a.apply(this,arguments),t[1],t[2])}),n&&(x[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function C(e,t){return e.isValid()?(t=B(t,e.localeData()),q[t]=q[t]||function(e){var t,n,i,a=e.match(N);for(t=0,n=a.length;t=0&&W.test(e);)e=e.replace(W,i),W.lastIndex=0,n-=1;return e}var H={};function X(e,t){var n=e.toLowerCase();H[n]=H[n+"s"]=H[t]=e}function j(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function R(e){var t,n,i={};for(n in e)o(e,n)&&(t=j(n))&&(i[t]=e[n]);return i}var P={};function F(e,t){P[e]=t}function I(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function V(e,t){return function(n){return null!=n?(G(this,e,n),a.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&I(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ge(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,Q=/\d/,Z=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ie=/\d\d?/,ae=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,se=/\d{1,3}/,oe=/\d{1,4}/,ce=/[+-]?\d{1,6}/,de=/\d+/,ue=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){K[e]=Y(t)?t:function(e,i){return e&&n?n:t}}function fe(e,t){return o(K,e)?K[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,a){return t||n||i||a}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var _e,be={};function Le(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=$(e)}),n=0;n68?1900:2e3)};var We=V("FullYear",!0);function qe(e,t,n,i,a,r,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,i,a,r,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,a,r,s),o}function xe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,n){var i=7+t-n;return-(7+xe(e,0,i).getUTCDay()-t)%7+i-1}function Ce(e,t,n,i,a){var r,s,o=1+7*(t-1)+(7+n-i)%7+Ee(e,i,a);return o<=0?s=Ne(r=e-1)+o:o>Ne(e)?(r=e+1,s=o-Ne(e)):(r=e,s=o),{year:r,dayOfYear:s}}function Be(e,t,n){var i,a,r=Ee(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?i=s+He(a=e.year()-1,t,n):s>He(e.year(),t,n)?(i=s-He(e.year(),t,n),a=e.year()+1):(a=e.year(),i=s),{week:i,year:a}}function He(e,t,n){var i=Ee(e,t,n),a=Ee(e+1,t,n);return(Ne(e)-i+a)/7}function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),X("week","w"),X("isoWeek","W"),F("week",5),F("isoWeek",5),pe("w",ie),pe("ww",ie,Z),pe("W",ie),pe("WW",ie,Z),ye(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=$(e)})),E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),X("day","d"),X("weekday","e"),X("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),pe("d",ie),pe("e",ie),pe("E",ie),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,n,i){t[i]=$(e)}));var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=me,Ie=me,Ue=me;function $e(e,t,n){var i,a,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=_e.call(this._weekdaysParse,s))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,s))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,s))?a:null:"dddd"===t?-1!==(a=_e.call(this._weekdaysParse,s))||-1!==(a=_e.call(this._shortWeekdaysParse,s))||-1!==(a=_e.call(this._minWeekdaysParse,s))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,s))||-1!==(a=_e.call(this._weekdaysParse,s))||-1!==(a=_e.call(this._minWeekdaysParse,s))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,s))||-1!==(a=_e.call(this._weekdaysParse,s))||-1!==(a=_e.call(this._shortWeekdaysParse,s))?a:null}function Ve(){function e(e,t){return t.length-e.length}var t,n,i,a,r,s=[],o=[],c=[],d=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=he(this.weekdaysMin(n,"")),a=he(this.weekdaysShort(n,"")),r=he(this.weekdays(n,"")),s.push(i),o.push(a),c.push(r),d.push(i),d.push(a),d.push(r);s.sort(e),o.sort(e),c.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ge(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,Je),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+Je.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+S(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)})),Ge("a",!0),Ge("A",!1),X("hour","h"),F("hour",13),pe("a",Ke),pe("A",Ke),pe("H",ie),pe("h",ie),pe("k",ie),pe("HH",ie,Z),pe("hh",ie,Z),pe("kk",ie,Z),pe("hmm",ae),pe("hmmss",re),pe("Hmm",ae),pe("Hmmss",re),Le(["H","HH"],3),Le(["k","kk"],(function(e,t,n){var i=$(e);t[3]=24===i?0:i})),Le(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Le(["h","hh"],(function(e,t,n){t[3]=$(e),f(n).bigHour=!0})),Le("hmm",(function(e,t,n){var i=e.length-2;t[3]=$(e.substr(0,i)),t[4]=$(e.substr(i)),f(n).bigHour=!0})),Le("hmmss",(function(e,t,n){var i=e.length-4,a=e.length-2;t[3]=$(e.substr(0,i)),t[4]=$(e.substr(i,2)),t[5]=$(e.substr(a)),f(n).bigHour=!0})),Le("Hmm",(function(e,t,n){var i=e.length-2;t[3]=$(e.substr(0,i)),t[4]=$(e.substr(i))})),Le("Hmmss",(function(e,t,n){var i=e.length-4,a=e.length-2;t[3]=$(e.substr(0,i)),t[4]=$(e.substr(i,2)),t[5]=$(e.substr(a))}));var Qe,Ze=V("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:ze,week:{dow:0,doy:6},weekdays:je,weekdaysMin:Pe,weekdaysShort:Re,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=rt(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&it(a,n)>=t-1)break;t--}r++}return Qe}(e)}function dt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ge(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ft=/^\/?Date\((-?\d+)/i,ht=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,i,a,r,s,o=e._i,c=ut.exec(o)||lt.exec(o);if(c){for(f(e).iso=!0,t=0,n=mt.length;t7)&&(c=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,d=Be(wt(),r,s),n=At(t.gg,e._a[0],d.year),i=At(t.w,d.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+r,(t.e<0||t.e>6)&&(c=!0)):a=r),i<1||i>He(n,r,s)?f(e)._overflowWeeks=!0:null!=c?f(e)._overflowWeekday=!0:(o=Ce(n,i,a,r,s),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(s=At(e._a[0],i[0]),(e._dayOfYear>Ne(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=xe(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?xe:qe).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function Tt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],f(e).empty=!0;var t,n,i,r,s,o,c=""+e._i,d=c.length,u=0;for(i=B(e._f,e._locale).match(N)||[],t=0;t0&&f(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),u+=n.length),x[r]?(n?f(e).empty=!1:f(e).unusedTokens.push(r),Ae(r,n,e)):e._strict&&!n&&f(e).unusedTokens.push(r);f(e).charsLeftOver=d-u,c.length>0&&f(e).unusedInput.push(c),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(o=f(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),gt(e),dt(e)}else yt(e);else bt(e)}function zt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new A(dt(t)):(l(t)?e._d=t:r(n)?function(e){var t,n,i,a,r,s,o=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:_()}));function Ot(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return wt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function sn(e,t){return t.erasAbbrRegex(e)}function on(){var e,t,n=[],i=[],a=[],r=[],s=this.eras();for(e=0,t=s.length;e(r=He(e,i,a))&&(t=r),un.call(this,e,t,n,i,a))}function un(e,t,n,i,a){var r=Ce(e,t,n,i,a),s=xe(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),pe("N",sn),pe("NN",sn),pe("NNN",sn),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),Le(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var a=n._locale.erasParse(e,i,n._strict);a?f(n).era=a:f(n).invalidEra=e})),pe("y",de),pe("yy",de),pe("yyy",de),pe("yyyy",de),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||de})),Le(["y","yy","yyy","yyyy"],0),Le(["yo"],(function(e,t,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),X("weekYear","gg"),X("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ie,Z),pe("gg",ie,Z),pe("GGGG",oe,te),pe("gggg",oe,te),pe("GGGGG",ce,ne),pe("ggggg",ce,ne),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=$(e)})),ye(["gg","GG"],(function(e,t,n,i){t[i]=a.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),X("quarter","Q"),F("quarter",7),pe("Q",Q),Le("Q",(function(e,t){t[1]=3*($(e)-1)})),E("D",["DD",2],"Do","date"),X("date","D"),F("date",9),pe("D",ie),pe("DD",ie,Z),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Le(["D","DD"],2),Le("Do",(function(e,t){t[2]=$(e.match(ie)[0])}));var ln=V("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),X("dayOfYear","DDD"),F("dayOfYear",4),pe("DDD",se),pe("DDDD",ee),Le(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=$(e)})),E("m",["mm",2],0,"minute"),X("minute","m"),F("minute",14),pe("m",ie),pe("mm",ie,Z),Le(["m","mm"],4);var Mn=V("Minutes",!1);E("s",["ss",2],0,"second"),X("second","s"),F("second",15),pe("s",ie),pe("ss",ie,Z),Le(["s","ss"],5);var mn,pn,fn=V("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),X("millisecond","ms"),F("millisecond",16),pe("S",se,Q),pe("SS",se,Z),pe("SSS",se,ee),mn="SSSS";mn.length<=9;mn+="S")pe(mn,de);function hn(e,t){t[6]=$(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")Le(mn,hn);pn=V("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var _n=A.prototype;function bn(e){return e}_n.add=$t,_n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Gt(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||wt(),i=Ct(n,this).startOf("day"),r=a.calendarFormat(this,i)||"sameElse",s=t&&(Y(t[r])?t[r].call(this,n):t[r]);return this.format(s||this.localeData().calendar(r,this,wt(n)))},_n.clone=function(){return new A(this)},_n.diff=function(e,t,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=Ct(e,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),t=j(t)){case"year":r=Qt(this,i)/12;break;case"month":r=Qt(this,i);break;case"quarter":r=Qt(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:U(r)},_n.endOf=function(e){var t,n;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:an,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},_n.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=C(this,e);return this.localeData().postformat(t)},_n.from=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||wt(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.fromNow=function(e){return this.from(wt(),e)},_n.to=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||wt(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.toNow=function(e){return this.to(wt(),e)},_n.get=function(e){return Y(this[e=j(e)])?this[e]():this},_n.invalidAt=function(){return f(this).overflow},_n.isAfter=function(e,t){var n=g(e)?e:wt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?C(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Y(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",C(n,"Z")):C(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Ht,_n.isUTC=Ht,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=z("dates accessor is deprecated. Use date instead.",ln),_n.months=z("months accessor is deprecated. Use month instead",De),_n.years=z("years accessor is deprecated. Use year instead",We),_n.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),_n.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=zt(t))._a?(e=t._isUTC?p(t._a):wt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var Ln=D.prototype;function yn(e,t,n,i){var a=ct(),r=p().set(i,t);return a[n](r,e)}function An(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return yn(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=yn(e,i,n,"month");return a}function gn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,r=ct(),s=e?r._week.dow:0,o=[];if(null!=n)return yn(t,(n+s)%7,i,"day");for(a=0;a<7;a++)o[a]=yn(t,(a+s)%7,i,"day");return o}Ln.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return Y(i)?i.call(t,n):i},Ln.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Ln.invalidDate=function(){return this._invalidDate},Ln.ordinal=function(e){return this._ordinal.replace("%d",e)},Ln.preparse=bn,Ln.postformat=bn,Ln.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return Y(a)?a(e,t,n,i):a.replace(/%d/i,e)},Ln.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return Y(n)?n(t):n.replace(/%s/i,t)},Ln.set=function(e){var t,n;for(n in e)o(e,n)&&(Y(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ln.eras=function(e,t){var n,i,r,s=this._eras||ct("en")._eras;for(n=0,i=s.length;n=0)return c[i]},Ln.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},Ln.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},Ln.erasNameRegex=function(e){return o(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},Ln.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},Ln.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ve).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Ln.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ve.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ln.monthsParse=function(e,t,n){var i,a,r;if(this._monthsParseExact)return Ye.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Ln.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Se.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Ln.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Se.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=we),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Ln.week=function(e){return Be(e,this._week.dow,this._week.doy).week},Ln.firstDayOfYear=function(){return this._week.doy},Ln.firstDayOfWeek=function(){return this._week.dow},Ln.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Xe(n,this._week.dow):e?n[e.day()]:n},Ln.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Ln.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Ln.weekdaysParse=function(e,t,n){var i,a,r;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Ln.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Ln.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ie),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ln.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ln.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Ln.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},st("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=z("moment.lang is deprecated. Use moment.locale instead.",st),a.langData=z("moment.langData is deprecated. Use moment.localeData instead.",ct);var Tn=Math.abs;function zn(e,t,n,i){var a=Rt(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function Yn(e){return function(){return this.as(e)}}var On=Yn("ms"),Dn=Yn("s"),Sn=Yn("m"),Nn=Yn("h"),Wn=Yn("d"),qn=Yn("w"),xn=Yn("M"),En=Yn("Q"),Cn=Yn("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hn=Bn("milliseconds"),Xn=Bn("seconds"),jn=Bn("minutes"),Rn=Bn("hours"),Pn=Bn("days"),Fn=Bn("months"),In=Bn("years"),Un=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Vn(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}var Jn=Math.abs;function Gn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,a,r,s,o,c=Jn(this._milliseconds)/1e3,d=Jn(this._days),u=Jn(this._months),l=this.asSeconds();return l?(e=U(c/60),t=U(e/60),c%=60,e%=60,n=U(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",a=l<0?"-":"",r=Gn(this._months)!==Gn(l)?"-":"",s=Gn(this._days)!==Gn(l)?"-":"",o=Gn(this._milliseconds)!==Gn(l)?"-":"",a+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(d?s+d+"D":"")+(t||e||c?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(c?o+i+"S":"")):"P0D"}var Qn=St.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},Qn.add=function(e,t){return zn(this,e,t,1)},Qn.subtract=function(e,t){return zn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=On,Qn.asSeconds=Dn,Qn.asMinutes=Sn,Qn.asHours=Nn,Qn.asDays=Wn,Qn.asWeeks=qn,Qn.asMonths=xn,Qn.asQuarters=En,Qn.asYears=Cn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},Qn._bubble=function(){var e,t,n,i,a,r=this._milliseconds,s=this._days,o=this._months,c=this._data;return r>=0&&s>=0&&o>=0||r<=0&&s<=0&&o<=0||(r+=864e5*vn(kn(o)+s),s=0,o=0),c.milliseconds=r%1e3,e=U(r/1e3),c.seconds=e%60,t=U(e/60),c.minutes=t%60,n=U(t/60),c.hours=n%24,s+=U(n/24),a=U(wn(s)),o+=a,s-=vn(kn(a)),i=U(o/12),o%=12,c.days=s,c.months=o,c.years=i,this},Qn.clone=function(){return Rt(this)},Qn.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Hn,Qn.seconds=Xn,Qn.minutes=jn,Qn.hours=Rn,Qn.days=Pn,Qn.weeks=function(){return U(this.days()/7)},Qn.months=Fn,Qn.years=In,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,a=!1,r=$n;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(r=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=this.localeData(),i=function(e,t,n,i){var a=Rt(e).abs(),r=Un(a.as("s")),s=Un(a.as("m")),o=Un(a.as("h")),c=Un(a.as("d")),d=Un(a.as("M")),u=Un(a.as("w")),l=Un(a.as("y")),M=r<=n.ss&&["s",r]||r0,M[4]=i,Vn.apply(null,M)}(this,!a,r,n),a&&(i=n.pastFuture(+this,i)),n.postformat(i)},Qn.toISOString=Kn,Qn.toString=Kn,Qn.toJSON=Kn,Qn.locale=Zt,Qn.localeData=tn,Qn.toIsoString=z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Qn.lang=en,E("X",0,0,"unix"),E("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),Le("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Le("x",(function(e,t,n){n._d=new Date($(e))})), +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=165)}([function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,z=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},x={};function q(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(x[e]=a),t&&(x[t[0]]=function(){return D(a.apply(this,arguments),t[1],t[2])}),n&&(x[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function C(e,t){return e.isValid()?(t=B(t,e.localeData()),E[t]=E[t]||function(e){var t,n,r,a=e.match(N);for(t=0,n=a.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var H={};function j(e,t){var n=e.toLowerCase();H[n]=H[n+"s"]=H[t]=e}function X(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)s(e,n)&&(t=X(n))&&(r[t]=e[n]);return r}var P={};function F(e,t){P[e]=t}function I(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function V(e,t){return function(n){return null!=n?(J(this,e,n),a.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&I(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ve(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,Q=/\d/,Z=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ae=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,ce=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Me(e,t,n){K[e]=O(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return s(K,e)?K[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var _e,be={};function ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=$(e)}),n=0;n68?1900:2e3)};var We=V("FullYear",!0);function Ee(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function xe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qe(e,t,n){var r=7+t-n;return-(7+xe(e,0,r).getUTCDay()-t)%7+r-1}function Ce(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+qe(e,r,a);return s<=0?o=Ne(i=e-1)+s:s>Ne(e)?(i=e+1,o=s-Ne(e)):(i=e,o=s),{year:i,dayOfYear:o}}function Be(e,t,n){var r,a,i=qe(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+He(a=e.year()-1,t,n):o>He(e.year(),t,n)?(r=o-He(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function He(e,t,n){var r=qe(e,t,n),a=qe(e+1,t,n);return(Ne(e)-r+a)/7}function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),F("week",5),F("isoWeek",5),Me("w",re),Me("ww",re,Z),Me("W",re),Me("WW",re,Z),Le(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=$(e)})),q("d",0,"do","day"),q("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),q("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),q("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),Me("d",re),Me("e",re),Me("E",re),Me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Me("dddd",(function(e,t){return t.weekdaysRegex(e)})),Le(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:m(n).invalidWeekday=e})),Le(["d","e","E"],(function(e,t,n,r){t[r]=$(e)}));var Xe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=pe,Ie=pe,Ue=pe;function $e(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=M([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=_e.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=_e.call(this._weekdaysParse,o))||-1!==(a=_e.call(this._shortWeekdaysParse,o))||-1!==(a=_e.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=_e.call(this._shortWeekdaysParse,o))||-1!==(a=_e.call(this._weekdaysParse,o))||-1!==(a=_e.call(this._minWeekdaysParse,o))?a:null:-1!==(a=_e.call(this._minWeekdaysParse,o))||-1!==(a=_e.call(this._weekdaysParse,o))||-1!==(a=_e.call(this._shortWeekdaysParse,o))?a:null}function Ve(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=M([2e3,1]).day(t),r=he(this.weekdaysMin(n,"")),a=he(this.weekdaysShort(n,"")),i=he(this.weekdays(n,"")),o.push(r),s.push(a),c.push(i),l.push(r),l.push(a),l.push(i);o.sort(e),s.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Je(e,t){q(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Ge),q("k",["kk",2],0,(function(){return this.hours()||24})),q("hmm",0,0,(function(){return""+Ge.apply(this)+D(this.minutes(),2)})),q("hmmss",0,0,(function(){return""+Ge.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),q("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),q("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Je("a",!0),Je("A",!1),j("hour","h"),F("hour",13),Me("a",Ke),Me("A",Ke),Me("H",re),Me("h",re),Me("k",re),Me("HH",re,Z),Me("hh",re,Z),Me("kk",re,Z),Me("hmm",ae),Me("hmmss",ie),Me("Hmm",ae),Me("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=$(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=$(e),m(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r)),m(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(a)),m(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(a))}));var Qe,Ze=V("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ae,monthsShort:Te,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Pe,weekdaysShort:Re,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(a,n)>=t-1)break;t--}i++}return Qe}(e)}function lt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ve(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,ht=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,r,a,i,o,s=e._i,c=ut.exec(s)||dt.exec(s);if(c){for(m(e).iso=!0,t=0,n=pt.length;t7)&&(c=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,l=Be(wt(),i,o),n=gt(t.gg,e._a[0],l.year),r=gt(t.w,l.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(c=!0)):a=i),r<1||r>He(n,i,o)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(s=Ce(n,r,a,i,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=gt(e._a[0],r[0]),(e._dayOfYear>Ne(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=xe(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?xe:Ee).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function At(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,i,o,s,c=""+e._i,l=c.length,u=0;for(r=B(e._f,e._locale).match(N)||[],t=0;t0&&m(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),u+=n.length),x[i]?(n?m(e).empty=!1:m(e).unusedTokens.push(i),ge(i,n,e)):e._strict&&!n&&m(e).unusedTokens.push(i);m(e).charsLeftOver=l-u,c.length>0&&m(e).unusedInput.push(c),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),vt(e),lt(e)}else Lt(e);else bt(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new g(lt(t)):(d(t)?e._d=t:i(n)?function(e){var t,n,r,a,i,o,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:_()}));function St(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return wt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e(i=He(e,r,a))&&(t=i),un.call(this,e,t,n,r,a))}function un(e,t,n,r,a){var i=Ce(e,t,n,r,a),o=xe(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),Me("N",on),Me("NN",on),Me("NNN",on),Me("NNNN",(function(e,t){return t.erasNameRegex(e)})),Me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?m(n).era=a:m(n).invalidEra=e})),Me("y",le),Me("yy",le),Me("yyy",le),Me("yyyy",le),Me("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),q(0,["gg",2],0,(function(){return this.weekYear()%100})),q(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),Me("G",ue),Me("g",ue),Me("GG",re,Z),Me("gg",re,Z),Me("GGGG",se,te),Me("gggg",se,te),Me("GGGGG",ce,ne),Me("ggggg",ce,ne),Le(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=$(e)})),Le(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),q("Q",0,"Qo","quarter"),j("quarter","Q"),F("quarter",7),Me("Q",Q),ye("Q",(function(e,t){t[1]=3*($(e)-1)})),q("D",["DD",2],"Do","date"),j("date","D"),F("date",9),Me("D",re),Me("DD",re,Z),Me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=$(e.match(re)[0])}));var dn=V("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),F("dayOfYear",4),Me("DDD",oe),Me("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=$(e)})),q("m",["mm",2],0,"minute"),j("minute","m"),F("minute",14),Me("m",re),Me("mm",re,Z),ye(["m","mm"],4);var fn=V("Minutes",!1);q("s",["ss",2],0,"second"),j("second","s"),F("second",15),Me("s",re),Me("ss",re,Z),ye(["s","ss"],5);var pn,Mn,mn=V("Seconds",!1);for(q("S",0,0,(function(){return~~(this.millisecond()/100)})),q(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),q(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),q(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),q(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),q(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),q(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),F("millisecond",16),Me("S",oe,Q),Me("SS",oe,Z),Me("SSS",oe,ee),pn="SSSS";pn.length<=9;pn+="S")Me(pn,le);function hn(e,t){t[6]=$(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,hn);Mn=V("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var _n=g.prototype;function bn(e){return e}_n.add=$t,_n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||wt(),r=Ct(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(O(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,wt(n)))},_n.clone=function(){return new g(this)},_n.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=Ct(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=X(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:U(i)},_n.endOf=function(e){var t,n;if(void 0===(e=X(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},_n.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=C(this,e);return this.localeData().postformat(t)},_n.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||wt(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.fromNow=function(e){return this.from(wt(),e)},_n.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||wt(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.toNow=function(e){return this.to(wt(),e)},_n.get=function(e){return O(this[e=X(e)])?this[e]():this},_n.invalidAt=function(){return m(this).overflow},_n.isAfter=function(e,t){var n=v(e)?e:wt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=X(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?C(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",C(n,"Z")):C(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Ht,_n.isUTC=Ht,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=T("dates accessor is deprecated. Use date instead.",dn),_n.months=T("months accessor is deprecated. Use month instead",Ye),_n.years=T("years accessor is deprecated. Use year instead",We),_n.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),_n.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return L(t,this),(t=Tt(t))._a?(e=t._isUTC?M(t._a):wt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=Y.prototype;function Ln(e,t,n,r){var a=ct(),i=M().set(r,t);return a[n](i,e)}function gn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ln(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Ln(e,r,n,"month");return a}function vn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,i=ct(),o=e?i._week.dow:0,s=[];if(null!=n)return Ln(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=Ln(t,(a+o)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=bn,yn.postformat=bn,yn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return O(a)?a(e,t,n,r):a.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)s(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,r,i,o=this._eras||ct("en")._eras;for(n=0,r=o.length;n=0)return c[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ze).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ze.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return Oe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=M([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||De.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||De.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=we),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Be(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?je(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=M([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ie),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=T("moment.lang is deprecated. Use moment.locale instead.",ot),a.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ct);var An=Math.abs;function Tn(e,t,n,r){var a=Rt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function zn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function On(e){return function(){return this.as(e)}}var Sn=On("ms"),Yn=On("s"),Dn=On("m"),Nn=On("h"),Wn=On("d"),En=On("w"),xn=On("M"),qn=On("Q"),Cn=On("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hn=Bn("milliseconds"),jn=Bn("seconds"),Xn=Bn("minutes"),Rn=Bn("hours"),Pn=Bn("days"),Fn=Bn("months"),In=Bn("years"),Un=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Vn(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var Gn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,c=Gn(this._milliseconds)/1e3,l=Gn(this._days),u=Gn(this._months),d=this.asSeconds();return d?(e=U(c/60),t=U(e/60),c%=60,e%=60,n=U(u/12),u%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=Jn(this._months)!==Jn(d)?"-":"",o=Jn(this._days)!==Jn(d)?"-":"",s=Jn(this._milliseconds)!==Jn(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?o+l+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var Qn=Dt.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=An(this._milliseconds),this._days=An(this._days),this._months=An(this._months),e.milliseconds=An(e.milliseconds),e.seconds=An(e.seconds),e.minutes=An(e.minutes),e.hours=An(e.hours),e.months=An(e.months),e.years=An(e.years),this},Qn.add=function(e,t){return Tn(this,e,t,1)},Qn.subtract=function(e,t){return Tn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=X(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=Sn,Qn.asSeconds=Yn,Qn.asMinutes=Dn,Qn.asHours=Nn,Qn.asDays=Wn,Qn.asWeeks=En,Qn.asMonths=xn,Qn.asQuarters=qn,Qn.asYears=Cn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},Qn._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,c=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*zn(kn(s)+o),o=0,s=0),c.milliseconds=i%1e3,e=U(i/1e3),c.seconds=e%60,t=U(e/60),c.minutes=t%60,n=U(t/60),c.hours=n%24,o+=U(n/24),a=U(wn(o)),s+=a,o-=zn(kn(a)),r=U(s/12),s%=12,c.days=o,c.months=s,c.years=r,this},Qn.clone=function(){return Rt(this)},Qn.get=function(e){return e=X(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Hn,Qn.seconds=jn,Qn.minutes=Xn,Qn.hours=Rn,Qn.days=Pn,Qn.weeks=function(){return U(this.days()/7)},Qn.months=Fn,Qn.years=In,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=$n;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var a=Rt(e).abs(),i=Un(a.as("s")),o=Un(a.as("m")),s=Un(a.as("h")),c=Un(a.as("d")),l=Un(a.as("M")),u=Un(a.as("w")),d=Un(a.as("y")),f=i<=n.ss&&["s",i]||i0,f[4]=r,Vn.apply(null,f)}(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Qn.toISOString=Kn,Qn.toString=Kn,Qn.toJSON=Kn,Qn.locale=Zt,Qn.localeData=tn,Qn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Qn.lang=en,q("X",0,0,"unix"),q("x",0,0,"valueOf"),Me("x",ue),Me("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date($(e))})), //! moment.js -a.version="2.29.1",t=wt,a.fn=_n,a.min=function(){var e=[].slice.call(arguments,0);return Ot("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return Ot("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=p,a.unix=function(e){return wt(1e3*e)},a.months=function(e,t){return An(e,t,"months")},a.isDate=l,a.locale=st,a.invalid=_,a.duration=Rt,a.isMoment=g,a.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},a.parseZone=function(){return wt.apply(null,arguments).parseZone()},a.localeData=ct,a.isDuration=Nt,a.monthsShort=function(e,t){return An(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},a.defineLocale=ot,a.updateLocale=function(e,t){if(null!=t){var n,i,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(O(tt[e]._config,t)):(null!=(i=rt(e))&&(a=i._config),t=O(a,t),null==i&&(t.abbr=e),(n=new D(t)).parentLocale=tt[e],tt[e]=n),st(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===st()&&st(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return v(tt)},a.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},a.normalizeUnits=j,a.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=_n,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(149)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return i})),n.d(t,"p",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return o})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return d})),n.d(t,"s",(function(){return u})),n.d(t,"i",(function(){return l})),n.d(t,"r",(function(){return M})),n.d(t,"k",(function(){return m})),n.d(t,"m",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"l",(function(){return h})),n.d(t,"g",(function(){return _})),n.d(t,"f",(function(){return b})),n.d(t,"h",(function(){return L})),n.d(t,"n",(function(){return y})),n.d(t,"b",(function(){return A}));var i="1.11.0",a="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},r=Array.prototype,s=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,c=r.push,d=r.slice,u=s.toString,l=s.hasOwnProperty,M="undefined"!=typeof ArrayBuffer,m=Array.isArray,p=Object.keys,f=Object.create,h=M&&ArrayBuffer.isView,_=isNaN,b=isFinite,L=!{toString:null}.propertyIsEnumerable("toString"),y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],A=Math.pow(2,53)-1}).call(this,n(4))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return sn})),n.d(t,"VERSION",(function(){return a.e})),n.d(t,"restArguments",(function(){return r})),n.d(t,"isObject",(function(){return s})),n.d(t,"isNull",(function(){return o})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return d})),n.d(t,"isElement",(function(){return u})),n.d(t,"isString",(function(){return M})),n.d(t,"isNumber",(function(){return m})),n.d(t,"isDate",(function(){return p})),n.d(t,"isRegExp",(function(){return f})),n.d(t,"isError",(function(){return h})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isMap",(function(){return b})),n.d(t,"isWeakMap",(function(){return L})),n.d(t,"isSet",(function(){return y})),n.d(t,"isWeakSet",(function(){return A})),n.d(t,"isArrayBuffer",(function(){return g})),n.d(t,"isDataView",(function(){return T})),n.d(t,"isArray",(function(){return z})),n.d(t,"isFunction",(function(){return k})),n.d(t,"isArguments",(function(){return D})),n.d(t,"isFinite",(function(){return S})),n.d(t,"isNaN",(function(){return N})),n.d(t,"isTypedArray",(function(){return H})),n.d(t,"isEmpty",(function(){return F})),n.d(t,"isMatch",(function(){return I})),n.d(t,"isEqual",(function(){return V})),n.d(t,"keys",(function(){return P})),n.d(t,"allKeys",(function(){return J})),n.d(t,"values",(function(){return G})),n.d(t,"pairs",(function(){return K})),n.d(t,"invert",(function(){return Q})),n.d(t,"functions",(function(){return Z})),n.d(t,"methods",(function(){return Z})),n.d(t,"extend",(function(){return te})),n.d(t,"extendOwn",(function(){return ne})),n.d(t,"assign",(function(){return ne})),n.d(t,"defaults",(function(){return ie})),n.d(t,"create",(function(){return re})),n.d(t,"clone",(function(){return se})),n.d(t,"tap",(function(){return oe})),n.d(t,"has",(function(){return ce})),n.d(t,"mapObject",(function(){return _e})),n.d(t,"identity",(function(){return de})),n.d(t,"constant",(function(){return W})),n.d(t,"noop",(function(){return be})),n.d(t,"property",(function(){return Me})),n.d(t,"propertyOf",(function(){return Le})),n.d(t,"matcher",(function(){return ue})),n.d(t,"matches",(function(){return ue})),n.d(t,"times",(function(){return ye})),n.d(t,"random",(function(){return Ae})),n.d(t,"now",(function(){return ge})),n.d(t,"escape",(function(){return ve})),n.d(t,"unescape",(function(){return we})),n.d(t,"templateSettings",(function(){return ke})),n.d(t,"template",(function(){return Ne})),n.d(t,"result",(function(){return We})),n.d(t,"uniqueId",(function(){return xe})),n.d(t,"chain",(function(){return Ee})),n.d(t,"iteratee",(function(){return fe})),n.d(t,"partial",(function(){return He})),n.d(t,"bind",(function(){return Xe})),n.d(t,"bindAll",(function(){return Re})),n.d(t,"memoize",(function(){return Pe})),n.d(t,"delay",(function(){return Fe})),n.d(t,"defer",(function(){return Ie})),n.d(t,"throttle",(function(){return Ue})),n.d(t,"debounce",(function(){return $e})),n.d(t,"wrap",(function(){return Ve})),n.d(t,"negate",(function(){return Je})),n.d(t,"compose",(function(){return Ge})),n.d(t,"after",(function(){return Ke})),n.d(t,"before",(function(){return Qe})),n.d(t,"once",(function(){return Ze})),n.d(t,"findKey",(function(){return et})),n.d(t,"findIndex",(function(){return nt})),n.d(t,"findLastIndex",(function(){return it})),n.d(t,"sortedIndex",(function(){return at})),n.d(t,"indexOf",(function(){return st})),n.d(t,"lastIndexOf",(function(){return ot})),n.d(t,"find",(function(){return ct})),n.d(t,"detect",(function(){return ct})),n.d(t,"findWhere",(function(){return dt})),n.d(t,"each",(function(){return ut})),n.d(t,"forEach",(function(){return ut})),n.d(t,"map",(function(){return lt})),n.d(t,"collect",(function(){return lt})),n.d(t,"reduce",(function(){return mt})),n.d(t,"foldl",(function(){return mt})),n.d(t,"inject",(function(){return mt})),n.d(t,"reduceRight",(function(){return pt})),n.d(t,"foldr",(function(){return pt})),n.d(t,"filter",(function(){return ft})),n.d(t,"select",(function(){return ft})),n.d(t,"reject",(function(){return ht})),n.d(t,"every",(function(){return _t})),n.d(t,"all",(function(){return _t})),n.d(t,"some",(function(){return bt})),n.d(t,"any",(function(){return bt})),n.d(t,"contains",(function(){return Lt})),n.d(t,"includes",(function(){return Lt})),n.d(t,"include",(function(){return Lt})),n.d(t,"invoke",(function(){return yt})),n.d(t,"pluck",(function(){return At})),n.d(t,"where",(function(){return gt})),n.d(t,"max",(function(){return Tt})),n.d(t,"min",(function(){return zt})),n.d(t,"shuffle",(function(){return wt})),n.d(t,"sample",(function(){return vt})),n.d(t,"sortBy",(function(){return kt})),n.d(t,"groupBy",(function(){return Ot})),n.d(t,"indexBy",(function(){return Dt})),n.d(t,"countBy",(function(){return St})),n.d(t,"partition",(function(){return Nt})),n.d(t,"toArray",(function(){return qt})),n.d(t,"size",(function(){return xt})),n.d(t,"pick",(function(){return Ct})),n.d(t,"omit",(function(){return Bt})),n.d(t,"first",(function(){return Xt})),n.d(t,"head",(function(){return Xt})),n.d(t,"take",(function(){return Xt})),n.d(t,"initial",(function(){return Ht})),n.d(t,"last",(function(){return Rt})),n.d(t,"rest",(function(){return jt})),n.d(t,"tail",(function(){return jt})),n.d(t,"drop",(function(){return jt})),n.d(t,"compact",(function(){return Pt})),n.d(t,"flatten",(function(){return Ft})),n.d(t,"without",(function(){return Ut})),n.d(t,"uniq",(function(){return $t})),n.d(t,"unique",(function(){return $t})),n.d(t,"union",(function(){return Vt})),n.d(t,"intersection",(function(){return Jt})),n.d(t,"difference",(function(){return It})),n.d(t,"unzip",(function(){return Gt})),n.d(t,"transpose",(function(){return Gt})),n.d(t,"zip",(function(){return Kt})),n.d(t,"object",(function(){return Qt})),n.d(t,"range",(function(){return Zt})),n.d(t,"chunk",(function(){return en})),n.d(t,"mixin",(function(){return nn}));var i={};n.r(i),n.d(i,"VERSION",(function(){return a.e})),n.d(i,"restArguments",(function(){return r})),n.d(i,"isObject",(function(){return s})),n.d(i,"isNull",(function(){return o})),n.d(i,"isUndefined",(function(){return c})),n.d(i,"isBoolean",(function(){return d})),n.d(i,"isElement",(function(){return u})),n.d(i,"isString",(function(){return M})),n.d(i,"isNumber",(function(){return m})),n.d(i,"isDate",(function(){return p})),n.d(i,"isRegExp",(function(){return f})),n.d(i,"isError",(function(){return h})),n.d(i,"isSymbol",(function(){return _})),n.d(i,"isMap",(function(){return b})),n.d(i,"isWeakMap",(function(){return L})),n.d(i,"isSet",(function(){return y})),n.d(i,"isWeakSet",(function(){return A})),n.d(i,"isArrayBuffer",(function(){return g})),n.d(i,"isDataView",(function(){return T})),n.d(i,"isArray",(function(){return z})),n.d(i,"isFunction",(function(){return k})),n.d(i,"isArguments",(function(){return D})),n.d(i,"isFinite",(function(){return S})),n.d(i,"isNaN",(function(){return N})),n.d(i,"isTypedArray",(function(){return H})),n.d(i,"isEmpty",(function(){return F})),n.d(i,"isMatch",(function(){return I})),n.d(i,"isEqual",(function(){return V})),n.d(i,"keys",(function(){return P})),n.d(i,"allKeys",(function(){return J})),n.d(i,"values",(function(){return G})),n.d(i,"pairs",(function(){return K})),n.d(i,"invert",(function(){return Q})),n.d(i,"functions",(function(){return Z})),n.d(i,"methods",(function(){return Z})),n.d(i,"extend",(function(){return te})),n.d(i,"extendOwn",(function(){return ne})),n.d(i,"assign",(function(){return ne})),n.d(i,"defaults",(function(){return ie})),n.d(i,"create",(function(){return re})),n.d(i,"clone",(function(){return se})),n.d(i,"tap",(function(){return oe})),n.d(i,"has",(function(){return ce})),n.d(i,"mapObject",(function(){return _e})),n.d(i,"identity",(function(){return de})),n.d(i,"constant",(function(){return W})),n.d(i,"noop",(function(){return be})),n.d(i,"property",(function(){return Me})),n.d(i,"propertyOf",(function(){return Le})),n.d(i,"matcher",(function(){return ue})),n.d(i,"matches",(function(){return ue})),n.d(i,"times",(function(){return ye})),n.d(i,"random",(function(){return Ae})),n.d(i,"now",(function(){return ge})),n.d(i,"escape",(function(){return ve})),n.d(i,"unescape",(function(){return we})),n.d(i,"templateSettings",(function(){return ke})),n.d(i,"template",(function(){return Ne})),n.d(i,"result",(function(){return We})),n.d(i,"uniqueId",(function(){return xe})),n.d(i,"chain",(function(){return Ee})),n.d(i,"iteratee",(function(){return fe})),n.d(i,"partial",(function(){return He})),n.d(i,"bind",(function(){return Xe})),n.d(i,"bindAll",(function(){return Re})),n.d(i,"memoize",(function(){return Pe})),n.d(i,"delay",(function(){return Fe})),n.d(i,"defer",(function(){return Ie})),n.d(i,"throttle",(function(){return Ue})),n.d(i,"debounce",(function(){return $e})),n.d(i,"wrap",(function(){return Ve})),n.d(i,"negate",(function(){return Je})),n.d(i,"compose",(function(){return Ge})),n.d(i,"after",(function(){return Ke})),n.d(i,"before",(function(){return Qe})),n.d(i,"once",(function(){return Ze})),n.d(i,"findKey",(function(){return et})),n.d(i,"findIndex",(function(){return nt})),n.d(i,"findLastIndex",(function(){return it})),n.d(i,"sortedIndex",(function(){return at})),n.d(i,"indexOf",(function(){return st})),n.d(i,"lastIndexOf",(function(){return ot})),n.d(i,"find",(function(){return ct})),n.d(i,"detect",(function(){return ct})),n.d(i,"findWhere",(function(){return dt})),n.d(i,"each",(function(){return ut})),n.d(i,"forEach",(function(){return ut})),n.d(i,"map",(function(){return lt})),n.d(i,"collect",(function(){return lt})),n.d(i,"reduce",(function(){return mt})),n.d(i,"foldl",(function(){return mt})),n.d(i,"inject",(function(){return mt})),n.d(i,"reduceRight",(function(){return pt})),n.d(i,"foldr",(function(){return pt})),n.d(i,"filter",(function(){return ft})),n.d(i,"select",(function(){return ft})),n.d(i,"reject",(function(){return ht})),n.d(i,"every",(function(){return _t})),n.d(i,"all",(function(){return _t})),n.d(i,"some",(function(){return bt})),n.d(i,"any",(function(){return bt})),n.d(i,"contains",(function(){return Lt})),n.d(i,"includes",(function(){return Lt})),n.d(i,"include",(function(){return Lt})),n.d(i,"invoke",(function(){return yt})),n.d(i,"pluck",(function(){return At})),n.d(i,"where",(function(){return gt})),n.d(i,"max",(function(){return Tt})),n.d(i,"min",(function(){return zt})),n.d(i,"shuffle",(function(){return wt})),n.d(i,"sample",(function(){return vt})),n.d(i,"sortBy",(function(){return kt})),n.d(i,"groupBy",(function(){return Ot})),n.d(i,"indexBy",(function(){return Dt})),n.d(i,"countBy",(function(){return St})),n.d(i,"partition",(function(){return Nt})),n.d(i,"toArray",(function(){return qt})),n.d(i,"size",(function(){return xt})),n.d(i,"pick",(function(){return Ct})),n.d(i,"omit",(function(){return Bt})),n.d(i,"first",(function(){return Xt})),n.d(i,"head",(function(){return Xt})),n.d(i,"take",(function(){return Xt})),n.d(i,"initial",(function(){return Ht})),n.d(i,"last",(function(){return Rt})),n.d(i,"rest",(function(){return jt})),n.d(i,"tail",(function(){return jt})),n.d(i,"drop",(function(){return jt})),n.d(i,"compact",(function(){return Pt})),n.d(i,"flatten",(function(){return Ft})),n.d(i,"without",(function(){return Ut})),n.d(i,"uniq",(function(){return $t})),n.d(i,"unique",(function(){return $t})),n.d(i,"union",(function(){return Vt})),n.d(i,"intersection",(function(){return Jt})),n.d(i,"difference",(function(){return It})),n.d(i,"unzip",(function(){return Gt})),n.d(i,"transpose",(function(){return Gt})),n.d(i,"zip",(function(){return Kt})),n.d(i,"object",(function(){return Qt})),n.d(i,"range",(function(){return Zt})),n.d(i,"chunk",(function(){return en})),n.d(i,"mixin",(function(){return nn})),n.d(i,"default",(function(){return an}));var a=n(1);function r(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),a=0;a=0&&n<=a.b}}function x(e){return function(t){return null==t?void 0:t[e]}}var E=x("byteLength"),C=q(E),B=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var H=a.r?function(e){return a.l?Object(a.l)(e)&&!T(e):C(e)&&B.test(a.s.call(e))}:W(!1),X=x("length"),j=q(X);function R(e,t){t=function(e){for(var t={},n=e.length,i=0;i":">",'"':""","'":"'","`":"`"},ve=Te(ze),we=Te(Q(ze)),ke=U.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ye=/(.)^/,Oe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},De=/\\|'|\r|\n|\u2028|\u2029/g;function Se(e){return"\\"+Oe[e]}function Ne(e,t,n){!t&&n&&(t=n),t=ie({},t,U.templateSettings);var i,a=RegExp([(t.escape||Ye).source,(t.interpolate||Ye).source,(t.evaluate||Ye).source].join("|")+"|$","g"),r=0,s="__p+='";e.replace(a,(function(t,n,i,a,o){return s+=e.slice(r,o).replace(De,Se),r=o+t.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?s+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(s+="';\n"+a+"\n__p+='"),t})),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{i=new Function(t.variable||"obj","_",s)}catch(e){throw e.source=s,e}var o=function(e){return i.call(this,e,U)},c=t.variable||"obj";return o.source="function("+c+"){\n"+s+"}",o}function We(e,t,n){z(t)||(t=[t]);var i=t.length;if(!i)return k(n)?n.call(e):n;for(var a=0;a1)je(o,t-1,n,i),a=i.length;else for(var c=0,d=o.length;ct?(i&&(clearTimeout(i),i=null),o=d,s=e.apply(a,r),i||(a=r=null)):i||!1===n.trailing||(i=setTimeout(c,u)),s};return d.cancel=function(){clearTimeout(i),o=0,i=a=r=null},d}function $e(e,t,n){var i,a,s=function(t,n){i=null,n&&(a=e.apply(t,n))},o=r((function(r){if(i&&clearTimeout(i),n){var o=!i;i=setTimeout(s,t),o&&(a=e.apply(this,r))}else i=Fe(s,t,this,r);return a}));return o.cancel=function(){clearTimeout(i),i=null},o}function Ve(e,t){return He(t,e)}function Je(e){return function(){return!e.apply(this,arguments)}}function Ge(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}}function Ke(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Qe(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Ze=He(Qe,2);function et(e,t,n){t=he(t,n);for(var i,a=P(e),r=0,s=a.length;r0?0:a-1;r>=0&&r0?o=s>=0?s:Math.max(s+c,o):c=s>=0?Math.min(s+1,c):s+c+1;else if(n&&s&&c)return i[s=n(i,r)]===r?s:-1;if(r!=r)return(s=t(a.q.call(i,o,c),N))>=0?s+o:-1;for(s=e>0?o:c-1;s>=0&&s0?0:s-1;for(a||(i=t[r?r[o]:o],o+=e);o>=0&&o=3;return t(e,me(n,a,4),i,r)}}var mt=Mt(1),pt=Mt(-1);function ft(e,t,n){var i=[];return t=he(t,n),ut(e,(function(e,n,a){t(e,n,a)&&i.push(e)})),i}function ht(e,t,n){return ft(e,Je(he(t)),n)}function _t(e,t,n){t=he(t,n);for(var i=!j(e)&&P(e),a=(i||e).length,r=0;r=0}var yt=r((function(e,t,n){var i,a;return k(t)?a=t:z(t)&&(i=t.slice(0,-1),t=t[t.length-1]),lt(e,(function(e){var r=a;if(!r){if(i&&i.length&&(e=le(e,i)),null==e)return;r=e[t]}return null==r?r:r.apply(e,n)}))}));function At(e,t){return lt(e,Me(t))}function gt(e,t){return ft(e,ue(t))}function Tt(e,t,n){var i,a,r=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,c=(e=j(e)?e:G(e)).length;or&&(r=i);else t=he(t,n),ut(e,(function(e,n,i){((a=t(e,n,i))>s||a===-1/0&&r===-1/0)&&(r=e,s=a)}));return r}function zt(e,t,n){var i,a,r=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,c=(e=j(e)?e:G(e)).length;oi||void 0===n)return 1;if(n1&&(i=me(i,t[1])),t=J(e)):(i=Et,t=je(t,!1,!1),e=Object(e));for(var a=0,r=t.length;a1&&(n=t[1])):(t=lt(je(t,!1,!1),String),i=function(e,n){return!Lt(t,n)}),Ct(e,i,n)}));function Ht(e,t,n){return a.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Xt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Ht(e,e.length-t)}function jt(e,t,n){return a.q.call(e,null==t||n?1:t)}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:jt(e,Math.max(0,e.length-t))}function Pt(e){return ft(e,Boolean)}function Ft(e,t){return je(e,t,!1)}var It=r((function(e,t){return t=je(t,!0,!0),ft(e,(function(e){return!Lt(t,e)}))})),Ut=r((function(e,t){return It(e,t)}));function $t(e,t,n,i){d(t)||(i=n,n=t,t=!1),null!=n&&(n=he(n,i));for(var a=[],r=[],s=0,o=X(e);s1?i.rejectWith(this,[gettext("Multiple teams returned for course")]):0===e.count?i.resolveWith(this,[null]):i.resolveWith(this,[e.results[0]])})).fail((function(){i.rejectWith(this,[gettext("Could not load teams information.")])}))})).promise()}},{key:"getUsername",value:function(){var e=this.url("get_student_username");return $.Deferred((function(t){$.ajax({type:"POST",url:e,data:JSON.stringify({}),contentType:a}).done((function(e){null===e.username?t.rejectWith(this,[gettext("User lookup failed")]):t.resolveWith(this,[e.username])})).fail((function(){t.rejectWith(this,[gettext("Error when looking up username")])}))}))}}])&&i(t.prototype,n),r&&i(t,r),e}();t.a=r},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(i){var a,r,s;s="object"==typeof self&&self.self==self&&self||"object"==typeof i&&i.global==i&&i,a=[n(2),n(6),t],void 0===(r=function(e,t,n){s.Backbone=function(e,t,n,i){var a=e.Backbone,r=Array.prototype.slice;t.VERSION="1.2.3",t.$=i,t.noConflict=function(){return e.Backbone=a,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s=function(e,t,i){n.each(t,(function(t,a){n[a]&&(e.prototype[a]=function(e,t,i){switch(e){case 1:return function(){return n[t](this[i])};case 2:return function(e){return n[t](this[i],e)};case 3:return function(e,a){return n[t](this[i],o(e,this),a)};case 4:return function(e,a,r){return n[t](this[i],o(e,this),a,r)};default:return function(){var e=r.call(arguments);return e.unshift(this[i]),n[t].apply(n,e)}}}(t,a,i))}))},o=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?c(e):n.isString(e)?function(t){return t.get(e)}:e},c=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}},d=t.Events={},u=/\s+/,l=function(e,t,i,a,r){var s,o=0;if(i&&"object"==typeof i){void 0!==a&&"context"in r&&void 0===r.context&&(r.context=a);for(s=n.keys(i);o7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(q,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,a=i.insertBefore(this.iframe,i.firstChild).contentWindow;a.document.open(),a.document.close(),a.location.hash="#"+this.fragment}var r=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?r("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?r("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),N.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0})))},navigate:function(e,t){if(!N.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+e;if(e=this.decodeFragment(e.replace(x,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var a=this.iframe.contentWindow;t.replace||(a.document.open(),a.document.close()),this._updateHash(a.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else e.hash="#"+t}}),t.history=new N,b.extend=L.extend=k.extend=T.extend=N.extend=function(e,t){var i,a=this;i=e&&n.has(e,"constructor")?e.constructor:function(){return a.apply(this,arguments)},n.extend(i,a,t);var r=function(){this.constructor=i};return r.prototype=a.prototype,i.prototype=new r,e&&n.extend(i.prototype,e),i.__super__=a.prototype,i};var E=function(){throw new Error('A "url" property or function must be specified')},C=function(e,t){var n=t.error;t.error=function(i){n&&n.call(t.context,e,i,t),e.trigger("error",e,i,t)}};return t}(s,n,e,t)}.apply(t,a))||(e.exports=r)}).call(this,n(4))},function(e,t,n){var i,a,r; +a.version="2.29.1",t=wt,a.fn=_n,a.min=function(){var e=[].slice.call(arguments,0);return St("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return St("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=M,a.unix=function(e){return wt(1e3*e)},a.months=function(e,t){return gn(e,t,"months")},a.isDate=d,a.locale=ot,a.invalid=_,a.duration=Rt,a.isMoment=v,a.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},a.parseZone=function(){return wt.apply(null,arguments).parseZone()},a.localeData=ct,a.isDuration=Nt,a.monthsShort=function(e,t){return gn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},a.defineLocale=st,a.updateLocale=function(e,t){if(null!=t){var n,r,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(S(tt[e]._config,t)):(null!=(r=it(e))&&(a=r._config),t=S(a,t),null==r&&(t.abbr=e),(n=new Y(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return z(tt)},a.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},a.normalizeUnits=X,a.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=_n,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(152)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return l})),n.d(t,"s",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"r",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return M})),n.d(t,"j",(function(){return m})),n.d(t,"l",(function(){return h})),n.d(t,"g",(function(){return _})),n.d(t,"f",(function(){return b})),n.d(t,"h",(function(){return y})),n.d(t,"n",(function(){return L})),n.d(t,"b",(function(){return g}));var r="1.11.0",a="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},i=Array.prototype,o=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=i.push,l=i.slice,u=o.toString,d=o.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,p=Array.isArray,M=Object.keys,m=Object.create,h=f&&ArrayBuffer.isView,_=isNaN,b=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],g=Math.pow(2,53)-1}).call(this,n(5))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return on})),n.d(t,"VERSION",(function(){return a.e})),n.d(t,"restArguments",(function(){return i})),n.d(t,"isObject",(function(){return o})),n.d(t,"isNull",(function(){return s})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return l})),n.d(t,"isElement",(function(){return u})),n.d(t,"isString",(function(){return f})),n.d(t,"isNumber",(function(){return p})),n.d(t,"isDate",(function(){return M})),n.d(t,"isRegExp",(function(){return m})),n.d(t,"isError",(function(){return h})),n.d(t,"isSymbol",(function(){return _})),n.d(t,"isMap",(function(){return b})),n.d(t,"isWeakMap",(function(){return y})),n.d(t,"isSet",(function(){return L})),n.d(t,"isWeakSet",(function(){return g})),n.d(t,"isArrayBuffer",(function(){return v})),n.d(t,"isDataView",(function(){return A})),n.d(t,"isArray",(function(){return T})),n.d(t,"isFunction",(function(){return k})),n.d(t,"isArguments",(function(){return Y})),n.d(t,"isFinite",(function(){return D})),n.d(t,"isNaN",(function(){return N})),n.d(t,"isTypedArray",(function(){return H})),n.d(t,"isEmpty",(function(){return F})),n.d(t,"isMatch",(function(){return I})),n.d(t,"isEqual",(function(){return V})),n.d(t,"keys",(function(){return P})),n.d(t,"allKeys",(function(){return G})),n.d(t,"values",(function(){return J})),n.d(t,"pairs",(function(){return K})),n.d(t,"invert",(function(){return Q})),n.d(t,"functions",(function(){return Z})),n.d(t,"methods",(function(){return Z})),n.d(t,"extend",(function(){return te})),n.d(t,"extendOwn",(function(){return ne})),n.d(t,"assign",(function(){return ne})),n.d(t,"defaults",(function(){return re})),n.d(t,"create",(function(){return ie})),n.d(t,"clone",(function(){return oe})),n.d(t,"tap",(function(){return se})),n.d(t,"has",(function(){return ce})),n.d(t,"mapObject",(function(){return _e})),n.d(t,"identity",(function(){return le})),n.d(t,"constant",(function(){return W})),n.d(t,"noop",(function(){return be})),n.d(t,"property",(function(){return fe})),n.d(t,"propertyOf",(function(){return ye})),n.d(t,"matcher",(function(){return ue})),n.d(t,"matches",(function(){return ue})),n.d(t,"times",(function(){return Le})),n.d(t,"random",(function(){return ge})),n.d(t,"now",(function(){return ve})),n.d(t,"escape",(function(){return ze})),n.d(t,"unescape",(function(){return we})),n.d(t,"templateSettings",(function(){return ke})),n.d(t,"template",(function(){return Ne})),n.d(t,"result",(function(){return We})),n.d(t,"uniqueId",(function(){return xe})),n.d(t,"chain",(function(){return qe})),n.d(t,"iteratee",(function(){return me})),n.d(t,"partial",(function(){return He})),n.d(t,"bind",(function(){return je})),n.d(t,"bindAll",(function(){return Re})),n.d(t,"memoize",(function(){return Pe})),n.d(t,"delay",(function(){return Fe})),n.d(t,"defer",(function(){return Ie})),n.d(t,"throttle",(function(){return Ue})),n.d(t,"debounce",(function(){return $e})),n.d(t,"wrap",(function(){return Ve})),n.d(t,"negate",(function(){return Ge})),n.d(t,"compose",(function(){return Je})),n.d(t,"after",(function(){return Ke})),n.d(t,"before",(function(){return Qe})),n.d(t,"once",(function(){return Ze})),n.d(t,"findKey",(function(){return et})),n.d(t,"findIndex",(function(){return nt})),n.d(t,"findLastIndex",(function(){return rt})),n.d(t,"sortedIndex",(function(){return at})),n.d(t,"indexOf",(function(){return ot})),n.d(t,"lastIndexOf",(function(){return st})),n.d(t,"find",(function(){return ct})),n.d(t,"detect",(function(){return ct})),n.d(t,"findWhere",(function(){return lt})),n.d(t,"each",(function(){return ut})),n.d(t,"forEach",(function(){return ut})),n.d(t,"map",(function(){return dt})),n.d(t,"collect",(function(){return dt})),n.d(t,"reduce",(function(){return pt})),n.d(t,"foldl",(function(){return pt})),n.d(t,"inject",(function(){return pt})),n.d(t,"reduceRight",(function(){return Mt})),n.d(t,"foldr",(function(){return Mt})),n.d(t,"filter",(function(){return mt})),n.d(t,"select",(function(){return mt})),n.d(t,"reject",(function(){return ht})),n.d(t,"every",(function(){return _t})),n.d(t,"all",(function(){return _t})),n.d(t,"some",(function(){return bt})),n.d(t,"any",(function(){return bt})),n.d(t,"contains",(function(){return yt})),n.d(t,"includes",(function(){return yt})),n.d(t,"include",(function(){return yt})),n.d(t,"invoke",(function(){return Lt})),n.d(t,"pluck",(function(){return gt})),n.d(t,"where",(function(){return vt})),n.d(t,"max",(function(){return At})),n.d(t,"min",(function(){return Tt})),n.d(t,"shuffle",(function(){return wt})),n.d(t,"sample",(function(){return zt})),n.d(t,"sortBy",(function(){return kt})),n.d(t,"groupBy",(function(){return St})),n.d(t,"indexBy",(function(){return Yt})),n.d(t,"countBy",(function(){return Dt})),n.d(t,"partition",(function(){return Nt})),n.d(t,"toArray",(function(){return Et})),n.d(t,"size",(function(){return xt})),n.d(t,"pick",(function(){return Ct})),n.d(t,"omit",(function(){return Bt})),n.d(t,"first",(function(){return jt})),n.d(t,"head",(function(){return jt})),n.d(t,"take",(function(){return jt})),n.d(t,"initial",(function(){return Ht})),n.d(t,"last",(function(){return Rt})),n.d(t,"rest",(function(){return Xt})),n.d(t,"tail",(function(){return Xt})),n.d(t,"drop",(function(){return Xt})),n.d(t,"compact",(function(){return Pt})),n.d(t,"flatten",(function(){return Ft})),n.d(t,"without",(function(){return Ut})),n.d(t,"uniq",(function(){return $t})),n.d(t,"unique",(function(){return $t})),n.d(t,"union",(function(){return Vt})),n.d(t,"intersection",(function(){return Gt})),n.d(t,"difference",(function(){return It})),n.d(t,"unzip",(function(){return Jt})),n.d(t,"transpose",(function(){return Jt})),n.d(t,"zip",(function(){return Kt})),n.d(t,"object",(function(){return Qt})),n.d(t,"range",(function(){return Zt})),n.d(t,"chunk",(function(){return en})),n.d(t,"mixin",(function(){return nn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return a.e})),n.d(r,"restArguments",(function(){return i})),n.d(r,"isObject",(function(){return o})),n.d(r,"isNull",(function(){return s})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return l})),n.d(r,"isElement",(function(){return u})),n.d(r,"isString",(function(){return f})),n.d(r,"isNumber",(function(){return p})),n.d(r,"isDate",(function(){return M})),n.d(r,"isRegExp",(function(){return m})),n.d(r,"isError",(function(){return h})),n.d(r,"isSymbol",(function(){return _})),n.d(r,"isMap",(function(){return b})),n.d(r,"isWeakMap",(function(){return y})),n.d(r,"isSet",(function(){return L})),n.d(r,"isWeakSet",(function(){return g})),n.d(r,"isArrayBuffer",(function(){return v})),n.d(r,"isDataView",(function(){return A})),n.d(r,"isArray",(function(){return T})),n.d(r,"isFunction",(function(){return k})),n.d(r,"isArguments",(function(){return Y})),n.d(r,"isFinite",(function(){return D})),n.d(r,"isNaN",(function(){return N})),n.d(r,"isTypedArray",(function(){return H})),n.d(r,"isEmpty",(function(){return F})),n.d(r,"isMatch",(function(){return I})),n.d(r,"isEqual",(function(){return V})),n.d(r,"keys",(function(){return P})),n.d(r,"allKeys",(function(){return G})),n.d(r,"values",(function(){return J})),n.d(r,"pairs",(function(){return K})),n.d(r,"invert",(function(){return Q})),n.d(r,"functions",(function(){return Z})),n.d(r,"methods",(function(){return Z})),n.d(r,"extend",(function(){return te})),n.d(r,"extendOwn",(function(){return ne})),n.d(r,"assign",(function(){return ne})),n.d(r,"defaults",(function(){return re})),n.d(r,"create",(function(){return ie})),n.d(r,"clone",(function(){return oe})),n.d(r,"tap",(function(){return se})),n.d(r,"has",(function(){return ce})),n.d(r,"mapObject",(function(){return _e})),n.d(r,"identity",(function(){return le})),n.d(r,"constant",(function(){return W})),n.d(r,"noop",(function(){return be})),n.d(r,"property",(function(){return fe})),n.d(r,"propertyOf",(function(){return ye})),n.d(r,"matcher",(function(){return ue})),n.d(r,"matches",(function(){return ue})),n.d(r,"times",(function(){return Le})),n.d(r,"random",(function(){return ge})),n.d(r,"now",(function(){return ve})),n.d(r,"escape",(function(){return ze})),n.d(r,"unescape",(function(){return we})),n.d(r,"templateSettings",(function(){return ke})),n.d(r,"template",(function(){return Ne})),n.d(r,"result",(function(){return We})),n.d(r,"uniqueId",(function(){return xe})),n.d(r,"chain",(function(){return qe})),n.d(r,"iteratee",(function(){return me})),n.d(r,"partial",(function(){return He})),n.d(r,"bind",(function(){return je})),n.d(r,"bindAll",(function(){return Re})),n.d(r,"memoize",(function(){return Pe})),n.d(r,"delay",(function(){return Fe})),n.d(r,"defer",(function(){return Ie})),n.d(r,"throttle",(function(){return Ue})),n.d(r,"debounce",(function(){return $e})),n.d(r,"wrap",(function(){return Ve})),n.d(r,"negate",(function(){return Ge})),n.d(r,"compose",(function(){return Je})),n.d(r,"after",(function(){return Ke})),n.d(r,"before",(function(){return Qe})),n.d(r,"once",(function(){return Ze})),n.d(r,"findKey",(function(){return et})),n.d(r,"findIndex",(function(){return nt})),n.d(r,"findLastIndex",(function(){return rt})),n.d(r,"sortedIndex",(function(){return at})),n.d(r,"indexOf",(function(){return ot})),n.d(r,"lastIndexOf",(function(){return st})),n.d(r,"find",(function(){return ct})),n.d(r,"detect",(function(){return ct})),n.d(r,"findWhere",(function(){return lt})),n.d(r,"each",(function(){return ut})),n.d(r,"forEach",(function(){return ut})),n.d(r,"map",(function(){return dt})),n.d(r,"collect",(function(){return dt})),n.d(r,"reduce",(function(){return pt})),n.d(r,"foldl",(function(){return pt})),n.d(r,"inject",(function(){return pt})),n.d(r,"reduceRight",(function(){return Mt})),n.d(r,"foldr",(function(){return Mt})),n.d(r,"filter",(function(){return mt})),n.d(r,"select",(function(){return mt})),n.d(r,"reject",(function(){return ht})),n.d(r,"every",(function(){return _t})),n.d(r,"all",(function(){return _t})),n.d(r,"some",(function(){return bt})),n.d(r,"any",(function(){return bt})),n.d(r,"contains",(function(){return yt})),n.d(r,"includes",(function(){return yt})),n.d(r,"include",(function(){return yt})),n.d(r,"invoke",(function(){return Lt})),n.d(r,"pluck",(function(){return gt})),n.d(r,"where",(function(){return vt})),n.d(r,"max",(function(){return At})),n.d(r,"min",(function(){return Tt})),n.d(r,"shuffle",(function(){return wt})),n.d(r,"sample",(function(){return zt})),n.d(r,"sortBy",(function(){return kt})),n.d(r,"groupBy",(function(){return St})),n.d(r,"indexBy",(function(){return Yt})),n.d(r,"countBy",(function(){return Dt})),n.d(r,"partition",(function(){return Nt})),n.d(r,"toArray",(function(){return Et})),n.d(r,"size",(function(){return xt})),n.d(r,"pick",(function(){return Ct})),n.d(r,"omit",(function(){return Bt})),n.d(r,"first",(function(){return jt})),n.d(r,"head",(function(){return jt})),n.d(r,"take",(function(){return jt})),n.d(r,"initial",(function(){return Ht})),n.d(r,"last",(function(){return Rt})),n.d(r,"rest",(function(){return Xt})),n.d(r,"tail",(function(){return Xt})),n.d(r,"drop",(function(){return Xt})),n.d(r,"compact",(function(){return Pt})),n.d(r,"flatten",(function(){return Ft})),n.d(r,"without",(function(){return Ut})),n.d(r,"uniq",(function(){return $t})),n.d(r,"unique",(function(){return $t})),n.d(r,"union",(function(){return Vt})),n.d(r,"intersection",(function(){return Gt})),n.d(r,"difference",(function(){return It})),n.d(r,"unzip",(function(){return Jt})),n.d(r,"transpose",(function(){return Jt})),n.d(r,"zip",(function(){return Kt})),n.d(r,"object",(function(){return Qt})),n.d(r,"range",(function(){return Zt})),n.d(r,"chunk",(function(){return en})),n.d(r,"mixin",(function(){return nn})),n.d(r,"default",(function(){return rn}));var a=n(1);function i(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),a=0;a=0&&n<=a.b}}function x(e){return function(t){return null==t?void 0:t[e]}}var q=x("byteLength"),C=E(q),B=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var H=a.r?function(e){return a.l?Object(a.l)(e)&&!A(e):C(e)&&B.test(a.s.call(e))}:W(!1),j=x("length"),X=E(j);function R(e,t){t=function(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},ze=Ae(Te),we=Ae(Q(Te)),ke=U.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Oe=/(.)^/,Se={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ye=/\\|'|\r|\n|\u2028|\u2029/g;function De(e){return"\\"+Se[e]}function Ne(e,t,n){!t&&n&&(t=n),t=re({},t,U.templateSettings);var r,a=RegExp([(t.escape||Oe).source,(t.interpolate||Oe).source,(t.evaluate||Oe).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(a,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(Ye,De),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{r=new Function(t.variable||"obj","_",o)}catch(e){throw e.source=o,e}var s=function(e){return r.call(this,e,U)},c=t.variable||"obj";return s.source="function("+c+"){\n"+o+"}",s}function We(e,t,n){T(t)||(t=[t]);var r=t.length;if(!r)return k(n)?n.call(e):n;for(var a=0;a1)Xe(s,t-1,n,r),a=r.length;else for(var c=0,l=s.length;ct?(r&&(clearTimeout(r),r=null),s=l,o=e.apply(a,i),r||(a=i=null)):r||!1===n.trailing||(r=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(r),s=0,r=a=i=null},l}function $e(e,t,n){var r,a,o=function(t,n){r=null,n&&(a=e.apply(t,n))},s=i((function(i){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(a=e.apply(this,i))}else r=Fe(o,t,this,i);return a}));return s.cancel=function(){clearTimeout(r),r=null},s}function Ve(e,t){return He(t,e)}function Ge(e){return function(){return!e.apply(this,arguments)}}function Je(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Ke(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Qe(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Ze=He(Qe,2);function et(e,t,n){t=he(t,n);for(var r,a=P(e),i=0,o=a.length;i0?0:a-1;i>=0&&i0?s=o>=0?o:Math.max(o+c,s):c=o>=0?Math.min(o+1,c):o+c+1;else if(n&&o&&c)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(a.q.call(r,s,c),N))>=0?o+s:-1;for(o=e>0?s:c-1;o>=0&&o0?0:o-1;for(a||(r=t[i?i[s]:s],s+=e);s>=0&&s=3;return t(e,pe(n,a,4),r,i)}}var pt=ft(1),Mt=ft(-1);function mt(e,t,n){var r=[];return t=he(t,n),ut(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function ht(e,t,n){return mt(e,Ge(he(t)),n)}function _t(e,t,n){t=he(t,n);for(var r=!X(e)&&P(e),a=(r||e).length,i=0;i=0}var Lt=i((function(e,t,n){var r,a;return k(t)?a=t:T(t)&&(r=t.slice(0,-1),t=t[t.length-1]),dt(e,(function(e){var i=a;if(!i){if(r&&r.length&&(e=de(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function gt(e,t){return dt(e,fe(t))}function vt(e,t){return mt(e,ue(t))}function At(e,t,n){var r,a,i=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=X(e)?e:J(e)).length;si&&(i=r);else t=he(t,n),ut(e,(function(e,n,r){((a=t(e,n,r))>o||a===-1/0&&i===-1/0)&&(i=e,o=a)}));return i}function Tt(e,t,n){var r,a,i=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=X(e)?e:J(e)).length;sr||void 0===n)return 1;if(n1&&(r=pe(r,t[1])),t=G(e)):(r=qt,t=Xe(t,!1,!1),e=Object(e));for(var a=0,i=t.length;a1&&(n=t[1])):(t=dt(Xe(t,!1,!1),String),r=function(e,n){return!yt(t,n)}),Ct(e,r,n)}));function Ht(e,t,n){return a.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function jt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Ht(e,e.length-t)}function Xt(e,t,n){return a.q.call(e,null==t||n?1:t)}function Rt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Xt(e,Math.max(0,e.length-t))}function Pt(e){return mt(e,Boolean)}function Ft(e,t){return Xe(e,t,!1)}var It=i((function(e,t){return t=Xe(t,!0,!0),mt(e,(function(e){return!yt(t,e)}))})),Ut=i((function(e,t){return It(e,t)}));function $t(e,t,n,r){l(t)||(r=n,n=t,t=!1),null!=n&&(n=he(n,r));for(var a=[],i=[],o=0,s=j(e);o1?r.rejectWith(this,[gettext("Multiple teams returned for course")]):0===e.count?r.resolveWith(this,[null]):r.resolveWith(this,[e.results[0]])})).fail((function(){r.rejectWith(this,[gettext("Could not load teams information.")])}))})).promise()}},{key:"getUsername",value:function(){var e=this.url("get_student_username");return $.Deferred((function(t){$.ajax({type:"POST",url:e,data:JSON.stringify({}),contentType:a}).done((function(e){null===e.username?t.rejectWith(this,[gettext("User lookup failed")]):t.resolveWith(this,[e.username])})).fail((function(){t.rejectWith(this,[gettext("Error when looking up username")])}))}))}}])&&r(t.prototype,n),i&&r(t,i),e}();t.a=i},function(e,t,n){"use strict";e.exports=n(157)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(r){var a,i,o;o="object"==typeof self&&self.self==self&&self||"object"==typeof r&&r.global==r&&r,a=[n(2),n(7),t],void 0===(i=function(e,t,n){o.Backbone=function(e,t,n,r){var a=e.Backbone,i=Array.prototype.slice;t.VERSION="1.2.3",t.$=r,t.noConflict=function(){return e.Backbone=a,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=function(e,t,r){n.each(t,(function(t,a){n[a]&&(e.prototype[a]=function(e,t,r){switch(e){case 1:return function(){return n[t](this[r])};case 2:return function(e){return n[t](this[r],e)};case 3:return function(e,a){return n[t](this[r],s(e,this),a)};case 4:return function(e,a,i){return n[t](this[r],s(e,this),a,i)};default:return function(){var e=i.call(arguments);return e.unshift(this[r]),n[t].apply(n,e)}}}(t,a,r))}))},s=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?c(e):n.isString(e)?function(t){return t.get(e)}:e},c=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}},l=t.Events={},u=/\s+/,d=function(e,t,r,a,i){var o,s=0;if(r&&"object"==typeof r){void 0!==a&&"context"in i&&void 0===i.context&&(i.context=a);for(o=n.keys(r);s7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(E,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,a=r.insertBefore(this.iframe,r.firstChild).contentWindow;a.document.open(),a.document.close(),a.location.hash="#"+this.fragment}var i=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?i("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),N.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0})))},navigate:function(e,t){if(!N.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+e;if(e=this.decodeFragment(e.replace(x,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var a=this.iframe.contentWindow;t.replace||(a.document.open(),a.document.close()),this._updateHash(a.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new N,b.extend=y.extend=k.extend=A.extend=N.extend=function(e,t){var r,a=this;r=e&&n.has(e,"constructor")?e.constructor:function(){return a.apply(this,arguments)},n.extend(r,a,t);var i=function(){this.constructor=r};return i.prototype=a.prototype,r.prototype=new i,e&&n.extend(r.prototype,e),r.__super__=a.prototype,r};var q=function(){throw new Error('A "url" property or function must be specified')},C=function(e,t){var n=t.error;t.error=function(r){n&&n.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t}(o,n,e,t)}.apply(t,a))||(e.exports=i)}).call(this,n(5))},function(e,t,n){var r,a,i; /*! * jQuery JavaScript Library v2.2.4 * http://jquery.com/ @@ -13,7 +13,7 @@ a.version="2.29.1",t=wt,a.fn=_n,a.min=function(){var e=[].slice.call(arguments,0 * http://jquery.org/license * * Date: 2016-05-20T17:23Z - */a="undefined"!=typeof window?window:this,r=function(n,a){var r=[],s=n.document,o=r.slice,c=r.concat,d=r.push,u=r.indexOf,l={},M=l.toString,m=l.hasOwnProperty,p={},f=function(e,t){return new f.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,_=/^-ms-/,b=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()};function y(e){var t=!!e&&"length"in e&&e.length,n=f.type(e);return"function"!==n&&!f.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}f.fn=f.prototype={jquery:"2.2.4",constructor:f,selector:"",length:0,toArray:function(){return o.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:o.call(this)},pushStack:function(e){var t=f.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return f.each(this,e)},map:function(e){return this.pushStack(f.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},isPlainObject:function(e){var t;if("object"!==f.type(e)||e.nodeType||f.isWindow(e))return!1;if(e.constructor&&!m.call(e,"constructor")&&!m.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||m.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[M.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=f.trim(e))&&(1===e.indexOf("use strict")?((t=s.createElement("script")).text=e,s.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(_,"ms-").replace(b,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(y(e))for(n=e.length;i0&&t-1 in e)}m.fn=m.prototype={jquery:"2.2.4",constructor:m,selector:"",length:0,toArray:function(){return s.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:s.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},isPlainObject:function(e){var t;if("object"!==m.type(e)||e.nodeType||m.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=m.trim(e))&&(1===e.indexOf("use strict")?((t=o.createElement("script")).text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(_,"ms-").replace(b,y)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(L(e))for(n=e.length;r+~]|"+E+")"+E+"*"),F=new RegExp("="+E+"*([^\\]'\"]*?)"+E+"*\\]","g"),I=new RegExp(H),U=new RegExp("^"+C+"$"),$={ID:new RegExp("^#("+C+")"),CLASS:new RegExp("^\\.("+C+")"),TAG:new RegExp("^("+C+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+x+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,Z=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+E+"?|("+E+")|.)","ig"),te=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ne=function(){M()};try{N.apply(O=W.call(A.childNodes),A.childNodes),O[A.childNodes.length].nodeType}catch(e){N={apply:O.length?function(e,t){S.apply(e,W.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ie(e,t,i,a){var r,o,d,u,l,p,_,b,g=t&&t.ownerDocument,T=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return i;if(!a&&((t?t.ownerDocument||t:A)!==m&&M(t),t=t||m,f)){if(11!==T&&(p=K.exec(e)))if(r=p[1]){if(9===T){if(!(d=t.getElementById(r)))return i;if(d.id===r)return i.push(d),i}else if(g&&(d=g.getElementById(r))&&L(t,d)&&d.id===r)return i.push(d),i}else{if(p[2])return N.apply(i,t.getElementsByTagName(e)),i;if((r=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!w[e+" "]&&(!h||!h.test(e))){if(1!==T)g=t,b=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(Z,"\\$&"):t.setAttribute("id",u=y),o=(_=s(e)).length,l=U.test(u)?"#"+u:"[id='"+u+"']";o--;)_[o]=l+" "+pe(_[o]);b=_.join(","),g=Q.test(e)&&Me(t.parentNode)||t}if(b)try{return N.apply(i,g.querySelectorAll(b)),i}catch(e){}finally{u===y&&t.removeAttribute("id")}}}return c(e.replace(j,"$1"),t,i,a)}function ae(){var e=[];return function t(n,a){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function re(e){return e[y]=!0,e}function se(e){var t=m.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function oe(e,t){for(var n=e.split("|"),a=n.length;a--;)i.attrHandle[n[a]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ue(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function le(e){return re((function(t){return t=+t,re((function(n,i){for(var a,r=e([],n.length,t),s=r.length;s--;)n[a=r[s]]&&(n[a]=!(i[a]=n[a]))}))}))}function Me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},r=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},M=ie.setDocument=function(e){var t,a,s=e?e.ownerDocument||e:A;return s!==m&&9===s.nodeType&&s.documentElement?(p=(m=s).documentElement,f=!r(m),(a=m.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ne,!1):a.attachEvent&&a.attachEvent("onunload",ne)),n.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=se((function(e){return e.appendChild(m.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=G.test(m.getElementsByClassName),n.getById=se((function(e){return p.appendChild(e).id=y,!m.getElementsByName||!m.getElementsByName(y).length})),n.getById?(i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}},i.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(ee,te);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[a++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},_=[],h=[],(n.qsa=G.test(m.querySelectorAll))&&(se((function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+E+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+E+"*(?:value|"+x+")"),e.querySelectorAll("[id~="+y+"-]").length||h.push("~="),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]")})),se((function(e){var t=m.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+E+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")}))),(n.matchesSelector=G.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&se((function(e){n.disconnectedMatch=b.call(e,"div"),b.call(e,"[s!='']:x"),_.push("!=",H)})),h=h.length&&new RegExp(h.join("|")),_=_.length&&new RegExp(_.join("|")),t=G.test(p.compareDocumentPosition),L=t||G.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return l=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===m||e.ownerDocument===A&&L(A,e)?-1:t===m||t.ownerDocument===A&&L(A,t)?1:u?q(u,e)-q(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,i=0,a=e.parentNode,r=t.parentNode,s=[e],o=[t];if(!a||!r)return e===m?-1:t===m?1:a?-1:r?1:u?q(u,e)-q(u,t):0;if(a===r)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;s[i]===o[i];)i++;return i?ce(s[i],o[i]):s[i]===A?-1:o[i]===A?1:0},m):m},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==m&&M(e),t=t.replace(F,"='$1']"),n.matchesSelector&&f&&!w[t+" "]&&(!_||!_.test(t))&&(!h||!h.test(t)))try{var i=b.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return ie(t,m,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==m&&M(e),L(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==m&&M(e);var a=i.attrHandle[t.toLowerCase()],r=a&&Y.call(i.attrHandle,t.toLowerCase())?a(e,t,!f):void 0;return void 0!==r?r:n.attributes||!f?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,i=[],a=0,r=0;if(l=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(k),l){for(;t=e[r++];)t===e[r]&&(a=i.push(r));for(;a--;)e.splice(i[a],1)}return u=null,e},a=ie.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=a(t);return n},(i=ie.selectors={cacheLength:50,createPseudo:re,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&I.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&z(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var a=ie.attr(i,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(X," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,a){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===i&&0===a?function(e){return!!e.parentNode}:function(t,n,c){var d,u,l,M,m,p,f=r!==s?"nextSibling":"previousSibling",h=t.parentNode,_=o&&t.nodeName.toLowerCase(),b=!c&&!o,L=!1;if(h){if(r){for(;f;){for(M=t;M=M[f];)if(o?M.nodeName.toLowerCase()===_:1===M.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?h.firstChild:h.lastChild],s&&b){for(L=(m=(d=(u=(l=(M=h)[y]||(M[y]={}))[M.uniqueID]||(l[M.uniqueID]={}))[e]||[])[0]===g&&d[1])&&d[2],M=m&&h.childNodes[m];M=++m&&M&&M[f]||(L=m=0)||p.pop();)if(1===M.nodeType&&++L&&M===t){u[e]=[g,m,L];break}}else if(b&&(L=m=(d=(u=(l=(M=t)[y]||(M[y]={}))[M.uniqueID]||(l[M.uniqueID]={}))[e]||[])[0]===g&&d[1]),!1===L)for(;(M=++m&&M&&M[f]||(L=m=0)||p.pop())&&((o?M.nodeName.toLowerCase()!==_:1!==M.nodeType)||!++L||(b&&((u=(l=M[y]||(M[y]={}))[M.uniqueID]||(l[M.uniqueID]={}))[e]=[g,L]),M!==t)););return(L-=a)===i||L%i==0&&L/i>=0}}},PSEUDO:function(e,t){var n,a=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return a[y]?a(t):a.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?re((function(e,n){for(var i,r=a(e,t),s=r.length;s--;)e[i=q(e,r[s])]=!(n[i]=r[s])})):function(e){return a(e,0,n)}):a}},pseudos:{not:re((function(e){var t=[],n=[],i=o(e.replace(j,"$1"));return i[y]?re((function(e,t,n,a){for(var r,s=i(e,null,a,[]),o=e.length;o--;)(r=s[o])&&(e[o]=!(t[o]=r))})):function(e,a,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}})),has:re((function(e){return function(t){return ie(e,t).length>0}})),contains:re((function(e){return e=e.replace(ee,te),function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}})),lang:re((function(e){return U.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(ee,te).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:le((function(){return[0]})),last:le((function(e,t){return[t-1]})),eq:le((function(e,t,n){return[n<0?n+t:n]})),even:le((function(e,t){for(var n=0;n=0;)e.push(i);return e})),gt:le((function(e,t,n){for(var i=n<0?n+t:n;++i1?function(t,n,i){for(var a=e.length;a--;)if(!e[a](t,n,i))return!1;return!0}:e[0]}function _e(e,t,n,i,a){for(var r,s=[],o=0,c=e.length,d=null!=t;o-1&&(r[d]=!(s[d]=l))}}else _=_e(_===s?_.splice(p,_.length):_),a?a(null,s,_,c):N.apply(s,_)}))}function Le(e){for(var t,n,a,r=e.length,s=i.relative[e[0].type],o=s||i.relative[" "],c=s?1:0,u=fe((function(e){return e===t}),o,!0),l=fe((function(e){return q(t,e)>-1}),o,!0),M=[function(e,n,i){var a=!s&&(i||n!==d)||((t=n).nodeType?u(e,n,i):l(e,n,i));return t=null,a}];c1&&he(M),c>1&&pe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),n,c0,a=e.length>0,r=function(r,s,o,c,u){var l,p,h,_=0,b="0",L=r&&[],y=[],A=d,T=r||a&&i.find.TAG("*",u),z=g+=null==A?1:Math.random()||.1,v=T.length;for(u&&(d=s===m||s||u);b!==v&&null!=(l=T[b]);b++){if(a&&l){for(p=0,s||l.ownerDocument===m||(M(l),o=!f);h=e[p++];)if(h(l,s||m,o)){c.push(l);break}u&&(g=z)}n&&((l=!h&&l)&&_--,r&&L.push(l))}if(_+=b,n&&b!==_){for(p=0;h=t[p++];)h(L,y,s,o);if(r){if(_>0)for(;b--;)L[b]||y[b]||(y[b]=D.call(c));y=_e(y)}N.apply(c,y),u&&!r&&y.length>0&&_+t.length>1&&ie.uniqueSort(c)}return u&&(g=z,d=A),L};return n?re(r):r}(r,a))).selector=e}return o},c=ie.select=function(e,t,a,r){var c,d,u,l,M,m="function"==typeof e&&e,p=!r&&s(e=m.selector||e);if(a=a||[],1===p.length){if((d=p[0]=p[0].slice(0)).length>2&&"ID"===(u=d[0]).type&&n.getById&&9===t.nodeType&&f&&i.relative[d[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(ee,te),t)||[])[0]))return a;m&&(t=t.parentNode),e=e.slice(d.shift().value.length)}for(c=$.needsContext.test(e)?0:d.length;c--&&(u=d[c],!i.relative[l=u.type]);)if((M=i.find[l])&&(r=M(u.matches[0].replace(ee,te),Q.test(d[0].type)&&Me(t.parentNode)||t))){if(d.splice(c,1),!(e=r.length&&pe(d)))return N.apply(a,r),a;break}}return(m||o(e,p))(r,t,!f,a,!t||Q.test(e)&&Me(t.parentNode)||t),a},n.sortStable=y.split("").sort(k).join("")===y,n.detectDuplicates=!!l,M(),n.sortDetached=se((function(e){return 1&e.compareDocumentPosition(m.createElement("div"))})),se((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||oe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&se((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||oe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||oe(x,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ie}(n);f.find=A,f.expr=A.selectors,f.expr[":"]=f.expr.pseudos,f.uniqueSort=f.unique=A.uniqueSort,f.text=A.getText,f.isXMLDoc=A.isXML,f.contains=A.contains;var g=function(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&f(e).is(n))break;i.push(e)}return i},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},z=f.expr.match.needsContext,v=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function k(e,t,n){if(f.isFunction(t))return f.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return f.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(w.test(t))return f.filter(t,e,n);t=f.filter(t,e)}return f.grep(e,(function(e){return u.call(t,e)>-1!==n}))}f.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?f.find.matchesSelector(i,e)?[i]:[]:f.find.matches(e,f.grep(t,(function(e){return 1===e.nodeType})))},f.fn.extend({find:function(e){var t,n=this.length,i=[],a=this;if("string"!=typeof e)return this.pushStack(f(e).filter((function(){for(t=0;t1?f.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&z.test(e)?f(e):e||[],!1).length}});var Y,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(f.fn.init=function(e,t,n){var i,a;if(!e)return this;if(n=n||Y,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof f?t[0]:t,f.merge(this,f.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),v.test(i[1])&&f.isPlainObject(t))for(i in t)f.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(a=s.getElementById(i[2]))&&a.parentNode&&(this.length=1,this[0]=a),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):f.isFunction(e)?void 0!==n.ready?n.ready(e):e(f):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),f.makeArray(e,this))}).prototype=f.fn,Y=f(s);var D=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}f.fn.extend({has:function(e){var t=f(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&f.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?f.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(f(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(f.uniqueSort(f.merge(this.get(),f(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),f.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return g(e,"parentNode")},parentsUntil:function(e,t,n){return g(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return g(e,"nextSibling")},prevAll:function(e){return g(e,"previousSibling")},nextUntil:function(e,t,n){return g(e,"nextSibling",n)},prevUntil:function(e,t,n){return g(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return e.contentDocument||f.merge([],e.childNodes)}},(function(e,t){f.fn[e]=function(n,i){var a=f.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=f.filter(i,a)),this.length>1&&(S[e]||f.uniqueSort(a),D.test(e)&&a.reverse()),this.pushStack(a)}}));var W,q=/\S+/g;function x(){s.removeEventListener("DOMContentLoaded",x),n.removeEventListener("load",x),f.ready()}f.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return f.each(e.match(q)||[],(function(e,n){t[n]=!0})),t}(e):f.extend({},e);var t,n,i,a,r=[],s=[],o=-1,c=function(){for(a=e.once,i=t=!0;s.length;o=-1)for(n=s.shift();++o-1;)r.splice(n,1),n<=o&&o--})),this},has:function(e){return e?f.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return a=s=[],n||(r=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},f.extend({Deferred:function(e){var t=[["resolve","done",f.Callbacks("once memory"),"resolved"],["reject","fail",f.Callbacks("once memory"),"rejected"],["notify","progress",f.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var e=arguments;return f.Deferred((function(n){f.each(t,(function(t,r){var s=f.isFunction(e[t])&&e[t];a[r[1]]((function(){var e=s&&s.apply(this,arguments);e&&f.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,s?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?f.extend(e,i):i}},a={};return i.pipe=i.then,f.each(t,(function(e,r){var s=r[2],o=r[3];i[r[1]]=s.add,o&&s.add((function(){n=o}),t[1^e][2].disable,t[2][2].lock),a[r[0]]=function(){return a[r[0]+"With"](this===a?i:this,arguments),this},a[r[0]+"With"]=s.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var t,n,i,a=0,r=o.call(arguments),s=r.length,c=1!==s||e&&f.isFunction(e.promise)?s:0,d=1===c?e:f.Deferred(),u=function(e,n,i){return function(a){n[e]=this,i[e]=arguments.length>1?o.call(arguments):a,i===t?d.notifyWith(n,i):--c||d.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);a0||(W.resolveWith(s,[f]),f.fn.triggerHandler&&(f(s).triggerHandler("ready"),f(s).off("ready"))))}}),f.ready.promise=function(e){return W||(W=f.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(f.ready):(s.addEventListener("DOMContentLoaded",x),n.addEventListener("load",x))),W.promise(e)},f.ready.promise();var E=function(e,t,n,i,a,r,s){var o=0,c=e.length,d=null==n;if("object"===f.type(n))for(o in a=!0,n)E(e,t,o,n[o],!0,r,s);else if(void 0!==i&&(a=!0,f.isFunction(i)||(s=!0),d&&(s?(t.call(e,i),t=null):(d=t,t=function(e,t,n){return d.call(f(e),n)})),t))for(;o-1&&void 0!==n&&X.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),f.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=H.get(e,t),n&&(!i||f.isArray(n)?i=H.access(e,t,f.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=f.queue(e,t),i=n.length,a=n.shift(),r=f._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,(function(){f.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return H.get(e,n)||H.access(e,n,{empty:f.Callbacks("once memory").add((function(){H.remove(e,[t+"queue",n])}))})}}),f.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Z(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&f.nodeName(e,t)?f.merge([e],n):n}function ee(e,t){for(var n=0,i=e.length;n-1)a&&a.push(r);else if(d=f.contains(r.ownerDocument,r),s=Z(l.appendChild(r),"script"),d&&ee(s),n)for(u=0;r=s[u++];)K.test(r.type||"")&&n.push(r);return l}te=s.createDocumentFragment().appendChild(s.createElement("div")),(ne=s.createElement("input")).setAttribute("type","radio"),ne.setAttribute("checked","checked"),ne.setAttribute("name","t"),te.appendChild(ne),p.checkClone=te.cloneNode(!0).cloneNode(!0).lastChild.checked,te.innerHTML="",p.noCloneChecked=!!te.cloneNode(!0).lastChild.defaultValue;var re=/^key/,se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oe=/^([^.]*)(?:\.(.+)|)/;function ce(){return!0}function de(){return!1}function ue(){try{return s.activeElement}catch(e){}}function le(e,t,n,i,a,r){var s,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)le(e,o,n,i,t[o],r);return e}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=de;else if(!a)return e;return 1===r&&(s=a,(a=function(e){return f().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=f.guid++)),e.each((function(){f.event.add(this,t,a,i,n)}))}f.event={global:{},add:function(e,t,n,i,a){var r,s,o,c,d,u,l,M,m,p,h,_=H.get(e);if(_)for(n.handler&&(n=(r=n).handler,a=r.selector),n.guid||(n.guid=f.guid++),(c=_.events)||(c=_.events={}),(s=_.handle)||(s=_.handle=function(t){return void 0!==f&&f.event.triggered!==t.type?f.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(q)||[""]).length;d--;)m=h=(o=oe.exec(t[d])||[])[1],p=(o[2]||"").split(".").sort(),m&&(l=f.event.special[m]||{},m=(a?l.delegateType:l.bindType)||m,l=f.event.special[m]||{},u=f.extend({type:m,origType:h,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&f.expr.match.needsContext.test(a),namespace:p.join(".")},r),(M=c[m])||((M=c[m]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(m,s)),l.add&&(l.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?M.splice(M.delegateCount++,0,u):M.push(u),f.event.global[m]=!0)},remove:function(e,t,n,i,a){var r,s,o,c,d,u,l,M,m,p,h,_=H.hasData(e)&&H.get(e);if(_&&(c=_.events)){for(d=(t=(t||"").match(q)||[""]).length;d--;)if(m=h=(o=oe.exec(t[d])||[])[1],p=(o[2]||"").split(".").sort(),m){for(l=f.event.special[m]||{},M=c[m=(i?l.delegateType:l.bindType)||m]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=M.length;r--;)u=M[r],!a&&h!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(M.splice(r,1),u.selector&&M.delegateCount--,l.remove&&l.remove.call(e,u));s&&!M.length&&(l.teardown&&!1!==l.teardown.call(e,p,_.handle)||f.removeEvent(e,m,_.handle),delete c[m])}else for(m in c)f.event.remove(e,m+t[d],n,i,!0);f.isEmptyObject(c)&&H.remove(e,"handle events")}},dispatch:function(e){e=f.event.fix(e);var t,n,i,a,r,s=[],c=o.call(arguments),d=(H.get(this,"events")||{})[e.type]||[],u=f.event.special[e.type]||{};if(c[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=f.event.handlers.call(this,e,d),t=0;(a=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(i=((f.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,c))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,a,r,s=[],o=t.delegateCount,c=e.target;if(o&&c.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==e.type)){for(i=[],n=0;n-1:f.find(a,this,null,[c]).length),i[a]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return o]*)\/>/gi,me=/\s*$/g;function _e(e,t){return f.nodeName(e,"table")&&f.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){var t=fe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ye(e,t){var n,i,a,r,s,o,c,d;if(1===t.nodeType){if(H.hasData(e)&&(r=H.access(e),s=H.set(t,r),d=r.events))for(a in delete s.handle,s.events={},d)for(n=0,i=d[a].length;n1&&"string"==typeof h&&!p.checkClone&&pe.test(h))return e.each((function(a){var r=e.eq(a);_&&(t[0]=h.call(this,a,r.html())),Ae(r,t,n,i)}));if(M&&(r=(a=ae(t,e[0].ownerDocument,!1,e,i)).firstChild,1===a.childNodes.length&&(a=r),r||i)){for(o=(s=f.map(Z(a,"script"),be)).length;l")},clone:function(e,t,n){var i,a,r,s,o,c,d,u=e.cloneNode(!0),l=f.contains(e.ownerDocument,e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||f.isXMLDoc(e)))for(s=Z(u),i=0,a=(r=Z(e)).length;i0&&ee(s,!l&&Z(e,"script")),u},cleanData:function(e){for(var t,n,i,a=f.event.special,r=0;void 0!==(n=e[r]);r++)if(C(n)){if(t=n[H.expando]){if(t.events)for(i in t.events)a[i]?f.event.remove(n,i):f.removeEvent(n,i,t.handle);n[H.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),f.fn.extend({domManip:Ae,detach:function(e){return ge(this,e,!0)},remove:function(e){return ge(this,e)},text:function(e){return E(this,(function(e){return void 0===e?f.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ae(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||_e(this,e).appendChild(e)}))},prepend:function(){return Ae(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=_e(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ae(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ae(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(f.cleanData(Z(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return f.clone(this,e,t)}))},html:function(e){return E(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!me.test(e)&&!Q[(G.exec(e)||["",""])[1].toLowerCase()]){e=f.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=ve(e,t),Te.detach()),ze[e]=n),n}var ke=/^margin/,Ye=new RegExp("^("+F+")(?!px)[a-z%]+$","i"),Oe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},De=function(e,t,n,i){var a,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in a=n.apply(e,i||[]),t)e.style[r]=s[r];return a},Se=s.documentElement;function Ne(e,t,n){var i,a,r,s,o=e.style;return""!==(s=(n=n||Oe(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==s||f.contains(e.ownerDocument,e)||(s=f.style(e,t)),n&&!p.pixelMarginRight()&&Ye.test(s)&&ke.test(t)&&(i=o.width,a=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=i,o.minWidth=a,o.maxWidth=r),void 0!==s?s+"":s}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,i,a,r=s.createElement("div"),o=s.createElement("div");function c(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o.innerHTML="",Se.appendChild(r);var s=n.getComputedStyle(o);e="1%"!==s.top,a="2px"===s.marginLeft,t="4px"===s.width,o.style.marginRight="50%",i="4px"===s.marginRight,Se.removeChild(r)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===o.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(o),f.extend(p,{pixelPosition:function(){return c(),e},boxSizingReliable:function(){return null==t&&c(),t},pixelMarginRight:function(){return null==t&&c(),i},reliableMarginLeft:function(){return null==t&&c(),a},reliableMarginRight:function(){var e,t=o.appendChild(s.createElement("div"));return t.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",o.style.width="1px",Se.appendChild(r),e=!parseFloat(n.getComputedStyle(t).marginRight),Se.removeChild(r),o.removeChild(t),e}}))}();var qe=/^(none|table(?!-c[ea]).+)/,xe={position:"absolute",visibility:"hidden",display:"block"},Ee={letterSpacing:"0",fontWeight:"400"},Ce=["Webkit","O","Moz","ms"],Be=s.createElement("div").style;function He(e){if(e in Be)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ce.length;n--;)if((e=Ce[n]+t)in Be)return e}function Xe(e,t,n){var i=I.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function je(e,t,n,i,a){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=f.css(e,n+U[r],!0,a)),i?("content"===n&&(s-=f.css(e,"padding"+U[r],!0,a)),"margin"!==n&&(s-=f.css(e,"border"+U[r]+"Width",!0,a))):(s+=f.css(e,"padding"+U[r],!0,a),"padding"!==n&&(s+=f.css(e,"border"+U[r]+"Width",!0,a)));return s}function Re(e,t,n){var i=!0,a="width"===t?e.offsetWidth:e.offsetHeight,r=Oe(e),s="border-box"===f.css(e,"boxSizing",!1,r);if(a<=0||null==a){if(((a=Ne(e,t,r))<0||null==a)&&(a=e.style[t]),Ye.test(a))return a;i=s&&(p.boxSizingReliable()||a===e.style[t]),a=parseFloat(a)||0}return a+je(e,t,n||(s?"border":"content"),i,r)+"px"}function Pe(e,t){for(var n,i,a,r=[],s=0,o=e.length;s1)},show:function(){return Pe(this,!0)},hide:function(){return Pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){$(this)?f(this).show():f(this).hide()}))}}),f.Tween=Fe,Fe.prototype={constructor:Fe,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||f.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(f.cssNumber[n]?"":"px")},cur:function(){var e=Fe.propHooks[this.prop];return e&&e.get?e.get(this):Fe.propHooks._default.get(this)},run:function(e){var t,n=Fe.propHooks[this.prop];return this.options.duration?this.pos=t=f.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Fe.propHooks._default.set(this),this}},Fe.prototype.init.prototype=Fe.prototype,Fe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=f.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){f.fx.step[e.prop]?f.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[f.cssProps[e.prop]]&&!f.cssHooks[e.prop]?e.elem[e.prop]=e.now:f.style(e.elem,e.prop,e.now+e.unit)}}},Fe.propHooks.scrollTop=Fe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},f.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},f.fx=Fe.prototype.init,f.fx.step={};var Ie,Ue,$e=/^(?:toggle|show|hide)$/,Ve=/queueHooks$/;function Je(){return n.setTimeout((function(){Ie=void 0})),Ie=f.now()}function Ge(e,t){var n,i=0,a={height:e};for(t=t?1:0;i<4;i+=2-t)a["margin"+(n=U[i])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function Ke(e,t,n){for(var i,a=(Qe.tweeners[t]||[]).concat(Qe.tweeners["*"]),r=0,s=a.length;r1)},removeAttr:function(e){return this.each((function(){f.removeAttr(this,e)}))}}),f.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?f.prop(e,t,n):(1===r&&f.isXMLDoc(e)||(t=t.toLowerCase(),a=f.attrHooks[t]||(f.expr.match.bool.test(t)?Ze:void 0)),void 0!==n?null===n?void f.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(i=a.get(e,t))?i:null==(i=f.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&f.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,a=0,r=t&&t.match(q);if(r&&1===e.nodeType)for(;n=r[a++];)i=f.propFix[n]||n,f.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),Ze={set:function(e,t,n){return!1===t?f.removeAttr(e,n):e.setAttribute(n,n),n}},f.each(f.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=et[t]||f.find.attr;et[t]=function(e,t,i){var a,r;return i||(r=et[t],et[t]=a,a=null!=n(e,t,i)?t.toLowerCase():null,et[t]=r),a}}));var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;f.fn.extend({prop:function(e,t){return E(this,f.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[f.propFix[e]||e]}))}}),f.extend({prop:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&f.isXMLDoc(e)||(t=f.propFix[t]||t,a=f.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=f.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(f.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),f.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){f.propFix[this.toLowerCase()]=this}));var it=/[\t\r\n\f]/g;function at(e){return e.getAttribute&&e.getAttribute("class")||""}f.fn.extend({addClass:function(e){var t,n,i,a,r,s,o,c=0;if(f.isFunction(e))return this.each((function(t){f(this).addClass(e.call(this,t,at(this)))}));if("string"==typeof e&&e)for(t=e.match(q)||[];n=this[c++];)if(a=at(n),i=1===n.nodeType&&(" "+a+" ").replace(it," ")){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a!==(o=f.trim(i))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,i,a,r,s,o,c=0;if(f.isFunction(e))return this.each((function(t){f(this).removeClass(e.call(this,t,at(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(q)||[];n=this[c++];)if(a=at(n),i=1===n.nodeType&&(" "+a+" ").replace(it," ")){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a!==(o=f.trim(i))&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):f.isFunction(e)?this.each((function(n){f(this).toggleClass(e.call(this,n,at(this),t),t)})):this.each((function(){var t,i,a,r;if("string"===n)for(i=0,a=f(this),r=e.match(q)||[];t=r[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=at(this))&&H.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":H.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+at(n)+" ").replace(it," ").indexOf(t)>-1)return!0;return!1}});var rt=/\r/g,st=/[\x20\t\r\n\f]+/g;f.fn.extend({val:function(e){var t,n,i,a=this[0];return arguments.length?(i=f.isFunction(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=i?e.call(this,n,f(this).val()):e)?a="":"number"==typeof a?a+="":f.isArray(a)&&(a=f.map(a,(function(e){return null==e?"":e+""}))),(t=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=f.valHooks[a.type]||f.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(rt,""):null==n?"":n:void 0}}),f.extend({valHooks:{option:{get:function(e){var t=f.find.attr(e,"value");return null!=t?t:f.trim(f.text(e)).replace(st," ")}},select:{get:function(e){for(var t,n,i=e.options,a=e.selectedIndex,r="select-one"===e.type||a<0,s=r?null:[],o=r?a+1:i.length,c=a<0?o:r?a:0;c-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),f.each(["radio","checkbox"],(function(){f.valHooks[this]={set:function(e,t){if(f.isArray(t))return e.checked=f.inArray(f(e).val(),t)>-1}},p.checkOn||(f.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var ot=/^(?:focusinfocus|focusoutblur)$/;f.extend(f.event,{trigger:function(e,t,i,a){var r,o,c,d,u,l,M,p=[i||s],h=m.call(e,"type")?e.type:e,_=m.call(e,"namespace")?e.namespace.split("."):[];if(o=c=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!ot.test(h+f.event.triggered)&&(h.indexOf(".")>-1&&(_=h.split("."),h=_.shift(),_.sort()),u=h.indexOf(":")<0&&"on"+h,(e=e[f.expando]?e:new f.Event(h,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:f.makeArray(t,[e]),M=f.event.special[h]||{},a||!M.trigger||!1!==M.trigger.apply(i,t))){if(!a&&!M.noBubble&&!f.isWindow(i)){for(d=M.delegateType||h,ot.test(d+h)||(o=o.parentNode);o;o=o.parentNode)p.push(o),c=o;c===(i.ownerDocument||s)&&p.push(c.defaultView||c.parentWindow||n)}for(r=0;(o=p[r++])&&!e.isPropagationStopped();)e.type=r>1?d:M.bindType||h,(l=(H.get(o,"events")||{})[e.type]&&H.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&C(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=h,a||e.isDefaultPrevented()||M._default&&!1!==M._default.apply(p.pop(),t)||!C(i)||u&&f.isFunction(i[h])&&!f.isWindow(i)&&((c=i[u])&&(i[u]=null),f.event.triggered=h,i[h](),f.event.triggered=void 0,c&&(i[u]=c)),e.result}},simulate:function(e,t,n){var i=f.extend(new f.Event,n,{type:e,isSimulated:!0});f.event.trigger(i,null,t)}}),f.fn.extend({trigger:function(e,t){return this.each((function(){f.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return f.event.trigger(e,t,n,!0)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){f.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),f.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),p.focusin="onfocusin"in n,p.focusin||f.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){f.event.simulate(t,e.target,f.event.fix(e))};f.event.special[t]={setup:function(){var i=this.ownerDocument||this,a=H.access(i,t);a||i.addEventListener(e,n,!0),H.access(i,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this,a=H.access(i,t)-1;a?H.access(i,t,a):(i.removeEventListener(e,n,!0),H.remove(i,t))}}}));var ct=n.location,dt=f.now(),ut=/\?/;f.parseJSON=function(e){return JSON.parse(e+"")},f.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||f.error("Invalid XML: "+e),t};var lt=/#.*$/,Mt=/([?&])_=[^&]*/,mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,pt=/^(?:GET|HEAD)$/,ft=/^\/\//,ht={},_t={},bt="*/".concat("*"),Lt=s.createElement("a");function yt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,a=0,r=t.toLowerCase().match(q)||[];if(f.isFunction(n))for(;i=r[a++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function At(e,t,n,i){var a={},r=e===_t;function s(o){var c;return a[o]=!0,f.each(e[o]||[],(function(e,o){var d=o(t,n,i);return"string"!=typeof d||r||a[d]?r?!(c=d):void 0:(t.dataTypes.unshift(d),s(d),!1)})),c}return s(t.dataTypes[0])||!a["*"]&&s("*")}function gt(e,t){var n,i,a=f.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i||(i={}))[n]=t[n]);return i&&f.extend(!0,e,i),e}Lt.href=ct.href,f.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?gt(gt(e,f.ajaxSettings),t):gt(f.ajaxSettings,e)},ajaxPrefilter:yt(ht),ajaxTransport:yt(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,a,r,o,c,d,u,l,M=f.ajaxSetup({},t),m=M.context||M,p=M.context&&(m.nodeType||m.jquery)?f(m):f.event,h=f.Deferred(),_=f.Callbacks("once memory"),b=M.statusCode||{},L={},y={},A=0,g="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===A){if(!o)for(o={};t=mt.exec(r);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===A?r:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return A||(e=y[n]=y[n]||e,L[e]=t),this},overrideMimeType:function(e){return A||(M.mimeType=e),this},statusCode:function(e){var t;if(e)if(A<2)for(t in e)b[t]=[b[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||g;return i&&i.abort(t),z(0,t),this}};if(h.promise(T).complete=_.add,T.success=T.done,T.error=T.fail,M.url=((e||M.url||ct.href)+"").replace(lt,"").replace(ft,ct.protocol+"//"),M.type=t.method||t.type||M.method||M.type,M.dataTypes=f.trim(M.dataType||"*").toLowerCase().match(q)||[""],null==M.crossDomain){d=s.createElement("a");try{d.href=M.url,d.href=d.href,M.crossDomain=Lt.protocol+"//"+Lt.host!=d.protocol+"//"+d.host}catch(e){M.crossDomain=!0}}if(M.data&&M.processData&&"string"!=typeof M.data&&(M.data=f.param(M.data,M.traditional)),At(ht,M,t,T),2===A)return T;for(l in(u=f.event&&M.global)&&0==f.active++&&f.event.trigger("ajaxStart"),M.type=M.type.toUpperCase(),M.hasContent=!pt.test(M.type),a=M.url,M.hasContent||(M.data&&(a=M.url+=(ut.test(a)?"&":"?")+M.data,delete M.data),!1===M.cache&&(M.url=Mt.test(a)?a.replace(Mt,"$1_="+dt++):a+(ut.test(a)?"&":"?")+"_="+dt++)),M.ifModified&&(f.lastModified[a]&&T.setRequestHeader("If-Modified-Since",f.lastModified[a]),f.etag[a]&&T.setRequestHeader("If-None-Match",f.etag[a])),(M.data&&M.hasContent&&!1!==M.contentType||t.contentType)&&T.setRequestHeader("Content-Type",M.contentType),T.setRequestHeader("Accept",M.dataTypes[0]&&M.accepts[M.dataTypes[0]]?M.accepts[M.dataTypes[0]]+("*"!==M.dataTypes[0]?", "+bt+"; q=0.01":""):M.accepts["*"]),M.headers)T.setRequestHeader(l,M.headers[l]);if(M.beforeSend&&(!1===M.beforeSend.call(m,T,M)||2===A))return T.abort();for(l in g="abort",{success:1,error:1,complete:1})T[l](M[l]);if(i=At(_t,M,t,T)){if(T.readyState=1,u&&p.trigger("ajaxSend",[T,M]),2===A)return T;M.async&&M.timeout>0&&(c=n.setTimeout((function(){T.abort("timeout")}),M.timeout));try{A=1,i.send(L,z)}catch(e){if(!(A<2))throw e;z(-1,e)}}else z(-1,"No Transport");function z(e,t,s,o){var d,l,L,y,g,z=t;2!==A&&(A=2,c&&n.clearTimeout(c),i=void 0,r=o||"",T.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(y=function(e,t,n){for(var i,a,r,s,o=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in o)if(o[a]&&o[a].test(i)){c.unshift(a);break}if(c[0]in n)r=c[0];else{for(a in n){if(!c[0]||e.converters[a+" "+c[0]]){r=a;break}s||(s=a)}r=r||s}if(r)return r!==c[0]&&c.unshift(r),n[r]}(M,T,s)),y=function(e,t,n,i){var a,r,s,o,c,d={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)d[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!c&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=r,r=u.shift())if("*"===r)r=c;else if("*"!==c&&c!==r){if(!(s=d[c+" "+r]||d["* "+r]))for(a in d)if((o=a.split(" "))[1]===r&&(s=d[c+" "+o[0]]||d["* "+o[0]])){!0===s?s=d[a]:!0!==d[a]&&(r=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+c+" to "+r}}}return{state:"success",data:t}}(M,y,T,d),d?(M.ifModified&&((g=T.getResponseHeader("Last-Modified"))&&(f.lastModified[a]=g),(g=T.getResponseHeader("etag"))&&(f.etag[a]=g)),204===e||"HEAD"===M.type?z="nocontent":304===e?z="notmodified":(z=y.state,l=y.data,d=!(L=y.error))):(L=z,!e&&z||(z="error",e<0&&(e=0))),T.status=e,T.statusText=(t||z)+"",d?h.resolveWith(m,[l,z,T]):h.rejectWith(m,[T,z,L]),T.statusCode(b),b=void 0,u&&p.trigger(d?"ajaxSuccess":"ajaxError",[T,M,d?l:L]),_.fireWith(m,[T,z]),u&&(p.trigger("ajaxComplete",[T,M]),--f.active||f.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return f.get(e,t,n,"json")},getScript:function(e,t){return f.get(e,void 0,t,"script")}}),f.each(["get","post"],(function(e,t){f[t]=function(e,n,i,a){return f.isFunction(n)&&(a=a||i,i=n,n=void 0),f.ajax(f.extend({url:e,type:t,dataType:a,data:n,success:i},f.isPlainObject(e)&&e))}})),f._evalUrl=function(e){return f.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},f.fn.extend({wrapAll:function(e){var t;return f.isFunction(e)?this.each((function(t){f(this).wrapAll(e.call(this,t))})):(this[0]&&(t=f(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return f.isFunction(e)?this.each((function(t){f(this).wrapInner(e.call(this,t))})):this.each((function(){var t=f(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f.isFunction(e);return this.each((function(n){f(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)})).end()}}),f.expr.filters.hidden=function(e){return!f.expr.filters.visible(e)},f.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Tt=/%20/g,zt=/\[\]$/,vt=/\r?\n/g,wt=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function Yt(e,t,n,i){var a;if(f.isArray(t))f.each(t,(function(t,a){n||zt.test(e)?i(e,a):Yt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,i)}));else if(n||"object"!==f.type(t))i(e,t);else for(a in t)Yt(e+"["+a+"]",t[a],n,i)}f.param=function(e,t){var n,i=[],a=function(e,t){t=f.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=f.ajaxSettings&&f.ajaxSettings.traditional),f.isArray(e)||e.jquery&&!f.isPlainObject(e))f.each(e,(function(){a(this.name,this.value)}));else for(n in e)Yt(n,e[n],t,a);return i.join("&").replace(Tt,"+")},f.fn.extend({serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=f.prop(this,"elements");return e?f.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!f(this).is(":disabled")&&kt.test(this.nodeName)&&!wt.test(e)&&(this.checked||!J.test(e))})).map((function(e,t){var n=f(this).val();return null==n?null:f.isArray(n)?f.map(n,(function(e){return{name:t.name,value:e.replace(vt,"\r\n")}})):{name:t.name,value:n.replace(vt,"\r\n")}})).get()}}),f.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},Dt=f.ajaxSettings.xhr();p.cors=!!Dt&&"withCredentials"in Dt,p.ajax=Dt=!!Dt,f.ajaxTransport((function(e){var t,i;if(p.cors||Dt&&!e.crossDomain)return{send:function(a,r){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];for(s in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)o.setRequestHeader(s,a[s]);t=function(e){return function(){t&&(t=i=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?r(0,"error"):r(o.status,o.statusText):r(Ot[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),i=o.onerror=t("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return f.globalEval(e),e}}}),f.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),f.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(i,a){t=f("