function _typeof2(e){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e,t;function o(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var o,i=[];for(o=0;o>>0,i=0;ife(e)?(r=e+1,a-fe(e)):(r=e,a),{year:r,dayOfYear:s}}function Me(e,t,o){var i,n,r=xe(e.year(),t,o),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?i=s+Ne(n=e.year()-1,t,o):s>Ne(e.year(),t,o)?(i=s-Ne(e.year(),t,o),n=e.year()+1):(n=e.year(),i=s),{week:i,year:n}}function Ne(e,t,o){var i=xe(e,t,o),n=xe(e+1,t,o);return(fe(e)-i+n)/7}function Le(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),I("week",5),I("isoWeek",5),le("w",X),le("ww",X,Y),le("W",X),le("WW",X,Y),he(["w","ww","W","WW"],(function(e,t,o,i){t[i.substr(0,1)]=w(e)})),j("d",0,"do","day"),j("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),j("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),j("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),le("d",X),le("e",X),le("E",X),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),he(["dd","ddd","dddd"],(function(e,t,o,i){var n=o._locale.weekdaysParse(e,i,o._strict);null!=n?t.d=n:d(o).invalidWeekday=e})),he(["d","e","E"],(function(e,t,o,i){t[i]=w(e)}));var Ie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=se,He=se,Ve=se;function je(){function e(e,t){return t.length-e.length}var t,o,i,n,r,s=[],a=[],l=[],p=[];for(t=0;t<7;t++)o=c([2e3,1]).day(t),i=this.weekdaysMin(o,""),n=this.weekdaysShort(o,""),r=this.weekdays(o,""),s.push(i),a.push(n),l.push(r),p.push(i),p.push(n),p.push(r);for(s.sort(e),a.sort(e),l.sort(e),p.sort(e),t=0;t<7;t++)a[t]=ue(a[t]),l[t]=ue(l[t]),p[t]=ue(p[t]);this._weekdaysRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Be(){return this.hours()%12||12}function ze(e,t){j(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ue(e,t){return t._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Be),j("k",["kk",2],0,(function(){return this.hours()||24})),j("hmm",0,0,(function(){return""+Be.apply(this)+k(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+Be.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+k(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)})),ze("a",!0),ze("A",!1),F("hour","h"),I("hour",13),le("a",Ue),le("A",Ue),le("H",X),le("h",X),le("k",X),le("HH",X,Y),le("hh",X,Y),le("kk",X,Y),le("hmm",Q),le("hmmss",Z),le("Hmm",Q),le("Hmmss",Z),de(["H","HH"],3),de(["k","kk"],(function(e,t,o){var i=w(e);t[3]=24===i?0:i})),de(["a","A"],(function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e})),de(["h","hh"],(function(e,t,o){t[3]=w(e),d(o).bigHour=!0})),de("hmm",(function(e,t,o){var i=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i)),d(o).bigHour=!0})),de("hmmss",(function(e,t,o){var i=e.length-4,n=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i,2)),t[5]=w(e.substr(n)),d(o).bigHour=!0})),de("Hmm",(function(e,t,o){var i=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i))})),de("Hmmss",(function(e,t,o){var i=e.length-4,n=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i,2)),t[5]=w(e.substr(n))}));var Ye,$e=ve("Hours",!0),qe={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ie,weekdaysMin:Ge,weekdaysShort:ke,meridiemParse:/[ap]\.?m?\.?/i},Ke={},Xe={};function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){var t=null;if(!Ke[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Ye._abbr,require("./locale/"+e),Je(t)}catch(e){}return Ke[e]}function Je(e,t){var o;return e&&((o=r(t)?tt(e):et(e,t))?Ye=o:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function et(e,t){if(null===t)return delete Ke[e],null;var o,i=qe;if(t.abbr=e,null!=Ke[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Ke[e]._config;else if(null!=t.parentLocale)if(null!=Ke[t.parentLocale])i=Ke[t.parentLocale]._config;else{if(null==(o=Ze(t.parentLocale)))return Xe[t.parentLocale]||(Xe[t.parentLocale]=[]),Xe[t.parentLocale].push({name:e,config:t}),null;i=o._config}return Ke[e]=new D(A(i,t)),Xe[e]&&Xe[e].forEach((function(e){et(e.name,e.config)})),Je(e),Ke[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!i(e)){if(t=Ze(e))return t;e=[e]}return function(e){for(var t,o,i,n,r=0;r=t&&b(n,o,!0)>=t-1)break;t--}r++}return Ye}(e)}function ot(e){var t,o=e._a;return o&&-2===d(e).overflow&&(t=o[1]<0||11we(o[0],o[1])?2:o[3]<0||24Ne(o,r,s)?d(e)._overflowWeeks=!0:null!=l?d(e)._overflowWeekday=!0:(a=Fe(o,i,n,r,s),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=it(e._a[0],n[0]),(e._dayOfYear>fe(s)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),i=De(s,0,e._dayOfYear),e._a[1]=i.getUTCMonth(),e._a[2]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[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?De:function(e,t,o,i,n,r,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,o,i,n,r,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,o,i,n,r,s),a}).apply(null,a),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&&(d(e).weekdayMismatch=!0)}}var rt=/^\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)?)?$/,st=/^\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)?)?$/,at=/Z|[+-]\d\d(?::?\d\d)?/,lt=[["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}/]],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/]],ut=/^\/?Date\((\-?\d+)/i;function ct(e){var t,o,i,n,r,s,a=e._i,l=rt.exec(a)||st.exec(a);if(l){for(d(e).iso=!0,t=0,o=lt.length;to.valueOf():o.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},io.isLocal=function(){return!!this.isValid()&&!this._isUTC},io.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},io.isUtc=xt,io.isUTC=xt,io.zoneAbbr=function(){return this._isUTC?"UTC":""},io.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},io.dates=R("dates accessor is deprecated. Use date instead.",Qt),io.months=R("months accessor is deprecated. Use month instead",Pe),io.years=R("years accessor is deprecated. Use year instead",me),io.zone=R("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()})),io.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=yt(e))._a){var t=e._isUTC?c(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&0=11?e:e+12},meridiem:function(e,t,o){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))&&"object"==("undefined"==typeof module?"undefined":_typeof2(module))?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))?exports.template=t():e.template=t()}("undefined"!=typeof self?self:this,(function(){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,i){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,o){"use strict";var i=o(6),n=o(2),r=o(22),s=function(e,t){t.onerror(e,t);var o=function(){return"{Template Error}"};return o.mappings=[],o.sourcesContent=[],o},a=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof t?o=t:o.source=t,t=(o=n.$extend(o)).source,!0===o.debug&&(o.cache=!1,o.minimize=!1,o.compileDebug=!0),o.compileDebug&&(o.minimize=!1),o.filename&&(o.filename=o.resolveFilename(o.filename,o));var a=o.filename,l=o.cache,p=o.caches;if(l&&a){var u=p.get(a);if(u)return u}if(!t)try{t=o.loader(a,o),o.source=t}catch(e){var c=new r({name:"CompileError",path:a,message:"template not found: "+e.message,stack:e.stack});if(o.bail)throw c;return s(c,o)}var d=void 0,h=new i(o);try{d=h.build()}catch(c){if(c=new r(c),o.bail)throw c;return s(c,o)}var f=function(t,i){try{return d(t,i)}catch(n){if(!o.compileDebug)return o.cache=!1,o.compileDebug=!0,e(o)(t,i);if(n=new r(n),o.bail)throw n;return s(n,o)()}};return f.mappings=d.mappings,f.sourcesContent=d.sourcesContent,f.toString=function(){return d.toString()},l&&a&&p.set(a,f),f};a.Compiler=i,e.exports=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,o){"use strict";function i(){this.$extend=function(e){return r(e=e||{},e instanceof i?e:this)}}var n=o(10),r=o(12),s=o(13),a=o(14),l=o(15),p=o(16),u=o(17),c=o(18),d=o(19),h=o(21),f={source:null,filename:null,rules:[c,u],escape:!0,debug:!!("undefined"==typeof window)&&"production"!==process.env.NODE_ENV,bail:!0,cache:!0,minimize:!0,compileDebug:!1,resolveFilename:h,include:s,htmlMinifier:d,htmlMinifierOptions:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,ignoreCustomFragments:[]},onerror:a,loader:p,caches:l,root:"/",extname:".art",ignore:[],imports:n};i.prototype=f,e.exports=new i},function(e,t){},function(e,t,o){"use strict";var i=o(5),n=o(0),r=o(23),s=function(e,t){return t instanceof Object?i({filename:e},t):n({filename:e,source:t})};s.render=i,s.compile=n,s.defaults=r,e.exports=s},function(e,t,o){"use strict";var i=o(0);e.exports=function(e,t,o){return i(e,o)(t)}},function(e,t,o){"use strict";function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function n(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t|\([\w\W]*?\))\s*{[\s;]*$)/,"$1})"],[/(^[\w\W]*?\([\w\W]*?\)\s*{[\s;]*$)/,"$1}"]],o=0;o2&&void 0!==arguments[2]?arguments[2]:{},r=[new n("string",e)],s=0;sf&&(d=new n("string",y.slice(f,h.index),d),g.push(d)),d=new n("expression",h[0],d),h[0]=i(d),d.script=a.use.apply(o,h),g.push(d),f=h.index+h[0].length;f]/;n.$escape=function(e){return function(e){var t=""+e,o=r.exec(t);if(!o)return e;var i="",n=void 0,s=void 0,a=void 0;for(n=o.index,s=0;n {{"+o+"}}")};switch("#"===t&&d("#value","@value"),c){case"set":n="var "+a.join("").trim();break;case"if":n="if("+a.join("").trim()+"){";break;case"else":var h=a.indexOf("if");~h?(a.splice(0,h+1),n="}else if("+a.join("").trim()+"){"):n="}else{";break;case"/if":n="}";break;case"each":(p=i._split(s)).shift(),"as"===p[1]&&(d("each object as value index","each object value index"),p.splice(1,1)),n="$each("+(p[0]||"$data")+",function("+(p[1]||"$value")+","+(p[2]||"$index")+"){";break;case"/each":n="})";break;case"block":(p=i._split(s)).shift(),n="block("+p.join(",").trim()+",function(){";break;case"/block":n="})";break;case"echo":c="print",d("echo value","value");case"print":case"include":case"extend":if(0!==a.join("").trim().indexOf("(")){(p=i._split(s)).shift(),n=c+"("+p.join(",")+")";break}default:if(~a.indexOf("|")){var f=s.reduce((function(e,t){var o=t.value,i=t.type;return"|"===o?e.push([]):"whitespace"!==i&&"comment"!==i&&(e.length||e.push([]),":"===o&&1===e[e.length-1].length?d("value | filter: argv","value | filter argv"):e[e.length-1].push(t)),e}),[]).map((function(e){return i._split(e)}));n=f.reduce((function(e,t){var o=t.shift();return t.unshift(e),"$imports."+o+"("+t.join(",")+")"}),f.shift().join(" ").trim())}u=u||"escape"}return l.code=n,l.output=u,l},_split:function(e){e=e.filter((function(e){var t=e.type;return"whitespace"!==t&&"comment"!==t}));for(var t=0,o=e.shift(),i=/\]|\)/,n=[[o]];t/,use:function(e,t,o,i){return o={"-":"raw","=":"escape","":!1,"==":"raw","=#":"raw"}[o],t&&(i="/*"+i+"*/",o=!1),{code:i,output:o}}}},function(e,t,o){"use strict";var i="undefined"==typeof window;e.exports=function(e,t){if(i){var n,r=o(20).minify,s=t.htmlMinifierOptions,a=t.rules.map((function(e){return e.test}));(n=s.ignoreCustomFragments).push.apply(n,function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t> ":" ")+o+"| "+e})).join("\n");return(i||"anonymous")+":"+n+":"+r+"\n"+c+"\n\n"+t+": "+a+(s?"\n generated: "+s:"")}(e),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+_typeof2(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}();e.exports=i},function(e,t,o){"use strict";e.exports=o(2)}])})),function(e,t){"object"===("undefined"==typeof module?"undefined":_typeof2(module))&&"object"===_typeof2(module.exports)?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){var o=[],i=o.slice,n=o.concat,r=o.push,s=o.indexOf,a={},l=a.toString,p=a.hasOwnProperty,u={},c="1.11.3",d=function e(t,o){return new e.fn.init(t,o)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,f=/^-ms-/,g=/-([\da-z])/gi,y=function(e,t){return t.toUpperCase()};function m(e){var t="length"in e&&e.length,o=d.type(e);return"function"!==o&&!d.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e))}d.fn=d.prototype={jquery:c,constructor:d,selector:"",length:0,toArray:function(){return i.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:i.call(this)},pushStack:function(e){var t=d.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return d.each(this,e,t)},map:function(e){return this.pushStack(d.map(this,(function(t,o){return e.call(t,o,t)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,o=+e+(e<0?t:0);return this.pushStack(o>=0&&o=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==d.type(e)||e.nodeType||d.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(u.ownLast)for(t in e)return p.call(e,t);for(t in e);return void 0===t||p.call(e,t)},type:function(e){return null==e?e+"":"object"===_typeof2(e)||"function"==typeof e?a[l.call(e)]||"object":_typeof2(e)},globalEval:function(t){t&&d.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(f,"ms-").replace(g,y)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,o){var i=0,n=e.length,r=m(e);if(o){if(r)for(;i+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),Y=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),$=new RegExp(V),q=new RegExp("^"+W+"$"),K={ID:new RegExp("^#("+G+")"),CLASS:new RegExp("^\\.("+G+")"),TAG:new RegExp("^("+G.replace("w","w*")+")"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,oe=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ie=function(e,t,o){var i="0x"+t-65536;return i!=i||o?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ne=function(){d()};try{M.apply(D=N.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){M={apply:D.length?function(e,t){F.apply(e,N.call(t))}:function(e,t){for(var o=e.length,i=0;e[o++]=t[i++];);e.length=o-1}}}function re(e,t,i,n){var r,a,p,u,c,f,m,v,b,E;if((t?t.ownerDocument||t:w)!==h&&d(t),i=i||[],u=(t=t||h).nodeType,"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!n&&g){if(11!==u&&(r=J.exec(e)))if(p=r[1]){if(9===u){if(!(a=t.getElementById(p))||!a.parentNode)return i;if(a.id===p)return i.push(a),i}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(p))&&C(t,a)&&a.id===p)return i.push(a),i}else{if(r[2])return M.apply(i,t.getElementsByTagName(e)),i;if((p=r[3])&&o.getElementsByClassName)return M.apply(i,t.getElementsByClassName(p)),i}if(o.qsa&&(!y||!y.test(e))){if(v=m=_,b=t,E=1!==u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(f=s(e),(m=t.getAttribute("id"))?v=m.replace(te,"\\$&"):t.setAttribute("id",v),v="[id='"+v+"'] ",c=f.length;c--;)f[c]=v+ye(f[c]);b=ee.test(e)&&fe(t.parentNode)||t,E=f.join(",")}if(E)try{return M.apply(i,b.querySelectorAll(E)),i}catch(e){}finally{m||t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,i,n)}function se(){var e=[];return function t(o,n){return e.push(o+" ")>i.cacheLength&&delete t[e.shift()],t[o+" "]=n}}function ae(e){return e[_]=!0,e}function le(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var o=e.split("|"),n=e.length;n--;)i.attrHandle[o[n]]=t}function ue(e,t){var o=t&&e,i=o&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||T)-(~e.sourceIndex||T);if(i)return i;if(o)for(;o=o.nextSibling;)if(o===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var o=t.nodeName.toLowerCase();return("input"===o||"button"===o)&&t.type===e}}function he(e){return ae((function(t){return t=+t,ae((function(o,i){for(var n,r=e([],o.length,t),s=r.length;s--;)o[n=r[s]]&&(o[n]=!(i[n]=o[n]))}))}))}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in o=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=re.setDocument=function(e){var t,n,s=e?e.ownerDocument||e:w;return s!==h&&9===s.nodeType&&s.documentElement?(h=s,f=s.documentElement,(n=s.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",ne,!1):n.attachEvent&&n.attachEvent("onunload",ne)),g=!r(s),o.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),o.getElementsByTagName=le((function(e){return e.appendChild(s.createComment("")),!e.getElementsByTagName("*").length})),o.getElementsByClassName=Z.test(s.getElementsByClassName),o.getById=le((function(e){return f.appendChild(e).id=_,!s.getElementsByName||!s.getElementsByName(_).length})),o.getById?(i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var o=t.getElementById(e);return o&&o.parentNode?[o]:[]}},i.filter.ID=function(e){var t=e.replace(oe,ie);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(oe,ie);return function(e){var o=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return o&&o.value===t}}),i.find.TAG=o.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):o.qsa?t.querySelectorAll(e):void 0}:function(e,t){var o,i=[],n=0,r=t.getElementsByTagName(e);if("*"===e){for(;o=r[n++];)1===o.nodeType&&i.push(o);return i}return r},i.find.CLASS=o.getElementsByClassName&&function(e,t){if(g)return t.getElementsByClassName(e)},m=[],y=[],(o.qsa=Z.test(s.querySelectorAll))&&(le((function(e){f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+I+")"),e.querySelectorAll("[id~="+_+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]")})),le((function(e){var t=s.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")}))),(o.matchesSelector=Z.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&le((function(e){o.disconnectedMatch=v.call(e,"div"),v.call(e,"[s!='']:x"),m.push("!=",V)})),y=y.length&&new RegExp(y.join("|")),m=m.length&&new RegExp(m.join("|")),t=Z.test(f.compareDocumentPosition),C=t||Z.test(f.contains)?function(e,t){var o=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(o.contains?o.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!o.sortDetached&&t.compareDocumentPosition(e)===i?e===s||e.ownerDocument===w&&C(w,e)?-1:t===s||t.ownerDocument===w&&C(w,t)?1:u?L(u,e)-L(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var o,i=0,n=e.parentNode,r=t.parentNode,a=[e],l=[t];if(!n||!r)return e===s?-1:t===s?1:n?-1:r?1:u?L(u,e)-L(u,t):0;if(n===r)return ue(e,t);for(o=e;o=o.parentNode;)a.unshift(o);for(o=t;o=o.parentNode;)l.unshift(o);for(;a[i]===l[i];)i++;return i?ue(a[i],l[i]):a[i]===w?-1:l[i]===w?1:0},s):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&d(e),t=t.replace(Y,"='$1']"),o.matchesSelector&&g&&(!m||!m.test(t))&&(!y||!y.test(t)))try{var i=v.call(e,t);if(i||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&d(e),C(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==h&&d(e);var n=i.attrHandle[t.toLowerCase()],r=n&&A.call(i.attrHandle,t.toLowerCase())?n(e,t,!g):void 0;return void 0!==r?r:o.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],n=0,r=0;if(c=!o.detectDuplicates,u=!o.sortStable&&e.slice(0),e.sort(O),c){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return u=null,e},n=re.getText=function(e){var t,o="",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)o+=n(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)o+=n(t);return o},(i=re.selectors={cacheLength:50,createPseudo:ae,match:K,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(oe,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,ie),"~="===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]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,o=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":o&&$.test(o)&&(t=s(o,!0))&&(t=o.indexOf(")",o.length-t)-o.length)&&(e[0]=e[0].slice(0,t),e[2]=o.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+k+"|$)"))&&R(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,o){return function(i){var n=re.attr(i,e);return null==n?"!="===t:!t||(n+="","="===t?n===o:"!="===t?n!==o:"^="===t?o&&0===n.indexOf(o):"*="===t?o&&n.indexOf(o)>-1:"$="===t?o&&n.slice(-o.length)===o:"~="===t?(" "+n.replace(j," ")+" ").indexOf(o)>-1:"|="===t&&(n===o||n.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,o,i,n){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===n?function(e){return!!e.parentNode}:function(t,o,l){var p,u,c,d,h,f,g=r!==s?"nextSibling":"previousSibling",y=t.parentNode,m=a&&t.nodeName.toLowerCase(),v=!l&&!a;if(y){if(r){for(;g;){for(c=t;c=c[g];)if(a?c.nodeName.toLowerCase()===m:1===c.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?y.firstChild:y.lastChild],s&&v){for(h=(p=(u=y[_]||(y[_]={}))[e]||[])[0]===b&&p[1],d=p[0]===b&&p[2],c=h&&y.childNodes[h];c=++h&&c&&c[g]||(d=h=0)||f.pop();)if(1===c.nodeType&&++d&&c===t){u[e]=[b,h,d];break}}else if(v&&(p=(t[_]||(t[_]={}))[e])&&p[0]===b)d=p[1];else for(;(c=++h&&c&&c[g]||(d=h=0)||f.pop())&&((a?c.nodeName.toLowerCase()!==m:1!==c.nodeType)||!++d||(v&&((c[_]||(c[_]={}))[e]=[b,d]),c!==t)););return(d-=n)===i||d%i==0&&d/i>=0}}},PSEUDO:function(e,t){var o,n=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return n[_]?n(t):n.length>1?(o=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae((function(e,o){for(var i,r=n(e,t),s=r.length;s--;)e[i=L(e,r[s])]=!(o[i]=r[s])})):function(e){return n(e,0,o)}):n}},pseudos:{not:ae((function(e){var t=[],o=[],i=a(e.replace(B,"$1"));return i[_]?ae((function(e,t,o,n){for(var r,s=i(e,null,n,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))})):function(e,n,r){return t[0]=e,i(t,null,r,o),t[0]=null,!o.pop()}})),has:ae((function(e){return function(t){return re(e,t).length>0}})),contains:ae((function(e){return e=e.replace(oe,ie),function(t){return(t.textContent||t.innerText||n(t)).indexOf(e)>-1}})),lang:ae((function(e){return q.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(oe,ie).toLowerCase(),function(t){var o;do{if(o=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(o=o.toLowerCase())===e||0===o.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var o=e.location&&e.location.hash;return o&&o.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.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 Q.test(e.nodeName)},input:function(e){return X.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:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,o){return[o<0?o+t:o]})),even:he((function(e,t){for(var o=0;o=0;)e.push(i);return e})),gt:he((function(e,t,o){for(var i=o<0?o+t:o;++i1?function(t,o,i){for(var n=e.length;n--;)if(!e[n](t,o,i))return!1;return!0}:e[0]}function Ce(e,t,o,i,n){for(var r,s=[],a=0,l=e.length,p=null!=t;a-1&&(r[p]=!(s[p]=c))}}else m=Ce(m===s?m.splice(f,m.length):m),n?n(null,s,m,l):M.apply(s,m)}))}function we(e){for(var t,o,n,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,u=me((function(e){return e===t}),a,!0),c=me((function(e){return L(t,e)>-1}),a,!0),d=[function(e,o,i){var n=!s&&(i||o!==p)||((t=o).nodeType?u(e,o,i):c(e,o,i));return t=null,n}];l1&&ve(d),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),o,l0,n=e.length>0,r=function(r,s,a,l,u){var c,d,f,g=0,y="0",m=r&&[],v=[],C=p,_=r||n&&i.find.TAG("*",u),w=b+=null==C?1:Math.random()||.1,E=_.length;for(u&&(p=s!==h&&s);y!==E&&null!=(c=_[y]);y++){if(n&&c){for(d=0;f=e[d++];)if(f(c,s,a)){l.push(c);break}u&&(b=w)}o&&((c=!f&&c)&&g--,r&&m.push(c))}if(g+=y,o&&y!==g){for(d=0;f=t[d++];)f(m,v,s,a);if(r){if(g>0)for(;y--;)m[y]||v[y]||(v[y]=x.call(l));v=Ce(v)}M.apply(l,v),u&&!r&&v.length>0&&g+t.length>1&&re.uniqueSort(l)}return u&&(b=w,p=C),m};return o?ae(r):r}(r,n))).selector=e}return a},l=re.select=function(e,t,n,r){var l,p,u,c,d,h="function"==typeof e&&e,f=!r&&s(e=h.selector||e);if(n=n||[],1===f.length){if((p=f[0]=f[0].slice(0)).length>2&&"ID"===(u=p[0]).type&&o.getById&&9===t.nodeType&&g&&i.relative[p[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(oe,ie),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(p.shift().value.length)}for(l=K.needsContext.test(e)?0:p.length;l--&&(u=p[l],!i.relative[c=u.type]);)if((d=i.find[c])&&(r=d(u.matches[0].replace(oe,ie),ee.test(p[0].type)&&fe(t.parentNode)||t))){if(p.splice(l,1),!(e=r.length&&ye(p)))return M.apply(n,r),n;break}}return(h||a(e,f))(r,t,!g,n,ee.test(e)&&fe(t.parentNode)||t),n},o.sortStable=_.split("").sort(O).join("")===_,o.detectDuplicates=!!c,d(),o.sortDetached=le((function(e){return 1&e.compareDocumentPosition(h.createElement("div"))})),le((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||pe("type|href|height|width",(function(e,t,o){if(!o)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),o.attributes&&le((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||pe("value",(function(e,t,o){if(!o&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||pe(I,(function(e,t,o){var i;if(!o)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),re}(e);d.find=v,(d.expr=v.selectors)[":"]=d.expr.pseudos,d.unique=v.uniqueSort,d.text=v.getText,d.isXMLDoc=v.isXML,d.contains=v.contains;var C=d.expr.match.needsContext,_=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function b(e,t,o){if(d.isFunction(t))return d.grep(e,(function(e,i){return!!t.call(e,i,e)!==o}));if(t.nodeType)return d.grep(e,(function(e){return e===t!==o}));if("string"==typeof t){if(w.test(t))return d.filter(t,e,o);t=d.filter(t,e)}return d.grep(e,(function(e){return d.inArray(e,t)>=0!==o}))}d.filter=function(e,t,o){var i=t[0];return o&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?d.find.matchesSelector(i,e)?[i]:[]:d.find.matches(e,d.grep(t,(function(e){return 1===e.nodeType})))},d.fn.extend({find:function(e){var t,o=[],i=this,n=i.length;if("string"!=typeof e)return this.pushStack(d(e).filter((function(){for(t=0;t1?d.unique(o):o)).selector=this.selector?this.selector+" "+e:e,o},filter:function(e){return this.pushStack(b(this,e||[],!1))},not:function(e){return this.pushStack(b(this,e||[],!0))},is:function(e){return!!b(this,"string"==typeof e&&C.test(e)?d(e):e||[],!1).length}});var E,R=e.document,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(d.fn.init=function(e,t){var o,i;if(!e)return this;if("string"==typeof e){if(!(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:S.exec(e))||!o[1]&&t)return!t||t.jquery?(t||E).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof d?t[0]:t,d.merge(this,d.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:R,!0)),_.test(o[1])&&d.isPlainObject(t))for(o in t)d.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}if((i=R.getElementById(o[2]))&&i.parentNode){if(i.id!==o[2])return E.find(e);this.length=1,this[0]=i}return this.context=R,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):d.isFunction(e)?void 0!==E.ready?E.ready(e):e(d):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),d.makeArray(e,this))}).prototype=d.fn,E=d(R);var P=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function T(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}d.extend({dir:function(e,t,o){for(var i=[],n=e[t];n&&9!==n.nodeType&&(void 0===o||1!==n.nodeType||!d(n).is(o));)1===n.nodeType&&i.push(n),n=n[t];return i},sibling:function(e,t){for(var o=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&o.push(e);return o}}),d.fn.extend({has:function(e){var t,o=d(e,this),i=o.length;return this.filter((function(){for(t=0;t-1:1===o.nodeType&&d.find.matchesSelector(o,e))){r.push(o);break}return this.pushStack(r.length>1?d.unique(r):r)},index:function(e){return e?"string"==typeof e?d.inArray(this[0],d(e)):d.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(d.unique(d.merge(this.get(),d(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),d.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d.dir(e,"parentNode")},parentsUntil:function(e,t,o){return d.dir(e,"parentNode",o)},next:function(e){return T(e,"nextSibling")},prev:function(e){return T(e,"previousSibling")},nextAll:function(e){return d.dir(e,"nextSibling")},prevAll:function(e){return d.dir(e,"previousSibling")},nextUntil:function(e,t,o){return d.dir(e,"nextSibling",o)},prevUntil:function(e,t,o){return d.dir(e,"previousSibling",o)},siblings:function(e){return d.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return d.sibling(e.firstChild)},contents:function(e){return d.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:d.merge([],e.childNodes)}},(function(e,t){d.fn[e]=function(o,i){var n=d.map(this,t,o);return"Until"!==e.slice(-5)&&(i=o),i&&"string"==typeof i&&(n=d.filter(i,n)),this.length>1&&(O[e]||(n=d.unique(n)),P.test(e)&&(n=n.reverse())),this.pushStack(n)}}));var A,D=/\S+/g,x={};function F(){R.addEventListener?(R.removeEventListener("DOMContentLoaded",M,!1),e.removeEventListener("load",M,!1)):(R.detachEvent("onreadystatechange",M),e.detachEvent("onload",M))}function M(){(R.addEventListener||"load"===event.type||"complete"===R.readyState)&&(F(),d.ready())}d.Callbacks=function(e){e="string"==typeof e?x[e]||function(e){var t=x[e]={};return d.each(e.match(D)||[],(function(e,o){t[o]=!0})),t}(e):d.extend({},e);var t,o,i,n,r,s,a=[],l=!e.once&&[],p=function p(c){for(o=e.memory&&c,i=!0,r=s||0,s=0,n=a.length,t=!0;a&&r-1;)a.splice(i,1),t&&(i<=n&&n--,i<=r&&r--)})),this},has:function(e){return e?d.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],n=0,this},disable:function(){return a=l=o=void 0,this},disabled:function(){return!a},lock:function(){return l=void 0,o||u.disable(),this},locked:function(){return!l},fireWith:function(e,o){return!a||i&&!l||(o=[e,(o=o||[]).slice?o.slice():o],t?l.push(o):p(o)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},d.extend({Deferred:function(e){var t=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],o="pending",i={state:function(){return o},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var e=arguments;return d.Deferred((function(o){d.each(t,(function(t,r){var s=d.isFunction(e[t])&&e[t];n[r[1]]((function(){var e=s&&s.apply(this,arguments);e&&d.isFunction(e.promise)?e.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[r[0]+"With"](this===i?o.promise():this,s?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?d.extend(e,i):i}},n={};return i.pipe=i.then,d.each(t,(function(e,r){var s=r[2],a=r[3];i[r[1]]=s.add,a&&s.add((function(){o=a}),t[1^e][2].disable,t[2][2].lock),n[r[0]]=function(){return n[r[0]+"With"](this===n?i:this,arguments),this},n[r[0]+"With"]=s.fireWith})),i.promise(n),e&&e.call(n,n),n},when:function(e){var t,o,n,r=0,s=i.call(arguments),a=s.length,l=1!==a||e&&d.isFunction(e.promise)?a:0,p=1===l?e:d.Deferred(),u=function(e,o,n){return function(r){o[e]=this,n[e]=arguments.length>1?i.call(arguments):r,n===t?p.notifyWith(o,n):--l||p.resolveWith(o,n)}};if(a>1)for(t=new Array(a),o=new Array(a),n=new Array(a);r0||(A.resolveWith(R,[d]),d.fn.triggerHandler&&(d(R).triggerHandler("ready"),d(R).off("ready")))}}}),d.ready.promise=function(t){if(!A)if(A=d.Deferred(),"complete"===R.readyState)setTimeout(d.ready);else if(R.addEventListener)R.addEventListener("DOMContentLoaded",M,!1),e.addEventListener("load",M,!1);else{R.attachEvent("onreadystatechange",M),e.attachEvent("onload",M);var o=!1;try{o=null==e.frameElement&&R.documentElement}catch(e){}o&&o.doScroll&&function e(){if(!d.isReady){try{o.doScroll("left")}catch(t){return setTimeout(e,50)}F(),d.ready()}}()}return A.promise(t)};var N,L="undefined";for(N in d(u))break;u.ownLast="0"!==N,u.inlineBlockNeedsLayout=!1,d((function(){var e,t,o,i;(o=R.getElementsByTagName("body")[0])&&o.style&&(t=R.createElement("div"),(i=R.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",o.appendChild(i).appendChild(t),_typeof2(t.style.zoom)!==L&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",u.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(o.style.zoom=1)),o.removeChild(i))})),function(){var e=R.createElement("div");if(null==u.deleteExpando){u.deleteExpando=!0;try{delete e.test}catch(e){u.deleteExpando=!1}}e=null}(),d.acceptData=function(e){var t=d.noData[(e.nodeName+" ").toLowerCase()],o=+e.nodeType||1;return(1===o||9===o)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var I=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,k=/([A-Z])/g;function G(e,t,o){if(void 0===o&&1===e.nodeType){var i="data-"+t.replace(k,"-$1").toLowerCase();if("string"==typeof(o=e.getAttribute(i))){try{o="true"===o||"false"!==o&&("null"===o?null:+o+""===o?+o:I.test(o)?d.parseJSON(o):o)}catch(e){}d.data(e,t,o)}else o=void 0}return o}function W(e){var t;for(t in e)if(("data"!==t||!d.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function H(e,t,i,n){if(d.acceptData(e)){var r,s,a=d.expando,l=e.nodeType,p=l?d.cache:e,u=l?e[a]:e[a]&&a;if(u&&p[u]&&(n||p[u].data)||void 0!==i||"string"!=typeof t)return u||(u=l?e[a]=o.pop()||d.guid++:a),p[u]||(p[u]=l?{}:{toJSON:d.noop}),"object"!==_typeof2(t)&&"function"!=typeof t||(n?p[u]=d.extend(p[u],t):p[u].data=d.extend(p[u].data,t)),s=p[u],n||(s.data||(s.data={}),s=s.data),void 0!==i&&(s[d.camelCase(t)]=i),"string"==typeof t?null==(r=s[t])&&(r=s[d.camelCase(t)]):r=s,r}}function V(e,t,o){if(d.acceptData(e)){var i,n,r=e.nodeType,s=r?d.cache:e,a=r?e[d.expando]:d.expando;if(s[a]){if(t&&(i=o?s[a]:s[a].data)){n=(t=d.isArray(t)?t.concat(d.map(t,d.camelCase)):t in i||(t=d.camelCase(t))in i?[t]:t.split(" ")).length;for(;n--;)delete i[t[n]];if(o?!W(i):!d.isEmptyObject(i))return}(o||(delete s[a].data,W(s[a])))&&(r?d.cleanData([e],!0):u.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}d.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?d.cache[e[d.expando]]:e[d.expando])&&!W(e)},data:function(e,t,o){return H(e,t,o)},removeData:function(e,t){return V(e,t)},_data:function(e,t,o){return H(e,t,o,!0)},_removeData:function(e,t){return V(e,t,!0)}}),d.fn.extend({data:function(e,t){var o,i,n,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(n=d.data(r),1===r.nodeType&&!d._data(r,"parsedAttrs"))){for(o=s.length;o--;)s[o]&&0===(i=s[o].name).indexOf("data-")&&G(r,i=d.camelCase(i.slice(5)),n[i]);d._data(r,"parsedAttrs",!0)}return n}return"object"===_typeof2(e)?this.each((function(){d.data(this,e)})):arguments.length>1?this.each((function(){d.data(this,e,t)})):r?G(r,e,d.data(r,e)):void 0},removeData:function(e){return this.each((function(){d.removeData(this,e)}))}}),d.extend({queue:function(e,t,o){var i;if(e)return i=d._data(e,t=(t||"fx")+"queue"),o&&(!i||d.isArray(o)?i=d._data(e,t,d.makeArray(o)):i.push(o)),i||[]},dequeue:function(e,t){var o=d.queue(e,t=t||"fx"),i=o.length,n=o.shift(),r=d._queueHooks(e,t);"inprogress"===n&&(n=o.shift(),i--),n&&("fx"===t&&o.unshift("inprogress"),delete r.stop,n.call(e,(function(){d.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return d._data(e,o)||d._data(e,o,{empty:d.Callbacks("once memory").add((function(){d._removeData(e,t+"queue"),d._removeData(e,o)}))})}}),d.fn.extend({queue:function(e,t){var o=2;return"string"!=typeof e&&(t=e,e="fx",o--),arguments.length
a",u.leadingWhitespace=3===t.firstChild.nodeType,u.tbody=!t.getElementsByTagName("tbody").length,u.htmlSerialize=!!t.getElementsByTagName("link").length,u.html5Clone="<:nav>"!==R.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,o.appendChild(e),u.appendChecked=e.checked,t.innerHTML="",u.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,o.appendChild(t),t.innerHTML="",u.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,u.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",(function(){u.noCloneEvent=!1})),t.cloneNode(!0).click()),null==u.deleteExpando){u.deleteExpando=!0;try{delete t.test}catch(e){u.deleteExpando=!1}}}(),function(){var t,o,i=R.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})o="on"+t,(u[t+"Bubbles"]=o in e)||(i.setAttribute(o,"t"),u[t+"Bubbles"]=!1===i.attributes[o].expando);i=null}();var $=/^(?:input|select|textarea)$/i,q=/^key/,K=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function J(){return!1}function ee(){try{return R.activeElement}catch(e){}}function te(e){var t=oe.split("|"),o=e.createDocumentFragment();if(o.createElement)for(;t.length;)o.createElement(t.pop());return o}d.event={global:{},add:function(e,t,o,i,n){var r,s,a,l,p,u,c,h,f,g,y,m=d._data(e);if(m){for(o.handler&&(o=(l=o).handler,n=l.selector),o.guid||(o.guid=d.guid++),(s=m.events)||(s=m.events={}),(u=m.handle)||((u=m.handle=function(e){return _typeof2(d)===L||e&&d.event.triggered===e.type?void 0:d.event.dispatch.apply(u.elem,arguments)}).elem=e),a=(t=(t||"").match(D)||[""]).length;a--;)f=y=(r=Q.exec(t[a])||[])[1],g=(r[2]||"").split(".").sort(),f&&(p=d.event.special[f]||{},f=(n?p.delegateType:p.bindType)||f,p=d.event.special[f]||{},c=d.extend({type:f,origType:y,data:i,handler:o,guid:o.guid,selector:n,needsContext:n&&d.expr.match.needsContext.test(n),namespace:g.join(".")},l),(h=s[f])||((h=s[f]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,g,u)||(e.addEventListener?e.addEventListener(f,u,!1):e.attachEvent&&e.attachEvent("on"+f,u))),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=o.guid)),n?h.splice(h.delegateCount++,0,c):h.push(c),d.event.global[f]=!0);e=null}},remove:function(e,t,o,i,n){var r,s,a,l,p,u,c,h,f,g,y,m=d.hasData(e)&&d._data(e);if(m&&(u=m.events)){for(p=(t=(t||"").match(D)||[""]).length;p--;)if(f=y=(a=Q.exec(t[p])||[])[1],g=(a[2]||"").split(".").sort(),f){for(c=d.event.special[f]||{},h=u[f=(i?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=h.length;r--;)s=h[r],!n&&y!==s.origType||o&&o.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(h.splice(r,1),s.selector&&h.delegateCount--,c.remove&&c.remove.call(e,s));l&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,g,m.handle)||d.removeEvent(e,f,m.handle),delete u[f])}else for(f in u)d.event.remove(e,f+t[p],o,i,!0);d.isEmptyObject(u)&&(delete m.handle,d._removeData(e,"events"))}},trigger:function(t,o,i,n){var r,s,a,l,u,c,h,f=[i||R],g=p.call(t,"type")?t.type:t,y=p.call(t,"namespace")?t.namespace.split("."):[];if(a=c=i=i||R,3!==i.nodeType&&8!==i.nodeType&&!X.test(g+d.event.triggered)&&(g.indexOf(".")>=0&&(y=g.split("."),g=y.shift(),y.sort()),s=g.indexOf(":")<0&&"on"+g,(t=t[d.expando]?t:new d.Event(g,"object"===_typeof2(t)&&t)).isTrigger=n?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),o=null==o?[t]:d.makeArray(o,[t]),u=d.event.special[g]||{},n||!u.trigger||!1!==u.trigger.apply(i,o))){if(!n&&!u.noBubble&&!d.isWindow(i)){for(l=u.delegateType||g,X.test(l+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),c=a;c===(i.ownerDocument||R)&&f.push(c.defaultView||c.parentWindow||e)}for(h=0;(a=f[h++])&&!t.isPropagationStopped();)t.type=h>1?l:u.bindType||g,(r=(d._data(a,"events")||{})[t.type]&&d._data(a,"handle"))&&r.apply(a,o),(r=s&&a[s])&&r.apply&&d.acceptData(a)&&(t.result=r.apply(a,o),!1===t.result&&t.preventDefault());if(t.type=g,!n&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),o))&&d.acceptData(i)&&s&&i[g]&&!d.isWindow(i)){(c=i[s])&&(i[s]=null),d.event.triggered=g;try{i[g]()}catch(e){}d.event.triggered=void 0,c&&(i[s]=c)}return t.result}},dispatch:function(e){e=d.event.fix(e);var t,o,n,r,s,a=[],l=i.call(arguments),p=(d._data(this,"events")||{})[e.type]||[],u=d.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=d.event.handlers.call(this,e,p),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,s=0;(n=r.handlers[s++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(n.namespace)||(e.handleObj=n,e.data=n.data,void 0!==(o=((d.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,l))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var o,i,n,r,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(n=[],r=0;r=0:d.find(o,this,null,[l]).length),n[o]&&n.push(i);n.length&&s.push({elem:l,handlers:n})}return a]","i"),re=/^\s+/,se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ae=/<([\w:]+)/,le=/\s*$/g,ge={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:u.htmlSerialize?[0,"",""]:[1,"X
","
"]},ye=te(R).appendChild(R.createElement("div"));function me(e,t){var o,i,n=0,r=_typeof2(e.getElementsByTagName)!==L?e.getElementsByTagName(t||"*"):_typeof2(e.querySelectorAll)!==L?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],o=e.childNodes||e;null!=(i=o[n]);n++)!t||d.nodeName(i,t)?r.push(i):d.merge(r,me(i,t));return void 0===t||t&&d.nodeName(e,t)?d.merge([e],r):r}function ve(e){Y.test(e.type)&&(e.defaultChecked=e.checked)}function Ce(e,t){return d.nodeName(e,"table")&&d.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function _e(e){return e.type=(null!==d.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function be(e,t){for(var o,i=0;null!=(o=e[i]);i++)d._data(o,"globalEval",!t||d._data(t[i],"globalEval"))}function Ee(e,t){if(1===t.nodeType&&d.hasData(e)){var o,i,n,r=d._data(e),s=d._data(t,r),a=r.events;if(a)for(o in delete s.handle,s.events={},a)for(i=0,n=a[o].length;i")?r=e.cloneNode(!0):(ye.innerHTML=e.outerHTML,ye.removeChild(r=ye.firstChild)),!(u.noCloneEvent&&u.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||d.isXMLDoc(e)))for(i=me(r),a=me(e),s=0;null!=(n=a[s]);++s)i[s]&&Re(n,i[s]);if(t)if(o)for(a=a||me(e),i=i||me(r),s=0;null!=(n=a[s]);s++)Ee(n,i[s]);else Ee(e,r);return(i=me(r,"script")).length>0&&be(i,!l&&me(e,"script")),i=a=n=null,r},buildFragment:function(e,t,o,i){for(var n,r,s,a,l,p,c,h=e.length,f=te(t),g=[],y=0;y")+c[2],n=c[0];n--;)a=a.lastChild;if(!u.leadingWhitespace&&re.test(r)&&g.push(t.createTextNode(re.exec(r)[0])),!u.tbody)for(n=(r="table"!==l||le.test(r)?""!==c[1]||le.test(r)?0:a:a.firstChild)&&r.childNodes.length;n--;)d.nodeName(p=r.childNodes[n],"tbody")&&!p.childNodes.length&&r.removeChild(p);for(d.merge(g,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=f.lastChild}else g.push(t.createTextNode(r));for(a&&f.removeChild(a),u.appendChecked||d.grep(me(g,"input"),ve),y=0;r=g[y++];)if((!i||-1===d.inArray(r,i))&&(s=d.contains(r.ownerDocument,r),a=me(f.appendChild(r),"script"),s&&be(a),o))for(n=0;r=a[n++];)de.test(r.type||"")&&o.push(r);return a=null,f},cleanData:function(e,t){for(var i,n,r,s,a=0,l=d.expando,p=d.cache,c=u.deleteExpando,h=d.event.special;null!=(i=e[a]);a++)if((t||d.acceptData(i))&&(s=(r=i[l])&&p[r])){if(s.events)for(n in s.events)h[n]?d.event.remove(i,n):d.removeEvent(i,n,s.handle);p[r]&&(delete p[r],c?delete i[l]:_typeof2(i.removeAttribute)!==L?i.removeAttribute(l):i[l]=null,o.push(r))}}}),d.fn.extend({text:function(e){return U(this,(function(e){return void 0===e?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||R).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ce(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ce(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var o,i=e?d.filter(e,this):this,n=0;null!=(o=i[n]);n++)t||1!==o.nodeType||d.cleanData(me(o)),o.parentNode&&(t&&d.contains(o.ownerDocument,o)&&be(me(o,"script")),o.parentNode.removeChild(o));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&d.cleanData(me(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&d.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return d.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},o=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ie,""):void 0;if("string"==typeof e&&!ue.test(e)&&(u.htmlSerialize||!ne.test(e))&&(u.leadingWhitespace||!re.test(e))&&!ge[(ae.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(se,"<$1>");try{for(;o1&&"string"==typeof g&&!u.checkClone&&ce.test(g))return this.each((function(o){var i=h.eq(o);y&&(e[0]=g.call(this,o,i.html())),i.domManip(e,t)}));if(c&&(o=(l=d.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=o),o)){for(r=(s=d.map(me(l,"script"),_e)).length;p")).appendTo(t.documentElement))[0].contentWindow||Se[0].contentDocument).document).write(),t.close(),o=Te(e,t),Se.detach()),Oe[e]=o),o}u.shrinkWrapBlocks=function(){return null!=Pe?Pe:(Pe=!1,(t=R.getElementsByTagName("body")[0])&&t.style?(e=R.createElement("div"),(o=R.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(o).appendChild(e),_typeof2(e.style.zoom)!==L&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(R.createElement("div")).style.width="5px",Pe=3!==e.offsetWidth),t.removeChild(o),Pe):void 0);var e,t,o};var De,xe,Fe=/^margin/,Me=new RegExp("^("+j+")(?!px)[a-z%]+$","i"),Ne=/^(top|right|bottom|left)$/;function Le(e,t){return{get:function(){var o=e();if(null!=o){if(!o)return(this.get=t).apply(this,arguments);delete this.get}}}}e.getComputedStyle?(De=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},xe=function(e,t,o){var i,n,r,s,a=e.style;return s=(o=o||De(e))?o.getPropertyValue(t)||o[t]:void 0,o&&(""!==s||d.contains(e.ownerDocument,e)||(s=d.style(e,t)),Me.test(s)&&Fe.test(t)&&(i=a.width,n=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=o.width,a.width=i,a.minWidth=n,a.maxWidth=r)),void 0===s?s:s+""}):R.documentElement.currentStyle&&(De=function(e){return e.currentStyle},xe=function(e,t,o){var i,n,r,s,a=e.style;return null==(s=(o=o||De(e))?o[t]:void 0)&&a&&a[t]&&(s=a[t]),Me.test(s)&&!Ne.test(t)&&(i=a.left,(r=(n=e.runtimeStyle)&&n.left)&&(n.left=e.currentStyle.left),a.left="fontSize"===t?"1em":s,s=a.pixelLeft+"px",a.left=i,r&&(n.left=r)),void 0===s?s:s+""||"auto"}),function(){var t,o,i,n,r,s,a;function l(){var t,o,i,l;(o=R.getElementsByTagName("body")[0])&&o.style&&(t=R.createElement("div"),(i=R.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",o.appendChild(i).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",n=r=!1,a=!0,e.getComputedStyle&&(n="1%"!==(e.getComputedStyle(t,null)||{}).top,r="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(l=t.appendChild(R.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",t.style.width="1px",a=!parseFloat((e.getComputedStyle(l,null)||{}).marginRight),t.removeChild(l)),t.innerHTML="
t
",(l=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",s=0===l[0].offsetHeight),o.removeChild(i))}(t=R.createElement("div")).innerHTML="
a",(o=(i=t.getElementsByTagName("a")[0])&&i.style)&&(o.cssText="float:left;opacity:.5",u.opacity="0.5"===o.opacity,u.cssFloat=!!o.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle="content-box"===t.style.backgroundClip,u.boxSizing=""===o.boxSizing||""===o.MozBoxSizing||""===o.WebkitBoxSizing,d.extend(u,{reliableHiddenOffsets:function(){return null==s&&l(),s},boxSizingReliable:function(){return null==r&&l(),r},pixelPosition:function(){return null==n&&l(),n},reliableMarginRight:function(){return null==a&&l(),a}}))}(),d.swap=function(e,t,o,i){var n,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in n=o.apply(e,i||[]),t)e.style[r]=s[r];return n};var Ie=/alpha\([^)]*\)/i,ke=/opacity\s*=\s*([^)]*)/,Ge=/^(none|table(?!-c[ea]).+)/,We=new RegExp("^("+j+")(.*)$","i"),He=new RegExp("^([+-])=("+j+")","i"),Ve={position:"absolute",visibility:"hidden",display:"block"},je={letterSpacing:"0",fontWeight:"400"},Be=["Webkit","O","Moz","ms"];function ze(e,t){if(t in e)return t;for(var o=t.charAt(0).toUpperCase()+t.slice(1),i=t,n=Be.length;n--;)if((t=Be[n]+o)in e)return t;return i}function Ue(e,t){for(var o,i,n,r=[],s=0,a=e.length;s=1||""===t)&&""===d.trim(r.replace(Ie,""))&&o.removeAttribute&&(o.removeAttribute("filter"),""===t||i&&!i.filter)||(o.filter=Ie.test(r)?r.replace(Ie,n):r+" "+n)}}),d.cssHooks.marginRight=Le(u.reliableMarginRight,(function(e,t){if(t)return d.swap(e,{display:"inline-block"},xe,[e,"marginRight"])})),d.each({margin:"",padding:"",border:"Width"},(function(e,t){d.cssHooks[e+t]={expand:function(o){for(var i=0,n={},r="string"==typeof o?o.split(" "):[o];i<4;i++)n[e+B[i]+t]=r[i]||r[i-2]||r[0];return n}},Fe.test(e)||(d.cssHooks[e+t].set=Ye)})),d.fn.extend({css:function(e,t){return U(this,(function(e,t,o){var i,n,r={},s=0;if(d.isArray(t)){for(i=De(e),n=t.length;s1)},show:function(){return Ue(this,!0)},hide:function(){return Ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){z(this)?d(this).show():d(this).hide()}))}}),d.Tween=Ke,Ke.prototype={constructor:Ke,init:function(e,t,o,i,n,r){this.elem=e,this.prop=o,this.easing=n||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(d.cssNumber[o]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,o=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=d.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),o&&o.set?o.set(this):Ke.propHooks._default.set(this),this}},Ke.prototype.init.prototype=Ke.prototype,Ke.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=d.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){d.fx.step[e.prop]?d.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[d.cssProps[e.prop]]||d.cssHooks[e.prop])?d.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ke.propHooks.scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},d.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},(d.fx=Ke.prototype.init).step={};var Xe,Qe,Ze,Je,et,tt,ot,it=/^(?:toggle|show|hide)$/,nt=new RegExp("^(?:([+-])=|)("+j+")([a-z%]*)$","i"),rt=/queueHooks$/,st=[function(e,t,o){var i,n,r,s,a,l,p,c=this,h={},f=e.style,g=e.nodeType&&z(e),y=d._data(e,"fxshow");o.queue||(null==(a=d._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always((function(){c.always((function(){a.unqueued--,d.queue(e,"fx").length||a.empty.fire()}))})));1===e.nodeType&&("height"in t||"width"in t)&&(o.overflow=[f.overflow,f.overflowX,f.overflowY],p=d.css(e,"display"),"inline"===("none"===p?d._data(e,"olddisplay")||Ae(e.nodeName):p)&&"none"===d.css(e,"float")&&(u.inlineBlockNeedsLayout&&"inline"!==Ae(e.nodeName)?f.zoom=1:f.display="inline-block"));o.overflow&&(f.overflow="hidden",u.shrinkWrapBlocks()||c.always((function(){f.overflow=o.overflow[0],f.overflowX=o.overflow[1],f.overflowY=o.overflow[2]})));for(i in t)if(n=t[i],it.exec(n)){if(delete t[i],r=r||"toggle"===n,n===(g?"hide":"show")){if("show"!==n||!y||void 0===y[i])continue;g=!0}h[i]=y&&y[i]||d.style(e,i)}else p=void 0;if(d.isEmptyObject(h))"inline"===("none"===p?Ae(e.nodeName):p)&&(f.display=p);else for(i in y?"hidden"in y&&(g=y.hidden):y=d._data(e,"fxshow",{}),r&&(y.hidden=!g),g?d(e).show():c.done((function(){d(e).hide()})),c.done((function(){var t;for(t in d._removeData(e,"fxshow"),h)d.style(e,t,h[t])})),h)s=ut(g?y[i]:0,i,c),i in y||(y[i]=s.start,g&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],at={"*":[function(e,t){var o=this.createTween(e,t),i=o.cur(),n=nt.exec(t),r=n&&n[3]||(d.cssNumber[e]?"":"px"),s=(d.cssNumber[e]||"px"!==r&&+i)&&nt.exec(d.css(o.elem,e)),a=1,l=20;if(s&&s[3]!==r){r=r||s[3],n=n||[],s=+i||1;do{s/=a=a||".5",d.style(o.elem,e,s+r)}while(a!==(a=o.cur()/i)&&1!==a&&--l)}return n&&(s=o.start=+s||+i||0,o.unit=r,o.end=n[1]?s+(n[1]+1)*n[2]:+n[2]),o}]};function lt(){return setTimeout((function(){Xe=void 0})),Xe=d.now()}function pt(e,t){var o,i={height:e},n=0;for(t=t?1:0;n<4;n+=2-t)i["margin"+(o=B[n])]=i["padding"+o]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,o){for(var i,n=(at[t]||[]).concat(at["*"]),r=0,s=n.length;r
a",tt=Je.getElementsByTagName("a")[0],ot=(et=R.createElement("select")).appendChild(R.createElement("option")),Ze=Je.getElementsByTagName("input")[0],tt.style.cssText="top:1px",u.getSetAttribute="t"!==Je.className,u.style=/top/.test(tt.getAttribute("style")),u.hrefNormalized="/a"===tt.getAttribute("href"),u.checkOn=!!Ze.value,u.optSelected=ot.selected,u.enctype=!!R.createElement("form").enctype,et.disabled=!0,u.optDisabled=!ot.disabled,(Ze=R.createElement("input")).setAttribute("value",""),u.input=""===Ze.getAttribute("value"),Ze.value="t",Ze.setAttribute("type","radio"),u.radioValue="t"===Ze.value;var dt=/\r/g;d.fn.extend({val:function(e){var t,o,i,n=this[0];return arguments.length?(i=d.isFunction(e),this.each((function(o){var n;1===this.nodeType&&(null==(n=i?e.call(this,o,d(this).val()):e)?n="":"number"==typeof n?n+="":d.isArray(n)&&(n=d.map(n,(function(e){return null==e?"":e+""}))),(t=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=d.valHooks[n.type]||d.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(o=t.get(n,"value"))?o:"string"==typeof(o=n.value)?o.replace(dt,""):null==o?"":o:void 0}}),d.extend({valHooks:{option:{get:function(e){var t=d.find.attr(e,"value");return null!=t?t:d.trim(d.text(e))}},select:{get:function(e){for(var t,o,i=e.options,n=e.selectedIndex,r="select-one"===e.type||n<0,s=r?null:[],a=r?n+1:i.length,l=n<0?a:r?n:0;l=0)try{i.selected=o=!0}catch(e){i.scrollHeight}else i.selected=!1;return o||(e.selectedIndex=-1),n}}}}),d.each(["radio","checkbox"],(function(){d.valHooks[this]={set:function(e,t){if(d.isArray(t))return e.checked=d.inArray(d(e).val(),t)>=0}},u.checkOn||(d.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var ht,ft,gt=d.expr.attrHandle,yt=/^(?:checked|selected)$/i,mt=u.getSetAttribute,vt=u.input;d.fn.extend({attr:function(e,t){return U(this,d.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){d.removeAttr(this,e)}))}}),d.extend({attr:function(e,t,o){var i,n,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return _typeof2(e.getAttribute)===L?d.prop(e,t,o):(1===r&&d.isXMLDoc(e)||(t=t.toLowerCase(),i=d.attrHooks[t]||(d.expr.match.bool.test(t)?ft:ht)),void 0===o?i&&"get"in i&&null!==(n=i.get(e,t))?n:null==(n=d.find.attr(e,t))?void 0:n:null!==o?i&&"set"in i&&void 0!==(n=i.set(e,o,t))?n:(e.setAttribute(t,o+""),o):void d.removeAttr(e,t))},removeAttr:function(e,t){var o,i,n=0,r=t&&t.match(D);if(r&&1===e.nodeType)for(;o=r[n++];)i=d.propFix[o]||o,d.expr.match.bool.test(o)?vt&&mt||!yt.test(o)?e[i]=!1:e[d.camelCase("default-"+o)]=e[i]=!1:d.attr(e,o,""),e.removeAttribute(mt?o:i)},attrHooks:{type:{set:function(e,t){if(!u.radioValue&&"radio"===t&&d.nodeName(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}}}),ft={set:function(e,t,o){return!1===t?d.removeAttr(e,o):vt&&mt||!yt.test(o)?e.setAttribute(!mt&&d.propFix[o]||o,o):e[d.camelCase("default-"+o)]=e[o]=!0,o}},d.each(d.expr.match.bool.source.match(/\w+/g),(function(e,t){var o=gt[t]||d.find.attr;gt[t]=vt&&mt||!yt.test(t)?function(e,t,i){var n,r;return i||(r=gt[t],gt[t]=n,n=null!=o(e,t,i)?t.toLowerCase():null,gt[t]=r),n}:function(e,t,o){if(!o)return e[d.camelCase("default-"+t)]?t.toLowerCase():null}})),vt&&mt||(d.attrHooks.value={set:function(e,t,o){if(!d.nodeName(e,"input"))return ht&&ht.set(e,t,o);e.defaultValue=t}}),mt||(ht={set:function(e,t,o){var i=e.getAttributeNode(o);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(o)),i.value=t+="","value"===o||t===e.getAttribute(o))return t}},gt.id=gt.name=gt.coords=function(e,t,o){var i;if(!o)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},d.valHooks.button={get:function(e,t){var o=e.getAttributeNode(t);if(o&&o.specified)return o.value},set:ht.set},d.attrHooks.contenteditable={set:function(e,t,o){ht.set(e,""!==t&&t,o)}},d.each(["width","height"],(function(e,t){d.attrHooks[t]={set:function(e,o){if(""===o)return e.setAttribute(t,"auto"),o}}}))),u.style||(d.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ct=/^(?:input|select|textarea|button|object)$/i,_t=/^(?:a|area)$/i;d.fn.extend({prop:function(e,t){return U(this,d.prop,e,t,arguments.length>1)},removeProp:function(e){return e=d.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),d.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,o){var i,n,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return(1!==r||!d.isXMLDoc(e))&&(t=d.propFix[t]||t,n=d.propHooks[t]),void 0!==o?n&&"set"in n&&void 0!==(i=n.set(e,o,t))?i:e[t]=o:n&&"get"in n&&null!==(i=n.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=d.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}}}),u.hrefNormalized||d.each(["href","src"],(function(e,t){d.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),u.optSelected||(d.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){d.propFix[this.toLowerCase()]=this})),u.enctype||(d.propFix.enctype="encoding");var wt=/[\t\r\n\f]/g;d.fn.extend({addClass:function(e){var t,o,i,n,r,s,a=0,l=this.length,p="string"==typeof e&&e;if(d.isFunction(e))return this.each((function(t){d(this).addClass(e.call(this,t,this.className))}));if(p)for(t=(e||"").match(D)||[];a=0;)i=i.replace(" "+n+" "," ");s=e?d.trim(i):"",o.className!==s&&(o.className=s)}return this},toggleClass:function(e,t){var o=_typeof2(e);return"boolean"==typeof t&&"string"===o?t?this.addClass(e):this.removeClass(e):d.isFunction(e)?this.each((function(o){d(this).toggleClass(e.call(this,o,this.className,t),t)})):this.each((function(){if("string"===o)for(var t,i=0,n=d(this),r=e.match(D)||[];t=r[i++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else o!==L&&"boolean"!==o||(this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===e?"":d._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",o=0,i=this.length;o=0)return!0;return!1}}),d.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){d.fn[t]=function(e,o){return arguments.length>0?this.on(t,null,e,o):this.trigger(t)}})),d.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,o){return this.on(e,null,t,o)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,o,i){return this.on(t,e,o,i)},undelegate:function(e,t,o){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",o)}});var bt=d.now(),Et=/\?/,Rt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;d.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var o,i=null,n=d.trim(t+"");return n&&!d.trim(n.replace(Rt,(function(e,t,n,r){return o&&t&&(i=0),0===i?e:(o=n||t,i+=!r-!n,"")})))?Function("return "+n)():d.error("Invalid JSON: "+t)},d.parseXML=function(t){var o;if(!t||"string"!=typeof t)return null;try{e.DOMParser?o=(new DOMParser).parseFromString(t,"text/xml"):((o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(t))}catch(e){o=void 0}return o&&o.documentElement&&!o.getElementsByTagName("parsererror").length||d.error("Invalid XML: "+t),o};var St,Pt,Ot=/#.*$/,Tt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Dt=/^(?:GET|HEAD)$/,xt=/^\/\//,Ft=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Mt={},Nt={},Lt="*/".concat("*");try{Pt=location.href}catch(e){(Pt=R.createElement("a")).href="",Pt=Pt.href}function It(e){return function(t,o){"string"!=typeof t&&(o=t,t="*");var i,n=0,r=t.toLowerCase().match(D)||[];if(d.isFunction(o))for(;i=r[n++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(o)):(e[i]=e[i]||[]).push(o)}}function kt(e,t,o,i){var n={},r=e===Nt;function s(a){var l;return n[a]=!0,d.each(e[a]||[],(function(e,a){var p=a(t,o,i);return"string"!=typeof p||r||n[p]?r?!(l=p):void 0:(t.dataTypes.unshift(p),s(p),!1)})),l}return s(t.dataTypes[0])||!n["*"]&&s("*")}function Gt(e,t){var o,i,n=d.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:o||(o={}))[i]=t[i]);return o&&d.extend(!0,e,o),e}St=Ft.exec(Pt.toLowerCase())||[],d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,d.ajaxSettings),t):Gt(d.ajaxSettings,e)},ajaxPrefilter:It(Mt),ajaxTransport:It(Nt),ajax:function(e,t){"object"===_typeof2(e)&&(t=e,e=void 0);var o,i,n,r,s,a,l,p,u=d.ajaxSetup({},t=t||{}),c=u.context||u,h=u.context&&(c.nodeType||c.jquery)?d(c):d.event,f=d.Deferred(),g=d.Callbacks("once memory"),y=u.statusCode||{},m={},v={},C=0,_="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===C){if(!p)for(p={};t=At.exec(r);)p[t[1].toLowerCase()]=t[2];t=p[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===C?r:null},setRequestHeader:function(e,t){var o=e.toLowerCase();return C||(e=v[o]=v[o]||e,m[e]=t),this},overrideMimeType:function(e){return C||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(C<2)for(t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||_;return l&&l.abort(t),b(0,t),this}};if(f.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,u.url=((e||u.url||Pt)+"").replace(Ot,"").replace(xt,St[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=d.trim(u.dataType||"*").toLowerCase().match(D)||[""],null==u.crossDomain&&(o=Ft.exec(u.url.toLowerCase()),u.crossDomain=!(!o||o[1]===St[1]&&o[2]===St[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(St[3]||("http:"===St[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=d.param(u.data,u.traditional)),kt(Mt,u,t,w),2===C)return w;for(i in(a=d.event&&u.global)&&0==d.active++&&d.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Dt.test(u.type),n=u.url,u.hasContent||(u.data&&(n=u.url+=(Et.test(n)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=Tt.test(n)?n.replace(Tt,"$1_="+bt++):n+(Et.test(n)?"&":"?")+"_="+bt++)),u.ifModified&&(d.lastModified[n]&&w.setRequestHeader("If-Modified-Since",d.lastModified[n]),d.etag[n]&&w.setRequestHeader("If-None-Match",d.etag[n])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&w.setRequestHeader("Content-Type",u.contentType),w.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Lt+"; q=0.01":""):u.accepts["*"]),u.headers)w.setRequestHeader(i,u.headers[i]);if(u.beforeSend&&(!1===u.beforeSend.call(c,w,u)||2===C))return w.abort();for(i in _="abort",{success:1,error:1,complete:1})w[i](u[i]);if(l=kt(Nt,u,t,w)){w.readyState=1,a&&h.trigger("ajaxSend",[w,u]),u.async&&u.timeout>0&&(s=setTimeout((function(){w.abort("timeout")}),u.timeout));try{C=1,l.send(m,b)}catch(e){if(!(C<2))throw e;b(-1,e)}}else b(-1,"No Transport");function b(e,t,o,i){var p,m,v,_,b,E=t;2!==C&&(C=2,s&&clearTimeout(s),l=void 0,r=i||"",w.readyState=e>0?4:0,p=e>=200&&e<300||304===e,o&&(_=function(e,t,o){for(var i,n,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in o)r=l[0];else{for(s in o){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}i||(i=s)}r=r||i}if(r)return r!==l[0]&&l.unshift(r),o[r]}(u,w,o)),_=function(e,t,o,i){var n,r,s,a,l,p={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)p[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(o[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=p[l+" "+r]||p["* "+r]))for(n in p)if((a=n.split(" "))[1]===r&&(s=p[l+" "+a[0]]||p["* "+a[0]])){!0===s?s=p[n]:!0!==p[n]&&(r=a[0],u.unshift(a[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 "+l+" to "+r}}}return{state:"success",data:t}}(u,_,w,p),p?(u.ifModified&&((b=w.getResponseHeader("Last-Modified"))&&(d.lastModified[n]=b),(b=w.getResponseHeader("etag"))&&(d.etag[n]=b)),204===e||"HEAD"===u.type?E="nocontent":304===e?E="notmodified":(E=_.state,m=_.data,p=!(v=_.error))):(v=E,!e&&E||(E="error",e<0&&(e=0))),w.status=e,w.statusText=(t||E)+"",p?f.resolveWith(c,[m,E,w]):f.rejectWith(c,[w,E,v]),w.statusCode(y),y=void 0,a&&h.trigger(p?"ajaxSuccess":"ajaxError",[w,u,p?m:v]),g.fireWith(c,[w,E]),a&&(h.trigger("ajaxComplete",[w,u]),--d.active||d.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,o){return d.get(e,t,o,"json")},getScript:function(e,t){return d.get(e,void 0,t,"script")}}),d.each(["get","post"],(function(e,t){d[t]=function(e,o,i,n){return d.isFunction(o)&&(n=n||i,i=o,o=void 0),d.ajax({url:e,type:t,dataType:n,data:o,success:i})}})),d._evalUrl=function(e){return d.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},d.fn.extend({wrapAll:function(e){if(d.isFunction(e))return this.each((function(t){d(this).wrapAll(e.call(this,t))}));if(this[0]){var t=d(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return d.isFunction(e)?this.each((function(t){d(this).wrapInner(e.call(this,t))})):this.each((function(){var t=d(this),o=t.contents();o.length?o.wrapAll(e):t.append(e)}))},wrap:function(e){var t=d.isFunction(e);return this.each((function(o){d(this).wrapAll(t?e.call(this,o):e)}))},unwrap:function(){return this.parent().each((function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)})).end()}}),d.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!u.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||d.css(e,"display"))},d.expr.filters.visible=function(e){return!d.expr.filters.hidden(e)};var Wt=/%20/g,Ht=/\[\]$/,Vt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Bt=/^(?:input|select|textarea|keygen)/i;function zt(e,t,o,i){var n;if(d.isArray(t))d.each(t,(function(t,n){o||Ht.test(e)?i(e,n):zt(e+"["+("object"===_typeof2(n)?t:"")+"]",n,o,i)}));else if(o||"object"!==d.type(t))i(e,t);else for(n in t)zt(e+"["+n+"]",t[n],o,i)}d.param=function(e,t){var o,i=[],n=function(e,t){t=d.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=d.ajaxSettings&&d.ajaxSettings.traditional),d.isArray(e)||e.jquery&&!d.isPlainObject(e))d.each(e,(function(){n(this.name,this.value)}));else for(o in e)zt(o,e[o],t,n);return i.join("&").replace(Wt,"+")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=d.prop(this,"elements");return e?d.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!d(this).is(":disabled")&&Bt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Y.test(e))})).map((function(e,t){var o=d(this).val();return null==o?null:d.isArray(o)?d.map(o,(function(e){return{name:t.name,value:e.replace(Vt,"\r\n")}})):{name:t.name,value:o.replace(Vt,"\r\n")}})).get()}}),d.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&qt()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:qt;var Ut=0,Yt={},$t=d.ajaxSettings.xhr();function qt(){try{return new e.XMLHttpRequest}catch(e){}}e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in Yt)Yt[e](void 0,!0)})),u.cors=!!$t&&"withCredentials"in $t,($t=u.ajax=!!$t)&&d.ajaxTransport((function(e){var t;if(!e.crossDomain||u.cors)return{send:function(o,i){var n,r=e.xhr(),s=++Ut;if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(n in e.xhrFields)r[n]=e.xhrFields[n];for(n in e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)void 0!==o[n]&&r.setRequestHeader(n,o[n]+"");r.send(e.hasContent&&e.data||null),t=function(o,n){var a,l,p;if(t&&(n||4===r.readyState))if(delete Yt[s],t=void 0,r.onreadystatechange=d.noop,n)4!==r.readyState&&r.abort();else{p={},a=r.status,"string"==typeof r.responseText&&(p.text=r.responseText);try{l=r.statusText}catch(e){l=""}a||!e.isLocal||e.crossDomain?1223===a&&(a=204):a=p.text?200:404}p&&i(a,l,p,r.getAllResponseHeaders())},e.async?4===r.readyState?setTimeout(t):r.onreadystatechange=Yt[s]=t:t()},abort:function(){t&&t(void 0,!0)}}})),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return d.globalEval(e),e}}}),d.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),d.ajaxTransport("script",(function(e){if(e.crossDomain){var t,o=R.head||d("head")[0]||R.documentElement;return{send:function(i,n){(t=R.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,o){(o||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,o||n(200,"success"))},o.insertBefore(t,o.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var Kt=[],Xt=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||d.expando+"_"+bt++;return this[e]=!0,e}}),d.ajaxPrefilter("json jsonp",(function(t,o,i){var n,r,s,a=!1!==t.jsonp&&(Xt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=d.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xt,"$1"+n):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return s||d.error(n+" was not called"),s[0]},t.dataTypes[0]="json",r=e[n],e[n]=function(){s=arguments},i.always((function(){e[n]=r,t[n]&&(t.jsonpCallback=o.jsonpCallback,Kt.push(n)),s&&d.isFunction(r)&&r(s[0]),s=r=void 0})),"script"})),d.parseHTML=function(e,t,o){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(o=t,t=!1),t=t||R;var i=_.exec(e),n=!o&&[];return i?[t.createElement(i[1])]:(i=d.buildFragment([e],t,n),n&&n.length&&d(n).remove(),d.merge([],i.childNodes))};var Qt=d.fn.load;d.fn.load=function(e,t,o){if("string"!=typeof e&&Qt)return Qt.apply(this,arguments);var i,n,r,s=this,a=e.indexOf(" ");return a>=0&&(i=d.trim(e.slice(a,e.length)),e=e.slice(0,a)),d.isFunction(t)?(o=t,t=void 0):t&&"object"===_typeof2(t)&&(r="POST"),s.length>0&&d.ajax({url:e,type:r,dataType:"html",data:t}).done((function(e){n=arguments,s.html(i?d("
").append(d.parseHTML(e)).find(i):e)})).complete(o&&function(e,t){s.each(o,n||[e.responseText,t,e])}),this},d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){d.fn[t]=function(e){return this.on(t,e)}})),d.expr.filters.animated=function(e){return d.grep(d.timers,(function(t){return e===t.elem})).length};var Zt=e.document.documentElement;function Jt(e){return d.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}d.offset={setOffset:function(e,t,o){var i,n,r,s,a,l,p=d.css(e,"position"),u=d(e),c={};"static"===p&&(e.style.position="relative"),a=u.offset(),r=d.css(e,"top"),l=d.css(e,"left"),("absolute"===p||"fixed"===p)&&d.inArray("auto",[r,l])>-1?(s=(i=u.position()).top,n=i.left):(s=parseFloat(r)||0,n=parseFloat(l)||0),d.isFunction(t)&&(t=t.call(e,o,a)),null!=t.top&&(c.top=t.top-a.top+s),null!=t.left&&(c.left=t.left-a.left+n),"using"in t?t.using.call(e,c):u.css(c)}},d.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){d.offset.setOffset(this,e,t)}));var t,o,i={top:0,left:0},n=this[0],r=n&&n.ownerDocument;return r?(t=r.documentElement,d.contains(t,n)?(_typeof2(n.getBoundingClientRect)!==L&&(i=n.getBoundingClientRect()),o=Jt(r),{top:i.top+(o.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(o.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,o={top:0,left:0},i=this[0];return"fixed"===d.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),d.nodeName(e[0],"html")||(o=e.offset()),o.top+=d.css(e[0],"borderTopWidth",!0),o.left+=d.css(e[0],"borderLeftWidth",!0)),{top:t.top-o.top-d.css(i,"marginTop",!0),left:t.left-o.left-d.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Zt;e&&!d.nodeName(e,"html")&&"static"===d.css(e,"position");)e=e.offsetParent;return e||Zt}))}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var o=/Y/.test(t);d.fn[e]=function(i){return U(this,(function(e,i,n){var r=Jt(e);if(void 0===n)return r?t in r?r[t]:r.document.documentElement[i]:e[i];r?r.scrollTo(o?d(r).scrollLeft():n,o?n:d(r).scrollTop()):e[i]=n}),e,i,arguments.length,null)}})),d.each(["top","left"],(function(e,t){d.cssHooks[t]=Le(u.pixelPosition,(function(e,o){if(o)return o=xe(e,t),Me.test(o)?d(e).position()[t]+"px":o}))})),d.each({Height:"height",Width:"width"},(function(e,t){d.each({padding:"inner"+e,content:t,"":"outer"+e},(function(o,i){d.fn[i]=function(i,n){var r=arguments.length&&(o||"boolean"!=typeof i),s=o||(!0===i||!0===n?"margin":"border");return U(this,(function(t,o,i){var n;return d.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+e],n["scroll"+e],t.body["offset"+e],n["offset"+e],n["client"+e])):void 0===i?d.css(t,o,s):d.style(t,o,i,s)}),t,r?i:void 0,r,null)}}))})),d.fn.size=function(){return this.length},d.fn.andSelf=d.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return d}));var eo=e.jQuery,to=e.$;return d.noConflict=function(t){return e.$===d&&(e.$=to),t&&e.jQuery===d&&(e.jQuery=eo),d},_typeof2(t)===L&&(e.jQuery=e.$=d),d})),function(e,t){function o(t,o){var n,r,s,a=t.nodeName.toLowerCase();return"area"===a?(r=(n=t.parentNode).name,!(!t.href||!r||"map"!==n.nodeName.toLowerCase())&&(!!(s=e("img[usemap=#"+r+"]")[0])&&i(s))):(/input|select|textarea|button|object/.test(a)?!t.disabled:"a"===a&&t.href||o)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter((function(){return"hidden"===e.css(this,"visibility")})).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(o,i){return"number"==typeof o?this.each((function(){var t=this;setTimeout((function(){e(t).focus(),i&&i.call(t)}),o)})):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(o){if(o!==t)return this.css("zIndex",o);if(this.length)for(var i,n,r=e(this[0]);r.length&&r[0]!==document;){if(("absolute"===(i=r.css("position"))||"relative"===i||"fixed"===i)&&(n=parseInt(r.css("zIndex"),10),!isNaN(n)&&0!==n))return n;r=r.parent()}return 0},uniqueId:function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++n)}))},removeUniqueId:function(){return this.each((function(){r.test(this.id)&&e(this).removeAttr("id")}))}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(o){return!!e.data(o,t)}})):function(t,o,i){return!!e.data(t,i[3])},focusable:function(t){return o(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var i=e.attr(t,"tabindex"),n=isNaN(i);return(n||i>=0)&&o(t,!n)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],(function(o,i){function n(t,o,i,n){return e.each(r,(function(){o-=parseFloat(e.css(t,"padding"+this))||0,i&&(o-=parseFloat(e.css(t,"border"+this+"Width"))||0),n&&(o-=parseFloat(e.css(t,"margin"+this))||0)})),o}var r="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),a={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(o){return o===t?a["inner"+i].call(this):this.each((function(){e(this).css(s,n(this,o)+"px")}))},e.fn["outer"+i]=function(t,o){return"number"!=typeof t?a["outer"+i].call(this,t):this.each((function(){e(this).css(s,n(this,t,!0,o)+"px")}))}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(o){return arguments.length?t.call(this,e.camelCase(o)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(e){e.preventDefault()}))},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,o,i){var n,r=e.ui[t].prototype;for(n in i)r.plugins[n]=r.plugins[n]||[],r.plugins[n].push([o,i[n]])},call:function(e,t,o){var i,n=e.plugins[t];if(n&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(i=0;n.length>i;i++)e.options[n[i][0]]&&n[i][1].apply(e.element,o)}},hasScroll:function(t,o){if("hidden"===e(t).css("overflow"))return!1;var i=o&&"left"===o?"scrollLeft":"scrollTop",n=!1;return t[i]>0||(t[i]=1,n=t[i]>0,t[i]=0,n)}})}(jQuery),function(e,t){var o=0,i=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var o,i=0;null!=(o=t[i]);i++)try{e(o).triggerHandler("remove")}catch(e){}n(t)},e.widget=function(o,i,n){var r,s,a,l,p={},u=o.split(".")[0];o=o.split(".")[1],r=u+"-"+o,n||(n=i,i=e.Widget),e.expr[":"][r.toLowerCase()]=function(t){return!!e.data(t,r)},e[u]=e[u]||{},s=e[u][o],a=e[u][o]=function(e,o){return this._createWidget?(arguments.length&&this._createWidget(e,o),t):new a(e,o)},e.extend(a,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(l=new i).options=e.widget.extend({},l.options),e.each(n,(function(o,n){return e.isFunction(n)?(p[o]=function(){var e=function(){return i.prototype[o].apply(this,arguments)},t=function(e){return i.prototype[o].apply(this,e)};return function(){var o,i=this._super,r=this._superApply;return this._super=e,this._superApply=t,o=n.apply(this,arguments),this._super=i,this._superApply=r,o}}(),t):(p[o]=n,t)})),a.prototype=e.widget.extend(l,{widgetEventPrefix:s?l.widgetEventPrefix:o},p,{constructor:a,namespace:u,widgetName:o,widgetFullName:r}),s?(e.each(s._childConstructors,(function(t,o){var i=o.prototype;e.widget(i.namespace+"."+i.widgetName,a,o._proto)})),delete s._childConstructors):i._childConstructors.push(a),e.widget.bridge(o,a)},e.widget.extend=function(o){for(var n,r,s=i.call(arguments,1),a=0,l=s.length;l>a;a++)for(n in s[a])r=s[a][n],s[a].hasOwnProperty(n)&&r!==t&&(o[n]=e.isPlainObject(r)?e.isPlainObject(o[n])?e.widget.extend({},o[n],r):e.widget.extend({},r):r);return o},e.widget.bridge=function(o,n){var r=n.prototype.widgetFullName||o;e.fn[o]=function(s){var a="string"==typeof s,l=i.call(arguments,1),p=this;return s=!a&&l.length?e.widget.extend.apply(null,[s].concat(l)):s,a?this.each((function(){var i,n=e.data(this,r);return n?e.isFunction(n[s])&&"_"!==s.charAt(0)?(i=n[s].apply(n,l))!==n&&i!==t?(p=i&&i.jquery?p.pushStack(i.get()):i,!1):t:e.error("no such method '"+s+"' for "+o+" widget instance"):e.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+s+"'")})):this.each((function(){var t=e.data(this,r);t?t.option(s||{})._init():e.data(this,r,new n(s,this))})),p}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=o++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(o,i){var n,r,s,a=o;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof o)if(a={},n=o.split("."),o=n.shift(),n.length){for(r=a[o]=e.widget.extend({},this.options[o]),s=0;n.length-1>s;s++)r[n[s]]=r[n[s]]||{},r=r[n[s]];if(o=n.pop(),i===t)return r[o]===t?null:r[o];r[o]=i}else{if(i===t)return this.options[o]===t?null:this.options[o];a[o]=i}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(o,i,n){var r,s=this;"boolean"!=typeof o&&(n=i,i=o,o=!1),n?(i=r=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),e.each(n,(function(n,a){function l(){return o||!0!==s.options.disabled&&!e(this).hasClass("ui-state-disabled")?("string"==typeof a?s[a]:a).apply(s,arguments):t}"string"!=typeof a&&(l.guid=a.guid=a.guid||l.guid||e.guid++);var p=n.match(/^(\w+)\s*(.*)$/),u=p[1]+s.eventNamespace,c=p[2];c?r.delegate(c,u,l):i.bind(u,l)}))},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){var o=this;return setTimeout((function(){return("string"==typeof e?o[e]:e).apply(o,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,o,i){var n,r,s=this.options[t];if(i=i||{},(o=e.Event(o)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),o.target=this.element[0],r=o.originalEvent)for(n in r)n in o||(o[n]=r[n]);return this.element.trigger(o,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[o].concat(i))||o.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,o){e.Widget.prototype["_"+t]=function(i,n,r){"string"==typeof n&&(n={effect:n});var s,a=n?!0===n||"number"==typeof n?o:n.effect||o:t;"number"==typeof(n=n||{})&&(n={duration:n}),s=!e.isEmptyObject(n),n.complete=r,n.delay&&i.delay(n.delay),s&&e.effects&&e.effects.effect[a]?i[t](n):a!==t&&i[a]?i[a](n.duration,n.easing,r):i.queue((function(o){e(this)[t](),r&&r.call(i[0]),o()}))}}))}(jQuery),function(e){var t=!1;e(document).mouseup((function(){t=!1})),e.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).bind("click."+this.widgetName,(function(o){return!0===e.data(o.target,t.widgetName+".preventClickEvent")?(e.removeData(o.target,t.widgetName+".preventClickEvent"),o.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(o){if(!t){this._mouseStarted&&this._mouseUp(o),this._mouseDownEvent=o;var i=this,n=1===o.which,r=!("string"!=typeof this.options.cancel||!o.target.nodeName)&&e(o.target).closest(this.options.cancel).length;return!(n&&!r&&this._mouseCapture(o))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(o)&&this._mouseDelayMet(o)&&(this._mouseStarted=!1!==this._mouseStart(o),!this._mouseStarted)?(o.preventDefault(),!0):(!0===e.data(o.target,this.widgetName+".preventClickEvent")&&e.removeData(o.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),o.preventDefault(),t=!0,!0))}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e,t){function o(e,t,o){return[parseFloat(e[0])*(h.test(e[0])?t/100:1),parseFloat(e[1])*(h.test(e[1])?o/100:1)]}function i(t,o){return parseInt(e.css(t,o),10)||0}function n(t){var o=t[0];return 9===o.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(o)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:o.preventDefault?{width:0,height:0,offset:{top:o.pageY,left:o.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var r,s=Math.max,a=Math.abs,l=Math.round,p=/left|center|right/,u=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,h=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(undefined!==r)return r;var t,o,i=e("
"),n=i.children()[0];return e("body").append(i),t=n.offsetWidth,i.css("overflow","scroll"),t===(o=n.offsetWidth)&&(o=i[0].clientWidth),i.remove(),r=t-o},getScrollInfo:function(t){var o=t.isWindow?"":t.element.css("overflow-x"),i=t.isWindow?"":t.element.css("overflow-y"),n="scroll"===o||"auto"===o&&t.widthi?"left":o>0?"right":"center",vertical:0>r?"top":n>0?"bottom":"middle"};c>h&&h>a(o+i)&&(l.horizontal="center"),d>g&&g>a(n+r)&&(l.vertical="middle"),l.important=s(a(o),a(i))>s(a(n),a(r))?"horizontal":"vertical",t.using.call(this,e,l)}),u.offset(e.extend(P,{using:p}))}))},e.ui.position={fit:{left:function(e,t){var o,i=t.within,n=i.isWindow?i.scrollLeft:i.offset.left,r=i.width,a=e.left-t.collisionPosition.marginLeft,l=n-a,p=a+t.collisionWidth-r-n;t.collisionWidth>r?l>0&&0>=p?(o=e.left+l+t.collisionWidth-r-n,e.left+=l-o):e.left=p>0&&0>=l?n:l>p?n+r-t.collisionWidth:n:l>0?e.left+=l:p>0?e.left-=p:e.left=s(e.left-a,e.left)},top:function(e,t){var o,i=t.within,n=i.isWindow?i.scrollTop:i.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=n-a,p=a+t.collisionHeight-r-n;t.collisionHeight>r?l>0&&0>=p?(o=e.top+l+t.collisionHeight-r-n,e.top+=l-o):e.top=p>0&&0>=l?n:l>p?n+r-t.collisionHeight:n:l>0?e.top+=l:p>0?e.top-=p:e.top=s(e.top-a,e.top)}},flip:{left:function(e,t){var o,i,n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,p=e.left-t.collisionPosition.marginLeft,u=p-l,c=p+t.collisionWidth-s-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,h="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(0>(o=e.left+d+h+f+t.collisionWidth-s-r)||a(u)>o)&&(e.left+=d+h+f):c>0&&(((i=e.left-t.collisionPosition.marginLeft+d+h+f-l)>0||c>a(i))&&(e.left+=d+h+f))},top:function(e,t){var o,i,n=t.within,r=n.offset.top+n.scrollTop,s=n.height,l=n.isWindow?n.scrollTop:n.offset.top,p=e.top-t.collisionPosition.marginTop,u=p-l,c=p+t.collisionHeight-s-l,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,h="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];0>u?(i=e.top+d+h+f+t.collisionHeight-s-r,e.top+d+h+f>u&&(0>i||a(u)>i)&&(e.top+=d+h+f)):c>0&&(o=e.top-t.collisionPosition.marginTop+d+h+f-l,e.top+d+h+f>c&&(o>0||c>a(o))&&(e.top+=d+h+f))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,o,i,n,r,s=document.getElementsByTagName("body")[0],a=document.createElement("div");for(r in t=document.createElement(s?"div":"body"),i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},s&&e.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"}),i)t.style[r]=i[r];t.appendChild(a),(o=s||document.documentElement).insertBefore(t,o.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",n=e(a).offset().left,e.support.offsetFractions=n>10&&11>n,t.innerHTML="",o.removeChild(t)}()}(jQuery),function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var o=this.options;return!(this.helper||o.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(e(!0===o.iframeFix?"iframe":o.iframeFix).each((function(){e("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")})),!0))},_mouseStart:function(t){var o=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,o){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!o){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp({}),!1;this.position=i.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var o=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!e.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==o._trigger("stop",t)&&o._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1)},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(t){var o=this.options,i=e.isFunction(o.helper)?e(o.helper.apply(this.element[0],[t])):"clone"===o.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===o.appendTo?this.element[0].parentNode:o.appendTo),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,o,i,n=this.options;return n.containment?"window"===n.containment?void(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,e(document).width()-this.helperProportions.width-this.margins.left,(e(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((i=(o=e(n.containment))[0])&&(t="hidden"!==o.css("overflow"),this.containment=[(parseInt(o.css("borderLeftWidth"),10)||0)+(parseInt(o.css("paddingLeft"),10)||0),(parseInt(o.css("borderTopWidth"),10)||0)+(parseInt(o.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(o.css("borderRightWidth"),10)||0)-(parseInt(o.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(o.css("borderBottomWidth"),10)||0)-(parseInt(o.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=o))):void(this.containment=null)},_convertPositionTo:function(t,o){o||(o=this.position);var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:n.scrollTop(),left:n.scrollLeft()}),{top:o.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*i,left:o.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*i}},_generatePosition:function(t){var o,i,n,r,s=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=t.pageX,p=t.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(i=this.relative_container.offset(),o=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):o=this.containment,t.pageX-this.offset.click.lefto[2]&&(l=o[2]+this.offset.click.left),t.pageY-this.offset.click.top>o[3]&&(p=o[3]+this.offset.click.top)),s.grid&&(n=s.grid[1]?this.originalPageY+Math.round((p-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,p=o?n-this.offset.click.top>=o[1]||n-this.offset.click.top>o[3]?n:n-this.offset.click.top>=o[1]?n-s.grid[1]:n+s.grid[1]:n,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=o?r-this.offset.click.left>=o[0]||r-this.offset.click.left>o[2]?r:r-this.offset.click.left>=o[0]?r-s.grid[0]:r+s.grid[0]:r)),{top:p-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,o,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[o,i]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,o,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,o){var i=e(this).data("ui-draggable"),n=i.options,r=e.extend({},o,{item:i.element});i.sortables=[],e(n.connectToSortable).each((function(){var o=e.data(this,"ui-sortable");o&&!o.options.disabled&&(i.sortables.push({instance:o,shouldRevert:o.options.revert}),o.refreshPositions(),o._trigger("activate",t,r))}))},stop:function(t,o){var i=e(this).data("ui-draggable"),n=e.extend({},o,{item:i.element});e.each(i.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,i.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===i.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,n))}))},drag:function(t,o){var i=e(this).data("ui-draggable"),n=this;e.each(i.sortables,(function(){var r=!1,s=this;this.instance.positionAbs=i.positionAbs,this.instance.helperProportions=i.helperProportions,this.instance.offset.click=i.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(r=!0,e.each(i.sortables,(function(){return this.instance.positionAbs=i.positionAbs,this.instance.helperProportions=i.helperProportions,this.instance.offset.click=i.offset.click,this!==s&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(s.instance.element[0],this.instance.element[0])&&(r=!1),r}))),r?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return o.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=i.offset.click.top,this.instance.offset.click.left=i.offset.click.left,this.instance.offset.parent.left-=i.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=i.offset.parent.top-this.instance.offset.parent.top,i._trigger("toSortable",t),i.dropped=this.instance.element,i.currentItem=i.element,this.instance.fromOutside=i),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),i._trigger("fromSortable",t),i.dropped=!1)}))}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),o=e(this).data("ui-draggable").options;t.css("cursor")&&(o._cursor=t.css("cursor")),t.css("cursor",o.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,o){var i=e(o.helper),n=e(this).data("ui-draggable").options;i.css("opacity")&&(n._opacity=i.css("opacity")),i.css("opacity",n.opacity)},stop:function(t,o){var i=e(this).data("ui-draggable").options;i._opacity&&e(o.helper).css("opacity",i._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var o=e(this).data("ui-draggable"),i=o.options,n=!1;o.scrollParent[0]!==document&&"HTML"!==o.scrollParent[0].tagName?(i.axis&&"x"===i.axis||(o.overflowOffset.top+o.scrollParent[0].offsetHeight-t.pageY=0;c--)l=(a=h.snapElements[c].left)+h.snapElements[c].width,u=(p=h.snapElements[c].top)+h.snapElements[c].height,a-g>m||y>l+g||p-g>C||v>u+g||!e.contains(h.snapElements[c].item.ownerDocument,h.snapElements[c].item)?(h.snapElements[c].snapping&&h.options.snap.release&&h.options.snap.release.call(h.element,t,e.extend(h._uiHash(),{snapItem:h.snapElements[c].item})),h.snapElements[c].snapping=!1):("inner"!==f.snapMode&&(i=g>=Math.abs(p-C),n=g>=Math.abs(u-v),r=g>=Math.abs(a-m),s=g>=Math.abs(l-y),i&&(o.position.top=h._convertPositionTo("relative",{top:p-h.helperProportions.height,left:0}).top-h.margins.top),n&&(o.position.top=h._convertPositionTo("relative",{top:u,left:0}).top-h.margins.top),r&&(o.position.left=h._convertPositionTo("relative",{top:0,left:a-h.helperProportions.width}).left-h.margins.left),s&&(o.position.left=h._convertPositionTo("relative",{top:0,left:l}).left-h.margins.left)),d=i||n||r||s,"outer"!==f.snapMode&&(i=g>=Math.abs(p-v),n=g>=Math.abs(u-C),r=g>=Math.abs(a-y),s=g>=Math.abs(l-m),i&&(o.position.top=h._convertPositionTo("relative",{top:p,left:0}).top-h.margins.top),n&&(o.position.top=h._convertPositionTo("relative",{top:u-h.helperProportions.height,left:0}).top-h.margins.top),r&&(o.position.left=h._convertPositionTo("relative",{top:0,left:a}).left-h.margins.left),s&&(o.position.left=h._convertPositionTo("relative",{top:0,left:l-h.helperProportions.width}).left-h.margins.left)),!h.snapElements[c].snapping&&(i||n||r||s||d)&&h.options.snap.snap&&h.options.snap.snap.call(h.element,t,e.extend(h._uiHash(),{snapItem:h.snapElements[c].item})),h.snapElements[c].snapping=i||n||r||s||d)}}),e.ui.plugin.add("draggable","stack",{start:function(){var t,o=this.data("ui-draggable").options,i=e.makeArray(e(o.stack)).sort((function(t,o){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(o).css("zIndex"),10)||0)}));i.length&&(t=parseInt(e(i[0]).css("zIndex"),10)||0,e(i).each((function(o){e(this).css("zIndex",t+o)})),this.css("zIndex",t+i.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,o){var i=e(o.helper),n=e(this).data("ui-draggable").options;i.css("zIndex")&&(n._zIndex=i.css("zIndex")),i.css("zIndex",n.zIndex)},stop:function(t,o){var i=e(this).data("ui-draggable").options;i._zIndex&&e(o.helper).css("zIndex",i._zIndex)}})}(jQuery),function(e){function t(e,t,o){return e>t&&t+o>e}e.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t=this.options,o=t.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(o)?o:function(e){return e.is(o)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},e.ui.ddmanager.droppables[t.scope]=e.ui.ddmanager.droppables[t.scope]||[],e.ui.ddmanager.droppables[t.scope].push(this),t.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var t=0,o=e.ui.ddmanager.droppables[this.options.scope];o.length>t;t++)o[t]===this&&o.splice(t,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,o){"accept"===t&&(this.accept=e.isFunction(o)?o:function(e){return e.is(o)}),e.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var o=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),o&&this._trigger("activate",t,this.ui(o))},_deactivate:function(t){var o=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),o&&this._trigger("deactivate",t,this.ui(o))},_over:function(t){var o=e.ui.ddmanager.current;o&&(o.currentItem||o.element)[0]!==this.element[0]&&this.accept.call(this.element[0],o.currentItem||o.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(o)))},_out:function(t){var o=e.ui.ddmanager.current;o&&(o.currentItem||o.element)[0]!==this.element[0]&&this.accept.call(this.element[0],o.currentItem||o.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(o)))},_drop:function(t,o){var i=o||e.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var t=e.data(this,"ui-droppable");return t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&e.ui.intersect(i,e.extend(t,{offset:t.element.offset()}),t.options.tolerance)?(n=!0,!1):void 0})),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(e,o,i){if(!o.offset)return!1;var n,r=(e.positionAbs||e.position.absolute).left,s=r+e.helperProportions.width,a=(e.positionAbs||e.position.absolute).top,l=a+e.helperProportions.height,p=o.offset.left,u=p+o.proportions.width,c=o.offset.top,d=c+o.proportions.height;switch(i){case"fit":return r>=p&&u>=s&&a>=c&&d>=l;case"intersect":return r+e.helperProportions.width/2>p&&u>s-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>l-e.helperProportions.height/2;case"pointer":return n=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,t((e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,c,o.proportions.height)&&t(n,p,o.proportions.width);case"touch":return(a>=c&&d>=a||l>=c&&d>=l||c>a&&l>d)&&(r>=p&&u>=r||s>=p&&u>=s||p>r&&s>u);default:return!1}},e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,o){var i,n,r=e.ui.ddmanager.droppables[t.options.scope]||[],s=o?o.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;r.length>i;i++)if(!(r[i].options.disabled||t&&!r[i].accept.call(r[i].element[0],t.currentItem||t.element))){for(n=0;a.length>n;n++)if(a[n]===r[i].element[0]){r[i].proportions.height=0;continue e}r[i].visible="none"!==r[i].element.css("display"),r[i].visible&&("mousedown"===s&&r[i]._activate.call(r[i],o),r[i].offset=r[i].element.offset(),r[i].proportions={width:r[i].element[0].offsetWidth,height:r[i].element[0].offsetHeight})}},drop:function(t,o){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance)&&(i=this._drop.call(this,o)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,o)))})),i},dragStart:function(t,o){t.element.parentsUntil("body").bind("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,o)}))},drag:function(t,o){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,o),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,n,r,s=e.ui.intersect(t,this,this.options.tolerance),a=!s&&this.isover?"isout":s&&!this.isover?"isover":null;a&&(this.options.greedy&&(n=this.options.scope,(r=this.element.parents(":data(ui-droppable)").filter((function(){return e.data(this,"ui-droppable").options.scope===n}))).length&&((i=e.data(r[0],"ui-droppable")).greedyChild="isover"===a)),i&&"isover"===a&&(i.isover=!1,i.isout=!0,i._out.call(i,o)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,o),i&&"isout"===a&&(i.isout=!1,i.isover=!0,i._over.call(i,o)))}}))},dragStop:function(t,o){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,o)}}}(jQuery),function(e){function t(e){return parseInt(e,10)||0}function o(e){return!isNaN(parseInt(e,10))}e.widget("ui.resizable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var t,o,i,n,r=this,s=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=s.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},o=0;t.length>o;o++)i=e.trim(t[o]),(n=e("
")).css({zIndex:s.zIndex}),"se"===i&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(n);this._renderAxis=function(t){var o,i,n,r;for(o in t=t||this.element,this.handles)this.handles[o].constructor===String&&(this.handles[o]=e(this.handles[o],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(i=e(this.handles[o],this.element),r=/sw|ne|nw|se|n|s/.test(o)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(o)?"Top":/se|sw|s/.test(o)?"Bottom":/^e$/.test(o)?"Right":"Left"].join(""),t.css(n,r),this._proportionallyResize()),e(this.handles[o]).length},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover((function(){r.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=n&&n[1]?n[1]:"se")})),s.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter((function(){s.disabled||(e(this).removeClass("ui-resizable-autohide"),r._handles.show())})).mouseleave((function(){s.disabled||r.resizing||(e(this).addClass("ui-resizable-autohide"),r._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,o=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(o(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),o(this.originalElement),this},_mouseCapture:function(t){var o,i,n=!1;for(o in this.handles)((i=e(this.handles[o])[0])===t.target||e.contains(i,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(o){var i,n,r,s=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:a.top,left:a.left}),this._renderProxy(),i=t(this.helper.css("left")),n=t(this.helper.css("top")),s.containment&&(i+=e(s.containment).scrollLeft()||0,n+=e(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:i,top:n},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:o.pageX,top:o.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===r?this.axis+"-resize":r),l.addClass("ui-resizable-resizing"),this._propagate("start",o),!0},_mouseDrag:function(t){var o,i=this.helper,n={},r=this.originalMousePosition,s=this.axis,a=this.position.top,l=this.position.left,p=this.size.width,u=this.size.height,c=t.pageX-r.left||0,d=t.pageY-r.top||0,h=this._change[s];return!!h&&(o=h.apply(this,[t,c,d]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(o=this._updateRatio(o,t)),o=this._respectSize(o,t),this._updateCache(o),this._propagate("resize",t),this.position.top!==a&&(n.top=this.position.top+"px"),this.position.left!==l&&(n.left=this.position.left+"px"),this.size.width!==p&&(n.width=this.size.width+"px"),this.size.height!==u&&(n.height=this.size.height+"px"),i.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||this._trigger("resize",t,this.ui()),!1)},_mouseStop:function(t){this.resizing=!1;var o,i,n,r,s,a,l,p=this.options,u=this;return this._helper&&(n=(i=(o=this._proportionallyResizeElements).length&&/textarea/i.test(o[0].nodeName))&&e.ui.hasScroll(o[0],"left")?0:u.sizeDiff.height,r=i?0:u.sizeDiff.width,s={width:u.helper.width()-r,height:u.helper.height()-n},a=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,l=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,p.animate||this.element.css(e.extend(s,{top:l,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!p.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,i,n,r,s,a=this.options;s={minWidth:o(a.minWidth)?a.minWidth:0,maxWidth:o(a.maxWidth)?a.maxWidth:1/0,minHeight:o(a.minHeight)?a.minHeight:0,maxHeight:o(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=s.minHeight*this.aspectRatio,n=s.minWidth/this.aspectRatio,i=s.maxHeight*this.aspectRatio,r=s.maxWidth/this.aspectRatio,t>s.minWidth&&(s.minWidth=t),n>s.minHeight&&(s.minHeight=n),s.maxWidth>i&&(s.maxWidth=i),s.maxHeight>r&&(s.maxHeight=r)),this._vBoundaries=s},_updateCache:function(e){this.offset=this.helper.offset(),o(e.left)&&(this.position.left=e.left),o(e.top)&&(this.position.top=e.top),o(e.height)&&(this.size.height=e.height),o(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return o(e.height)?e.width=e.height*this.aspectRatio:o(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=o(e.width)&&t.maxWidth&&t.maxWidthe.width,a=o(e.height)&&t.minHeight&&t.minHeight>e.height,l=this.originalPosition.left+this.originalSize.width,p=this.position.top+this.size.height,u=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return s&&(e.width=t.minWidth),a&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),r&&(e.height=t.maxHeight),s&&u&&(e.left=l-t.minWidth),n&&u&&(e.left=l-t.maxWidth),a&&c&&(e.top=p-t.minHeight),r&&c&&(e.top=p-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var e,t,o,i,n,r=this.helper||this.element;for(e=0;this._proportionallyResizeElements.length>e;e++){if(n=this._proportionallyResizeElements[e],!this.borderDif)for(this.borderDif=[],o=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],i=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],t=0;o.length>t;t++)this.borderDif[t]=(parseInt(o[t],10)||0)+(parseInt(i[t],10)||0);n.css({height:r.height()-this.borderDif[0]-this.borderDif[2]||0,width:r.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var t=this.element,o=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("
"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++o.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var o=this.originalSize;return{left:this.originalPosition.left+t,width:o.width-t}},n:function(e,t,o){var i=this.originalSize,n=this.originalPosition;return{top:n.top+o,height:i.height-o}},s:function(e,t,o){return{height:this.originalSize.height+o}},se:function(t,o,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,o,i]))},sw:function(t,o,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,o,i]))},ne:function(t,o,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,o,i]))},nw:function(t,o,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,o,i]))}},_propagate:function(t,o){e.ui.plugin.call(this,t,[o,this.ui()]),"resize"!==t&&this._trigger(t,o,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var o=e(this).data("ui-resizable"),i=o.options,n=o._proportionallyResizeElements,r=n.length&&/textarea/i.test(n[0].nodeName),s=r&&e.ui.hasScroll(n[0],"left")?0:o.sizeDiff.height,a=r?0:o.sizeDiff.width,l={width:o.size.width-a,height:o.size.height-s},p=parseInt(o.element.css("left"),10)+(o.position.left-o.originalPosition.left)||null,u=parseInt(o.element.css("top"),10)+(o.position.top-o.originalPosition.top)||null;o.element.animate(e.extend(l,u&&p?{top:u,left:p}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseInt(o.element.css("width"),10),height:parseInt(o.element.css("height"),10),top:parseInt(o.element.css("top"),10),left:parseInt(o.element.css("left"),10)};n&&n.length&&e(n[0]).css({width:i.width,height:i.height}),o._updateCache(i),o._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var o,i,n,r,s,a,l,p=e(this).data("ui-resizable"),u=p.options,c=p.element,d=u.containment,h=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;h&&(p.containerElement=e(h),/document/.test(d)||d===document?(p.containerOffset={left:0,top:0},p.containerPosition={left:0,top:0},p.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(o=e(h),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,n){i[e]=t(o.css("padding"+n))})),p.containerOffset=o.offset(),p.containerPosition=o.position(),p.containerSize={height:o.innerHeight()-i[3],width:o.innerWidth()-i[1]},n=p.containerOffset,r=p.containerSize.height,s=p.containerSize.width,a=e.ui.hasScroll(h,"left")?h.scrollWidth:s,l=e.ui.hasScroll(h)?h.scrollHeight:r,p.parentData={element:h,left:n.left,top:n.top,width:a,height:l}))},resize:function(t){var o,i,n,r,s=e(this).data("ui-resizable"),a=s.options,l=s.containerOffset,p=s.position,u=s._aspectRatio||t.shiftKey,c={top:0,left:0},d=s.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(c=l),p.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-c.left),u&&(s.size.height=s.size.width/s.aspectRatio),s.position.left=a.helper?l.left:0),p.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),u&&(s.size.width=s.size.height*s.aspectRatio),s.position.top=s._helper?l.top:0),s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top,o=Math.abs((s._helper,s.offset.left-c.left+s.sizeDiff.width)),i=Math.abs((s._helper?s.offset.top-c.top:s.offset.top-l.top)+s.sizeDiff.height),n=s.containerElement.get(0)===s.element.parent().get(0),r=/relative|absolute/.test(s.containerElement.css("position")),n&&r&&(o-=s.parentData.left),o+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-o,u&&(s.size.height=s.size.width/s.aspectRatio)),i+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-i,u&&(s.size.width=s.size.height*s.aspectRatio))},stop:function(){var t=e(this).data("ui-resizable"),o=t.options,i=t.containerOffset,n=t.containerPosition,r=t.containerElement,s=e(t.helper),a=s.offset(),l=s.outerWidth()-t.sizeDiff.width,p=s.outerHeight()-t.sizeDiff.height;t._helper&&!o.animate&&/relative/.test(r.css("position"))&&e(this).css({left:a.left-n.left-i.left,width:l,height:p}),t._helper&&!o.animate&&/static/.test(r.css("position"))&&e(this).css({left:a.left-n.left-i.left,width:l,height:p})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable").options,o=function(t){e(t).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})}))};"object"!=_typeof2(t.alsoResize)||t.alsoResize.parentNode?o(t.alsoResize):t.alsoResize.length?(t.alsoResize=t.alsoResize[0],o(t.alsoResize)):e.each(t.alsoResize,(function(e){o(e)}))},resize:function(t,o){var i=e(this).data("ui-resizable"),n=i.options,r=i.originalSize,s=i.originalPosition,a={height:i.size.height-r.height||0,width:i.size.width-r.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0},l=function(t,i){e(t).each((function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),r={},s=i&&i.length?i:t.parents(o.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(s,(function(e,t){var o=(n[t]||0)+(a[t]||0);o&&o>=0&&(r[t]=o||null)})),t.css(r)}))};"object"!=_typeof2(n.alsoResize)||n.alsoResize.nodeType?l(n.alsoResize):e.each(n.alsoResize,(function(e,t){l(e,t)}))},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),o=t.options,i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof o.ghost?o.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),o=t.options,i=t.size,n=t.originalSize,r=t.originalPosition,s=t.axis,a="number"==typeof o.grid?[o.grid,o.grid]:o.grid,l=a[0]||1,p=a[1]||1,u=Math.round((i.width-n.width)/l)*l,c=Math.round((i.height-n.height)/p)*p,d=n.width+u,h=n.height+c,f=o.maxWidth&&d>o.maxWidth,g=o.maxHeight&&h>o.maxHeight,y=o.minWidth&&o.minWidth>d,m=o.minHeight&&o.minHeight>h;o.grid=a,y&&(d+=l),m&&(h+=p),f&&(d-=l),g&&(h-=p),/^(se|s|e)$/.test(s)?(t.size.width=d,t.size.height=h):/^(ne)$/.test(s)?(t.size.width=d,t.size.height=h,t.position.top=r.top-c):/^(sw)$/.test(s)?(t.size.width=d,t.size.height=h,t.position.left=r.left-u):(t.size.width=d,t.size.height=h,t.position.top=r.top-c,t.position.left=r.left-u)}})}(jQuery),function(e){e.widget("ui.selectable",e.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,o=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(t=e(o.options.filter,o.element[0])).addClass("ui-selectee"),t.each((function(){var t=e(this),o=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:o.left,top:o.top,right:o.left+t.outerWidth(),bottom:o.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=e("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var o=this,i=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled||(this.selectees=e(i.filter,this.element[0]),this._trigger("start",t),e(i.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var i=e.data(this,"selectable-item");i.startselected=!0,t.metaKey||t.ctrlKey||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,o._trigger("unselecting",t,{unselecting:i.element}))})),e(t.target).parents().addBack().each((function(){var i,n=e.data(this,"selectable-item");return n?(i=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-selected"),n.$element.removeClass(i?"ui-unselecting":"ui-selected").addClass(i?"ui-selecting":"ui-unselecting"),n.unselecting=!i,n.selecting=i,n.selected=i,i?o._trigger("selecting",t,{selecting:n.element}):o._trigger("unselecting",t,{unselecting:n.element}),!1):void 0})))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,n=this.options,r=this.opos[0],s=this.opos[1],a=t.pageX,l=t.pageY;return r>a&&(o=a,a=r,r=o),s>l&&(o=l,l=s,s=o),this.helper.css({left:r,top:s,width:a-r,height:l-s}),this.selectees.each((function(){var o=e.data(this,"selectable-item"),p=!1;o&&o.element!==i.element[0]&&("touch"===n.tolerance?p=!(o.left>a||r>o.right||o.top>l||s>o.bottom):"fit"===n.tolerance&&(p=o.left>r&&a>o.right&&o.top>s&&l>o.bottom),p?(o.selected&&(o.$element.removeClass("ui-selected"),o.selected=!1),o.unselecting&&(o.$element.removeClass("ui-unselecting"),o.unselecting=!1),o.selecting||(o.$element.addClass("ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(o.$element.removeClass("ui-selecting"),o.selecting=!1,o.$element.addClass("ui-selected"),o.selected=!0):(o.$element.removeClass("ui-selecting"),o.selecting=!1,o.startselected&&(o.$element.addClass("ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(o.$element.removeClass("ui-selected"),o.selected=!1,o.$element.addClass("ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))})),!1}},_mouseStop:function(t){var o=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each((function(){var i=e.data(this,"selectable-item");i.$element.removeClass("ui-unselecting"),i.unselecting=!1,i.startselected=!1,o._trigger("unselected",t,{unselected:i.element})})),e(".ui-selecting",this.element[0]).each((function(){var i=e.data(this,"selectable-item");i.$element.removeClass("ui-selecting").addClass("ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,o._trigger("selected",t,{selected:i.element})})),this._trigger("stop",t),this.helper.remove(),!1}})}(jQuery),function(e){function t(e,t,o){return e>t&&t+o>e}function o(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))}e.widget("ui.sortable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===e.axis||o(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,o){"disabled"===t?(this.options[t]=o,this.widget().toggleClass("ui-sortable-disabled",!!o)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,o){var i=null,n=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each((function(){return e.data(this,r.widgetName+"-item")===r?(i=e(this),!1):void 0})),e.data(t.target,r.widgetName+"-item")===r&&(i=e(t.target)),!!i&&(!(this.options.handle&&!o&&(e(this.options.handle,i).find("*").addBack().each((function(){this===t.target&&(n=!0)})),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,o,i){var n,r,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",s.cursor),this.storedStylesheet=e("").appendTo(r)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var o,i,n,r,s=this.options,a=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;o--)if(n=(i=this.items[o]).item[0],(r=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===r?"next":"prev"]()[0]!==n&&!e.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!e.contains(this.element[0],n))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,o){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var i=this,n=this.placeholder.offset(),r=this.options.axis,s={};r&&"x"!==r||(s.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(s.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){i._clear(t)}))}else this._clear(t,o);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var o=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e(o).each((function(){var o=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);o&&i.push((t.key||o[1]+"[]")+"="+(t.key&&t.expression?o[1]:o[2]))})),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var o=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},o.each((function(){i.push(e(t.item||this).attr(t.attribute||"id")||"")})),i},_intersectsWith:function(e){var t=this.positionAbs.left,o=t+this.helperProportions.width,i=this.positionAbs.top,n=i+this.helperProportions.height,r=e.left,s=r+e.width,a=e.top,l=a+e.height,p=this.offset.click.top,u=this.offset.click.left,c="x"===this.options.axis||i+p>a&&l>i+p,d="y"===this.options.axis||t+u>r&&s>t+u,h=c&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h:t+this.helperProportions.width/2>r&&s>o-this.helperProportions.width/2&&i+this.helperProportions.height/2>a&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(e){var o="x"===this.options.axis||t(this.positionAbs.top+this.offset.click.top,e.top,e.height),i="y"===this.options.axis||t(this.positionAbs.left+this.offset.click.left,e.left,e.width),n=o&&i,r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return!!n&&(this.floating?s&&"right"===s||"down"===r?2:1:r&&("down"===r?2:1))},_intersectsWithSides:function(e){var o=t(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=t(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&o||"up"===n&&!o)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var o,i,n,r,s=[],a=[],l=this._connectWith();if(l&&t)for(o=l.length-1;o>=0;o--)for(i=(n=e(l[o])).length-1;i>=0;i--)(r=e.data(n[i],this.widgetFullName))&&r!==this&&!r.options.disabled&&a.push([e.isFunction(r.options.items)?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(a.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),o=a.length-1;o>=0;o--)a[o][0].each((function(){s.push(this)}));return e(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var o=0;t.length>o;o++)if(t[o]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var o,i,n,r,s,a,l,p,u=this.items,c=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(o=d.length-1;o>=0;o--)for(i=(n=e(d[o])).length-1;i>=0;i--)(r=e.data(n[i],this.widgetFullName))&&r!==this&&!r.options.disabled&&(c.push([e.isFunction(r.options.items)?r.options.items.call(r.element[0],t,{item:this.currentItem}):e(r.options.items,r.element),r]),this.containers.push(r));for(o=c.length-1;o>=0;o--)for(s=c[o][1],i=0,p=(a=c[o][0]).length;p>i;i++)(l=e(a[i])).data(this.widgetName+"-item",s),u.push({item:l,instance:s,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var o,i,n,r;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),o=this.items.length-1;o>=0;o--)(i=this.items[o]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=n.outerWidth(),i.height=n.outerHeight()),r=n.offset(),i.left=r.left,i.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(o=this.containers.length-1;o>=0;o--)r=this.containers[o].element.offset(),this.containers[o].containerCache.left=r.left,this.containers[o].containerCache.top=r.top,this.containers[o].containerCache.width=this.containers[o].element.outerWidth(),this.containers[o].containerCache.height=this.containers[o].element.outerHeight();return this},_createPlaceholder:function(t){var o,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(o=i.placeholder,i.placeholder={element:function(){var i=t.currentItem[0].nodeName.toLowerCase(),n=e("<"+i+">",t.document[0]).addClass(o||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===i?t.currentItem.children().each((function(){e(" ",t.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)})):"img"===i&&n.attr("src",t.currentItem.attr("src")),o||n.css("visibility","hidden"),n},update:function(e,n){(!o||i.forcePlaceholderSize)&&(n.height()||n.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_contactContainers:function(i){var n,r,s,a,l,p,u,c,d,h,f=null,g=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&e.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],g=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",i,this._uiHash(this)),this.containers[n].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",i,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(s=1e4,a=null,l=(h=f.floating||o(this.currentItem))?"left":"top",p=h?"width":"height",u=this.positionAbs[l]+this.offset.click[l],r=this.items.length-1;r>=0;r--)e.contains(this.containers[g].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(!h||t(this.positionAbs.top+this.offset.click.top,this.items[r].top,this.items[r].height))&&(c=this.items[r].item.offset()[l],d=!1,Math.abs(c-u)>Math.abs(c+this.items[r][p]-u)&&(d=!0,c+=this.items[r][p]),s>Math.abs(c-u)&&(s=Math.abs(c-u),a=this.items[r],this.direction=d?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(i,a,null,!0):this._rearrange(i,null,this.containers[g].element,!0),this._trigger("change",i,this._uiHash()),this.containers[g]._trigger("change",i,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",i,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(t){var o=this.options,i=e.isFunction(o.helper)?e(o.helper.apply(this.element[0],[t,this.currentItem])):"clone"===o.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||e("parent"!==o.appendTo?o.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||o.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||o.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,o,i,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,(e("document"===n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=e(n.containment)[0],o=e(n.containment).offset(),i="hidden"!==e(t).css("overflow"),this.containment=[o.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,o.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,o.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,o.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,o){o||(o=this.position);var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(n[0].tagName);return{top:o.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:n.scrollTop())*i,left:o.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:n.scrollLeft())*i}},_generatePosition:function(t){var o,i,n=this.options,r=t.pageX,s=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.leftthis.containment[2]&&(r=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),n.grid&&(o=this.originalPageY+Math.round((s-this.originalPageY)/n.grid[1])*n.grid[1],s=this.containment?o-this.offset.click.top>=this.containment[1]&&o-this.offset.click.top<=this.containment[3]?o:o-this.offset.click.top>=this.containment[1]?o-n.grid[1]:o+n.grid[1]:o,i=this.originalPageX+Math.round((r-this.originalPageX)/n.grid[0])*n.grid[0],r=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-n.grid[0]:i+n.grid[0]:i)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(e,t,o,i){o?o[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay((function(){n===this.counter&&this.refreshPositions(!i)}))},_clear:function(e,t){this.reverting=!1;var o,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(o in this._storedCSS)("auto"===this._storedCSS[o]||"static"===this._storedCSS[o])&&(this._storedCSS[o]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&i.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||i.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(i.push((function(e){this._trigger("remove",e,this._uiHash())})),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),o=this.containers.length-1;o>=0;o--)t||i.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over&&(i.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger("beforeStop",e,this._uiHash()),o=0;i.length>o;o++)i[o].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!1}if(t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!t){for(o=0;i.length>o;o++)i[o].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var o=t||this;return{helper:o.helper,placeholder:o.placeholder||e([]),position:o.position,originalPosition:o.originalPosition,offset:o.positionAbs,item:o.currentItem,sender:t?t.element:null}}})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");if(function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(e){"use strict";var t='[data-dismiss="alert"]',o=function(o){e(o).on("click",t,this.close)};o.VERSION="3.3.0",o.TRANSITION_DURATION=150,o.prototype.close=function(t){var i=e(this),n=i.attr("data-target");n||(n=(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var r=e(n);function s(){r.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),r.length||(r=i.closest(".alert")),r.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",s).emulateTransitionEnd(o.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=function(t){return this.each((function(){var i=e(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new o(this)),"string"==typeof t&&n[t].call(i)}))},e.fn.alert.Constructor=o,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,o.prototype.close)}(jQuery),function(e){"use strict";var t=function t(o,i){this.$element=e(o),this.options=e.extend({},t.DEFAULTS,i),this.isLoading=!1};function o(o){return this.each((function(){var i=e(this),n=i.data("bs.button"),r="object"==_typeof2(o)&&o;n||i.data("bs.button",n=new t(this,r)),"toggle"==o?n.toggle():o&&n.setState(o)}))}t.VERSION="3.3.0",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var o="disabled",i=this.$element,n=i.is("input")?"val":"html",r=i.data();t+="Text",null==r.resetText&&i.data("resetText",i[n]()),setTimeout(e.proxy((function(){i[n](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(o).attr(o,o)):this.isLoading&&(this.isLoading=!1,i.removeClass(o).removeAttr(o))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var o=this.$element.find("input");"radio"==o.prop("type")&&(o.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&o.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));e&&this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=o,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var i=e(t.target);i.hasClass("btn")||(i=i.closest(".btn")),o.call(i,"toggle"),t.preventDefault()})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus","focus"==t.type)}))}(jQuery),function(e){"use strict";var t=function(t,o){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=o,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function o(o){return this.each((function(){var i=e(this),n=i.data("bs.carousel"),r=e.extend({},t.DEFAULTS,i.data(),"object"==_typeof2(o)&&o),s="string"==typeof o?o:r.slide;n||i.data("bs.carousel",n=new t(this,r)),"number"==typeof o?n.to(o):s?n[s]():r.interval&&n.pause().cycle()}))}t.VERSION="3.3.0",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var o="prev"==e?-1:1,i=(this.getItemIndex(t)+o)%this.$items.length;return this.$items.eq(i)},t.prototype.to=function(e){var t=this,o=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(o,i){var n=this.$element.find(".item.active"),r=i||this.getItemForDirection(o,n),s=this.interval,a="next"==o?"left":"right",l="next"==o?"first":"last",p=this;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[l]()}if(r.hasClass("active"))return this.sliding=!1;var u=r[0],c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(r)]);d&&d.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(r.addClass(o),r[0].offsetWidth,n.addClass(a),r.addClass(a),n.one("bsTransitionEnd",(function(){r.removeClass([o,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),p.sliding=!1,setTimeout((function(){p.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(n.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=o,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var n=function(t){var i,n=e(this),r=e(n.attr("data-target")||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var s=e.extend({},r.data(),n.data()),a=n.attr("data-slide-to");a&&(s.interval=!1),o.call(r,s),a&&r.data("bs.carousel").to(a),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);o.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t='[data-toggle="dropdown"]',o=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(o){o&&3===o.which||(e(".dropdown-backdrop").remove(),e(t).each((function(){var t=e(this),i=n(t),r={relatedTarget:this};i.hasClass("open")&&(i.trigger(o=e.Event("hide.bs.dropdown",r)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",r)))})))}function n(t){var o=t.attr("data-target");o||(o=(o=t.attr("href"))&&/#[A-Za-z]/.test(o)&&o.replace(/.*(?=#[^\s]*$)/,""));var i=o&&e(o);return i&&i.length?i:t.parent()}o.VERSION="3.3.0",o.prototype.toggle=function(t){var o=e(this);if(!o.is(".disabled, :disabled")){var r=n(o),s=r.hasClass("open");if(i(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e('