!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}({0:function(t,e,n){n(653),t.exports=n(676)},2:function(t,e){/*!
	 * jQuery JavaScript Library v2.2.4
	 * http://jquery.com/
	 *
	 * Includes Sizzle.js
	 * http://sizzlejs.com/
	 *
	 * Copyright jQuery Foundation and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2016-05-20T17:23Z
	 */
!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ot.type(t);return"function"!==n&&!ot.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(gt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return Z.call(e,t)>-1!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e={};return ot.each(t.match(wt)||[],function(t,n){e[n]=!0}),e}function s(){J.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s),ot.ready()}function a(){this.expando=ot.expando+a.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(jt,"-$&").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:St.test(n)?ot.parseJSON(n):n)}catch(t){}Ct.set(t,e,n)}else n=void 0;return n}function c(t,e,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return ot.css(t,e,"")},u=a(),c=n&&n[3]||(ot.cssNumber[e]?"":"px"),l=(ot.cssNumber[e]||"px"!==c&&+u)&&Ot.exec(ot.css(t,e));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do o=o||".5",l/=o,ot.style(t,e,l+c);while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function l(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],n):n}function f(t,e){for(var n=0,r=t.length;n<r;n++)Et.set(t[n],"globalEval",!e||Et.get(e[n],"globalEval"))}function h(t,e,n,r,i){for(var o,s,a,u,c,h,p=e.createDocumentFragment(),d=[],g=0,v=t.length;g<v;g++)if(o=t[g],o||0===o)if("object"===ot.type(o))ot.merge(d,o.nodeType?[o]:o);else if(Pt.test(o)){for(s=s||p.appendChild(e.createElement("div")),a=(Rt.exec(o)||["",""])[1].toLowerCase(),u=Ft[a]||Ft._default,s.innerHTML=u[1]+ot.htmlPrefilter(o)+u[2],h=u[0];h--;)s=s.lastChild;ot.merge(d,s.childNodes),s=p.firstChild,s.textContent=""}else d.push(e.createTextNode(o));for(p.textContent="",g=0;o=d[g++];)if(r&&ot.inArray(o,r)>-1)i&&i.push(o);else if(c=ot.contains(o.ownerDocument,o),s=l(p.appendChild(o),"script"),c&&f(s),n)for(h=0;o=s[h++];)Lt.test(o.type||"")&&n.push(o);return p}function p(){return!0}function d(){return!1}function g(){try{return J.activeElement}catch(t){}}function v(t,e,n,r,i,o){var s,a;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(a in e)v(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=d;else if(!i)return t;return 1===o&&(s=i,i=function(t){return ot().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=ot.guid++)),t.each(function(){ot.event.add(this,e,i,r,n)})}function m(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _(t){var e=Vt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function b(t,e){var n,r,i,o,s,a,u,c;if(1===e.nodeType){if(Et.hasData(t)&&(o=Et.access(t),s=Et.set(e,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)ot.event.add(e,i,c[i][n])}Ct.hasData(t)&&(a=Ct.access(t),u=ot.extend({},a),Ct.set(e,u))}}function w(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Dt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function x(t,e,n,r){e=Y.apply([],e);var i,o,s,a,u,c,f=0,p=t.length,d=p-1,g=e[0],v=ot.isFunction(g);if(v||p>1&&"string"==typeof g&&!rt.checkClone&&Ut.test(g))return t.each(function(i){var o=t.eq(i);v&&(e[0]=g.call(this,i,o.html())),x(o,e,n,r)});if(p&&(i=h(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=ot.map(l(i,"script"),y),a=s.length;f<p;f++)u=i,f!==d&&(u=ot.clone(u,!0,!0),a&&ot.merge(s,l(u,"script"))),n.call(t[f],u,f);if(a)for(c=s[s.length-1].ownerDocument,ot.map(s,_),f=0;f<a;f++)u=s[f],Lt.test(u.type||"")&&!Et.access(u,"globalEval")&&ot.contains(c,u)&&(u.src?ot._evalUrl&&ot._evalUrl(u.src):ot.globalEval(u.textContent.replace(Bt,"")))}return t}function k(t,e,n){for(var r,i=e?ot.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ot.cleanData(l(r)),r.parentNode&&(n&&ot.contains(r.ownerDocument,r)&&f(l(r,"script")),r.parentNode.removeChild(r));return t}function T(t,e){var n=ot(e.createElement(t)).appendTo(e.body),r=ot.css(n[0],"display");return n.detach(),r}function E(t){var e=J,n=Kt[t];return n||(n=T(t,e),"none"!==n&&n||(zt=(zt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=zt[0].contentDocument,e.write(),e.close(),n=T(t,e),zt.detach()),Kt[t]=n),n}function C(t,e,n){var r,i,o,s,a=t.style;return n=n||Gt(t),s=n?n.getPropertyValue(e)||n[e]:void 0,""!==s&&void 0!==s||ot.contains(t.ownerDocument,t)||(s=ot.style(t,e)),n&&!rt.pixelMarginRight()&&Jt.test(s)&&Xt.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o),void 0!==s?s+"":s}function S(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function j(t){if(t in re)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ne.length;n--;)if(t=ne[n]+e,t in re)return t}function A(t,e,n){var r=Ot.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function O(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=ot.css(t,n+It[o],!0,i)),r?("content"===n&&(s-=ot.css(t,"padding"+It[o],!0,i)),"margin"!==n&&(s-=ot.css(t,"border"+It[o]+"Width",!0,i))):(s+=ot.css(t,"padding"+It[o],!0,i),"padding"!==n&&(s+=ot.css(t,"border"+It[o]+"Width",!0,i)));return s}function I(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Gt(t),s="border-box"===ot.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(i=C(t,e,o),(i<0||null==i)&&(i=t.style[e]),Jt.test(i))return i;r=s&&(rt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+O(t,e,n||(s?"border":"content"),r,o)+"px"}function N(t,e){for(var n,r,i,o=[],s=0,a=t.length;s<a;s++)r=t[s],r.style&&(o[s]=Et.get(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Nt(r)&&(o[s]=Et.access(r,"olddisplay",E(r.nodeName)))):(i=Nt(r),"none"===n&&i||Et.set(r,"olddisplay",i?n:ot.css(r,"display"))));for(s=0;s<a;s++)r=t[s],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function D(t,e,n,r,i){return new D.prototype.init(t,e,n,r,i)}function R(){return t.setTimeout(function(){ie=void 0}),ie=ot.now()}function L(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=It[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function F(t,e,n){for(var r,i=(H.tweeners[e]||[]).concat(H.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function P(t,e,n){var r,i,o,s,a,u,c,l,f=this,h={},p=t.style,d=t.nodeType&&Nt(t),g=Et.get(t,"fxshow");n.queue||(a=ot._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,ot.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],c=ot.css(t,"display"),l="none"===c?Et.get(t,"olddisplay")||E(t.nodeName):c,"inline"===l&&"none"===ot.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],se.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;d=!0}h[r]=g&&g[r]||ot.style(t,r)}else c=void 0;if(ot.isEmptyObject(h))"inline"===("none"===c?E(t.nodeName):c)&&(p.display=c);else{g?"hidden"in g&&(d=g.hidden):g=Et.access(t,"fxshow",{}),o&&(g.hidden=!d),d?ot(t).show():f.done(function(){ot(t).hide()}),f.done(function(){var e;Et.remove(t,"fxshow");for(e in h)ot.style(t,e,h[e])});for(r in h)s=F(d?g[r]:0,r,f),r in g||(g[r]=s.start,d&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function q(t,e){var n,r,i,o,s;for(n in t)if(r=ot.camelCase(n),i=e[r],o=t[n],ot.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),s=ot.cssHooks[r],s&&"expand"in s){o=s.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function H(t,e,n){var r,i,o=0,s=H.prefilters.length,a=ot.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=ie||R(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),o<1&&u?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},n),originalProperties:e,originalOptions:n,startTime:ie||R(),duration:n.duration,tweens:[],createTween:function(e,n){var r=ot.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),l=c.props;for(q(l,c.opts.specialEasing);o<s;o++)if(r=H.prefilters[o].call(c,t,l,c.opts))return ot.isFunction(r.stop)&&(ot._queueHooks(c.elem,c.opts.queue).stop=ot.proxy(r.stop,r)),r;return ot.map(l,F,c),ot.isFunction(c.opts.start)&&c.opts.start.call(t,c),ot.fx.timer(ot.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function $(t){return t.getAttribute&&t.getAttribute("class")||""}function M(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(wt)||[];if(ot.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function W(t,e,n,r){function i(a){var u;return o[a]=!0,ot.each(t[a]||[],function(t,a){var c=a(e,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=t===Ce;return i(e.dataTypes[0])||!o["*"]&&i("*")}function U(t,e){var n,r,i=ot.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&ot.extend(!0,t,r),t}function V(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function B(t,e,n,r){var i,o,s,a,u,c={},l=t.dataTypes.slice();if(l[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=c[u+" "+o]||c["* "+o],!s)for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[i]:c[i]!==!0&&(o=a[0],l.unshift(a[1]));break}if(s!==!0)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function z(t,e,n,r){var i;if(ot.isArray(e))ot.each(e,function(e,i){n||Oe.test(t)?r(t,i):z(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==ot.type(e))r(t,e);else for(i in e)z(t+"["+i+"]",e[i],n,r)}function K(t){return ot.isWindow(t)?t:9===t.nodeType&&t.defaultView}var X=[],J=t.document,G=X.slice,Y=X.concat,Q=X.push,Z=X.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,rt={},it="2.2.4",ot=function(t,e){return new ot.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,ut=/-([\da-z])/gi,ct=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return G.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:G.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:Q,sort:X.sort,splice:X.splice},ot.extend=ot.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||ot.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],r=t[e],s!==r&&(c&&r&&(ot.isPlainObject(r)||(i=ot.isArray(r)))?(i?(i=!1,o=n&&ot.isArray(n)?n:[]):o=n&&ot.isPlainObject(n)?n:{},s[e]=ot.extend(c,o,r)):void 0!==r&&(s[e]=r));return s},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ot.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;if(t.constructor&&!nt.call(t,"constructor")&&!nt.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||nt.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=ot.trim(t),t&&(1===t.indexOf("use strict")?(e=J.createElement("script"),e.text=t,J.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(at,"ms-").replace(ut,ct)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var r,i=0;if(n(t))for(r=t.length;i<r&&e.call(t[i],i,t[i])!==!1;i++);else for(i in t)if(e.call(t[i],i,t[i])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(st,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?ot.merge(r,"string"==typeof t?[t]:t):Q.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:Z.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,s=t.length,a=!n;o<s;o++)r=!e(t[o],o),r!==a&&i.push(t[o]);return i},map:function(t,e,r){var i,o,s=0,a=[];if(n(t))for(i=t.length;s<i;s++)o=e(t[s],s,r),null!=o&&a.push(o);else for(s in t)o=e(t[s],s,r),null!=o&&a.push(o);return Y.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),ot.isFunction(t))return r=G.call(arguments,2),i=function(){return t.apply(e||this,r.concat(G.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i},now:Date.now,support:rt}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=X[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var lt=/*!
	 * Sizzle CSS Selector Engine v2.2.1
	 * http://sizzlejs.com/
	 *
	 * Copyright jQuery Foundation and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2015-10-17
	 */
function(t){function e(t,e,n,r){var i,o,s,a,u,c,f,p,d=e&&e.ownerDocument,g=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return n;if(!r&&((e?e.ownerDocument||e:$)!==N&&I(e),e=e||N,R)){if(11!==g&&(c=mt.exec(t)))if(i=c[1]){if(9===g){if(!(s=e.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(d&&(s=d.getElementById(i))&&q(e,s)&&s.id===i)return n.push(s),n}else{if(c[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((i=c[3])&&w.getElementsByClassName&&e.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(i)),n}if(w.qsa&&!B[t+" "]&&(!L||!L.test(t))){if(1!==g)d=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(_t,"\\$&"):e.setAttribute("id",a=H),f=E(t),o=f.length,u=ht.test(a)?"#"+a:"[id='"+a+"']";o--;)f[o]=u+" "+h(f[o]);p=f.join(","),d=yt.test(t)&&l(e.parentNode)||e}if(p)try{return Q.apply(n,d.querySelectorAll(p)),n}catch(t){}finally{a===H&&e.removeAttribute("id")}}}return S(t.replace(at,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[H]=!0,t}function i(t){var e=N.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=e}function s(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||K)-(~t.sourceIndex||K);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function l(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function h(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=W++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,s){var a,u,c,l=[M,o];if(s){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(c=e[H]||(e[H]={}),u=c[e.uniqueID]||(c[e.uniqueID]={}),(a=u[r])&&a[0]===M&&a[1]===o)return l[2]=a[2];if(u[r]=l,l[2]=t(e,n,s))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function v(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,c=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),c&&e.push(a)));return s}function m(t,e,n,i,o,s){return i&&!i[H]&&(i=m(i)),o&&!o[H]&&(o=m(o,s)),r(function(r,s,a,u){var c,l,f,h=[],p=[],d=s.length,m=r||g(e||"*",a.nodeType?[a]:a,[]),y=!t||!r&&e?m:v(m,h,t,a,u),_=n?o||(r?t:d||i)?[]:s:y;if(n&&n(y,_,a,u),i)for(c=v(_,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(_[p[l]]=!(y[p[l]]=f));if(r){if(o||t){if(o){for(c=[],l=_.length;l--;)(f=_[l])&&c.push(y[l]=f);o(null,_=[],c,u)}for(l=_.length;l--;)(f=_[l])&&(c=o?tt(r,f):h[l])>-1&&(r[c]=!(s[c]=f))}}else _=v(_===s?_.splice(d,_.length):_),o?o(null,s,_,u):Q.apply(s,_)})}function y(t){for(var e,n,r,i=t.length,o=x.relative[t[0].type],s=o||x.relative[" "],a=o?1:0,u=p(function(t){return t===e},s,!0),c=p(function(t){return tt(e,t)>-1},s,!0),l=[function(t,n,r){var i=!o&&(r||n!==j)||((e=n).nodeType?u(t,n,r):c(t,n,r));return e=null,i}];a<i;a++)if(n=x.relative[t[a].type])l=[p(d(l),n)];else{if(n=x.filter[t[a].type].apply(null,t[a].matches),n[H]){for(r=++a;r<i&&!x.relative[t[r].type];r++);return m(a>1&&d(l),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),n,a<r&&y(t.slice(a,r)),r<i&&y(t=t.slice(r)),r<i&&h(t))}l.push(n)}return d(l)}function _(t,n){var i=n.length>0,o=t.length>0,s=function(r,s,a,u,c){var l,f,h,p=0,d="0",g=r&&[],m=[],y=j,_=r||o&&x.find.TAG("*",c),b=M+=null==y?1:Math.random()||.1,w=_.length;for(c&&(j=s===N||s||c);d!==w&&null!=(l=_[d]);d++){if(o&&l){for(f=0,s||l.ownerDocument===N||(I(l),a=!R);h=t[f++];)if(h(l,s||N,a)){u.push(l);break}c&&(M=b)}i&&((l=!h&&l)&&p--,r&&g.push(l))}if(p+=d,i&&d!==p){for(f=0;h=n[f++];)h(g,m,s,a);if(r){if(p>0)for(;d--;)g[d]||m[d]||(m[d]=G.call(u));m=v(m)}Q.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&e.uniqueSort(u)}return c&&(M=b,j=y),g};return i?r(s):s}var b,w,x,k,T,E,C,S,j,A,O,I,N,D,R,L,F,P,q,H="sizzle"+1*new Date,$=t.document,M=0,W=0,U=n(),V=n(),B=n(),z=function(t,e){return t===e&&(O=!0),0},K=1<<31,X={}.hasOwnProperty,J=[],G=J.pop,Y=J.push,Q=J.push,Z=J.slice,tt=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ut=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),lt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ft=new RegExp(ot),ht=new RegExp("^"+rt+"$"),pt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,_t=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xt=function(){I()};try{Q.apply(J=Z.call($.childNodes),$.childNodes),J[$.childNodes.length].nodeType}catch(t){Q={apply:J.length?function(t,e){Y.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}w=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:$;return r!==N&&9===r.nodeType&&r.documentElement?(N=r,D=N.documentElement,R=!T(N),(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xt,!1):n.attachEvent&&n.attachEvent("onunload",xt)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(N.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(N.getElementsByClassName),w.getById=i(function(t){return D.appendChild(t).id=H,!N.getElementsByName||!N.getElementsByName(H).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&R){var n=e.getElementById(t);return n?[n]:[]}},x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&R)return e.getElementsByClassName(t)},F=[],L=[],(w.qsa=vt.test(N.querySelectorAll))&&(i(function(t){D.appendChild(t).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+H+"-]").length||L.push("~="),t.querySelectorAll(":checked").length||L.push(":checked"),t.querySelectorAll("a#"+H+"+*").length||L.push(".#.+[+~]")}),i(function(t){var e=N.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(w.matchesSelector=vt.test(P=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(t){w.disconnectedMatch=P.call(t,"div"),P.call(t,"[s!='']:x"),F.push("!=",ot)}),L=L.length&&new RegExp(L.join("|")),F=F.length&&new RegExp(F.join("|")),e=vt.test(D.compareDocumentPosition),q=e||vt.test(D.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return O=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===N||t.ownerDocument===$&&q($,t)?-1:e===N||e.ownerDocument===$&&q($,e)?1:A?tt(A,t)-tt(A,e):0:4&n?-1:1)}:function(t,e){if(t===e)return O=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!i||!o)return t===N?-1:e===N?1:i?-1:o?1:A?tt(A,t)-tt(A,e):0;if(i===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===$?-1:u[r]===$?1:0},N):N},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==N&&I(t),n=n.replace(lt,"='$1']"),w.matchesSelector&&R&&!B[n+" "]&&(!F||!F.test(n))&&(!L||!L.test(n)))try{var r=P.call(t,n);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&I(t),q(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&I(t);var n=x.attrHandle[e.toLowerCase()],r=n&&X.call(x.attrHandle,e.toLowerCase())?n(t,e,!R):void 0;return void 0!==r?r:w.attributes||!R?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(O=!w.detectDuplicates,A=!w.sortStable&&t.slice(0),t.sort(z),O){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return A=null,t},k=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=k(e);return n},x=e.selectors={cacheLength:50,createPseudo:r,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ft.test(n)&&(e=E(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(st," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,p,d,g=o!==s?"nextSibling":"previousSibling",v=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!u&&!a,_=!1;if(v){if(o){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?v.firstChild:v.lastChild],s&&y){for(h=v,f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===M&&c[1],_=p&&c[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(_=p=0)||d.pop();)if(1===h.nodeType&&++_&&h===e){l[t]=[M,p,_];break}}else if(y&&(h=e,f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===M&&c[1],_=p),_===!1)for(;(h=++p&&h&&h[g]||(_=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++_||(y&&(f=h[H]||(h[H]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),l[t]=[M,_]),h!==e)););return _-=i,_===r||_%r===0&&_/r>=0}}},PSEUDO:function(t,n){var i,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[H]?o(n):o.length>1?(i=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),s=i.length;s--;)r=tt(t,i[s]),t[r]=!(e[r]=i[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=C(t.replace(at,"$1"));return i[H]?r(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(bt,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:r(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var n;do if(n=R?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===D},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:c(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=u(b);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,E=e.tokenize=function(t,n){var r,i,o,s,a,u,c,l=V[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],c=x.preFilter;a;){r&&!(i=ut.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ct.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(at," ")}),a=a.slice(r.length));for(s in x.filter)!(i=pt[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?e.error(t):V(t,u).slice(0)},C=e.compile=function(t,e){var n,r=[],i=[],o=B[t+" "];if(!o){for(e||(e=E(t)),n=e.length;n--;)o=y(e[n]),o[H]?r.push(o):i.push(o);o=B(t,_(i,r)),o.selector=t}return o},S=e.select=function(t,e,n,r){var i,o,s,a,u,c="function"==typeof t&&t,f=!r&&E(t=c.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&w.getById&&9===e.nodeType&&R&&x.relative[o[1].type]){if(e=(x.find.ID(s.matches[0].replace(bt,wt),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=pt.needsContext.test(t)?0:o.length;i--&&(s=o[i],!x.relative[a=s.type]);)if((u=x.find[a])&&(r=u(s.matches[0].replace(bt,wt),yt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&h(o),!t)return Q.apply(n,r),n;break}}return(c||C(t,f))(r,e,!R,n,!e||yt.test(t)&&l(e.parentNode)||e),n},w.sortStable=H.split("").sort(z).join("")===H,w.detectDuplicates=!!O,I(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;if(!n)return t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);ot.find=lt,ot.expr=lt.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=lt.uniqueSort,ot.text=lt.getText,ot.isXMLDoc=lt.isXML,ot.contains=lt.contains;var ft=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&ot(t).is(n))break;r.push(t)}return r},ht=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},pt=ot.expr.match.needsContext,dt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,gt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?ot.find.matchesSelector(r,t)?[r]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;e<n;e++)if(ot.contains(i[e],this))return!0}));for(e=0;e<n;e++)ot.find(t,i[e],r);return r=this.pushStack(n>1?ot.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&pt.test(t)?ot(t):t||[],!1).length}});var vt,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,yt=ot.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||vt,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:mt.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:J,!0)),dt.test(r[1])&&ot.isPlainObject(e))for(r in e)ot.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=J.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=J,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==n.ready?n.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};yt.prototype=ot.fn,vt=ot(J);var _t=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var e=ot(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ot.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=pt.test(t)||"string"!=typeof t?ot(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ot.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?Z.call(ot(t),this[0]):Z.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ft(t,"parentNode")},parentsUntil:function(t,e,n){return ft(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return ft(t,"nextSibling")},prevAll:function(t){return ft(t,"previousSibling")},nextUntil:function(t,e,n){return ft(t,"nextSibling",n)},prevUntil:function(t,e,n){return ft(t,"previousSibling",n)},siblings:function(t){return ht((t.parentNode||{}).firstChild,t)},children:function(t){return ht(t.firstChild)},contents:function(t){return t.contentDocument||ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,r){var i=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(bt[t]||ot.uniqueSort(i),_t.test(t)&&i.reverse()),this.pushStack(i)}});var wt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?o(t):ot.extend({},t);var e,n,r,i,s=[],a=[],u=-1,c=function(){for(i=t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<s.length;)s[u].apply(n[0],n[1])===!1&&t.stopOnFalse&&(u=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},l={add:function(){return s&&(n&&!e&&(u=s.length-1,a.push(n)),function e(n){ot.each(n,function(n,r){ot.isFunction(r)?t.unique&&l.has(r)||s.push(r):r&&r.length&&"string"!==ot.type(r)&&e(r)})}(arguments),n&&!e&&c()),this},remove:function(){return ot.each(arguments,function(t,e){for(var n;(n=ot.inArray(e,s,n))>-1;)s.splice(n,1),n<=u&&u--}),this},has:function(t){return t?ot.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,o){var s=ot.isFunction(t[e])&&t[e];i[o[1]](function(){var t=s&&s.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,r):r}},i={};return r.pipe=r.then,ot.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=G.call(arguments),s=o.length,a=1!==s||t&&ot.isFunction(t.promise)?s:0,u=1===a?t:ot.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?G.call(arguments):i,r===e?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,e)).done(c(i,r,o)).fail(u.reject):--a;return a||u.resolveWith(r,o),u.promise()}});var xt;ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(t===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,t!==!0&&--ot.readyWait>0||(xt.resolveWith(J,[ot]),ot.fn.triggerHandler&&(ot(J).triggerHandler("ready"),ot(J).off("ready"))))}}),ot.ready.promise=function(e){return xt||(xt=ot.Deferred(),"complete"===J.readyState||"loading"!==J.readyState&&!J.documentElement.doScroll?t.setTimeout(ot.ready):(J.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s))),xt.promise(e)},ot.ready.promise();var kt=function(t,e,n,r,i,o,s){var a=0,u=t.length,c=null==n;if("object"===ot.type(n)){i=!0;for(a in n)kt(t,e,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,ot.isFunction(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(ot(t),n)})),e))for(;a<u;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:c?e.call(t):u?e(t[0],n):o},Tt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};a.uid=1,a.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Tt(t))return{};var e=t[this.expando];return e||(e={},Tt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[e]=n;else for(r in e)i[r]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,ot.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ot.isArray(e)?r=e.concat(e.map(ot.camelCase)):(i=ot.camelCase(e),e in o?r=[e,i]:(r=i,r=r in o?[r]:r.match(wt)||[])),n=r.length;for(;n--;)delete o[r[n]]}(void 0===e||ot.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ot.isEmptyObject(e)}};var Et=new a,Ct=new a,St=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,jt=/[A-Z]/g;ot.extend({hasData:function(t){return Ct.hasData(t)||Et.hasData(t)},data:function(t,e,n){return Ct.access(t,e,n)},removeData:function(t,e){Ct.remove(t,e)},_data:function(t,e,n){return Et.access(t,e,n)},_removeData:function(t,e){Et.remove(t,e)}}),ot.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=Ct.get(o),1===o.nodeType&&!Et.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=ot.camelCase(r.slice(5)),u(o,r,i[r])));Et.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Ct.set(this,t)}):kt(this,function(e){var n,r;if(o&&void 0===e){if(n=Ct.get(o,t)||Ct.get(o,t.replace(jt,"-$&").toLowerCase()),void 0!==n)return n;if(r=ot.camelCase(t),n=Ct.get(o,r),void 0!==n)return n;if(n=u(o,r,void 0),void 0!==n)return n}else r=ot.camelCase(t),this.each(function(){var n=Ct.get(this,r);Ct.set(this,r,e),t.indexOf("-")>-1&&void 0!==n&&Ct.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Ct.remove(this,t)})}}),ot.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Et.get(t,e),n&&(!r||ot.isArray(n)?r=Et.access(t,e,ot.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),r=n.length,i=n.shift(),o=ot._queueHooks(t,e),s=function(){ot.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Et.get(t,n)||Et.access(t,n,{empty:ot.Callbacks("once memory").add(function(){Et.remove(t,[e+"queue",n])})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each(function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=ot.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)n=Et.get(o[s],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var At=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ot=new RegExp("^(?:([+-])=|)("+At+")([a-z%]*)$","i"),It=["Top","Right","Bottom","Left"],Nt=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},Dt=/^(?:checkbox|radio)$/i,Rt=/<([\w:-]+)/,Lt=/^$|\/(?:java|ecma)script/i,Ft={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td;var Pt=/<|&#?\w+;/;!function(){var t=J.createDocumentFragment(),e=t.appendChild(J.createElement("div")),n=J.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),rt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",rt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var qt=/^key/,Ht=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$t=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,c,l,f,h,p,d,g,v=Et.get(t);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=ot.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(e){return"undefined"!=typeof ot&&ot.event.triggered!==e.type?ot.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(wt)||[""],c=e.length;c--;)a=$t.exec(e[c])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p&&(f=ot.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=ot.event.special[p]||{},l=ot.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ot.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||(h=u[p]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,d,s)!==!1||t.addEventListener&&t.addEventListener(p,s)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),ot.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,s,a,u,c,l,f,h,p,d,g,v=Et.hasData(t)&&Et.get(t);if(v&&(u=v.events)){for(e=(e||"").match(wt)||[""],c=e.length;c--;)if(a=$t.exec(e[c])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p){for(f=ot.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)l=h[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(h.splice(o,1),
l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));s&&!h.length&&(f.teardown&&f.teardown.call(t,d,v.handle)!==!1||ot.removeEvent(t,p,v.handle),delete u[p])}else for(p in u)ot.event.remove(t,p+e[c],n,r,!0);ot.isEmptyObject(u)&&Et.remove(t,"handle events")}},dispatch:function(t){t=ot.event.fix(t);var e,n,r,i,o,s=[],a=G.call(arguments),u=(Et.get(this,"events")||{})[t.type]||[],c=ot.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(s=ot.event.handlers.call(this,t,u),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,r=((ot.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,s=[],a=e.delegateCount,u=t.target;if(a&&u.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==t.type)){for(r=[],n=0;n<a;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?ot(i,this).index(u)>-1:ot.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||J,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ot.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Ht.test(i)?this.mouseHooks:qt.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new ot.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=J),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==g()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===g()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ot.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ot.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ot.Event=function(t,e){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?p:d):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,e)},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=p,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=p,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=p,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||ot.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ot.fn.extend({on:function(t,e,n,r){return v(this,t,e,n,r)},one:function(t,e,n,r){return v(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ot(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=d),this.each(function(){ot.event.remove(this,t,n,e)})}});var Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Wt=/<script|<style|<link/i,Ut=/checked\s*(?:[^=]|=\s*.checked.)/i,Vt=/^true\/(.*)/,Bt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ot.extend({htmlPrefilter:function(t){return t.replace(Mt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),u=ot.contains(t.ownerDocument,t);if(!(rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(s=l(a),o=l(t),r=0,i=o.length;r<i;r++)w(o[r],s[r]);if(e)if(n)for(o=o||l(t),s=s||l(a),r=0,i=o.length;r<i;r++)b(o[r],s[r]);else b(t,a);return s=l(a,"script"),s.length>0&&f(s,!u&&l(t,"script")),a},cleanData:function(t){for(var e,n,r,i=ot.event.special,o=0;void 0!==(n=t[o]);o++)if(Tt(n)){if(e=n[Et.expando]){if(e.events)for(r in e.events)i[r]?ot.event.remove(n,r):ot.removeEvent(n,r,e.handle);n[Et.expando]=void 0}n[Ct.expando]&&(n[Ct.expando]=void 0)}}}),ot.fn.extend({domManip:x,detach:function(t){return k(this,t,!0)},remove:function(t){return k(this,t)},text:function(t){return kt(this,function(t){return void 0===t?ot.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return x(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=m(this,t);e.appendChild(t)}})},prepend:function(){return x(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=m(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ot.cleanData(l(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return kt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Wt.test(t)&&!Ft[(Rt.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(ot.cleanData(l(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return x(this,arguments,function(e){var n=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(l(this)),n&&n.replaceChild(e,this))},t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var n,r=[],i=ot(t),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),ot(i[s])[e](n),Q.apply(r,n.get());return this.pushStack(r)}});var zt,Kt={HTML:"block",BODY:"block"},Xt=/^margin/,Jt=new RegExp("^("+At+")(?!px)[a-z%]+$","i"),Gt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Yt=function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=s[o];return i},Qt=J.documentElement;!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Qt.appendChild(s);var e=t.getComputedStyle(a);n="1%"!==e.top,o="2px"===e.marginLeft,r="4px"===e.width,a.style.marginRight="50%",i="4px"===e.marginRight,Qt.removeChild(s)}var n,r,i,o,s=J.createElement("div"),a=J.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ot.extend(rt,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},pixelMarginRight:function(){return null==r&&e(),i},reliableMarginLeft:function(){return null==r&&e(),o},reliableMarginRight:function(){var e,n=a.appendChild(J.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Qt.appendChild(s),e=!parseFloat(t.getComputedStyle(n).marginRight),Qt.removeChild(s),a.removeChild(n),e}}))}();var Zt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ne=["Webkit","O","Moz","ms"],re=J.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=C(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=ot.camelCase(e),u=t.style;return e=ot.cssProps[a]||(ot.cssProps[a]=j(a)||a),s=ot.cssHooks[e]||ot.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:u[e]:(o=typeof n,"string"===o&&(i=Ot.exec(n))&&i[1]&&(n=c(t,e,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ot.cssNumber[a]?"":"px")),rt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(u[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,s,a=ot.camelCase(e);return e=ot.cssProps[a]||(ot.cssProps[a]=j(a)||a),s=ot.cssHooks[e]||ot.cssHooks[a],s&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=C(t,e,r)),"normal"===i&&e in ee&&(i=ee[e]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,r){if(n)return Zt.test(ot.css(t,"display"))&&0===t.offsetWidth?Yt(t,te,function(){return I(t,e,r)}):I(t,e,r)},set:function(t,n,r){var i,o=r&&Gt(t),s=r&&O(t,e,r,"border-box"===ot.css(t,"boxSizing",!1,o),o);return s&&(i=Ot.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=ot.css(t,e)),A(t,n,s)}}}),ot.cssHooks.marginLeft=S(rt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(C(t,"marginLeft"))||t.getBoundingClientRect().left-Yt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ot.cssHooks.marginRight=S(rt.reliableMarginRight,function(t,e){if(e)return Yt(t,{display:"inline-block"},C,[t,"marginRight"])}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+It[r]+e]=o[r]||o[r-2]||o[0];return i}},Xt.test(t)||(ot.cssHooks[t+e].set=A)}),ot.fn.extend({css:function(t,e){return kt(this,function(t,e,n){var r,i,o={},s=0;if(ot.isArray(e)){for(r=Gt(t),i=e.length;s<i;s++)o[e[s]]=ot.css(t,e[s],!1,r);return o}return void 0!==n?ot.style(t,e,n):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Nt(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=D,D.prototype={constructor:D,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||ot.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=D.prototype.init,ot.fx.step={};var ie,oe,se=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;ot.Animation=ot.extend(H,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return c(n.elem,t,Ot.exec(e),n),n}]},tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.match(wt);for(var n,r=0,i=t.length;r<i;r++)n=t[r],H.tweeners[n]=H.tweeners[n]||[],H.tweeners[n].unshift(e)},prefilters:[P],prefilter:function(t,e){e?H.prefilters.unshift(t):H.prefilters.push(t)}}),ot.speed=function(t,e,n){var r=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Nt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=ot.isEmptyObject(t),o=ot.speed(e,n,r),s=function(){var e=H(this,ot.extend({},t),o);(i||Et.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=ot.timers,s=Et.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ae.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||ot.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=Et.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=ot.timers,s=r?r.length:0;for(n.finish=!0,ot.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(L(e,!0),t,r,i)}}),ot.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),ot.timers=[],ot.fx.tick=function(){var t,e=0,n=ot.timers;for(ie=ot.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||ot.fx.stop(),ie=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){oe||(oe=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(oe),oe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,n){return e=ot.fx?ot.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,r){var i=t.setTimeout(n,e);r.stop=function(){t.clearTimeout(i)}})},function(){var t=J.createElement("input"),e=J.createElement("select"),n=e.appendChild(J.createElement("option"));t.type="checkbox",rt.checkOn=""!==t.value,rt.optSelected=n.selected,e.disabled=!0,rt.optDisabled=!n.disabled,t=J.createElement("input"),t.value="t",t.type="radio",rt.radioValue="t"===t.value}();var ue,ce=ot.expr.attrHandle;ot.fn.extend({attr:function(t,e){return kt(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ot.prop(t,e,n):(1===o&&ot.isXMLDoc(t)||(e=e.toLowerCase(),i=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void ot.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=ot.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!rt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(wt);if(o&&1===t.nodeType)for(;n=o[i++];)r=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)}}),ue={set:function(t,e,n){return e===!1?ot.removeAttr(t,n):t.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ce[e]||ot.find.attr;ce[e]=function(t,e,r){var i,o;return r||(o=ce[e],ce[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,ce[e]=o),i}});var le=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return kt(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ot.propFix[t]||t]})}}),ot.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ot.isXMLDoc(t)||(e=ot.propFix[e]||e,i=ot.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):le.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),rt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this});var he=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,$(this)))});if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[u++];)if(i=$(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=ot.trim(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,$(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[u++];)if(i=$(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(s=0;o=e[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=ot.trim(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(n){ot(this).toggleClass(t.call(this,n,$(this),e),e)}):this.each(function(){var e,r,i,o;if("string"===n)for(r=0,i=ot(this),o=t.match(wt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||(e=$(this),e&&Et.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Et.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+$(n)+" ").replace(he," ").indexOf(e)>-1)return!0;return!1}});var pe=/\r/g,de=/[\x20\t\r\n\f]+/g;ot.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=ot.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,ot(this).val()):t,null==i?i="":"number"==typeof i?i+="":ot.isArray(i)&&(i=ot.map(i,function(t){return null==t?"":t+""})),e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=ot.valHooks[i.type]||ot.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(pe,""):null==n?"":n)}}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t)).replace(de," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(n=r[u],(n.selected||u===i)&&(rt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=ot.makeArray(e),s=i.length;s--;)r=i[s],(r.selected=ot.inArray(ot.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){if(ot.isArray(e))return t.checked=ot.inArray(ot(t).val(),e)>-1}},rt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ge=/^(?:focusinfocus|focusoutblur)$/;ot.extend(ot.event,{trigger:function(e,n,r,i){var o,s,a,u,c,l,f,h=[r||J],p=nt.call(e,"type")?e.type:e,d=nt.call(e,"namespace")?e.namespace.split("."):[];if(s=a=r=r||J,3!==r.nodeType&&8!==r.nodeType&&!ge.test(p+ot.event.triggered)&&(p.indexOf(".")>-1&&(d=p.split("."),p=d.shift(),d.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[ot.expando]?e:new ot.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:ot.makeArray(n,[e]),f=ot.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!ot.isWindow(r)){for(u=f.delegateType||p,ge.test(u+p)||(s=s.parentNode);s;s=s.parentNode)h.push(s),a=s;a===(r.ownerDocument||J)&&h.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=h[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||p,l=(Et.get(s,"events")||{})[e.type]&&Et.get(s,"handle"),l&&l.apply(s,n),l=c&&s[c],l&&l.apply&&Tt(s)&&(e.result=l.apply(s,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!Tt(r)||c&&ot.isFunction(r[p])&&!ot.isWindow(r)&&(a=r[c],a&&(r[c]=null),ot.event.triggered=p,r[p](),ot.event.triggered=void 0,a&&(r[c]=a)),e.result}},simulate:function(t,e,n){var r=ot.extend(new ot.Event,n,{type:t,isSimulated:!0});ot.event.trigger(r,null,e)}}),ot.fn.extend({trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ot.event.trigger(t,e,n,!0)}}),ot.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(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),rt.focusin="onfocusin"in t,rt.focusin||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t))};ot.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=Et.access(r,e);i||r.addEventListener(t,n,!0),Et.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Et.access(r,e)-1;i?Et.access(r,e,i):(r.removeEventListener(t,n,!0),Et.remove(r,e))}}});var ve=t.location,me=ot.now(),ye=/\?/;ot.parseJSON=function(t){return JSON.parse(t+"")},ot.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var _e=/#.*$/,be=/([?&])_=[^&]*/,we=/^(.*?):[ \t]*([^\r\n]*)$/gm,xe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ke=/^(?:GET|HEAD)$/,Te=/^\/\//,Ee={},Ce={},Se="*/".concat("*"),je=J.createElement("a");je.href=ve.href,ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ve.href,type:"GET",isLocal:xe.test(ve.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Se,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?U(U(t,ot.ajaxSettings),e):U(ot.ajaxSettings,t)},ajaxPrefilter:M(Ee),ajaxTransport:M(Ce),ajax:function(e,n){function r(e,n,r,a){var c,f,y,_,w,k=n;2!==b&&(b=2,u&&t.clearTimeout(u),i=void 0,s=a||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,r&&(_=V(h,x,r)),_=B(h,_,x,c),c?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ot.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(ot.etag[o]=w)),204===e||"HEAD"===h.type?k="nocontent":304===e?k="notmodified":(k=_.state,f=_.data,y=_.error,c=!y)):(y=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(n||k)+"",c?g.resolveWith(p,[f,k,x]):g.rejectWith(p,[x,k,y]),x.statusCode(m),m=void 0,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?f:y]),v.fireWith(p,[x,k]),l&&(d.trigger("ajaxComplete",[x,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,o,s,a,u,c,l,f,h=ot.ajaxSetup({},n),p=h.context||h,d=h.context&&(p.nodeType||p.jquery)?ot(p):ot.event,g=ot.Deferred(),v=ot.Callbacks("once memory"),m=h.statusCode||{},y={},_={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=we.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=_[n]=_[n]||t,y[t]=e),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return i&&i.abort(e),r(0,e),this}};if(g.promise(x).complete=v.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||ve.href)+"").replace(_e,"").replace(Te,ve.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(wt)||[""],null==h.crossDomain){c=J.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=je.protocol+"//"+je.host!=c.protocol+"//"+c.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),W(Ee,h,n,x),2===b)return x;l=ot.event&&h.global,l&&0===ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ke.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(ye.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=be.test(o)?o.replace(be,"$1_="+me++):o+(ye.test(o)?"&":"?")+"_="+me++)),h.ifModified&&(ot.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&x.setRequestHeader("If-None-Match",ot.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Se+"; q=0.01":""):h.accepts["*"]);for(f in h.headers)x.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(h.beforeSend.call(p,x,h)===!1||2===b))return x.abort();w="abort";for(f in{success:1,error:1,complete:1})x[f](h[f]);if(i=W(Ce,h,n,x)){if(x.readyState=1,l&&d.trigger("ajaxSend",[x,h]),2===b)return x;h.async&&h.timeout>0&&(u=t.setTimeout(function(){x.abort("timeout")},h.timeout));try{b=1,i.send(y,r)}catch(t){if(!(b<2))throw t;r(-1,t)}}else r(-1,"No Transport");return x},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,r,i){return ot.isFunction(n)&&(i=i||r,r=n,n=void 0),ot.ajax(ot.extend({url:t,type:e,dataType:i,data:n,success:r},ot.isPlainObject(t)&&t))}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ot.fn.extend({wrapAll:function(t){var e;return ot.isFunction(t)?this.each(function(e){ot(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ot(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return!ot.expr.filters.visible(t)},ot.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Ae=/%20/g,Oe=/\[\]$/,Ie=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,r=[],i=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){i(this.name,this.value)});else for(n in t)z(n,t[n],e,i);return r.join("&").replace(Ae,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&De.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!Dt.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}}):{name:e.name,value:n.replace(Ie,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Re={0:200,1223:204},Le=ot.ajaxSettings.xhr();rt.cors=!!Le&&"withCredentials"in Le,rt.ajax=Le=!!Le,ot.ajaxTransport(function(e){var n,r;if(rt.cors||Le&&!e.crossDomain)return{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");
for(s in i)a.setRequestHeader(s,i[s]);n=function(t){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Re[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=ot("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),J.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Fe=[],Pe=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Fe.pop()||ot.expando+"_"+me++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,s,a=e.jsonp!==!1&&(Pe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pe.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Pe,"$1"+i):e.jsonp!==!1&&(e.url+=(ye.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||ot.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){s=arguments},r.always(function(){void 0===o?ot(t).removeProp(i):t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,Fe.push(i)),s&&ot.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||J;var r=dt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=h([t],e,i),i&&i.length&&ot(i).remove(),ot.merge([],r.childNodes))};var qe=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&qe)return qe.apply(this,arguments);var r,i,o,s=this,a=t.indexOf(" ");return a>-1&&(r=ot.trim(t.slice(a)),t=t.slice(0,a)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&ot.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?ot("<div>").append(ot.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length},ot.offset={setOffset:function(t,e,n){var r,i,o,s,a,u,c,l=ot.css(t,"position"),f=ot(t),h={};"static"===l&&(t.style.position="relative"),a=f.offset(),o=ot.css(t,"top"),u=ot.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),ot.isFunction(e)&&(e=e.call(t,n,ot.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+i),"using"in e?e.using.call(t,h):f.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,ot.contains(e,r)?(i=r.getBoundingClientRect(),n=K(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===ot.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(r=t.offset()),r.top+=ot.css(t[0],"borderTopWidth",!0),r.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-ot.css(n,"marginTop",!0),left:e.left-r.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||Qt})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ot.fn[t]=function(r){return kt(this,function(t,r,i){var o=K(t);return void 0===i?o?o[e]:t[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=S(rt.pixelPosition,function(t,n){if(n)return n=C(t,e),Jt.test(n)?ot(t).position()[e]+"px":n})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){ot.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return kt(this,function(e,n,r){var i;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?ot.css(e,n,s):ot.style(e,n,r,s)},e,o?r:void 0,o,null)}})}),ot.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var He=t.jQuery,$e=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=$e),e&&t.jQuery===ot&&(t.jQuery=He),ot},e||(t.jQuery=t.$=ot),ot})},3:function(t,e,n){var r,i;(function(o){!function(s){var a="object"==typeof self&&self.self===self&&self||"object"==typeof o&&o.global===o&&o;r=[n(4),n(2),e],i=function(t,e,n){a.Backbone=s(a,n,t,e)}.apply(e,r),!(void 0!==i&&(t.exports=i))}(function(t,e,n,r){var i=t.Backbone,o=Array.prototype.slice;e.VERSION="1.3.3",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s=function(t,e,r){switch(t){case 1:return function(){return n[e](this[r])};case 2:return function(t){return n[e](this[r],t)};case 3:return function(t,i){return n[e](this[r],u(t,this),i)};case 4:return function(t,i,o){return n[e](this[r],u(t,this),i,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[r]),n[e].apply(n,t)}}},a=function(t,e,r){n.each(e,function(e,i){n[i]&&(t.prototype[i]=s(e,i,r))})},u=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?c(t):n.isString(t)?function(e){return e.get(t)}:t},c=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}},l=e.Events={},f=/\s+/,h=function(t,e,r,i,o){var s,a=0;if(r&&"object"==typeof r){void 0!==i&&"context"in o&&void 0===o.context&&(o.context=i);for(s=n.keys(r);a<s.length;a++)e=h(t,e,s[a],r[s[a]],o)}else if(r&&f.test(r))for(s=r.split(f);a<s.length;a++)e=t(e,s[a],i,o);else e=t(e,r,i,o);return e};l.on=function(t,e,n){return p(this,t,e,n)};var p=function(t,e,n,r,i){if(t._events=h(d,t._events||{},e,n,{context:r,ctx:t,listening:i}),i){var o=t._listeners||(t._listeners={});o[i.id]=i}return t};l.listenTo=function(t,e,r){if(!t)return this;var i=t._listenId||(t._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),s=o[i];if(!s){var a=this._listenId||(this._listenId=n.uniqueId("l"));s=o[i]={obj:t,objId:i,id:a,listeningTo:o,count:0}}return p(t,e,r,this,s),this};var d=function(t,e,n,r){if(n){var i=t[e]||(t[e]=[]),o=r.context,s=r.ctx,a=r.listening;a&&a.count++,i.push({callback:n,context:o,ctx:o||s,listening:a})}return t};l.off=function(t,e,n){return this._events?(this._events=h(g,this._events,t,e,{context:n,listeners:this._listeners}),this):this},l.stopListening=function(t,e,r){var i=this._listeningTo;if(!i)return this;for(var o=t?[t._listenId]:n.keys(i),s=0;s<o.length;s++){var a=i[o[s]];if(!a)break;a.obj.off(e,r,this)}return this};var g=function(t,e,r,i){if(t){var o,s=0,a=i.context,u=i.listeners;if(e||r||a){for(var c=e?[e]:n.keys(t);s<c.length;s++){e=c[s];var l=t[e];if(!l)break;for(var f=[],h=0;h<l.length;h++){var p=l[h];r&&r!==p.callback&&r!==p.callback._callback||a&&a!==p.context?f.push(p):(o=p.listening,o&&0===--o.count&&(delete u[o.id],delete o.listeningTo[o.objId]))}f.length?t[e]=f:delete t[e]}return t}for(var d=n.keys(u);s<d.length;s++)o=u[d[s]],delete u[o.id],delete o.listeningTo[o.objId]}};l.once=function(t,e,r){var i=h(v,{},t,e,n.bind(this.off,this));return"string"==typeof t&&null==r&&(e=void 0),this.on(i,e,r)},l.listenToOnce=function(t,e,r){var i=h(v,{},e,r,n.bind(this.stopListening,this,t));return this.listenTo(t,i)};var v=function(t,e,r,i){if(r){var o=t[e]=n.once(function(){i(e,o),r.apply(this,arguments)});o._callback=r}return t};l.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),r=0;r<e;r++)n[r]=arguments[r+1];return h(m,this._events,t,void 0,n),this};var m=function(t,e,n,r){if(t){var i=t[e],o=t.all;i&&o&&(o=o.slice()),i&&y(i,r),o&&y(o,[e].concat(r))}return t},y=function(t,e){var n,r=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e);return}};l.bind=l.on,l.unbind=l.off,n.extend(e,l);var _=e.Model=function(t,e){var r=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{});var i=n.result(this,"defaults");r=n.defaults(n.extend({},i,r),i),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(_.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var i;if("object"==typeof t?(i=t,r=e):(i={})[t]=e,r||(r={}),!this._validate(i,r))return!1;var o=r.unset,s=r.silent,a=[],u=this._changing;this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,l=this.changed,f=this._previousAttributes;for(var h in i)e=i[h],n.isEqual(c[h],e)||a.push(h),n.isEqual(f[h],e)?delete l[h]:l[h]=e,o?delete c[h]:c[h]=e;if(this.idAttribute in i&&(this.id=this.get(this.idAttribute)),!s){a.length&&(this._pending=r);for(var p=0;p<a.length;p++)this.trigger("change:"+a[p],this,c[a[p]],r)}if(u)return this;if(!s)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,r={};for(var i in t){var o=t[i];n.isEqual(e[i],o)||(r[i]=o)}return!!n.size(r)&&r},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,r=t.success;return t.success=function(n){var i=t.parse?e.parse(n,t):n;return!!e.set(i,t)&&(r&&r.call(t.context,e,n,t),void e.trigger("sync",e,n,t))},M(this,t),this.sync("read",this,t)},save:function(t,e,r){var i;null==t||"object"==typeof t?(i=t,r=e):(i={})[t]=e,r=n.extend({validate:!0,parse:!0},r);var o=r.wait;if(i&&!o){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;var s=this,a=r.success,u=this.attributes;r.success=function(t){s.attributes=u;var e=r.parse?s.parse(t,r):t;return o&&(e=n.extend({},i,e)),!(e&&!s.set(e,r))&&(a&&a.call(r.context,s,t,r),void s.trigger("sync",s,t,r))},M(this,r),i&&o&&(this.attributes=n.extend({},u,i));var c=this.isNew()?"create":r.patch?"patch":"update";"patch"!==c||r.attrs||(r.attrs=i);var l=this.sync(c,this,r);return this.attributes=u,l},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,i=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){i&&o(),r&&r.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var s=!1;return this.isNew()?n.defer(t.success):(M(this,t),s=this.sync("delete",this,t)),i||o(),s},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||$();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}});var b={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};a(_,b,"attributes");var w=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},x={add:!0,remove:!0,merge:!0},k={add:!0,remove:!1},T=function(t,e,n){n=Math.min(Math.max(n,0),t.length);var r,i=Array(t.length-n),o=e.length;for(r=0;r<i.length;r++)i[r]=t[r+n];for(r=0;r<o;r++)t[r+n]=e[r];for(r=0;r<i.length;r++)t[r+o+n]=i[r]};n.extend(w.prototype,l,{model:_,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,k))},remove:function(t,e){e=n.extend({},e);var r=!n.isArray(t);t=r?[t]:t.slice();var i=this._removeModels(t,e);return!e.silent&&i.length&&(e.changes={added:[],merged:[],removed:i},this.trigger("update",this,e)),r?i[0]:i},set:function(t,e){if(null!=t){e=n.extend({},x,e),e.parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var r=!n.isArray(t);t=r?[t]:t.slice();var i=e.at;null!=i&&(i=+i),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);var o,s,a=[],u=[],c=[],l=[],f={},h=e.add,p=e.merge,d=e.remove,g=!1,v=this.comparator&&null==i&&e.sort!==!1,m=n.isString(this.comparator)?this.comparator:null;for(s=0;s<t.length;s++){o=t[s];var y=this.get(o);if(y){if(p&&o!==y){var _=this._isModel(o)?o.attributes:o;e.parse&&(_=y.parse(_,e)),y.set(_,e),c.push(y),v&&!g&&(g=y.hasChanged(m))}f[y.cid]||(f[y.cid]=!0,a.push(y)),t[s]=y}else h&&(o=t[s]=this._prepareModel(o,e),o&&(u.push(o),this._addReference(o,e),f[o.cid]=!0,a.push(o)))}if(d){for(s=0;s<this.length;s++)o=this.models[s],f[o.cid]||l.push(o);l.length&&this._removeModels(l,e)}var b=!1,w=!v&&h&&d;if(a.length&&w?(b=this.length!==a.length||n.some(this.models,function(t,e){return t!==a[e]}),this.models.length=0,T(this.models,a,0),this.length=this.models.length):u.length&&(v&&(g=!0),T(this.models,u,null==i?this.length:i),this.length=this.models.length),g&&this.sort({silent:!0}),!e.silent){for(s=0;s<u.length;s++)null!=i&&(e.index=i+s),o=u[s],o.trigger("add",o,this,e);(g||b)&&this.trigger("sort",this,e),(u.length||l.length||c.length)&&(e.changes={added:u,removed:l,merged:c},this.trigger("update",this,e))}return r?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;return n.isFunction(e)&&(e=n.bind(e,this)),1===r||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){t=n.extend({parse:!0},t);var e=t.success,r=this;return t.success=function(n){var i=t.reset?"reset":"set";r[i](n,t),e&&e.call(t.context,r,n,t),r.trigger("sync",r,n,t)},M(this,t),this.sync("read",this,t)},create:function(t,e){e=e?n.clone(e):{};var r=e.wait;if(t=this._prepareModel(t,e),!t)return!1;r||this.add(t,e);var i=this,o=e.success;return e.success=function(t,e,n){r&&i.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var r=new this.model(t,e);return r.validationError?(this.trigger("invalid",this,r.validationError,e),!1):r},_removeModels:function(t,e){for(var n=[],r=0;r<t.length;r++){var i=this.get(t[r]);if(i){var o=this.indexOf(i);this.models.splice(o,1),this.length--,delete this._byId[i.cid];var s=this.modelId(i.attributes);null!=s&&delete this._byId[s],e.silent||(e.index=o,i.trigger("remove",i,this,e)),n.push(i),this._removeReference(i,e)}}return n},_isModel:function(t){return t instanceof _},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){if(e){if(("add"===t||"remove"===t)&&n!==this)return;if("destroy"===t&&this.remove(e,r),"change"===t){var i=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);i!==o&&(null!=i&&delete this._byId[i],null!=o&&(this._byId[o]=e))}}this.trigger.apply(this,arguments)}});var E={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};a(w,E,"models");var C=e.View=function(t){this.cid=n.uniqueId("view"),n.extend(this,n.pick(t,j)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,j=["model","collection","el","id","attributes","className","tagName","events"];n.extend(C.prototype,l,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;this.undelegateEvents();for(var e in t){var r=t[e];if(n.isFunction(r)||(r=this[r]),r){var i=e.match(S);this.delegate(i[1],i[2],n.bind(r,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,r,i){var o=A[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(i.url||(s.url=n.result(r,"url")||$()),null!=i.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",i.emulateJSON&&(s.data._method=o);var a=i.beforeSend;i.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||i.emulateJSON||(s.processData=!1);var u=i.error;i.error=function(t,e,n){i.textStatus=e,i.errorThrown=n,u&&u.call(i.context,t,e,n)};var c=i.xhr=e.ajax(n.extend(s,i));return r.trigger("request",r,c,i),c};var A={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var O=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},I=/\((.*?)\)/g,N=/(\(\?)?:\w+/g,D=/\*\w+/g,R=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(O.prototype,l,{initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);o.execute(i,s,r)!==!1&&(o.trigger.apply(o,["route:"+r].concat(s)),o.trigger("route",r,s),e.history.trigger("route",o,r,s))}),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(R,"\\$&").replace(I,"(?:$1)?").replace(N,function(t,e){return e?t:"([^/?]+)"}).replace(D,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null})}});var L=e.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},F=/^[#\/]|\s+$/g,P=/^\/+|\/+$/g,q=/#.*$/;L.started=!1,n.extend(L.prototype,l,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(F,"")},start:function(t){if(L.started)throw new Error("Backbone.history has already been started");if(L.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(P,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),L.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e!==this.fragment&&(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!L.started)return!1;e&&e!==!0||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;if(t=this.decodeFragment(t.replace(q,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;e.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new L;var H=function(t,e){var r,i=this;return r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e),r.prototype=n.create(i.prototype,t),r.prototype.constructor=r,r.__super__=i.prototype,r};_.extend=w.extend=O.extend=C.extend=L.extend=H;var $=function(){throw new Error('A "url" property or function must be specified')},M=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e})}).call(e,function(){return this}())},4:function(t,e,n){var r;(function(t,i){(function(){function o(t,e){if(t!==e){var n=null===t,r=t===S,i=t===t,o=null===e,s=e===S,a=e===e;if(t>e&&!o||!i||n&&!s&&a||r&&a)return 1;if(t<e&&!n||!a||o&&!r&&i||s&&i)return-1}return 0}function s(t,e,n){for(var r=t.length,i=n?r:-1;n?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function a(t,e,n){if(e!==e)return y(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function u(t){return"function"==typeof t||!1}function c(t){return null==t?"":t+""}function l(t,e){for(var n=-1,r=t.length;++n<r&&e.indexOf(t.charAt(n))>-1;);return n}function f(t,e){for(var n=t.length;n--&&e.indexOf(t.charAt(n))>-1;);return n}function h(t,e){return o(t.criteria,e.criteria)||t.index-e.index}function p(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,a=i.length,u=n.length;++r<a;){var c=o(i[r],s[r]);if(c){if(r>=u)return c;var l=n[r];return c*("asc"===l||l===!0?1:-1)}}return t.index-e.index}function d(t){return zt[t]}function g(t){return Kt[t]}function v(t,e,n){return e?t=Gt[t]:n&&(t=Yt[t]),"\\"+t}function m(t){return"\\"+Yt[t]}function y(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i<r;){var o=t[i];if(o!==o)return i}return-1}function _(t){return!!t&&"object"==typeof t}function b(t){return t<=160&&t>=9&&t<=13||32==t||160==t||5760==t||6158==t||t>=8192&&(t<=8202||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function w(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;)t[n]===e&&(t[n]=z,o[++i]=n);return o}function x(t,e){for(var n,r=-1,i=t.length,o=-1,s=[];++r<i;){var a=t[r],u=e?e(a,r,t):a;r&&n===u||(n=u,s[++o]=a)}return s}function k(t){for(var e=-1,n=t.length;++e<n&&b(t.charCodeAt(e)););return e}function T(t){for(var e=t.length;e--&&b(t.charCodeAt(e)););return e}function E(t){return Xt[t]}function C(t){function e(t){if(_(t)&&!Aa(t)&&!(t instanceof i)){if(t instanceof r)return t;if(es.call(t,"__chain__")&&es.call(t,"__wrapped__"))return pr(t)}return new r(t)}function n(){}function r(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=js,this.__views__=[]}function b(){var t=new i(this.__wrapped__);return t.__actions__=te(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=te(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=te(this.__views__),t}function Z(){if(this.__filtered__){var t=new i(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function rt(){var t=this.__wrapped__.value(),e=this.__dir__,n=Aa(t),r=e<0,i=n?t.length:0,o=zn(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,h=0,p=ks(u,this.__takeCount__);if(!n||i<W||i==u&&p==u)return nn(r&&n?t.reverse():t,this.__actions__);var d=[];t:for(;u--&&h<p;){c+=e;for(var g=-1,v=t[c];++g<f;){var m=l[g],y=m.iteratee,_=m.type,b=y(v);if(_==V)v=b;else if(!b){if(_==U)continue t;break t}}d[h++]=v}return d}function ot(){this.__data__={}}function zt(t){return this.has(t)&&delete this.__data__[t]}function Kt(t){return"__proto__"==t?S:this.__data__[t]}function Xt(t){return"__proto__"!=t&&es.call(this.__data__,t)}function Jt(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this}function Gt(t){var e=t?t.length:0;for(this.data={hash:ms(null),set:new fs};e--;)this.push(t[e])}function Yt(t,e){var n=t.data,r="string"==typeof e||Ri(e)?n.set.has(e):n.hash[e];return r?0:-1}function Qt(t){var e=this.data;"string"==typeof t||Ri(t)?e.set.add(t):e.hash[t]=!0}function Zt(t,e){for(var n=-1,r=t.length,i=-1,o=e.length,s=Mo(r+o);++n<r;)s[n]=t[n];for(;++i<o;)s[n++]=e[i];return s}function te(t,e){
var n=-1,r=t.length;for(e||(e=Mo(r));++n<r;)e[n]=t[n];return e}function ee(t,e){for(var n=-1,r=t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function ne(t,e){for(var n=t.length;n--&&e(t[n],n,t)!==!1;);return t}function oe(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function se(t,e,n,r){for(var i=-1,o=t.length,s=r,a=s;++i<o;){var u=t[i],c=+e(u);n(c,s)&&(s=c,a=u)}return a}function ae(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[++i]=s)}return o}function ue(t,e){for(var n=-1,r=t.length,i=Mo(r);++n<r;)i[n]=e(t[n],n,t);return i}function ce(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function le(t,e,n,r){var i=-1,o=t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function fe(t,e,n,r){var i=t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function he(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function pe(t,e){for(var n=t.length,r=0;n--;)r+=+e(t[n])||0;return r}function de(t,e){return t===S?e:t}function ge(t,e,n,r){return t!==S&&es.call(r,n)?t:e}function ve(t,e,n){for(var r=-1,i=$a(e),o=i.length;++r<o;){var s=i[r],a=t[s],u=n(a,e[s],s,t,e);(u===u?u===a:a!==a)&&(a!==S||s in t)||(t[s]=u)}return t}function me(t,e){return null==e?t:_e(e,$a(e),t)}function ye(t,e){for(var n=-1,r=null==t,i=!r&&Yn(t),o=i?t.length:0,s=e.length,a=Mo(s);++n<s;){var u=e[n];i?a[n]=Qn(u,o)?t[u]:S:a[n]=r?S:t[u]}return a}function _e(t,e,n){n||(n={});for(var r=-1,i=e.length;++r<i;){var o=e[r];n[o]=t[o]}return n}function be(t,e,n){var r=typeof t;return"function"==r?e===S?t:sn(t,e,n):null==t?jo:"object"==r?He(t):e===S?Ro(t):$e(t,e)}function we(t,e,n,r,i,o,s){var a;if(n&&(a=i?n(t,r,i):n(t)),a!==S)return a;if(!Ri(t))return t;var u=Aa(t);if(u){if(a=Kn(t),!e)return te(t,a)}else{var c=rs.call(t),l=c==Q;if(c!=et&&c!=K&&(!l||i))return Bt[c]?Jn(t,c,e):i?t:{};if(a=Xn(l?{}:t),!e)return me(a,t)}o||(o=[]),s||(s=[]);for(var f=o.length;f--;)if(o[f]==t)return s[f];return o.push(t),s.push(a),(u?ee:Ie)(t,function(r,i){a[i]=we(r,e,n,i,t,o,s)}),a}function xe(t,e,n){if("function"!=typeof t)throw new Go(B);return hs(function(){t.apply(S,n)},e)}function ke(t,e){var n=t?t.length:0,r=[];if(!n)return r;var i=-1,o=Un(),s=o==a,u=s&&e.length>=W?gn(e):null,c=e.length;u&&(o=Yt,s=!1,e=u);t:for(;++i<n;){var l=t[i];if(s&&l===l){for(var f=c;f--;)if(e[f]===l)continue t;r.push(l)}else o(e,l,0)<0&&r.push(l)}return r}function Te(t,e){var n=!0;return Fs(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Ee(t,e,n,r){var i=r,o=i;return Fs(t,function(t,s,a){var u=+e(t,s,a);(n(u,i)||u===r&&u===o)&&(i=u,o=t)}),o}function Ce(t,e,n,r){var i=t.length;for(n=null==n?0:+n||0,n<0&&(n=-n>i?0:i+n),r=r===S||r>i?i:+r||0,r<0&&(r+=i),i=n>r?0:r>>>0,n>>>=0;n<i;)t[n++]=e;return t}function Se(t,e){var n=[];return Fs(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function je(t,e,n,r){var i;return n(t,function(t,n,o){if(e(t,n,o))return i=r?n:t,!1}),i}function Ae(t,e,n,r){r||(r=[]);for(var i=-1,o=t.length;++i<o;){var s=t[i];_(s)&&Yn(s)&&(n||Aa(s)||Ei(s))?e?Ae(s,e,n,r):ce(r,s):n||(r[r.length]=s)}return r}function Oe(t,e){return qs(t,e,to)}function Ie(t,e){return qs(t,e,$a)}function Ne(t,e){return Hs(t,e,$a)}function De(t,e){for(var n=-1,r=e.length,i=-1,o=[];++n<r;){var s=e[n];Di(t[s])&&(o[++i]=s)}return o}function Re(t,e,n){if(null!=t){n!==S&&n in fr(t)&&(e=[n]);for(var r=0,i=e.length;null!=t&&r<i;)t=t[e[r++]];return r&&r==i?t:S}}function Le(t,e,n,r,i,o){return t===e||(null==t||null==e||!Ri(t)&&!_(e)?t!==t&&e!==e:Fe(t,e,Le,n,r,i,o))}function Fe(t,e,n,r,i,o,s){var a=Aa(t),u=Aa(e),c=X,l=X;a||(c=rs.call(t),c==K?c=et:c!=et&&(a=Ui(t))),u||(l=rs.call(e),l==K?l=et:l!=et&&(u=Ui(e)));var f=c==et,h=l==et,p=c==l;if(p&&!a&&!f)return Hn(t,e,c);if(!i){var d=f&&es.call(t,"__wrapped__"),g=h&&es.call(e,"__wrapped__");if(d||g)return n(d?t.value():t,g?e.value():e,r,i,o,s)}if(!p)return!1;o||(o=[]),s||(s=[]);for(var v=o.length;v--;)if(o[v]==t)return s[v]==e;o.push(t),s.push(e);var m=(a?qn:$n)(t,e,n,r,i,o,s);return o.pop(),s.pop(),m}function Pe(t,e,n){var r=e.length,i=r,o=!n;if(null==t)return!i;for(t=fr(t);r--;){var s=e[r];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<i;){s=e[r];var a=s[0],u=t[a],c=s[1];if(o&&s[2]){if(u===S&&!(a in t))return!1}else{var l=n?n(u,c,a):S;if(!(l===S?Le(c,u,n,!0):l))return!1}}return!0}function qe(t,e){var n=-1,r=Yn(t)?Mo(t.length):[];return Fs(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function He(t){var e=Vn(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null!=t&&(t[n]===r&&(r!==S||n in fr(t)))}}return function(t){return Pe(t,e)}}function $e(t,e){var n=Aa(t),r=tr(t)&&rr(e),i=t+"";return t=hr(t),function(o){if(null==o)return!1;var s=i;if(o=fr(o),(n||!r)&&!(s in o)){if(o=1==t.length?o:Re(o,Xe(t,0,-1)),null==o)return!1;s=Cr(t),o=fr(o)}return o[s]===e?e!==S||s in o:Le(e,o[s],S,!0)}}function Me(t,e,n,r,i){if(!Ri(t))return t;var o=Yn(e)&&(Aa(e)||Ui(e)),s=o?S:$a(e);return ee(s||e,function(a,u){if(s&&(u=a,a=e[u]),_(a))r||(r=[]),i||(i=[]),We(t,e,u,Me,n,r,i);else{var c=t[u],l=n?n(c,a,u,t,e):S,f=l===S;f&&(l=a),l===S&&(!o||u in t)||!f&&(l===l?l===c:c!==c)||(t[u]=l)}}),t}function We(t,e,n,r,i,o,s){for(var a=o.length,u=e[n];a--;)if(o[a]==u)return void(t[n]=s[a]);var c=t[n],l=i?i(c,u,n,t,e):S,f=l===S;f&&(l=u,Yn(u)&&(Aa(u)||Ui(u))?l=Aa(c)?c:Yn(c)?te(c):[]:$i(u)||Ei(u)?l=Ei(c)?Xi(c):$i(c)?c:{}:f=!1),o.push(u),s.push(l),f?t[n]=r(l,u,i,o,s):(l===l?l!==c:c===c)&&(t[n]=l)}function Ue(t){return function(e){return null==e?S:e[t]}}function Ve(t){var e=t+"";return t=hr(t),function(n){return Re(n,t,e)}}function Be(t,e){for(var n=t?e.length:0;n--;){var r=e[n];if(r!=i&&Qn(r)){var i=r;ps.call(t,r,1)}}return t}function ze(t,e){return t+ys(Cs()*(e-t+1))}function Ke(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Xe(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,e<0&&(e=-e>i?0:i+e),n=n===S||n>i?i:+n||0,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Mo(i);++r<i;)o[r]=t[r+e];return o}function Je(t,e){var n;return Fs(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function Ge(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Ye(t,e,n){var r=Mn(),i=-1;e=ue(e,function(t){return r(t)});var o=qe(t,function(t){var n=ue(e,function(e){return e(t)});return{criteria:n,index:++i,value:t}});return Ge(o,function(t,e){return p(t,e,n)})}function Qe(t,e){var n=0;return Fs(t,function(t,r,i){n+=+e(t,r,i)||0}),n}function Ze(t,e){var n=-1,r=Un(),i=t.length,o=r==a,s=o&&i>=W,u=s?gn():null,c=[];u?(r=Yt,o=!1):(s=!1,u=e?[]:c);t:for(;++n<i;){var l=t[n],f=e?e(l,n,t):l;if(o&&l===l){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),c.push(l)}else r(u,f,0)<0&&((e||s)&&u.push(f),c.push(l))}return c}function tn(t,e){for(var n=-1,r=e.length,i=Mo(r);++n<r;)i[n]=t[e[n]];return i}function en(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Xe(t,r?0:o,r?o+1:i):Xe(t,r?o+1:0,r?i:o)}function nn(t,e){var n=t;n instanceof i&&(n=n.value());for(var r=-1,o=e.length;++r<o;){var s=e[r];n=s.func.apply(s.thisArg,ce([n],s.args))}return n}function rn(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&i<=Is){for(;r<i;){var o=r+i>>>1,s=t[o];(n?s<=e:s<e)&&null!==s?r=o+1:i=o}return i}return on(t,e,jo,n)}function on(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,s=e!==e,a=null===e,u=e===S;i<o;){var c=ys((i+o)/2),l=n(t[c]),f=l!==S,h=l===l;if(s)var p=h||r;else p=a?h&&f&&(r||null!=l):u?h&&(r||f):null!=l&&(r?l<=e:l<e);p?i=c+1:o=c}return ks(o,Os)}function sn(t,e,n){if("function"!=typeof t)return jo;if(e===S)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)};case 5:return function(n,r,i,o,s){return t.call(e,n,r,i,o,s)}}return function(){return t.apply(e,arguments)}}function an(t){var e=new ss(t.byteLength),n=new ds(e);return n.set(new ds(t)),e}function un(t,e,n){for(var r=n.length,i=-1,o=xs(t.length-r,0),s=-1,a=e.length,u=Mo(a+o);++s<a;)u[s]=e[s];for(;++i<r;)u[n[i]]=t[i];for(;o--;)u[s++]=t[i++];return u}function cn(t,e,n){for(var r=-1,i=n.length,o=-1,s=xs(t.length-i,0),a=-1,u=e.length,c=Mo(s+u);++o<s;)c[o]=t[o];for(var l=o;++a<u;)c[l+a]=e[a];for(;++r<i;)c[l+n[r]]=t[o++];return c}function ln(t,e){return function(n,r,i){var o=e?e():{};if(r=Mn(r,i,3),Aa(n))for(var s=-1,a=n.length;++s<a;){var u=n[s];t(o,u,r(u,s,n),n)}else Fs(n,function(e,n,i){t(o,e,r(e,n,i),i)});return o}}function fn(t){return mi(function(e,n){var r=-1,i=null==e?0:n.length,o=i>2?n[i-2]:S,s=i>2?n[2]:S,a=i>1?n[i-1]:S;for("function"==typeof o?(o=sn(o,a,5),i-=2):(o="function"==typeof a?a:S,i-=o?1:0),s&&Zn(n[0],n[1],s)&&(o=i<3?S:o,i=1);++r<i;){var u=n[r];u&&t(e,u,o)}return e})}function hn(t,e){return function(n,r){var i=n?Ws(n):0;if(!nr(i))return t(n,r);for(var o=e?i:-1,s=fr(n);(e?o--:++o<i)&&r(s[o],o,s)!==!1;);return n}}function pn(t){return function(e,n,r){for(var i=fr(e),o=r(e),s=o.length,a=t?s:-1;t?a--:++a<s;){var u=o[a];if(n(i[u],u,i)===!1)break}return e}}function dn(t,e){function n(){var i=this&&this!==re&&this instanceof n?r:t;return i.apply(e,arguments)}var r=mn(t);return n}function gn(t){return ms&&fs?new Gt(t):null}function vn(t){return function(e){for(var n=-1,r=Eo(lo(e)),i=r.length,o="";++n<i;)o=t(o,r[n],n);return o}}function mn(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Ls(t.prototype),r=t.apply(n,e);return Ri(r)?r:n}}function yn(t){function e(n,r,i){i&&Zn(n,r,i)&&(r=S);var o=Pn(n,t,S,S,S,S,S,r);return o.placeholder=e.placeholder,o}return e}function _n(t,e){return mi(function(n){var r=n[0];return null==r?r:(n.push(e),t.apply(S,n))})}function bn(t,e){return function(n,r,i){if(i&&Zn(n,r,i)&&(r=S),r=Mn(r,i,3),1==r.length){n=Aa(n)?n:lr(n);var o=se(n,r,t,e);if(!n.length||o!==e)return o}return Ee(n,r,t,e)}}function wn(t,e){return function(n,r,i){if(r=Mn(r,i,3),Aa(n)){var o=s(n,r,e);return o>-1?n[o]:S}return je(n,r,t)}}function xn(t){return function(e,n,r){return e&&e.length?(n=Mn(n,r,3),s(e,n,t)):-1}}function kn(t){return function(e,n,r){return n=Mn(n,r,3),je(e,n,t,!0)}}function Tn(t){return function(){for(var e,n=arguments.length,i=t?n:-1,o=0,s=Mo(n);t?i--:++i<n;){var a=s[o++]=arguments[i];if("function"!=typeof a)throw new Go(B);!e&&r.prototype.thru&&"wrapper"==Wn(a)&&(e=new r([],!0))}for(i=e?-1:n;++i<n;){a=s[i];var u=Wn(a),c="wrapper"==u?Ms(a):S;e=c&&er(c[0])&&c[1]==(F|N|R|P)&&!c[4].length&&1==c[9]?e[Wn(c[0])].apply(e,c[3]):1==a.length&&er(a)?e[u]():e.thru(a)}return function(){var t=arguments,r=t[0];if(e&&1==t.length&&Aa(r)&&r.length>=W)return e.plant(r).value();for(var i=0,o=n?s[i].apply(this,t):r;++i<n;)o=s[i].call(this,o);return o}}}function En(t,e){return function(n,r,i){return"function"==typeof r&&i===S&&Aa(n)?t(n,r):e(n,sn(r,i,3))}}function Cn(t){return function(e,n,r){return"function"==typeof n&&r===S||(n=sn(n,r,3)),t(e,n,to)}}function Sn(t){return function(e,n,r){return"function"==typeof n&&r===S||(n=sn(n,r,3)),t(e,n)}}function jn(t){return function(e,n,r){var i={};return n=Mn(n,r,3),Ie(e,function(e,r,o){var s=n(e,r,o);r=t?s:r,e=t?e:s,i[r]=e}),i}}function An(t){return function(e,n,r){return e=c(e),(t?e:"")+Dn(e,n,r)+(t?"":e)}}function On(t){var e=mi(function(n,r){var i=w(r,e.placeholder);return Pn(n,t,S,r,i)});return e}function In(t,e){return function(n,r,i,o){var s=arguments.length<3;return"function"==typeof r&&o===S&&Aa(n)?t(n,r,i,s):Ke(n,Mn(r,o,4),i,s,e)}}function Nn(t,e,n,r,i,o,s,a,u,c){function l(){for(var y=arguments.length,_=y,b=Mo(y);_--;)b[_]=arguments[_];if(r&&(b=un(b,r,i)),o&&(b=cn(b,o,s)),d||v){var x=l.placeholder,k=w(b,x);if(y-=k.length,y<c){var T=a?te(a):S,E=xs(c-y,0),C=d?k:S,j=d?S:k,I=d?b:S,N=d?S:b;e|=d?R:L,e&=~(d?L:R),g||(e&=~(A|O));var D=[t,e,n,I,C,N,j,T,u,E],F=Nn.apply(S,D);return er(t)&&Us(F,D),F.placeholder=x,F}}var P=h?n:this,q=p?P[t]:t;return a&&(b=ur(b,a)),f&&u<b.length&&(b.length=u),this&&this!==re&&this instanceof l&&(q=m||mn(t)),q.apply(P,b)}var f=e&F,h=e&A,p=e&O,d=e&N,g=e&I,v=e&D,m=p?S:mn(t);return l}function Dn(t,e,n){var r=t.length;if(e=+e,r>=e||!bs(e))return"";var i=e-r;return n=null==n?" ":n+"",mo(n,vs(i/n.length)).slice(0,i)}function Rn(t,e,n,r){function i(){for(var e=-1,a=arguments.length,u=-1,c=r.length,l=Mo(c+a);++u<c;)l[u]=r[u];for(;a--;)l[u++]=arguments[++e];var f=this&&this!==re&&this instanceof i?s:t;return f.apply(o?n:this,l)}var o=e&A,s=mn(t);return i}function Ln(t){var e=Bo[t];return function(t,n){return n=n===S?0:+n||0,n?(n=cs(10,n),e(t*n)/n):e(t)}}function Fn(t){return function(e,n,r,i){var o=Mn(r);return null==r&&o===be?rn(e,n,t):on(e,n,o(r,i,1),t)}}function Pn(t,e,n,r,i,o,s,a){var u=e&O;if(!u&&"function"!=typeof t)throw new Go(B);var c=r?r.length:0;if(c||(e&=~(R|L),r=i=S),c-=i?i.length:0,e&L){var l=r,f=i;r=i=S}var h=u?S:Ms(t),p=[t,e,n,r,i,l,f,o,s,a];if(h&&(ir(p,h),e=p[1],a=p[9]),p[9]=null==a?u?0:t.length:xs(a-c,0)||0,e==A)var d=dn(p[0],p[2]);else d=e!=R&&e!=(A|R)||p[4].length?Nn.apply(S,p):Rn.apply(S,p);var g=h?$s:Us;return g(d,p)}function qn(t,e,n,r,i,o,s){var a=-1,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;for(;++a<u;){var l=t[a],f=e[a],h=r?r(i?f:l,i?l:f,a):S;if(h!==S){if(h)continue;return!1}if(i){if(!he(e,function(t){return l===t||n(l,t,r,i,o,s)}))return!1}else if(l!==f&&!n(l,f,r,i,o,s))return!1}return!0}function Hn(t,e,n){switch(n){case J:case G:return+t==+e;case Y:return t.name==e.name&&t.message==e.message;case tt:return t!=+t?e!=+e:t==+e;case nt:case it:return t==e+""}return!1}function $n(t,e,n,r,i,o,s){var a=$a(t),u=a.length,c=$a(e),l=c.length;if(u!=l&&!i)return!1;for(var f=u;f--;){var h=a[f];if(!(i?h in e:es.call(e,h)))return!1}for(var p=i;++f<u;){h=a[f];var d=t[h],g=e[h],v=r?r(i?g:d,i?d:g,h):S;if(!(v===S?n(d,g,r,i,o,s):v))return!1;p||(p="constructor"==h)}if(!p){var m=t.constructor,y=e.constructor;if(m!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof y&&y instanceof y))return!1}return!0}function Mn(t,n,r){var i=e.callback||Co;return i=i===Co?be:i,r?i(t,n,r):i}function Wn(t){for(var e=t.name,n=Rs[e],r=n?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Un(t,n,r){var i=e.indexOf||Tr;return i=i===Tr?a:i,t?i(t,n,r):i}function Vn(t){for(var e=eo(t),n=e.length;n--;)e[n][2]=rr(e[n][1]);return e}function Bn(t,e){var n=null==t?S:t[e];return Pi(n)?n:S}function zn(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=ks(e,t+s);break;case"takeRight":t=xs(t,e-s)}}return{start:t,end:e}}function Kn(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&es.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Xn(t){var e=t.constructor;return"function"==typeof e&&e instanceof e||(e=Ko),new e}function Jn(t,e,n){var r=t.constructor;switch(e){case st:return an(t);case J:case G:return new r(+t);case at:case ut:case ct:case lt:case ft:case ht:case pt:case dt:case gt:var i=t.buffer;return new r(n?an(i):i,t.byteOffset,t.length);case tt:case it:return new r(t);case nt:var o=new r(t.source,Rt.exec(t));o.lastIndex=t.lastIndex}return o}function Gn(t,e,n){null==t||tr(e,t)||(e=hr(e),t=1==e.length?t:Re(t,Xe(e,0,-1)),e=Cr(e));var r=null==t?t:t[e];return null==r?S:r.apply(t,n)}function Yn(t){return null!=t&&nr(Ws(t))}function Qn(t,e){return t="number"==typeof t||Pt.test(t)?+t:-1,e=null==e?Ns:e,t>-1&&t%1==0&&t<e}function Zn(t,e,n){if(!Ri(n))return!1;var r=typeof e;if("number"==r?Yn(n)&&Qn(e,n.length):"string"==r&&e in n){var i=n[e];return t===t?t===i:i!==i}return!1}function tr(t,e){var n=typeof t;if("string"==n&&St.test(t)||"number"==n)return!0;if(Aa(t))return!1;var r=!Ct.test(t);return r||null!=e&&t in fr(e)}function er(t){var n=Wn(t);if(!(n in i.prototype))return!1;var r=e[n];if(t===r)return!0;var o=Ms(r);return!!o&&t===o[0]}function nr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ns}function rr(t){return t===t&&!Ri(t)}function ir(t,e){var n=t[1],r=e[1],i=n|r,o=i<F,s=r==F&&n==N||r==F&&n==P&&t[7].length<=e[8]||r==(F|P)&&n==N;if(!o&&!s)return t;r&A&&(t[2]=e[2],i|=n&A?0:I);var a=e[3];if(a){var u=t[3];t[3]=u?un(u,a,e[4]):te(a),t[4]=u?w(t[3],z):te(e[4])}return a=e[5],a&&(u=t[5],t[5]=u?cn(u,a,e[6]):te(a),t[6]=u?w(t[5],z):te(e[6])),a=e[7],a&&(t[7]=te(a)),r&F&&(t[8]=null==t[8]?e[8]:ks(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function or(t,e){return t===S?e:Oa(t,e,or)}function sr(t,e){t=fr(t);for(var n=-1,r=e.length,i={};++n<r;){var o=e[n];o in t&&(i[o]=t[o])}return i}function ar(t,e){var n={};return Oe(t,function(t,r,i){e(t,r,i)&&(n[r]=t)}),n}function ur(t,e){for(var n=t.length,r=ks(e.length,n),i=te(t);r--;){var o=e[r];t[r]=Qn(o,n)?i[o]:S}return t}function cr(t){for(var e=to(t),n=e.length,r=n&&t.length,i=!!r&&nr(r)&&(Aa(t)||Ei(t)),o=-1,s=[];++o<n;){var a=e[o];(i&&Qn(a,r)||es.call(t,a))&&s.push(a)}return s}function lr(t){return null==t?[]:Yn(t)?Ri(t)?t:Ko(t):oo(t)}function fr(t){return Ri(t)?t:Ko(t)}function hr(t){if(Aa(t))return t;var e=[];return c(t).replace(jt,function(t,n,r,i){e.push(r?i.replace(Nt,"$1"):n||t)}),e}function pr(t){return t instanceof i?t.clone():new r(t.__wrapped__,t.__chain__,te(t.__actions__))}function dr(t,e,n){e=(n?Zn(t,e,n):null==e)?1:xs(ys(e)||1,1);for(var r=0,i=t?t.length:0,o=-1,s=Mo(vs(i/e));r<i;)s[++o]=Xe(t,r,r+=e);return s}function gr(t){for(var e=-1,n=t?t.length:0,r=-1,i=[];++e<n;){var o=t[e];o&&(i[++r]=o)}return i}function vr(t,e,n){var r=t?t.length:0;return r?((n?Zn(t,e,n):null==e)&&(e=1),Xe(t,e<0?0:e)):[]}function mr(t,e,n){var r=t?t.length:0;return r?((n?Zn(t,e,n):null==e)&&(e=1),e=r-(+e||0),Xe(t,0,e<0?0:e)):[]}function yr(t,e,n){return t&&t.length?en(t,Mn(e,n,3),!0,!0):[]}function _r(t,e,n){return t&&t.length?en(t,Mn(e,n,3),!0):[]}function br(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&Zn(t,e,n)&&(n=0,r=i),Ce(t,e,n,r)):[]}function wr(t){return t?t[0]:S}function xr(t,e,n){var r=t?t.length:0;return n&&Zn(t,e,n)&&(e=!1),r?Ae(t,e):[]}function kr(t){var e=t?t.length:0;return e?Ae(t,!0):[]}function Tr(t,e,n){var r=t?t.length:0;if(!r)return-1;if("number"==typeof n)n=n<0?xs(r+n,0):n;else if(n){var i=rn(t,e);return i<r&&(e===e?e===t[i]:t[i]!==t[i])?i:-1}return a(t,e,n||0)}function Er(t){return mr(t,1)}function Cr(t){var e=t?t.length:0;return e?t[e-1]:S}function Sr(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if("number"==typeof n)i=(n<0?xs(r+n,0):ks(n||0,r-1))+1;else if(n){i=rn(t,e,!0)-1;var o=t[i];return(e===e?e===o:o!==o)?i:-1}if(e!==e)return y(t,i,!0);for(;i--;)if(t[i]===e)return i;return-1}function jr(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var n=0,r=Un(),i=t.length;++n<i;)for(var o=0,s=t[n];(o=r(e,s,o))>-1;)ps.call(e,o,1);return e}function Ar(t,e,n){var r=[];if(!t||!t.length)return r;var i=-1,o=[],s=t.length;for(e=Mn(e,n,3);++i<s;){var a=t[i];e(a,i,t)&&(r.push(a),o.push(i))}return Be(t,o),r}function Or(t){return vr(t,1)}function Ir(t,e,n){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&Zn(t,e,n)&&(e=0,n=r),Xe(t,e,n)):[]}function Nr(t,e,n){var r=t?t.length:0;return r?((n?Zn(t,e,n):null==e)&&(e=1),Xe(t,0,e<0?0:e)):[]}function Dr(t,e,n){var r=t?t.length:0;return r?((n?Zn(t,e,n):null==e)&&(e=1),e=r-(+e||0),Xe(t,e<0?0:e)):[]}function Rr(t,e,n){return t&&t.length?en(t,Mn(e,n,3),!1,!0):[]}function Lr(t,e,n){return t&&t.length?en(t,Mn(e,n,3)):[]}function Fr(t,e,n,r){var i=t?t.length:0;if(!i)return[];null!=e&&"boolean"!=typeof e&&(r=n,n=Zn(t,e,r)?S:e,e=!1);var o=Mn();return null==n&&o===be||(n=o(n,r,3)),e&&Un()==a?x(t,n):Ze(t,n)}function Pr(t){if(!t||!t.length)return[];var e=-1,n=0;t=ae(t,function(t){if(Yn(t))return n=xs(t.length,n),!0});for(var r=Mo(n);++e<n;)r[e]=ue(t,Ue(e));return r}function qr(t,e,n){var r=t?t.length:0;if(!r)return[];var i=Pr(t);return null==e?i:(e=sn(e,n,4),ue(i,function(t){return le(t,e,S,!0)}))}function Hr(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Yn(n))var r=r?ce(ke(r,n),ke(n,r)):n}return r?Ze(r):[]}function $r(t,e){var n=-1,r=t?t.length:0,i={};for(!r||e||Aa(t[0])||(e=[]);++n<r;){var o=t[n];e?i[o]=e[n]:o&&(i[o[0]]=o[1])}return i}function Mr(t){var n=e(t);return n.__chain__=!0,n}function Wr(t,e,n){return e.call(n,t),t}function Ur(t,e,n){return e.call(n,t)}function Vr(){return Mr(this)}function Br(){return new r(this.value(),this.__chain__)}function zr(t){for(var e,r=this;r instanceof n;){var i=pr(r);e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e}function Kr(){var t=this.__wrapped__,e=function(t){return n&&n.__dir__<0?t:t.reverse()};if(t instanceof i){var n=t;return this.__actions__.length&&(n=new i(this)),n=n.reverse(),n.__actions__.push({func:Ur,args:[e],thisArg:S}),new r(n,this.__chain__)}return this.thru(e)}function Xr(){return this.value()+""}function Jr(){return nn(this.__wrapped__,this.__actions__)}function Gr(t,e,n){var r=Aa(t)?oe:Te;return n&&Zn(t,e,n)&&(e=S),"function"==typeof e&&n===S||(e=Mn(e,n,3)),r(t,e)}function Yr(t,e,n){var r=Aa(t)?ae:Se;return e=Mn(e,n,3),r(t,e)}function Qr(t,e){return ia(t,He(e))}function Zr(t,e,n,r){var i=t?Ws(t):0;return nr(i)||(t=oo(t),i=t.length),n="number"!=typeof n||r&&Zn(e,n,r)?0:n<0?xs(i+n,0):n||0,"string"==typeof t||!Aa(t)&&Wi(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Un(t,e,n)>-1}function ti(t,e,n){var r=Aa(t)?ue:qe;return e=Mn(e,n,3),r(t,e)}function ei(t,e){return ti(t,Ro(e))}function ni(t,e,n){var r=Aa(t)?ae:Se;return e=Mn(e,n,3),r(t,function(t,n,r){return!e(t,n,r)})}function ri(t,e,n){if(n?Zn(t,e,n):null==e){t=lr(t);var r=t.length;return r>0?t[ze(0,r-1)]:S}var i=-1,o=Ki(t),r=o.length,s=r-1;for(e=ks(e<0?0:+e||0,r);++i<e;){var a=ze(i,s),u=o[a];o[a]=o[i],o[i]=u}return o.length=e,o}function ii(t){return ri(t,js)}function oi(t){var e=t?Ws(t):0;return nr(e)?e:$a(t).length}function si(t,e,n){var r=Aa(t)?he:Je;return n&&Zn(t,e,n)&&(e=S),"function"==typeof e&&n===S||(e=Mn(e,n,3)),r(t,e)}function ai(t,e,n){if(null==t)return[];n&&Zn(t,e,n)&&(e=S);var r=-1;e=Mn(e,n,3);var i=qe(t,function(t,n,i){return{criteria:e(t,n,i),index:++r,value:t}});return Ge(i,h)}function ui(t,e,n,r){return null==t?[]:(r&&Zn(e,n,r)&&(n=S),Aa(e)||(e=null==e?[]:[e]),Aa(n)||(n=null==n?[]:[n]),Ye(t,e,n))}function ci(t,e){return Yr(t,He(e))}function li(t,e){if("function"!=typeof e){if("function"!=typeof t)throw new Go(B);var n=t;t=e,e=n}return t=bs(t=+t)?t:0,function(){if(--t<1)return e.apply(this,arguments)}}function fi(t,e,n){return n&&Zn(t,e,n)&&(e=S),e=t&&null==e?t.length:xs(+e||0,0),Pn(t,F,S,S,S,S,e)}function hi(t,e){var n;if("function"!=typeof e){if("function"!=typeof t)throw new Go(B);var r=t;t=e,e=r}return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=S),n}}function pi(t,e,n){function r(){p&&as(p),c&&as(c),g=0,c=p=d=S}function i(e,n){n&&as(n),c=p=d=S,e&&(g=ga(),l=t.apply(h,u),p||c||(u=h=S))}function o(){var t=e-(ga()-f);t<=0||t>e?i(d,c):p=hs(o,t)}function s(){i(m,p)}function a(){if(u=arguments,f=ga(),h=this,d=m&&(p||!y),v===!1)var n=y&&!p;else{c||y||(g=f);var r=v-(f-g),i=r<=0||r>v;i?(c&&(c=as(c)),g=f,l=t.apply(h,u)):c||(c=hs(s,r))}return i&&p?p=as(p):p||e===v||(p=hs(o,e)),n&&(i=!0,l=t.apply(h,u)),!i||p||c||(u=h=S),l}var u,c,l,f,h,p,d,g=0,v=!1,m=!0;if("function"!=typeof t)throw new Go(B);if(e=e<0?0:+e||0,n===!0){var y=!0;m=!1}else Ri(n)&&(y=!!n.leading,v="maxWait"in n&&xs(+n.maxWait||0,e),m="trailing"in n?!!n.trailing:m);return a.cancel=r,a}function di(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new Go(B);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new di.Cache,n}function gi(t){if("function"!=typeof t)throw new Go(B);return function(){return!t.apply(this,arguments)}}function vi(t){return hi(2,t)}function mi(t,e){if("function"!=typeof t)throw new Go(B);return e=xs(e===S?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,i=xs(n.length-e,0),o=Mo(i);++r<i;)o[r]=n[e+r];switch(e){case 0:return t.call(this,o);case 1:return t.call(this,n[0],o);case 2:return t.call(this,n[0],n[1],o)}var s=Mo(e+1);for(r=-1;++r<e;)s[r]=n[r];return s[e]=o,t.apply(this,s)}}function yi(t){if("function"!=typeof t)throw new Go(B);return function(e){return t.apply(this,e)}}function _i(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Go(B);return n===!1?r=!1:Ri(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pi(t,e,{leading:r,maxWait:+e,trailing:i})}function bi(t,e){return e=null==e?jo:e,Pn(e,R,S,[t],[])}function wi(t,e,n,r){return e&&"boolean"!=typeof e&&Zn(t,e,n)?e=!1:"function"==typeof e&&(r=n,n=e,e=!1),"function"==typeof n?we(t,e,sn(n,r,1)):we(t,e)}function xi(t,e,n){return"function"==typeof e?we(t,!0,sn(e,n,1)):we(t,!0)}function ki(t,e){return t>e}function Ti(t,e){return t>=e}function Ei(t){return _(t)&&Yn(t)&&es.call(t,"callee")&&!ls.call(t,"callee")}function Ci(t){return t===!0||t===!1||_(t)&&rs.call(t)==J}function Si(t){return _(t)&&rs.call(t)==G}function ji(t){return!!t&&1===t.nodeType&&_(t)&&!$i(t)}function Ai(t){return null==t||(Yn(t)&&(Aa(t)||Wi(t)||Ei(t)||_(t)&&Di(t.splice))?!t.length:!$a(t).length)}function Oi(t,e,n,r){n="function"==typeof n?sn(n,r,3):S;var i=n?n(t,e):S;return i===S?Le(t,e,n):!!i}function Ii(t){return _(t)&&"string"==typeof t.message&&rs.call(t)==Y}function Ni(t){return"number"==typeof t&&bs(t)}function Di(t){return Ri(t)&&rs.call(t)==Q}function Ri(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Li(t,e,n,r){return n="function"==typeof n?sn(n,r,3):S,Pe(t,Vn(e),n)}function Fi(t){return Hi(t)&&t!=+t}function Pi(t){return null!=t&&(Di(t)?os.test(ts.call(t)):_(t)&&Ft.test(t))}function qi(t){return null===t}function Hi(t){return"number"==typeof t||_(t)&&rs.call(t)==tt}function $i(t){var e;if(!_(t)||rs.call(t)!=et||Ei(t)||!es.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return Oe(t,function(t,e){n=e}),n===S||es.call(t,n)}function Mi(t){return Ri(t)&&rs.call(t)==nt}function Wi(t){return"string"==typeof t||_(t)&&rs.call(t)==it}function Ui(t){return _(t)&&nr(t.length)&&!!Vt[rs.call(t)]}function Vi(t){return t===S}function Bi(t,e){return t<e}function zi(t,e){return t<=e}function Ki(t){var e=t?Ws(t):0;return nr(e)?e?te(t):[]:oo(t)}function Xi(t){return _e(t,to(t))}function Ji(t,e,n){var r=Ls(t);return n&&Zn(t,e,n)&&(e=S),e?me(r,e):r}function Gi(t){return De(t,to(t))}function Yi(t,e,n){var r=null==t?S:Re(t,hr(e),e+"");return r===S?n:r}function Qi(t,e){if(null==t)return!1;var n=es.call(t,e);if(!n&&!tr(e)){if(e=hr(e),t=1==e.length?t:Re(t,Xe(e,0,-1)),null==t)return!1;e=Cr(e),n=es.call(t,e)}return n||nr(t.length)&&Qn(e,t.length)&&(Aa(t)||Ei(t))}function Zi(t,e,n){n&&Zn(t,e,n)&&(e=S);for(var r=-1,i=$a(t),o=i.length,s={};++r<o;){var a=i[r],u=t[a];e?es.call(s,u)?s[u].push(a):s[u]=[a]:s[u]=a}return s}function to(t){if(null==t)return[];Ri(t)||(t=Ko(t));var e=t.length;e=e&&nr(e)&&(Aa(t)||Ei(t))&&e||0;for(var n=t.constructor,r=-1,i="function"==typeof n&&n.prototype===t,o=Mo(e),s=e>0;++r<e;)o[r]=r+"";for(var a in t)s&&Qn(a,e)||"constructor"==a&&(i||!es.call(t,a))||o.push(a);return o}function eo(t){t=fr(t);for(var e=-1,n=$a(t),r=n.length,i=Mo(r);++e<r;){var o=n[e];i[e]=[o,t[o]]}return i}function no(t,e,n){var r=null==t?S:t[e];return r===S&&(null==t||tr(e,t)||(e=hr(e),t=1==e.length?t:Re(t,Xe(e,0,-1)),r=null==t?S:t[Cr(e)]),r=r===S?n:r),Di(r)?r.call(t):r}function ro(t,e,n){if(null==t)return t;var r=e+"";e=null!=t[r]||tr(e,t)?[r]:hr(e);for(var i=-1,o=e.length,s=o-1,a=t;null!=a&&++i<o;){var u=e[i];Ri(a)&&(i==s?a[u]=n:null==a[u]&&(a[u]=Qn(e[i+1])?[]:{})),a=a[u]}return t}function io(t,e,n,r){var i=Aa(t)||Ui(t);if(e=Mn(e,r,4),null==n)if(i||Ri(t)){var o=t.constructor;n=i?Aa(t)?new o:[]:Ls(Di(o)?o.prototype:S)}else n={};return(i?ee:Ie)(t,function(t,r,i){return e(n,t,r,i)}),n}function oo(t){return tn(t,$a(t))}function so(t){return tn(t,to(t))}function ao(t,e,n){return e=+e||0,n===S?(n=e,e=0):n=+n||0,t>=ks(e,n)&&t<xs(e,n)}function uo(t,e,n){n&&Zn(t,e,n)&&(e=n=S);var r=null==t,i=null==e;if(null==n&&(i&&"boolean"==typeof t?(n=t,t=1):"boolean"==typeof e&&(n=e,i=!0)),r&&i&&(e=1,i=!1),t=+t||0,i?(e=t,t=0):e=+e||0,n||t%1||e%1){var o=Cs();return ks(t+o*(e-t+us("1e-"+((o+"").length-1))),e)}return ze(t,e)}function co(t){return t=c(t),t&&t.charAt(0).toUpperCase()+t.slice(1)}function lo(t){return t=c(t),t&&t.replace(qt,d).replace(It,"")}function fo(t,e,n){t=c(t),e+="";var r=t.length;return n=n===S?r:ks(n<0?0:+n||0,r),n-=e.length,n>=0&&t.indexOf(e,n)==n}function ho(t){return t=c(t),t&&xt.test(t)?t.replace(bt,g):t}function po(t){return t=c(t),t&&Ot.test(t)?t.replace(At,v):t||"(?:)"}function go(t,e,n){t=c(t),e=+e;var r=t.length;if(r>=e||!bs(e))return t;var i=(e-r)/2,o=ys(i),s=vs(i);return n=Dn("",s,n),n.slice(0,o)+t+n}function vo(t,e,n){return(n?Zn(t,e,n):null==e)?e=0:e&&(e=+e),t=bo(t),Es(t,e||(Lt.test(t)?16:10))}function mo(t,e){var n="";if(t=c(t),e=+e,e<1||!t||!bs(e))return n;do e%2&&(n+=t),e=ys(e/2),t+=t;while(e);return n}function yo(t,e,n){return t=c(t),n=null==n?0:ks(n<0?0:+n||0,t.length),t.lastIndexOf(e,n)==n}function _o(t,n,r){var i=e.templateSettings;r&&Zn(t,n,r)&&(n=r=S),t=c(t),n=ve(me({},r||n),i,ge);var o,s,a=ve(me({},n.imports),i.imports,ge),u=$a(a),l=tn(a,u),f=0,h=n.interpolate||Ht,p="__p += '",d=Xo((n.escape||Ht).source+"|"+h.source+"|"+(h===Et?Dt:Ht).source+"|"+(n.evaluate||Ht).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Ut+"]")+"\n";t.replace(d,function(e,n,r,i,a,u){return r||(r=i),p+=t.slice(f,u).replace($t,m),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=u+e.length,e}),p+="';\n";var v=n.variable;v||(p="with (obj) {\n"+p+"\n}\n"),p=(s?p.replace(vt,""):p).replace(mt,"$1").replace(yt,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Ya(function(){return Vo(u,g+"return "+p).apply(S,l)});if(y.source=p,Ii(y))throw y;return y}function bo(t,e,n){var r=t;return(t=c(t))?(n?Zn(r,e,n):null==e)?t.slice(k(t),T(t)+1):(e+="",t.slice(l(t,e),f(t,e)+1)):t}function wo(t,e,n){var r=t;return t=c(t),t?(n?Zn(r,e,n):null==e)?t.slice(k(t)):t.slice(l(t,e+"")):t}function xo(t,e,n){var r=t;return t=c(t),t?(n?Zn(r,e,n):null==e)?t.slice(0,T(t)+1):t.slice(0,f(t,e+"")+1):t}function ko(t,e,n){n&&Zn(t,e,n)&&(e=S);var r=q,i=H;if(null!=e)if(Ri(e)){var o="separator"in e?e.separator:o;r="length"in e?+e.length||0:r,i="omission"in e?c(e.omission):i}else r=+e||0;if(t=c(t),r>=t.length)return t;var s=r-i.length;if(s<1)return i;var a=t.slice(0,s);if(null==o)return a+i;if(Mi(o)){if(t.slice(s).search(o)){var u,l,f=t.slice(0,s);for(o.global||(o=Xo(o.source,(Rt.exec(o)||"")+"g")),o.lastIndex=0;u=o.exec(f);)l=u.index;a=a.slice(0,null==l?s:l)}}else if(t.indexOf(o,s)!=s){var h=a.lastIndexOf(o);h>-1&&(a=a.slice(0,h))}return a+i}function To(t){return t=c(t),t&&wt.test(t)?t.replace(_t,E):t}function Eo(t,e,n){return n&&Zn(t,e,n)&&(e=S),t=c(t),t.match(e||Mt)||[]}function Co(t,e,n){return n&&Zn(t,e,n)&&(e=S),_(t)?Ao(t):be(t,e)}function So(t){return function(){return t}}function jo(t){return t}function Ao(t){return He(we(t,!0))}function Oo(t,e){return $e(t,we(e,!0))}function Io(t,e,n){if(null==n){var r=Ri(e),i=r?$a(e):S,o=i&&i.length?De(e,i):S;(o?o.length:r)||(o=!1,n=e,e=t,t=this)}o||(o=De(e,$a(e)));var s=!0,a=-1,u=Di(t),c=o.length;n===!1?s=!1:Ri(n)&&"chain"in n&&(s=n.chain);for(;++a<c;){var l=o[a],f=e[l];t[l]=f,u&&(t.prototype[l]=function(e){return function(){var n=this.__chain__;if(s||n){var r=t(this.__wrapped__),i=r.__actions__=te(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,ce([this.value()],arguments))}}(f))}return t}function No(){return re._=is,this}function Do(){}function Ro(t){return tr(t)?Ue(t):Ve(t)}function Lo(t){return function(e){return Re(t,hr(e),e+"");
}}function Fo(t,e,n){n&&Zn(t,e,n)&&(e=n=S),t=+t||0,n=null==n?1:+n||0,null==e?(e=t,t=0):e=+e||0;for(var r=-1,i=xs(vs((e-t)/(n||1)),0),o=Mo(i);++r<i;)o[r]=t,t+=n;return o}function Po(t,e,n){if(t=ys(t),t<1||!bs(t))return[];var r=-1,i=Mo(ks(t,As));for(e=sn(e,n,1);++r<t;)r<As?i[r]=e(r):e(r);return i}function qo(t){var e=++ns;return c(t)+e}function Ho(t,e){return(+t||0)+(+e||0)}function $o(t,e,n){return n&&Zn(t,e,n)&&(e=S),e=Mn(e,n,3),1==e.length?pe(Aa(t)?t:lr(t),e):Qe(t,e)}t=t?ie.defaults(re.Object(),t,ie.pick(re,Wt)):re;var Mo=t.Array,Wo=t.Date,Uo=t.Error,Vo=t.Function,Bo=t.Math,zo=t.Number,Ko=t.Object,Xo=t.RegExp,Jo=t.String,Go=t.TypeError,Yo=Mo.prototype,Qo=Ko.prototype,Zo=Jo.prototype,ts=Vo.prototype.toString,es=Qo.hasOwnProperty,ns=0,rs=Qo.toString,is=re._,os=Xo("^"+ts.call(es).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ss=t.ArrayBuffer,as=t.clearTimeout,us=t.parseFloat,cs=Bo.pow,ls=Qo.propertyIsEnumerable,fs=Bn(t,"Set"),hs=t.setTimeout,ps=Yo.splice,ds=t.Uint8Array,gs=Bn(t,"WeakMap"),vs=Bo.ceil,ms=Bn(Ko,"create"),ys=Bo.floor,_s=Bn(Mo,"isArray"),bs=t.isFinite,ws=Bn(Ko,"keys"),xs=Bo.max,ks=Bo.min,Ts=Bn(Wo,"now"),Es=t.parseInt,Cs=Bo.random,Ss=zo.NEGATIVE_INFINITY,js=zo.POSITIVE_INFINITY,As=4294967295,Os=As-1,Is=As>>>1,Ns=9007199254740991,Ds=gs&&new gs,Rs={};e.support={};e.templateSettings={escape:kt,evaluate:Tt,interpolate:Et,variable:"",imports:{_:e}};var Ls=function(){function t(){}return function(e){if(Ri(e)){t.prototype=e;var n=new t;t.prototype=S}return n||{}}}(),Fs=hn(Ie),Ps=hn(Ne,!0),qs=pn(),Hs=pn(!0),$s=Ds?function(t,e){return Ds.set(t,e),t}:jo,Ms=Ds?function(t){return Ds.get(t)}:Do,Ws=Ue("length"),Us=function(){var t=0,e=0;return function(n,r){var i=ga(),o=M-(i-e);if(e=i,o>0){if(++t>=$)return n}else t=0;return $s(n,r)}}(),Vs=mi(function(t,e){return _(t)&&Yn(t)?ke(t,Ae(e,!1,!0)):[]}),Bs=xn(),zs=xn(!0),Ks=mi(function(t){for(var e=t.length,n=e,r=Mo(f),i=Un(),o=i==a,s=[];n--;){var u=t[n]=Yn(u=t[n])?u:[];r[n]=o&&u.length>=120?gn(n&&u):null}var c=t[0],l=-1,f=c?c.length:0,h=r[0];t:for(;++l<f;)if(u=c[l],(h?Yt(h,u):i(s,u,0))<0){for(var n=e;--n;){var p=r[n];if((p?Yt(p,u):i(t[n],u,0))<0)continue t}h&&h.push(u),s.push(u)}return s}),Xs=mi(function(t,e){e=Ae(e);var n=ye(t,e);return Be(t,e.sort(o)),n}),Js=Fn(),Gs=Fn(!0),Ys=mi(function(t){return Ze(Ae(t,!1,!0))}),Qs=mi(function(t,e){return Yn(t)?ke(t,e):[]}),Zs=mi(Pr),ta=mi(function(t){var e=t.length,n=e>2?t[e-2]:S,r=e>1?t[e-1]:S;return e>2&&"function"==typeof n?e-=2:(n=e>1&&"function"==typeof r?(--e,r):S,r=S),t.length=e,qr(t,n,r)}),ea=mi(function(t){return t=Ae(t),this.thru(function(e){return Zt(Aa(e)?e:[fr(e)],t)})}),na=mi(function(t,e){return ye(t,Ae(e))}),ra=ln(function(t,e,n){es.call(t,n)?++t[n]:t[n]=1}),ia=wn(Fs),oa=wn(Ps,!0),sa=En(ee,Fs),aa=En(ne,Ps),ua=ln(function(t,e,n){es.call(t,n)?t[n].push(e):t[n]=[e]}),ca=ln(function(t,e,n){t[n]=e}),la=mi(function(t,e,n){var r=-1,i="function"==typeof e,o=tr(e),s=Yn(t)?Mo(t.length):[];return Fs(t,function(t){var a=i?e:o&&null!=t?t[e]:S;s[++r]=a?a.apply(t,n):Gn(t,e,n)}),s}),fa=ln(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ha=In(le,Fs),pa=In(fe,Ps),da=mi(function(t,e){if(null==t)return[];var n=e[2];return n&&Zn(e[0],e[1],n)&&(e.length=1),Ye(t,Ae(e),[])}),ga=Ts||function(){return(new Wo).getTime()},va=mi(function(t,e,n){var r=A;if(n.length){var i=w(n,va.placeholder);r|=R}return Pn(t,r,e,n,i)}),ma=mi(function(t,e){e=e.length?Ae(e):Gi(t);for(var n=-1,r=e.length;++n<r;){var i=e[n];t[i]=Pn(t[i],A,t)}return t}),ya=mi(function(t,e,n){var r=A|O;if(n.length){var i=w(n,ya.placeholder);r|=R}return Pn(e,r,t,n,i)}),_a=yn(N),ba=yn(D),wa=mi(function(t,e){return xe(t,1,e)}),xa=mi(function(t,e,n){return xe(t,e,n)}),ka=Tn(),Ta=Tn(!0),Ea=mi(function(t,e){if(e=Ae(e),"function"!=typeof t||!oe(e,u))throw new Go(B);var n=e.length;return mi(function(r){for(var i=ks(r.length,n);i--;)r[i]=e[i](r[i]);return t.apply(this,r)})}),Ca=On(R),Sa=On(L),ja=mi(function(t,e){return Pn(t,P,S,S,S,Ae(e))}),Aa=_s||function(t){return _(t)&&nr(t.length)&&rs.call(t)==X},Oa=fn(Me),Ia=fn(function(t,e,n){return n?ve(t,e,n):me(t,e)}),Na=_n(Ia,de),Da=_n(Oa,or),Ra=kn(Ie),La=kn(Ne),Fa=Cn(qs),Pa=Cn(Hs),qa=Sn(Ie),Ha=Sn(Ne),$a=ws?function(t){var e=null==t?S:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Yn(t)?cr(t):Ri(t)?ws(t):[]}:cr,Ma=jn(!0),Wa=jn(),Ua=mi(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=ue(Ae(e),Jo);return sr(t,ke(to(t),e))}var n=sn(e[0],e[1],3);return ar(t,function(t,e,r){return!n(t,e,r)})}),Va=mi(function(t,e){return null==t?{}:"function"==typeof e[0]?ar(t,sn(e[0],e[1],3)):sr(t,Ae(e))}),Ba=vn(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)}),za=vn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Ka=An(),Xa=An(!0),Ja=vn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Ga=vn(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))}),Ya=mi(function(t,e){try{return t.apply(S,e)}catch(t){return Ii(t)?t:new Uo(t)}}),Qa=mi(function(t,e){return function(n){return Gn(n,t,e)}}),Za=mi(function(t,e){return function(n){return Gn(t,n,e)}}),tu=Ln("ceil"),eu=Ln("floor"),nu=bn(ki,Ss),ru=bn(Bi,js),iu=Ln("round");return e.prototype=n.prototype,r.prototype=Ls(n.prototype),r.prototype.constructor=r,i.prototype=Ls(n.prototype),i.prototype.constructor=i,ot.prototype.delete=zt,ot.prototype.get=Kt,ot.prototype.has=Xt,ot.prototype.set=Jt,Gt.prototype.push=Qt,di.Cache=ot,e.after=li,e.ary=fi,e.assign=Ia,e.at=na,e.before=hi,e.bind=va,e.bindAll=ma,e.bindKey=ya,e.callback=Co,e.chain=Mr,e.chunk=dr,e.compact=gr,e.constant=So,e.countBy=ra,e.create=Ji,e.curry=_a,e.curryRight=ba,e.debounce=pi,e.defaults=Na,e.defaultsDeep=Da,e.defer=wa,e.delay=xa,e.difference=Vs,e.drop=vr,e.dropRight=mr,e.dropRightWhile=yr,e.dropWhile=_r,e.fill=br,e.filter=Yr,e.flatten=xr,e.flattenDeep=kr,e.flow=ka,e.flowRight=Ta,e.forEach=sa,e.forEachRight=aa,e.forIn=Fa,e.forInRight=Pa,e.forOwn=qa,e.forOwnRight=Ha,e.functions=Gi,e.groupBy=ua,e.indexBy=ca,e.initial=Er,e.intersection=Ks,e.invert=Zi,e.invoke=la,e.keys=$a,e.keysIn=to,e.map=ti,e.mapKeys=Ma,e.mapValues=Wa,e.matches=Ao,e.matchesProperty=Oo,e.memoize=di,e.merge=Oa,e.method=Qa,e.methodOf=Za,e.mixin=Io,e.modArgs=Ea,e.negate=gi,e.omit=Ua,e.once=vi,e.pairs=eo,e.partial=Ca,e.partialRight=Sa,e.partition=fa,e.pick=Va,e.pluck=ei,e.property=Ro,e.propertyOf=Lo,e.pull=jr,e.pullAt=Xs,e.range=Fo,e.rearg=ja,e.reject=ni,e.remove=Ar,e.rest=Or,e.restParam=mi,e.set=ro,e.shuffle=ii,e.slice=Ir,e.sortBy=ai,e.sortByAll=da,e.sortByOrder=ui,e.spread=yi,e.take=Nr,e.takeRight=Dr,e.takeRightWhile=Rr,e.takeWhile=Lr,e.tap=Wr,e.throttle=_i,e.thru=Ur,e.times=Po,e.toArray=Ki,e.toPlainObject=Xi,e.transform=io,e.union=Ys,e.uniq=Fr,e.unzip=Pr,e.unzipWith=qr,e.values=oo,e.valuesIn=so,e.where=ci,e.without=Qs,e.wrap=bi,e.xor=Hr,e.zip=Zs,e.zipObject=$r,e.zipWith=ta,e.backflow=Ta,e.collect=ti,e.compose=Ta,e.each=sa,e.eachRight=aa,e.extend=Ia,e.iteratee=Co,e.methods=Gi,e.object=$r,e.select=Yr,e.tail=Or,e.unique=Fr,Io(e,e),e.add=Ho,e.attempt=Ya,e.camelCase=Ba,e.capitalize=co,e.ceil=tu,e.clone=wi,e.cloneDeep=xi,e.deburr=lo,e.endsWith=fo,e.escape=ho,e.escapeRegExp=po,e.every=Gr,e.find=ia,e.findIndex=Bs,e.findKey=Ra,e.findLast=oa,e.findLastIndex=zs,e.findLastKey=La,e.findWhere=Qr,e.first=wr,e.floor=eu,e.get=Yi,e.gt=ki,e.gte=Ti,e.has=Qi,e.identity=jo,e.includes=Zr,e.indexOf=Tr,e.inRange=ao,e.isArguments=Ei,e.isArray=Aa,e.isBoolean=Ci,e.isDate=Si,e.isElement=ji,e.isEmpty=Ai,e.isEqual=Oi,e.isError=Ii,e.isFinite=Ni,e.isFunction=Di,e.isMatch=Li,e.isNaN=Fi,e.isNative=Pi,e.isNull=qi,e.isNumber=Hi,e.isObject=Ri,e.isPlainObject=$i,e.isRegExp=Mi,e.isString=Wi,e.isTypedArray=Ui,e.isUndefined=Vi,e.kebabCase=za,e.last=Cr,e.lastIndexOf=Sr,e.lt=Bi,e.lte=zi,e.max=nu,e.min=ru,e.noConflict=No,e.noop=Do,e.now=ga,e.pad=go,e.padLeft=Ka,e.padRight=Xa,e.parseInt=vo,e.random=uo,e.reduce=ha,e.reduceRight=pa,e.repeat=mo,e.result=no,e.round=iu,e.runInContext=C,e.size=oi,e.snakeCase=Ja,e.some=si,e.sortedIndex=Js,e.sortedLastIndex=Gs,e.startCase=Ga,e.startsWith=yo,e.sum=$o,e.template=_o,e.trim=bo,e.trimLeft=wo,e.trimRight=xo,e.trunc=ko,e.unescape=To,e.uniqueId=qo,e.words=Eo,e.all=Gr,e.any=si,e.contains=Zr,e.eq=Oi,e.detect=ia,e.foldl=ha,e.foldr=pa,e.head=wr,e.include=Zr,e.inject=ha,Io(e,function(){var t={};return Ie(e,function(n,r){e.prototype[r]||(t[r]=n)}),t}(),!1),e.sample=ri,e.prototype.sample=function(t){return this.__chain__||null!=t?this.thru(function(e){return ri(e,t)}):ri(this.value())},e.VERSION=j,ee(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),ee(["drop","take"],function(t,e){i.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new i(this);n=null==n?1:xs(ys(n)||0,0);var o=this.clone();return r?o.__takeCount__=ks(o.__takeCount__,n):o.__views__.push({size:n,type:t+(o.__dir__<0?"Right":"")}),o},i.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ee(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n!=V;i.prototype[t]=function(t,e){var i=this.clone();return i.__iteratees__.push({iteratee:Mn(t,e,1),type:n}),i.__filtered__=i.__filtered__||r,i}}),ee(["first","last"],function(t,e){var n="take"+(e?"Right":"");i.prototype[t]=function(){return this[n](1).value()[0]}}),ee(["initial","rest"],function(t,e){var n="drop"+(e?"":"Right");i.prototype[t]=function(){return this.__filtered__?new i(this):this[n](1)}}),ee(["pluck","where"],function(t,e){var n=e?"filter":"map",r=e?He:Ro;i.prototype[t]=function(t){return this[n](r(t))}}),i.prototype.compact=function(){return this.filter(jo)},i.prototype.reject=function(t,e){return t=Mn(t,e,1),this.filter(function(e){return!t(e)})},i.prototype.slice=function(t,e){t=null==t?0:+t||0;var n=this;return n.__filtered__&&(t>0||e<0)?new i(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==S&&(e=+e||0,n=e<0?n.dropRight(-e):n.take(e-t)),n)},i.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},i.prototype.toArray=function(){return this.take(js)},Ie(i.prototype,function(t,n){var o=/^(?:filter|map|reject)|While$/.test(n),s=/^(?:first|last)$/.test(n),a=e[s?"take"+("last"==n?"Right":""):n];a&&(e.prototype[n]=function(){var e=s?[1]:arguments,n=this.__chain__,u=this.__wrapped__,c=!!this.__actions__.length,l=u instanceof i,f=e[0],h=l||Aa(u);h&&o&&"function"==typeof f&&1!=f.length&&(l=h=!1);var p=function(t){return s&&n?a(t,1)[0]:a.apply(S,ce([t],e))},d={func:Ur,args:[p],thisArg:S},g=l&&!c;if(s&&!n)return g?(u=u.clone(),u.__actions__.push(d),t.call(u)):a.call(S,this.value())[0];if(!s&&h){u=g?u:new i(this);var v=t.apply(u,e);return v.__actions__.push(d),new r(v,n)}return this.thru(p)})}),ee(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var n=(/^(?:replace|split)$/.test(t)?Zo:Yo)[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:join|pop|replace|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;return i&&!this.__chain__?n.apply(this.value(),t):this[r](function(e){return n.apply(e,t)})}}),Ie(i.prototype,function(t,n){var r=e[n];if(r){var i=r.name,o=Rs[i]||(Rs[i]=[]);o.push({name:n,func:r})}}),Rs[Nn(S,O).name]=[{name:"wrapper",func:S}],i.prototype.clone=b,i.prototype.reverse=Z,i.prototype.value=rt,e.prototype.chain=Vr,e.prototype.commit=Br,e.prototype.concat=ea,e.prototype.plant=zr,e.prototype.reverse=Kr,e.prototype.toString=Xr,e.prototype.run=e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=Jr,e.prototype.collect=e.prototype.map,e.prototype.head=e.prototype.first,e.prototype.select=e.prototype.filter,e.prototype.tail=e.prototype.rest,e}var S,j="3.10.1",A=1,O=2,I=4,N=8,D=16,R=32,L=64,F=128,P=256,q=30,H="...",$=150,M=16,W=200,U=1,V=2,B="Expected a function",z="__lodash_placeholder__",K="[object Arguments]",X="[object Array]",J="[object Boolean]",G="[object Date]",Y="[object Error]",Q="[object Function]",Z="[object Map]",tt="[object Number]",et="[object Object]",nt="[object RegExp]",rt="[object Set]",it="[object String]",ot="[object WeakMap]",st="[object ArrayBuffer]",at="[object Float32Array]",ut="[object Float64Array]",ct="[object Int8Array]",lt="[object Int16Array]",ft="[object Int32Array]",ht="[object Uint8Array]",pt="[object Uint8ClampedArray]",dt="[object Uint16Array]",gt="[object Uint32Array]",vt=/\b__p \+= '';/g,mt=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_t=/&(?:amp|lt|gt|quot|#39|#96);/g,bt=/[&<>"'`]/g,wt=RegExp(_t.source),xt=RegExp(bt.source),kt=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,Ct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,St=/^\w*$/,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,At=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Ot=RegExp(At.source),It=/[\u0300-\u036f\ufe20-\ufe23]/g,Nt=/\\(\\)?/g,Dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Rt=/\w*$/,Lt=/^0[xX]/,Ft=/^\[object .+?Constructor\]$/,Pt=/^\d+$/,qt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Ht=/($^)/,$t=/['\n\r\u2028\u2029\\]/g,Mt=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),Wt=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Ut=-1,Vt={};Vt[at]=Vt[ut]=Vt[ct]=Vt[lt]=Vt[ft]=Vt[ht]=Vt[pt]=Vt[dt]=Vt[gt]=!0,Vt[K]=Vt[X]=Vt[st]=Vt[J]=Vt[G]=Vt[Y]=Vt[Q]=Vt[Z]=Vt[tt]=Vt[et]=Vt[nt]=Vt[rt]=Vt[it]=Vt[ot]=!1;var Bt={};Bt[K]=Bt[X]=Bt[st]=Bt[J]=Bt[G]=Bt[at]=Bt[ut]=Bt[ct]=Bt[lt]=Bt[ft]=Bt[tt]=Bt[et]=Bt[nt]=Bt[it]=Bt[ht]=Bt[pt]=Bt[dt]=Bt[gt]=!0,Bt[Y]=Bt[Q]=Bt[Z]=Bt[rt]=Bt[ot]=!1;var zt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Kt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Xt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Jt={function:!0,object:!0},Gt={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Yt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qt=Jt[typeof e]&&e&&!e.nodeType&&e,Zt=Jt[typeof t]&&t&&!t.nodeType&&t,te=Qt&&Zt&&"object"==typeof i&&i&&i.Object&&i,ee=Jt[typeof self]&&self&&self.Object&&self,ne=Jt[typeof window]&&window&&window.Object&&window,re=(Zt&&Zt.exports===Qt&&Qt,te||ne!==(this&&this.window)&&ne||ee||this),ie=C();re._=ie,r=function(){return ie}.call(e,n,e,t),!(r!==S&&(t.exports=r))}).call(this)}).call(e,n(5)(t),function(){return this}())},5:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},9:function(t,e,n){"use strict";var r=n(10),i=function(){var t=r("JSON"),e={},n=document.getElementById("bootloader");if(n){try{e=t.parse(n.getAttribute("data-bootstrap"))}catch(t){}n.parentNode.removeChild(n)}return e};t.exports=i},10:function(t,e){"use strict";function n(t,e){if(t in r)return r[t];var n=window[t];if(!e||!e(n)){var i=document.createElement("iframe");document.body.appendChild(i),n=i.contentWindow[t],document.body.removeChild(i)}return r[t]=n,n}var r={};t.exports=n},11:function(t,e,n){"use strict";function r(t){if(!s)throw new Error("Data hasn't been initialized with `setup`.");if(!a.isString(t))return null;var e=a.get(s,t.replace(/\//g,"."));return a.cloneDeep(e)}function i(t){if(!s)throw new Error("Data hasn't been initialized with `setup`.");return a.isString(t)?a.has(s,t.replace(/\//g,".")):null}function o(t){s=a.isObject(t)?t:{}}var s,a=n(4);t.exports={get:r,has:i,setup:a.once(o)}},12:function(t,e,n){"use strict";function r(t,e){s.addEntries(i.isObject(t)?t:{}),this.locale=e}var i=n(4),o=n(13),s=new o({name:"Translations"}),a=i.bind(s.get,s);a.setup=i.once(r),t.exports=a},13:function(t,e,n){"use strict";function r(t){t=i.extend({entries:{},name:"Dictionary"},t),this._hadLastLookup=!1,this._entries=t.entries,this._name=t.name}var i=n(4),o=(n(14),n(16).sprintf),s=function(t,e,n){null!=n||(n=this);var r=t.apply(n,e);return e=Array.prototype.slice.call(e,1),e.unshift(r),e};r.prototype.addEntries=function(t){return i.extend(this._entries,t),this},r.prototype.lookup=function(t){return i.has(this._entries,t)?(this._hadLastLookup=!0,this._entries[t]):(this._hadLastLookup=!1,t)},r.prototype.lookupWithFormatting=function(t){var e;return arguments.length>1?(e=this.lookup(o.apply(this,arguments)),this._hadLastLookup||(e=o.apply(this,s(this.lookup,arguments,this)))):e=this.lookup(t),e},r.prototype.get=function(t){var e=this.lookupWithFormatting.apply(this,arguments);return!this._hadLastLookup&&this.logMissing,e},r.prototype.getEntries=function(){return i.cloneDeep(this._entries)},t.exports=r},14:function(t,e,n){"use strict";var r=n(4),i=(n(15),{}),o=function(){return i};i.log=o,i.logSaw=o,i.count=r.noop,i.echo=o,i.flush=o,i.flushCount=o,i.groupNameWithUrl=r.identity,t.exports=i},15:function(t,e){"use strict";function n(t){function e(){o.removeEventListener("DOMContentLoaded",e),t()}o.addEventListener("DOMContentLoaded",e)}function r(t){i||(i=/^loaded|^i|^c/.test(o.readyState)),i?setTimeout(t):n(t)}var i,o=document;t.exports=r},16:function(t,e,n){!function(t){function n(){var t=arguments[0],e=n.cache;return e[t]&&e.hasOwnProperty(t)||(e[t]=n.parse(t)),n.format.call(null,e[t],arguments)}function r(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function i(t,e){return Array(e+1).join(t)}var o={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};n.format=function(t,e){var s,a,u,c,l,f,h,p=1,d=t.length,g="",v=[],m=!0,y="";for(a=0;a<d;a++)if(g=r(t[a]),"string"===g)v[v.length]=t[a];else if("array"===g){if(c=t[a],c[2])for(s=e[p],u=0;u<c[2].length;u++){if(!s.hasOwnProperty(c[2][u]))throw new Error(n("[sprintf] property '%s' does not exist",c[2][u]));s=s[c[2][u]]}else s=c[1]?e[c[1]]:e[p++];if("function"==r(s)&&(s=s()),o.not_string.test(c[8])&&o.not_json.test(c[8])&&"number"!=r(s)&&isNaN(s))throw new TypeError(n("[sprintf] expecting number but found %s",r(s)));switch(o.number.test(c[8])&&(m=s>=0),c[8]){case"b":s=s.toString(2);break;case"c":s=String.fromCharCode(s);break;case"d":case"i":s=parseInt(s,10);break;case"j":s=JSON.stringify(s,null,c[6]?parseInt(c[6]):0);break;case"e":s=c[7]?s.toExponential(c[7]):s.toExponential();break;case"f":s=c[7]?parseFloat(s).toFixed(c[7]):parseFloat(s);break;case"g":s=c[7]?parseFloat(s).toPrecision(c[7]):parseFloat(s);break;case"o":s=s.toString(8);break;case"s":s=(s=String(s))&&c[7]?s.substring(0,c[7]):s;break;case"u":s>>>=0;break;case"x":s=s.toString(16);break;case"X":s=s.toString(16).toUpperCase()}o.json.test(c[8])?v[v.length]=s:(!o.number.test(c[8])||m&&!c[3]?y="":(y=m?"+":"-",s=s.toString().replace(o.sign,"")),f=c[4]?"0"===c[4]?"0":c[4].charAt(1):" ",h=c[6]-(y+s).length,l=c[6]&&h>0?i(f,h):"",v[v.length]=c[5]?y+s+l:"0"===f?y+l+s:l+y+s)}return v.join("")},n.cache={},n.parse=function(t){for(var e=t,n=[],r=[],i=0;e;){if(null!==(n=o.text.exec(e)))r[r.length]=n[0];else if(null!==(n=o.modulo.exec(e)))r[r.length]="%";else{if(null===(n=o.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){i|=1;var s=[],a=n[2],u=[];if(null===(u=o.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s[s.length]=u[1];""!==(a=a.substring(u[0].length));)if(null!==(u=o.key_access.exec(a)))s[s.length]=u[1];else{if(null===(u=o.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s[s.length]=u[1]}n[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r[r.length]=n}e=e.substring(n[0].length)}return r};var s=function(t,e,r){return r=(e||[]).slice(0),r.splice(0,0,t),n.apply(null,r)};e.sprintf=n,e.vsprintf=s}("undefined"==typeof window?this:window)},19:function(t,e,n){"use strict";var r=n(4),i=n(3),o=function(){};o.extend=i.Model.extend,r.extend(o.prototype,i.Events),o.prototype.trigger=function(){return r.isObject(arguments[1])&&(arguments[1].loggingData=arguments[1].loggingData||{}),i.Events.trigger.apply(this,arguments)},t.exports=new o},21:function(t,e,n){!function(e,n){t.exports=n()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var r=n(1),i=r.isInBrowser,o=n(2),s=new o(i?document.body:null);s.setStateFromDOM(null),s.listenToDOM(),i&&(window.scrollMonitor=s),t.exports=s},function(t,e){"use strict";e.VISIBILITYCHANGE="visibilityChange",e.ENTERVIEWPORT="enterViewport",e.FULLYENTERVIEWPORT="fullyEnterViewport",e.EXITVIEWPORT="exitViewport",e.PARTIALLYEXITVIEWPORT="partiallyExitViewport",e.LOCATIONCHANGE="locationChange",e.STATECHANGE="stateChange",e.eventTypes=[e.VISIBILITYCHANGE,e.ENTERVIEWPORT,e.FULLYENTERVIEWPORT,e.EXITVIEWPORT,e.PARTIALLYEXITVIEWPORT,e.LOCATIONCHANGE,e.STATECHANGE],e.isOnServer="undefined"==typeof window,e.isInBrowser=!e.isOnServer,e.defaultOffsets={top:0,bottom:0}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return u?0:t===document.body?window.innerHeight||document.documentElement.clientHeight:t.clientHeight}function o(t){return u?0:t===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):t.scrollHeight}function s(t){return u?0:t===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop}var a=n(1),u=a.isOnServer,c=a.isInBrowser,l=a.eventTypes,f=n(3),h=function(){function t(e,n){function a(){if(c.viewportTop=s(e),c.viewportBottom=c.viewportTop+c.viewportHeight,c.documentHeight=o(e),c.documentHeight!==f){for(h=c.watchers.length;h--;)c.watchers[h].recalculateLocation();f=c.documentHeight}}function u(){for(p=c.watchers.length;p--;)c.watchers[p].update();for(p=c.watchers.length;p--;)c.watchers[p].triggerCallbacks()}r(this,t);var c=this;this.item=e,this.watchers=[],this.viewportTop=null,this.viewportBottom=null,this.documentHeight=o(e),this.viewportHeight=i(e),this.DOMListener=function(){t.prototype.DOMListener.apply(c,arguments)},this.eventTypes=l,n&&(this.containerWatcher=n.create(e));var f,h,p;this.update=function(){a(),u()},this.recalculateLocations=function(){this.documentHeight=0,this.update()}}return t.prototype.listenToDOM=function(){c&&(window.addEventListener?(this.item===document.body?window.addEventListener("scroll",this.DOMListener):this.item.addEventListener("scroll",this.DOMListener),window.addEventListener("resize",this.DOMListener)):(this.item===document.body?window.attachEvent("onscroll",this.DOMListener):this.item.attachEvent("onscroll",this.DOMListener),window.attachEvent("onresize",this.DOMListener)),this.destroy=function(){window.addEventListener?(this.item===document.body?(window.removeEventListener("scroll",this.DOMListener),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener),window.removeEventListener("resize",this.DOMListener)):(this.item===document.body?(window.detachEvent("onscroll",this.DOMListener),this.containerWatcher.destroy()):this.item.detachEvent("onscroll",this.DOMListener),window.detachEvent("onresize",this.DOMListener))})},t.prototype.destroy=function(){},t.prototype.DOMListener=function(t){this.setStateFromDOM(t)},t.prototype.setStateFromDOM=function(t){var e=s(this.item),n=i(this.item),r=o(this.item);this.setState(e,n,r,t)},t.prototype.setState=function(t,e,n,r){var i=e!==this.viewportHeight||n!==this.contentHeight;if(this.latestEvent=r,this.viewportTop=t,this.viewportHeight=e,this.viewportBottom=t+e,this.contentHeight=n,i)for(var o=this.watchers.length;o--;)this.watchers[o].recalculateLocation();this.updateAndTriggerWatchers(r)},t.prototype.updateAndTriggerWatchers=function(t){for(var e=this.watchers.length;e--;)this.watchers[e].update();for(e=this.watchers.length;e--;)this.watchers[e].triggerCallbacks(t)},t.prototype.createCustomContainer=function(){return new t},t.prototype.createContainer=function(e){"string"==typeof e?e=document.querySelector(e):e&&e.length>0&&(e=e[0]);var n=new t(e,this);return n.setStateFromDOM(),n.listenToDOM(),n},t.prototype.create=function(t,e){"string"==typeof t?t=document.querySelector(t):t&&t.length>0&&(t=t[0]);var n=new f(this,t,e);return this.watchers.push(n),n},t.prototype.beget=function(t,e){return this.create(t,e)},t}();t.exports=h},function(t,e,n){"use strict";function r(t,e,n){function r(t,e){if(0!==t.length)for(b=t.length;b--;)w=t[b],w.callback.call(i,e,i),w.isOne&&t.splice(b,1)}var i=this;this.watchItem=e,this.container=t,n?n===+n?this.offsets={top:n,bottom:n}:this.offsets={top:n.top||p.top,bottom:n.bottom||p.bottom}:this.offsets=p,this.callbacks={};for(var d=0,g=h.length;d<g;d++)i.callbacks[h[d]]=[];this.locked=!1;var v,m,y,_,b,w;this.triggerCallbacks=function(t){switch(this.isInViewport&&!v&&r(this.callbacks[s],t),this.isFullyInViewport&&!m&&r(this.callbacks[a],t),this.isAboveViewport!==y&&this.isBelowViewport!==_&&(r(this.callbacks[o],t),m||this.isFullyInViewport||(r(this.callbacks[a],t),r(this.callbacks[c],t)),v||this.isInViewport||(r(this.callbacks[s],t),r(this.callbacks[u],t))),!this.isFullyInViewport&&m&&r(this.callbacks[c],t),!this.isInViewport&&v&&r(this.callbacks[u],t),this.isInViewport!==v&&r(this.callbacks[o],t),!0){case v!==this.isInViewport:case m!==this.isFullyInViewport:case y!==this.isAboveViewport:case _!==this.isBelowViewport:r(this.callbacks[f],t)}v=this.isInViewport,m=this.isFullyInViewport,y=this.isAboveViewport,_=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var t=this.top,e=this.bottom;if(this.watchItem.nodeName){var n=this.watchItem.style.display;"none"===n&&(this.watchItem.style.display="");for(var i=0,o=this.container;o.containerWatcher;)i+=o.containerWatcher.top-o.containerWatcher.container.viewportTop,o=o.containerWatcher.container;var s=this.watchItem.getBoundingClientRect();this.top=s.top+this.container.viewportTop-i,this.bottom=s.bottom+this.container.viewportTop-i,"none"===n&&(this.watchItem.style.display=n)}else this.watchItem===+this.watchItem?this.watchItem>0?this.top=this.bottom=this.watchItem:this.top=this.bottom=this.container.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===t&&void 0===e||this.top===t&&this.bottom===e||r(this.callbacks[l],null)}},this.recalculateLocation(),this.update(),v=this.isInViewport,m=this.isFullyInViewport,y=this.isAboveViewport,_=this.isBelowViewport}var i=n(1),o=i.VISIBILITYCHANGE,s=i.ENTERVIEWPORT,a=i.FULLYENTERVIEWPORT,u=i.EXITVIEWPORT,c=i.PARTIALLYEXITVIEWPORT,l=i.LOCATIONCHANGE,f=i.STATECHANGE,h=i.eventTypes,p=i.defaultOffsets;r.prototype={on:function(t,e,n){switch(!0){case t===o&&!this.isInViewport&&this.isAboveViewport:case t===s&&this.isInViewport:case t===a&&this.isFullyInViewport:case t===u&&this.isAboveViewport&&!this.isInViewport:case t===c&&this.isInViewport&&this.isAboveViewport:if(e.call(this,this.container.latestEvent,this),n)return}if(!this.callbacks[t])throw new Error("Tried to add a scroll monitor listener of type "+t+". Your options are: "+h.join(", "));this.callbacks[t].push({callback:e,isOne:n||!1})},off:function(t,e){if(!this.callbacks[t])throw new Error("Tried to remove a scroll monitor listener of type "+t+". Your options are: "+h.join(", "));for(var n,r=0;n=this.callbacks[t][r];r++)if(n.callback===e){this.callbacks[t].splice(r,1);break}},one:function(t,e){this.on(t,e,!0)},recalculateSize:function(){this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height},update:function(){this.isAboveViewport=this.top<this.container.viewportTop,this.isBelowViewport=this.bottom>this.container.viewportBottom,this.isInViewport=this.top<this.container.viewportBottom&&this.bottom>this.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var t=this.container.watchers.indexOf(this),e=this;this.container.watchers.splice(t,1);for(var n=0,r=h.length;n<r;n++)e.callbacks[h[n]].length=0},lock:function(){this.locked=!0},unlock:function(){this.locked=!1}};for(var d=function(t){return function(e,n){this.on.call(this,t,e,n)}},g=0,v=h.length;g<v;g++){var m=h[g];r.prototype[m]=d(m)}t.exports=r}])})},24:function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){g&&p&&(g=!1,p.length?d=p.concat(d):v=-1,d.length&&a())}function a(){if(!g){var t=i(s);g=!0;for(var e=d.length;e;){for(p=d,d=[];++v<e;)p&&p[v].run();v=-1,e=d.length}p=null,g=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var p,d=[],g=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||g||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},61:function(t,e,n){"use strict";function r(t){return t||(t=l()),i.isEmpty(t),n.p=i.get(t,"Context.assets",n.p),o.setup(i.get(t,"Flags.features")),u.log("Exec","Bootstrap/Flags"),s.setup(t),u.log("Exec","Bootstrap/Data"),a.setup(i.get(t,"Translations"),i.get(t,"Context.language_simple","en")),u.log("Exec","Bootstrap/Translations"),t}var i=n(4),o=n(62),s=n(11),a=n(12),u=n(14),c=n(63),l=n(9);c(),t.exports=r},62:function(t,e,n){"use strict";function r(t){return"function"==typeof t}function i(t){return"undefined"==typeof t}function o(t){var e,n;if(!r(t))throw new TypeError;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function s(t){return!(!c||!c[t]);
}function a(t){var e=s(t);return e?function t(n){var o=r(n)?n.call(this,e):n;return i(o)?t:o}:function t(n,o){var s=r(o)?o.call(this,e):o;return i(s)?t:s}}function u(t){try{c=JSON.parse(f(t))}catch(t){c={}}}var c,l=("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Object.prototype),f=(l.toString,r(window.atob)?window.atob:function(t){var e,n,r,i,o={},s=0,a=0,u="",c=String.fromCharCode,l=t.length,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(e=0;e<64;e++)o[f.charAt(e)]=e;for(r=0;r<l;r++)for(n=o[t.charAt(r)],s=(s<<6)+n,a+=6;a>=8;)((i=s>>>(a-=8)&255)||r<l-2)&&(u+=c(i));return u});t.exports=a,t.exports.bool=s,t.exports.setup=o(u)},63:function(t,e,n){"use strict";var r=n(4),i=n(16).sprintf,o=n(12),s=n(64),a=(n(14),{__:o,sprintf:i,_subview:s}),u=function(){return r.extend(r.templateSettings.imports,a),a};t.exports=u},64:function(t,e){"use strict";t.exports=function(t){return'<noscript data-subview="'+t+'"></noscript>'}},99:function(t,e,n){"use strict";var r=n(4),i=n(3),o=n(100),s=n(11),a=(n(14),n(102)),u=n(103),c=["selector","container","rootEl","view","viewOptions","autoAppend"],l=o.extend({name:null,rootEl:null,selector:null,view:null,viewOptions:{},autoAppend:!1,defaults:{},constructor:function(t){t||(t={}),this.cid=r.uniqueId("component"),r.extend(this,r.pick(t,c));var e=r.result(this,"defaults"),n=r.extend({},e,r.pick(t,r.keys(e)));this.attributes={},this.set(n,{silent:!0}),this.changed={},(this.autoAppend||this.selector)&&this.setContainer(),this.selector||(this.selector=this.defaultSelector);var o=r.isFunction(this.viewOptions)?this.viewOptions.call(this.viewOptions,this):this.viewOptions;this.view&&this.view.prototype&&this.view.prototype instanceof i.View?this.view=new this.view(o):r.isFunction(this.view)&&(this.view=this.view.call(this,o)),this.initialize.apply(this,arguments),this.autoAppend&&this.append()},initialize:r.noop,setContainer:function(){return this.selector||(this.selector=this.defaultSelector),this.container=this.selector,this.container},getOwnData:function(){return this.data},remove:function(){r.result(this,"beforeRemove"),this.view&&r.isFunction(this.view.remove)&&this.view.remove();var t=["container","view","defaults","attributes"];return r.each(t,r.bind(function(t){this[t]&&delete this[t]},this)),this.stopListening(),this.trigger("remove"),this},append:function(){return this.view&&r.isFunction(this.view.render)&&(this.container?this.container.appendChild(this.view.render().el):this.view.render()),this.trigger("append"),this}});Object.defineProperties(l.prototype,{defaultSelector:{get:function(){return"[prima-component="+this.name+"]"},set:function(){}},container:{get:function(){return this._container},set:function(t){var e=a(t,this.rootEl);this._container=e}},data:{get:function(){return this._data||(this._data=s.get("Components/"+this.name)),this._data},set:function(t){this._data=t}}}),u.mixin.applyTo(l.prototype),t.exports=l},100:function(t,e,n){"use strict";function r(){}var i=n(3),o=n(101);r.extend=i.Model.extend,o.applyTo(r),t.exports=r},101:function(t,e,n){"use strict";function r(t){var e=s.apply(this,arguments);return o.has(t,"mixins")&&t.mixins.forEach(function(t){t.applyTo(e.prototype)}),e}function i(t){t.extend=r}var o=n(4),s=n(3).Model.extend;t.exports.applyTo=i},102:function(t,e,n){"use strict";function r(t){return t&&t.nodeType&&1===t.nodeType}var i=n(4);t.exports=function(t,e){if(r(t))return t;if(i.isString(t)){var n=(e||document).querySelector(t);if(r(n))return n}return!(!t||!t.jquery)&&t.get(0)}},103:function(t,e,n){"use strict";var r=n(4),i=n(3),o=n(104),s=i.Model.prototype,a={get:s.get,has:s.has,set:s.set,unset:s.unset,clear:s.clear,hasChanged:s.hasChanged,changedAttributes:s.changedAttributes,previous:s.previous,toJSON:s.toJSON,toggle:function(t){this.set(t,!this.get(t))},_validate:r.constant(!0)},u=new o(r.extend({},a,{defaults:r.extend({},i.Events)}));t.exports={props:a,mixin:u}},104:function(t,e,n){"use strict";function r(t,e){l.each(e,function(e,n){var r=t[n];t[n]=function(){return e.apply(this,arguments),r.apply(this,arguments)}})}function i(t,e){l.each(e,function(e,n){var r=t[n];t[n]=function(){var t=r.apply(this,arguments);return e.apply(this,arguments),t}})}function o(t,e){l.each(e,function(e,n){var r=t[n];t[n]=function(){var t=l.toArray(arguments);return t.unshift(l.bind(r,this)),e.apply(this,t)}})}function s(t,e){l.each(e,function(e,n){var r=n in t&&t[n];t[n]=function(){var t=l.toArray(arguments),n=r?l.bind(r,this):l.noop;return t.unshift(n),e.apply(this,t)}})}function a(t,e){l.defaults(t,e)}function u(t,e){l.extend(t,e)}function c(){this.mixins=l.filter(arguments,function(t){return t instanceof c}),this.properties=arguments[this.mixins.length]||{}}var l=n(4);c.prototype.mixins=null,c.prototype.properties=null,c.prototype.applyTo=function(t){var e=this.properties;a(t,e.defaults),u(t,e.extend),l.extend(t,l.omit(e,"before","after","around","onto","defaults","extend","applyTo")),l.invoke(this.mixins,"applyTo",t),r(t,e.before),i(t,e.after),o(t,e.around),s(t,e.onto),l.isFunction(e.applyTo)&&e.applyTo.apply(this,arguments)},c.before=r,c.after=i,c.around=o,c.onto=s,t.exports=c},108:function(t,e,n){"use strict";var r=n(3).Collection,i=n(109),o=n(101),r=r.extend();i.applyTo(r.prototype),o.applyTo(r),t.exports=r},109:function(t,e,n){"use strict";var r=n(104),i=new r({before:{sync:function(t,e,n){n.withFormKey=!0}}});t.exports=i},111:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(t){function e(t,e,n,r){var i=T.resolve(t);return arguments.length<2?i:i.then(e,n,r)}function r(t){return new T(t)}function i(t){return function(){for(var e=0,n=arguments.length,r=new Array(n);e<n;++e)r[e]=arguments[e];return E(t,this,r)}}function o(t){for(var e=0,n=arguments.length-1,r=new Array(n);e<n;++e)r[e]=arguments[e+1];return E(t,this,r)}function s(){return new a}function a(){function t(t){r._handler.resolve(t)}function e(t){r._handler.reject(t)}function n(t){r._handler.notify(t)}var r=T._defer();this.promise=r,this.resolve=t,this.reject=e,this.notify=n,this.resolver={resolve:t,reject:e,notify:n}}function u(t){return t&&"function"==typeof t.then}function c(){return T.all(arguments)}function l(t){return e(t,T.all)}function f(t){return e(t,T.settle)}function h(t,n){return e(t,function(t){return T.map(t,n)})}function p(t,n){return e(t,function(t){return T.filter(t,n)})}var d=n(112),g=n(117),v=n(120),m=n(121),y=n(122),_=n(123),b=n(124),w=n(125),x=n(126),k=n(116),T=[g,v,m,_,b,y,w,d,x].reduce(function(t,e){return e(t)},n(128)),E=n(119)(T);return e.promise=r,e.resolve=T.resolve,e.reject=T.reject,e.lift=i,e.try=o,e.attempt=o,e.iterate=T.iterate,e.unfold=T.unfold,e.join=c,e.all=l,e.settle=f,e.any=i(T.any),e.some=i(T.some),e.race=i(T.race),e.map=h,e.filter=p,e.reduce=i(T.reduce),e.reduceRight=i(T.reduceRight),e.isPromiseLike=u,e.Promise=T,e.defer=s,e.TimeoutError=k,e}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},112:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(t){function e(t,e,n,i){return r.setTimer(function(){t(n,i,e)},e)}var r=n(113),i=n(116);return function(t){function n(t,n,r){e(o,t,n,r)}function o(t,e){e.resolve(t)}function s(t,e,n){var r="undefined"==typeof t?new i("timed out after "+n+"ms"):t;e.reject(r)}return t.prototype.delay=function(t){var e=this._beget();return this._handler.fold(n,t,void 0,e._handler),e},t.prototype.timeout=function(t,n){var i=this._beget(),o=i._handler,a=e(s,t,n,i._handler);return this._handler.visit(o,function(t){r.clearTimer(a),this.resolve(t)},function(t){r.clearTimer(a),this.reject(t)},o.notify),i},t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},113:function(t,e,n){var r;(function(i){/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(o){"use strict";r=function(t){function e(){return"undefined"!=typeof i&&"[object process]"===Object.prototype.toString.call(i)}function r(){return"undefined"!=typeof MutationObserver&&MutationObserver||"undefined"!=typeof WebKitMutationObserver&&WebKitMutationObserver}function o(t){function e(){var t=n;n=void 0,t()}var n,r=document.createTextNode(""),i=new t(e);i.observe(r,{characterData:!0});var o=0;return function(t){n=t,r.data=o^=1}}var s,a="undefined"!=typeof setTimeout&&setTimeout,u=function(t,e){return setTimeout(t,e)},c=function(t){return clearTimeout(t)},l=function(t){return a(t,0)};if(e())l=function(t){return i.nextTick(t)};else if(s=r())l=o(s);else if(!a){var f=n(114);u=function(t,e){return f.setTimer(e,t)},c=f.cancelTimer,l=f.runOnLoop||f.runOnContext}return{setTimer:u,clearTimer:c,asap:l}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))}).call(e,n(24))},114:function(t,e){},115:function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},116:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){function t(e){Error.call(this),this.message=e,this.name=t.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},117:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(t){var e=n(118),r=n(119);return function(t){function n(e){function n(t){l=null,this.resolve(t)}function r(t){this.resolved||(l.push(t),0===--c&&this.reject(l))}for(var i,o,s=t._defer(),a=s._handler,u=e.length>>>0,c=u,l=[],f=0;f<u;++f)if(o=e[f],void 0!==o||f in e){if(i=t._handler(o),i.state()>0){a.become(i),t._visitRemaining(e,f,i);break}i.visit(a,n,r)}else--c;return 0===c&&a.reject(new RangeError("any(): array must not be empty")),s}function i(e,n){function r(t){this.resolved||(l.push(t),0===--p&&(f=null,this.resolve(l)))}function i(t){this.resolved||(f.push(t),0===--o&&(l=null,this.reject(f)))}var o,s,a,u=t._defer(),c=u._handler,l=[],f=[],h=e.length>>>0,p=0;for(a=0;a<h;++a)s=e[a],(void 0!==s||a in e)&&++p;for(n=Math.max(n,0),o=p-n+1,p=Math.min(n,p),n>p?c.reject(new RangeError("some(): array must contain at least "+n+" item(s), but had "+p)):0===p&&c.resolve(l),a=0;a<h;++a)s=e[a],(void 0!==s||a in e)&&t._handler(s).visit(c,r,i,c.notify);return u}function o(e,n){return t._traverse(n,e)}function s(e,n){var r=y.call(e);return t._traverse(n,r).then(function(t){return a(r,t)})}function a(e,n){for(var r=n.length,i=new Array(r),o=0,s=0;o<r;++o)n[o]&&(i[s++]=t._handler(e[o]).value);return i.length=s,i}function u(t){return g(t.map(c))}function c(n){var r;return n instanceof t&&(r=n._handler.join()),r&&0===r.state()||!r?d(n).then(e.fulfilled,e.rejected):(r._unreport(),e.inspect(r))}function l(t,e){return arguments.length>2?v.call(t,h(e),arguments[2]):v.call(t,h(e))}function f(t,e){return arguments.length>2?m.call(t,h(e),arguments[2]):m.call(t,h(e))}function h(t){return function(e,n,r){return p(t,void 0,[e,n,r])}}var p=r(t),d=t.resolve,g=t.all,v=Array.prototype.reduce,m=Array.prototype.reduceRight,y=Array.prototype.slice;return t.any=n,t.some=i,t.settle=u,t.map=o,t.filter=s,t.reduce=l,t.reduceRight=f,t.prototype.spread=function(t){return this.then(g).then(function(e){return t.apply(this,e)})},t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},118:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){function t(){return{state:"pending"}}function e(t){return{state:"rejected",reason:t}}function n(t){return{state:"fulfilled",value:t}}function r(r){var i=r.state();return 0===i?t():i>0?n(r.value):e(r.value)}return{pending:t,fulfilled:n,rejected:e,inspect:r}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},119:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){function t(t,n){function r(e,r,o){var s=t._defer(),a=o.length,u=new Array(a);return i({f:e,thisArg:r,args:o,params:u,i:a-1,call:n},s._handler),s}function i(e,r){if(e.i<0)return n(e.f,e.thisArg,e.params,r);var i=t._handler(e.args[e.i]);i.fold(o,e,void 0,r)}function o(t,e,n){t.params[t.i]=e,t.i-=1,i(t,n)}return arguments.length<2&&(n=e),r}function e(t,e,n,r){try{r.resolve(t.apply(e,n))}catch(t){r.reject(t)}}return t.tryCatchResolve=e,t}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},120:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){function t(){throw new TypeError("catch predicate must be a function")}function e(t,e){return n(e)?t instanceof e:e(t)}function n(t){return t===Error||null!=t&&t.prototype instanceof Error}function r(t){return("object"==typeof t||"function"==typeof t)&&null!==t}function i(t){return t}return function(n){function o(t,n){return function(r){return e(r,n)?t.call(this,r):c(r)}}function s(t,e,n,i){var o=t.call(e);return r(o)?a(o,n,i):n(i)}function a(t,e,n){return u(t).then(function(){return e(n)})}var u=n.resolve,c=n.reject,l=n.prototype.catch;return n.prototype.done=function(t,e){this._handler.visit(this._handler.receiver,t,e)},n.prototype.catch=n.prototype.otherwise=function(e){return arguments.length<2?l.call(this,e):"function"!=typeof e?this.ensure(t):l.call(this,o(arguments[1],e))},n.prototype.finally=n.prototype.ensure=function(t){return"function"!=typeof t?this:this.then(function(e){return s(t,this,i,e)},function(e){return s(t,this,c,e)})},n.prototype.else=n.prototype.orElse=function(t){return this.then(void 0,function(){return t})},n.prototype.yield=function(t){return this.then(function(){return t})},n.prototype.tap=function(t){return this.then(t).yield(this)},n}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},121:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){return function(t){return t.prototype.fold=function(e,n){var r=this._beget();return this._handler.fold(function(n,r,i){t._handler(n).fold(function(t,n,r){r.resolve(e.call(this,n,t))},r,this,i)},n,r._handler.receiver,r._handler),r},t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},122:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(t){var e=n(118).inspect;return function(t){return t.prototype.inspect=function(){return e(t._handler(this))},t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},123:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){return function(t){function e(t,e,r,i){return n(function(e){return[e,t(e)]},e,r,i)}function n(t,e,i,o){function s(o,s){return r(i(o)).then(function(){return n(t,e,i,s)})}return r(o).then(function(n){return r(e(n)).then(function(e){return e?n:r(t(n)).spread(s)})})}var r=t.resolve;return t.iterate=e,t.unfold=n,t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},124:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){return function(t){return t.prototype.progress=function(t){return this.then(void 0,void 0,t)},t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},125:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){return function(t){return t.prototype.with=t.prototype.withThis=function(t){var e=this._beget(),n=e._handler;return n.receiver=t,this._handler.chain(n,t),e},t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},126:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(t){function e(t){throw t}function r(){}var i=n(113).setTimer,o=n(127);return function(t){function n(t){t.handled||(p.push(t),l("Potentially unhandled rejection ["+t.id+"] "+o.formatError(t.value)))}function s(t){var e=p.indexOf(t);e>=0&&(p.splice(e,1),f("Handled previous rejection ["+t.id+"] "+o.formatObject(t.value)))}function a(t,e){h.push(t,e),null===d&&(d=i(u,0))}function u(){for(d=null;h.length>0;)h.shift()(h.shift())}var c,l=r,f=r;"undefined"!=typeof console&&(c=console,l="undefined"!=typeof c.error?function(t){c.error(t)}:function(t){c.log(t)},f="undefined"!=typeof c.info?function(t){c.info(t)}:function(t){c.log(t)}),t.onPotentiallyUnhandledRejection=function(t){a(n,t)},t.onPotentiallyUnhandledRejectionHandled=function(t){a(s,t)},t.onFatalRejection=function(t){a(e,t.value)};var h=[],p=[],d=null;return t}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},127:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){function t(t){var n="object"==typeof t&&null!==t&&(t.stack||t.message)?t.stack||t.message:e(t);return t instanceof Error?n:n+" (WARNING: non-Error used)"}function e(t){var e=String(t);return"[object Object]"===e&&"undefined"!=typeof JSON&&(e=n(t,e)),e}function n(t,e){try{return JSON.stringify(t)}catch(t){return e}}return{formatError:t,formatObject:e,tryStringify:n}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},128:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(t){var e=n(129),r=n(130),i=n(113).asap;return e({scheduler:new r(i)})}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},129:function(t,e,n){var r;(function(i){/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(o){"use strict";r=function(){return function(t){function e(t,e){this._handler=t===b?e:n(t)}function n(t){function e(t){i.resolve(t)}function n(t){i.reject(t)}function r(t){i.notify(t)}var i=new x;try{t(e,n,r)}catch(t){n(t)}return i}function r(t){return L(t)?t:new e(b,new k(m(t)))}function o(t){return new e(b,new k(new C(t)))}function s(){return nt}function a(){return new e(b,new x)}function u(t,e){var n=new x(t.receiver,t.join().context);return new e(b,n)}function c(t){return f(B,null,t)}function l(t,e){return f($,t,e)}function f(t,n,r){function i(e,i,s){s.resolved||h(r,o,e,t(n,i,e),s)}function o(t,e,n){l[t]=e,0===--c&&n.become(new E(l))}for(var s,a="function"==typeof n?i:o,u=new x,c=r.length>>>0,l=new Array(c),f=0;f<r.length&&!u.resolved;++f)s=r[f],void 0!==s||f in r?h(r,a,f,s,u):--c;return 0===c&&u.become(new E(l)),new e(b,u)}function h(t,e,n,r,i){if(F(r)){var o=y(r),s=o.state();0===s?o.fold(e,n,void 0,i):s>0?e(n,o.value,i):(i.become(o),p(t,n+1,o))}else e(n,r,i)}function p(t,e,n){for(var r=e;r<t.length;++r)d(m(t[r]),n)}function d(t,e){if(t!==e){var n=t.state();0===n?t.visit(t,void 0,t._unreport):n<0&&t._unreport()}}function g(t){return"object"!=typeof t||null===t?o(new TypeError("non-iterable passed to race()")):0===t.length?s():1===t.length?r(t[0]):v(t)}function v(t){var n,r,i,o=new x;for(n=0;n<t.length;++n)if(r=t[n],void 0!==r||n in t){if(i=m(r),0!==i.state()){o.become(i),p(t,n+1,i);break}i.visit(o,o.resolve,o.reject)}return new e(b,o)}function m(t){return L(t)?t._handler.join():F(t)?_(t):new E(t)}function y(t){return L(t)?t._handler.join():_(t)}function _(t){try{var e=t.then;return"function"==typeof e?new T(e,t):new E(t)}catch(t){return new C(t)}}function b(){}function w(){}function x(t,n){e.createContext(this,n),this.consumers=void 0,this.receiver=t,this.handler=void 0,this.resolved=!1}function k(t){this.handler=t}function T(t,e){x.call(this),G.enqueue(new N(t,e,this))}function E(t){e.createContext(this),this.value=t}function C(t){e.createContext(this),this.id=++tt,this.value=t,this.handled=!1,this.reported=!1,this._report()}function S(t,e){this.rejection=t,this.context=e}function j(t){this.rejection=t}function A(){return new C(new TypeError("Promise cycle"))}function O(t,e){this.continuation=t,this.handler=e}function I(t,e){this.handler=e,this.value=t}function N(t,e,n){this._then=t,this.thenable=e,this.resolver=n}function D(t,e,n,r,i){try{t.call(e,n,r,i)}catch(t){r(t)}}function R(t,e,n,r){this.f=t,this.z=e,this.c=n,this.to=r,this.resolver=Z,this.receiver=this}function L(t){return t instanceof e}function F(t){return("object"==typeof t||"function"==typeof t)&&null!==t}function P(t,n,r,i){return"function"!=typeof t?i.become(n):(e.enterContext(n),M(t,n.value,r,i),void e.exitContext())}function q(t,n,r,i,o){return"function"!=typeof t?o.become(r):(e.enterContext(r),W(t,n,r.value,i,o),void e.exitContext())}function H(t,n,r,i,o){return"function"!=typeof t?o.notify(n):(e.enterContext(r),U(t,n,i,o),void e.exitContext())}function $(t,e,n){try{return t(e,n)}catch(t){return o(t)}}function M(t,e,n,r){try{r.become(m(t.call(n,e)))}catch(t){r.become(new C(t))}}function W(t,e,n,r,i){try{t.call(r,e,n,i)}catch(t){i.become(new C(t))}}function U(t,e,n,r){try{r.notify(t.call(n,e))}catch(t){r.notify(t)}}function V(t,e){e.prototype=Q(t.prototype),e.prototype.constructor=e}function B(t,e){return e}function z(){}function K(){if("function"==typeof CustomEvent)try{var t=new CustomEvent("unhandledRejection");return t instanceof CustomEvent}catch(t){}return!1}function X(){if("undefined"!=typeof document&&"function"==typeof document.createEvent)try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("eventType",!1,!0,{}),!0}catch(t){}return!1}function J(){return"undefined"!=typeof i&&null!==i&&"function"==typeof i.emit?function(t,e){return"unhandledRejection"===t?i.emit(t,e.value,e):i.emit(t,e)}:"undefined"!=typeof self&&K()?function(t,e){return function(n,r){var i=new e(n,{detail:{reason:r.value,key:r},bubbles:!1,cancelable:!0});return!t.dispatchEvent(i)}}(self,CustomEvent):"undefined"!=typeof self&&X()?function(t,e){return function(n,r){var i=e.createEvent("CustomEvent");return i.initCustomEvent(n,!1,!0,{reason:r.value,key:r}),!t.dispatchEvent(i)}}(self,document):z}var G=t.scheduler,Y=J(),Q=Object.create||function(t){function e(){}return e.prototype=t,new e};e.resolve=r,e.reject=o,e.never=s,e._defer=a,e._handler=m,e.prototype.then=function(t,e,n){var r=this._handler,i=r.join().state();if("function"!=typeof t&&i>0||"function"!=typeof e&&i<0)return new this.constructor(b,r);var o=this._beget(),s=o._handler;return r.chain(s,r.receiver,t,e,n),o},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype._beget=function(){return u(this._handler,this.constructor)},e.all=c,e.race=g,e._traverse=l,e._visitRemaining=p,b.prototype.when=b.prototype.become=b.prototype.notify=b.prototype.fail=b.prototype._unreport=b.prototype._report=z,b.prototype._state=0,b.prototype.state=function(){return this._state},b.prototype.join=function(){for(var t=this;void 0!==t.handler;)t=t.handler;return t},b.prototype.chain=function(t,e,n,r,i){this.when({resolver:t,receiver:e,fulfilled:n,rejected:r,progress:i})},b.prototype.visit=function(t,e,n,r){this.chain(Z,t,e,n,r)},b.prototype.fold=function(t,e,n,r){this.when(new R(t,e,n,r))},V(b,w),w.prototype.become=function(t){t.fail()};var Z=new w;V(b,x),x.prototype._state=0,x.prototype.resolve=function(t){this.become(m(t))},x.prototype.reject=function(t){this.resolved||this.become(new C(t))},x.prototype.join=function(){if(!this.resolved)return this;for(var t=this;void 0!==t.handler;)if(t=t.handler,t===this)return this.handler=A();return t},x.prototype.run=function(){var t=this.consumers,e=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var n=0;n<t.length;++n)e.when(t[n])},x.prototype.become=function(t){this.resolved||(this.resolved=!0,this.handler=t,void 0!==this.consumers&&G.enqueue(this),void 0!==this.context&&t._report(this.context))},x.prototype.when=function(t){this.resolved?G.enqueue(new O(t,this.handler)):void 0===this.consumers?this.consumers=[t]:this.consumers.push(t)},x.prototype.notify=function(t){this.resolved||G.enqueue(new I(t,this))},x.prototype.fail=function(t){var e="undefined"==typeof t?this.context:t;this.resolved&&this.handler.join().fail(e)},x.prototype._report=function(t){this.resolved&&this.handler.join()._report(t)},x.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()},V(b,k),k.prototype.when=function(t){G.enqueue(new O(t,this))},k.prototype._report=function(t){this.join()._report(t)},k.prototype._unreport=function(){this.join()._unreport()},V(x,T),V(b,E),E.prototype._state=1,E.prototype.fold=function(t,e,n,r){q(t,e,this,n,r)},E.prototype.when=function(t){P(t.fulfilled,this,t.receiver,t.resolver)};var tt=0;V(b,C),C.prototype._state=-1,C.prototype.fold=function(t,e,n,r){r.become(this)},C.prototype.when=function(t){"function"==typeof t.rejected&&this._unreport(),P(t.rejected,this,t.receiver,t.resolver)},C.prototype._report=function(t){G.afterQueue(new S(this,t))},C.prototype._unreport=function(){this.handled||(this.handled=!0,G.afterQueue(new j(this)))},C.prototype.fail=function(t){this.reported=!0,Y("unhandledRejection",this),e.onFatalRejection(this,void 0===t?this.context:t)},S.prototype.run=function(){this.rejection.handled||this.rejection.reported||(this.rejection.reported=!0,Y("unhandledRejection",this.rejection)||e.onPotentiallyUnhandledRejection(this.rejection,this.context))},j.prototype.run=function(){this.rejection.reported&&(Y("rejectionHandled",this.rejection)||e.onPotentiallyUnhandledRejectionHandled(this.rejection))},e.createContext=e.enterContext=e.exitContext=e.onPotentiallyUnhandledRejection=e.onPotentiallyUnhandledRejectionHandled=e.onFatalRejection=z;var et=new b,nt=new e(b,et);return O.prototype.run=function(){this.handler.join().when(this.continuation)},I.prototype.run=function(){var t=this.handler.consumers;if(void 0!==t)for(var e,n=0;n<t.length;++n)e=t[n],H(e.progress,this.value,this.handler,e.receiver,e.resolver)},N.prototype.run=function(){function t(t){r.resolve(t)}function e(t){r.reject(t)}function n(t){r.notify(t)}var r=this.resolver;D(this._then,this.thenable,t,e,n)},R.prototype.fulfilled=function(t){this.f.call(this.c,this.z,t,this.to)},R.prototype.rejected=function(t){this.to.reject(t)},R.prototype.progress=function(t){this.to.notify(t)},e}}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))}).call(e,n(24))},130:function(t,e,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(i){"use strict";r=function(){function t(t){this._async=t,this._running=!1,this._queue=this,this._queueLen=0,this._afterQueue={},this._afterQueueLen=0;var e=this;this.drain=function(){e._drain()}}return t.prototype.enqueue=function(t){this._queue[this._queueLen++]=t,this.run()},t.prototype.afterQueue=function(t){this._afterQueue[this._afterQueueLen++]=t,this.run()},t.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},t.prototype._drain=function(){for(var t=0;t<this._queueLen;++t)this._queue[t].run(),this._queue[t]=void 0;for(this._queueLen=0,this._running=!1,t=0;t<this._afterQueueLen;++t)this._afterQueue[t].run(),this._afterQueue[t]=void 0;this._afterQueueLen=0},t}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(n(115))},132:function(t,e,n){"use strict";var r=n(3),i=n(109),o=n(101),s=r.Model.extend({});i.applyTo(s.prototype),o.applyTo(s),t.exports=s},139:function(t,e,n){"use strict";function r(t,e,n){return i.isFunction(t)&&(t=t(e,n)),t instanceof o?t:e.$(t)}var i=n(4),o=n(2),s=n(3),a=n(111),u=n(140),c=n(141),l=n(103),f=n(142),h=f.extend({rendered:!1,disposed:!1,keepElement:!1,_setup:function(t){t||(t={});var e=i.extend({},i.result(this.constructor.__super__,"defaults"),i.result(this,"defaults"));i.extend(e,i.pick(t,i.keys(e))),this.attributes={},this.set(e),this.changed={};var n=this.render;this.render=i.bind(function(){this._beforeRender.apply(this,arguments),this.beforeRender.apply(this,arguments);var t=n.apply(this,arguments);return this.afterRender.apply(this,arguments),this._afterRender.apply(this,arguments),t},this);var r=this.remove;this.remove=i.bind(function(){if(this.disposed)return this;this._beforeRemove.apply(this,arguments),this.beforeRemove.apply(this,arguments);var t=r.apply(this,arguments);return this.afterRemove.apply(this,arguments),this._afterRemove.apply(this,arguments),t},this),this.subviews=i.extend({},this.subviews,t.subviews)},initialize:i.noop,_registerSubview:function(t){return this._subviews||(this._subviews=[]),this._subviews.push(t),t},appendSubview:function(t,e){return i.isString(e)&&(e=this.$(e)),this._registerSubview(t),t.render(),(e||this.$el).append(t.el),t},removeSubviews:function(){var t=i.flatten(this._subviews);t&&(i.invoke(t,"remove"),delete this._subviews)},renderSubviews:function(){this.subviews&&i.forEach(this.subviews,function(t,e){t instanceof s.View?this.renderSubview(t,{name:e}):t.collection?this.renderCollectionSubviews(e):this.renderSubview(e)},this)},_createDefaultContainerFunction:function(t){return i.bind(function(){return this.$('[data-subview="'+t+'[]"]')},this)},_createDefaultPrepareViewFunction:function(t){var e=this.subviews[t];return i.bind(function(n,r){var i=new e.constructor(r);return i.$el.attr("data-subview",t),n.append(i.$el),i},this)},renderCollectionSubviews:function(t){var e=this.subviews[t];if(e){var n=e.container||this._createDefaultContainerFunction(t),r=e.prepareView||this._createDefaultPrepareViewFunction(t),i=e.options||{},o=this.createCollectionSubviewRenderer(e.collection,n,r,i,t);this.rendered?o():this.once("rendered",o,this)}},renderSubview:function(t,e){var n,r,o,a;if(i.isString(t)){if(a=t,t=this.subviews[a],!t)return;n=t.container||'[data-subview="'+a+'"]',o=t.options||{},r=t.prepareView||function(e,n){if(!i.isEmpty(e)){var r=new t.constructor(n);return r.$el.attr("data-subview",a),e.replaceWith(r.$el),r}}}else t instanceof s.View&&(e||(e={}),a=e.name||"",n=e.container||'[data-subview="'+a+'"]',o=e.options||{},r=e.prepareView||function(e){return t.$el.attr("data-subview",a),e.replaceWith(t.$el),t});var u=this.createSubviewRenderer(n,r,o,a);this.rendered?u():this.once("rendered",u,this)},createSubviewRenderer:function(t,e,n,o){return i.bind(function(){if(this.el){n=n||{},i.isFunction(n)&&(n=n.call(n,this));var s=r(t,this,o);if(!i.isEmpty(s)){var a=e.call(this,s,n);o&&i.set(this,o,a),a.render(),this._registerSubview(a)}}},this)},createCollectionSubviewRenderer:function(t,e,n,o,a,u,c){var l;return i.bind(function(){if(this.el){var f=0;if(a&&(u?f=this[a].length:this[a]=[]),t===!0&&(t=this.collection),i.isFunction(t)&&(t=t(this)),t instanceof s.Collection&&(t=t.models),!i.isEmpty(t)){var h=r(e,this,a);i.isEmpty(h)||(u||(l=h,h=l.clone()),i.forEach(t,function(t,e){var r;r=i.isFunction(o)?o.call(o,this,t)||{}:i.extend({},o),r.model||(r.model=t);var s="";a&&(s=a+"["+(f+e)+"]"),c&&i.extend(r,c),this.createSubviewRenderer(h,n,r,s).call(this)},this),u||l.replaceWith(h))}}},this)},_beforeRender:i.noop,beforeRender:i.noop,render:function(){return!this.disposed&&(this.renderWithTemplate(),this)},afterRender:i.noop,_afterRender:function(){this.renderSubviews(),this.rendered=!0,this.trigger("rendered",this),this._verifySubviewsRendered()},getTemplateData:function(){var t=u(this);return this.model&&(t.model=u(this.model)),this.collection&&(t.collection={items:u(this.collection),length:this.collection.length}),t},renderWithTemplate:function(t){if(i.isUndefined(this.template))throw new Error("Template function needed.");var e;return e=i.isFunction(this.template)?this.template(t||this.getTemplateData()):this.template,this.$el.html(e),this},afterRenderSubviews:i.noop,_verifySubviewsRendered:function(){var t=i.bind(function(){this.afterRenderSubviews(),this.trigger("renderedSubviews")},this),e=i.reject(this._subviews,function(t){return t.rendered===!0||t._rendered===!0});i.isEmpty(e)?t():a.map(e,function(t){return a.promise(i.partial(function(e,n){t.once("rendered",e)},t))}).then(t)},_beforeRemove:function(){this.removeSubviews()},beforeRemove:i.noop,remove:function(){return this.keepElement?(this.undelegateEvents(),this.stopListening()):f.prototype.remove.apply(this,arguments),this},afterRemove:i.noop,_afterRemove:function(){var t=["el","$el","options","model","collection","subviews","_subviews","defaults","attributes"];i.forEach(t,i.bind(function(t){this[t]&&delete this[t]},this)),this.rendered=!1,this.disposed=!0}},{subviewWithOptions:function(t){return c.call(null,this,t)}});l.mixin.applyTo(h.prototype),t.exports=h},140:function(t,e,n){"use strict";function r(t){return i.isFunction(t.serialize)?t.serialize():i.isFunction(t.toJSON)?t.toJSON():void 0}var i=n(4);t.exports=r},141:function(t,e,n){"use strict";function r(t,e){return{constructor:t,options:function(t){var n=i.isFunction(e)?e(t):e;return i.extend(i.pick(t,t.viewOptionKeys),n)}}}var i=n(4);t.exports=r},142:function(t,e,n){"use strict";function r(t,e){e||(e={}),t||(t=[]),i.each(t,function(t){i.isFunction(this[t])&&this[t].call(this,e)},this)}var i=n(4),o=n(3),s=n(101),a=["model","collection","el","id","attributes","className","tagName","events"],u=["_setup"],c=o.View.extend({constructor:function(t){this.cid=i.uniqueId("view"),t||(t={}),i.extend(this,i.pick(t,a)),this._elAttributes=this.attributes,this.attributes={},this._ensureElement(),this.setupMethods=i.union(u,this.constructor.__super__.setupMethods,this.setupMethods),r.call(this,this.setupMethods,t),this.initialize.apply(this,arguments),this.delegateEvents()},_setup:i.noop,_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"_elAttributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className"));var e=o.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}});s.applyTo(c),t.exports=c},653:function(t,e,n){"use strict";var r=n(2),i=(n(4),n(3)),o=n(654),s=n(11),a=n(661);i.$=r;var u,c,l=n(61),f=n(675);l();var h=r(".carousel-container");if(h.length){var p=s.get("Components/PhotosetIframe");c=new o({el:h,redirect_url_primary:h.data("redirect-url-primary"),model:new a(p.model)}),h.append(c.render())}else u=new f},654:function(t,e,n){"use strict";var r=n(655);t.exports=r},655:function(t,e,n){"use strict";var r=n(139),i=n(656),o=n(4),s=n(658),a=n(21),u=n(19),c=n(659),l=n(660),f=r.extend({className:"carousel-container",template:s,hasPeeked:!1,mixins:[l],subviews:{carouselPositionView:{constructor:i,options:function(t){return{photoCount:t.model.get("photoset_photos").length}}}},events:{"click .carousel-item-container a":"contentLinkClick"},initialize:function(t){t=t||{},this.currentItem=0,this.redirectUrlPrimary=t.redirect_url_primary,this.setupWatcher(),this.model.set("is_carousel",!0),this.model.set("carousel_index",this.currentItem)},afterRenderSubviews:function(){var t=this;o.defer(function(){t.imageWidth=t.carouselPositionView.$el.width(),window.parent.postMessage("resize_photoset_iframe;"+t.model.get("id")+";"+t.imageWidth,"*")}),this.carouselItemContainer=this.$(".carousel-item-container"),this.listenTo(this.carouselPositionView,"switchCarouselItem",this.processCarouselItemSwitch),this.listenTo(this.carouselPositionView,"peekLeft",this.peekLeft),this.listenTo(this.carouselPositionView,"peekRight",this.peekRight),this.peekIfInViewport(),this.listenTo(u,"DOMEventor:flatscroll",o.throttle(this.peekIfInViewport,500),this)},render:function(){return this.$el.html(this.template({post:this.model,redirect_url_primary:this.redirectUrlPrimary})),this},peekIfInViewport:function(){var t=this;!this.hasPeeked&&this.watcher&&this.watcher.isFullyInViewport&&(this.carouselItemContainer.addClass("peek-animation"),c.animation(this.carouselItemContainer,function(){t.carouselItemContainer.removeClass("peek-animation")}),this.hasPeeked=!0,this.stopListening(u,"DOMEventor:flatscroll"),this.watcher=null)},peekLeft:function(){var t=this.$(".carousel-wrapper");t.addClass("peek-left-animation"),c.animation(t,function(){t.removeClass("peek-left-animation")})},peekRight:function(){var t=this.$(".carousel-wrapper");t.addClass("peek-right-animation"),c.animation(t,function(){t.removeClass("peek-right-animation")})},processCarouselItemSwitch:function(t){this.model.get("pt")&&u.trigger("carousel:slide",{loggingData:this.loggingData({userAction:"slide",extraData:{offset:this.currentItem,target_offset:t}})}),this.carouselItemContainer.css({transform:"translate3d("+t*-this.imageWidth+"px, 0, 0)"}),this.currentItem=t,this.model.set("carousel_index",t)},setupWatcher:function(){this.watcher=a.create(this.$el,-100)},contentLinkClick:function(){this.model.get("pt")&&u.trigger("carousel:click_thru",{loggingData:this.loggingData({userAction:"click_thru",extraData:{offset:this.currentItem}})})}});t.exports=f},656:function(t,e,n){"use strict";var r=n(2),i=n(139),o=n(657),s=i.extend({autoAppend:!0,template:o,events:{"click .carousel-button":"onCarouselButtonClick","click .carousel-arrow-right":"goToNextItem","click .carousel-arrow-left":"goToPrevItem"},initialize:function(t){t=t||{},this.photoCount=t.photoCount||0,this.currentItem=0},switchCarouselItem:function(t){this.trigger("switchCarouselItem",t)},goToItem:function(t){t>=0&&t<=this.photoCount-1?(this.$(".carousel-button").removeClass("current"),this.$('.carousel-button[data-carousel-button-index="'+t+'"]').addClass("current"),this.currentItem=t,this.switchCarouselItem(this.currentItem)):t<0?this.trigger("peekLeft"):t>this.photoCount-1&&this.trigger("peekRight")},goToNextItem:function(t){this.goToItem(this.currentItem+1)},goToPrevItem:function(t){this.goToItem(this.currentItem-1)},onCarouselButtonClick:function(t){var e=r(t.target).data("carousel-button-index");this.goToItem(e)},render:function(){return this.$el.html(this.template({photoCount:this.photoCount})),this}});t.exports=s},657:function(module,exports,__webpack_require__){var _=__webpack_require__(4),_imports="undefined"!=typeof _?_.templateSettings.imports:{},_keys=_.keys,_values=_.values;module.exports=Function(_keys(_imports),"return "+function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj){for(__p+='<div class="carousel-arrow carousel-arrow-left"></div><div class="carousel-arrow carousel-arrow-right"></div><div class="carousel-button-container"> ',i=0;i<photoCount;i++)__p+=' <span class="carousel-button'+__e(0===i?" current":"")+'" data-carousel-button-index="'+__e(i)+'">&#x25cf;</span> ';__p+=" </div>"}return __p}.toString()).apply(void 0,_values(_imports))},658:function(module,exports,__webpack_require__){var _=__webpack_require__(4),_imports="undefined"!=typeof _?_.templateSettings.imports:{},_keys=_.keys,_values=_.values;module.exports=Function(_keys(_imports),"return "+function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<div class="carousel-wrapper"><div class="carousel-item-container"> ',_.forEach(post.get("photoset_photos"),function(t,e){__p+=" ",(t.primary_url||redirect_url_primary)&&(__p+=' <a target="_blank" href="'+__e(t.primary_url?t.primary_url:redirect_url_primary)+'"> '),__p+=' <img class="carousel-item carousel-item-'+__e(e)+'" src="'+__e(t.high_res)+'" alt="'+__e(t.caption)+'"> ',(t.primary_url||redirect_url_primary)&&(__p+=" </a> "),__p+=" "}),__p+=' </div></div><div data-subview="carouselPositionView"></div>';return __p}.toString()).apply(void 0,_values(_imports))},659:function(t,e,n){"use strict";function r(){var t,e,n={animation:null,transition:null},r=document.createElement("div"),i={animation:"animationend",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in i)if(e in r.style){n.animation=i[e];break}var o={transition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(t in r.style){n.transition=o[t];break}return n}function i(t,e){a.animation?s(t).one(a.animation,function(t){e(t)}):setTimeout(function(t){e(t)},0)}function o(t,e){a.transition?s(t).one(a.transition,function(t){e(t)}):setTimeout(function(t){e(t)},0)}var s=n(2),a=r();t.exports={animation:i,transition:o}},660:function(t,e,n){"use strict";var r=n(4),i=n(104),o=new i({loggingData:function t(e){var t={};return!r.isEmpty(this.model)&&r.isFunction(this.model.toJSON)&&(t.modelData=this.model.toJSON()),r.isObject(e)&&(t=r.extend(t,e)),t}});t.exports=o},661:function(t,e,n){"use strict";var r=n(4),i=n(2),o=n(132),s=n(19),a=n(662),u=n(664),c=n(670),l=n(12),f=n(672),h=o.extend({defaults:{},endpoints:{like:"/svc/like",unlike:"/svc/unlike",reblog:"/fast_reblog",reply:"/svc/reply",publish:"/publish",queue:"/publish",destroy:"/svc/post/delete",promote:"/svc/promote",unpromote:"/svc/unpromote",answer:"/answer",deny:"/deny_submission",approve:"/approve_submission",remove_source:"remove_app_attribution",subscription:"/svc/blog/:tumblelog/posts/:post_id/subscription"},initialize:function(t){this._createPostTumblelogModel("tumblelog",this.get("tumblelog-data")),this._createPostTumblelogModel("parentTumblelog",this.get("tumblelog-parent-data")),this._createPostTumblelogModel("rootTumblelog",this.get("tumblelog-root-data")),this.listenTo(this,"like:success",this.logClientLike)},logClientLike:function(){s.trigger("ads:client_like",{loggingData:{userAction:"client_like",postData:this.attributes}})},_createPostTumblelogModel:function(t,e){t=t||"tumblelog",e=e||!1;var n=!1;e&&e.name&&(n=new a(r(e).omit(r.isUndefined).omit(r.isNull).value())),this[t]=n},_setTumblelog:function(){this.tumblelog=new a(r({name:this.get("tumblelog"),ignoring:!1,sponsor:this.get("sponsored"),following:this.get("following"),mention_key:this.get("tumblelog_mention_key")}).omit(r.isUndefined).omit(r.isNull).value())},_setReblogTumblelog:function(){var t=this.get("reblog_source");t&&t.name&&(this.reblogTumblelog=new a(r({name:t.name,ignoring:!1,following:t.following}).omit(r.isUndefined).omit(r.isNull).value()))},getRootTumblelogUuid:function(){return this.get("tumblelog-root-data")?this.get("tumblelog-root-data").uuid:this.get("tumblelog-data")?this.get("tumblelog-data").uuid:this.get("reblogged_root_uuid")||this.get("tumblelog_uuid")},_xhrRequest:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"POST";n.init&&n.init();var s=i.ajax({data:e,type:o,url:t,withFormKey:!0});return s.done(r.bind(function(t){n[200]&&n[200].call(this,t)},this)),s.fail(r.bind(function(t){n[t.status]&&n[t.status].call(this,t.status)},this)),s.always(r.bind(function(){n.always&&n.always()},this)),s},_xhrSuccess:function(t){this.trigger(t+":success")},_xhrFailure:function(t){u.alert(l("Sorry, we seem to be having technical trouble.  Please try again later.")),this.trigger(t+":failure")},_xhrForbidden:function(t){this.trigger(t+":forbidden")},_setCarouselIndex:function(t){return this.get("is_carousel")?r.extend(t,{offset:this.get("carousel_index")}):t},save:function(t,e,n,i){if(n||(n={}),this.endpoints[t]){var o={200:r.bind(this._xhrSuccess,this,t),401:r.bind(this._xhrFailure,this,t),404:r.bind(this._xhrFailure,this,t),403:r.bind(this._xhrForbidden,this,t),500:r.bind(this._xhrFailure,this,t)},s=this.endpoints[t];return s.indexOf(":")>-1&&(s=this.replaceEndPointVariables(s)),this._xhrRequest(s,e,r.defaults(n,o),i)}throw new Error("Missing endpoint url for "+t)},replaceEndPointVariables:function(t){return t.replace(":tumblelog",this.get("tumblelog")).replace(":post_id",this.get("id"))},like:function(t){if(this.get("liked")===!1){this.set("liked",!0);var e=this.likePayload(t,this.getLikeSource("like"));this.save("like",{data:e})}this.trigger("like:set",this),s.trigger("post:like:set",this.get("id"),this,t)},unlike:function(){if(this.get("liked")===!0){this.set("liked",!1);var t=this.likePayload("mouse",this.getLikeSource("unlike"));this.save("unlike",{data:t})}this.trigger("unlike:set",this),s.trigger("post:unlike:set",this.get("id"))},toggleLike:function(){this.get("liked")?this.unlike():this.like()},getLikeSource:function(t){t=t||"like";var e="LIKE_";switch(t){case"unlike":e="UNLIKE_";break;case"reply":e="REPLY_";break;case"ignore":e="IGNORE_"}var n=location.pathname;return n.match(/^\/dashboard\/iframe/)?e+"SOURCE_IFRAME":n.match(/^\/dashboard/)?e+"SOURCE_DASHBOARD":n.match(/^\/tagged/)?e+"SOURCE_TAG_PAGE":n.match(/^\/likes/)?e+"SOURCE_LIKES_PAGE":n.match(/^\/inbox/)?e+"SOURCE_INBOX":n.match(/^\/search/)?e+"SOURCE_SEARCH_RESULTS_PAGE":n.match(/^\/explore/)?e+"SOURCE_DISCOVER":n.match(/^\/tv/)?e+"SOURCE_TV":n.match(/^\/indash_blog\/peepr/)?e+this.getPeeprSource():e+"SOURCE_UNKNOWN"},getPeeprSource:function(){if(window.parent&&window.parent.location){var t=window.parent.location.pathname;if(t.match(/search/))return"SOURCE_SEARCH_PEEPR"}return"SOURCE_PEEPR"},getEmbedCode:function(t,e){var n={embed_key:this.get("embed_key"),embed_did:this.get("embed_did"),post_id:this.get("id"),post_url:this.get("post_url")};t&&(n.language=t),e&&(n.width=e);var r=new c(n);return r.getCode()},likePayload:function(t,e){t=t||"mouse",e=e||"LIKE_SOURCE_UNKNOWN";var n={id:this.get("id"),root_id:this.get("root_id"),key:this.get("reblog_key"),placement_id:this.get("placement_id")||!1,is_recommended:this.get("is_recommended")||"",pt:this.get("pt"),tumblelog_name:this.get("tumblelog-name"),method:t,source:e};return this._setCarouselIndex(n)},reblog:function(t){t=r.extend({},t,{reblogId:this.get("id"),reblogKey:this.get("reblog_key"),reblogBlogName:this.get("reblog_name"),pt:this.get("pt")}),s.trigger("postForms:reblog",t)},fastReblog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f().attributes.fastqueue_web_lab;this.trigger("fastreblog:success",t),s.trigger("post:fastreblog:set",{model:this});var e={reblog_key:this.get("reblog_key"),reblog_post_id:this.get("id"),queue:t,pt:this.get("pt"),tumblelog:this.get("tumblelog")};e=this._setCarouselIndex(e);var n={200:r.bind(function(e){this.set("reblogged",!0),this.trigger("fastreblog:ajax:success",e.response);var n={model:this.clone(),toastOptions:{type:t?"queue":"selfReblog",avatar:e.response.post_tumblelog.avatar,fromTumblelogName:e.response.post_tumblelog.name_or_id}};s.trigger("post:fastReblog:showtoast",n)},this)};this.save("reblog",e,n)},reply:function(t){var e=this,n={reply_text:t,post_id:this.get("id"),tumblelog:this.get("tumblelog"),tumblelog_key:this.get("tumblelog-key")||this.get("tumblelog_key"),source:this.getLikeSource("reply")},r={200:function(){e.trigger("replied"),e._setSubscriptionStatus(!0)}};return this.save("reply",{data:n},r)},destroy:function(){var t={post_id:this.get("id"),channel_id:this.get("tumblelog")};this.save("destroy",t)},publish:function(){var t=this.save("publish",{id:this.get("id")});t.fail(r.bind(function(t){this.trigger("publish:failure",i.parseJSON(t.responseText))},this))},promote:function(t){var e={tag:t,post_id:this.get("id"),reblog_key:this.get("reblog_key"),tumblelog_name:this.get("tumblelog")};return this.save("promote",e)},unpromote:function(t){var e={tag_id:t,post_id:this.get("id"),reblog_key:this.get("reblog_key"),tumblelog_name:this.get("tumblelog")};return this.save("unpromote",e)},queue:function(){var t={id:this.get("id"),queue:"queue"};this.save("queue",t)},removeSource:function(){var t={post_id:this.get("id"),tumblelog_id:this.get("tumblelog")};return this.save("remove_source",t)},approve:function(t){var e={id:this.get("id"),queue:t};return this.save("approve",e)},deny:function(){return this.save("deny",{pid:this.get("id")})},answer:function(t){var e={post_id:this.get("id"),tumblelog:this.get("tumblelog"),key:this.get("tumblelog-key"),answer_text:t};return this.save("answer",e)},embedFocus:function(){this.trigger("embed:focus",this)},updateReblogControl:function(t){this.trigger("reblog:success",t)},dismiss:function(){this.trigger("dismiss",this)},_setSubscriptionStatus:function(t){"boolean"!=typeof t&&(t=!this.get("isSubscribed")),this.set("isSubscribed",t)},_toggleSubscription:function(t){var e=this,n=this.get("isSubscribed")?"DELETE":"POST";return this.save("subscription",{},{200:function(){e._setSubscriptionStatus(!e.get("isSubscribed"))}},n)}});t.exports=h},662:function(t,e,n){"use strict";function r(t,e,n){var r=a.Deferred(),i={data:{tumblelog:t.get("name"),page_url:window.location.href}};["placement_id","pt","source","context","tlt","offset"].forEach(function(t){n.hasOwnProperty(t)&&(i.data[t]=n[t])});var o=function(){n.wait||t.set({following:e.following},n)},s=function(i,o){n.wait||t.set({following:!e.following},n),r.reject(o)},u=function(){n.wait&&t.set({following:e.following},n),r.resolve()},c=e.following?"/svc/follow":"/svc/unfollow";return a.ajax({beforeSend:o,cache:!n.force,data:i,error:s,type:"POST",success:u,url:c,withFormKey:!0}),r.promise()}function i(t,e){var n=a.Deferred(),r={};u.has(e,"is_tumblelog_popover")&&(r.is_tumblelog_popover=e.is_tumblelog_popover),u.has(e,"is_user_mention")&&(r.is_user_mention=e.is_user_mention);var i=function(t,e){n.reject(e)},o=function(e){u.has(e,"highlighted_posts")||(e={highlighted_posts:e}),t.set(e),n.resolve()};return a.ajax({cache:!e.force,data:r,error:i,type:"GET",success:o,url:p(t),withFormKey:!0}),n.promise()}function o(t,e){return c.promise(function(n,r){var i={tumblelog:t.get("name")};u.has(e,"include_member_data")&&(i.include_member_data=e.include_member_data),u.has(e,"include_activity_data")&&u.has(e,"include_member_data")&&(i.include_activity_data=e.include_activity_data),u.has(e,"include_activity_notifications")&&u.has(e,"include_member_data")&&(i.include_activity_notifications=e.include_activity_notifications);var o=function(t,e){r(e)},s=function(e){t.set(e.response),n()};a.ajax({data:i,type:"GET",error:o,success:s,url:"/svc/data/tumblelog",withFormKey:!0})})}function s(t,e){return a.ajax({cache:!e.force,data:e.data,type:"GET",url:"/svc/tumblelog_popover/"+t,withFormKey:!0})}var a=n(2),u=n(4),c=n(111),l=n(19),f=n(663),h=n(669),p=function(){function t(t){return t.has("avatar_url")&&t.has("global_theme_params")}return function(e){return t(e)?"/svc/"+e.get("name")+"/posts/highlighted":"/svc/tumblelog_popover/"+e.get("name")}}(),d=h.extend({save_following:function(t,e){e||(e={}),t||(t={}),t.following=!!t.following;var n=this;return e.force||n.get("following")!==t.following?r(n,t,e).then(u.bindKey(n,"save_following",t)):a.when(n.get("following"))},fetch_popover_data:function(t){t||(t={}),t.is_user_mention=!!t.is_user_mention,t.is_tumblelog_popover=!!t.is_tumblelog_popover;var e=this;return!t.force&&e.has("highlighted_posts")?a.when(e.get("highlighted_posts")):i(e,t).then(u.bindKey(e,"fetch_popover_data",null))},fetch_analytics_data:function(){return o(this,{include_member_data:!0,include_activity_data:!0})},fetch_activity_notifications:function(){return o(this,{include_member_data:!0,include_activity_data:!0,include_activity_notifications:!0})},toggle_spam:function(){return a.ajax({url:"/spam/toggle",type:"POST",data:{tumblelog:this.id},withFormKey:!0})},toggle_nsfw:function(){return a.ajax({url:"/nsfw/toggle",type:"POST",data:{tumblelog:this.id},withFormKey:!0})},toggle_adult:function(){return a.ajax({url:"/adult/toggle",type:"POST",data:{tumblelog:this.id},withFormKey:!0})},toggle_uniblock:function(){return a.ajax({url:"/uniblock/toggle",type:"POST",data:{tumblelog:this.id},withFormKey:!0})},toggle_suspended:function(){return a.ajax({url:"/suspended/toggle",type:"POST",data:{tumblelog:this.id},withFormKey:!0})},follow:function(t){return this.save_following({following:!0},t)},_unfollow:function(t){this.save_following({following:!1},t)},requestUnfollow:function(t){var e=c.defer();return e.promise.then(u.bind(this._unfollow,this,t)).catch(u.noop),e},block:function(){return f.block({blockedTumblelog:this.id})},unblock:function(){return f.unblock({blockedTumblelog:this.id})},toggleSubscription:function(t){var e=this.get("name"),n=!!this.get("is_subscribed"),r=n?"DELETE":"POST",i={url:"/svc/blog/"+e+"/subscription",type:r,withFormKey:!0};return t&&(i.data={source:t}),c.promise(function(t,e){a.ajax(u.assign(i,{success:t,error:e}))}).then(u.bind(function(){this.set({is_subscribed:!n})},this))},defaults:null,idAttribute:"name",initialize:function(){this.bindEvents()},bindEvents:function(){var t=this.get("name");this.on("change:following",function(){if(this.previous("following")){var e=this.get("following")?"tumblelog:follow":"tumblelog:unfollow";l.trigger(e,{name:t,loggingData:t})}this._updateSubscriptionStatus()},this),this.on("change:twitter_send_posts",this._updateUserSocial),this.on("change:facebook_opengraph_send_posts",this._updateUserSocial)},_updateSubscriptionStatus:function(){this.get("following")?this.set("can_subscribe",!0):this.set({can_subscribe:!1,is_subscribed:!1})},_updateUserSocial:function(){var t={tumblelog_name_or_id:this.get("name"),page:"tumblelog","tumblelog[facebook_opengraph_send_posts]":this.get("facebook_opengraph_send_posts")?"on":"off","tumblelog[twitter_send_posts]":this.get("twitter_send_posts")?"on":"off"};a.ajax({data:t,type:"POST",url:"/settings/save",withFormKey:!0})},getDisplayName:function(){return this.get("is_legacy_private_channel")?this.get("directory_safe_title"):this.get("name")},parse:function(t){return t},validate:function(){return!1},destroy:function(){return this},fetch:function(){return this},save:function(){return this},url:function(){},urlRoot:function(){}},{collection:null,modelFromToken:function(t){var e,n=d.getCollection(),r=a.Deferred(),i=n.findWhere({token:t});return i?r.resolve(i):(e={data:{is_user_mention:!0}},s(t,e).then(function(e){var n=new d(e);n.set({token:t}),r.resolve(n)},function(){r.reject()})),r.promise()}});d.collection=d.getCollection(),t.exports=d},663:function(t,e,n){"use strict";var r=n(2),i=n(4),o=n(12),s=n(11),a=n(664),u=n(111),c={_getCurrentTumblelog:function(){var t="",e=s.get("Context/userinfo");return e&&i.each(e.channels,function(e){e.is_current&&(t=e.name)}),t},block:function(t){t=t||{};var e={};return e.tumblelog=t.currentTumblelog||this._getCurrentTumblelog(),t.blockedTumblelog?e.blocked_tumblelog=t.blockedTumblelog:t.blockedPost&&(e.blocked_post=t.blockedPost),t.context&&(e.block_context=t.context),r.ajax({url:"/svc/block/add",type:"POST",data:e,withFormKey:!0})},unblock:function(t){t=t||{};var e={};return e.tumblelog=t.currentTumblelog||this._getCurrentTumblelog(),e.blocked_tumblelog=t.blockedTumblelog,r.ajax({url:"/svc/block/remove",type:"POST",data:e,withFormKey:!0})},confirmBlock:function(t){t=t||{};var e,n=t.currentTumblelog||this._getCurrentTumblelog(),r=u.defer();if(t.blockedTumblelog)e=o("%1$sAre you sure you want to block %2$s from %3$s?%4$sThey won't be able to follow %3$s, send %3$s messages, see %3$s in search results, or interact with any of %3$s's posts.%5$s","<h3>",t.blockedTumblelog,n,"</h3><small>","</small>");else{if(!t.blockedPost)return r.reject(),r.promise;e=o("%1$sBlock messages from this sender?%2$sAny further messages sent from their IP address will be blocked from your inbox. This can't be undone, by the way.%3$s","<h3>","</h3><small>","</small>")}return a.confirm(e,function(){r.resolve(t.blockedTumblelog?t.blockedTumblelog:t.blockedPost)},function(){r.reject()},o("Block"),o("Nevermind")),r.promise.catch(i.noop),r.promise}};t.exports=c},664:function(t,e,n){"use strict";var r=n(4),i=n(99),o=n(665),s=i.extend({name:"Dialog",initialize:function(t){this.dialogView=o,this.options=r.extend({},this.defaults,t)},alert:function(t,e,n){return this.dialogView.alert.call(this.dialogView,t,e,n)},confirm:function(t,e,n,r,i){return this.dialogView.confirm.call(this.dialogView,t,e,n,r,i)},dialog:function(t){return this.dialogView.dialog.call(this.dialogView,t)},isActive:function(t){return this.dialogView.isActive.call(this.dialogView,t)},close:function(t){return this.dialogView.close.call(this.dialogView,t)},getDialogEl:function(){return this.dialogView.getDialogEl.call(this.dialogView)},__:function(t){return this.dialogView.__.call(this.dialogView,t)}});t.exports=new s},665:function(t,e,n){"use strict";var r=n(2),i=n(4),o=n(142),s=n(19),a=n(12),u=n(659),c=o.extend({el:".ui_dialog",translations:{},defaultTemplates:{dialog:n(666),content:n(667),button:n(668)},events:{"click .ui_button":"buttonClick"},defaultDialog:{text:"",type:"default",has_form:"auto",visible_glass:!0,confirm_by_enter:!0,close_by_space:!0,key_tab:!0,key_close:!0,scroll_lock:!1,keycommand_maintain:!1,animate:!0,animate_in:{dialog_el:".ui_dialog",dialog_class:"fade-in-up"},on_close:function(){},on_open:function(){}},initialize:function(t){this.options=i.extend(this.defaults,this.options),this.templates=this.defaultTemplates,this.is_visible=!1,this.dialogQueueOrder=[],this.dialogQueue={},this.queueCounter=0,this.currentDialog=!1,this.currentDialogId=0,this.uid=0,this.$body=r("body"),this._initClickLock(),this._setupKeys(),s&&!e.Dialog&&(this.listenTo(s,"dialog:dialog",this.dialog),this.listenTo(s,"dialog:confirm",this.confirm),this.listenTo(s,"dialog:confirm:promise",this.confirmPromise),this.listenTo(s,"dialog:alert",this.alert),this.listenTo(s,"dialog:close",this.close))},dialog:function(t){return!!i.isObject(t)&&this._dialog(t)},confirm:function(t,e,n,r,o){i.isString(t)&&(t={text:t});var s={callback_ok:e,callback_cancel:n,text_ok:r,text_cancel:o};t=i.extend(this.defaultDialog,s,t);var u={text:t.text,customClass:t.customClass||null,type:"confirm",visible_glass:!0,keycommand_maintain:t.keycommand_maintain||!1,templates:t.templates||null,escape_button:0,animate_in:{dialog_el:t.animate_in.dialog_el||".ui_dialog",dialog_class:t.animate_in.dialog_class||"fade-in-up"},buttons:{0:{text:t.text_cancel||a("Cancel"),close:!0,callback:i.isFunction(t.callback_cancel)?t.callback_cancel:function(){}},1:{text:t.text_ok||a("OK"),selected:!0,btn_class:"blue",close:!0,callback:i.isFunction(t.callback_ok)?t.callback_ok:function(){}}}};return this._dialog(u)},confirmPromise:function(t,e){this.confirm(e,t.resolve,t.reject)},alert:function(t,e,n){i.isString(t)&&(t={text:t});var r={callback_ok:e,text_ok:n};t=i.extend({},r,t);var o={text:t.text,customClass:t.customClass||null,type:"alert",visible_glass:!0,keycommand_maintain:t.keycommand_maintain||!1,templates:t.templates||null,escape_button:0,buttons:{0:{text:t.text_ok||a("OK"),selected:!0,btn_class:"blue",close:!0,callback:i.isFunction(t.callback_ok)?t.callback_ok:function(){}}}};return this._dialog(o)},getDialogEl:function(){return this.el},buttonClick:function(t){var e=r(t.currentTarget),n=e.data("btn-id");if(i.isUndefined(this.currentDialog.buttons[n])||e.hasClass("disabled"))return!1;var o=this.currentDialog.buttons[n],s=null;
i.isFunction(o.callback)&&(s=o.callback(this)),s!==!1&&(!i.isUndefined(o.close)&&o.close||i.isUndefined(o.close))&&this.close()},isActive:function(t){return this.currentDialog!==!1&&this.currentDialog.uid===t},close:function(t){if(this.currentDialog===!1)return!1;if(i.isUndefined(t)&&(t=!1),t!==!1&&this.currentDialog.uid!==t)return!1;if(u.transition(this.$dialog_lock,i.bind(function(){this.$dialog_lock.hide(),r(".ui_dialog_pos").remove()},this)),u.animation(this.$dialog_el,i.bind(function(){r(".ui_dialog_pos").remove()},this)),this.$dialog_lock.removeClass("opaque"),this.$dialog_el.addClass("fade-out-down"),this.is_visible=!1,this.currentDialog.keycommand_maintain||s.trigger("keycommands:resume"),i.isFunction(this.currentDialog.on_close)&&this.currentDialog.on_close(),s.trigger("dialog:closed"),this.currentDialog=!1,r("html").removeClass("dialog_lock"),this.dialogQueueOrder.length>0){var e=this.dialogQueueOrder.shift(),n=this.dialogQueue[e];delete this.dialogQueue[e],this._dialog(n)}},_tab:function(t){var e=this.$el.find(".buttons .tab_frame"),n=e.filter(".focus"),r=e.index(n),i=e.length,o=!1;o=r+1<i?r+1:0,n.removeClass("focus init_focus");var s=e.eq(o);s.length>0&&(s.addClass("focus"),s.find("button").focus())},_formIsTabToButton:function(t,e){var n=this.$el.find(":focus");if(0===n.length)return!0;var r=this.$el.find(".buttons .tab_frame"),i=this.$el.find(":input:visible"),o=i.index(n);if(e&&o===i.length-1)return this.$el.find(":input:visible:first").focus(),t.preventDefault(),r.removeClass("focus init_focus"),!1;if(o>=0){var s=this.$el.find(":input:visible:eq("+(o+1)+")");if(s.length>0&&s.hasClass("ui_button"))return!0}return r.removeClass("focus init_focus"),!1},_select:function(t){var e=this.$el.find(".buttons .tab_frame.focus"),n=e;1===n.length&&n.find(".ui_button").click()},_formIsFocusOnButton:function(t){var e=this.$el.find(":focus");return 0!==e.length&&e.hasClass("ui_button")},_escape:function(t){if(!i.isUndefined(this.currentDialog.escape_button)){var e=this.$el.find(".btn_"+this.currentDialog.escape_button);e.length&&e.click()}},_dialog:function(t){if(i.isUndefined(t.uid)&&(t.uid=this._getUid()),this.currentDialog!==!1)return this.dialogQueueOrder.push(this.queueCounter),this.dialogQueue[this.queueCounter]=t,this.queueCounter++,t.uid;i.defaults(t,this.defaultDialog);var e=this._buildButtons(t.buttons);i.extend(t,{buttons_html:e});var n=this.templates;i.isObject(t.templates)&&(n=i.extend({},this.templates,t.templates));var o=i.isString(n.dialog)?i.template(n.dialog):n.dialog,a=i.isString(n.content)?i.template(n.content):n.content;t.content_html=a(t);var u=o(t);this.$dialog_lock.show(),i.isUndefined(t.visible_glass)?this.$dialog_lock.removeClass("opaque"):t.visible_glass&&i.defer(i.bind(function(){this.$dialog_lock.addClass("opaque")},this)),!i.isUndefined(t.scroll_lock)&&t.scroll_lock&&r("html").addClass("dialog_lock"),this.currentDialogId=t.uid,this.currentDialog=t;var c=r('<div id="dialog_'+this.currentDialogId+'" class="ui_dialog_pos">'+u+"</div>");return i.isString(t.customClass)&&c.addClass(t.customClass),c.appendTo(this.$body),this.setElement(c),this.is_visible=!0,this.$dialog_el=this.$el.find(t.animate_in.dialog_el),t.animate&&i.isObject(t.animate_in)&&this.$dialog_el.length&&this.$dialog_el.addClass(t.animate_in.dialog_class),this._focus(),this.currentDialog.keycommand_maintain||s.trigger("keycommands:suspend"),i.isUndefined(t.has_form)&&(t.has_form="auto"),"auto"===t.has_form&&(t.has_form=this.$el.find("form, input").length>0),i.isFunction(t.on_open)&&t.on_open(),this.el=this.$el[0],this.delegateEvents(),s.trigger("dialog:opened"),t.uid},_button:function(t,e,n,r){var o=i.isString(this.templates.button)?i.template(this.templates.button):this.templates.button,s=o({btn_class:e,text:t,btn_id:i.isUndefined(n)?"":n});return s='<div class="tab_frame">'+s+"</div>"},_focus:function(){if(!this.currentDialog)return!1;for(var t in this.currentDialog.buttons){var e=this.currentDialog.buttons[t];if(!i.isUndefined(e.selected)&&e.selected){var n=this.$el.find(".btn_"+t);n.length>0&&n.parent().addClass("focus init_focus")}}},_setupKeys:function(){r(document).on("keydown",i.bind(function(t){var e=t.ctrlKey||t.shiftKey||t.metaKey;if(this.is_visible&&!e){var n=t.keyCode||t.which;if(9===n&&this.currentDialog.key_tab){if(this.currentDialog.has_form&&!this._formIsTabToButton(t,!0))return;t.preventDefault(),this._tab(t)}if(13===n&&this.currentDialog.confirm_by_enter||32===n&&this.currentDialog.close_by_space){if(this.currentDialog.has_form&&32===n&&!this._formIsFocusOnButton(t))return;t.preventDefault(),this._select(t)}27===n&&this.currentDialog.key_close&&(t.preventDefault(),this._escape(t))}},this))},_buildButtons:function(t){if(!i.isObject(t))return"";var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;for(var r="",o=0;o<e;o++)if(!i.isUndefined(t[o])){var s=i.isUndefined(t[o].text)?"":t[o].text,a=i.isUndefined(t[o].btn_class)?"":t[o].btn_class,u=!i.isUndefined(t[o].selected)&&t[o].selected;r+=this._button(s,a,o,u)}return r},_initClickLock:function(){var t=this.$dialog_lock=r("<div>",{class:"ui_dialog_lock",css:{display:"none"}});r(document).ready(function(){t.prependTo("body")})},_getUid:function(){return this.uid++},__:function(t){return a(t)}});t.exports=new c},666:function(module,exports,__webpack_require__){var _=__webpack_require__(4),_imports="undefined"!=typeof _?_.templateSettings.imports:{},_keys=_.keys,_values=_.values;module.exports=Function(_keys(_imports),"return "+function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="ui_dialog '+(null==(__t=type)?"":__t)+'"> '+(null==(__t=content_html)?"":__t)+' <div class="buttons">'+(null==(__t=buttons_html)?"":__t)+"</div></div>";return __p}.toString()).apply(void 0,_values(_imports))},667:function(module,exports,__webpack_require__){var _=__webpack_require__(4),_imports="undefined"!=typeof _?_.templateSettings.imports:{},_keys=_.keys,_values=_.values;module.exports=Function(_keys(_imports),"return "+function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<span class="text">'+(null==(__t=text)?"":__t)+"</span>";return __p}.toString()).apply(void 0,_values(_imports))},668:function(module,exports,__webpack_require__){var _=__webpack_require__(4),_imports="undefined"!=typeof _?_.templateSettings.imports:{},_keys=_.keys,_values=_.values;module.exports=Function(_keys(_imports),"return "+function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<button class="ui_button btn_'+(null==(__t=btn_id)?"":__t)+" chrome "+(null==(__t=btn_class)?"":__t)+'" data-btn-id="'+(null==(__t=btn_id)?"":__t)+'"><span>'+(null==(__t=text)?"":__t)+"</span></button>";return __p}.toString()).apply(void 0,_values(_imports))},669:function(t,e,n){"use strict";function r(t,e){function n(t,e){var n,r;if(!i.isObject(t))throw new Error("SingletonModel requires attributes");if(n=t[h],i.isEmpty(n)&&!i.isNumber(n)&&i.defer(function(){throw new Error('SingletonModel attributes require a "'+h+'"')}),r=l[n],f[n]++||(f[n]=1),r)i.keys(t).length>=2&&r.set(t,e),r.collection!==!0&&(r.collection=!0);else{l[n]=this;try{Object.defineProperty(this,"collection",{value:!0,configurable:!1,enumerable:!0,writable:!1})}finally{this.collection||(this.collection=!0)}this.constructor.__super__.constructor.call(this,t,e),c.add(this)}return r||this}function r(){return this.id}function a(){return c}function u(){0===--f[this.id]&&(delete l[this.id],delete f[this.id],c.remove(this))}t||(t={}),e||(e={});var c=new o.Collection,l=Object.create(null),f=Object.create(null),h=t.idAttribute||s.prototype.idAttribute;return t.constructor=n,t.release=u,t.toString=r,t.toJSON=t.toJSON||s.prototype.toJSON,e.getCollection=a,s.extend(t,e)}var i=n(4),o=n(3),s=n(132);t.exports.extend=r},670:function(t,e,n){"use strict";var r=n(4),i=n(99),o=n(671),s=n(11),a=i.extend({name:"PostEmbedCodeGenerator",defaults:{embed_host:"//embed.tumblr.com",secure_assets_host:"https://assets.tumblr.com",tumblelog_mention_key:"",post_id:"",post_url:"",embed_key:"",embed_did:""},initialize:function(t){this.options=r.extend({},this.defaults,t);var e=s.get("Context/hosts");e&&(e.embed_host&&(this.options.embed_host=e.embed_host),e.secure_assets_host&&(this.options.secure_assets_host=e.secure_assets_host)),this.template=o},getCode:function(){return this.template(this.options)}});t.exports=a},671:function(module,exports,__webpack_require__){var _=__webpack_require__(4),_imports="undefined"!=typeof _?_.templateSettings.imports:{},_keys=_.keys,_values=_.values;module.exports=Function(_keys(_imports),"return "+function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+="undefined"!=typeof language&&"undefined"!=typeof width?' <div class="tumblr-post" data-href="'+__e(embed_host)+"/embed/post/"+__e(embed_key)+"/"+__e(post_id)+'" data-did="'+__e(embed_did)+'" data-language="'+__e(language)+'" data-width="'+__e(width)+'"><a href="'+__e(post_url)+'">'+__e(post_url)+"</a></div> ":"undefined"!=typeof language?' <div class="tumblr-post" data-href="'+__e(embed_host)+"/embed/post/"+__e(embed_key)+"/"+__e(post_id)+'" data-did="'+__e(embed_did)+'" data-language="'+__e(language)+'"><a href="'+__e(post_url)+'">'+__e(post_url)+"</a></div> ":"undefined"!=typeof width?' <div class="tumblr-post" data-href="'+__e(embed_host)+"/embed/post/"+__e(embed_key)+"/"+__e(post_id)+'" data-did="'+__e(embed_did)+'" data-width="'+__e(width)+'"><a href="'+__e(post_url)+'">'+__e(post_url)+"</a></div> ":' <div class="tumblr-post" data-href="'+__e(embed_host)+"/embed/post/"+__e(embed_key)+"/"+__e(post_id)+'" data-did="'+__e(embed_did)+'"><a href="'+__e(post_url)+'">'+__e(post_url)+"</a></div> ",__p+=' <script async src="'+__e(secure_assets_host)+'/post.js"></script>';return __p}.toString()).apply(void 0,_values(_imports))},672:function(t,e,n){"use strict";var r,i=n(673),o=n(11),s=n(19),a=function(){if(null==r){var t=o.get("Context/userinfo");r=!(!t||!t.name)&&new i(t),r&&(r.listenTo(s,"post:like:set",r.incrementLikeCount),r.listenTo(s,"post:unlike:set",r.decrementLikeCount),r.listenTo(s,"tumblelog:follow",r.incrementFollowingCount),r.listenTo(s,"tumblelog:unfollow",r.decrementFollowingCount))}return r};t.exports=a},673:function(t,e,n){"use strict";var r=n(4),i=n(669),o=n(132),s=n(674),a=i.extend({idAttribute:"name",initialize:function(t){this.channels=new s(t.channels)},incrementLikeCount:function(){var t=this.get("liked_post_count");this.set("liked_post_count",t+1)},decrementLikeCount:function(){var t=this.get("liked_post_count");t>0&&this.set("liked_post_count",t-1)},incrementFollowingCount:function(){var t=this.get("friend_count");this.set("friend_count",t+1)},decrementFollowingCount:function(){var t=this.get("friend_count");t>0&&this.set("friend_count",t-1)},getUnreadCount:function(){return this.channels.reduce(function(t,e){return parseInt(t,10)+parseInt(e.get("unread_count"),10)},0)},getChannel:function(t){return null==t&&(t=this.get("primary")),this.channels.findWhere({name:t})},canMessage:function(){return this.get("can_message")},isSoundsEnabled:function(){return this.get("is_sounds_enabled")},isVerifiedEmail:function(){return this.get("is_verified_email")},getChannelsEnabledForMessaging:function(){return this.channels.where({can_send_messages:!0})},getCurrentMessagingChannelUuid:function(){var t;return r.isEmpty(this._currentMessagingChannelUuid)&&(t=this.channels.findWhere({is_current:!0,can_send_messages:!0})||r.first(this.getChannelsEnabledForMessaging()),t&&(this._currentMessagingChannelUuid=t.get("uuid"))),this._currentMessagingChannelUuid},setCurrentMessagingChannelUuid:function(t){this._currentMessagingChannelUuid=t},toJSON:function(){var t=o.prototype.toJSON.apply(this,arguments);return t.channels=this.channels.toJSON(),t},getChannelProperty:function(t,e){var n=this.getChannel(t);if(!(n&&"get"in n))return null;var r=n.get(e);return"undefined"==typeof r?null:r}});t.exports=a},674:function(t,e,n){"use strict";var r=n(108),i=n(662),o=r.extend({model:i});t.exports=o},675:function(t,e,n){"use strict";var r=n(2),i=n(4),o=n(99),s=n(62),a=o.extend({name:"PhotosetIframe",initialize:function(t){var e=this;this.options=i.extend({},this.defaults,t);var n=this.data.photoset_photos;this.photoset_width=this.data.shadow?this.data.width+20:this.data.width,this.photoset=r("#photoset_"+this.data.post_id),window.onresize=function(){e.scale()},s.bool("is_mobile")||r(".photoset_photo").on("click",function(){return window.parent.Tumblr.Lightbox.init(n,r(this).data("photoset-index")),!1}),this.scale()},scale:function t(){var e,n=window.innerWidth||Math.max(document.documentElement.clientWidth,document.body.clientWidth),t=(n/this.photoset_width).toFixed(2);if("undefined"==typeof this.currentWidth||this.currentWidth!==n){if(t<1){var r=(n/this.photoset_width).toFixed(2);this.photoset.css({transform:"scale("+r+")"})}else this.photoset.css({transform:"scale(1)"});window.parent&&(e=t<1?Math.round(this.photoset.outerHeight()*t):this.photoset.outerHeight(),window.parent.postMessage("resize_photoset_iframe;"+this.data.post_id+";"+e,"*")),this.currentWidth=n}}});t.exports=a},676:function(t,e){}});