-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.min.js
11 lines (11 loc) · 251 KB
/
index.min.js
1
2
3
4
5
6
7
8
9
10
11
/* hangouts-analyzer by @theopolisme */
function toast(a,b,c){function d(a){var b=$("<div></div>");b.addClass("toast"),b.addClass(c);var d=$("<span></span>");return d.text(a),b.append(d),b.hammer({prevent_default:!1}).bind("pan",function(a){var c=a.gesture.deltaX,d=80;b.hasClass("panning")||b.addClass("panning");var e=1-Math.abs(c/d);0>e&&(e=0),b.velocity({left:c,opacity:e},{duration:50,queue:!1,easing:"easeOutQuad"})}).bind("panend",function(a){var c=a.gesture.deltaX,d=80;Math.abs(c)>d?b.velocity({marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){b.remove()}}):(b.removeClass("panning"),b.velocity({left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),b}if(c=c||"",0==$("#toast-container").length){var e=$("<div></div>").attr("id","toast-container");$("body").append(e)}var e=$("#toast-container"),f=d(a);e.append(f),f.css({top:parseFloat(f.css("top"))+35+"px",opacity:0}),f.velocity({top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var g=b,h=setInterval(function(){0===f.parent().length&&window.clearInterval(h),f.hasClass("panning")||(g-=100),0>=g&&(f.velocity({opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){$(this).remove()}}),window.clearInterval(h))},100)}function Rlite(){this.rules={}}!function(a){function b(){throw Error("Can't construct. GenericCollection is a mixin.")}function c(){throw Error("Can't construct. GenericSet is a mixin.")}function d(){}function e(){throw Error("This is an abstract interface. Mix it. Don't construct it")}function f(){throw Error("Can't construct. RangeChanges is a mixin.")}function g(){throw Error("Can't construct. GenericOrder is a mixin.")}function h(a){if(!(this instanceof h))return new h(a);if(Array.isArray(a)||"string"==typeof a)return h.iterate(a);if(a=mb(a),a instanceof h)return a;if(a.next)this.next=function(){return a.next()};else if(a.iterate){var b=a.iterate();this.next=function(){return b.next()}}else{if("[object Function]"!==mb.prototype.toString.call(a))throw new TypeError("Cannot iterate");this.next=a}}function i(a,b,c){this.array=a,this.start=null==b?0:b,this.end=c}function j(a,b,c){if(!(this instanceof j))return new j(a,b,c);var d=this.head=new this.Node;d.next=d,d.prev=d,this.contentEquals=b||Object.equals,this.content=c||Function.noop,this.length=0,this.addEach(a)}function k(a){this.head=a,this.at=a.next}function l(a){this.value=a,this.next=this.prev=null}function m(){throw Error("Can't construct. MapChanges is a mixin.")}function n(){throw Error("Can't construct. GenericMap is a mixin.")}function o(a,b){return this instanceof o?(this.content=b||Function.noop,this.store={},this.length=0,void this.addEach(a)):new o(a,b)}function p(a,b,c,d){return this instanceof p?(b=b||Object.equals,c=c||Object.hash,d=d||Function.noop,this.contentEquals=b,this.contentHash=c,this.content=d,this.buckets=new this.Buckets(null,this.Bucket),this.length=0,void this.addEach(a)):new p(a,b,c)}function q(a,b,c,d){return this instanceof q?(b=b||Object.equals,c=c||Object.hash,d=d||Function.noop,this.contentEquals=b,this.contentHash=c,this.content=d,this.store=new Nb(void 0,function(a,c){return b(a.key,c.key)},function(a){return c(a.key)}),this.length=0,void this.addEach(a)):new q(a,b,c)}function r(a,b,c,d){return this instanceof r?(b=b||Object.equals,c=c||Object.hash,d=d||Function.noop,this.contentEquals=b,this.contentHash=c,this.content=d,this.order=new this.Order(void 0,b),this.store=new this.Store(void 0,function(a,c){return b(a.value,c.value)},function(a){return c(a.value)}),this.length=0,void this.addEach(a)):new r(a,b,c)}function s(a,b,c,d,e){return this instanceof s?(b=b||1/0,c=c||Object.equals,d=d||Object.hash,e=e||Function.noop,this.store=new Zb(void 0,c,d),this.contentEquals=c,this.contentHash=d,this.content=e,this.maxLength=b,this.length=0,void this.addEach(a)):new s(a,b,c,d)}function t(a,b,c,d,e){return this instanceof t?(c=c||Object.equals,d=d||Object.hash,e=e||Function.noop,this.contentEquals=c,this.contentHash=d,this.content=e,this.store=new cc(void 0,b,function(a,b){return c(a.key,b.key)},function(a){return d(a.key)}),this.length=0,void this.addEach(a)):new t(a,b,c,d)}function u(a,b,c,d){return this instanceof u?(b=b||Object.equals,c=c||Object.hash,d=d||Function.noop,this.contentEquals=b,this.contentHash=c,this.content=d,this.store=new hc(void 0,function(a,c){return b(a.key,c.key)},function(a){return c(a.key)}),this.length=0,void this.addEach(a)):new u(a,b,c)}function v(a,b,c,d){return this instanceof v?(this.bucket=b||this.bucket,void mc.call(this,a,c,d,function(a){var b=this.bucket();return mc.prototype.set.call(this,a,b),b})):new v(a,b,c,d)}function w(a,b,c,d){return this instanceof w?(Array.isArray(a)?(this.array=a,a=a.splice(0,a.length)):this.array=[],this.contentEquals=b||Object.equals,this.contentCompare=c||Object.compare,this.content=d||Function.noop,this.length=0,void this.addEach(a)):new w(a,b,c,d)}function x(a,b,c){for(var d=0,e=a.length-1;e>=d;){var f=d+e>>1,g=c(b,a[f]);if(g>0)d=f+1;else{if(!(0>g))return f;e=f-1}}return-(d+1)}function y(a,b,c,d){if(c=x(a,b,c),0>c)return-1;for(;c>0&&d(b,a[c-1]);)c--;return d(b,a[c])?c:-1}function z(a,b,c,d){if(c=x(a,b,c),0>c)return-1;for(;c<a.length-1&&d(b,a[c+1]);)c++;return d(b,a[c])?c:-1}function A(a,b,c,d){return this instanceof A?void rc.call(this,a,b,c,d):new A(a,b,c,d)}function B(a,b,c,d){return this instanceof B?(b=b||Object.equals,c=c||Object.compare,d=d||Function.noop,this.contentEquals=b,this.contentCompare=c,this.content=d,this.store=new vc(null,function(a,c){return b(a.key,c.key)},function(a,b){return c(a.key,b.key)}),this.length=0,void this.addEach(a)):new B(a,b,c,d)}function C(a,b,c,d){return this instanceof C?(this.contentEquals=b||Object.equals,this.contentCompare=c||Object.compare,this.content=d||Function.noop,this.root=null,this.length=0,void this.addEach(a)):new C(a,b,c,d)}function D(a){this.value=a,this.right=this.left=null,this.length=1}function E(a,b,c){this.set=a,this.prev=null,this.end=c,b&&(a=this.set.findLeastGreaterThanOrEqual(b))&&(this.set.splay(a.value),this.prev=a.getPrevious())}function F(a,b,c,d){return this instanceof F?(b=b||Object.equals,c=c||Object.compare,d=d||Function.noop,this.contentEquals=b,this.contentCompare=c,this.content=d,this.store=new Fc(null,function(a,c){return b(a.key,c.key)},function(a,b){return c(a.key,b.key)}),this.length=0,void this.addEach(a)):new F(a,b,c,d)}var G={};G.module$exports=b,b.prototype.addEach=function(a){if(a&&Object(a)===a)if("function"==typeof a.forEach)a.forEach(this.add,this);else if("number"==typeof a.length)for(var b=0;b<a.length;b++)this.add(a[b],b);else Object.keys(a).forEach(function(b){this.add(a[b],b)},this)},b.prototype.deleteEach=function(a){a.forEach(function(a){this["delete"](a)},this)},b.prototype.forEach=function(a,b){return this.reduce(function(c,d,e,f,g){a.call(b,d,e,f,g)},void 0)},b.prototype.group=function(a,b,c){c=c||Object.a;var d=[],e=[];return this.forEach(function(f,g,h){g=a.call(b,f,g,h),h=e.indexOf(g,c),-1===h?(h=[],d.push([g,h]),e.push(g)):h=d[h][1],h.push(f)}),d},b.prototype.map=function(a,b){var c=[];return this.reduce(function(d,e,f,g,h){c.push(a.call(b,e,f,g,h))},void 0),c},b.prototype.toArray=function(){return this.map(Function.identity)},b.prototype.toObject=function(){var a={};return this.reduce(function(b,c,d){a[d]=c},void 0),a},b.prototype.filter=function(a,b){var c=this.constructClone();return this.reduce(function(d,e,f,g,h){a.call(b,e,f,g,h)&&c.add(e)},void 0),c},b.prototype.every=function(a,b){return this.reduce(function(c,d,e,f,g){return c&&a.call(b,d,e,f,g)},!0)},b.prototype.some=function(a,b){return this.reduce(function(c,d,e,f,g){return c||a.call(b,d,e,f,g)},!1)},b.prototype.all=function(){return this.every(Boolean)},b.prototype.any=function(){return this.some(Boolean)},b.prototype.min=function(a){return a=this.contentCompare||Object.compare,this.reduce(function(b,c){return 0>a(c,b)?c:b},1/0)},b.prototype.max=function(a){return a=this.contentCompare||Object.compare,this.reduce(function(b,c){return 0<a(c,b)?c:b},-1/0)},b.prototype.sum=function(a){return this.reduce(function(a,b){return a+b},void 0===a?0:a)},b.prototype.average=function(a){var b=void 0===a?0:a,c=void 0===a?0:a;return this.reduce(function(a,d){b+=d,c+=1},void 0),b/c},b.prototype.concat=function(){for(var a=this.constructClone(this),b=0;b<arguments.length;b++)a.addEach(arguments[b]);return a},b.prototype.flatten=function(){var a=this;return this.reduce(function(b,c){return c.forEach(function(a){this.push(a)},b,a),b},[])},b.prototype.zip=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this);for(var b=[],c=1/0,d=0;d<a.length;d++){var e=a[d];a[d]=e.toArray(),e.length<c&&(c=e.length)}for(d=0;d<a.length;d++)for(var e=a[d],f=0;f<e.length;f++)c>f&&f in e&&(b[f]=b[f]||[],b[f][d]=e[f]);return b},b.prototype.sorted=function(a,b,c){return a=a||this.contentCompare||Object.compare,a.by?(b=a.by,a=a.compare||this.contentCompare||Object.compare):b=b||Function.identity,void 0===c&&(c=1),this.map(function(a){return{by:b(a),value:a}}).sort(function(b,d){return a(b.by,d.by)*c}).map(function(a){return a.value})},b.prototype.reversed=function(){return this.constructClone(this).reverse()},b.prototype.clone=function(a,b){if(void 0===a)a=1/0;else if(0===a)return this;var c=this.constructClone();return this.forEach(function(d,e){c.add(Object.clone(d,a-1,b),e)},this),c},b.prototype.only=function(){if(0===this.length)throw Error("Can't get only value in empty collection.");if(1<this.length)throw Error("Can't get only value in collection with multiple values.");return this.one()},G.module$exports&&(G=G.module$exports);var H={};H.module$exports=c,c.prototype.union=function(a){var b=this.constructClone(this);return b.addEach(a),b},c.prototype.intersection=function(a){return this.constructClone(this.filter(function(b){return a.has(b)}))},c.prototype.difference=function(a){var b=this.constructClone(this);return b.deleteEach(a),b},c.prototype.symmetricDifference=function(a){var b=this.union(a),a=this.intersection(a);return b.difference(a)},c.prototype.equals=function(a,b){var c=this;return Object.can(a,"reduce")&&this.length===a.length&&a.reduce(function(a,d){return a&&c.has(d,b)},!0)},H.module$exports&&(H=H.module$exports);var I=G,J=Object.prototype.toString;Array.isArray||(Array.isArray=function(a){return"[object Array]"==J.call(a)}),Array.prototype.forEach||(Array.prototype.forEach=I.forEach),Array.prototype.map||(Array.prototype.map=I.map),Array.prototype.filter||(Array.prototype.filter=I.filter),Array.prototype.every||(Array.prototype.every=I.every),Array.prototype.some||(Array.prototype.some=I.some),Array.prototype.reduce||(Array.prototype.reduce=function(a){var b=toObject(this),c=b.length>>>0;if("[object Function]"!=J.call(a))throw new TypeError(a+" is not a function");if(!c&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var d,e=0;if(2<=arguments.length)d=arguments[1];else for(;;){if(e in b){d=b[e++];break}if(++e>=c)throw new TypeError("reduce of empty array with no initial value")}for(;c>e;e++)e in b&&(d=a.call(void 0,d,b[e],e,b));return d}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(a){var b=toObject(this),c=b.length>>>0;if("[object Function]"!=J.call(a))throw new TypeError(a+" is not a function");if(!c&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var d,c=c-1;if(2<=arguments.length)d=arguments[1];else for(;;){if(c in b){d=b[c--];break}if(0>--c)throw new TypeError("reduceRight of empty array with no initial value")}do c in this&&(d=a.call(void 0,d,b[c],c,b));while(c--);return d}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=toObject(this),c=b.length>>>0;if(!c)return-1;var d=0;for(1<arguments.length&&(d=toInteger(arguments[1])),d=d>=0?d:Math.max(0,c+d);c>d;d++)if(d in b&&b[d]===a)return d;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){var b=toObject(this),c=b.length>>>0;if(!c)return-1;var d=c-1;for(1<arguments.length&&(d=Math.min(d,toInteger(arguments[1]))),d=d>=0?d:c-Math.abs(d);d>=0;d--)if(d in b&&a===b[d])return d;return-1});var K={};K.module$exports=Function,Function.noop=function(){},Function.identity=function(a){return a},Function.by=function(a,b){var b=b||Object.compare,a=a||Function.identity,c=function(c,d){return b(a(c),a(d))};return c.compare=b,c.by=a,c},K.module$exports&&(K=K.module$exports);var L={};L.module$exports=d,d.ascii={intersection:"+",through:"-",branchUp:"+",branchDown:"+",fromBelow:".",fromAbove:"'",fromBoth:"+",strafe:"|"},d.unicodeRound={intersection:"╋",through:"━",branchUp:"┻",branchDown:"┳",fromBelow:"╭",fromAbove:"╰",fromBoth:"┣",strafe:"┃"},d.unicodeSharp={intersection:"╋",through:"━",branchUp:"┻",branchDown:"┳",fromBelow:"┏",fromAbove:"┗",fromBoth:"┣",strafe:"┃"},L.module$exports&&(L=L.module$exports);var M,N={},O=N;if("undefined"!=typeof WeakMap)M=WeakMap;else{var P=function(a){return a.prototype=null,Object.freeze(a)},Q=Object.getOwnPropertyNames,R=Object.defineProperty,S={};Q(Object).forEach(function(a){S[a]=Object[a]});var T="ident:"+Math.random()+"___";if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues&&"function"==typeof ArrayBuffer&&"function"==typeof Uint8Array){var U=new ArrayBuffer(25),U=new Uint8Array(U);crypto.getRandomValues(U),T="rand:"+Array.prototype.map.call(U,function(a){return(a%36).toString(36)}).join("")+"___"}R(Object,"getOwnPropertyNames",{value:function(a){return Q(a).filter(function(a){return a!==T})}}),"getPropertyNames"in Object&&R(Object,"getPropertyNames",{value:function(a){return S.getPropertyNames(a).filter(function(a){return a!==T})}});var V=function(a){if(a!==Object(a))throw new TypeError("Not an object: "+a);var b=a[T];return b&&b.key===a?b:S.isExtensible(a)?(b={key:a,gets:[],vals:[]},R(a,T,{value:b,writable:!1,enumerable:!1,configurable:!1}),b):void 0},W=Object.freeze;R(Object,"freeze",{value:function(a){return V(a),W(a)}});var X=Object.seal;R(Object,"seal",{value:function(a){return V(a),X(a)}});var Y=Object.preventExtensions;R(Object,"preventExtensions",{value:function(a){return V(a),Y(a)}});var Z=function(){function a(d,e){var f,g=V(d);return g?(f=g.gets.indexOf(a),g=g.vals):(f=b.indexOf(d),g=c),f>=0?g[f]:e}var b=[],c=[];return Object.create(Z.prototype,{get___:{value:P(a)},has___:{value:P(function(c){var d=V(c);return 0<=(d?d.gets.indexOf(a):b.indexOf(c))})},set___:{value:P(function(d,e){var f,g=V(d);g?(f=g.gets.indexOf(a),f>=0?g.vals[f]=e:(g.gets.push(a),g.vals.push(e))):(f=b.indexOf(d),f>=0?c[f]=e:(b.push(d),c.push(e)))})},delete___:{value:P(function(d){var e=V(d);return e?(d=e.gets.indexOf(a),d>=0&&(e.gets.splice(d,1),e.vals.splice(d,1))):(d=b.indexOf(d),d>=0&&(b.splice(d,1),c.splice(d,1))),!0})}})};Z.prototype=Object.create(Object.prototype,{get:{value:function(a,b){return this.get___(a,b)},writable:!0,configurable:!0},has:{value:function(a){return this.has___(a)},writable:!0,configurable:!0},set:{value:function(a,b){this.set___(a,b)},writable:!0,configurable:!0},"delete":{value:function(a){return this.delete___(a)},writable:!0,configurable:!0}}),M=Z}O.module$exports=M,N.module$exports&&(N=N.module$exports);var $={},_=N,ab=Object.prototype.hasOwnProperty,bb=new _,cb=new _;$.module$exports=e,e.prototype.getOwnPropertyChangeDescriptor=function(a){bb.has(this)||bb.set(this,{});var b=bb.get(this);return ab.call(b,a)||(b[a]={willChangeListeners:[],changeListeners:[]}),b[a]},e.prototype.hasOwnPropertyChangeDescriptor=function(a){if(!bb.has(this))return!1;if(!a)return!0;var b=bb.get(this);return ab.call(b,a)?!0:!1},e.prototype.addOwnPropertyChangeListener=function(a,b,c){this.makeObservable&&!this.isObservable&&this.makeObservable();var d=e.getOwnPropertyChangeDescriptor(this,a),c=c?d.willChangeListeners:d.changeListeners;e.makePropertyObservable(this,a),c.push(b)},e.prototype.addBeforeOwnPropertyChangeListener=function(a,b){return e.addOwnPropertyChangeListener(this,a,b,!0)},e.prototype.removeOwnPropertyChangeListener=function(a,b,c){var d=e.getOwnPropertyChangeDescriptor(this,a),c=c?d.willChangeListeners:d.changeListeners,b=c.lastIndexOf(b);if(-1===b)throw Error("Can't remove listener: does not exist.");c.splice(b,1),0===d.changeListeners.length+d.willChangeListeners.length&&e.makePropertyUnobservable(this,a)},e.prototype.removeBeforeOwnPropertyChangeListener=function(a,b){return e.removeOwnPropertyChangeListener(this,a,b,!0)},e.prototype.dispatchOwnPropertyChange=function(a,b,c){var d=e.getOwnPropertyChangeDescriptor(this,a),d=c?d.willChangeListeners:d.changeListeners,c=(c?"Will":"")+"Change",f="handleProperty"+c,g=String(a),g=g&&g[0].toUpperCase()+g.slice(1),h="handle"+g+c;d.forEach(function(c){var d=c,c=c[h]||c[f]||c;c.call&&c.call(d,b,a,this)},this)},e.prototype.dispatchBeforeOwnPropertyChange=function(a,b){return e.dispatchOwnPropertyChange(this,a,b,!0)},e.prototype.makePropertyObservable=function(a){if(!Array.isArray(this)){cb.has(this)||(b={},cb.set(this,b));var b=cb.get(this);if(!ab.call(b,a)){var c,d=this;Object.getOwnPropertyDescriptor(d,a);do{if(c=Object.getOwnPropertyDescriptor(d,a))break;d=Object.getPrototypeOf(d)}while(d);if(c=c||{value:void 0,enumerable:!0,writable:!0,configurable:!0},!c.configurable)throw Error("Can't observe non-configurable properties");b[a]=c,(c.writable||c.set)&&Object.defineProperty(this,a,"value"in c?{get:function(){return c.value},set:function(b){return b===c.value?b:(e.dispatchBeforeOwnPropertyChange(this,a,c.value),c.value=b,e.dispatchOwnPropertyChange(this,a,b),b)},enumerable:c.enumerable,configurable:!0}:{get:function(){return c.get?c.get.apply(this,arguments):void 0},set:function(b){var d;return c.get&&(d=c.get.apply(this,arguments)),b===d?b:(e.dispatchBeforeOwnPropertyChange(this,a,d),c.set&&c.set.apply(this,arguments),c.get&&(b=c.get.apply(this,arguments)),e.dispatchOwnPropertyChange(this,a,b),b)},enumerable:c.enumerable,configurable:!0})}}},e.prototype.makePropertyUnobservable=function(a){if(!Array.isArray(this)){if(!cb.has(this))throw Error("Can't uninstall observer on property");var b=cb.get(this);if(!b[a])throw Error("Can't uninstall observer on property");var c=b[a];delete b[a],Object.defineProperty(this,a,c)}},e.getOwnPropertyChangeDescriptor=function(a,b){return a.getOwnPropertyChangeDescriptor?a.getOwnPropertyChangeDescriptor(b):e.prototype.getOwnPropertyChangeDescriptor.call(a,b)},e.hasOwnPropertyChangeDescriptor=function(a,b){return a.hasOwnPropertyChangeDescriptor?a.hasOwnPropertyChangeDescriptor(b):e.prototype.hasOwnPropertyChangeDescriptor.call(a,b)},e.addOwnPropertyChangeListener=function(a,b,c,d){return a.addOwnPropertyChangeListener?a.addOwnPropertyChangeListener(b,c,d):e.prototype.addOwnPropertyChangeListener.call(a,b,c,d)},e.removeOwnPropertyChangeListener=function(a,b,c,d){return a.removeOwnPropertyChangeListener?a.removeOwnPropertyChangeListener(b,c,d):e.prototype.removeOwnPropertyChangeListener.call(a,b,c,d)},e.dispatchOwnPropertyChange=function(a,b,c,d){return a.dispatchOwnPropertyChange?a.dispatchOwnPropertyChange(b,c,d):e.prototype.dispatchOwnPropertyChange.call(a,b,c,d)},e.addBeforeOwnPropertyChangeListener=function(a,b,c){return e.addOwnPropertyChangeListener(a,b,c,!0)},e.removeBeforeOwnPropertyChangeListener=function(a,b,c){return e.removeOwnPropertyChangeListener(a,b,c,!0)},e.dispatchBeforeOwnPropertyChange=function(a,b,c){return e.dispatchOwnPropertyChange(a,b,c,!0)},e.makePropertyObservable=function(a,b){return a.makePropertyObservable?a.makePropertyObservable(b):e.prototype.makePropertyObservable.call(a,b)},e.makePropertyUnobservable=function(a,b){return a.makePropertyUnobservable?a.makePropertyUnobservable(b):e.prototype.makePropertyUnobservable.call(a,b)},$.module$exports&&($=$.module$exports);var db={},eb=new N;db.module$exports=f,f.prototype.getRangeChangeDescriptor=function(){return eb.has(this)||eb.set(this,{isActive:!1,changeListeners:[],willChangeListeners:[]}),eb.get(this)},f.prototype.addRangeChangeListener=function(a,b){!this.isObservable&&this.makeObservable&&this.makeObservable();var c=this.getRangeChangeDescriptor();(b?c.willChangeListeners:c.changeListeners).push(a),this.dispatchesRangeChanges=!!(c.willChangeListeners.length+c.changeListeners.length)},f.prototype.removeRangeChangeListener=function(a,b){var c,d=this.getRangeChangeDescriptor();c=b?d.willChangeListeners:d.changeListeners;var e=c.lastIndexOf(a);if(-1===e)throw Error("Can't remove listener: does not exist.");c.splice(e,1),this.dispatchesRangeChanges=!!(d.willChangeListeners.length+d.changeListeners.length)},f.prototype.dispatchRangeChange=function(a,b,c,d){var e=this.getRangeChangeDescriptor();if(!e.isActive){e.isActive=!0;var f;f=d?e.willChangeListeners:e.changeListeners;try{f.forEach(function(e){e.handleEvent?e.handleEvent({phase:d?"before":"after",currentTarget:this,target:this,plus:a,minus:b,index:c}):(e=d?e.handleRangeWillChange||e:e.handleRangeChange||e,e.call&&e.call(this,a,b,c,d))},this)}finally{e.isActive=!1}}},f.prototype.addBeforeRangeChangeListener=function(a){return this.addRangeChangeListener(a,!0)},f.prototype.removeBeforeRangeChangeListener=function(a){return this.removeRangeChangeListener(a,!0)},f.prototype.dispatchBeforeRangeChange=function(a,b,c){return this.dispatchRangeChange(a,b,c,!0)},db.module$exports&&(db=db.module$exports);var fb={},gb=N;fb.module$exports=Object,Object.empty=Object.freeze(Object.create(null)),Object.isObject=function(a){return Object(a)===a},Object.getValueOf=function(a){return Object.can(a,"valueOf")&&(a=a.valueOf()),a};var hb=new gb;Object.hash=function(a){return Object.can(a,"hash")?""+a.hash():Object(a)===a?(hb.has(a)||hb.set(a,Math.random().toString(36).slice(2)),hb.get(a)):""+a};var ib=Object.prototype.hasOwnProperty;Object.owns=function(a,b){return ib.call(a,b)},Object.can=function(a,b){return null!=a&&"function"==typeof a[b]&&!ib.call(a,b)},Object.has=function(a,b){if("object"!=typeof a)throw Error("Object.has can't accept non-object: "+typeof a);if(Object.can(a,"has"))return a.has(b);if("string"==typeof b)return b in a&&a[b]!==Object.prototype[b];throw Error("Key must be a string for Object.has on plain objects")},Object.get=function(a,b,c){if("object"!=typeof a)throw Error("Object.get can't accept non-object: "+typeof a);return Object.can(a,"get")?a.get(b,c):Object.has(a,b)?a[b]:c},Object.set=function(a,b,c){Object.can(a,"set")?a.set(b,c):a[b]=c},Object.addEach=function(a,b){Object.can(b,"forEach")?b.forEach("function"==typeof b.keys?function(b,c){a[c]=b}:function(b){a[b[0]]=b[1]}):Object.keys(b).forEach(function(c){a[c]=b[c]})},Object.forEach=function(a,b,c){Object.keys(a).forEach(function(d){b.call(c,a[d],d,a)})},Object.map=function(a,b,c){return Object.keys(a).map(function(d){return b.call(c,a[d],d,a)})},Object.values=function(a){return Object.map(a,Function.identity)},Object.is=function(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b},Object.equals=function(a,b,c){if(c=c||Object.equals,a=Object.getValueOf(a),b=Object.getValueOf(b),a===b)return 0!==a||1/a===1/b;if(Object.can(a,"equals"))return a.equals(b,c);if(Object.can(b,"equals"))return b.equals(a,c);if("object"==typeof a&&"object"==typeof b){var d=Object.getPrototypeOf(a),e=Object.getPrototypeOf(b);if(d===e&&(d===Object.prototype||null===d)){for(var f in a)if(!c(a[f],b[f]))return!1;for(f in b)if(!c(a[f],b[f]))return!1;return!0}}return a!==a&&b!==b},Object.compare=function(a,b){var a=Object.getValueOf(a),b=Object.getValueOf(b),c=typeof a;return a===b||c!==typeof b?0:"number"===c?a-b:"string"===c?b>a?-1:1:Object.can(a,"compare")?a.compare(b):Object.can(b,"compare")?-b.compare(a):0},Object.clone=function(a,b,c){if(a=Object.getValueOf(a),c=c||new gb,void 0===b)b=1/0;else if(0===b)return a;if(Object.isObject(a)){if(!c.has(a))if(Object.can(a,"clone"))c.set(a,a.clone(b,c));else{var d=Object.getPrototypeOf(a);if(null!==d&&d!==Object.prototype)throw Error("Can't clone "+a);d=Object.create(d),c.set(a,d);for(var e in a)d[e]=Object.clone(a[e],b-1,c)}return c.get(a)}return a},Object.clear=function(a){if(Object.can(a,"clear"))a.clear();else for(var b=Object.keys(a),c=b.length;c;)c--,delete a[b[c]];return a},fb.module$exports&&(fb=fb.module$exports);var jb={},kb=fb;jb.module$exports=g,g.prototype.equals=function(a,b){return b=b||this.contentEquals||kb.equals,this===a?!0:a?this.length===a.length&&this.zip(a).every(function(a){return b(a[0],a[1])}):!1},g.prototype.compare=function(a,b){if(b=b||this.contentCompare||kb.compare,this===a)return 0;if(!a)return 1;var c=Math.min(this.length,a.length),d=this.zip(a).reduce(function(a,d,e){return 0===a?e>=c?a:b(d[0],d[1]):a},0);return 0===d?this.length-a.length:d},jb.module$exports&&(jb=jb.module$exports);var lb={};lb.module$exports=h;var mb=fb;if(mb.addEach(h.prototype,G.prototype),h.prototype.constructClone=function(a){var b=[];return Reducible.addEach.call(b,a),b},h.prototype.mapIterator=function(a,b){var c=h(this),d=0;if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;return new c.constructor(function(){return a.call(b,c.next(),d++,c)})},h.prototype.filterIterator=function(a,b){var c=h(this),d=0;if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;return new c.constructor(function(){for(var e;;)if(e=c.next(),a.call(b,e,d++,c))return e})},h.prototype.reduce=function(a){var b,c=h(this),d=arguments[1],e=arguments[2],f=0;if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;try{b=c.next(),d=1<arguments.length?a.call(e,d,b,f,c):b,f++}catch(g){if(isStopIteration(g)){if(1<arguments.length)return arguments[1];throw TypeError("cannot reduce a value from an empty iterator with no initial value")}throw g}try{for(;;)b=c.next(),d=a.call(e,d,b,f,c),f++}catch(i){if(isStopIteration(i))return d;throw i}},h.prototype.every=function(a){var b=h(this),c=!0;if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;return b.mapIterator.apply(b,arguments).forEach(function(a){if(!a)throw c=!1,StopIteration}),c},h.prototype.some=function(a){var b=h(this),c=!1;if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;return b.mapIterator.apply(b,arguments).forEach(function(a){if(a)throw c=!0,StopIteration}),c},h.prototype.concat=function(){return h.concat(Array.prototype.concat.apply(this,arguments))},h.prototype.dropWhile=function(a,b){var c,d=h(this),e=!1;if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;return d.forEach(function(f,g){if(!a.call(b,f,g,d))throw e=!0,c=f,StopIteration}),e?d.constructor([c]).concat(d):d.constructor([])},h.prototype.takeWhile=function(a,b){var c=h(this);if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;return c.mapIterator(function(d,e){if(!a.call(b,d,e,c))throw StopIteration;return d})},h.prototype.filterIterator=function(a,b){var c=h(this),d=0;if("[object Function]"!=mb.prototype.toString.call(a))throw new TypeError;return new c.constructor(function(){for(var e;;)if(e=c.next(),a.call(b,e,d++,c))return e})},h.prototype.zip=function(){return h.transpose(Array.prototype.concat.apply(this,arguments))},h.prototype.enumerate=function(a){return h.count(a).zip(this)},h.iterate=function(a){var b;return b=0,new h(function(){if("object"==typeof a)for(;!(b in a);){if(b>=a.length)throw StopIteration;b+=1}else if(b>=a.length)throw StopIteration;var c=a[b];return b+=1,c})},h.cycle=function(a,b){2>arguments.length&&(b=1/0);var c=function(){throw StopIteration};return new h(function(){var d;try{return c()}catch(e){if(isStopIteration(e)){if(0>=b)throw e;return b--,d=h.iterate(a),(c=d.next.bind(d))()}throw e}})},h.concat=function(a){var a=h(a),b=function(){throw StopIteration};return new h(function(){var c;try{return b()}catch(d){if(isStopIteration(d))return c=h(a.next()),(b=c.next.bind(c))();throw d}})},h.transpose=function(a){return a=h(a).map(h),new h(1>a.length?[]:function(){var b,c=a.map(function(a){try{return a.next()}catch(c){if(!isStopIteration(c))throw c;b=!0}});if(b)throw StopIteration;return c})},h.zip=function(){return h.transpose(Array.prototype.slice.call(arguments))},h.chain=function(){return h.concat(Array.prototype.slice.call(arguments))},h.range=function(a,b,c){return 3>arguments.length&&(c=1),2>arguments.length&&(b=a,a=0),a=a||0,new h(function(){if(a>=b)throw StopIteration;if(isNaN(a))throw"";var d=a;return a+=c,d})},h.count=function(a,b){return h.range(a,1/0,b||1)},h.repeat=function(a,b){return 2>arguments.length&&(b=1/0),new h.range(+b).mapIterator(function(){return a})},"undefined"==typeof isStopIteration&&(a.isStopIteration=function(a){return"[object StopIteration]"===mb.prototype.toString.call(a)}),"undefined"==typeof StopIteration){a.StopIteration={};var nb=mb.prototype.toString;mb.prototype.toString=function(){return this===a.StopIteration||this instanceof a.ReturnValue?"[object StopIteration]":nb.call(this,arguments)}}"undefined"==typeof ReturnValue&&(a.ReturnValue=function(b){return this instanceof a.ReturnValue?void(this.value=b):new a.ReturnValue(b)}),lb.module$exports&&(lb=lb.module$exports);var ob={},pb=G,qb=jb,rb=N;ob.module$exports=Array,Array.empty=[],Object.freeze&&Object.freeze(Array.empty),Array.from=function(a){var b=[];return b.addEach(a),b},Array.prototype.addEach=pb.prototype.addEach,Array.prototype.group=pb.prototype.group,Array.prototype.deleteEach=pb.prototype.deleteEach,Array.prototype.toArray=pb.prototype.toArray,Array.prototype.toObject=pb.prototype.toObject,Array.prototype.all=pb.prototype.all,Array.prototype.any=pb.prototype.any,Array.prototype.min=pb.prototype.min,Array.prototype.max=pb.prototype.max,Array.prototype.sum=pb.prototype.sum,Array.prototype.average=pb.prototype.average,Array.prototype.only=pb.prototype.only,Array.prototype.flatten=pb.prototype.flatten,Array.prototype.zip=pb.prototype.zip,Array.prototype.sorted=pb.prototype.sorted,Array.prototype.reversed=pb.prototype.reversed,Array.prototype.constructClone=function(a){var b=new this.constructor;return b.addEach(a),b},Array.prototype.has=function(a,b){return-1!==this.find(a,b)},Array.prototype.get=function(a){if(+a!==a)throw Error("Indicies must be numbers");return this[a]},Array.prototype.set=function(a,b){return this.splice(a,1,b),!0},Array.prototype.add=function(a){return this.push(a),!0},Array.prototype["delete"]=function(a,b){var c=this.find(a,b);return-1!==c?(this.splice(c,1),!0):!1},Array.prototype.find=function(a,b){for(var b=b||this.contentEquals||Object.equals,c=0;c<this.length;c++)if(c in this&&b(this[c],a))return c;return-1},Array.prototype.findLast=function(a,b){var b=b||this.contentEquals||Object.equals,c=this.length;do if(c--,c in this&&b(this[c],a))return c;while(c>0);return-1},Array.prototype.swap=function(a,b,c){var d=Array.prototype.slice.call(arguments,0,2);return c&&d.push.apply(d,c),this.splice.apply(this,d)},Array.prototype.one=function(){if(0===this.length)throw Error("Can't get one element from empty array.");for(var a in this)if(Object.owns(this,a))return this[a]},Array.prototype.clear=function(){return this.length=0,this},Array.prototype.compare=function(a,b){var c,d,e,f,b=b||Object.compare;if(this===a)return 0;if(!a||!Array.isArray(a))return qb.prototype.compare.call(this,a,b);for(d=Math.min(this.length,a.length),c=0;d>c;c++)if(c in this){if(!(c in a))return-1;if(e=this[c],f=a[c],e=b(e,f))return e}else if(c in a)return 1;return this.length-a.length},Array.prototype.equals=function(a){var b,c,d=d||Object.equals,e=0,f=this.length;if(this===a)return!0;if(!a||!Array.isArray(a))return qb.prototype.equals.call(this,a);if(f!==a.length)return!1;for(;f>e;++e)if(e in this){if(b=this[e],c=a[e],b!==c&&b&&c&&!d(b,c))return!1}else if(e in a)return!1;return!0},Array.prototype.clone=function(a,b){if(void 0===a)a=1/0;else if(0===a)return this;var c,b=b||new rb,d=[];for(c in this)Object.owns(this,c)&&(d[c]=Object.clone(this[c],a-1,b));return d},Array.prototype.iterate=function(a,b){return new i(this,a,b)},Array.prototype.Iterator=i,i.prototype.next=function(){if(this.start===(null==this.end?this.array.length:this.end))throw StopIteration;return this.array[this.start++]
},ob.module$exports&&(ob=ob.module$exports);var sb={};sb.module$exports=j;var tb=jb,ub=$;Object.addEach(j.prototype,G.prototype),Object.addEach(j.prototype,tb.prototype),Object.addEach(j.prototype,ub.prototype),j.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.content)},j.prototype.find=function(a,b){for(var b=b||this.contentEquals,c=this.head,d=c.next;d!==c;){if(b(d.value,a))return d;d=d.next}},j.prototype.findLast=function(a,b){for(var b=b||this.contentEquals,c=this.head,d=c.prev;d!==c;){if(b(d.value,a))return d;d=d.prev}},j.prototype.has=function(a,b){return!!this.find(a,b)},j.prototype.get=function(a,b){var c=this.find(a,b);return c?c.value:this.content()},j.prototype["delete"]=function(a,b){var c=this.findLast(a,b);return c?(c["delete"](),this.length--,!0):!1},j.prototype.clear=function(){this.head.next=this.head.prev=this.head,this.length=0},j.prototype.add=function(a){return this.head.addBefore(new this.Node(a)),this.length++,!0},j.prototype.push=function(){for(var a=this.head,b=0;b<arguments.length;b++){var c=new this.Node(arguments[b]);a.addBefore(c),this.length++}},j.prototype.unshift=function(){for(var a=this.head,b=0;b<arguments.length;b++){var c=new this.Node(arguments[b]);a.addAfter(c),this.length++,a=c}},j.prototype.pop=function(){var a,b=this.head;return b.prev!==b&&(a=b.prev.value,b.prev["delete"](),this.length--),a},j.prototype.shift=function(){var a,b=this.head;return b.prev!==b&&(a=b.next.value,b.next["delete"](),this.length--),a},j.prototype.scan=function(a,b){var c=this.head;if("number"==typeof a){var d=a;if(d>=0)for(a=c.next;d&&(d--,a=a.next,!(a==c)););else for(a=c;0>d&&(d++,a=a.prev,!(a==c)););return a}return a||b},j.prototype.slice=function(a,b){for(var c=[],d=this.head,a=this.scan(a,d.next),b=this.scan(b,d);a!==b&&a!==d;)c.push(a.value),a=a.next;return c},j.prototype.splice=function(a,b){return this.swap(a,b,Array.prototype.slice.call(arguments,2))},j.prototype.swap=function(a,b,c){var d=[],e=a,a=this.scan(a,this.head);for(void 0===b&&(b=1/0);b--&&b>=0&&a!==this.head;)d.push(a.value),a["delete"](),a=a.next,this.length--;if(c){for(null===e&&a===this.head&&(a=this.head.next),b=0;b<c.length;b++)e=new this.Node(c[b]),a.addBefore(e);this.length+=c.length}return d},j.prototype.reverse=function(){var a=this.head;do{var b=a.next;a.next=a.prev,a.prev=b,a=a.next}while(a!==this.head);return this},j.prototype.reduce=function(a,b,c){for(var d=this.head,e=d.next;e!==d;)b=a.call(c,b,e.value,e,this),e=e.next;return b},j.prototype.reduceRight=function(a,b,c){for(var d=this.head,e=d.prev;e!==d;)b=a.call(c,b,e.value,e,this),e=e.prev;return b},j.prototype.one=function(){if(this.head===this.head.next)throw Error("Can't get one value from empty list");return this.head.next.value},j.prototype.iterate=function(){return new k(this.head)},k.prototype.next=function(){if(this.at===this.head)throw StopIteration;var a=this.at.value;return this.at=this.at.next,a},j.prototype.Node=l,l.prototype["delete"]=function(){this.prev.next=this.next,this.next.prev=this.prev},l.prototype.addBefore=function(a){var b=this.prev;this.prev=a,a.prev=b,b.next=a,a.next=this},l.prototype.addAfter=function(a){var b=this.next;this.next=a,a.next=b,b.prev=a,a.prev=this},sb.module$exports&&(sb=sb.module$exports);var vb={},wb=sb;vb.module$exports=m,m.prototype.getMapChangeDescriptor=function(){return this.mapChangeDescriptor||(this.mapChangeDescriptor={willChangeListeners:new wb,changeListeners:new wb}),this.mapChangeDescriptor},m.prototype.addMapChangeListener=function(a,b){this.makeObservable&&!this.dispatchMapChanges&&this.makeObservable();var c=this.getMapChangeDescriptor();(b?c.willChangeListeners:c.changeListeners).push(a),this.dispatchesMapChanges=!0},m.prototype.removeMapChangeListener=function(a,b){var c=this.getMapChangeDescriptor(),c=(b?c.willChangeListeners:c.changeListeners).findLast(a);if(!c)throw Error("Can't remove listener: does not exist.");c["delete"]()},m.prototype.dispatchMapChange=function(a,b,c){var d=this.getMapChangeDescriptor(),e="handleMap"+((c?"Will":"")+"Change");(c?d.willChangeListeners:d.changeListeners).forEach(function(c){var d=c,c=c[e]||c;c.call&&c.call(d,b,a,this)},this)},m.prototype.addBeforeMapChangeListener=function(a){return this.addMapChangeListener(a,!0)},m.prototype.removeBeforeMapChangeListener=function(a){return this.removeMapChangeListener(a,!0)},m.prototype.dispatchBeforeMapChange=function(a,b){return this.dispatchMapChange(a,b,!0)},vb.module$exports&&(vb=vb.module$exports);var xb={},yb=fb,zb=vb,Ab=$;xb.module$exports=n,yb.addEach(n.prototype,zb.prototype),yb.addEach(n.prototype,Ab.prototype),n.prototype.addEach=function(a){a&&yb(a)===a&&("function"==typeof a.forEach?"function"==typeof a.keys?a.forEach(function(a,b){this.set(b,a)},this):a.forEach(function(a){this.set(a[0],a[1])},this):yb.keys(a).forEach(function(b){this.set(b,a[b])},this))},n.prototype.get=function(a,b){var c=this.store.get(new this.Item(a));return c?c.value:1<arguments.length?b:this.content(a)},n.prototype.set=function(a,b){var c=new this.Item(a,b),d=this.store.get(c),e=!1;return d?(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(a,d.value),d.value=b):(this.dispatchesMapChanges&&this.dispatchBeforeMapChange(a,void 0),this.store.add(c)&&(this.length++,e=!0)),this.dispatchesMapChanges&&this.dispatchMapChange(a,b),e},n.prototype.add=function(a,b){return this.set(b,a)},n.prototype.has=function(a){return this.store.has(new this.Item(a))},n.prototype["delete"]=function(a){var b=new this.Item(a);if(this.store.has(b)){var c=this.store.get(b).value;return this.dispatchesMapChanges&&this.dispatchBeforeMapChange(a,c),this.store["delete"](b),this.length--,this.dispatchesMapChanges&&this.dispatchMapChange(a,void 0),!0}return!1},n.prototype.clear=function(){this.store.clear(),this.length=0},n.prototype.reduce=function(a,b,c){return this.store.reduce(function(b,d){return a.call(c,b,d.value,d.key,this)},b,this)},n.prototype.reduceRight=function(a,b,c){return this.store.reduceRight(function(b,d){return a.call(c,b,d.value,d.key,this)},b,this)},n.prototype.keys=function(){return this.map(function(a,b){return b})},n.prototype.values=function(){return this.map(Function.identity)},n.prototype.items=function(){return this.map(function(a,b){return[b,a]})},n.prototype.equals=function(a,b){return b=b||yb.equals,this===a?!0:yb.can(a,"every")?a.length===this.length&&a.every(function(a,c){return b(this.get(c),a)},this):yb.keys(a).length===this.length&&yb.keys(a).every(function(c){return b(this.get(c),a[c])},this)},n.prototype.Item=function(a,b){this.key=a,this.value=b},xb.module$exports&&(xb=xb.module$exports);var Bb={},Cb=G,Db=xb,Eb=$;Bb.module$exports=o,Object.addEach(o.prototype,Cb.prototype),Object.addEach(o.prototype,Db.prototype),Object.addEach(o.prototype,Eb.prototype),o.prototype.constructClone=function(a){return new this.constructor(a,this.mangle,this.content)},o.prototype.assertString=function(a){if("string"!=typeof a)throw new TypeError("key must be a string.")},o.prototype.get=function(a,b){this.assertString(a);var c="~"+a;return c in this.store?this.store[c]:1<arguments.length?b:this.content()},o.prototype.set=function(a,b){this.assertString(a);var c="~"+a;return c in this.store?(this.store[c]=b,!1):(this.length++,this.store[c]=b,!0)},o.prototype.has=function(a){return this.assertString(a),"~"+a in this.store},o.prototype["delete"]=function(a){return this.assertString(a),"~"+a in this.store?(delete this.store["~"+a],this.length--,!0):!1},o.prototype.clear=function(){for(var a in this.store)delete this.store[a];this.length=0},o.prototype.reduce=function(a,b,c){for(var d in this.store)b=a.call(c,b,this.store[d],d.slice(1),this);return b},o.prototype.one=function(){for(var a in this.store)return this.store[a];throw Error("Can't get one value from empty dictionary.")},Bb.module$exports&&(Bb=Bb.module$exports);var Fb={},Gb=Bb,Hb=sb,Ib=G,Jb=H,Kb=L,Lb=$;Fb.module$exports=p,Object.addEach(p.prototype,Ib.prototype),Object.addEach(p.prototype,Jb.prototype),Object.addEach(p.prototype,Lb.prototype),p.prototype.Buckets=Gb,p.prototype.Bucket=Hb,p.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentHash,this.content)},p.prototype.has=function(a){var b=this.contentHash(a);return this.buckets.get(b).has(a)},p.prototype.get=function(a){var b=this.contentHash(a),c=this.buckets;return c.has(b)?c.get(b).get(a):this.content(a)},p.prototype["delete"]=function(a){var b=this.contentHash(a),c=this.buckets;if(c.has(b)){var d=c.get(b);if(d["delete"](a))return this.length--,0===d.length&&c["delete"](b),!0}return!1},p.prototype.clear=function(){this.buckets.clear(),this.length=0},p.prototype.add=function(a){var b=this.contentHash(a),c=this.buckets;return c.has(b)||c.set(b,new this.Bucket(null,this.contentEquals)),c.get(b).has(a)?!1:(c.get(b).add(a),this.length++,!0)},p.prototype.reduce=function(a,b,c){return this.buckets.reduce(function(b,d){return d.reduce(function(b,d){return a.call(c,b,d,d,this)},b,this)},b,this)},p.prototype.one=function(){if(0===this.length)throw Error("Can't get one value from empty set.");return this.buckets.one().one()},p.prototype.iterate=function(){return this.buckets.values().flatten().iterate()},p.prototype.log=function(a,b,c,d){a=a||Kb.unicodeSharp,b=b||this.logNode,c||(c=console.log,d=console);var c=c.bind(d),e=this.buckets,f=e.keys();f.forEach(function(g,h){var i,j;h===f.length-1?(i=a.fromAbove,j=" "):(i=0===h?a.branchDown:a.fromBoth,j=a.strafe);var k=e.get(g);c.call(d,i+a.through+a.branchDown+" "+g),k.forEach(function(e,f){var g,h;f===k.head.prev?(g=a.fromAbove,h=" "):(g=a.fromBoth,h=a.strafe);var i;b(f,function(b){i?c.call(d,j+" "+h+" "+b):(c.call(d,j+" "+g+a.through+a.through+b),i=!0)},function(b){c.call(d,j+" "+a.strafe+" "+b)})})})},p.prototype.logNode=function(a,b){var c=a.value;Object(c)===c?JSON.stringify(c,null,4).split("\n").forEach(function(a){b(" "+a)}):b(" "+c)},Fb.module$exports&&(Fb=Fb.module$exports);var Mb={},Nb=Fb,Ob=G,Pb=xb,Qb=$;Mb.module$exports=q,Object.addEach(q.prototype,Ob.prototype),Object.addEach(q.prototype,Pb.prototype),Object.addEach(q.prototype,Qb.prototype),q.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentHash,this.content)},q.prototype.log=function(a,b){b=b||this.stringify,this.store.log(a,b)},q.prototype.stringify=function(a,b){return b+JSON.stringify(a.key)+": "+JSON.stringify(a.value)},Mb.module$exports&&(Mb=Mb.module$exports);var Rb={},Sb=sb,Tb=Fb,Ub=G,Vb=H,Wb=$,Xb=db;Rb.module$exports=r,Object.addEach(r.prototype,Ub.prototype),Object.addEach(r.prototype,Vb.prototype),Object.addEach(r.prototype,Wb.prototype),Object.addEach(r.prototype,Xb.prototype),r.prototype.Order=Sb,r.prototype.Store=Tb,r.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentHash,this.content)},r.prototype.has=function(a){return a=new this.order.Node(a),this.store.has(a)},r.prototype.get=function(a){var b=new this.order.Node(a);return(b=this.store.get(b))?b.value:this.content(a)},r.prototype.add=function(a){var b=new this.order.Node(a);return this.store.has(b)?!1:(this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([a],[],0),this.order.add(a),b=this.order.head.prev,this.store.add(b),this.length++,this.dispatchesRangeChanges&&this.dispatchRangeChange([a],[],0),!0)},r.prototype["delete"]=function(a){var b=new this.order.Node(a);return this.store.has(b)?(this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([],[a],0),b=this.store.get(b),this.store["delete"](b),b["delete"](),this.length--,this.dispatchesRangeChanges&&this.dispatchRangeChange([],[a],0),!0):!1},r.prototype.one=function(){if(0===this.length)throw Error("Can't get one value from empty set.");return this.store.one().value},r.prototype.clear=function(){this.store.clear(),this.order.clear(),this.length=0},r.prototype.reduce=function(a,b,c){return this.order.reduce(function(b,d){return a.call(c,b,d,d,this)},b,this)},r.prototype.reduceRight=function(a,b,c){return this.order.reduceRight(function(b,d){return a.call(c,b,d,d,this)},b,this)},r.prototype.iterate=function(){return this.order.iterate()},r.prototype.log=function(){var a=this.store;return a.log.apply(a,arguments)},Rb.module$exports&&(Rb=Rb.module$exports);var Yb={},Zb=Rb,$b=G,_b=H,ac=$;Yb.module$exports=s,Object.addEach(s.prototype,$b.prototype),Object.addEach(s.prototype,_b.prototype),Object.addEach(s.prototype,ac.prototype),s.prototype.constructClone=function(a){return new this.constructor(a,this.maxLength,this.contentEquals,this.contentHash,this.content)},s.prototype.has=function(a){return this.store.has(a)},s.prototype.get=function(a){return a=this.store.get(a),void 0!==a?(this.store["delete"](a),this.store.add(a)):a=this.content(),a},s.prototype.add=function(a){return this.store.has(a)&&(this.store["delete"](a),this.length--),this.store.add(a),this.length++,this.store.length>this.maxLength?(this.store["delete"](this.store.order.head.next.value),this.length--,!1):!0},s.prototype["delete"]=function(a){return this.store["delete"](a)?(this.length--,!0):!1},s.prototype.one=function(){if(0===this.length)throw Error("Can't get one value from empty collection.");return this.store.one()},s.prototype.clear=function(){this.store.clear(),this.length=0},s.prototype.reduce=function(a,b,c){return this.store.reduce(function(b,d){return a.call(c,b,d,d,this)},b,this)},s.prototype.reduceRight=function(a,b,c){return this.store.reduceRight(function(a,b){return callback.call(c,a,b,b,this)},basis,this)},s.prototype.iterate=function(){return this.store.iterate()},Yb.module$exports&&(Yb=Yb.module$exports);var bc={},cc=Yb,dc=G,ec=xb,fc=$;bc.module$exports=t,Object.addEach(t.prototype,dc.prototype),Object.addEach(t.prototype,ec.prototype),Object.addEach(t.prototype,fc.prototype),t.prototype.constructClone=function(a){return new this.constructor(a,this.maxLength,this.contentEquals,this.contentHash,this.content)},t.prototype.log=function(a,b){b=b||this.stringify,this.store.log(a,b)},t.prototype.stringify=function(a,b){return b+JSON.stringify(a.key)+": "+JSON.stringify(a.value)},bc.module$exports&&(bc=bc.module$exports);var gc={},hc=Rb,ic=G,jc=xb,kc=$;gc.module$exports=u,Object.addEach(u.prototype,ic.prototype),Object.addEach(u.prototype,jc.prototype),Object.addEach(u.prototype,kc.prototype),u.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentHash,this.content)},u.prototype.log=function(a,b){b=b||this.stringify,this.store.log(a,b)},u.prototype.stringify=function(a,b){return b+JSON.stringify(a.key)+": "+JSON.stringify(a.value)},gc.module$exports&&(gc=gc.module$exports);var lc={},mc=gc;lc.module$exports=v,v.prototype=Object.create(mc.prototype),v.prototype.constructor=v,v.prototype.constructClone=function(a){return new this.constructor(a,this.bucket,this.contentEquals,this.contentHash)},v.prototype.set=function(a,b){var c=this.get(a);c.swap(0,c.length,b)},v.prototype.bucket=function(){return[]},lc.module$exports&&(lc=lc.module$exports);var nc={};nc.module$exports=w;var oc=$,pc=db;Object.addEach(w.prototype,G.prototype),Object.addEach(w.prototype,oc.prototype),Object.addEach(w.prototype,pc.prototype),w.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentCompare,this.content)},w.prototype.has=function(a){var b=x(this.array,a,this.contentCompare);return b>=0&&this.contentEquals(this.array[b],a)},w.prototype.get=function(a){var b=y(this.array,a,this.contentCompare,this.contentEquals);return-1!==b?this.array[b]:this.content(a)},w.prototype.add=function(a){var b;b=this.array;var c=this.contentCompare,d=x(b,a,c);if(0>d)b=-d-1;else{for(var e=b.length-1;e>d&&0===c(a,b[d+1]);)d++;b=d}return this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([a],[],b),this.array.splice(b,0,a),this.length++,this.dispatchesRangeChanges&&this.dispatchRangeChange([a],[],b),!0},w.prototype["delete"]=function(a){var b=y(this.array,a,this.contentCompare,this.contentEquals);return-1!==b?(this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([],[a],b),this.array.splice(b,1),this.length--,this.dispatchesRangeChanges&&this.dispatchRangeChange([],[a],b),!0):!1},w.prototype.indexOf=function(a){return y(this.array,a,this.contentCompare,this.contentEquals)},w.prototype.lastIndexOf=function(a){return z(this.array,a,this.contentCompare,this.contentEquals)},w.prototype.find=function(a){return y(this.array,a,this.contentCompare,this.contentEquals)},w.prototype.findLast=function(a){return z(this.array,a,this.contentCompare,this.contentEquals)},w.prototype.push=function(){this.addEach(arguments)},w.prototype.unshift=function(){this.addEach(arguments)},w.prototype.pop=function(){return this.array.pop()},w.prototype.shift=function(){return this.array.shift()},w.prototype.slice=function(){return this.array.slice.apply(this.array,arguments)},w.prototype.splice=function(a,b){return this.swap(a,b,Array.prototype.slice.call(arguments,2))},w.prototype.swap=function(a,b,c){if(void 0===a&&void 0===b)return[];a=a||0,0>a&&(a+=this.length),void 0===b&&(b=1/0);var d=this.slice(a,a+b);return this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange(c,d,a),this.array.splice(a,b),this.addEach(c),this.dispatchesRangeChanges&&this.dispatchRangeChange(c,d,a),d},w.prototype.reduce=function(a,b,c){return this.array.reduce(function(b,d,e){return a.call(c,b,d,e,this)},b,this)},w.prototype.reduceRight=function(a,b,c){return this.array.reduceRight(function(a,b,d){return callback.call(c,a,b,d,this)},basis,this)},w.prototype.min=function(){return this.length?this.array[0]:void 0},w.prototype.max=function(){return this.length?this.array[this.length-1]:void 0},w.prototype.one=function(){return this.array.one()},w.prototype.clear=function(){var a;this.dispatchesRangeChanges&&(a=this.array.slice(),this.dispatchBeforeRangeChange([],a,0)),this.length=0,this.array.clear(),this.dispatchesRangeChanges&&this.dispatchRangeChange([],a,0)},w.prototype.equals=function(a,b){return this.array.equals(a,b)},w.prototype.compare=function(a,b){return this.array.compare(a,b)},w.prototype.iterate=function(a,b){return new this.Iterator(this.array,a,b)},w.prototype.Iterator=Array.prototype.Iterator,nc.module$exports&&(nc=nc.module$exports);var qc={};qc.module$exports=A;var rc=nc,sc=H,tc=$;A.prototype=Object.create(rc.prototype),A.prototype.constructor=A,Object.addEach(A.prototype,sc.prototype),Object.addEach(A.prototype,tc.prototype),A.prototype.add=function(a){return this.has(a)?!1:(rc.prototype.add.call(this,a),!0)},A.prototype.reduce=function(a,b,c){var d=this;return this.array.reduce(function(b,e,f){return a.call(c,b,e,e,d,f)},b)},A.prototype.reduceRight=function(a,b,c){var d=this;return this.array.reduceRight(function(b,e,f){return a.call(c,b,e,e,d,f)},b)},qc.module$exports&&(qc=qc.module$exports);var uc={},vc=qc,wc=G,xc=xb,yc=$;uc.module$exports=B,Object.addEach(B.prototype,wc.prototype),Object.addEach(B.prototype,xc.prototype),Object.addEach(B.prototype,yc.prototype),B.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentCompare,this.content)},uc.module$exports&&(uc=uc.module$exports);var zc={};zc.module$exports=C;var Ac=H,Bc=$,Cc=db,Dc=L;Object.addEach(C.prototype,G.prototype),Object.addEach(C.prototype,Ac.prototype),Object.addEach(C.prototype,Bc.prototype),Object.addEach(C.prototype,Cc.prototype),C.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentCompare,this.content)},C.prototype.has=function(a){return this.root?(this.splay(a),this.contentEquals(a,this.root.value)):!1},C.prototype.get=function(a){return this.root&&(this.splay(a),this.contentEquals(a,this.root.value))?this.root.value:this.content(a)},C.prototype.add=function(a){var b=new this.Node(a);return this.root?(this.splay(a),this.contentEquals(a,this.root.value)?!1:(this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([a],[],this.root.index),0>this.contentCompare(a,this.root.value)?(b.right=this.root,b.left=this.root.left,this.root.left=null):(b.left=this.root,b.right=this.root.right,this.root.right=null),this.root.touch(),b.touch(),this.root=b,this.length++,this.dispatchesRangeChanges&&this.dispatchRangeChange([a],[],this.root.index),!0)):(this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([a],[],0),this.root=b,this.length++,this.dispatchesRangeChanges&&this.dispatchRangeChange([a],[],0),!0)},C.prototype["delete"]=function(a){if(this.root&&(this.splay(a),this.contentEquals(a,this.root.value))){var b=this.root.index;if(this.dispatchesRangeChanges&&this.dispatchBeforeRangeChange([],[a],b),this.root.left){var c=this.root.right;this.root=this.root.left,this.splay(a),this.root.right=c}else this.root=this.root.right;return this.length--,this.root&&this.root.touch(),this.dispatchesRangeChanges&&this.dispatchRangeChange([],[a],b),!0}return!1},C.prototype.indexOf=function(a){return this.root&&(this.splay(a),this.contentEquals(a,this.root.value))?this.root.index:-1},C.prototype.find=function(a){return this.root&&(this.splay(a),this.contentEquals(a,this.root.value))?this.root:void 0},C.prototype.findGreatest=function(a){if(this.root){for(a=a||this.root;a.right;)a=a.right;return a}},C.prototype.findLeast=function(a){if(this.root){for(a=a||this.root;a.left;)a=a.left;return a}},C.prototype.findGreatestLessThanOrEqual=function(a){return this.root?(this.splay(a),this.root):void 0},C.prototype.findGreatestLessThan=function(a){return this.root?(this.splay(a),this.root.getPrevious()):void 0},C.prototype.findLeastGreaterThanOrEqual=function(a){return this.root?(this.splay(a),0===this.contentCompare(a,this.root.value)?this.root:this.root.getNext()):void 0},C.prototype.findLeastGreaterThan=function(a){return this.root?(this.splay(a),this.contentCompare(a,this.root.value),this.root.getNext()):void 0},C.prototype.pop=function(){if(this.root){var a=this.findGreatest();return this["delete"](a.value),a.value}},C.prototype.shift=function(){if(this.root){var a=this.findLeast();return this["delete"](a.value),a.value}},C.prototype.push=function(){this.addEach(arguments)},C.prototype.unshift=function(){this.addEach(arguments)},C.prototype.slice=function(a,b){a=a||0,b=b||this.length,0>a&&(a+=this.length),0>b&&(b+=this.length);var c=[];if(this.root)for(this.splayIndex(a);this.root.index<b&&(c.push(this.root.value),this.root.right);)this.splay(this.root.getNext().value);return c},C.prototype.splice=function(a,b){return this.swap(a,b,Array.prototype.slice.call(arguments,2))},C.prototype.swap=function(a,b,c){if(void 0===a&&void 0===b)return[];a=a||0,0>a&&(a+=this.length),void 0===b&&(b=1/0);var d=[];if(this.root)for(this.splayIndex(a),a=0;b>a;a++){d.push(this.root.value);var e=this.root.getNext();if(this["delete"](this.root.value),!e)break;this.splay(e.value)}return this.addEach(c),d},C.prototype.splay=function(a){var b,c,d,e,f,g;if(this.root){for(b=c=d=new this.Node,g=new this.Node,f=this.root;;)if(e=this.contentCompare(a,f.value),0>e){if(!f.left)break;if(0>this.contentCompare(a,f.left.value)&&(e=f.left,f.left=e.right,f.touch(),e.right=f,e.touch(),f=e,!f.left))break;e=new D,e.right=f,e.left=g.left,g.left=e,d.left=f,d.touch(),d=f,f=f.left}else{if(!(e>0))break;if(!f.right)break;if(0<this.contentCompare(a,f.right.value)&&(e=f.right,f.right=e.left,f.touch(),e.left=f,e.touch(),f=e,!f.right))break;e=new D,e.left=f,e.right=g.right,g.right=e,c.right=f,c.touch(),c=f,f=f.right}for(c.right=f.left,c.touch(),d.left=f.right,d.touch(),f.left=b.right,f.right=b.left;g.left;)g.left.right.touch(),g.left=g.left.left;for(;g.right;)g.right.left.touch(),g.right=g.right.right;f.touch(),this.root=f}},C.prototype.splayIndex=function(a){if(this.root){for(var b=this.root,c=this.root.index;c!==a;)if(c>a&&b.left)b=b.left,c-=1+(b.right?b.right.length:0);else{if(!(a>c&&b.right))break;b=b.right,c+=1+(b.left?b.left.length:0)}return this.splay(b.value),this.root.index===a}return!1},C.prototype.reduce=function(a,b,c){return this.root&&(b=this.root.reduce(a,b,c,this)),b},C.prototype.reduceRight=function(a,b,c){return this.root&&(b=this.root.reduceRight(a,b,c,this)),b},C.prototype.min=function(a){return(a=this.findLeast(a))?a.value:void 0},C.prototype.max=function(a){return(a=this.findGreatest(a))?a.value:void 0},C.prototype.one=function(){if(!this.root)throw Error("Can't get one value from empty set");return this.root.value},C.prototype.clear=function(){var a;this.dispatchesRangeChanges&&(a=this.toArray(),this.dispatchBeforeRangeChange([],a,0)),this.root=null,this.length=0,this.dispatchesRangeChanges&&this.dispatchRangeChange([],a,0)},C.prototype.iterate=function(a,b){return new this.Iterator(this,a,b)},C.prototype.Iterator=E,C.prototype.summary=function(){return this.root?this.root.summary():"()"},C.prototype.log=function(a,b,c,d){a=a||Dc.unicodeRound,b=b||this.logNode,c||(c=console.log,d=console),c=c.bind(d),this.root&&this.root.log(a,b,c,c)},C.prototype.logNode=function(a,b){b(" "+a.value)},C.logCharsets=Dc,C.prototype.Node=D,D.prototype.reduce=function(a,b,c,d,e){return e=e||0,this.left&&(b=this.left.reduce(a,b,c,d,e+1)),b=a.call(c,b,this.value,this.value,d,this,e),this.right&&(b=this.right.reduce(a,b,c,d,e+1)),b},D.prototype.reduceRight=function(a,b,c,d,e){return e=e||0,this.right&&(b=this.right.reduce(a,b,c,d,e+1)),b=a.call(c,b,this.value,this.value,d,this,e),this.left&&(b=this.left.reduce(a,b,c,d,e+1)),b},D.prototype.touch=function(){this.length=1+(this.left?this.left.length:0)+(this.right?this.right.length:0),this.index=this.left?this.left.length:0},D.prototype.checkIntegrity=function(){var a;if(a=1+(this.left?this.left.checkIntegrity():0),a+=this.right?this.right.checkIntegrity():0,this.length!==a)throw Error("Integrity check failed: "+this.summary());return a},D.prototype.getNext=function(){var a=this;if(a.right){for(a=a.right;a.left;)a=a.left;return a}},D.prototype.getPrevious=function(){var a=this;if(a.left){for(a=a.left;a.right;)a=a.right;return a}},D.prototype.summary=function(){var a=this.value||"-",a=a+(" <"+this.length);return this.left||this.right?"("+a+" "+(this.left?this.left.summary():"()")+", "+(this.right?this.right.summary():"()")+")":"("+a+")"},D.prototype.log=function(a,b,c,d){var e,f=this;e=this.left&&this.right?a.intersection:this.left?a.branchUp:this.right?a.branchDown:a.through;var g;this.left&&this.left.log(a,b,function(b){g?d(a.strafe+" "+b):(g=!0,d(a.fromBelow+a.through+b))},function(a){d(" "+a)});var h;b(this,function(b){h?c((f.right?a.strafe:" ")+b):(h=!0,c(e+b))},function(b){d((f.left?a.strafe:" ")+b)});var i;this.right&&this.right.log(a,b,function(b){i?c(" "+b):(i=!0,c(a.fromAbove+a.through+b))},function(b){c(a.strafe+" "+b)})},E.prototype.next=function(){var a;if(a=this.prev?this.set.findLeastGreaterThan(this.prev.value):this.set.findLeast(),!a)throw StopIteration;if(void 0!==this.end&&0<=this.set.contentCompare(a.value,this.end))throw StopIteration;return this.prev=a,a.value},zc.module$exports&&(zc=zc.module$exports);var Ec={},Fc=zc,Gc=G,Hc=xb,Ic=$;Ec.module$exports=F,Object.addEach(F.prototype,Gc.prototype),Object.addEach(F.prototype,Hc.prototype),Object.addEach(F.prototype,Ic.prototype),F.prototype.constructClone=function(a){return new this.constructor(a,this.contentEquals,this.contentCompare,this.content)},F.prototype.log=function(a,b){b=b||this.stringify,this.store.log(a,b)},F.prototype.report=function(a,b,c,d){d=d||this.stringify,this.store.report(a,b,c,d)},F.prototype.stringify=function(a,b,c,d){a.call(b,d+" "+c.value.key+": "+c.value.value)},Ec.module$exports&&(Ec=Ec.module$exports),a.List=sb,a.Set=Rb,a.Map=gc,a.MultiMap=lc,a.WeakMap=N,a.SortedSet=zc,a.SortedMap=Ec,a.LruSet=Yb,a.LruMap=bc,a.SortedArray=nc,a.SortedArraySet=qc,a.SortedArrayMap=uc,a.FastSet=Fb,a.FastMap=Mb,a.Dict=Bb,a.Iterator=lb}(this),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin(2*(b*e-f)*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=.3*e*1.5),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return 1>b?-.5*h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}),!function(a){function b(a){var b=a.length,d=c.type(a);return"function"===d||c.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===d||0===b||"number"==typeof b&&b>0&&b-1 in a}if(!a.jQuery){var c=function(a,b){return new c.fn.init(a,b)};c.isWindow=function(a){return null!=a&&a==a.window},c.type=function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?e[g.call(a)]||"object":typeof a},c.isArray=Array.isArray||function(a){return"array"===c.type(a)},c.isPlainObject=function(a){var b;if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!f.call(a,"constructor")&&!f.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}for(b in a);return void 0===b||f.call(a,b)},c.each=function(a,c,d){var e,f=0,g=a.length,h=b(a);if(d){if(h)for(;g>f&&(e=c.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=c.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=c.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=c.call(a[f],f,a[f]),e===!1)break;
return a},c.data=function(a,b,e){if(void 0===e){var f=a[c.expando],g=f&&d[f];if(void 0===b)return g;if(g&&b in g)return g[b]}else if(void 0!==b){var f=a[c.expando]||(a[c.expando]=++c.uuid);return d[f]=d[f]||{},d[f][b]=e,e}},c.removeData=function(a,b){var e=a[c.expando],f=e&&d[e];f&&c.each(b,function(a,b){delete f[b]})},c.extend=function(){var a,b,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[i]||{},i++),"object"!=typeof h&&"function"!==c.type(h)&&(h={}),i===j&&(h=this,i--);j>i;i++)if(null!=(f=arguments[i]))for(e in f)a=h[e],d=f[e],h!==d&&(k&&d&&(c.isPlainObject(d)||(b=c.isArray(d)))?(b?(b=!1,g=a&&c.isArray(a)?a:[]):g=a&&c.isPlainObject(a)?a:{},h[e]=c.extend(k,g,d)):void 0!==d&&(h[e]=d));return h},c.queue=function(a,d,e){function f(a,c){var d=c||[];return null!=a&&(b(Object(a))?!function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];return a.length=e,a}(d,"string"==typeof a?[a]:a):[].push.call(d,a)),d}if(a){d=(d||"fx")+"queue";var g=c.data(a,d);return e?(!g||c.isArray(e)?g=c.data(a,d,f(e)):g.push(e),g):g||[]}},c.dequeue=function(a,b){c.each(a.nodeType?[a]:a,function(a,d){b=b||"fx";var e=c.queue(d,b),f=e.shift();"inprogress"===f&&(f=e.shift()),f&&("fx"===b&&e.unshift("inprogress"),f.call(d,function(){c.dequeue(d,b)}))})},c.fn=c.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw new Error("Not a DOM node.")},offset:function(){var b=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:b.top+(a.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:b.left+(a.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function a(){for(var a=this.offsetParent||document;a&&"html"===!a.nodeType.toLowerCase&&"static"===a.style.position;)a=a.offsetParent;return a||document}var b=this[0],a=a.apply(b),d=this.offset(),e=/^(?:body|html)$/i.test(a.nodeName)?{top:0,left:0}:c(a).offset();return d.top-=parseFloat(b.style.marginTop)||0,d.left-=parseFloat(b.style.marginLeft)||0,a.style&&(e.top+=parseFloat(a.style.borderTopWidth)||0,e.left+=parseFloat(a.style.borderLeftWidth)||0),{top:d.top-e.top,left:d.left-e.left}}};var d={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var e={},f=e.hasOwnProperty,g=e.toString,h="Boolean Number String Function Array Date RegExp Object Error".split(" "),i=0;i<h.length;i++)e["[object "+h[i]+"]"]=h[i].toLowerCase();c.fn.init.prototype=c.fn,a.Velocity={Utilities:c}}}(window),function(a){"object"==typeof module&&"object"==typeof module.exports?module.exports=a():"function"==typeof define&&define.amd?define(a):a()}(function(){return function(a,b,c,d){function e(a){for(var b=-1,c=a?a.length:0,d=[];++b<c;){var e=a[b];e&&d.push(e)}return d}function f(a){return p.isWrapped(a)?a=[].slice.call(a):p.isNode(a)&&(a=[a]),a}function g(a){var b=m.data(a,"velocity");return null===b?d:b}function h(a){return function(b){return Math.round(b*a)*(1/a)}}function i(a,c,d,e){function f(a,b){return 1-3*b+3*a}function g(a,b){return 3*b-6*a}function h(a){return 3*a}function i(a,b,c){return((f(b,c)*a+g(b,c))*a+h(b))*a}function j(a,b,c){return 3*f(b,c)*a*a+2*g(b,c)*a+h(b)}function k(b,c){for(var e=0;p>e;++e){var f=j(c,a,d);if(0===f)return c;var g=i(c,a,d)-b;c-=g/f}return c}function l(){for(var b=0;t>b;++b)x[b]=i(b*u,a,d)}function m(b,c,e){var f,g,h=0;do g=c+(e-c)/2,f=i(g,a,d)-b,f>0?e=g:c=g;while(Math.abs(f)>r&&++h<s);return g}function n(b){for(var c=0,e=1,f=t-1;e!=f&&x[e]<=b;++e)c+=u;--e;var g=(b-x[e])/(x[e+1]-x[e]),h=c+g*u,i=j(h,a,d);return i>=q?k(b,h):0==i?h:m(b,c,c+u)}function o(){y=!0,(a!=c||d!=e)&&l()}var p=4,q=.001,r=1e-7,s=10,t=11,u=1/(t-1),v="Float32Array"in b;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;a=Math.min(a,1),d=Math.min(d,1),a=Math.max(a,0),d=Math.max(d,0);var x=v?new Float32Array(t):new Array(t),y=!1,z=function(b){return y||o(),a===c&&d===e?b:0===b?0:1===b?1:i(n(b),c,e)};z.getControlPoints=function(){return[{x:a,y:c},{x:d,y:e}]};var A="generateBezier("+[a,c,d,e]+")";return z.toString=function(){return A},z}function j(a,b){var c=a;return p.isString(a)?t.Easings[a]||(c=!1):c=p.isArray(a)&&1===a.length?h.apply(null,a):p.isArray(a)&&2===a.length?u.apply(null,a.concat([b])):p.isArray(a)&&4===a.length?i.apply(null,a):!1,c===!1&&(c=t.Easings[t.defaults.easing]?t.defaults.easing:s),c}function k(a){if(a)for(var b=(new Date).getTime(),c=0,e=t.State.calls.length;e>c;c++)if(t.State.calls[c]){var f=t.State.calls[c],h=f[0],i=f[2],j=f[3],n=!!j;j||(j=t.State.calls[c][3]=b-16);for(var o=Math.min((b-j)/i.duration,1),q=0,r=h.length;r>q;q++){var s=h[q],u=s.element;if(g(u)){var w=!1;if(i.display!==d&&null!==i.display&&"none"!==i.display){if("flex"===i.display){var y=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];m.each(y,function(a,b){v.setPropertyValue(u,"display",b)})}v.setPropertyValue(u,"display",i.display)}i.visibility!==d&&"hidden"!==i.visibility&&v.setPropertyValue(u,"visibility",i.visibility);for(var z in s)if("element"!==z){var A,B=s[z],C=p.isString(B.easing)?t.Easings[B.easing]:B.easing;if(1===o)A=B.endValue;else if(A=B.startValue+(B.endValue-B.startValue)*C(o),!n&&A===B.currentValue)continue;if(B.currentValue=A,v.Hooks.registered[z]){var D=v.Hooks.getRoot(z),E=g(u).rootPropertyValueCache[D];E&&(B.rootPropertyValue=E)}var F=v.setPropertyValue(u,z,B.currentValue+(0===parseFloat(A)?"":B.unitType),B.rootPropertyValue,B.scrollData);v.Hooks.registered[z]&&(g(u).rootPropertyValueCache[D]=v.Normalizations.registered[D]?v.Normalizations.registered[D]("extract",null,F[1]):F[1]),"transform"===F[0]&&(w=!0)}i.mobileHA&&g(u).transformCache.translate3d===d&&(g(u).transformCache.translate3d="(0px, 0px, 0px)",w=!0),w&&v.flushTransformCache(u)}}i.display!==d&&"none"!==i.display&&(t.State.calls[c][2].display=!1),i.visibility!==d&&"hidden"!==i.visibility&&(t.State.calls[c][2].visibility=!1),i.progress&&i.progress.call(f[1],f[1],o,Math.max(0,j+i.duration-b),j),1===o&&l(c)}t.State.isTicking&&x(k)}function l(a,b){if(!t.State.calls[a])return!1;for(var c=t.State.calls[a][0],e=t.State.calls[a][1],f=t.State.calls[a][2],h=t.State.calls[a][4],i=!1,j=0,k=c.length;k>j;j++){var l=c[j].element;if(b||f.loop||("none"===f.display&&v.setPropertyValue(l,"display",f.display),"hidden"===f.visibility&&v.setPropertyValue(l,"visibility",f.visibility)),f.loop!==!0&&(m.queue(l)[1]===d||!/\.velocityQueueEntryFlag/i.test(m.queue(l)[1]))&&g(l)){g(l).isAnimating=!1,g(l).rootPropertyValueCache={};var n=!1;m.each(v.Lists.transforms3D,function(a,b){var c=/^scale/.test(b)?1:0,e=g(l).transformCache[b];g(l).transformCache[b]!==d&&new RegExp("^\\("+c+"[^.]").test(e)&&(n=!0,delete g(l).transformCache[b])}),f.mobileHA&&(n=!0,delete g(l).transformCache.translate3d),n&&v.flushTransformCache(l),v.Values.removeClass(l,"velocity-animating")}if(!b&&f.complete&&!f.loop&&j===k-1)try{f.complete.call(e,e)}catch(o){setTimeout(function(){throw o},1)}h&&f.loop!==!0&&h(e),f.loop!==!0||b||(m.each(g(l).tweensContainer,function(a,b){/^rotate/.test(a)&&360===parseFloat(b.endValue)&&(b.endValue=0,b.startValue=360)}),t(l,"reverse",{loop:!0,delay:f.delay})),f.queue!==!1&&m.dequeue(l,f.queue)}t.State.calls[a]=!1;for(var p=0,q=t.State.calls.length;q>p;p++)if(t.State.calls[p]!==!1){i=!0;break}i===!1&&(t.State.isTicking=!1,delete t.State.calls,t.State.calls=[])}var m,n=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement("div");if(b.innerHTML="<!--[if IE "+a+"]><span></span><![endif]-->",b.getElementsByTagName("span").length)return b=null,a}return d}(),o=function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}(),p={isString:function(a){return"string"==typeof a},isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},isFunction:function(a){return"[object Function]"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isNodeList:function(a){return"object"==typeof a&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(a))&&a.length!==d&&(0===a.length||"object"==typeof a[0]&&a[0].nodeType>0)},isWrapped:function(a){return a&&(a.jquery||b.Zepto&&b.Zepto.zepto.isZ(a))},isSVG:function(a){return b.SVGElement&&a instanceof b.SVGElement},isEmptyObject:function(a){for(var b in a)return!1;return!0}},q=!1;if(a.fn&&a.fn.jquery?(m=a,q=!0):m=b.Velocity.Utilities,8>=n&&!q)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=n)return void(jQuery.fn.velocity=jQuery.fn.animate);var r=400,s="swing",t={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:b.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:c.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:b.Promise,defaults:{queue:"",duration:r,easing:s,begin:d,complete:d,progress:d,display:d,visibility:d,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(a){m.data(a,"velocity",{isSVG:p.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:1,patch:0},debug:!1};b.pageYOffset!==d?(t.State.scrollAnchor=b,t.State.scrollPropertyLeft="pageXOffset",t.State.scrollPropertyTop="pageYOffset"):(t.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,t.State.scrollPropertyLeft="scrollLeft",t.State.scrollPropertyTop="scrollTop");var u=function(){function a(a){return-a.tension*a.x-a.friction*a.v}function b(b,c,d){var e={x:b.x+d.dx*c,v:b.v+d.dv*c,tension:b.tension,friction:b.friction};return{dx:e.v,dv:a(e)}}function c(c,d){var e={dx:c.v,dv:a(c)},f=b(c,.5*d,e),g=b(c,.5*d,f),h=b(c,d,g),i=1/6*(e.dx+2*(f.dx+g.dx)+h.dx),j=1/6*(e.dv+2*(f.dv+g.dv)+h.dv);return c.x=c.x+i*d,c.v=c.v+j*d,c}return function d(a,b,e){var f,g,h,i={x:-1,v:0,tension:null,friction:null},j=[0],k=0,l=1e-4,m=.016;for(a=parseFloat(a)||500,b=parseFloat(b)||20,e=e||null,i.tension=a,i.friction=b,f=null!==e,f?(k=d(a,b),g=k/e*m):g=m;h=c(h||i,g),j.push(1+h.x),k+=16,Math.abs(h.x)>l&&Math.abs(h.v)>l;);return f?function(a){return j[a*(j.length-1)|0]}:k}}();t.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}},m.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(a,b){t.Easings[b[0]]=i.apply(null,b[1])});var v=t.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var a=0;a<v.Lists.colors.length;a++){var b="color"===v.Lists.colors[a]?"0 0 0 1":"255 255 255 1";v.Hooks.templates[v.Lists.colors[a]]=["Red Green Blue Alpha",b]}var c,d,e;if(n)for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");var f=d[1].match(v.RegEx.valueSplit);"Color"===e[0]&&(e.push(e.shift()),f.push(f.shift()),v.Hooks.templates[c]=[e.join(" "),f.join(" ")])}for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");for(var a in e){var g=c+e[a],h=a;v.Hooks.registered[g]=[c,h]}}},getRoot:function(a){var b=v.Hooks.registered[a];return b?b[0]:a},cleanRootPropertyValue:function(a,b){return v.RegEx.valueUnwrap.test(b)&&(b=b.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(b)&&(b=v.Hooks.templates[a][1]),b},extractValue:function(a,b){var c=v.Hooks.registered[a];if(c){var d=c[0],e=c[1];return b=v.Hooks.cleanRootPropertyValue(d,b),b.toString().match(v.RegEx.valueSplit)[e]}return b},injectValue:function(a,b,c){var d=v.Hooks.registered[a];if(d){var e,f,g=d[0],h=d[1];return c=v.Hooks.cleanRootPropertyValue(g,c),e=c.toString().match(v.RegEx.valueSplit),e[h]=b,f=e.join(" ")}return c}},Normalizations:{registered:{clip:function(a,b,c){switch(a){case"name":return"clip";case"extract":var d;return v.RegEx.wrappedValueAlreadyExtracted.test(c)?d=c:(d=c.toString().match(v.RegEx.valueUnwrap),d=d?d[1].replace(/,(\s+)?/g," "):c),d;case"inject":return"rect("+c+")"}},blur:function(a,b,c){switch(a){case"name":return"-webkit-filter";case"extract":var d=parseFloat(c);if(!d&&0!==d){var e=c.toString().match(/blur\(([0-9]+[A-z]+)\)/i);d=e?e[1]:0}return d;case"inject":return parseFloat(c)?"blur("+c+")":"none"}},opacity:function(a,b,c){if(8>=n)switch(a){case"name":return"filter";case"extract":var d=c.toString().match(/alpha\(opacity=(.*)\)/i);return c=d?d[1]/100:1;case"inject":return b.style.zoom=1,parseFloat(c)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(c),10)+")"}else switch(a){case"name":return"opacity";case"extract":return c;case"inject":return c}}},register:function(){9>=n||t.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var a=0;a<v.Lists.transformsBase.length;a++)!function(){var b=v.Lists.transformsBase[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return"transform";case"extract":return g(c)===d||g(c).transformCache[b]===d?/^scale/i.test(b)?1:0:g(c).transformCache[b].replace(/[()]/g,"");case"inject":var f=!1;switch(b.substr(0,b.length-1)){case"translate":f=!/(%|px|em|rem|vw|vh|\d)$/i.test(e);break;case"scal":case"scale":t.State.isAndroid&&g(c).transformCache[b]===d&&1>e&&(e=1),f=!/(\d)$/i.test(e);break;case"skew":f=!/(deg|\d)$/i.test(e);break;case"rotate":f=!/(deg|\d)$/i.test(e)}return f||(g(c).transformCache[b]="("+e+")"),g(c).transformCache[b]}}}();for(var a=0;a<v.Lists.colors.length;a++)!function(){var b=v.Lists.colors[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return b;case"extract":var f;if(v.RegEx.wrappedValueAlreadyExtracted.test(e))f=e;else{var g,h={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(e)?g=h[e]!==d?h[e]:h.black:v.RegEx.isHex.test(e)?g="rgb("+v.Values.hexToRgb(e).join(" ")+")":/^rgba?\(/i.test(e)||(g=h.black),f=(g||e).toString().match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=n||3!==f.split(" ").length||(f+=" 1"),f;case"inject":return 8>=n?4===e.split(" ").length&&(e=e.split(/\s+/).slice(0,3).join(" ")):3===e.split(" ").length&&(e+=" 1"),(8>=n?"rgb":"rgba")+"("+e.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()})},SVGAttribute:function(a){var b="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(n||t.State.isAndroid&&!t.State.isChrome)&&(b+="|transform"),new RegExp("^("+b+")$","i").test(a)},prefixCheck:function(a){if(t.State.prefixMatches[a])return[t.State.prefixMatches[a],!0];for(var b=["","Webkit","Moz","ms","O"],c=0,d=b.length;d>c;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\w/,function(a){return a.toUpperCase()}),p.isString(t.State.prefixElement.style[e]))return t.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var b,c=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return a=a.replace(c,function(a,b,c,d){return b+b+c+c+d+d}),b=d.exec(a),b?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:[0,0,0]},isCSSNullValue:function(a){return 0==a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?"":"px"},getDisplayType:function(a){var b=a&&a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?"inline":/^(li)$/i.test(b)?"list-item":/^(tr)$/i.test(b)?"table-row":"block"},addClass:function(a,b){a.classList?a.classList.add(b):a.className+=(a.className.length?" ":"")+b},removeClass:function(a,b){a.classList?a.classList.remove(b):a.className=a.className.toString().replace(new RegExp("(^|\\s)"+b.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(a,c,e,f){function h(a,c){function e(){j&&v.setPropertyValue(a,"display","none")}var i=0;if(8>=n)i=m.css(a,c);else{var j=!1;if(/^(width|height)$/.test(c)&&0===v.getPropertyValue(a,"display")&&(j=!0,v.setPropertyValue(a,"display",v.Values.getDisplayType(a))),!f){if("height"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var k=a.offsetHeight-(parseFloat(v.getPropertyValue(a,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(a,"paddingBottom"))||0);return e(),k}if("width"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var l=a.offsetWidth-(parseFloat(v.getPropertyValue(a,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(a,"paddingRight"))||0);return e(),l}}var o;o=g(a)===d?b.getComputedStyle(a,null):g(a).computedStyle?g(a).computedStyle:g(a).computedStyle=b.getComputedStyle(a,null),(n||t.State.isFirefox)&&"borderColor"===c&&(c="borderTopColor"),i=9===n&&"filter"===c?o.getPropertyValue(c):o[c],(""===i||null===i)&&(i=a.style[c]),e()}if("auto"===i&&/^(top|right|bottom|left)$/i.test(c)){var p=h(a,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(c))&&(i=m(a).position()[c]+"px")}return i}var i;if(v.Hooks.registered[c]){var j=c,k=v.Hooks.getRoot(j);e===d&&(e=v.getPropertyValue(a,v.Names.prefixCheck(k)[0])),v.Normalizations.registered[k]&&(e=v.Normalizations.registered[k]("extract",a,e)),i=v.Hooks.extractValue(j,e)}else if(v.Normalizations.registered[c]){var l,o;l=v.Normalizations.registered[c]("name",a),"transform"!==l&&(o=h(a,v.Names.prefixCheck(l)[0]),v.Values.isCSSNullValue(o)&&v.Hooks.templates[c]&&(o=v.Hooks.templates[c][1])),i=v.Normalizations.registered[c]("extract",a,o)}return/^[\d-]/.test(i)||(i=g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c)?/^(height|width)$/i.test(c)?a.getBBox()[c]:a.getAttribute(c):h(a,v.Names.prefixCheck(c)[0])),v.Values.isCSSNullValue(i)&&(i=0),t.debug>=2&&console.log("Get "+c+": "+i),i},setPropertyValue:function(a,c,d,e,f){var h=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(v.Normalizations.registered[c]&&"transform"===v.Normalizations.registered[c]("name",a))v.Normalizations.registered[c]("inject",a,d),h="transform",d=g(a).transformCache[c];else{if(v.Hooks.registered[c]){var i=c,j=v.Hooks.getRoot(c);e=e||v.getPropertyValue(a,j),d=v.Hooks.injectValue(i,d,e),c=j}if(v.Normalizations.registered[c]&&(d=v.Normalizations.registered[c]("inject",a,d),c=v.Normalizations.registered[c]("name",a)),h=v.Names.prefixCheck(c)[0],8>=n)try{a.style[h]=d}catch(k){t.debug&&console.log("Browser does not support ["+d+"] for ["+h+"]")}else g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c)?a.setAttribute(c,d):a.style[h]=d;t.debug>=2&&console.log("Set "+c+" ("+h+"): "+d)}return[h,d]},flushTransformCache:function(a){function b(b){return parseFloat(v.getPropertyValue(a,b))}var c="";if((n||t.State.isAndroid&&!t.State.isChrome)&&g(a).isSVG){var d={translate:[b("translateX"),b("translateY")],skewX:[b("skewX")],skewY:[b("skewY")],scale:1!==b("scale")?[b("scale"),b("scale")]:[b("scaleX"),b("scaleY")],rotate:[b("rotateZ"),0,0]};m.each(g(a).transformCache,function(a){/^translate/i.test(a)?a="translate":/^scale/i.test(a)?a="scale":/^rotate/i.test(a)&&(a="rotate"),d[a]&&(c+=a+"("+d[a].join(" ")+") ",delete d[a])})}else{var e,f;m.each(g(a).transformCache,function(b){return e=g(a).transformCache[b],"transformPerspective"===b?(f=e,!0):(9===n&&"rotateZ"===b&&(b="rotate"),void(c+=b+e+" "))}),f&&(c="perspective"+f+" "+c)}v.setPropertyValue(a,"transform",c)}};v.Hooks.register(),v.Normalizations.register(),t.hook=function(a,b,c){var e=d;return a=f(a),m.each(a,function(a,f){if(g(f)===d&&t.init(f),c===d)e===d&&(e=t.CSS.getPropertyValue(f,b));else{var h=t.CSS.setPropertyValue(f,b,c);"transform"===h[0]&&t.CSS.flushTransformCache(f),e=h}}),e};var w=function(){function a(){return i?C.promise||null:n}function h(){function a(){function a(a,b){var c=d,e=d,f=d;return p.isArray(a)?(c=a[0],!p.isArray(a[1])&&/^[\d-]/.test(a[1])||p.isFunction(a[1])||v.RegEx.isHex.test(a[1])?f=a[1]:(p.isString(a[1])&&!v.RegEx.isHex.test(a[1])||p.isArray(a[1]))&&(e=b?a[1]:j(a[1],i.duration),a[2]!==d&&(f=a[2]))):c=a,b||(e=e||i.easing),p.isFunction(c)&&(c=c.call(h,z,y)),p.isFunction(f)&&(f=f.call(h,z,y)),[c||0,e,f]}function n(a,b){var c,d;return d=(b||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=v.Values.getUnitType(a)),[d,c]}function o(){var a={myParent:h.parentNode||c.body,position:v.getPropertyValue(h,"position"),fontSize:v.getPropertyValue(h,"fontSize")},d=a.position===J.lastPosition&&a.myParent===J.lastParent,e=a.fontSize===J.lastFontSize;J.lastParent=a.myParent,J.lastPosition=a.position,J.lastFontSize=a.fontSize;var f=100,i={};if(e&&d)i.emToPx=J.lastEmToPx,i.percentToPxWidth=J.lastPercentToPxWidth,i.percentToPxHeight=J.lastPercentToPxHeight;else{var j=g(h).isSVG?c.createElementNS("http://www.w3.org/2000/svg","rect"):c.createElement("div");t.init(j),a.myParent.appendChild(j),m.each(["overflow","overflowX","overflowY"],function(a,b){t.CSS.setPropertyValue(j,b,"hidden")}),t.CSS.setPropertyValue(j,"position",a.position),t.CSS.setPropertyValue(j,"fontSize",a.fontSize),t.CSS.setPropertyValue(j,"boxSizing","content-box"),m.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(a,b){t.CSS.setPropertyValue(j,b,f+"%")}),t.CSS.setPropertyValue(j,"paddingLeft",f+"em"),i.percentToPxWidth=J.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(j,"width",null,!0))||1)/f,i.percentToPxHeight=J.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(j,"height",null,!0))||1)/f,i.emToPx=J.lastEmToPx=(parseFloat(v.getPropertyValue(j,"paddingLeft"))||1)/f,a.myParent.removeChild(j)}return null===J.remToPx&&(J.remToPx=parseFloat(v.getPropertyValue(c.body,"fontSize"))||16),null===J.vwToPx&&(J.vwToPx=parseFloat(b.innerWidth)/100,J.vhToPx=parseFloat(b.innerHeight)/100),i.remToPx=J.remToPx,i.vwToPx=J.vwToPx,i.vhToPx=J.vhToPx,t.debug>=1&&console.log("Unit ratios: "+JSON.stringify(i),h),i}if(i.begin&&0===z)try{i.begin.call(q,q)}catch(r){setTimeout(function(){throw r},1)}if("scroll"===D){var w,x,A,B=/^x$/i.test(i.axis)?"Left":"Top",E=parseFloat(i.offset)||0;i.container?p.isWrapped(i.container)||p.isNode(i.container)?(i.container=i.container[0]||i.container,w=i.container["scroll"+B],A=w+m(h).position()[B.toLowerCase()]+E):i.container=null:(w=t.State.scrollAnchor[t.State["scrollProperty"+B]],x=t.State.scrollAnchor[t.State["scrollProperty"+("Left"===B?"Top":"Left")]],A=m(h).offset()[B.toLowerCase()]+E),l={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:A,unitType:"",easing:i.easing,scrollData:{container:i.container,direction:B,alternateValue:x}},element:h},t.debug&&console.log("tweensContainer (scroll): ",l.scroll,h)}else if("reverse"===D){if(!g(h).tweensContainer)return void m.dequeue(h,i.queue);"none"===g(h).opts.display&&(g(h).opts.display="auto"),"hidden"===g(h).opts.visibility&&(g(h).opts.visibility="visible"),g(h).opts.loop=!1,g(h).opts.begin=null,g(h).opts.complete=null,u.easing||delete i.easing,u.duration||delete i.duration,i=m.extend({},g(h).opts,i);var F=m.extend(!0,{},g(h).tweensContainer);for(var G in F)if("element"!==G){var H=F[G].startValue;F[G].startValue=F[G].currentValue=F[G].endValue,F[G].endValue=H,p.isEmptyObject(u)||(F[G].easing=i.easing),t.debug&&console.log("reverse tweensContainer ("+G+"): "+JSON.stringify(F[G]),h)}l=F}else if("start"===D){var F;g(h).tweensContainer&&g(h).isAnimating===!0&&(F=g(h).tweensContainer),m.each(s,function(b,c){if(RegExp("^"+v.Lists.colors.join("$|^")+"$").test(b)){var e=a(c,!0),f=e[0],g=e[1],h=e[2];if(v.RegEx.isHex.test(f)){for(var i=["Red","Green","Blue"],j=v.Values.hexToRgb(f),k=h?v.Values.hexToRgb(h):d,l=0;l<i.length;l++){var m=[j[l]];g&&m.push(g),k!==d&&m.push(k[l]),s[b+i[l]]=m}delete s[b]}}});for(var I in s){var L=a(s[I]),M=L[0],N=L[1],O=L[2];I=v.Names.camelCase(I);var P=v.Hooks.getRoot(I),Q=!1;if(g(h).isSVG||v.Names.prefixCheck(P)[1]!==!1||v.Normalizations.registered[P]!==d){(i.display!==d&&null!==i.display&&"none"!==i.display||i.visibility!==d&&"hidden"!==i.visibility)&&/opacity|filter/.test(I)&&!O&&0!==M&&(O=0),i._cacheValues&&F&&F[I]?(O===d&&(O=F[I].endValue+F[I].unitType),Q=g(h).rootPropertyValueCache[P]):v.Hooks.registered[I]?O===d?(Q=v.getPropertyValue(h,P),O=v.getPropertyValue(h,I,Q)):Q=v.Hooks.templates[P][1]:O===d&&(O=v.getPropertyValue(h,I));var R,S,T,U=!1;if(R=n(I,O),O=R[0],T=R[1],R=n(I,M),M=R[0].replace(/^([+-\/*])=/,function(a,b){return U=b,""}),S=R[1],O=parseFloat(O)||0,M=parseFloat(M)||0,"%"===S&&(/^(fontSize|lineHeight)$/.test(I)?(M/=100,S="em"):/^scale/.test(I)?(M/=100,S=""):/(Red|Green|Blue)$/i.test(I)&&(M=M/100*255,S="")),/[\/*]/.test(U))S=T;else if(T!==S&&0!==O)if(0===M)S=T;else{f=f||o();var V=/margin|padding|left|right|width|text|word|letter/i.test(I)||/X$/.test(I)||"x"===I?"x":"y";switch(T){case"%":O*="x"===V?f.percentToPxWidth:f.percentToPxHeight;break;case"px":break;default:O*=f[T+"ToPx"]}switch(S){case"%":O*=1/("x"===V?f.percentToPxWidth:f.percentToPxHeight);break;case"px":break;default:O*=1/f[S+"ToPx"]}}switch(U){case"+":M=O+M;break;case"-":M=O-M;break;case"*":M=O*M;break;case"/":M=O/M}l[I]={rootPropertyValue:Q,startValue:O,currentValue:O,endValue:M,unitType:S,easing:N},t.debug&&console.log("tweensContainer ("+I+"): "+JSON.stringify(l[I]),h)}else t.debug&&console.log("Skipping ["+P+"] due to a lack of browser support.")}l.element=h}l.element&&(v.Values.addClass(h,"velocity-animating"),K.push(l),""===i.queue&&(g(h).tweensContainer=l,g(h).opts=i),g(h).isAnimating=!0,z===y-1?(t.State.calls.length>1e4&&(t.State.calls=e(t.State.calls)),t.State.calls.push([K,q,i,null,C.resolver]),t.State.isTicking===!1&&(t.State.isTicking=!0,k())):z++)}var f,h=this,i=m.extend({},t.defaults,u),l={};switch(g(h)===d&&t.init(h),parseFloat(i.delay)&&i.queue!==!1&&m.queue(h,i.queue,function(a){t.velocityQueueEntryFlag=!0,g(h).delayTimer={setTimeout:setTimeout(a,parseFloat(i.delay)),next:a}}),i.duration.toString().toLowerCase()){case"fast":i.duration=200;break;case"normal":i.duration=r;break;case"slow":i.duration=600;break;default:i.duration=parseFloat(i.duration)||1}t.mock!==!1&&(t.mock===!0?i.duration=i.delay=1:(i.duration*=parseFloat(t.mock)||1,i.delay*=parseFloat(t.mock)||1)),i.easing=j(i.easing,i.duration),i.begin&&!p.isFunction(i.begin)&&(i.begin=null),i.progress&&!p.isFunction(i.progress)&&(i.progress=null),i.complete&&!p.isFunction(i.complete)&&(i.complete=null),i.display!==d&&null!==i.display&&(i.display=i.display.toString().toLowerCase(),"auto"===i.display&&(i.display=t.CSS.Values.getDisplayType(h))),i.visibility!==d&&null!==i.visibility&&(i.visibility=i.visibility.toString().toLowerCase()),i.mobileHA=i.mobileHA&&t.State.isMobile&&!t.State.isGingerbread,i.queue===!1?i.delay?setTimeout(a,i.delay):a():m.queue(h,i.queue,function(b,c){return c===!0?(C.promise&&C.resolver(q),!0):(t.velocityQueueEntryFlag=!0,void a(b))}),""!==i.queue&&"fx"!==i.queue||"inprogress"===m.queue(h)[0]||m.dequeue(h)}var i,n,o,q,s,u,x=arguments[0]&&(m.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||p.isString(arguments[0].properties));if(p.isWrapped(this)?(i=!1,o=0,q=this,n=this):(i=!0,o=1,q=x?arguments[0].elements:arguments[0]),q=f(q)){x?(s=arguments[0].properties,u=arguments[0].options):(s=arguments[o],u=arguments[o+1]);var y=q.length,z=0;if("stop"!==s&&!m.isPlainObject(u)){var A=o+1;u={};for(var B=A;B<arguments.length;B++)p.isArray(arguments[B])||!/^(fast|normal|slow)$/i.test(arguments[B])&&!/^\d/.test(arguments[B])?p.isString(arguments[B])||p.isArray(arguments[B])?u.easing=arguments[B]:p.isFunction(arguments[B])&&(u.complete=arguments[B]):u.duration=arguments[B]}var C={promise:null,resolver:null,rejecter:null};i&&t.Promise&&(C.promise=new t.Promise(function(a,b){C.resolver=a,C.rejecter=b}));var D;switch(s){case"scroll":D="scroll";break;case"reverse":D="reverse";break;case"stop":m.each(q,function(a,b){g(b)&&g(b).delayTimer&&(clearTimeout(g(b).delayTimer.setTimeout),g(b).delayTimer.next&&g(b).delayTimer.next(),delete g(b).delayTimer)});var E=[];return m.each(t.State.calls,function(a,b){b&&m.each(b[1],function(c,e){var f=p.isString(u)?u:"";return u!==d&&b[2].queue!==f?!0:void m.each(q,function(b,c){c===e&&(u!==d&&(m.each(m.queue(c,f),function(a,b){p.isFunction(b)&&b(null,!0)}),m.queue(c,f,[])),g(c)&&""===f&&m.each(g(c).tweensContainer,function(a,b){b.endValue=b.currentValue}),E.push(a))})})}),m.each(E,function(a,b){l(b,!0)}),C.promise&&C.resolver(q),a();default:if(!m.isPlainObject(s)||p.isEmptyObject(s)){if(p.isString(s)&&t.Redirects[s]){var F=m.extend({},u),G=F.duration,H=F.delay||0;return F.backwards===!0&&(q=m.extend(!0,[],q).reverse()),m.each(q,function(a,b){parseFloat(F.stagger)?F.delay=H+parseFloat(F.stagger)*a:p.isFunction(F.stagger)&&(F.delay=H+F.stagger.call(b,a,y)),F.drag&&(F.duration=parseFloat(G)||(/^(callout|transition)/.test(s)?1e3:r),F.duration=Math.max(F.duration*(F.backwards?1-a/y:(a+1)/y),.75*F.duration,200)),t.Redirects[s].call(b,b,F||{},a,y,q,C.promise?C:d)}),a()}var I="Velocity: First argument ("+s+") was not a property map, a known action, or a registered redirect. Aborting.";return C.promise?C.rejecter(new Error(I)):console.log(I),a()}D="start"}var J={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},K=[];m.each(q,function(a,b){p.isNode(b)&&h.call(b)});var L,F=m.extend({},t.defaults,u);if(F.loop=parseInt(F.loop),L=2*F.loop-1,F.loop)for(var M=0;L>M;M++){var N={delay:F.delay,progress:F.progress};M===L-1&&(N.display=F.display,N.visibility=F.visibility,N.complete=F.complete),w(q,"reverse",N)}return a()}};t=m.extend(w,t),t.animate=w;var x=b.requestAnimationFrame||o;return t.State.isMobile||c.hidden===d||c.addEventListener("visibilitychange",function(){c.hidden?(x=function(a){return setTimeout(function(){a(!0)
},16)},k()):x=b.requestAnimationFrame||o}),a.Velocity=t,a!==b&&(a.fn.velocity=w,a.fn.velocity.defaults=t.defaults),m.each(["Down","Up"],function(a,b){t.Redirects["slide"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j=i.begin,k=i.complete,l={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},n={};i.display===d&&(i.display="Down"===b?"inline"===t.CSS.Values.getDisplayType(a)?"inline-block":"block":"none"),i.begin=function(){j&&j.call(g,g);for(var c in l){n[c]=a.style[c];var d=t.CSS.getPropertyValue(a,c);l[c]="Down"===b?[d,0]:[0,d]}n.overflow=a.style.overflow,a.style.overflow="hidden"},i.complete=function(){for(var b in n)a.style[b]=n[b];k&&k.call(g,g),h&&h.resolver(g)},t(a,l,i)}}),m.each(["In","Out"],function(a,b){t.Redirects["fade"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j={opacity:"In"===b?1:0},k=i.complete;i.complete=e!==f-1?i.begin=null:function(){k&&k.call(g,g),h&&h.resolver(g)},i.display===d&&(i.display="In"===b?"auto":"none"),t(this,j,i)}}),t}(window.jQuery||window.Zepto||window,window,document)}),function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(k(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a}function i(a,b){return h(a,b,!0)}function j(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&h(d,c)}function k(a,b){return function(){return a.apply(b,arguments)}}function l(a,b){return typeof a==kb?a.apply(b?b[0]||d:d,b):a}function m(a,b){return a===d?b:a}function n(a,b,c){g(r(b),function(b){a.addEventListener(b,c,!1)})}function o(a,b,c){g(r(b),function(b){a.removeEventListener(b,c,!1)})}function p(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function q(a,b){return a.indexOf(b)>-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function t(a){return Array.prototype.slice.call(a,0)}function u(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];s(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<ib.length;){if(c=ib[g],e=c?c+f:b,e in a)return e;g++}return d}function w(){return ob++}function x(a){var b=a.ownerDocument;return b.defaultView||b.parentWindow}function y(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){l(a.options.enable,[a])&&c.handler(b)},this.init()}function z(a){var b,c=a.options.inputClass;return new(b=c?c:rb?N:sb?Q:qb?S:M)(a,A)}function A(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&yb&&d-e===0,g=b&(Ab|Bb)&&d-e===0;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,B(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function B(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=E(b)),e>1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=nb(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===yb||f.eventType===Ab)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Bb&&(i>xb||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=mb(l.x)>mb(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:lb(a.pointers[c].clientX),clientY:lb(a.pointers[c].clientY)},c++;return{timeStamp:nb(),pointers:b,center:F(b),deltaX:a.deltaX,deltaY:a.deltaY}}function F(a){var b=a.length;if(1===b)return{x:lb(a[0].clientX),y:lb(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:lb(c/b),y:lb(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?Cb:mb(a)>=mb(b)?a>0?Db:Eb:b>0?Fb:Gb}function I(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],Lb)-J(a[1],a[0],Lb)}function L(a,b){return I(b[0],b[1],Lb)/I(a[0],a[1],Lb)}function M(){this.evEl=Nb,this.evWin=Ob,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=Rb,this.evWin=Sb,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=Ub,this.evWin=Vb,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(Ab|Bb)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=Xb,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(yb|zb)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===yb)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Ab|Bb)&&delete d[g[e].identifier],e++;return h.length?[u(f.concat(h),"identifier",!0),h]:void 0}function S(){y.apply(this,arguments);var a=k(this.handler,this);this.touch=new Q(this.manager,a),this.mouse=new M(this.manager,a)}function T(a,b){this.manager=a,this.set(b)}function U(a){if(q(a,bc))return bc;var b=q(a,cc),c=q(a,dc);return b&&c?cc+" "+dc:b||c?b?cc:dc:q(a,ac)?ac:_b}function V(a){this.id=w(),this.manager=null,this.options=i(a||{},this.defaults),this.options.enable=m(this.options.enable,!0),this.state=ec,this.simultaneous={},this.requireFail=[]}function W(a){return a&jc?"cancel":a&hc?"end":a&gc?"move":a&fc?"start":""}function X(a){return a==Gb?"down":a==Fb?"up":a==Db?"left":a==Eb?"right":""}function Y(a,b){var c=b.manager;return c?c.get(a):a}function Z(){V.apply(this,arguments)}function $(){Z.apply(this,arguments),this.pX=null,this.pY=null}function _(){Z.apply(this,arguments)}function ab(){V.apply(this,arguments),this._timer=null,this._input=null}function bb(){Z.apply(this,arguments)}function cb(){Z.apply(this,arguments)}function db(){V.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function eb(a,b){return b=b||{},b.recognizers=m(b.recognizers,eb.defaults.preset),new fb(a,b)}function fb(a,b){b=b||{},this.options=i(b,eb.defaults),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.element=a,this.input=z(this),this.touchAction=new T(this,this.options.touchAction),gb(this,!0),g(b.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function gb(a,b){var c=a.element;g(a.options.cssProps,function(a,d){c.style[v(c.style,d)]=b?a:""})}function hb(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var ib=["","webkit","moz","MS","ms","o"],jb=b.createElement("div"),kb="function",lb=Math.round,mb=Math.abs,nb=Date.now,ob=1,pb=/mobile|tablet|ip(ad|hone|od)|android/i,qb="ontouchstart"in a,rb=v(a,"PointerEvent")!==d,sb=qb&&pb.test(navigator.userAgent),tb="touch",ub="pen",vb="mouse",wb="kinect",xb=25,yb=1,zb=2,Ab=4,Bb=8,Cb=1,Db=2,Eb=4,Fb=8,Gb=16,Hb=Db|Eb,Ib=Fb|Gb,Jb=Hb|Ib,Kb=["x","y"],Lb=["clientX","clientY"];y.prototype={handler:function(){},init:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&o(this.element,this.evEl,this.domHandler),this.evTarget&&o(this.target,this.evTarget,this.domHandler),this.evWin&&o(x(this.element),this.evWin,this.domHandler)}};var Mb={mousedown:yb,mousemove:zb,mouseup:Ab},Nb="mousedown",Ob="mousemove mouseup";j(M,y,{handler:function(a){var b=Mb[a.type];b&yb&&0===a.button&&(this.pressed=!0),b&zb&&1!==a.which&&(b=Ab),this.pressed&&this.allow&&(b&Ab&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:vb,srcEvent:a}))}});var Pb={pointerdown:yb,pointermove:zb,pointerup:Ab,pointercancel:Bb,pointerout:Bb},Qb={2:tb,3:ub,4:vb,5:wb},Rb="pointerdown",Sb="pointermove pointerup pointercancel";a.MSPointerEvent&&(Rb="MSPointerDown",Sb="MSPointerMove MSPointerUp MSPointerCancel"),j(N,y,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=Pb[d],f=Qb[a.pointerType]||a.pointerType,g=f==tb,h=s(b,a.pointerId,"pointerId");e&yb&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Ab|Bb)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Tb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Ub="touchstart",Vb="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=Tb[a.type];if(b===yb&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(Ab|Bb)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}});var Wb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Xb="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=Wb[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==tb,e=c.pointerType==vb;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Ab|Bb)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yb=v(jb.style,"touchAction"),Zb=Yb!==d,$b="compute",_b="auto",ac="manipulation",bc="none",cc="pan-x",dc="pan-y";T.prototype={set:function(a){a==$b&&(a=this.compute()),Zb&&(this.manager.element.style[Yb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!Zb){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,bc),f=q(d,dc),g=q(d,cc);return e||f&&c&Hb||g&&c&Ib?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ec=1,fc=2,gc=4,hc=8,ic=hc,jc=16,kc=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;hc>d&&b(!0),b(),d>=hc&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=kc)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(kc|ec)))return!1;a++}return!0},recognize:function(a){var b=h({},a);return l(this.options.enable,[this,b])?(this.state&(ic|jc|kc)&&(this.state=ec),this.state=this.process(b),void(this.state&(fc|gc|hc|jc)&&this.tryEmit(b))):(this.reset(),void(this.state=kc))},process:function(){},getTouchAction:function(){},reset:function(){}},j(Z,V,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(fc|gc),e=this.attrTest(a);return d&&(c&Bb||!e)?b|jc:d||e?c&Ab?b|hc:b&fc?b|gc:fc:kc}}),j($,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:Jb},getTouchAction:function(){var a=this.options.direction,b=[];return a&Hb&&b.push(dc),a&Ib&&b.push(cc),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&Hb?(e=0===f?Cb:0>f?Db:Eb,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Cb:0>g?Fb:Gb,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&fc||!(this.state&fc)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&fc)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ab,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_b]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Ab|Bb)&&!f)this.reset();else if(a.eventType&yb)this.reset(),this._timer=e(function(){this.state=ic,this.tryEmit()},b.time,this);else if(a.eventType&Ab)return ic;return kc},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ic&&(a&&a.eventType&Ab?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=nb(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&fc)}}),j(cb,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Hb|Ib,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Hb|Ib)?b=a.velocity:c&Hb?b=a.velocityX:c&Ib&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&mb(b)>this.options.velocity&&a.eventType&Ab},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(db,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ac]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&yb&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=Ab)return this.failTimeout();var g=this.pTime?a.timeStamp-this.pTime<b.interval:!0,h=!this.pCenter||I(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=ic,this.tryEmit()},b.interval,this),fc):ic}return kc},failTimeout:function(){return this._timer=e(function(){this.state=kc},this.options.interval,this),kc},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ic&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),eb.VERSION="2.0.4",eb.defaults={domEvents:!1,touchAction:$b,enable:!0,inputTarget:null,inputClass:null,preset:[[bb,{enable:!1}],[_,{enable:!1},["rotate"]],[cb,{direction:Hb}],[$,{direction:Hb},["swipe"]],[db],[db,{event:"doubletap",taps:2},["tap"]],[ab]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var lc=1,mc=2;fb.prototype={set:function(a){return h(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?mc:lc},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&ic)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===mc||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(fc|gc|hc)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof V)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;var b=this.recognizers;return a=this.get(a),b.splice(s(b,a),1),this.touchAction.update(),this},on:function(a,b){var c=this.handlers;return g(r(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this},off:function(a,b){var c=this.handlers;return g(r(a),function(a){b?c[a].splice(s(c[a],b),1):delete c[a]}),this},emit:function(a,b){this.options.domEvents&&hb(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&gb(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},h(eb,{INPUT_START:yb,INPUT_MOVE:zb,INPUT_END:Ab,INPUT_CANCEL:Bb,STATE_POSSIBLE:ec,STATE_BEGAN:fc,STATE_CHANGED:gc,STATE_ENDED:hc,STATE_RECOGNIZED:ic,STATE_CANCELLED:jc,STATE_FAILED:kc,DIRECTION_NONE:Cb,DIRECTION_LEFT:Db,DIRECTION_RIGHT:Eb,DIRECTION_UP:Fb,DIRECTION_DOWN:Gb,DIRECTION_HORIZONTAL:Hb,DIRECTION_VERTICAL:Ib,DIRECTION_ALL:Jb,Manager:fb,Input:y,TouchAction:T,TouchInput:Q,MouseInput:M,PointerEventInput:N,TouchMouseInput:S,SingleTouchInput:O,Recognizer:V,AttrRecognizer:Z,Tap:db,Pan:$,Swipe:cb,Pinch:_,Rotate:bb,Press:ab,on:n,off:o,each:g,merge:i,extend:h,inherit:j,bindFn:k,prefixed:v}),typeof define==kb&&define.amd?define(function(){return eb}):"undefined"!=typeof module&&module.exports?module.exports=eb:a[c]=eb}(window,document,"Hammer"),function(a){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],a):"object"==typeof exports?a(require("jquery"),require("hammerjs")):a(jQuery,Hammer)}(function(a,b){function c(c,d){var e=a(c);e.data("hammer")||e.data("hammer",new b(e[0],d))}a.fn.hammer=function(a){return this.each(function(){c(this,a)})},b.Manager.prototype.emit=function(b){return function(c,d){b.call(this,c,d),a(this.element).trigger({type:c,gesture:d})}}(b.Manager.prototype.emit)}),function(a){a.fn.collapsible=function(b){var c={accordion:!0};b=a.extend(c,b);var d=(a(this),a(this).find(".collapsible-header"));d.each(c.accordion?function(){a(this).click(function(){a(this).parent().toggleClass("active"),a(this).parent().hasClass("active")?a(this).siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1}):a(this).siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1}),d.not(a(this)).parent().removeClass("active"),d.not(a(this)).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1})})}:function(){a(this).click(function(){a(this).parent().toggleClass("active"),a(this).parent().hasClass("active")?a(this).siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1}):a(this).siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1})})})}}(jQuery),function(a){a.fn.dropdown=function(b){var c={hover:!0};b=a.extend(c,b);var d=a(this),e=a("#"+d.attr("data-activates"));e.hide(0),c.hover?(d.on("mouseover",function(){e.css("width",d.outerWidth()),e.css("top",d.offset().top),e.css("left",d.offset().left),e.show({duration:200,easing:"easeOutCubic"})}),e.on("mouseleave",function(){e.hide({duration:150,easing:"easeOutCubic"})})):d.click(function(b){b.preventDefault(),e.css("width",d.outerWidth()),e.css("top",d.offset().top),e.css("left",d.offset().left),e.show({duration:200,easing:"easeOutCubic"}),a(document).bind("click",function(b){e.is(b.target)||d.is(b.target)||(e.hide({duration:150,easing:"easeOutCubic"}),a(document).unbind("click"))})}),a(window).on("resize",function(){d.is(":visible")&&(e.css("top",d.offset().top),e.css("left",d.offset().left))})}}(jQuery),function(a){a.fn.extend({leanModal:function(b){function c(b){a("#lean_overlay").velocity({opacity:0},{duration:200,queue:!1,ease:"easeOutQuart"}),a(b).fadeOut(200,function(){a(this).css({top:0}),a("#lean_overlay").css({display:"none"})})}var d={overlay:.5},e=a("<div id='lean_overlay'></div>");return a("body").append(e),b=a.extend(d,b),this.each(function(){var d=b;a(this).click(function(b){var e=a(this).attr("href");a("#lean_overlay").click(function(){c(e)}),a(e).find(".modal_close").click(function(a){a.preventDefault(),c(e)}),a("#lean_overlay").css({display:"block",opacity:0}),a("#lean_overlay").velocity({opacity:d.overlay},{duration:350,queue:!1,ease:"easeOutQuart"}),a(e).css({display:"block",position:"fixed",top:0,opacity:0,"z-index":1e3}),a(e).velocity({top:"10%",opacity:1},{duration:350,queue:!1,ease:"easeOutQuart"}),b.preventDefault()})})}})}(jQuery),function(a){a.fn.materialbox=function(){return this.each(function(){function b(){var b=g.parent(".material-placeholder").attr("z-index");b||(b=0),c=!1,a("#materialbox-overlay").fadeOut(f,function(){a(this).remove(),g.css("z-index",b)}),g.animate({width:i},{duration:f,queue:!1,easing:"easeOutQuad"}),g.animate({height:j},{duration:f,queue:!1,easing:"easeOutQuad"}),g.animate({left:0},{duration:f,queue:!1,easing:"easeOutQuad"}),g.animate({top:0},{duration:f,queue:!1,easing:"easeOutQuad"}),g.css("will-change",""),g.removeClass("active")}var c=!1,d=!0,e=275,f=225,g=a(this),h=a("<div></div>").addClass("material-placeholder"),i=g.width(),j=g.height();g.wrap(h),g.on("click",function(){var f=window.innerWidth,h=window.innerHeight;if(c||d===!1)return b(),!1;g.addClass("active"),i=g.width(),j=g.height(),g.parent(".material-placeholder").css("width",g.innerWidth()).css("height",j).css("position","relative").css("top",0).css("left",0).css("z-index",g.attr("z-indez")),g.css("position","absolute");var k=a("<div></div>");k.attr("id","materialbox-overlay").css("width",a(document).width()+100).css("height",a(document).height()+100).css("top",0).css("left",0).css("opacity",0).css("will-change","opacity").click(function(){b()}),a("body").append(k),k.animate({opacity:1},{duration:e,queue:!1,easing:"easeOutQuad"}),c=!0,d=!1;var l=0,m=i/f,n=j/h,o=0,p=0;m>n?(l=j/i,o=.9*f,p=.9*f*l):(l=i/j,o=.9*h*l,p=.9*h),g.css("left",0).css("top",0).css("z-index",1e3).css("will-change","left, top").animate({height:p,width:o},{duration:e,queue:!1,easing:"easeOutQuad"}).animate({left:a(document).scrollLeft()+f/2-g.parent(".material-placeholder").offset().left-o/2},{duration:e,queue:!1,easing:"easeOutQuad"}).animate({top:a(document).scrollTop()+h/2-g.parent(".material-placeholder").offset().top-p/2},{duration:e,queue:!1,easing:"easeOutQuad",complete:function(){d=!0}})}),a(window).scroll(function(){c&&b()}),a(document).keyup(function(a){27===a.keyCode&&c&&b()})})}}(jQuery),function(a){a.fn.parallax=function(){var b=a(window).width();return this.each(function(){function c(c){if(b>992){var e=d.height(),f=d.children("img").height(),g=f-e,h=d.offset().top+e,i=d.offset().top,j=a(window).scrollTop(),k=window.innerHeight,l=j+k,m=(l-i)/(e+k),n=-1*g*m;h>j&&j+k>i&&d.children("img").first().css("bottom",n+"px"),c&&d.children("img").first().show()}else d.children("img").show()}var d=a(this);d.addClass("parallax"),c(!0),a(window).scroll(function(){b=a(window).width(),c(!1)})})}}(jQuery),function(a){a.fn.tabs=function(){return this.each(function(){var b=a(this);a(window).width(),b.width("100%");var c=a(this).children("li").length;b.children("li").each(function(){a(this).width(100/c+"%")});var d,e,f=b.find("li.tab a"),g=b.width(),h=b.find("li").first().outerWidth(),i=0;d=a(f.filter('[href="'+location.hash+'"]')[0]||f[0]),d.addClass("active"),i=f.index(d),0>i&&(i=0),e=a(d[0].hash),b.append('<div class="indicator"></div>');var j=b.find(".indicator");b.is(":visible")&&(j.css({right:g-(i+1)*h}),j.css({left:i*h})),a(window).resize(function(){g=b.width(),h=b.find("li").first().outerWidth(),0>i&&(i=0),0!==h&&0!==g&&(j.css({right:g-(i+1)*h}),j.css({left:i*h}))}),f.not(d).each(function(){a(this.hash).hide()}),b.on("click","a",function(c){g=b.width(),h=b.find("li").first().outerWidth(),d.removeClass("active"),e.hide(),d=a(this),e=a(this.hash),f=b.find("li.tab a"),d.addClass("active");var k=i;i=f.index(a(this)),0>i&&(i=0),e.show(),i-k>=0?(j.velocity({right:g-(i+1)*h},{duration:300,queue:!1,easing:"easeOutQuad"}),j.velocity({left:i*h},{duration:300,queue:!1,easing:"easeOutQuad",delay:80})):(j.velocity({left:i*h},{duration:300,queue:!1,easing:"easeOutQuad"}),j.velocity({right:g-(i+1)*h},{duration:300,queue:!1,easing:"easeOutQuad",delay:80})),c.preventDefault()})})}}(jQuery),function(a){var b,c,d;a.fn.tooltip=function(e){var f={delay:350};e=a.extend(f,e);var g=a(this),h=5,i=a("<div></div");i.addClass("material-tooltip").text(g.attr("data-tooltip")),i.appendTo(a("body"));var j=a("<div></div").addClass("backdrop");j.appendTo(i),j.css({top:0,left:0,marginLeft:i.outerWidth()/2-j.width()/2}),c=!1,this.hover(function(){b=0,d=setInterval(function(){b+=50,b>=f.delay&&0==c&&(c=!0,i.css({display:"block"}),i.css({top:g.offset().top+g.outerHeight()+h,left:g.offset().left+g.outerWidth()/2-i.outerWidth()/2}),i.velocity({opacity:1,marginTop:"+10px"},{duration:250,queue:!1}),j.css({display:"block"}).velocity({opacity:1},{duration:200,delay:0,queue:!1}).velocity({scale:12},{duration:250,delay:20,queue:!1,easing:"easeInOutQuad"}))},50)},function(){clearInterval(d),b=0,i.velocity({opacity:0,marginTop:"-10px"},{duration:225,queue:!1,delay:275}),j.velocity({opacity:0,scale:1},{duration:225,delay:275,queue:!1,complete:function(){j.css("display","none"),i.css("display","none"),c=!1}})})}}(jQuery),function(a){"use strict";function b(a){return null!==a&&a===a.window}function c(a){return b(a)?a:9===a.nodeType&&a.defaultView}function d(a){var b,d,e={top:0,left:0},f=a&&a.ownerDocument;return b=f.documentElement,"undefined"!=typeof a.getBoundingClientRect&&(e=a.getBoundingClientRect()),d=c(f),{top:e.top+d.pageYOffset-b.clientTop,left:e.left+d.pageXOffset-b.clientLeft}}function e(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b+=c+":"+a[c]+";");return b}var f=f||{},g=document.querySelectorAll.bind(document),h={duration:500,show:function(a){if(2===a.button)return!1;var b=this,c=document.createElement("div");c.className="waves-ripple",b.appendChild(c);var f=d(b),g=a.pageY-f.top-10,i=a.pageX-f.left-10,j="scale(15)";"touches"in a&&(g=a.touches[0].pageY-f.top-45,i=a.touches[0].pageX-f.left-45),c.setAttribute("data-hold",Date.now()),c.setAttribute("data-scale",j),c.setAttribute("data-x",i),c.setAttribute("data-y",g);var k={top:g+"px",left:i+"px"};c.className=c.className+" waves-notransition",c.setAttribute("style",e(k)),c.className=c.className.replace("waves-notransition",""),k["-webkit-transform"]=j,k["-moz-transform"]=j,k["-ms-transform"]=j,k["-o-transform"]=j,k.transform=j,k.opacity="1",k["-webkit-transition-duration"]=h.duration+"ms",k["-moz-transition-duration"]=h.duration+"ms",k["-o-transition-duration"]=h.duration+"ms",k["transition-duration"]=h.duration+"ms",c.setAttribute("style",e(k))},hide:function(){for(var a=this,b=(1.4*a.clientWidth,null),c=a.children.length,d=0;c>d;d++)-1===a.children[d].className.indexOf("waves-ripple")||(b=a.children[d]);if(!b)return!1;var f=b.getAttribute("data-x"),g=b.getAttribute("data-y"),i=b.getAttribute("data-scale"),j=Date.now()-Number(b.getAttribute("data-hold")),k=500-j;0>k&&(k=0),setTimeout(function(){var c={top:g+"px",left:f+"px",opacity:"0","-webkit-transition-duration":h.duration+"ms","-moz-transition-duration":h.duration+"ms","-o-transition-duration":h.duration+"ms","transition-duration":h.duration+"ms","-webkit-transform":i,"-moz-transform":i,"-ms-transform":i,"-o-transform":i,transform:i};b.setAttribute("style",e(c)),setTimeout(function(){try{a.removeChild(b)}catch(c){return!1}},h.duration)},k)},wrapInput:function(a){for(var b=0;b<a.length;b++){var c=a[b];if("input"===c.tagName.toLowerCase()){var d=c.parentNode;if("i"===d.tagName.toLowerCase()&&-1!==d.className.indexOf("waves-effect"))return!1;var e=document.createElement("i");e.className=c.className+" waves-input-wrapper";var f=c.getAttribute("style"),g="width:"+c.offsetWidth+"px;height:"+c.clientHeight+"px;";f||(f=""),e.setAttribute("style",g+f),c.className="waves-button-input",c.removeAttribute("style"),d.replaceChild(e,c),e.appendChild(c)}}}};f.displayEffect=function(b){b=b||{},"duration"in b&&(h.duration=b.duration),h.wrapInput(g(".waves-effect")),Array.prototype.forEach.call(g(".waves-effect"),function(b){"ontouchstart"in a?(b.addEventListener("mouseup",h.hide,!1),b.addEventListener("touchstart",h.show,!1),b.addEventListener("mouseleave",h.hide,!1),b.addEventListener("touchend",h.hide,!1),b.addEventListener("touchcancel",h.hide,!1)):(b.addEventListener("mousedown",h.show,!1),b.addEventListener("mouseup",h.hide,!1),b.addEventListener("mouseleave",h.hide,!1))})},a.Waves=f,$(document).ready(function(){f.displayEffect()})}(window),function(a){function b(a){a=a||window.event,a.preventDefault&&a.preventDefault(),a.returnValue=!1}function c(a){for(var c=g.length;c--;)if(a.keyCode===g[c])return void b(a)}function d(a){b(a)}function e(){window.addEventListener&&window.addEventListener("DOMMouseScroll",d,!1),window.onmousewheel=document.onmousewheel=d,document.onkeydown=c}function f(){window.removeEventListener&&window.removeEventListener("DOMMouseScroll",d,!1),window.onmousewheel=document.onmousewheel=document.onkeydown=null}var g=[32,33,34,35,36,37,38,39,40];a.fn.sideNav=function(b){function c(){a("#sidenav-overlay").animate({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}}),h.velocity({left:-1*b.menuWidth},{duration:300,queue:!1,easing:"easeOutQuad"}),f()}var d={menuWidth:240,activationWidth:70};b=a.extend(d,b);var g=a(this),h=a("#"+g.attr("data-activates")),i=!1,j=!1;a("body").hammer({prevent_default:!1}).bind("pan",function(d){if("touch"===d.gesture.pointerType){var e=d.gesture.direction,f=d.gesture.center.x;if(d.gesture.center.y,i){if(!a("#sidenav-overlay").length){var g=a('<div id="sidenav-overlay"></div>');g.css("width",a(document).width()+100).css("height",a(document).height()+100).css("top",0).css("left",0).css("opacity",0).css("will-change","opacity").click(function(){i=!1,j=!1,c(),h.velocity({left:-1*b.menuWidth},{duration:300,queue:!1,easing:"easeOutQuad"}),g.animate({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}})}),a("body").append(g)}f>b.menuWidth?f=b.menuWidth:0>f?f=0:f<b.menuWidth/2?j=!1:f>=b.menuWidth/2&&(j=!0),h.velocity({left:-1*b.menuWidth+f},{duration:50,queue:!1,easing:"easeOutQuad"});
var k=f/b.menuWidth;a("#sidenav-overlay").velocity({opacity:k},{duration:50,queue:!1,easing:"easeOutQuad"})}else j?d.gesture.center.x>b.menuWidth-b.activationWidth&&2===e&&(i=!0):d.gesture.center.x<b.activationWidth&&4===e&&(i=!0)}}).bind("panend",function(b){"touch"===b.gesture.pointerType&&(i=!1,j?(h.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"}),a("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"})):(h.velocity({left:-240},{duration:300,queue:!1,easing:"easeOutQuad"}),a("#sidenav-overlay").velocity({opacity:0},{duration:50,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}})))}),g.click(function(){if(h.hasClass("active"))j=!1,i=!1,c();else{e(),h.velocity({left:0},{duration:300,queue:!1,easing:"easeOutQuad"});var b=a('<div id="sidenav-overlay"></div>');b.css("width",a(document).width()+100).css("height",a(document).height()+100).css("top",0).css("left",0).css("opacity",0).css("will-change","opacity").click(function(){j=!1,i=!1,c(),b.animate({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}})}),a("body").append(b),b.animate({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){j=!0,i=!1}})}return!1})}}(jQuery),function(a){function b(b,c,d,e){var f=a();return a.each(g,function(a,g){if(g.height()>0){var h=g.offset().top,i=g.offset().left,j=i+g.width(),k=h+g.height(),l=!(i>c||e>j||h>d||b>k);l&&f.push(g)}}),f}function c(){++j;var c=f.scrollTop(),d=f.scrollLeft(),e=d+f.width(),g=c+f.height(),i=b(c+k.top+200,e+k.right,g+k.bottom,d+k.left);a.each(i,function(a,b){var c=b.data("scrollSpy:ticks");"number"!=typeof c&&b.triggerHandler("scrollSpy:enter"),b.data("scrollSpy:ticks",j)}),a.each(h,function(a,b){var c=b.data("scrollSpy:ticks");"number"==typeof c&&c!==j&&(b.triggerHandler("scrollSpy:exit"),b.data("scrollSpy:ticks",null))}),h=i}function d(){f.trigger("scrollSpy:winSize")}function e(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:l(),g=null,f=a.apply(d,e),d=e=null};return function(){var j=l();h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k?(clearTimeout(g),g=null,h=j,f=a.apply(d,e),d=e=null):g||c.trailing===!1||(g=setTimeout(i,k)),f}}var f=a(window),g=[],h=[],i=!1,j=0,k={top:0,right:0,bottom:0,left:0},l=Date.now||function(){return(new Date).getTime()};a.scrollSpy=function(b,d){var h=[];b=a(b),b.each(function(b,c){g.push(a(c)),a(c).data("scrollSpy:id",b),a("a[href=#"+a(c).attr("id")+"]").click(function(b){b.preventDefault();var c=a(this.hash).offset().top+1;a(".tabs-wrapper").length?a("html, body").animate({scrollTop:c-60},{duration:400,easing:"easeOutCubic"}):a("html, body").animate({scrollTop:c},{duration:400,easing:"easeOutCubic"})})}),d=d||{throttle:100},k.top=d.offsetTop||0,k.right=d.offsetRight||0,k.bottom=d.offsetBottom||0,k.left=d.offsetLeft||0;var j=e(c,d.throttle||100),l=function(){a(document).ready(j)};return i||(f.on("scroll",l),f.on("resize",l),i=!0),setTimeout(l,0),b.on("scrollSpy:enter",function(){h=a.grep(h,function(a){return 0!=a.height()});var b=a(this);h[0]?(a("a[href=#"+h[0].attr("id")+"]").removeClass("active"),b.data("scrollSpy:id")<h[0].data("scrollSpy:id")?h.unshift(a(this)):h.push(a(this))):h.push(a(this)),a("a[href=#"+h[0].attr("id")+"]").addClass("active")}),b.on("scrollSpy:exit",function(){if(h=a.grep(h,function(a){return 0!=a.height()}),h[0]){a("a[href=#"+h[0].attr("id")+"]").removeClass("active");var b=a(this);h=a.grep(h,function(a){return a.attr("id")!=b.attr("id")}),a("a[href=#"+h[0].attr("id")+"]").addClass("active")}}),b},a.winSizeSpy=function(b){return a.winSizeSpy=function(){return f},b=b||{throttle:100},f.on("resize",e(d,b.throttle||100))},a.fn.scrollSpy=function(b){return a.scrollSpy(a(this),b)}}(jQuery),function(a){var b=a("input[type=text], input[type=password], input[type=email], textarea");b.each(function(){0!==a(this).val().length&&(console.log("not empty"),a(this).siblings("label").addClass("active"))}),b.focus(function(){a(this).siblings("label").addClass("active")}),b.blur(function(){0===a(this).val().length&&a(this).siblings("label").removeClass("active")}),a("textarea").each(function(){var b=a('<div class="hiddendiv common"></div>'),c=null;a("body").append(b),a(this).on("keyup keydown",function(){c=a(this).val(),c=c.replace(/\n/g,"<br>"),b.html(c+"<br>"),a(this).css("height",b.height())})});var c=a("input[type=range]"),d=!1;c.each(function(){var b=a('<span class="thumb"><span class="value"></span></span>');a(this).after(b)});var e=a(".range-field");e.on("mousedown",function(b){d=!0,a(this).addClass("active");var c=a(this).children(".thumb");c.hasClass("active")||c.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});var e=b.pageX-a(this).offset().left,f=a(this).outerWidth();0>e?e=0:e>f&&(e=f),c.addClass("active").css("left",e),c.find(".value").html(a(this).children("input[type=range]").val())}),e.on("mouseup",function(){d=!1,a(this).removeClass("active")}),e.on("mousemove",function(b){var c=a(this).children(".thumb");if(d){c.hasClass("active")||c.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"});var e=b.pageX-a(this).offset().left,f=a(this).outerWidth();0>e?e=0:e>f&&(e=f),c.addClass("active").css("left",e),c.find(".value").html(a(this).children("input[type=range]").val())}}),e.on("mouseout",function(){if(!d){var b=a(this).children(".thumb");b.hasClass("active")&&b.velocity({height:"0",width:"0",top:"10px",marginLeft:"-6px"},{duration:100}),b.removeClass("active")}});var f=function(b,c){var d=a('<div class="select-wrapper"></div>'),e=a('<ul id="select-options-'+c+'" class="dropdown-content"></ul>'),f=b.children("option"),g=f.first();f=f.slice(1),f.each(function(){e.append(a("<li><span>"+a(this).html()+"</span></li>"))}),e.find("li").each(function(c){a(this).click(function(){b.find("option").eq(c+1).prop("selected",!0),b.prev("span.select-dropdown").html(a(this).text())})}),b.wrap(d),b.before(a('<span class="select-dropdown" data-activates="select-options-'+c+'">'+g.html()+"</span>")),a("body").append(e)};a("select").not(".disabled").each(function(b){f(a(this),b)}),a(".select-dropdown").dropdown({hover:!1})}(jQuery),function(a){"function"==typeof define&&define.amd?define("picker",["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):this.Picker=a(jQuery)}(function(a){function b(f,g,i,l){function m(){return b._.node("div",b._.node("div",b._.node("div",b._.node("div",y.component.nodes(t.open),v.box),v.wrap),v.frame),v.holder)}function n(){w.data(g,y).addClass(v.input).attr("tabindex",-1).val(w.data("value")?y.get("select",u.format):f.value),u.editable||w.on("focus."+t.id+" click."+t.id,function(a){a.preventDefault(),y.$root[0].focus()}).on("keydown."+t.id,q),e(f,{haspopup:!0,expanded:!1,readonly:!1,owns:f.id+"_root"+(y._hidden?" "+y._hidden.id:"")})}function o(){y.$root.on({keydown:q,focusin:function(a){y.$root.removeClass(v.focused),a.stopPropagation()},"mousedown click":function(b){var c=b.target;c!=y.$root.children()[0]&&(b.stopPropagation(),"mousedown"!=b.type||a(c).is(":input")||"OPTION"==c.nodeName||(b.preventDefault(),y.$root[0].focus()))}}).on({focus:function(){w.addClass(v.target)},blur:function(){w.removeClass(v.target)}}).on("focus.toOpen",r).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var b=a(this),c=b.data(),d=b.hasClass(v.navDisabled)||b.hasClass(v.disabled),e=h();e=e&&(e.type||e.href),(d||e&&!a.contains(y.$root[0],e))&&y.$root[0].focus(),!d&&c.nav?y.set("highlight",y.component.item.highlight,{nav:c.nav}):!d&&"pick"in c?y.set("select",c.pick).close(!0):c.clear?y.clear().close(!0):c.close&&y.close(!0)}),e(y.$root[0],"hidden",!0)}function p(){var b;u.hiddenName===!0?(b=f.name,f.name=""):(b=["string"==typeof u.hiddenPrefix?u.hiddenPrefix:"","string"==typeof u.hiddenSuffix?u.hiddenSuffix:"_submit"],b=b[0]+f.name+b[1]),y._hidden=a('<input type=hidden name="'+b+'"'+(w.data("value")||f.value?' value="'+y.get("select",u.formatSubmit)+'"':"")+">")[0],w.on("change."+t.id,function(){y._hidden.value=f.value?y.get("select",u.formatSubmit):""}).after(y._hidden)}function q(a){var b=a.keyCode,c=/^(8|46)$/.test(b);return 27==b?(y.close(),!1):void((32==b||c||!t.open&&y.component.key[b])&&(a.preventDefault(),a.stopPropagation(),c?y.clear().close():y.open()))}function r(a){a.stopPropagation(),"focus"==a.type&&y.$root.addClass(v.focused),y.open()}if(!f)return b;var s=!1,t={id:f.id||"P"+Math.abs(~~(Math.random()*new Date))},u=i?a.extend(!0,{},i.defaults,l):l||{},v=a.extend({},b.klasses(),u.klass),w=a(f),x=function(){return this.start()},y=x.prototype={constructor:x,$node:w,start:function(){return t&&t.start?y:(t.methods={},t.start=!0,t.open=!1,t.type=f.type,f.autofocus=f==h(),f.readOnly=!u.editable,f.id=f.id||t.id,"text"!=f.type&&(f.type="text"),y.component=new i(y,u),y.$root=a(b._.node("div",m(),v.picker,'id="'+f.id+'_root" tabindex="0"')),o(),u.formatSubmit&&p(),n(),u.container?a(u.container).append(y.$root):w.after(y.$root),y.on({start:y.component.onStart,render:y.component.onRender,stop:y.component.onStop,open:y.component.onOpen,close:y.component.onClose,set:y.component.onSet}).on({start:u.onStart,render:u.onRender,stop:u.onStop,open:u.onOpen,close:u.onClose,set:u.onSet}),s=c(y.$root.children()[0]),f.autofocus&&y.open(),y.trigger("start").trigger("render"))},render:function(a){return a?y.$root.html(m()):y.$root.find("."+v.box).html(y.component.nodes(t.open)),y.trigger("render")},stop:function(){return t.start?(y.close(),y._hidden&&y._hidden.parentNode.removeChild(y._hidden),y.$root.remove(),w.removeClass(v.input).removeData(g),setTimeout(function(){w.off("."+t.id)},0),f.type=t.type,f.readOnly=!1,y.trigger("stop"),t.methods={},t.start=!1,y):y},open:function(c){return t.open?y:(w.addClass(v.active),e(f,"expanded",!0),setTimeout(function(){y.$root.addClass(v.opened),e(y.$root[0],"hidden",!1)},0),c!==!1&&(t.open=!0,s&&k.css("overflow","hidden").css("padding-right","+="+d()),y.$root[0].focus(),j.on("click."+t.id+" focusin."+t.id,function(a){var b=a.target;b!=f&&b!=document&&3!=a.which&&y.close(b===y.$root.children()[0])}).on("keydown."+t.id,function(c){var d=c.keyCode,e=y.component.key[d],f=c.target;27==d?y.close(!0):f!=y.$root[0]||!e&&13!=d?a.contains(y.$root[0],f)&&13==d&&(c.preventDefault(),f.click()):(c.preventDefault(),e?b._.trigger(y.component.key.go,y,[b._.trigger(e)]):y.$root.find("."+v.highlighted).hasClass(v.disabled)||y.set("select",y.component.item.highlight).close())})),y.trigger("open"))},close:function(a){return a&&(y.$root.off("focus.toOpen")[0].focus(),setTimeout(function(){y.$root.on("focus.toOpen",r)},0)),w.removeClass(v.active),e(f,"expanded",!1),setTimeout(function(){y.$root.removeClass(v.opened+" "+v.focused),e(y.$root[0],"hidden",!0)},0),t.open?(t.open=!1,s&&k.css("overflow","").css("padding-right","-="+d()),j.off("."+t.id),y.trigger("close")):y},clear:function(a){return y.set("clear",null,a)},set:function(b,c,d){var e,f,g=a.isPlainObject(b),h=g?b:{};if(d=g&&a.isPlainObject(c)?c:d||{},b){g||(h[b]=c);for(e in h)f=h[e],e in y.component.item&&(void 0===f&&(f=null),y.component.set(e,f,d)),("select"==e||"clear"==e)&&w.val("clear"==e?"":y.get(e,u.format)).trigger("change");y.render()}return d.muted?y:y.trigger("set",h)},get:function(a,c){if(a=a||"value",null!=t[a])return t[a];if("valueSubmit"==a){if(y._hidden)return y._hidden.value;a=value}if("value"==a)return f.value;if(a in y.component.item){if("string"==typeof c){var d=y.component.get(a);return d?b._.trigger(y.component.formats.toString,y.component,[c,d]):""}return y.component.get(a)}},on:function(b,c,d){var e,f,g=a.isPlainObject(b),h=g?b:{};if(b){g||(h[b]=c);for(e in h)f=h[e],d&&(e="_"+e),t.methods[e]=t.methods[e]||[],t.methods[e].push(f)}return y},off:function(){var a,b,c=arguments;for(a=0,namesCount=c.length;namesCount>a;a+=1)b=c[a],b in t.methods&&delete t.methods[b];return y},trigger:function(a,c){var d=function(a){var d=t.methods[a];d&&d.map(function(a){b._.trigger(a,y,[c])})};return d("_"+a),d(a),y}};return new x}function c(a){var b,c="position";return a.currentStyle?b=a.currentStyle[c]:window.getComputedStyle&&(b=getComputedStyle(a)[c]),"fixed"==b}function d(){if(k.height()<=i.height())return 0;var b=a('<div style="visibility:hidden;width:100px" />').appendTo("body"),c=b[0].offsetWidth;b.css("overflow","scroll");var d=a('<div style="width:100%" />').appendTo(b),e=d[0].offsetWidth;return b.remove(),c-e}function e(b,c,d){if(a.isPlainObject(c))for(var e in c)f(b,e,c[e]);else f(b,c,d)}function f(a,b,c){a.setAttribute(("role"==b?"":"aria-")+b,c)}function g(b,c){a.isPlainObject(b)||(b={attribute:c}),c="";for(var d in b){var e=("role"==d?"":"aria-")+d,f=b[d];c+=null==f?"":e+'="'+b[d]+'"'}return c}function h(){try{return document.activeElement}catch(a){}}var i=a(window),j=a(document),k=a(document.documentElement);return b.klasses=function(a){return a=a||"picker",{picker:a,opened:a+"--opened",focused:a+"--focused",input:a+"__input",active:a+"__input--active",target:a+"__input--target",holder:a+"__holder",frame:a+"__frame",wrap:a+"__wrap",box:a+"__box"}},b._={group:function(a){for(var c,d="",e=b._.trigger(a.min,a);e<=b._.trigger(a.max,a,[e]);e+=a.i)c=b._.trigger(a.item,a,[e]),d+=b._.node(a.node,c[0],c[1],c[2]);return d},node:function(b,c,d,e){return c?(c=a.isArray(c)?c.join(""):c,d=d?' class="'+d+'"':"",e=e?" "+e:"","<"+b+d+e+">"+c+"</"+b+">"):""},lead:function(a){return(10>a?"0":"")+a},trigger:function(a,b,c){return"function"==typeof a?a.apply(b,c||[]):a},digits:function(a){return/\d/.test(a[1])?2:1},isDate:function(a){return{}.toString.call(a).indexOf("Date")>-1&&this.isInteger(a.getDate())},isInteger:function(a){return{}.toString.call(a).indexOf("Number")>-1&&a%1===0},ariaAttr:g},b.extend=function(c,d){a.fn[c]=function(e,f){var g=this.data(c);return"picker"==e?g:g&&"string"==typeof e?b._.trigger(g[e],g,[f]):this.each(function(){var f=a(this);f.data(c)||new b(this,c,d,e)})},a.fn[c].defaults=d.defaults},b}),function(a){"function"==typeof define&&define.amd?define(["picker","jquery"],a):"object"==typeof exports?module.exports=a(require("./picker.js"),require("jquery")):a(Picker,jQuery)}(function(a,b){function c(a,b){var c=this,d=a.$node[0],e=d.value,f=a.$node.data("value"),g=f||e,h=f?b.formatSubmit:b.format,i=function(){return d.currentStyle?"rtl"==d.currentStyle.direction:"rtl"==getComputedStyle(a.$root[0]).direction};c.settings=b,c.$node=a.$node,c.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},c.item={},c.item.clear=null,c.item.disable=(b.disable||[]).slice(0),c.item.enable=-function(a){return a[0]===!0?a.shift():-1}(c.item.disable),c.set("min",b.min).set("max",b.max).set("now"),g?c.set("select",g,{format:h}):c.set("select",null).set("highlight",c.item.now),c.key={40:7,38:-7,39:function(){return i()?-1:1},37:function(){return i()?1:-1},go:function(a){var b=c.item.highlight,d=new Date(b.year,b.month,b.date+a);c.set("highlight",d,{interval:a}),this.render()}},a.on("render",function(){a.$root.find("."+b.klass.selectMonth).on("change",function(){var c=this.value;c&&(a.set("highlight",[a.get("view").year,c,a.get("highlight").date]),a.$root.find("."+b.klass.selectMonth).trigger("focus"))}),a.$root.find("."+b.klass.selectYear).on("change",function(){var c=this.value;c&&(a.set("highlight",[c,a.get("view").month,a.get("highlight").date]),a.$root.find("."+b.klass.selectYear).trigger("focus"))})},1).on("open",function(){var d="";c.disabled(c.get("now"))&&(d=":not(."+b.klass.buttonToday+")"),a.$root.find("button"+d+", select").attr("disabled",!1)},1).on("close",function(){a.$root.find("button, select").attr("disabled",!0)},1)}var d=7,e=6,f=a._,g=(new Date).getTimezoneOffset(),h=60*g*1e3,i=function(a,b){return a.getDate()===b.getUTCDate()&&a.getMonth()===b.getUTCMonth()&&a.getFullYear()===b.getUTCFullYear()},j=function(a,b){return new Date(a.year,a.month,a.date)<new Date(b.year,b.month,b.date)},k=function(a,b){return new Date(a.year,a.month,a.date)>new Date(b.year,b.month,b.date)};c.prototype.set=function(a,b,c){var d=this,e=d.item;return null===b?("clear"==a&&(a="select"),e[a]=b,d):(e["enable"==a?"disable":"flip"==a?"enable":a]=d.queue[a].split(" ").map(function(e){return b=d[e](a,b,c)}).pop(),"select"==a?d.set("highlight",e.select,c):"highlight"==a?d.set("view",e.highlight,c):a.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&d.disabled(e.select)&&d.set("select",e.select,c),e.highlight&&d.disabled(e.highlight)&&d.set("highlight",e.highlight,c)),d)},c.prototype.get=function(a){return this.item[a]},c.prototype.create=function(a,c,d){return d=d||{},c=void 0===c?a:c,c==-1/0||1/0==c?{year:c,month:c,date:c,day:c,obj:c,pick:c}:(c===!0?(c=new Date,d.rel&&c.setDate(c.getDate()+d.rel)):b.isPlainObject(c)&&f.isInteger(c.pick)&&(c=[c.year,c.month,c.date]),Array.isArray(c)&&(c=new Date(c[0],c[1],c[2])),c=new Date(c),c.setHours(-g/60,-g%60,0,0),c=new Date(c.getTime()+h),{year:c.getFullYear(),month:c.getMonth(),date:c.getDate(),day:c.getDay(),obj:c,pick:c.getTime()})},c.prototype.createRange=function(a,c){var d=this,e=function(a){return a===!0||b.isArray(a)||f.isDate(a)?d.create(a):a};return f.isInteger(a)||(a=e(a)),f.isInteger(c)||(c=e(c)),f.isInteger(a)&&b.isPlainObject(c)?a=[c.year,c.month,c.date+a]:f.isInteger(c)&&b.isPlainObject(a)&&(c=[a.year,a.month,a.date+c]),{from:e(a),to:e(c)}},c.prototype.withinRange=function(a,b){return a=this.createRange(a.from,a.to),b.pick>=a.from.pick&&b.pick<=a.to.pick},c.prototype.overlapRanges=function(a,b){var c=this;return a=c.createRange(a.from,a.to),b=c.createRange(b.from,b.to),c.withinRange(a,b.from)||c.withinRange(a,b.to)||c.withinRange(b,a.from)||c.withinRange(b,a.to)},c.prototype.now=function(){return!0},c.prototype.navigate=function(a,c,d){var e,f,g,h,i=b.isArray(c),j=b.isPlainObject(c),k=this.item.view,l=100;if(i||j){for(j?(f=c.year,g=c.month,h=c.date):(f=+c[0],g=+c[1],h=+c[2]),d&&d.nav&&k&&k.month!==g&&(f=k.year,g=k.month),e=new Date(f,g+(d&&d.nav?d.nav:0),1),f=e.getFullYear(),g=e.getMonth();l&&new Date(f,g,h).getMonth()!==g;)if(h-=1,l-=1,!l)throw"Fell into an infinite loop while navigating to "+new Date(f,g,h)+".";c=[f,g,h]}return c},c.prototype.measure=function(a,b,c){c=c||{};var d=this;return b?"string"==typeof b?b=d.parse(a,b):f.isInteger(b)&&(c.rel=b,b=!0):b="min"==a?-1/0:1/0,b},c.prototype.viewset=function(a,b){return this.create([b.year,b.month,1])},c.prototype.validate=function(a,c,d){var e,g,h,i,j=this,k=c,l=d&&d.interval?d.interval:1,m=-1===j.item.enable,n=j.item.min,o=j.item.max,p=m&&j.item.disable.filter(function(a){if(b.isArray(a)){var d=j.create(a).pick;d<c.pick?e=!0:d>c.pick&&(g=!0)}return f.isInteger(a)}).length,q=100;if((!d||!d.nav)&&(!m&&j.disabled(c)||m&&j.disabled(c)&&(p||e||g)||!m&&(c.pick<=n.pick||c.pick>=o.pick)))for(m&&!p&&(!g&&l>0||!e&&0>l)&&(l*=-1);q&&j.disabled(c);){if(q-=1,!q)throw"Fell into an infinite loop while validating "+c.obj+".";if(Math.abs(l)>1&&(c.month<k.month||c.month>k.month)&&(c=k,l=l>0?1:-1),c.pick<=n.pick?(h=!0,l=1,c=j.create([n.year,n.month,n.date+(c.pick===n.pick?0:-1)])):c.pick>=o.pick&&(i=!0,l=-1,c=j.create([o.year,o.month,o.date+(c.pick===o.pick?0:1)])),h&&i)break;c=j.create([c.year,c.month,c.date+l])}return c},c.prototype.disabled=function(a){var c=this,d=c.item.disable.filter(function(d){return f.isInteger(d)?a.day===(c.settings.firstDay?d:d-1)%7:b.isArray(d)||f.isDate(d)?a.pick===c.create(d).pick:b.isPlainObject(d)?c.withinRange(d,a):void 0});return d=d.length&&!d.filter(function(a){return b.isArray(a)&&"inverted"==a[3]||b.isPlainObject(a)&&a.inverted}).length,-1===c.item.enable?!d:d||a.pick<c.item.min.pick||a.pick>c.item.max.pick},c.prototype.parse=function(a,b,c){var d=this,e={};return b&&"string"==typeof b?(c&&c.format||(c=c||{},c.format=d.settings.format),d.formats.toArray(c.format).map(function(a){var c=d.formats[a],g=c?f.trigger(c,d,[b,e]):a.replace(/^!/,"").length;c&&(e[a]=b.substr(0,g)),b=b.substr(g)}),[e.yyyy||e.yy,+(e.mm||e.m)-1,e.dd||e.d]):b},c.prototype.formats=function(){function a(a,b,c){var d=a.match(/\w+/)[0];return c.mm||c.m||(c.m=b.indexOf(d)+1),d.length}function b(a){return a.match(/\w+/)[0].length}return{d:function(a,b){return a?f.digits(a):b.date},dd:function(a,b){return a?2:f.lead(b.date)},ddd:function(a,c){return a?b(a):this.settings.weekdaysShort[c.day]},dddd:function(a,c){return a?b(a):this.settings.weekdaysFull[c.day]},m:function(a,b){return a?f.digits(a):b.month+1},mm:function(a,b){return a?2:f.lead(b.month+1)},mmm:function(b,c){var d=this.settings.monthsShort;return b?a(b,d,c):d[c.month]},mmmm:function(b,c){var d=this.settings.monthsFull;return b?a(b,d,c):d[c.month]},yy:function(a,b){return a?2:(""+b.year).slice(2)},yyyy:function(a,b){return a?4:b.year},toArray:function(a){return a.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(a,b){var c=this;return c.formats.toArray(a).map(function(a){return f.trigger(c.formats[a],c,[0,b])||a.replace(/^!/,"")}).join("")}}}(),c.prototype.isDateExact=function(a,c){var d=this;return f.isInteger(a)&&f.isInteger(c)||"boolean"==typeof a&&"boolean"==typeof c?a===c:(f.isDate(a)||b.isArray(a))&&(f.isDate(c)||b.isArray(c))?d.create(a).pick===d.create(c).pick:b.isPlainObject(a)&&b.isPlainObject(c)?d.isDateExact(a.from,c.from)&&d.isDateExact(a.to,c.to):!1},c.prototype.isDateOverlap=function(a,c){var d=this,e=d.settings.firstDay?1:0;return f.isInteger(a)&&(f.isDate(c)||b.isArray(c))?(a=a%7+e,a===d.create(c).day+1):f.isInteger(c)&&(f.isDate(a)||b.isArray(a))?(c=c%7+e,c===d.create(a).day+1):b.isPlainObject(a)&&b.isPlainObject(c)?d.overlapRanges(a,c):!1},c.prototype.flipEnable=function(a){var b=this.item;b.enable=a||(-1==b.enable?1:-1)},c.prototype.deactivate=function(a,c){var d=this,e=d.item.disable.slice(0);return"flip"==c?d.flipEnable():c===!1?(d.flipEnable(1),e=[]):c===!0?(d.flipEnable(-1),e=[]):c.map(function(a){for(var c,g=0;g<e.length;g+=1)if(d.isDateExact(a,e[g])){c=!0;break}c||(f.isInteger(a)||f.isDate(a)||b.isArray(a)||b.isPlainObject(a)&&a.from&&a.to)&&e.push(a)}),e},c.prototype.activate=function(a,c){var d=this,e=d.item.disable,g=e.length;return"flip"==c?d.flipEnable():c===!0?(d.flipEnable(1),e=[]):c===!1?(d.flipEnable(-1),e=[]):c.map(function(a){var c,h,i,j;for(i=0;g>i;i+=1){if(h=e[i],d.isDateExact(h,a)){c=e[i]=null,j=!0;break}if(d.isDateOverlap(h,a)){b.isPlainObject(a)?(a.inverted=!0,c=a):b.isArray(a)?(c=a,c[3]||c.push("inverted")):f.isDate(a)&&(c=[a.getFullYear(),a.getMonth(),a.getDate(),"inverted"]);break}}if(c)for(i=0;g>i;i+=1)if(d.isDateExact(e[i],a)){e[i]=null;break}if(j)for(i=0;g>i;i+=1)if(d.isDateOverlap(e[i],a)){e[i]=null;break}c&&e.push(c)}),e.filter(function(a){return null!=a})},c.prototype.nodes=function(a){var b=this,c=b.settings,g=b.item,h=g.now,l=g.select,m=g.highlight,n=g.view,o=g.disable,p=g.min,q=g.max,r=function(a,b){return c.firstDay&&(a.push(a.shift()),b.push(b.shift())),f.node("thead",f.node("tr",f.group({min:0,max:d-1,i:1,node:"th",item:function(d){return[a[d],c.klass.weekdays,'scope=col title="'+b[d]+'"']}})))}((c.showWeekdaysFull?c.weekdaysFull:c.weekdaysLetter).slice(0),c.weekdaysFull.slice(0)),s=function(a){return f.node("div"," ",c.klass["nav"+(a?"Next":"Prev")]+(a&&n.year>=q.year&&n.month>=q.month||!a&&n.year<=p.year&&n.month<=p.month?" "+c.klass.navDisabled:""),"data-nav="+(a||-1)+" "+f.ariaAttr({role:"button",controls:b.$node[0].id+"_table"})+' title="'+(a?c.labelMonthNext:c.labelMonthPrev)+'"')},t=function(d){var e=c.showMonthsShort?c.monthsShort:c.monthsFull;return"short_months"==d&&(e=c.monthsShort),c.selectMonths?f.node("select",f.group({min:0,max:11,i:1,node:"option",item:function(a){return[e[a],0,"value="+a+(n.month==a?" selected":"")+(n.year==p.year&&a<p.month||n.year==q.year&&a>q.month?" disabled":"")]}}),c.klass.selectMonth,(a?"":"disabled")+" "+f.ariaAttr({controls:b.$node[0].id+"_table"})+' title="'+c.labelMonthSelect+'"'):"short_months"==d?f.node("div",e[n.month]):f.node("div",e[n.month],c.klass.month)},u=function(d){var e=n.year,g=c.selectYears===!0?5:~~(c.selectYears/2);if(g){var h=p.year,i=q.year,j=e-g,k=e+g;if(h>j&&(k+=h-j,j=h),k>i){var l=j-h,m=k-i;j-=l>m?m:l,k=i}return f.node("select",f.group({min:j,max:k,i:1,node:"option",item:function(a){return[a,0,"value="+a+(e==a?" selected":"")]}}),c.klass.selectYear,(a?"":"disabled")+" "+f.ariaAttr({controls:b.$node[0].id+"_table"})+' title="'+c.labelYearSelect+'"')}return"raw"==d?f.node("div",e):f.node("div",e,c.klass.year)};return createDayLabel=function(){return null!=l?f.node("div",l.date):f.node("div",h.date)},createWeekdayLabel=function(){var a;a=null!=l?l.day:h.day;var b=c.weekdaysFull[a];return b},f.node("div",f.node("div",createWeekdayLabel(),"picker__weekday-display")+f.node("div",t("short_months"),c.klass.month_display)+f.node("div",createDayLabel(),c.klass.day_display)+f.node("div",u("raw"),c.klass.year_display),c.klass.date_display)+f.node("div",f.node("div",(c.selectYears?u()+t():t()+u())+s()+s(1),c.klass.header)+f.node("table",r+f.node("tbody",f.group({min:0,max:e-1,i:1,node:"tr",item:function(a){var e=c.firstDay&&0===b.create([n.year,n.month,1]).day?-7:0;return[f.group({min:d*a-n.day+e+1,max:function(){return this.min+d-1},i:1,node:"td",item:function(a){a=b.create([n.year,n.month,a+(c.firstDay?1:0)]);var d=i(h.obj,a.obj),e=l&&i(l.obj,a.obj),g=m&&i(m.obj,a.obj),r=o&&b.disabled(a)||j(a,p)||k(a,q);return[f.node("div",a.obj.getUTCDate(),function(b){return b.push(n.month==a.month?c.klass.infocus:c.klass.outfocus),d&&b.push(c.klass.now),e&&b.push(c.klass.selected),g&&b.push(c.klass.highlighted),r&&b.push(c.klass.disabled),b.join(" ")}([c.klass.day]),"data-pick="+a.pick+" "+f.ariaAttr({role:"gridcell",selected:e&&b.$node.val()===f.trigger(b.formats.toString,b,[c.format,a])?!0:null,activedescendant:g?!0:null,disabled:r?!0:null})),"",f.ariaAttr({role:"presentation"})]}})]}})),c.klass.table,'id="'+b.$node[0].id+'_table" '+f.ariaAttr({role:"grid",controls:b.$node[0].id,readonly:!0})),c.klass.calendar_container)+f.node("div",f.node("button",c.today,"btn-flat picker__today","type=button data-pick="+h.pick+(a&&!b.disabled(h)?"":" disabled")+" "+f.ariaAttr({controls:b.$node[0].id}))+f.node("button",c.close,"btn-flat picker__close","type=button data-close=true "+(a?"":" disabled")+" "+f.ariaAttr({controls:b.$node[0].id})),c.klass.footer)},c.defaults=function(a){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Close",format:"d mmmm, yyyy",klass:{table:a+"table",header:a+"header",date_display:a+"date-display",day_display:a+"day-display",month_display:a+"month-display",year_display:a+"year-display",calendar_container:a+"calendar-container",navPrev:a+"nav--prev",navNext:a+"nav--next",navDisabled:a+"nav--disabled",month:a+"month",year:a+"year",selectMonth:a+"select--month",selectYear:a+"select--year",weekdays:a+"weekday",day:a+"day",disabled:a+"day--disabled",selected:a+"day--selected",highlighted:a+"day--highlighted",now:a+"day--today",infocus:a+"day--infocus",outfocus:a+"day--outfocus",footer:a+"footer",buttonClear:a+"button--clear",buttonToday:a+"button--today",buttonClose:a+"button--close"}}}(a.klasses().picker+"__"),a.extend("pickadate",c)}),function(a){"use strict";function b(){function a(a,b){return Math.floor(Math.random()*(b-a+1))+a}function b(a,b){return Math.random()*(b-a)+a}function c(a,b,c){return b>a?a=b:a>c&&(a=c),a}function d(a,b){switch(a){case"hex":for(var c=0;c<b.length;c++)b[c]=f.HSV_to_HEX(b[c]);break;case"rgb":for(var c=0;c<b.length;c++)b[c]=f.HSV_to_RGB(b[c]);break;case"rgb-string":for(var c=0;c<b.length;c++){var d=f.HSV_to_RGB(b[c]);b[c]="rgb("+d.r+","+d.g+","+d.b+")"}break;case"hsv":break;default:console.log("Format not recognized.")}return b}function e(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}var f={},g={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgrey:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",grey:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgrey:"D3D3D3",lightgreen:"90EE90",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",rebeccapurple:"663399",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"},h={hue:null,saturation:null,value:null,base_color:"",greyscale:!1,grayscale:!1,golden:!0,full_random:!1,colors_returned:1,format:"hex"},i={scheme_type:"analogous",format:"hex"};return f.NAME_to_HEX=function(a){return a in g?g[a]:void console.log("Color name not recognized.")},f.NAME_to_HSV=function(a){return f.HEX_to_RGB(f.NAME_to_HEX(a))},f.NAME_to_HSV=function(a){return f.HEX_to_HSV(f.NAME_to_HEX(a))},f.HEX_to_RGB=function(a){var b=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(b,function(a,b,c,d){return b+b+c+c+d+d});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:null},f.RGB_to_HEX=function(a){return"#"+((1<<24)+(a.r<<16)+(a.g<<8)+a.b).toString(16).slice(1)},f.HSV_to_RGB=function(a){var b,c,d,e=a.h/360,f=a.s,g=a.v,h=Math.floor(6*e),i=6*e-h,j=g*(1-f),k=g*(1-i*f),l=g*(1-(1-i)*f);
switch(h%6){case 0:b=g,c=l,d=j;break;case 1:b=k,c=g,d=j;break;case 2:b=j,c=g,d=l;break;case 3:b=j,c=k,d=g;break;case 4:b=l,c=j,d=g;break;case 5:b=g,c=j,d=k}return{r:Math.floor(255*b),g:Math.floor(255*c),b:Math.floor(255*d)}},f.RGB_to_HSV=function(a){var b,c,d,e=0,f=0,g=0;b=a.r/255,c=a.g/255,d=a.b/255;var h=Math.min(b,Math.min(c,d)),i=Math.max(b,Math.max(c,d));if(h==i)return g=h,{h:0,s:0,v:g};var j=b==h?c-d:d==h?b-c:d-b,k=b==h?3:d==h?1:5;return e=60*(k-j/(i-h)),f=(i-h)/i,g=i,{h:e,s:f,v:g}},f.HSV_to_HEX=function(a){return f.RGB_to_HEX(f.HSV_to_RGB(a))},f.HEX_to_HSV=function(a){return f.RGB_to_HSV(f.HEX_to_RGB(a))},f.make_scheme=function(a,b){function f(a){return{h:a.h,s:a.s,v:a.v}}var g=e(i);if(null!=b)for(var h in b)b.hasOwnProperty(h)&&(g[h]=b[h]);var j=[a];switch(g.scheme_type.toLowerCase()){case"monochromatic":case"mono":for(var k=1;2>=k;k++){var l=f(a),m=l.s+.1*k;m=c(m,0,1);var n=l.v+.1*k;n=c(n,0,1),l.s=m,l.v=n,j.push(l)}for(var k=1;2>k;k++){var l=f(a),m=l.s-.1*k;m=c(m,0,1);var n=l.v-.1*k;n=c(n,0,1),l.s=m,l.v=n,j.push(l)}break;case"complementary":case"complement":var l=f(a);l.h+=180,l.h>360&&(l.h-=360),j.push(l);break;case"split-complementary":case"split-complement":case"split":var l=f(a);l.h+=165,l.h>360&&(l.h-=360),j.push(l);var l=f(a);l.h-=165,l.h<0&&(l.h+=360),j.push(l);break;case"double-complementary":case"double-complement":case"double":var l=f(a);l.h+=180,l.h>360&&(l.h-=360),j.push(l);var l=f(a);l.h+=30,l.h>360&&(l.h-=360);var o=f(l);j.push(l),o.h+=180,o.h>360&&(o.h-=360),j.push(o);break;case"analogous":case"ana":for(var k=1;5>=k;k++){var l=f(a);l.h+=20*k,l.h>360&&(l.h-=360),j.push(l)}break;case"triadic":case"triad":case"tri":for(var k=1;3>k;k++){var l=f(a);l.h+=120*k,l.h>360&&(l.h-=360),j.push(l)}break;default:console.log("Color scheme not recognized.")}return d(g.format.toLowerCase(),j),j},f.make_color=function(e){var i=[],j={};for(var k in h)h.hasOwnProperty(k)&&(j[k]=h[k]);if(null!=e)for(var k in e)e.hasOwnProperty(k)&&(j[k]=e[k]);var l;j.base_color.length>0&&(l=g[j.base_color.toLowerCase()],l=f.HEX_to_HSV(l));for(var m=0;m<j.colors_returned;m++){var n,o,p,q=a(0,360);null!=l?(n=a(l.h-5,l.h+5),o=b(.4,.85),p=b(.4,.85),i.push({h:n,s:o,v:p})):(n=1==j.greyscale||1==j.grayscale?0:1==j.golden?q+q/.618033988749895:null==j.hue||1==j.full_random?q:c(j.hue,0,360),o=1==j.greyscale||1==j.grayscale?0:1==j.full_random?b(0,1):null==j.saturation?.4:c(j.saturation,0,1),p=1==j.full_random?b(0,1):1==j.greyscale||1==j.grayscale?b(.15,.75):null==j.value?.75:c(j.value,0,1),i.push({h:n,s:o,v:p}))}return d(j.format.toLowerCase(),i),1===i.length?i[0]:i},f}"undefined"==typeof Please&&(a.Please=b())}(window),function(){var a=["Bytes","kB","MB","GB","TB","PB","EB"];window.prettySize=function(b,c,d){var e,f;return a.forEach(function(a,f){d&&(a=a.slice(0,1));var g,h=Math.pow(1024,f);h>b||(g=(b/h).toFixed(1)+"",g.indexOf(".0")===g.length-2&&(g=g.slice(0,-2)),e=g+(c?"":" ")+a)}),e||(f=d?a[0].slice(0,1):a[0],e="0"+(c?"":" ")+f),e}}(),Rlite.prototype={add:function(a,b){for(var c,d,e=a.split("/"),f=this.rules,g=0;g<e.length;++g)c=e[g],d=c.length&&":"==c.charAt(0)?":":c,f[d]?f=f[d]:(f=f[d]={},":"==d&&(f["@name"]=c.substr(1,c.length-1)));f["@"]=b},run:function(a){a&&a.length&&(a=a.replace("/?","?"),"/"==a.charAt(0)&&(a=a.substr(1,a.length)),a.length&&"/"==a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)));var b=this.rules,c=a.split("?",2),d=c[0].split("/",50),e={};return function(){for(var a=0;a<d.length&&b;++a){var c=d[a],f=c.toLowerCase(),g=b[f];!g&&(g=b[":"])&&(e[g["@name"]]=c),b=g}}(),function(a){for(var b,c=a.split("&",50),d=0;d<c.length;++d)b=c[d].split("=",2),2==b.length&&(e[b[0]]=b[1])}(2==c.length?c[1]:""),b&&b["@"]?(b["@"]({url:a,params:e}),!0):!1}},function(a){function b(a){return a.replace(/[^a-zA-Z- ]+/g,"").replace("/ {2,}/"," ").toLowerCase().split(" ")}afinn={abandon:-2,abandoned:-2,abandons:-2,abducted:-2,abduction:-2,abductions:-2,abhor:-3,abhorred:-3,abhorrent:-3,abhors:-3,abilities:2,ability:2,aboard:1,absentee:-1,absentees:-1,absolve:2,absolved:2,absolves:2,absolving:2,absorbed:1,abuse:-3,abused:-3,abuses:-3,abusive:-3,accept:1,accepted:1,accepting:1,accepts:1,accident:-2,accidental:-2,accidentally:-2,accidents:-2,accomplish:2,accomplished:2,accomplishes:2,accusation:-2,accusations:-2,accuse:-2,accused:-2,accuses:-2,accusing:-2,ache:-2,achievable:1,aching:-2,acquit:2,acquits:2,acquitted:2,acquitting:2,acrimonious:-3,active:1,adequate:1,admire:3,admired:3,admires:3,admiring:3,admit:-1,admits:-1,admitted:-1,admonish:-2,admonished:-2,adopt:1,adopts:1,adorable:3,adore:3,adored:3,adores:3,advanced:1,advantage:2,advantages:2,adventure:2,adventures:2,adventurous:2,affected:-1,affection:3,affectionate:3,afflicted:-1,affronted:-1,afraid:-2,aggravate:-2,aggravated:-2,aggravates:-2,aggravating:-2,aggression:-2,aggressions:-2,aggressive:-2,aghast:-2,agog:2,agonise:-3,agonised:-3,agonises:-3,agonising:-3,agonize:-3,agonized:-3,agonizes:-3,agonizing:-3,agree:1,agreeable:2,agreed:1,agreement:1,agrees:1,alarm:-2,alarmed:-2,alarmist:-2,alarmists:-2,alas:-1,alert:-1,alienation:-2,alive:1,allergic:-2,allow:1,alone:-2,amaze:2,amazed:2,amazes:2,amazing:4,ambitious:2,ambivalent:-1,amuse:3,amused:3,amusement:3,amusements:3,anger:-3,angers:-3,angry:-3,anguish:-3,anguished:-3,animosity:-2,annoy:-2,annoyance:-2,annoyed:-2,annoying:-2,annoys:-2,antagonistic:-2,anti:-1,anticipation:1,anxiety:-2,anxious:-2,apathetic:-3,apathy:-3,apeshit:-3,apocalyptic:-2,apologise:-1,apologised:-1,apologises:-1,apologising:-1,apologize:-1,apologized:-1,apologizes:-1,apologizing:-1,apology:-1,appalled:-2,appalling:-2,appease:2,appeased:2,appeases:2,appeasing:2,applaud:2,applauded:2,applauding:2,applauds:2,applause:2,appreciate:2,appreciated:2,appreciates:2,appreciating:2,appreciation:2,apprehensive:-2,approval:2,approved:2,approves:2,ardent:1,arrest:-2,arrested:-3,arrests:-2,arrogant:-2,ashame:-2,ashamed:-2,ass:-4,assassination:-3,assassinations:-3,asset:2,assets:2,assfucking:-4,asshole:-4,astonished:2,astound:3,astounded:3,astounding:3,astoundingly:3,astounds:3,attack:-1,attacked:-1,attacking:-1,attacks:-1,attract:1,attracted:1,attracting:2,attraction:2,attractions:2,attracts:1,audacious:3,authority:1,avert:-1,averted:-1,averts:-1,avid:2,avoid:-1,avoided:-1,avoids:-1,await:-1,awaited:-1,awaits:-1,award:3,awarded:3,awards:3,awesome:4,awful:-3,awkward:-2,axe:-1,axed:-1,backed:1,backing:2,backs:1,bad:-3,badass:-3,badly:-3,bailout:-2,bamboozle:-2,bamboozled:-2,bamboozles:-2,ban:-2,banish:-1,bankrupt:-3,bankster:-3,banned:-2,bargain:2,barrier:-2,bastard:-5,bastards:-5,battle:-1,battles:-1,beaten:-2,beatific:3,beating:-1,beauties:3,beautiful:3,beautifully:3,beautify:3,belittle:-2,belittled:-2,beloved:3,benefit:2,benefits:2,benefitted:2,benefitting:2,bereave:-2,bereaved:-2,bereaves:-2,bereaving:-2,best:3,betray:-3,betrayal:-3,betrayed:-3,betraying:-3,betrays:-3,better:2,bias:-1,biased:-2,big:1,bitch:-5,bitches:-5,bitter:-2,bitterly:-2,bizarre:-2,blah:-2,blame:-2,blamed:-2,blames:-2,blaming:-2,bless:2,blesses:2,blessing:3,blind:-1,bliss:3,blissful:3,blithe:2,block:-1,blockbuster:3,blocked:-1,blocking:-1,blocks:-1,bloody:-3,blurry:-2,boastful:-2,bold:2,boldly:2,bomb:-1,boost:1,boosted:1,boosting:1,boosts:1,bore:-2,bored:-2,boring:-3,bother:-2,bothered:-2,bothers:-2,bothersome:-2,boycott:-2,boycotted:-2,boycotting:-2,boycotts:-2,brainwashing:-3,brave:2,breakthrough:3,breathtaking:5,bribe:-3,bright:1,brightest:2,brightness:1,brilliant:4,brisk:2,broke:-1,broken:-1,brooding:-2,bullied:-2,bullshit:-4,bully:-2,bullying:-2,bummer:-2,buoyant:2,burden:-2,burdened:-2,burdening:-2,burdens:-2,calm:2,calmed:2,calming:2,calms:2,"can't stand":-3,cancel:-1,cancelled:-1,cancelling:-1,cancels:-1,cancer:-1,capable:1,captivated:3,care:2,carefree:1,careful:2,carefully:2,careless:-2,cares:2,"cashing in":-2,casualty:-2,catastrophe:-3,catastrophic:-4,cautious:-1,celebrate:3,celebrated:3,celebrates:3,celebrating:3,censor:-2,censored:-2,censors:-2,certain:1,chagrin:-2,chagrined:-2,challenge:-1,chance:2,chances:2,chaos:-2,chaotic:-2,charged:-3,charges:-2,charm:3,charming:3,charmless:-3,chastise:-3,chastised:-3,chastises:-3,chastising:-3,cheat:-3,cheated:-3,cheater:-3,cheaters:-3,cheats:-3,cheer:2,cheered:2,cheerful:2,cheering:2,cheerless:-2,cheers:2,cheery:3,cherish:2,cherished:2,cherishes:2,cherishing:2,chic:2,childish:-2,chilling:-1,choke:-2,choked:-2,chokes:-2,choking:-2,clarifies:2,clarity:2,clash:-2,classy:3,clean:2,cleaner:2,clear:1,cleared:1,clearly:1,clears:1,clever:2,clouded:-1,clueless:-2,cock:-5,cocksucker:-5,cocksuckers:-5,cocky:-2,coerced:-2,collapse:-2,collapsed:-2,collapses:-2,collapsing:-2,collide:-1,collides:-1,colliding:-1,collision:-2,collisions:-2,colluding:-3,combat:-1,combats:-1,comedy:1,comfort:2,comfortable:2,comforting:2,comforts:2,commend:2,commended:2,commit:1,commitment:2,commits:1,committed:1,committing:1,compassionate:2,compelled:1,competent:2,competitive:2,complacent:-2,complain:-2,complained:-2,complains:-2,comprehensive:2,conciliate:2,conciliated:2,conciliates:2,conciliating:2,condemn:-2,condemnation:-2,condemned:-2,condemns:-2,confidence:2,confident:2,conflict:-2,conflicting:-2,conflictive:-2,conflicts:-2,confuse:-2,confused:-2,confusing:-2,congrats:2,congratulate:2,congratulation:2,congratulations:2,consent:2,consents:2,consolable:2,conspiracy:-3,constrained:-2,contagion:-2,contagions:-2,contagious:-1,contempt:-2,contemptuous:-2,contemptuously:-2,contend:-1,contender:-1,contending:-1,contentious:-2,contestable:-2,controversial:-2,controversially:-2,convince:1,convinced:1,convinces:1,convivial:2,cool:1,"cool stuff":3,cornered:-2,corpse:-1,costly:-2,courage:2,courageous:2,courteous:2,courtesy:2,"cover-up":-3,coward:-2,cowardly:-2,coziness:2,cramp:-1,crap:-3,crash:-2,crazier:-2,craziest:-2,crazy:-2,creative:2,crestfallen:-2,cried:-2,cries:-2,crime:-3,criminal:-3,criminals:-3,crisis:-3,critic:-2,criticism:-2,criticize:-2,criticized:-2,criticizes:-2,criticizing:-2,critics:-2,cruel:-3,cruelty:-3,crush:-1,crushed:-2,crushes:-1,crushing:-1,cry:-1,crying:-2,cunt:-5,curious:1,curse:-1,cut:-1,cute:2,cuts:-1,cutting:-1,cynic:-2,cynical:-2,cynicism:-2,damage:-3,damages:-3,damn:-4,damned:-4,damnit:-4,danger:-2,daredevil:2,daring:2,darkest:-2,darkness:-1,dauntless:2,dead:-3,deadlock:-2,deafening:-1,dear:2,dearly:3,death:-2,debonair:2,debt:-2,deceit:-3,deceitful:-3,deceive:-3,deceived:-3,deceives:-3,deceiving:-3,deception:-3,decisive:1,dedicated:2,defeated:-2,defect:-3,defects:-3,defender:2,defenders:2,defenseless:-2,defer:-1,deferring:-1,defiant:-1,deficit:-2,degrade:-2,degraded:-2,degrades:-2,dehumanize:-2,dehumanized:-2,dehumanizes:-2,dehumanizing:-2,deject:-2,dejected:-2,dejecting:-2,dejects:-2,delay:-1,delayed:-1,delight:3,delighted:3,delighting:3,delights:3,demand:-1,demanded:-1,demanding:-1,demands:-1,demonstration:-1,demoralized:-2,denied:-2,denier:-2,deniers:-2,denies:-2,denounce:-2,denounces:-2,deny:-2,denying:-2,depressed:-2,depressing:-2,derail:-2,derailed:-2,derails:-2,deride:-2,derided:-2,derides:-2,deriding:-2,derision:-2,desirable:2,desire:1,desired:2,desirous:2,despair:-3,despairing:-3,despairs:-3,desperate:-3,desperately:-3,despondent:-3,destroy:-3,destroyed:-3,destroying:-3,destroys:-3,destruction:-3,destructive:-3,detached:-1,detain:-2,detained:-2,detention:-2,determined:2,devastate:-2,devastated:-2,devastating:-2,devoted:3,diamond:1,dick:-4,dickhead:-4,die:-3,died:-3,difficult:-1,diffident:-2,dilemma:-1,dipshit:-3,dire:-3,direful:-3,dirt:-2,dirtier:-2,dirtiest:-2,dirty:-2,disabling:-1,disadvantage:-2,disadvantaged:-2,disappear:-1,disappeared:-1,disappears:-1,disappoint:-2,disappointed:-2,disappointing:-2,disappointment:-2,disappointments:-2,disappoints:-2,disaster:-2,disasters:-2,disastrous:-3,disbelieve:-2,discard:-1,discarded:-1,discarding:-1,discards:-1,disconsolate:-2,disconsolation:-2,discontented:-2,discord:-2,discounted:-1,discouraged:-2,discredited:-2,disdain:-2,disgrace:-2,disgraced:-2,disguise:-1,disguised:-1,disguises:-1,disguising:-1,disgust:-3,disgusted:-3,disgusting:-3,disheartened:-2,dishonest:-2,disillusioned:-2,disinclined:-2,disjointed:-2,dislike:-2,dismal:-2,dismayed:-2,disorder:-2,disorganized:-2,disoriented:-2,disparage:-2,disparaged:-2,disparages:-2,disparaging:-2,displeased:-2,dispute:-2,disputed:-2,disputes:-2,disputing:-2,disqualified:-2,disquiet:-2,disregard:-2,disregarded:-2,disregarding:-2,disregards:-2,disrespect:-2,disrespected:-2,disruption:-2,disruptions:-2,disruptive:-2,dissatisfied:-2,distort:-2,distorted:-2,distorting:-2,distorts:-2,distract:-2,distracted:-2,distraction:-2,distracts:-2,distress:-2,distressed:-2,distresses:-2,distressing:-2,distrust:-3,distrustful:-3,disturb:-2,disturbed:-2,disturbing:-2,disturbs:-2,dithering:-2,dizzy:-1,dodging:-2,dodgy:-2,"does not work":-3,dolorous:-2,"dont like":-2,doom:-2,doomed:-2,doubt:-1,doubted:-1,doubtful:-1,doubting:-1,doubts:-1,douche:-3,douchebag:-3,downcast:-2,downhearted:-2,downside:-2,drag:-1,dragged:-1,drags:-1,drained:-2,dread:-2,dreaded:-2,dreadful:-3,dreading:-2,dream:1,dreams:1,dreary:-2,droopy:-2,drop:-1,drown:-2,drowned:-2,drowns:-2,drunk:-2,dubious:-2,dud:-2,dull:-2,dumb:-3,dumbass:-3,dump:-1,dumped:-2,dumps:-1,dupe:-2,duped:-2,dysfunction:-2,eager:2,earnest:2,ease:2,easy:1,ecstatic:4,eerie:-2,eery:-2,effective:2,effectively:2,elated:3,elation:3,elegant:2,elegantly:2,embarrass:-2,embarrassed:-2,embarrasses:-2,embarrassing:-2,embarrassment:-2,embittered:-2,embrace:1,emergency:-2,empathetic:2,emptiness:-1,empty:-1,enchanted:2,encourage:2,encouraged:2,encouragement:2,encourages:2,endorse:2,endorsed:2,endorsement:2,endorses:2,enemies:-2,enemy:-2,energetic:2,engage:1,engages:1,engrossed:1,enjoy:2,enjoying:2,enjoys:2,enlighten:2,enlightened:2,enlightening:2,enlightens:2,ennui:-2,enrage:-2,enraged:-2,enrages:-2,enraging:-2,enrapture:3,enslave:-2,enslaved:-2,enslaves:-2,ensure:1,ensuring:1,enterprising:1,entertaining:2,enthral:3,enthusiastic:3,entitled:1,entrusted:2,envies:-1,envious:-2,envy:-1,envying:-1,erroneous:-2,error:-2,errors:-2,escape:-1,escapes:-1,escaping:-1,esteemed:2,ethical:2,euphoria:3,euphoric:4,eviction:-1,evil:-3,exaggerate:-2,exaggerated:-2,exaggerates:-2,exaggerating:-2,exasperated:2,excellence:3,excellent:3,excite:3,excited:3,excitement:3,exciting:3,exclude:-1,excluded:-2,exclusion:-1,exclusive:2,excuse:-1,exempt:-1,exhausted:-2,exhilarated:3,exhilarates:3,exhilarating:3,exonerate:2,exonerated:2,exonerates:2,exonerating:2,expand:1,expands:1,expel:-2,expelled:-2,expelling:-2,expels:-2,exploit:-2,exploited:-2,exploiting:-2,exploits:-2,exploration:1,explorations:1,expose:-1,exposed:-1,exposes:-1,exposing:-1,extend:1,"extends":1,exuberant:4,exultant:3,exultantly:3,fabulous:4,fad:-2,fag:-3,faggot:-3,faggots:-3,fail:-2,failed:-2,failing:-2,fails:-2,failure:-2,failures:-2,fainthearted:-2,fair:2,faith:1,faithful:3,fake:-3,fakes:-3,faking:-3,fallen:-2,falling:-1,falsified:-3,falsify:-3,fame:1,fan:3,fantastic:4,farce:-1,fascinate:3,fascinated:3,fascinates:3,fascinating:3,fascist:-2,fascists:-2,fatalities:-3,fatality:-3,fatigue:-2,fatigued:-2,fatigues:-2,fatiguing:-2,favor:2,favored:2,favorite:2,favorited:2,favorites:2,favors:2,fear:-2,fearful:-2,fearing:-2,fearless:2,fearsome:-2,"fed up":-3,feeble:-2,feeling:1,felonies:-3,felony:-3,fervent:2,fervid:2,festive:2,fiasco:-3,fidgety:-2,fight:-1,fine:2,fire:-2,fired:-2,firing:-2,fit:1,fitness:1,flagship:2,flees:-1,flop:-2,flops:-2,flu:-2,flustered:-2,focused:2,fond:2,fondness:2,fool:-2,foolish:-2,fools:-2,forced:-1,foreclosure:-2,foreclosures:-2,forget:-1,forgetful:-2,forgive:1,forgiving:1,forgotten:-1,fortunate:2,frantic:-1,fraud:-4,frauds:-4,fraudster:-4,fraudsters:-4,fraudulence:-4,fraudulent:-4,free:1,freedom:2,frenzy:-3,fresh:1,friendly:2,fright:-2,frightened:-2,frightening:-3,frikin:-2,frisky:2,frowning:-1,frustrate:-2,frustrated:-2,frustrates:-2,frustrating:-2,frustration:-2,ftw:3,fuck:-4,fucked:-4,fucker:-4,fuckers:-4,fuckface:-4,fuckhead:-4,fucking:-4,fucktard:-4,fud:-3,fuked:-4,fuking:-4,fulfill:2,fulfilled:2,fulfills:2,fuming:-2,fun:4,funeral:-1,funerals:-1,funky:2,funnier:4,funny:4,furious:-3,futile:2,gag:-2,gagged:-2,gain:2,gained:2,gaining:2,gains:2,gallant:3,gallantly:3,gallantry:3,generous:2,genial:3,ghost:-1,giddy:-2,gift:2,glad:3,glamorous:3,glamourous:3,glee:3,gleeful:3,gloom:-1,gloomy:-2,glorious:2,glory:2,glum:-2,god:1,goddamn:-3,godsend:4,good:3,goodness:3,grace:1,gracious:3,grand:3,grant:1,granted:1,granting:1,grants:1,grateful:3,gratification:2,grave:-2,gray:-1,great:3,greater:3,greatest:3,greed:-3,greedy:-2,"green wash":-3,"green washing":-3,greenwash:-3,greenwasher:-3,greenwashers:-3,greenwashing:-3,greet:1,greeted:1,greeting:1,greetings:2,greets:1,grey:-1,grief:-2,grieved:-2,gross:-2,growing:1,growth:2,guarantee:1,guilt:-3,guilty:-3,gullibility:-2,gullible:-2,gun:-1,ha:2,hacked:-1,haha:3,hahaha:3,hahahah:3,hail:2,hailed:2,hapless:-2,haplessness:-2,happiness:3,happy:3,hard:-1,hardier:2,hardship:-2,hardy:2,harm:-2,harmed:-2,harmful:-2,harming:-2,harms:-2,harried:-2,harsh:-2,harsher:-2,harshest:-2,hate:-3,hated:-3,haters:-3,hates:-3,hating:-3,haunt:-1,haunted:-2,haunting:1,haunts:-1,havoc:-2,healthy:2,heartbreaking:-3,heartbroken:-3,heartfelt:3,heaven:2,heavenly:4,heavyhearted:-2,hell:-4,help:2,helpful:2,helping:2,helpless:-2,helps:2,hero:2,heroes:2,heroic:3,hesitant:-2,hesitate:-2,hid:-1,hide:-1,hides:-1,hiding:-1,highlight:2,hilarious:2,hindrance:-2,hoax:-2,homesick:-2,honest:2,honor:2,honored:2,honoring:2,honour:2,honoured:2,honouring:2,hooligan:-2,hooliganism:-2,hooligans:-2,hope:2,hopeful:2,hopefully:2,hopeless:-2,hopelessness:-2,hopes:2,hoping:2,horrendous:-3,horrible:-3,horrific:-3,horrified:-3,hostile:-2,huckster:-2,hug:2,huge:1,hugs:2,humerous:3,humiliated:-3,humiliation:-3,humor:2,humorous:2,humour:2,humourous:2,hunger:-2,hurrah:5,hurt:-2,hurting:-2,hurts:-2,hypocritical:-2,hysteria:-3,hysterical:-3,hysterics:-3,idiot:-3,idiotic:-3,ignorance:-2,ignorant:-2,ignore:-1,ignored:-2,ignores:-1,ill:-2,illegal:-3,illiteracy:-2,illness:-2,illnesses:-2,imbecile:-3,immobilized:-1,immortal:2,immune:1,impatient:-2,imperfect:-2,importance:2,important:2,impose:-1,imposed:-1,imposes:-1,imposing:-1,impotent:-2,impress:3,impressed:3,impresses:3,impressive:3,imprisoned:-2,improve:2,improved:2,improvement:2,improves:2,improving:2,inability:-2,inaction:-2,inadequate:-2,incapable:-2,incapacitated:-2,incensed:-2,incompetence:-2,incompetent:-2,inconsiderate:-2,inconvenience:-2,inconvenient:-2,increase:1,increased:1,indecisive:-2,indestructible:2,indifference:-2,indifferent:-2,indignant:-2,indignation:-2,indoctrinate:-2,indoctrinated:-2,indoctrinates:-2,indoctrinating:-2,ineffective:-2,ineffectively:-2,infatuated:2,infatuation:2,infected:-2,inferior:-2,inflamed:-2,influential:2,infringement:-2,infuriate:-2,infuriated:-2,infuriates:-2,infuriating:-2,inhibit:-1,injured:-2,injury:-2,injustice:-2,innovate:1,innovates:1,innovation:1,innovative:2,inquisition:-2,inquisitive:2,insane:-2,insanity:-2,insecure:-2,insensitive:-2,insensitivity:-2,insignificant:-2,insipid:-2,inspiration:2,inspirational:2,inspire:2,inspired:2,inspires:2,inspiring:3,insult:-2,insulted:-2,insulting:-2,insults:-2,intact:2,integrity:2,intelligent:2,intense:1,interest:1,interested:2,interesting:2,interests:1,interrogated:-2,interrupt:-2,interrupted:-2,interrupting:-2,interruption:-2,interrupts:-2,intimidate:-2,intimidated:-2,intimidates:-2,intimidating:-2,intimidation:-2,intricate:2,intrigues:1,invincible:2,invite:1,inviting:1,invulnerable:2,irate:-3,ironic:-1,irony:-1,irrational:-1,irresistible:2,irresolute:-2,irresponsible:2,irreversible:-1,irritate:-3,irritated:-3,irritating:-3,isolated:-1,itchy:-2,jackass:-4,jackasses:-4,jailed:-2,jaunty:2,jealous:-2,jeopardy:-2,jerk:-3,jesus:1,jewel:1,jewels:1,jocular:2,join:1,joke:2,jokes:2,jolly:2,jovial:2,joy:3,joyful:3,joyfully:3,joyless:-2,joyous:3,jubilant:3,jumpy:-1,justice:2,justifiably:2,justified:2,keen:1,kill:-3,killed:-3,killing:-3,kills:-3,kind:2,kinder:2,kiss:2,kudos:3,lack:-2,lackadaisical:-2,lag:-1,lagged:-2,lagging:-2,lags:-2,lame:-2,landmark:2,laugh:1,laughed:1,laughing:1,laughs:1,laughting:1,launched:1,lawl:3,lawsuit:-2,lawsuits:-2,lazy:-1,leak:-1,leaked:-1,leave:-1,legal:1,legally:1,lenient:1,lethargic:-2,lethargy:-2,liar:-3,liars:-3,libelous:-2,lied:-2,lifesaver:4,lighthearted:1,like:2,liked:2,likes:2,limitation:-1,limited:-1,limits:-1,litigation:-1,litigious:-2,lively:2,livid:-2,lmao:4,lmfao:4,loathe:-3,loathed:-3,loathes:-3,loathing:-3,lobby:-2,lobbying:-2,lol:3,lonely:-2,lonesome:-2,longing:-1,loom:-1,loomed:-1,looming:-1,looms:-1,loose:-3,looses:-3,loser:-3,losing:-3,loss:-3,lost:-3,lovable:3,love:3,loved:3,lovelies:3,lovely:3,loving:2,lowest:-1,loyal:3,loyalty:3,luck:3,luckily:3,lucky:3,lugubrious:-2,lunatic:-3,lunatics:-3,lurk:-1,lurking:-1,lurks:-1,mad:-3,maddening:-3,"made-up":-1,madly:-3,madness:-3,mandatory:-1,manipulated:-1,manipulating:-1,manipulation:-1,marvel:3,marvelous:3,marvels:3,masterpiece:4,masterpieces:4,matter:1,matters:1,mature:2,meaningful:2,meaningless:-2,medal:3,mediocrity:-3,meditative:1,melancholy:-2,menace:-2,menaced:-2,mercy:2,merry:3,mess:-2,messed:-2,"messing up":-2,methodical:2,mindless:-2,miracle:4,mirth:3,mirthful:3,mirthfully:3,misbehave:-2,misbehaved:-2,misbehaves:-2,misbehaving:-2,mischief:-1,mischiefs:-1,miserable:-3,misery:-2,misgiving:-2,misinformation:-2,misinformed:-2,misinterpreted:-2,misleading:-3,misread:-1,misreporting:-2,misrepresentation:-2,miss:-2,missed:-2,missing:-2,mistake:-2,mistaken:-2,mistakes:-2,mistaking:-2,misunderstand:-2,misunderstanding:-2,misunderstands:-2,misunderstood:-2,moan:-2,moaned:-2,moaning:-2,moans:-2,mock:-2,mocked:-2,mocking:-2,mocks:-2,mongering:-2,monopolize:-2,monopolized:-2,monopolizes:-2,monopolizing:-2,moody:-1,mope:-1,moping:-1,moron:-3,motherfucker:-5,motherfucking:-5,motivate:1,motivated:2,motivating:2,motivation:1,mourn:-2,mourned:-2,mournful:-2,mourning:-2,mourns:-2,mumpish:-2,murder:-2,murderer:-2,murdering:-3,murderous:-3,murders:-2,myth:-1,n00b:-2,naive:-2,nasty:-3,natural:1,"naïve":-2,needy:-2,negative:-2,negativity:-2,neglect:-2,neglected:-2,neglecting:-2,neglects:-2,nerves:-1,nervous:-2,nervously:-2,nice:3,nifty:2,niggas:-5,nigger:-5,no:-1,"no fun":-3,noble:2,noisy:-1,nonsense:-2,noob:-2,nosey:-2,"not good":-2,"not working":-3,notorious:-2,novel:2,numb:-1,nuts:-3,obliterate:-2,obliterated:-2,obnoxious:-3,obscene:-2,obsessed:2,obsolete:-2,obstacle:-2,obstacles:-2,obstinate:-2,odd:-2,offend:-2,offended:-2,offender:-2,offending:-2,offends:-2,offline:-1,oks:2,ominous:3,"once-in-a-lifetime":3,opportunities:2,opportunity:2,oppressed:-2,oppressive:-2,optimism:2,optimistic:2,optionless:-2,outcry:-2,outmaneuvered:-2,outrage:-3,outraged:-3,outreach:2,outstanding:5,overjoyed:4,overload:-1,overlooked:-1,overreact:-2,overreacted:-2,overreaction:-2,overreacts:-2,oversell:-2,overselling:-2,oversells:-2,oversimplification:-2,oversimplified:-2,oversimplifies:-2,oversimplify:-2,overstatement:-2,overstatements:-2,overweight:-1,oxymoron:-1,pain:-2,pained:-2,panic:-3,panicked:-3,panics:-3,paradise:3,paradox:-1,pardon:2,pardoned:2,pardoning:2,pardons:2,parley:-1,passionate:2,passive:-1,passively:-1,pathetic:-2,pay:-1,peace:2,peaceful:2,peacefully:2,penalty:-2,pensive:-1,perfect:3,perfected:2,perfectly:3,perfects:2,peril:-2,perjury:-3,perpetrator:-2,perpetrators:-2,perplexed:-2,persecute:-2,persecuted:-2,persecutes:-2,persecuting:-2,perturbed:-2,pesky:-2,pessimism:-2,pessimistic:-2,petrified:-2,phobic:-2,picturesque:2,pileup:-1,pique:-2,piqued:-2,piss:-4,pissed:-4,pissing:-3,piteous:-2,pitied:-1,pity:-2,playful:2,pleasant:3,please:1,pleased:3,pleasure:3,poised:-2,poison:-2,poisoned:-2,poisons:-2,pollute:-2,polluted:-2,polluter:-2,polluters:-2,pollutes:-2,poor:-2,poorer:-2,poorest:-2,popular:3,positive:2,positively:2,possessive:-2,postpone:-1,postponed:-1,postpones:-1,postponing:-1,poverty:-1,powerful:2,powerless:-2,praise:3,praised:3,praises:3,praising:3,pray:1,praying:1,prays:1,prblm:-2,prblms:-2,prepared:1,pressure:-1,pressured:-2,pretend:-1,pretending:-1,pretends:-1,pretty:1,prevent:-1,prevented:-1,preventing:-1,prevents:-1,prick:-5,prison:-2,prisoner:-2,prisoners:-2,privileged:2,proactive:2,problem:-2,problems:-2,profiteer:-2,progress:2,prominent:2,promise:1,promised:1,promises:1,promote:1,promoted:1,promotes:1,promoting:1,propaganda:-2,prosecute:-1,prosecuted:-2,prosecutes:-1,prosecution:-1,prospect:1,prospects:1,prosperous:3,protect:1,"protected":1,protects:1,protest:-2,protesters:-2,protesting:-2,protests:-2,proud:2,proudly:2,provoke:-1,provoked:-1,provokes:-1,provoking:-1,pseudoscience:-3,punish:-2,punished:-2,punishes:-2,punitive:-2,pushy:-1,puzzled:-2,quaking:-2,questionable:-2,questioned:-1,questioning:-1,racism:-3,racist:-3,racists:-3,rage:-2,rageful:-2,rainy:-1,rant:-3,ranter:-3,ranters:-3,rants:-3,rape:-4,rapist:-4,rapture:2,raptured:2,raptures:2,rapturous:4,rash:-2,ratified:2,reach:1,reached:1,reaches:1,reaching:1,reassure:1,reassured:1,reassures:1,reassuring:2,rebellion:-2,recession:-2,reckless:-2,recommend:2,recommended:2,recommends:2,redeemed:2,refuse:-2,refused:-2,refusing:-2,regret:-2,regretful:-2,regrets:-2,regretted:-2,regretting:-2,reject:-1,rejected:-1,rejecting:-1,rejects:-1,rejoice:4,rejoiced:4,rejoices:4,rejoicing:4,relaxed:2,relentless:-1,reliant:2,relieve:1,relieved:2,relieves:1,relieving:2,relishing:2,remarkable:2,remorse:-2,repulse:-1,repulsed:-2,rescue:2,rescued:2,rescues:2,resentful:-2,resign:-1,resigned:-1,resigning:-1,resigns:-1,resolute:2,resolve:2,resolved:2,resolves:2,resolving:2,respected:2,responsible:2,responsive:2,restful:2,restless:-2,restore:1,restored:1,restores:1,restoring:1,restrict:-2,restricted:-2,restricting:-2,restriction:-2,restricts:-2,retained:-1,retard:-2,retarded:-2,retreat:-1,revenge:-2,revengeful:-2,revered:2,revive:2,revives:2,reward:2,rewarded:2,rewarding:2,rewards:2,rich:2,ridiculous:-3,rig:-1,rigged:-1,"right direction":3,rigorous:3,rigorously:3,riot:-2,riots:-2,risk:-2,risks:-2,rob:-2,robber:-2,robed:-2,robing:-2,robs:-2,robust:2,rofl:4,roflcopter:4,roflmao:4,romance:2,rotfl:4,rotflmfao:4,rotflol:4,ruin:-2,ruined:-2,ruining:-2,ruins:-2,sabotage:-2,sad:-2,sadden:-2,saddened:-2,sadly:-2,safe:1,safely:1,safety:1,salient:1,sappy:-1,sarcastic:-2,satisfied:2,save:2,saved:2,scam:-2,scams:-2,scandal:-3,scandalous:-3,scandals:-3,scapegoat:-2,scapegoats:-2,scare:-2,scared:-2,scary:-2,sceptical:-2,scold:-2,scoop:3,scorn:-2,scornful:-2,scream:-2,screamed:-2,screaming:-2,screams:-2,screwed:-2,"screwed up":-3,scumbag:-4,secure:2,secured:2,secures:2,sedition:-2,seditious:-2,seduced:-1,"self-confident":2,"self-deluded":-2,selfish:-3,selfishness:-3,sentence:-2,sentenced:-2,sentences:-2,sentencing:-2,serene:2,severe:-2,sexy:3,shaky:-2,shame:-2,shamed:-2,shameful:-2,share:1,shared:1,shares:1,shattered:-2,shit:-4,shithead:-4,shitty:-3,shock:-2,shocked:-2,shocking:-2,shocks:-2,shoot:-1,"short-sighted":-2,"short-sightedness":-2,shortage:-2,shortages:-2,shrew:-4,shy:-1,sick:-2,sigh:-2,significance:1,significant:1,silencing:-1,silly:-1,sincere:2,sincerely:2,sincerest:2,sincerity:2,sinful:-3,singleminded:-2,skeptic:-2,skeptical:-2,skepticism:-2,skeptics:-2,slam:-2,slash:-2,slashed:-2,slashes:-2,slashing:-2,slavery:-3,sleeplessness:-2,slick:2,slicker:2,slickest:2,sluggish:-2,slut:-5,smart:1,smarter:2,smartest:2,smear:-2,smile:2,smiled:2,smiles:2,smiling:2,smog:-2,sneaky:-1,snub:-2,snubbed:-2,snubbing:-2,snubs:-2,sobering:1,solemn:-1,solid:2,solidarity:2,solution:1,solutions:1,solve:1,solved:1,solves:1,solving:1,somber:-2,"some kind":0,"son-of-a-bitch":-5,soothe:3,soothed:3,soothing:3,sophisticated:2,sore:-1,sorrow:-2,sorrowful:-2,sorry:-1,spam:-2,spammer:-3,spammers:-3,spamming:-2,spark:1,sparkle:3,sparkles:3,sparkling:3,speculative:-2,spirit:1,spirited:2,spiritless:-2,spiteful:-2,splendid:3,sprightly:2,squelched:-1,stab:-2,stabbed:-2,stable:2,stabs:-2,stall:-2,stalled:-2,stalling:-2,stamina:2,stampede:-2,startled:-2,starve:-2,starved:-2,starves:-2,starving:-2,steadfast:2,steal:-2,steals:-2,stereotype:-2,stereotyped:-2,stifled:-1,stimulate:1,stimulated:1,stimulates:1,stimulating:2,stingy:-2,stolen:-2,stop:-1,stopped:-1,stopping:-1,stops:-1,stout:2,straight:1,strange:-1,strangely:-1,strangled:-2,strength:2,strengthen:2,strengthened:2,strengthening:2,strengthens:2,stressed:-2,stressor:-2,stressors:-2,stricken:-2,strike:-1,strikers:-2,strikes:-1,strong:2,stronger:2,strongest:2,struck:-1,struggle:-2,struggled:-2,struggles:-2,struggling:-2,stubborn:-2,stuck:-2,stunned:-2,stunning:4,stupid:-2,stupidly:-2,suave:2,substantial:1,substantially:1,subversive:-2,success:2,successful:3,suck:-3,sucks:-3,suffer:-2,suffering:-2,suffers:-2,suicidal:-2,suicide:-2,suing:-2,sulking:-2,sulky:-2,sullen:-2,sunshine:2,"super":3,superb:5,superior:2,support:2,supported:2,supporter:1,supporters:1,supporting:1,supportive:2,supports:2,survived:2,surviving:2,survivor:2,suspect:-1,suspected:-1,suspecting:-1,suspects:-1,suspend:-1,suspended:-1,suspicious:-2,swear:-2,swearing:-2,swears:-2,sweet:2,swift:2,swiftly:2,swindle:-3,swindles:-3,swindling:-3,sympathetic:2,sympathy:2,tard:-2,tears:-2,tender:2,tense:-2,tension:-1,terrible:-3,terribly:-3,terrific:4,terrified:-3,terror:-3,terrorize:-3,terrorized:-3,terrorizes:-3,thank:2,thankful:2,thanks:2,thorny:-2,thoughtful:2,thoughtless:-2,threat:-2,threaten:-2,threatened:-2,threatening:-2,threatens:-2,threats:-2,thrilled:5,thwart:-2,thwarted:-2,thwarting:-2,thwarts:-2,timid:-2,timorous:-2,tired:-2,tits:-2,tolerant:2,toothless:-2,top:2,tops:2,torn:-2,torture:-4,tortured:-4,tortures:-4,torturing:-4,totalitarian:-2,totalitarianism:-2,tout:-2,touted:-2,touting:-2,touts:-2,tragedy:-2,tragic:-2,tranquil:2,trap:-1,trapped:-2,trauma:-3,traumatic:-3,travesty:-2,treason:-3,treasonous:-3,treasure:2,treasures:2,trembling:-2,tremulous:-2,tricked:-2,trickery:-2,triumph:4,triumphant:4,trouble:-2,troubled:-2,troubles:-2,"true":2,trust:1,trusted:2,tumor:-2,twat:-5,ugly:-3,unacceptable:-2,unappreciated:-2,unapproved:-2,unaware:-2,unbelievable:-1,unbelieving:-1,unbiased:2,uncertain:-1,unclear:-1,uncomfortable:-2,unconcerned:-2,unconfirmed:-1,unconvinced:-1,uncredited:-1,undecided:-1,underestimate:-1,underestimated:-1,underestimates:-1,underestimating:-1,undermine:-2,undermined:-2,undermines:-2,undermining:-2,undeserving:-2,undesirable:-2,uneasy:-2,unemployment:-2,unequal:-1,unequaled:2,unethical:-2,unfair:-2,unfocused:-2,unfulfilled:-2,unhappy:-2,unhealthy:-2,unified:1,unimpressed:-2,unintelligent:-2,united:1,unjust:-2,unlovable:-2,unloved:-2,unmatched:1,unmotivated:-2,unprofessional:-2,unresearched:-2,unsatisfied:-2,unsecured:-2,unsettled:-1,unsophisticated:-2,unstable:-2,unstoppable:2,unsupported:-2,unsure:-1,untarnished:2,unwanted:-2,unworthy:-2,upset:-2,upsets:-2,upsetting:-2,uptight:-2,urgent:-1,useful:2,usefulness:2,useless:-2,uselessness:-2,vague:-2,validate:1,validated:1,validates:1,validating:1,verdict:-1,verdicts:-1,vested:1,vexation:-2,vexing:-2,vibrant:3,vicious:-2,victim:-3,victimize:-3,victimized:-3,victimizes:-3,victimizing:-3,victims:-3,vigilant:3,vile:-3,vindicate:2,vindicated:2,vindicates:2,vindicating:2,violate:-2,violated:-2,violates:-2,violating:-2,violence:-3,violent:-3,virtuous:2,virulent:-2,vision:1,visionary:3,visioning:1,visions:1,vitality:3,vitamin:1,vitriolic:-3,vivacious:3,vociferous:-1,vulnerability:-2,vulnerable:-2,walkout:-2,walkouts:-2,wanker:-3,want:1,war:-2,warfare:-2,warm:1,warmth:2,warn:-2,warned:-2,warning:-3,warnings:-3,warns:-2,waste:-1,wasted:-2,wasting:-2,wavering:-1,weak:-2,weakness:-2,wealth:3,wealthy:2,weary:-2,weep:-2,weeping:-2,weird:-2,welcome:2,welcomed:2,welcomes:2,whimsical:1,whitewash:-3,whore:-4,wicked:-2,widowed:-1,willingness:2,win:4,winner:4,winning:4,wins:4,winwin:3,wish:1,wishes:1,wishing:1,withdrawal:-3,woebegone:-2,woeful:-3,won:3,wonderful:4,woo:3,woohoo:3,wooo:4,woow:4,worn:-1,worried:-3,worry:-3,worrying:-3,worse:-3,worsen:-3,worsened:-3,worsening:-3,worsens:-3,worshiped:3,worst:-3,worth:2,worthless:-2,worthy:2,wow:4,wowow:4,wowww:4,wrathful:-3,wreck:-2,wrong:-2,wronged:-2,wtf:-4,yeah:1,yearning:1,yeees:2,yes:1,youthful:2,yucky:-2,yummy:3,zealot:-2,zealots:-2,zealous:2},sentiment=function(c,d,e){"undefined"==typeof c&&(c=""),"undefined"==typeof d&&(d=null),"function"==typeof d&&(e=d),"undefined"==typeof e&&(e=null),null!==d&&(afinn=a.extend(afinn,d));
for(var f=b(c),g=0,h=[],i=[],j=[],k=f.length;k--;){var l=f[k],m=afinn[l];afinn.hasOwnProperty(l)&&(h.push(l),m>0&&i.push(l),0>m&&j.push(l),g+=m)}var n={score:g,comparative:g/f.length,tokens:f,words:h,positive:i,negative:j};return null===e?n:void e(n)},window.sentimentAnalysis=sentiment}(jQuery),!function(a){a.extend({tablesorter:new function(){function b(){var a=arguments[0],b=1<arguments.length?Array.prototype.slice.call(arguments):a;"undefined"!=typeof console&&"undefined"!=typeof console.log?console[/error/i.test(a)?"error":/warn/i.test(a)?"warn":"log"](b):alert(b)}function c(a,c){b(a+" ("+((new Date).getTime()-c.getTime())+"ms)")}function d(a){for(var b in a)return!1;return!0}function e(b,c,d){if(!c)return"";var e,f=b.config,g=f.textExtraction||"",h="",h="basic"===g?a(c).attr(f.textAttribute)||c.textContent||c.innerText||a(c).text()||"":"function"==typeof g?g(c,b,d):"function"==typeof(e=v.getColumnData(b,g,d))?e(c,b,d):c.textContent||c.innerText||a(c).text()||"";return a.trim(h)}function f(d){var f,g,h,i,j,k,l,m,n,o,p,q=d.config,r=q.$tbodies=q.$table.children("tbody:not(."+q.cssInfoBlock+")"),s=0,t="",u=r.length;if(0===u)return q.debug?b("Warning: *Empty table!* Not building a parser cache"):"";for(q.debug&&(p=new Date,b("Detecting parsers for each column")),f=[],g=[];u>s;){if(h=r[s].rows,h[s])for(i=q.columns,j=0;i>j;j++){if(k=q.$headers.filter('[data-column="'+j+'"]:last'),l=v.getColumnData(d,q.headers,j),o=v.getParserById(v.getData(k,l,"extractor")),n=v.getParserById(v.getData(k,l,"sorter")),m="false"===v.getData(k,l,"parser"),q.empties[j]=(v.getData(k,l,"empty")||q.emptyTo||(q.emptyToBottom?"bottom":"top")).toLowerCase(),q.strings[j]=(v.getData(k,l,"string")||q.stringTo||"max").toLowerCase(),m&&(n=v.getParserById("no-parser")),o||(o=!1),!n)a:{k=d,l=h,m=-1,n=j;for(var w=void 0,x=void 0,y=v.parsers.length,z=!1,A="",w=!0;""===A&&w;)m++,l[m]?(z=l[m].cells[n],A=e(k,z,n),x=a(z),k.config.debug&&b("Checking if value was empty on row "+m+", column: "+n+': "'+A+'"')):w=!1;for(;0<=--y;)if((w=v.parsers[y])&&"text"!==w.id&&w.is&&w.is(A,k,z,x)){n=w;break a}n=v.getParserById("text")}q.debug&&(t+="column:"+j+"; extractor:"+o.id+"; parser:"+n.id+"; string:"+q.strings[j]+"; empty: "+q.empties[j]+"\n"),g[j]=n,f[j]=o}s+=g.length?u:1}q.debug&&(b(t?t:"No parsers detected"),c("Completed detecting parsers",p)),q.parsers=g,q.extractors=f}function g(d){var f,g,h,i,j,k,l,m,n,o,p,q=d.config,r=q.$table.children("tbody"),s=q.extractors,t=q.parsers;if(q.cache={},q.totalRows=0,!t)return q.debug?b("Warning: *Empty table!* Not building a cache"):"";for(q.debug&&(m=new Date),q.showProcessing&&v.isProcessing(d,!0),j=0;j<r.length;j++)if(p=[],f=q.cache[j]={normalized:[]},!r.eq(j).hasClass(q.cssInfoBlock)){for(n=r[j]&&r[j].rows.length||0,h=0;n>h;++h)if(o={child:[]},k=a(r[j].rows[h]),l=[],k.hasClass(q.cssChildRow)&&0!==h)g=f.normalized.length-1,f.normalized[g][q.columns].$row=f.normalized[g][q.columns].$row.add(k),k.prev().hasClass(q.cssChildRow)||k.prev().addClass(v.css.cssHasChild),o.child[g]=a.trim(k[0].textContent||k[0].innerText||k.text()||"");else{for(o.$row=k,o.order=h,i=0;i<q.columns;++i)"undefined"==typeof t[i]?q.debug&&b("No parser found for cell:",k[0].cells[i],"does it have a header?"):(g=e(d,k[0].cells[i],i),g="undefined"==typeof s[i].id?g:s[i].format(g,d,k[0].cells[i],i),g="no-parser"===t[i].id?"":t[i].format(g,d,k[0].cells[i],i),l.push(q.ignoreCase&&"string"==typeof g?g.toLowerCase():g),"numeric"===(t[i].type||"").toLowerCase()&&(p[i]=Math.max(Math.abs(g)||0,p[i]||0)));l[q.columns]=o,f.normalized.push(l)}f.colMax=p,q.totalRows+=f.normalized.length}q.showProcessing&&v.isProcessing(d),q.debug&&c("Building cache for "+n+" rows",m)}function h(b,e){var f,g,h,i,j,k,l=b.config,m=l.widgetOptions,n=b.tBodies,o=[],p=l.cache;if(d(p))return l.appender?l.appender(b,o):b.isUpdating?l.$table.trigger("updateComplete",b):"";for(l.debug&&(k=new Date),j=0;j<n.length;j++)if(f=a(n[j]),f.length&&!f.hasClass(l.cssInfoBlock)){for(h=v.processTbody(b,f,!0),f=p[j].normalized,g=f.length,i=0;g>i;i++)o.push(f[i][l.columns].$row),l.appender&&(!l.pager||l.pager.removeRows&&m.pager_removeRows||l.pager.ajax)||h.append(f[i][l.columns].$row);v.processTbody(b,h,!1)}l.appender&&l.appender(b,o),l.debug&&c("Rebuilt table",k),e||l.appender||v.applyWidget(b),b.isUpdating&&l.$table.trigger("updateComplete",b)}function i(a){return/^d/i.test(a)||1===a}function j(d){var e,f,g,h,j,k,m,n=d.config;n.headerList=[],n.headerContent=[],n.debug&&(m=new Date),n.columns=v.computeColumnIndex(n.$table.children("thead, tfoot").children("tr")),h=n.cssIcon?'<i class="'+(n.cssIcon===v.css.icon?v.css.icon:n.cssIcon+" "+v.css.icon)+'"></i>':"",n.$headers=a(d).find(n.selectorHeaders).each(function(b){f=a(this),e=v.getColumnData(d,n.headers,b,!0),n.headerContent[b]=a(this).html(),""!==n.headerTemplate&&(j=n.headerTemplate.replace(/\{content\}/g,a(this).html()).replace(/\{icon\}/g,h),n.onRenderTemplate&&(g=n.onRenderTemplate.apply(f,[b,j]))&&"string"==typeof g&&(j=g),a(this).html('<div class="'+v.css.headerIn+'">'+j+"</div>")),n.onRenderHeader&&n.onRenderHeader.apply(f,[b,n,n.$table]),this.column=parseInt(a(this).attr("data-column"),10),this.order=i(v.getData(f,e,"sortInitialOrder")||n.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,k=v.getData(f,e,"lockedOrder")||!1,"undefined"!=typeof k&&!1!==k&&(this.order=this.lockedOrder=i(k)?[1,1,1]:[0,0,0]),f.addClass(v.css.header+" "+n.cssHeader),n.headerList[b]=this,f.parent().addClass(v.css.headerRow+" "+n.cssHeaderRow).attr("role","row"),n.tabIndex&&f.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),l(d),n.debug&&(c("Built headers:",m),b(n.$headers))}function k(a,b,c){var d=a.config;d.$table.find(d.selectorRemove).remove(),f(a),g(a),t(d.$table,b,c)}function l(b){var c,d,e,f=b.config;f.$headers.each(function(g,h){d=a(h),e=v.getColumnData(b,f.headers,g,!0),c="false"===v.getData(h,e,"sorter")||"false"===v.getData(h,e,"parser"),h.sortDisabled=c,d[c?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+c),b.id&&(c?d.removeAttr("aria-controls"):d.attr("aria-controls",b.id))})}function m(b){var c,d,e=b.config,f=e.sortList,g=f.length,h=v.css.sortNone+" "+e.cssNone,i=[v.css.sortAsc+" "+e.cssAsc,v.css.sortDesc+" "+e.cssDesc],j=[e.cssIconAsc,e.cssIconDesc,e.cssIconNone],k=["ascending","descending"],l=a(b).find("tfoot tr").children().add(e.$extraHeaders).removeClass(i.join(" "));for(e.$headers.removeClass(i.join(" ")).addClass(h).attr("aria-sort","none").find("."+e.cssIcon).removeClass(j.join(" ")).addClass(j[2]),c=0;g>c;c++)if(2!==f[c][1]&&(b=e.$headers.not(".sorter-false").filter('[data-column="'+f[c][0]+'"]'+(1===g?":last":"")),b.length)){for(d=0;d<b.length;d++)b[d].sortDisabled||b.eq(d).removeClass(h).addClass(i[f[c][1]]).attr("aria-sort",k[f[c][1]]).find("."+e.cssIcon).removeClass(j[2]).addClass(j[f[c][1]]);l.length&&l.filter('[data-column="'+f[c][0]+'"]').removeClass(h).addClass(i[f[c][1]])}e.$headers.not(".sorter-false").each(function(){var b=a(this),c=this.order[(this.count+1)%(e.sortReset?3:2)],c=b.text()+": "+v.language[b.hasClass(v.css.sortAsc)?"sortAsc":b.hasClass(v.css.sortDesc)?"sortDesc":"sortNone"]+v.language[0===c?"nextAsc":1===c?"nextDesc":"nextNone"];b.attr("aria-label",c)})}function n(b){var c,d,e=b.config;e.widthFixed&&0===e.$table.children("colgroup").length&&(c=a("<colgroup>"),d=a(b).width(),a(b.tBodies).not("."+e.cssInfoBlock).find("tr:first").children(":visible").each(function(){c.append(a("<col>").css("width",parseInt(a(this).width()/d*1e3,10)/10+"%"))}),e.$table.prepend(c))}function o(b,c){var d,e,f,g,h,i=b.config,j=c||i.sortList;i.sortList=[],a.each(j,function(b,c){if(g=parseInt(c[0],10),f=i.$headers.filter('[data-column="'+g+'"]:last')[0]){switch(e=(e=(""+c[1]).match(/^(1|d|s|o|n)/))?e[0]:""){case"1":case"d":e=1;break;case"s":e=h||0;break;case"o":d=f.order[(h||0)%(i.sortReset?3:2)],e=0===d?1:1===d?0:2;break;case"n":f.count+=1,e=f.order[f.count%(i.sortReset?3:2)];break;default:e=0}h=0===b?e:h,d=[g,parseInt(e,10)||0],i.sortList.push(d),e=a.inArray(d[1],f.order),f.count=e>=0?e:d[1]%(i.sortReset?3:2)}})}function p(a,b){return a&&a[b]?a[b].type||"":""}function q(b,c,d){if(b.isUpdating)return setTimeout(function(){q(b,c,d)},50);var e,f,g,i,j=b.config,k=!d[j.sortMultiSortKey],l=j.$table;if(l.trigger("sortStart",b),c.count=d[j.sortResetKey]?2:(c.count+1)%(j.sortReset?3:2),j.sortRestart&&(f=c,j.$headers.each(function(){this===f||!k&&a(this).is("."+v.css.sortDesc+",."+v.css.sortAsc)||(this.count=-1)})),f=parseInt(a(c).attr("data-column"),10),k){if(j.sortList=[],null!==j.sortForce)for(e=j.sortForce,g=0;g<e.length;g++)e[g][0]!==f&&j.sortList.push(e[g]);if(e=c.order[c.count],2>e&&(j.sortList.push([f,e]),1<c.colSpan))for(g=1;g<c.colSpan;g++)j.sortList.push([f+g,e])}else{if(j.sortAppend&&1<j.sortList.length)for(g=0;g<j.sortAppend.length;g++)i=v.isValueInArray(j.sortAppend[g][0],j.sortList),i>=0&&j.sortList.splice(i,1);if(0<=v.isValueInArray(f,j.sortList))for(g=0;g<j.sortList.length;g++)i=j.sortList[g],e=j.$headers.filter('[data-column="'+i[0]+'"]:last')[0],i[0]===f&&(i[1]=e.order[c.count],2===i[1]&&(j.sortList.splice(g,1),e.count=-1));else if(e=c.order[c.count],2>e&&(j.sortList.push([f,e]),1<c.colSpan))for(g=1;g<c.colSpan;g++)j.sortList.push([f+g,e])}if(null!==j.sortAppend)for(e=j.sortAppend,g=0;g<e.length;g++)e[g][0]!==f&&j.sortList.push(e[g]);l.trigger("sortBegin",b),setTimeout(function(){m(b),r(b),h(b),l.trigger("sortEnd",b)},1)}function r(a){var b,e,f,g,h,i,j,k,l,m,n,o=0,q=a.config,r=q.textSorter||"",s=q.sortList,t=s.length,u=a.tBodies.length;if(!q.serverSideSorting&&!d(q.cache)){for(q.debug&&(h=new Date),e=0;u>e;e++)i=q.cache[e].colMax,j=q.cache[e].normalized,j.sort(function(c,d){for(b=0;t>b&&(g=s[b][0],k=s[b][1],o=0===k,!q.sortStable||c[g]!==d[g]||1!==t);b++)if((f=/n/i.test(p(q.parsers,g)))&&q.strings[g]?(f="boolean"==typeof q.string[q.strings[g]]?(o?1:-1)*(q.string[q.strings[g]]?-1:1):q.strings[g]?q.string[q.strings[g]]||0:0,l=q.numberSorter?q.numberSorter(c[g],d[g],o,i[g],a):v["sortNumeric"+(o?"Asc":"Desc")](c[g],d[g],f,i[g],g,a)):(m=o?c:d,n=o?d:c,l="function"==typeof r?r(m[g],n[g],o,g,a):"object"==typeof r&&r.hasOwnProperty(g)?r[g](m[g],n[g],o,g,a):v["sortNatural"+(o?"Asc":"Desc")](c[g],d[g],g,a,q)),l)return l;return c[q.columns].order-d[q.columns].order});q.debug&&c("Sorting on "+s.toString()+" and dir "+k+" time",h)}}function s(b,c){var d=b[0];d.isUpdating&&b.trigger("updateComplete",d),a.isFunction(c)&&c(b[0])}function t(a,b,c){var d=a[0].config.sortList;!1!==b&&!a[0].isProcessing&&d.length?a.trigger("sorton",[d,function(){s(a,c)},!0]):(s(a,c),v.applyWidget(a[0],!1))}function u(b){var c=b.config,i=c.$table;i.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(c.namespace+" ")).bind("sortReset"+c.namespace,function(d,e){d.stopPropagation(),c.sortList=[],m(b),r(b),h(b),a.isFunction(e)&&e(b)}).bind("updateAll"+c.namespace,function(a,d,e){a.stopPropagation(),b.isUpdating=!0,v.refreshWidgets(b,!0,!0),v.restoreHeaders(b),j(b),v.bindEvents(b,c.$headers,!0),u(b),k(b,d,e)}).bind("update"+c.namespace+" updateRows"+c.namespace,function(a,c,d){a.stopPropagation(),b.isUpdating=!0,l(b),k(b,c,d)}).bind("updateCell"+c.namespace,function(d,f,g,h){d.stopPropagation(),b.isUpdating=!0,i.find(c.selectorRemove).remove();var j,k,l;k=i.find("tbody"),l=a(f),d=k.index(a.fn.closest?l.closest("tbody"):l.parents("tbody").filter(":first")),j=a.fn.closest?l.closest("tr"):l.parents("tr").filter(":first"),f=l[0],k.length&&d>=0&&(k=k.eq(d).find("tr").index(j),l=l.index(),c.cache[d].normalized[k][c.columns].$row=j,j="undefined"==typeof c.extractors[l].id?e(b,f,l):c.extractors[l].format(e(b,f,l),b,f,l),f="no-parser"===c.parsers[l].id?"":c.parsers[l].format(j,b,f,l),c.cache[d].normalized[k][l]=c.ignoreCase&&"string"==typeof f?f.toLowerCase():f,"numeric"===(c.parsers[l].type||"").toLowerCase()&&(c.cache[d].colMax[l]=Math.max(Math.abs(f)||0,c.cache[d].colMax[l]||0)),t(i,g,h))}).bind("addRows"+c.namespace,function(g,h,j,m){if(g.stopPropagation(),b.isUpdating=!0,d(c.cache))l(b),k(b,j,m);else{h=a(h).attr("role","row");var n,o,p,q,r,s=h.filter("tr").length,u=i.find("tbody").index(h.parents("tbody").filter(":first"));for(c.parsers&&c.parsers.length||f(b),g=0;s>g;g++){for(o=h[g].cells.length,r=[],q={child:[],$row:h.eq(g),order:c.cache[u].normalized.length},n=0;o>n;n++)p="undefined"==typeof c.extractors[n].id?e(b,h[g].cells[n],n):c.extractors[n].format(e(b,h[g].cells[n],n),b,h[g].cells[n],n),p="no-parser"===c.parsers[n].id?"":c.parsers[n].format(p,b,h[g].cells[n],n),r[n]=c.ignoreCase&&"string"==typeof p?p.toLowerCase():p,"numeric"===(c.parsers[n].type||"").toLowerCase()&&(c.cache[u].colMax[n]=Math.max(Math.abs(r[n])||0,c.cache[u].colMax[n]||0));r.push(q),c.cache[u].normalized.push(r)}t(i,j,m)}}).bind("updateComplete"+c.namespace,function(){b.isUpdating=!1}).bind("sorton"+c.namespace,function(c,e,f,j){var k=b.config;c.stopPropagation(),i.trigger("sortStart",this),o(b,e),m(b),k.delayInit&&d(k.cache)&&g(b),i.trigger("sortBegin",this),r(b),h(b,j),i.trigger("sortEnd",this),v.applyWidget(b),a.isFunction(f)&&f(b)}).bind("appendCache"+c.namespace,function(c,d,e){c.stopPropagation(),h(b,e),a.isFunction(d)&&d(b)}).bind("updateCache"+c.namespace,function(d,e){c.parsers&&c.parsers.length||f(b),g(b),a.isFunction(e)&&e(b)}).bind("applyWidgetId"+c.namespace,function(a,d){a.stopPropagation(),v.getWidgetById(d).format(b,c,c.widgetOptions)}).bind("applyWidgets"+c.namespace,function(a,c){a.stopPropagation(),v.applyWidget(b,c)}).bind("refreshWidgets"+c.namespace,function(a,c,d){a.stopPropagation(),v.refreshWidgets(b,c,d)}).bind("destroy"+c.namespace,function(a,c,d){a.stopPropagation(),v.destroy(b,c,d)}).bind("resetToLoadState"+c.namespace,function(){v.refreshWidgets(b,!0,!0),c=a.extend(!0,v.defaults,c.originalSettings),b.hasInitialized=!1,v.setup(b,c)})}var v=this;v.version="2.18.3",v.parsers=[],v.widgets=[],v.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,widgetClass:"widget-{name}",initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssInfoBlock:"tablesorter-infoOnly",cssAllowClicks:"tablesorter-allowClicks",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},v.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},v.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},v.log=b,v.benchmark=c,v.construct=function(b){return this.each(function(){var c=a.extend(!0,{},v.defaults,b);c.originalSettings=b,!this.hasInitialized&&v.buildTable&&"TABLE"!==this.tagName?v.buildTable(this,c):v.setup(this,c)})},v.setup=function(c,d){if(!c||!c.tHead||0===c.tBodies.length||!0===c.hasInitialized)return d.debug?b("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var e="",h=a(c),i=a.metadata;c.hasInitialized=!1,c.isProcessing=!0,c.config=d,a.data(c,"tablesorter",d),d.debug&&a.data(c,"startoveralltimer",new Date),d.supportsDataObject=function(a){return a[0]=parseInt(a[0],10),1<a[0]||1===a[0]&&4<=parseInt(a[1],10)}(a.fn.jquery.split(".")),d.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,"null":0,top:!0,bottom:!1},d.emptyTo=d.emptyTo.toLowerCase(),d.stringTo=d.stringTo.toLowerCase(),/tablesorter\-/.test(h.attr("class"))||(e=""!==d.theme?" tablesorter-"+d.theme:""),d.table=c,d.$table=h.addClass(v.css.table+" "+d.tableClass+e).attr("role","grid"),d.$headers=h.find(d.selectorHeaders),d.namespace=d.namespace?"."+d.namespace.replace(/\W/g,""):".tablesorter"+Math.random().toString(16).slice(2),d.$table.children().children("tr").attr("role","row"),d.$tbodies=h.children("tbody:not(."+d.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),d.$table.children("caption").length&&(e=d.$table.children("caption")[0],e.id||(e.id=d.namespace.slice(1)+"caption"),d.$table.attr("aria-labelledby",e.id)),d.widgetInit={},d.textExtraction=d.$table.attr("data-text-extraction")||d.textExtraction||"basic",j(c),n(c),f(c),d.totalRows=0,d.delayInit||g(c),v.bindEvents(c,d.$headers,!0),u(c),d.supportsDataObject&&"undefined"!=typeof h.data().sortlist?d.sortList=h.data().sortlist:i&&h.metadata()&&h.metadata().sortlist&&(d.sortList=h.metadata().sortlist),v.applyWidget(c,!0),0<d.sortList.length?h.trigger("sorton",[d.sortList,{},!d.initWidgets,!0]):(m(c),d.initWidgets&&v.applyWidget(c,!1)),d.showProcessing&&h.unbind("sortBegin"+d.namespace+" sortEnd"+d.namespace).bind("sortBegin"+d.namespace+" sortEnd"+d.namespace,function(a){clearTimeout(d.processTimer),v.isProcessing(c),"sortBegin"===a.type&&(d.processTimer=setTimeout(function(){v.isProcessing(c,!0)},500))}),c.hasInitialized=!0,c.isProcessing=!1,d.debug&&v.benchmark("Overall initialization time",a.data(c,"startoveralltimer")),h.trigger("tablesorter-initialized",c),"function"==typeof d.initialized&&d.initialized(c)},v.getColumnData=function(b,c,d,e){if("undefined"!=typeof c&&null!==c){b=a(b)[0];var f;if(b=b.config,c[d])return e?c[d]:c[b.$headers.index(b.$headers.filter('[data-column="'+d+'"]:last'))];for(f in c)if("string"==typeof f&&(e=b.$headers.filter('[data-column="'+d+'"]:last').filter(f).add(b.$headers.filter('[data-column="'+d+'"]:last').find(f)),e.length))return c[f]}},v.computeColumnIndex=function(b){var c,d,e,f,g,h,i,j,k,l,m=[],n=0;for(c=0;c<b.length;c++)for(g=b[c].cells,d=0;d<g.length;d++){for(e=g[d],f=a(e),h=e.parentNode.rowIndex,f.index(),i=e.rowSpan||1,j=e.colSpan||1,"undefined"==typeof m[h]&&(m[h]=[]),e=0;e<m[h].length+1;e++)if("undefined"==typeof m[h][e]){k=e;break}for(n=Math.max(k,n),f.attr({"data-column":k}),e=h;h+i>e;e++)for("undefined"==typeof m[e]&&(m[e]=[]),l=m[e],f=k;k+j>f;f++)l[f]="x"}return n+1},v.isProcessing=function(b,c,d){b=a(b);var e=b[0].config,f=d||b.find("."+v.css.header);c?("undefined"!=typeof d&&0<e.sortList.length&&(f=f.filter(function(){return this.sortDisabled?!1:0<=v.isValueInArray(parseFloat(a(this).attr("data-column")),e.sortList)})),b.add(f).addClass(v.css.processing+" "+e.cssProcessing)):b.add(f).removeClass(v.css.processing+" "+e.cssProcessing)},v.processTbody=function(b,c,d){return b=a(b)[0],d?(b.isProcessing=!0,c.before('<span class="tablesorter-savemyplace"/>'),d=a.fn.detach?c.detach():c.remove()):(d=a(b).find("span.tablesorter-savemyplace"),c.insertAfter(d),d.remove(),void(b.isProcessing=!1))},v.clearTableBody=function(b){a(b)[0].config.$tbodies.children().detach()},v.bindEvents=function(b,c,e){b=a(b)[0];var f,h=b.config;!0!==e&&(h.$extraHeaders=h.$extraHeaders?h.$extraHeaders.add(c):c),c.find(h.selectorSort).add(c.filter(h.selectorSort)).unbind(["mousedown","mouseup","sort","keyup",""].join(h.namespace+" ")).bind(["mousedown","mouseup","sort","keyup",""].join(h.namespace+" "),function(e,i){var j;if(j=e.type,!(1!==(e.which||e.button)&&!/sort|keyup/.test(j)||"keyup"===j&&13!==e.which||"mouseup"===j&&!0!==i&&250<(new Date).getTime()-f)){if("mousedown"===j)return f=(new Date).getTime(),/(input|select|button|textarea)/i.test(e.target.tagName)||a(e.target).closest("td,th").hasClass(h.cssAllowClicks)?"":!h.cancelSelection;h.delayInit&&d(h.cache)&&g(b),j=a.fn.closest?a(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:a(this).parents("th, td")[0],j=h.$headers[c.index(j)],j.sortDisabled||q(b,j,e)}}),h.cancelSelection&&c.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},v.restoreHeaders=function(b){var c=a(b)[0].config;c.$table.find(c.selectorHeaders).each(function(b){a(this).find("."+v.css.headerIn).length&&a(this).html(c.headerContent[b])})},v.destroy=function(b,c,d){if(b=a(b)[0],b.hasInitialized){v.refreshWidgets(b,!0,!0);var e=a(b),f=b.config,g=e.find("thead:first"),h=g.find("tr."+v.css.headerRow).removeClass(v.css.headerRow+" "+f.cssHeaderRow),i=e.find("tfoot:first > tr").children("th, td");!1===c&&0<=a.inArray("uitheme",f.widgets)&&(e.trigger("applyWidgetId",["uitheme"]),e.trigger("applyWidgetId",["zebra"])),g.find("tr").not(h).remove(),e.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(f.namespace+" ")),f.$headers.add(i).removeClass([v.css.header,f.cssHeader,f.cssAsc,f.cssDesc,v.css.sortAsc,v.css.sortDesc,v.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),h.find(f.selectorSort).unbind(["mousedown","mouseup","keypress",""].join(f.namespace+" ")),v.restoreHeaders(b),e.toggleClass(v.css.table+" "+f.tableClass+" tablesorter-"+f.theme,!1===c),b.hasInitialized=!1,delete b.config.cache,"function"==typeof d&&d(b)}},v.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},v.sortNatural=function(a,b){if(a===b)return 0;var c,d,e,f,g,h;if(d=v.regex,d.hex.test(b)){if(c=parseInt(a.match(d.hex),16),e=parseInt(b.match(d.hex),16),e>c)return-1;if(c>e)return 1}for(c=a.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),d=b.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),h=Math.max(c.length,d.length),g=0;h>g;g++){if(e=isNaN(c[g])?c[g]||0:parseFloat(c[g])||0,f=isNaN(d[g])?d[g]||0:parseFloat(d[g])||0,isNaN(e)!==isNaN(f))return isNaN(e)?1:-1;if(typeof e!=typeof f&&(e+="",f+=""),f>e)return-1;if(e>f)return 1}return 0},v.sortNaturalAsc=function(a,b,c,d,e){return a===b?0:(c=e.string[e.empties[c]||e.emptyTo],""===a&&0!==c?"boolean"==typeof c?c?-1:1:-c||-1:""===b&&0!==c?"boolean"==typeof c?c?1:-1:c||1:v.sortNatural(a,b))},v.sortNaturalDesc=function(a,b,c,d,e){return a===b?0:(c=e.string[e.empties[c]||e.emptyTo],""===a&&0!==c?"boolean"==typeof c?c?-1:1:c||1:""===b&&0!==c?"boolean"==typeof c?c?1:-1:-c||-1:v.sortNatural(b,a))},v.sortText=function(a,b){return a>b?1:b>a?-1:0},v.getTextValue=function(a,b,c){if(c){var d=a?a.length:0,e=c+b;for(c=0;d>c;c++)e+=a.charCodeAt(c);return b*e}return 0},v.sortNumericAsc=function(a,b,c,d,e,f){return a===b?0:(f=f.config,e=f.string[f.empties[e]||f.emptyTo],""===a&&0!==e?"boolean"==typeof e?e?-1:1:-e||-1:""===b&&0!==e?"boolean"==typeof e?e?1:-1:e||1:(isNaN(a)&&(a=v.getTextValue(a,c,d)),isNaN(b)&&(b=v.getTextValue(b,c,d)),a-b))},v.sortNumericDesc=function(a,b,c,d,e,f){return a===b?0:(f=f.config,e=f.string[f.empties[e]||f.emptyTo],""===a&&0!==e?"boolean"==typeof e?e?-1:1:e||1:""===b&&0!==e?"boolean"==typeof e?e?1:-1:-e||-1:(isNaN(a)&&(a=v.getTextValue(a,c,d)),isNaN(b)&&(b=v.getTextValue(b,c,d)),b-a))},v.sortNumeric=function(a,b){return a-b},v.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},v.replaceAccents=function(a){var b,c="[",d=v.characterEquivalents;if(!v.characterRegex){v.characterRegexArray={};for(b in d)"string"==typeof b&&(c+=d[b],v.characterRegexArray[b]=new RegExp("["+d[b]+"]","g"));v.characterRegex=new RegExp(c+"]")}if(v.characterRegex.test(a))for(b in d)"string"==typeof b&&(a=a.replace(v.characterRegexArray[b],b));return a},v.isValueInArray=function(a,b){var c,d=b.length;for(c=0;d>c;c++)if(b[c][0]===a)return c;return-1},v.addParser=function(a){var b,c=v.parsers.length,d=!0;for(b=0;c>b;b++)v.parsers[b].id.toLowerCase()===a.id.toLowerCase()&&(d=!1);d&&v.parsers.push(a)},v.getParserById=function(a){if("false"==a)return!1;var b,c=v.parsers.length;for(b=0;c>b;b++)if(v.parsers[b].id.toLowerCase()===a.toString().toLowerCase())return v.parsers[b];return!1},v.addWidget=function(a){v.widgets.push(a)},v.hasWidget=function(b,c){return b=a(b),b.length&&b[0].config&&b[0].config.widgetInit[c]||!1},v.getWidgetById=function(a){var b,c,d=v.widgets.length;for(b=0;d>b;b++)if((c=v.widgets[b])&&c.hasOwnProperty("id")&&c.id.toLowerCase()===a.toLowerCase())return c},v.applyWidget=function(b,d){b=a(b)[0];var e,f,g,h=b.config,i=h.widgetOptions,j=" "+h.table.className+" ",k=[];!1!==d&&b.hasInitialized&&(b.isApplyingWidgets||b.isUpdating)||(h.debug&&(e=new Date),g=new RegExp("\\s"+h.widgetClass.replace(/\{name\}/i,"([\\w-]+)")+"\\s","g"),j.match(g)&&(j=j.match(g))&&a.each(j,function(a,b){h.widgets.push(b.replace(g,"$1"))}),h.widgets.length&&(b.isApplyingWidgets=!0,h.widgets=a.grep(h.widgets,function(b,c){return a.inArray(b,h.widgets)===c}),a.each(h.widgets||[],function(a,b){(g=v.getWidgetById(b))&&g.id&&(g.priority||(g.priority=10),k[a]=g)}),k.sort(function(a,b){return a.priority<b.priority?-1:a.priority===b.priority?0:1}),a.each(k,function(c,e){e&&((d||!h.widgetInit[e.id])&&(h.widgetInit[e.id]=!0,e.hasOwnProperty("options")&&(i=b.config.widgetOptions=a.extend(!0,{},e.options,i)),e.hasOwnProperty("init")&&(h.debug&&(f=new Date),e.init(b,e,h,i),h.debug&&v.benchmark("Initializing "+e.id+" widget",f))),!d&&e.hasOwnProperty("format")&&(h.debug&&(f=new Date),e.format(b,h,i,!1),h.debug&&v.benchmark((d?"Initializing ":"Applying ")+e.id+" widget",f)))})),setTimeout(function(){b.isApplyingWidgets=!1,a.data(b,"lastWidgetApplication",new Date)},0),h.debug&&(j=h.widgets.length,c("Completed "+(!0===d?"initializing ":"applying ")+j+" widget"+(1!==j?"s":""),e)))},v.refreshWidgets=function(c,d,e){c=a(c)[0];var f,g=c.config,h=g.widgets,i=v.widgets,j=i.length;for(f=0;j>f;f++)i[f]&&i[f].id&&(d||0>a.inArray(i[f].id,h))&&(g.debug&&b('Refeshing widgets: Removing "'+i[f].id+'"'),i[f].hasOwnProperty("remove")&&g.widgetInit[i[f].id]&&(i[f].remove(c,g,g.widgetOptions),g.widgetInit[i[f].id]=!1));!0!==e&&v.applyWidget(c,d)},v.getData=function(b,c,d){var e="";b=a(b);var f,g;return b.length?(f=a.metadata?b.metadata():!1,g=" "+(b.attr("class")||""),"undefined"!=typeof b.data(d)||"undefined"!=typeof b.data(d.toLowerCase())?e+=b.data(d)||b.data(d.toLowerCase()):f&&"undefined"!=typeof f[d]?e+=f[d]:c&&"undefined"!=typeof c[d]?e+=c[d]:" "!==g&&g.match(" "+d+"-")&&(e=g.match(new RegExp("\\s"+d+"-([\\w-]+)"))[1]||""),a.trim(e)):""},v.formatFloat=function(b,c){if("string"!=typeof b||""===b)return b;var d;return b=(c&&c.config?!1!==c.config.usNumberFormat:"undefined"!=typeof c?c:1)?b.replace(/,/g,""):b.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(b)&&(b=b.replace(/^\s*\(([.\d]+)\)/,"-$1")),d=parseFloat(b),isNaN(d)?a.trim(b):d},v.isDigit=function(a){return isNaN(a)?/^[\-+(]?\d+[)]?$/.test(a.toString().replace(/[,.'"\s]/g,"")):!0}}});var b=a.tablesorter;a.fn.extend({tablesorter:b.construct}),b.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),b.addParser({id:"text",is:function(){return!0},format:function(c,d){var e=d.config;return c&&(c=a.trim(e.ignoreCase?c.toLocaleLowerCase():c),c=e.sortLocaleCompare?b.replaceAccents(c):c),c},type:"text"}),b.addParser({id:"digit",is:function(a){return b.isDigit(a)},format:function(c,d){var e=b.formatFloat((c||"").replace(/[^\w,. \-()]/g,""),d);return c&&"number"==typeof e?e:c?a.trim(c&&d.config.ignoreCase?c.toLocaleLowerCase():c):c},type:"numeric"}),b.addParser({id:"currency",is:function(a){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((a||"").replace(/[+\-,. ]/g,""))},format:function(c,d){var e=b.formatFloat((c||"").replace(/[^\w,. \-()]/g,""),d);return c&&"number"==typeof e?e:c?a.trim(c&&d.config.ignoreCase?c.toLocaleLowerCase():c):c},type:"numeric"}),b.addParser({id:"url",is:function(a){return/^(https?|ftp|file):\/\//.test(a)},format:function(b){return b?a.trim(b.replace(/(https?|ftp|file):\/\//,"")):b},parsed:!0,type:"text"}),b.addParser({id:"isoDate",is:function(a){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(a)},format:function(a){var b=a?new Date(a.replace(/-/g,"/")):a;return b instanceof Date&&isFinite(b)?b.getTime():a},type:"numeric"}),b.addParser({id:"percent",is:function(a){return/(\d\s*?%|%\s*?\d)/.test(a)&&15>a.length},format:function(a,c){return a?b.formatFloat(a.replace(/%/g,""),c):a},type:"numeric"}),b.addParser({id:"image",is:function(a,b,c,d){return 0<d.find("img").length},format:function(b,c,d){return a(d).find("img").attr(c.config.imgAttr||"alt")||b},parsed:!0,type:"text"}),b.addParser({id:"usLongDate",is:function(a){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(a)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(a)},format:function(a){var b=a?new Date(a.replace(/(\S)([AP]M)$/i,"$1 $2")):a;return b instanceof Date&&isFinite(b)?b.getTime():a},type:"numeric"}),b.addParser({id:"shortDate",is:function(a){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((a||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(a,c,d,e){if(a){d=c.config;var f=d.$headers.filter("[data-column="+e+"]:last");return e=f.length&&f[0].dateFormat||b.getData(f,b.getColumnData(c,d.headers,e),"dateFormat")||d.dateFormat,c=a.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===e?c=c.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===e?c=c.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===e&&(c=c.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3")),c=new Date(c),c instanceof Date&&isFinite(c)?c.getTime():a}return a},type:"numeric"}),b.addParser({id:"time",is:function(a){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(a)},format:function(a){var b=a?new Date("2000/01/01 "+a.replace(/(\S)([AP]M)$/i,"$1 $2")):a;return b instanceof Date&&isFinite(b)?b.getTime():a},type:"numeric"}),b.addParser({id:"metadata",is:function(){return!1},format:function(b,c,d){return b=c.config,b=b.parserMetadataName?b.parserMetadataName:"sortValue",a(d).metadata()[b]},type:"numeric"}),b.addWidget({id:"zebra",priority:90,format:function(b,c,d){var e,f,g,h,i=new RegExp(c.cssChildRow,"i"),j=c.$tbodies;for(b=0;b<j.length;b++)g=0,e=j.eq(b),e=e.children("tr:visible").not(c.selectorRemove),e.each(function(){f=a(this),i.test(this.className)||g++,h=0===g%2,f.removeClass(d.zebra[h?1:0]).addClass(d.zebra[h?0:1])})},remove:function(a,c,d){var e;c=c.$tbodies;var f=(d.zebra||["even","odd"]).join(" ");for(d=0;d<c.length;d++)e=b.processTbody(a,c.eq(d),!0),e.children().removeClass(f),b.processTbody(a,e,!1)}})}(jQuery),window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var a=[void 0],b="zero-timeout-message",c=function(c){var d=a.length;return a.push(c),window.postMessage(b+d.toString(36),"*"),d};return window.addEventListener("message",function(c){if("string"==typeof c.data&&c.data.substr(0,b.length)===b){c.stopImmediatePropagation();var d=parseInt(c.data.substr(b.length),36);a[d]&&(a[d](),a[d]=void 0)}},!0),window.clearImmediate=function(b){a[b]&&(a[b]=void 0)
},c}()||function(a){window.setTimeout(a,0)}}()),window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(a){window.clearTimeout(a)}}()),function(a){var b=function(){var a=document.createElement("canvas");if(!a||!a.getContext)return!1;var b=a.getContext("2d");return b.getImageData&&b.fillText&&Array.prototype.some&&Array.prototype.push?!0:!1}(),c=function(){if(b){for(var a,c,d=document.createElement("canvas").getContext("2d"),e=20;e;){if(d.font=e.toString(10)+"px sans-serif",d.measureText("W").width===a&&d.measureText("m").width===c)return e+1;a=d.measureText("W").width,c=d.measureText("m").width,e--}return 0}}(),d=function(a){for(var b,c,d=a.length;d;b=Math.floor(Math.random()*d),c=a[--d],a[d]=a[b],a[b]=c);return a},e=function(a,e){if(b){Array.isArray(a)||(a=[a]),a.forEach(function(b,c){if("string"==typeof b){if(a[c]=document.getElementById(b),!a[c])throw"The element id specified is not found."}else if(!b.tagName&&!b.appendChild)throw"You must pass valid HTML elements, or ID of the element."});var f={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,hover:null,click:null};if(e)for(var g in e)g in f&&(f[g]=e[g]);if("function"!=typeof f.weightFactor){var h=f.weightFactor;f.weightFactor=function(a){return a*h}}if("function"!=typeof f.shape)switch(f.shape){case"circle":default:f.shape="circle";break;case"cardioid":f.shape=function(a){return 1-Math.sin(a)};break;case"diamond":case"square":f.shape=function(a){var b=a%(2*Math.PI/4);return 1/(Math.cos(b)+Math.sin(b))};break;case"triangle-forward":f.shape=function(a){var b=a%(2*Math.PI/3);return 1/(Math.cos(b)+Math.sqrt(3)*Math.sin(b))};break;case"triangle":case"triangle-upright":f.shape=function(a){var b=(a+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(b)+Math.sqrt(3)*Math.sin(b))};break;case"pentagon":f.shape=function(a){var b=(a+.955)%(2*Math.PI/5);return 1/(Math.cos(b)+.726543*Math.sin(b))};break;case"star":f.shape=function(a){var b=(a+.955)%(2*Math.PI/10);return(a+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-b)+3.07768*Math.sin(2*Math.PI/10-b)):1/(Math.cos(b)+3.07768*Math.sin(b))}}f.gridSize=Math.max(Math.floor(f.gridSize),4);var i,j,k,l,m,n,o,p=f.gridSize,q=p-f.maskGapWidth,r=Math.abs(f.maxRotation-f.minRotation),s=Math.min(f.maxRotation,f.minRotation);switch(f.color){case"random-dark":o=function(){return"rgb("+Math.floor(128*Math.random()).toString(10)+","+Math.floor(128*Math.random()).toString(10)+","+Math.floor(128*Math.random()).toString(10)+")"};break;case"random-light":o=function(){return"rgb("+Math.floor(128*Math.random()+128).toString(10)+","+Math.floor(128*Math.random()+128).toString(10)+","+Math.floor(128*Math.random()+128).toString(10)+")"};break;default:"function"==typeof f.color&&(o=f.color)}var t,u=!1,v=[],w=function(a){var b=a.currentTarget,c=b.getBoundingClientRect(),d=a.clientX-c.left,e=a.clientY-c.top,f=Math.floor(d*(b.width/c.width||1)/p),g=Math.floor(e*(b.height/c.height||1)/p);return v[f][g]},x=function(a){var b=w(a);if(t!==b)return t=b,b?void f.hover(b.item,b.dimension,a):void f.hover(void 0,void 0,a)},y=function(a){var b=w(a);b&&f.click(b.item,b.dimension,a)},z=[],A=function(a){if(z[a])return z[a];var b=8*a,c=b,d=[];for(0===a&&d.push([l[0],l[1],0]);c--;){var e=1;"circle"!==f.shape&&(e=f.shape(c/b*2*Math.PI)),d.push([l[0]+a*e*Math.cos(-c/b*2*Math.PI),l[1]+a*e*Math.sin(-c/b*2*Math.PI)*f.ellipticity,c/b*2*Math.PI])}return z[a]=d,d},B=function(){return f.abortThreshold>0&&(new Date).getTime()-n>f.abortThreshold},C=function(){return 0===f.rotateRatio?0:Math.random()>f.rotateRatio?0:0===r?s:s+Math.random()*r},D=function(a,b,d){var e=!1,g=f.weightFactor(b);if(g<=f.minSize)return!1;var h=1;c>g&&(h=function(){for(var a=2;c>a*g;)a+=2;return a}());var i=document.createElement("canvas"),j=i.getContext("2d",{willReadFrequently:!0});j.font=f.fontWeight+" "+(g*h).toString(10)+"px "+f.fontFamily;var k=j.measureText(a).width/h,l=Math.max(g*h,j.measureText("m").width,j.measureText("W").width)/h,m=k+2*l,n=3*l,o=Math.ceil(m/p),q=Math.ceil(n/p);m=o*p,n=q*p;var r=-k/2,s=.4*-l,t=Math.ceil((m*Math.abs(Math.sin(d))+n*Math.abs(Math.cos(d)))/p),u=Math.ceil((m*Math.abs(Math.cos(d))+n*Math.abs(Math.sin(d)))/p),v=u*p,w=t*p;i.setAttribute("width",v),i.setAttribute("height",w),e&&(document.body.appendChild(i),j.save()),j.scale(1/h,1/h),j.translate(v*h/2,w*h/2),j.rotate(-d),j.font=f.fontWeight+" "+(g*h).toString(10)+"px "+f.fontFamily,j.fillStyle="#000",j.textBaseline="middle",j.fillText(a,r*h,(s+.5*g)*h);var x=j.getImageData(0,0,v,w).data;if(B())return!1;e&&(j.strokeRect(r*h,s,k*h,l*h),j.restore());for(var y,z,A,C=[],D=u,E=[t/2,u/2,t/2,u/2];D--;)for(y=t;y--;){A=p;a:{for(;A--;)for(z=p;z--;)if(x[4*((y*p+A)*v+(D*p+z))+3]){C.push([D,y]),D<E[3]&&(E[3]=D),D>E[1]&&(E[1]=D),y<E[0]&&(E[0]=y),y>E[2]&&(E[2]=y),e&&(j.fillStyle="rgba(255, 0, 0, 0.5)",j.fillRect(D*p,y*p,p-.5,p-.5));break a}e&&(j.fillStyle="rgba(0, 0, 255, 0.5)",j.fillRect(D*p,y*p,p-.5,p-.5))}}return e&&(j.fillStyle="rgba(0, 255, 0, 0.5)",j.fillRect(E[3]*p,E[0]*p,(E[1]-E[3]+1)*p,(E[2]-E[0]+1)*p)),{mu:h,occupied:C,bounds:E,gw:u,gh:t,fillTextOffsetX:r,fillTextOffsetY:s,fillTextWidth:k,fillTextHeight:l,fontSize:g}},E=function(a,b,c,d,e){for(var f=e.length;f--;){var g=a+e[f][0],h=b+e[f][1];if(g>=j||h>=k||0>g||0>h||!i[g][h])return!1}return!0},F=function(b,c,d,e,g,h,i,j,k){var l,m=d.fontSize;l=o?o(e,g,m,h,i):f.color;var n,q=d.bounds;n={x:(b+q[3])*p,y:(c+q[0])*p,w:(q[1]-q[3]+1)*p,h:(q[2]-q[0]+1)*p},a.forEach(function(a){if(a.getContext){var g=a.getContext("2d"),h=d.mu;g.save(),g.scale(1/h,1/h),g.font=f.fontWeight+" "+(m*h).toString(10)+"px "+f.fontFamily,g.fillStyle=l,g.translate((b+d.gw/2)*p*h,(c+d.gh/2)*p*h),0!==j&&g.rotate(-j),g.textBaseline="middle",g.fillText(e,d.fillTextOffsetX*h,(d.fillTextOffsetY+.5*m)*h),g.restore()}else{var i=document.createElement("span"),n="";n="rotate("+-j/Math.PI*180+"deg) ",1!==d.mu&&(n+="translateX(-"+d.fillTextWidth/4+"px) scale("+1/d.mu+")");var o={position:"absolute",display:"block",font:f.fontWeight+" "+m*d.mu+"px "+f.fontFamily,left:(b+d.gw/2)*p+d.fillTextOffsetX+"px",top:(c+d.gh/2)*p+d.fillTextOffsetY+"px",width:d.fillTextWidth+"px",height:d.fillTextHeight+"px",color:l,lineHeight:m+"px",whiteSpace:"nowrap",transform:n,webkitTransform:n,msTransform:n,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};i.textContent=e;for(var q in o)i.style[q]=o[q];if(k)for(var r in k)i.setAttribute(r,k[r]);a.appendChild(i)}})},G=function(b,c,d,e,f){if(!(b>=j||c>=k||0>b||0>c)){if(i[b][c]=!1,d){var g=a[0].getContext("2d");g.fillRect(b*p,c*p,q,q)}u&&(v[b][c]={item:f,dimension:e})}},H=function(b,c,d,e,g,h){var i,j=g.occupied,k=f.drawMask;k&&(i=a[0].getContext("2d"),i.save(),i.fillStyle=f.maskColor);var l;if(u){var m=g.bounds;l={x:(b+m[3])*p,y:(c+m[0])*p,w:(m[1]-m[3]+1)*p,h:(m[2]-m[0]+1)*p}}for(var n=j.length;n--;)G(b+j[n][0],c+j[n][1],k,l,h);k&&i.restore()},I=function(a){var b,c,e;Array.isArray(a)?(b=a[0],c=a[1]):(b=a.word,c=a.weight,e=a.attributes);var g=C(),h=D(b,c,g);if(!h)return!1;if(B())return!1;var i=h.bounds;if(i[1]-i[3]+1>j||i[2]-i[0]+1>k)return!1;for(var l=m+1,n=function(d){var f=Math.floor(d[0]-h.gw/2),i=Math.floor(d[1]-h.gh/2),j=h.gw,k=h.gh;return E(f,i,j,k,h.occupied)?(F(f,i,h,b,c,m-l,d[2],g,e),H(f,i,j,k,h,a),!0):!1};l--;){var o=A(m-l);f.shuffle&&(o=[].concat(o),d(o));var p=o.some(n);if(p)return!0}return!1},J=function(b,c,d){return c?!a.some(function(a){var e=document.createEvent("CustomEvent");return e.initCustomEvent(b,!0,c,d||{}),!a.dispatchEvent(e)},this):void a.forEach(function(a){var e=document.createEvent("CustomEvent");e.initCustomEvent(b,!0,c,d||{}),a.dispatchEvent(e)},this)},K=function(){var b=a[0];if(b.getContext)j=Math.floor(b.width/p),k=Math.floor(b.height/p);else{var c=b.getBoundingClientRect();j=Math.floor(c.width/p),k=Math.floor(c.height/p)}if(J("wordcloudstart",!0)){l=f.origin?[f.origin[0]/p,f.origin[1]/p]:[j/2,k/2],m=Math.floor(Math.sqrt(j*j+k*k)),i=[];var d,e,g;if(!b.getContext||f.clearCanvas)for(a.forEach(function(a){if(a.getContext){var b=a.getContext("2d");b.fillStyle=f.backgroundColor,b.clearRect(0,0,j*(p+1),k*(p+1)),b.fillRect(0,0,j*(p+1),k*(p+1))}else a.textContent="",a.style.backgroundColor=f.backgroundColor}),d=j;d--;)for(i[d]=[],e=k;e--;)i[d][e]=!0;else{var h=document.createElement("canvas").getContext("2d");h.fillStyle=f.backgroundColor,h.fillRect(0,0,1,1);var o=h.getImageData(0,0,1,1).data,q=b.getContext("2d").getImageData(0,0,j*p,k*p).data;d=j;for(var r,s;d--;)for(i[d]=[],e=k;e--;){s=p;a:for(;s--;)for(r=p;r--;)for(g=4;g--;)if(q[4*((e*p+s)*j*p+(d*p+r))+g]!==o[g]){i[d][e]=!1;break a}i[d][e]!==!1&&(i[d][e]=!0)}q=h=o=void 0}if(f.hover||f.click){for(u=!0,d=j+1;d--;)v[d]=[];f.hover&&b.addEventListener("mousemove",x),f.click&&b.addEventListener("click",y),b.addEventListener("wordcloudstart",function F(){b.removeEventListener("wordcloudstart",F),b.removeEventListener("mousemove",x),b.removeEventListener("click",y),t=void 0})}g=0;var w,z;0!==f.wait?(w=window.setTimeout,z=window.clearTimeout):(w=window.setImmediate,z=window.clearImmediate);var A=function(b,c){a.forEach(function(a){a.addEventListener(b,c)},this)},C=function(b,c){a.forEach(function(a){a.removeEventListener(b,c)},this)},D=function G(){C("wordcloudstart",G),z(E)};A("wordcloudstart",D);var E=w(function H(){if(g>=f.list.length)return z(E),J("wordcloudstop",!1),void C("wordcloudstart",D);n=(new Date).getTime();var a=I(f.list[g]),b=!J("wordclouddrawn",!0,{item:f.list[g],drawn:a});return B()||b?(z(E),f.abort(),J("wordcloudabort",!1),J("wordcloudstop",!1),void C("wordcloudstart",D)):(g++,void(E=w(H,f.wait)))},f.wait)}};K()}};e.isSupported=b,e.miniumFontSize=c,"function"==typeof a.define&&a.define.amd?a.define("wordcloud",[],function(){return e}):a.WordCloud=e}(window),function(a,b,c,d,e,f,g,h,i){function j(a,b){this.id=a,this.timestamp=b,this.participants=new FastSet(null,function(a,b){return a.gaiaId===b.gaiaId},function(a){return a.gaiaId}),this.events=new SortedArray([],!1,function(a,b){return a.timestamp-b.timestamp})}function k(a,b,c,d,e){this.id=a,this.timestamp=b,this.senderId=c,this.message=d,this.attachments=e}function m(a,b,c){this.name=a||"Unnamed #"+unnamedPersonCt++,this.gaiaId=b,this.chatId=c}function n(){var b=this;this._ready=a.Deferred(),this.store=new d({storeName:"Hangouts",storePrefix:"theopolisme-",dbVersion:1,keyPath:null,indexes:[],onStoreReady:function(){b._ready.resolve(!0)},onError:function(a){throw a}})}function o(b,c){a(".toast").length?a(".toast span").text(b):toast(b,6e3),"e"===c&&setTimeout(function(){u()},2e3)}function p(a){return z.test(a)?a.replace(z,"$1$2$3"):!1}function q(a,b){var c=i(a.size),d=new FileReader;o("Preparing to import file ("+c+")..."),d.onprogress=function(a){var b=Math.round(a.loaded/a.total*100);o(b+"% of "+c+" loaded...")},d.onerror=function(){o("Error reading file: "+d.error,"e")},d.onload=function(a){b(a.target.result)},d.readAsText(a)}function r(a){var b,c,d;return o("Parsing iMessage stuffs..."),c={},d=new FastSet(null,function(a,b){return a.id===b.id},function(a){return a.id}),b=f.tsv.parse(a),b.forEach(function(a){var b="1"===a.is_from_me?"Me":a.contact;c[a.contact]||(c[a.contact]=new j(generateUuid(),1e3*a.date)),c[a.contact].participants.has({gaiaId:b})||c[a.contact].participants.add(new m(b,b)),c[a.contact].events.push(new k(a.ROWID,1e3*a.date,{gaiaId:b},a.text))}),Object.keys(c).forEach(function(a){d.add(c[a])}),d}function s(a){var b,c,d,e,f,g,h,i,l,n,p,q,r,s,t,u,v;for(o("Parsing JSON data..."),b=JSON.parse(a),c=["conversation_state","conversations"].filter(function(a){return!!b[a]})[0],d=b[c].length,e=new FastSet(null,function(a,b){return a.id===b.id},function(a){return a.id}),index=0;index<b[c].length;index++){for(n=b[c][index],n.conversation&&(n=n.conversation),l=new j(n.conversation_id.id,(n.response_header?n.response_header.current_server_time:n.conversation.self_conversation_state.active_timestamp)/y),o("Processing conversation ("+index+" / "+d+")..."),f=0;f<n.conversation.participant_data.length;f++)p=n.conversation.participant_data[f],l.participants.add(new m(p.fallback_name,p.id.gaia_id,p.id.chat_id));for(g=0;g<b[c][index].events.length;g++)if(q=b[c][index].events[g],q.chat_message){if(r=q.chat_message.message_content,s=[],t=[],r.segment)for(h=0;h<r.segment.length;h++)u=r.segment[h],-1!==["text","link"].indexOf(u.type.toLowerCase())&&s.push(u.text);if(r.attachment)for(i=0;i<r.attachment.length;i++)v=r.attachment[i],"plus_photo"==v.embed_item.type[0].toLowerCase()&&t.push(v.embed_item.plus_photo.url);l.events.push(new k(q.event_id,q.timestamp/y,{gaiaId:q.sender_id.gaia_id,chatId:q.sender_id.chat_id},s.join(" "),t))}e.add(l)}return e}function t(b){a(document.body).on("dragenter dragleave",function(){a(this).toggleClass("dragged-file-over")}).on("drop",function(c){c.preventDefault(),a(this).removeClass("dragged-file-over"),b(c.originalEvent.dataTransfer.files[0])})}function u(){function b(b){c.hideModal(),a(document.body).off("dragenter dragleave drop"),v(b)}var c;window.location.hash="#/welcome",a(document).on("dragenter dragover drop",function(a){a.stopPropagation(),a.preventDefault()}),c=a("#intro"),c.showModal(),a(".modal-trigger").leanModal(),t(b),a("#file").change(function(){b(this.files[0])}),a("#resetLink").click(function(){a(window).off("hashchange"),a("#viewer").empty(),a(".loading").show(),o("Resetting Hangouts Analyzer..."),hangoutsDatabase.clear(),setTimeout(function(){window.location.reload()},1e3)}),IS_DEV&&hangoutsDatabase.get("conversationData",function(b){b&&(c.hideModal(),a(document.body).off("dragenter dragleave drop"),w(b))})}function v(a){q(a,function(b){var c;-1!==a.name.indexOf(".tsv")&&(c="imessage"),IS_DEV&&"imessage"!==c&&hangoutsDatabase.put("conversationData",b),w(b,c)})}function w(b,c){var d,e;try{d="imessage"===c?r(b):s(b),o("Conversations parsed successfully!")}catch(f){return o("Error reading file: "+f.message,"e"),void console.error(f)}e=new x(a("#viewer"),d),window.viewer=e,a(".loading").fadeOut()}function x(b,c){this.$container=b,this.conversations=c,this.view="",this._conversationsTemplate=a("#conversations-template").html(),this._conversationTemplate=a("#conversation-template").html(),this.initRouter(),this.checkParticipantNames()}var y=Math.pow(10,3),z=/^[\+\d{1,3}\-\s]*\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/,A=/\uD83C(?:\uDDE6\uD83C(?:\uDDEB|\uDDFD|\uDDF1|\uDDF8|\uDDE9|\uDDF4|\uDDEE|\uDDF6|\uDDEC|\uDDF7|\uDDF2|\uDDFC|\uDDE8|\uDDFA|\uDDF9|\uDDFF|\uDDEA)|\uDDE9\uD83C(?:\uDDFF|\uDDF0|\uDDEC|\uDDEF|\uDDF2|\uDDF4|\uDDEA)|\uDDE7\uD83C(?:\uDDF8|\uDDED|\uDDE9|\uDDE7|\uDDFE|\uDDEA|\uDDFF|\uDDEF|\uDDF2|\uDDF9|\uDDF4|\uDDE6|\uDDFC|\uDDFB|\uDDF7|\uDDF3|\uDDEC|\uDDEB|\uDDEE|\uDDF6|\uDDF1)|\uDDEE\uD83C(?:\uDDF4|\uDDE8|\uDDF8|\uDDF3|\uDDE9|\uDDF7|\uDDF6|\uDDEA|\uDDF2|\uDDF1|\uDDF9)|\uDDFB\uD83C(?:\uDDEC|\uDDE8|\uDDEE|\uDDFA|\uDDE6|\uDDEA|\uDDF3)|\uDDF0\uD83C(?:\uDDED|\uDDFE|\uDDF2|\uDDFF|\uDDEA|\uDDEE|\uDDFC|\uDDEC|\uDDF5|\uDDF7|\uDDF3)|\uDDE8\uD83C(?:\uDDF2|\uDDE6|\uDDFB|\uDDEB|\uDDF1|\uDDF3|\uDDFD|\uDDF5|\uDDE8|\uDDF4|\uDDEC|\uDDE9|\uDDF0|\uDDF7|\uDDEE|\uDDFA|\uDDFC|\uDDFE|\uDDFF|\uDDED)|\uDDEA\uD83C(?:\uDDE6|\uDDE8|\uDDEC|\uDDF7|\uDDEA|\uDDF9|\uDDFA|\uDDF8|\uDDED)|\uDDF9\uD83C(?:\uDDE9|\uDDEB|\uDDFC|\uDDEF|\uDDFF|\uDDED|\uDDF1|\uDDEC|\uDDF0|\uDDF4|\uDDF9|\uDDE6|\uDDF3|\uDDF7|\uDDF2|\uDDE8|\uDDFB)|\uDDED\uD83C(?:\uDDF7|\uDDF9|\uDDF2|\uDDF3|\uDDF0|\uDDFA)|\uDDF8\uD83C(?:\uDDFB|\uDDF2|\uDDF9|\uDDE6|\uDDF3|\uDDE8|\uDDF1|\uDDEC|\uDDFD|\uDDF0|\uDDEE|\uDDE7|\uDDF4|\uDDF8|\uDDED|\uDDE9|\uDDF7|\uDDEF|\uDDFF|\uDDEA|\uDDFE)|\uDDEC\uD83C(?:\uDDF6|\uDDEB|\uDDE6|\uDDF2|\uDDEA|\uDDED|\uDDEE|\uDDF7|\uDDF1|\uDDE9|\uDDF5|\uDDFA|\uDDF9|\uDDEC|\uDDF3|\uDDFC|\uDDFE|\uDDF8|\uDDE7)|\uDDEB\uD83C(?:\uDDF0|\uDDF4|\uDDEF|\uDDEE|\uDDF7|\uDDF2)|\uDDF5\uD83C(?:\uDDEB|\uDDF0|\uDDFC|\uDDF8|\uDDE6|\uDDEC|\uDDFE|\uDDEA|\uDDED|\uDDF3|\uDDF1|\uDDF9|\uDDF7|\uDDF2)|\uDDEF\uD83C(?:\uDDF2|\uDDF5|\uDDEA|\uDDF4)|\uDDFD\uD83C\uDDF0|\uDDF1\uD83C(?:\uDDE6|\uDDFB|\uDDE7|\uDDF8|\uDDF7|\uDDFE|\uDDEE|\uDDF9|\uDDFA|\uDDF0|\uDDE8)|\uDDF2\uD83C(?:\uDDF4|\uDDF0|\uDDEC|\uDDFC|\uDDFE|\uDDFB|\uDDF1|\uDDF9|\uDDED|\uDDF6|\uDDF7|\uDDFA|\uDDFD|\uDDE9|\uDDE8|\uDDF3|\uDDEA|\uDDF8|\uDDE6|\uDDFF|\uDDF2|\uDDF5|\uDDEB)|\uDDFE\uD83C(?:\uDDF9|\uDDEA)|\uDDF3\uD83C(?:\uDDE6|\uDDF7|\uDDF5|\uDDF1|\uDDE8|\uDDFF|\uDDEE|\uDDEA|\uDDEC|\uDDFA|\uDDEB|\uDDF4)|\uDDF4\uD83C\uDDF2|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C(?:\uDDEA|\uDDF4|\uDDFA|\uDDFC|\uDDF8)|\uDDFC\uD83C(?:\uDDF8|\uDDEB)|\uDDFF\uD83C(?:\uDDE6|\uDDF2|\uDDFC)|\uDDFA\uD83C(?:\uDDEC|\uDDE6|\uDDF8|\uDDFE|\uDDF2|\uDDFF))|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26F7-\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF30-\uDF35\uDF37-\uDF7C\uDF80-\uDF93\uDFA0-\uDFCA\uDFE0-\uDFF0\uDFF4]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDD00-\uDD3D\uDD50-\uDD67\uDD95\uDD96\uDDFB-\uDE42\uDE45-\uDE4F\uDE80-\uDEC5\uDECC\uDEEB\uDEEC]/g,B=/(\<3|<3|\<\/3|<\/3|\:'\)|\:'\-\)|\:D|\:\-D|\=D|\:\)|\:\-\)|\=\]|\=\)|\:\]|'\:\)|'\:\-\)|'\=\)|'\:D|'\:\-D|'\=D|\>\:\)|>\:\)|\>;\)|>;\)|\>\:\-\)|>\:\-\)|\>\=\)|>\=\)|;\)|;\-\)|\*\-\)|\*\)|;\-\]|;\]|;D|;\^\)|'\:\(|'\:\-\(|'\=\(|\:\*|\:\-\*|\=\*|\:\^\*|\>\:P|>\:P|X\-P|x\-p|\>\:\[|>\:\[|\:\-\(|\:\(|\:\-\[|\:\[|\=\(|\>\:\(|>\:\(|\>\:\-\(|>\:\-\(|\:@|\:'\(|\:'\-\(|;\(|;\-\(|\>\.\<|>\.<|\:\$|\=\$|#\-\)|#\)|%\-\)|%\)|X\)|X\-\)|\*\\0\/\*|\\0\/|\*\\O\/\*|\\O\/|O\:\-\)|0\:\-3|0\:3|0\:\-\)|0\:\)|0;\^\)|O\:\-\)|O\:\)|O;\-\)|O\=\)|0;\-\)|O\:\-3|O\:3|B\-\)|B\)|8\)|8\-\)|B\-D|8\-D|\-_\-|\-__\-|\-___\-|\>\:\\|>\:\\|\>\:\/|>\:\/|\:\-\/|\:\-\.|\:\/|\:\\|\=\/|\=\\|\:L|\=L|\:P|\:\-P|\=P|\:\-p|\:p|\=p|\:\-Þ|\:\-Þ|\:Þ|\:Þ|\:þ|\:þ|\:\-þ|\:\-þ|\:\-b|\:b|d\:|\:\-O|\:O|\:\-o|\:o|O_O|\>\:O|>\:O|\:\-X|\:X|\:\-#|\:#|\=X|\=x|\:x|\:\-x|\=#)/g,C={"<3":"2764","</3":"1f494",":')":"1f602",":'-)":"1f602",":D":"1f603",":-D":"1f603","=D":"1f603",":)":"1f604",":-)":"1f604","=]":"1f604","=)":"1f604",":]":"1f604","':)":"1f605","':-)":"1f605","'=)":"1f605","':D":"1f605","':-D":"1f605","'=D":"1f605",">:)":"1f606",">;)":"1f606",">:-)":"1f606",">=)":"1f606",";)":"1f609",";-)":"1f609","*-)":"1f609","*)":"1f609",";-]":"1f609",";]":"1f609",";D":"1f609",";^)":"1f609","':(":"1f613","':-(":"1f613","'=(":"1f613",":*":"1f618",":-*":"1f618","=*":"1f618",":^*":"1f618",">:P":"1f61c","X-P":"1f61c","x-p":"1f61c",">:[":"1f61e",":-(":"1f61e",":(":"1f61e",":-[":"1f61e",":[":"1f61e","=(":"1f61e",">:(":"1f620",">:-(":"1f620",":@":"1f620",":'(":"1f622",":'-(":"1f622",";(":"1f622",";-(":"1f622",">.<":"1f623",":$":"1f633","=$":"1f633","#-)":"1f635","#)":"1f635","%-)":"1f635","%)":"1f635","X)":"1f635","X-)":"1f635","*\\0/*":"1f646","\\0/":"1f646","*\\O/*":"1f646","\\O/":"1f646","O:-)":"1f607","0:-3":"1f607","0:3":"1f607","0:-)":"1f607","0:)":"1f607","0;^)":"1f607","O:)":"1f607","O;-)":"1f607","O=)":"1f607","0;-)":"1f607","O:-3":"1f607","O:3":"1f607","B-)":"1f60e","B)":"1f60e","8)":"1f60e","8-)":"1f60e","B-D":"1f60e","8-D":"1f60e","-_-":"1f611","-__-":"1f611","-___-":"1f611",">:\\":"1f615",">:/":"1f615",":-/":"1f615",":-.":"1f615",":/":"1f615",":\\":"1f615","=/":"1f615","=\\":"1f615",":L":"1f615","=L":"1f615",":P":"1f61b",":-P":"1f61b","=P":"1f61b",":-p":"1f61b",":p":"1f61b","=p":"1f61b",":-Þ":"1f61b",":Þ":"1f61b",":þ":"1f61b",":-þ":"1f61b",":-b":"1f61b",":b":"1f61b","d:":"1f61b",":-O":"1f62e",":O":"1f62e",":-o":"1f62e",":o":"1f62e",O_O:"1f62e",">:O":"1f62e",":-X":"1f636",":X":"1f636",":-#":"1f636",":#":"1f636","=X":"1f636","=x":"1f636",":x":"1f636",":-x":"1f636","=#":"1f636"},D=function(a){if(-1<a.indexOf("-")){var b=[];a=a.split("-");for(var c=0;c<a.length;c++){var d=parseInt(a[c],16);if(d>=65536&&1114111>=d)var e=Math.floor((d-65536)/1024)+55296,d=(d-65536)%1024+56320,d=String.fromCharCode(e)+String.fromCharCode(d);else d=String.fromCharCode(d);b.push(d)}return b.join("")}return a=parseInt(a,16),a>=65536&&1114111>=a?(e=Math.floor((a-65536)/1024)+55296,String.fromCharCode(e)+String.fromCharCode((a-65536)%1024+56320)):String.fromCharCode(a)};EMOJI_SUPPORTED=function(){var a;return document.createElement("canvas").getContext&&(a=document.createElement("canvas").getContext("2d"),"function"==typeof a.fillText)?(smile=String.fromCharCode(55357)+String.fromCharCode(56835),a.textBaseline="top",a.font="32px Arial",a.fillText(smile,0,0),0!==a.getImageData(16,16,1,1).data[0]):void 0}(),generateUuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0,c="x"==a?b:3&b|8;return c.toString(16)})},IS_DEV=-1!==window.location.search.indexOf("dev=true"),unnamedPersonCt=0,hangoutsDatabase=new n,n.prototype.put=function(a,b){var c=this;this._ready.then(function(){c.store.put(a,b)})},n.prototype.get=function(a,b){var c=this;this._ready.then(function(){c.store.get(a,b)})},n.prototype.clear=function(){var a=this;this._ready.then(function(){a.store.clear()})},a.fn.showModal=function(){a("#lean_overlay").fadeTo(200,.5),this.css({display:"block",position:"fixed",opacity:0,"z-index":11e3,left:"50%","margin-left":-(this.outerWidth()/2)+"px",top:"100px"}).fadeTo(200,1)},a.fn.hideModal=function(){this.fadeOut(200),a("#lean_overlay").fadeOut(200)},x.prototype.initRouter=function(){function c(){var a=window.location.hash||"#/";e.run(a.substr(2))}var d=this,e=new b;d.router=e,e.add("",function(){window.location.hash="#/conversations"}),e.add("conversations",function(){d.load("main")}),e.add("conversations/:id",function(a){d.load("conversation",{id:a.params.id})}),a(window).on("hashchange",c),window.location.hash="#/conversations",c()},x.prototype.checkParticipantNames=function(){var b=this,c=0;this.conversations.forEach(function(a){a.participants.forEach(function(a){var b=p(a.name);if(b){var d,e="(XXX) XXX-XXXX";for(c++,a._normalizedPhone=b,d=0,l=b.length;d<l;d++)e=e.replace("X",b[d]);a.name=e}})}),b.router.run("conversations"),0!==c&&hangoutsDatabase.get("numbersToNames",function(d){function e(a){b.conversations.forEach(function(b){b.participants.forEach(function(b){b._normalizedPhone&&a[b._normalizedPhone]&&(b.name=a[b._normalizedPhone])})}),b.router.run("conversations"),o("Participant names updated!")}function g(b){a("#missingNames").hideModal(),a(document.body).off("dragenter dragleave drop"),q(b,function(a){var b=f.csv.parse(a),c={};o("Updating participant names..."),b.forEach(function(a){function b(b){a[b]&&a[b].split(" ::: ").forEach(function(b){c[p(b)]=a.Name})}a.Name&&(b("Phone 1 - Value"),b("Phone 2 - Value"))}),hangoutsDatabase.put("numbersToNames",c),e(c)})}d?e(d):(setTimeout(function(){a("#noNames").text(c),a("#missingNames").showModal(),a("#noThanksUpload").click(function(){a("#missingNames").hideModal(),a(document.body).off("dragenter dragleave drop")})},1e3),t(g),a("#contactFile").change(function(){g(this.files[0])}))})},x.prototype.load=function(b,d){var i=this,j={main:function(){var b=a(i._conversationsTemplate);document.title="Conversations | Hangouts Analyzer",i.$container.empty().append(b),i.conversations.forEach(function(c){var d,e,g;c.events.length&&(d=c.participants.map(function(a){return a.name}).join(", "),e=c.events.array[c.events.length-1].timestamp,g=new Date(e).toISOString(),b.find("tbody").append(a("<tr>").append(a("<td>").append(a('<a href="#/conversations/'+c.id+'">').text(d)),a("<td>").attr("data-text",e).append(a('<span class="timeago">').attr("title",g).text(g)),a("<td>").text(f.format(",")(c.events.length)))))}),a("span.timeago").timeago(),b.find("table").tablesorter({sortList:[[1,1]]})},conversation:function(b){function d(b,c,d){return g.generate(a.extend(!0,{bindto:b,data:{columns:c,type:"pie"},tooltip:{format:{value:function(a,b){return f.format(".2s")(a)+" ("+f.format(".3p")(b)+")"}}}},d||{}))}function j(a,b){var c,d,e,f,h;c={},d=[];for(participant in r)name=participantIdToName[participant],f=[name],e=[name+"_x"],h=r[participant].group(function(a){var b=new Date(a.timestamp);return b.toDateString()}),h.forEach(function(a){e.push(new Date(a[0])),f.push(b(a[1]))}),c[f[0]]=e[0],d.push(e),d.push(f);g.generate({bindto:a,data:{xs:c,columns:d},point:{show:!1},axis:{x:{type:"timeseries",tick:{fit:!0,format:"%Y-%m-%d"}}}})}function k(){function b(){var a=[];s.participants.forEach(function(b){a.push([b.name,s.events.filter(function(a){return a.senderId.gaiaId===b.gaiaId}).length])}),d("#messageDistro",a)}function e(){var a=[];s.participants.forEach(function(b){a.push([b.name,s.events.filter(function(a){return a.senderId.gaiaId===b.gaiaId}).map(function(a){return a.message.length}).sum()])}),d("#characterDistro",a)}function h(){var b,c,d,e,h,i,j,k,l,m={},n={},o={},p=[],q=0,r=["Saturday","Friday","Thursday","Wednesday","Tuesday","Monday","Sunday"],t=["12am","1am","2am","3am","4am","5am","6am","7am","8am","9am","10am","11am","12pm","1pm","2pm","3pm","4pm","5pm","6pm","7pm","8pm","9pm","10pm","11pm"];s.participants.forEach(function(a){for(m[a.gaiaId]={},b=0,c=0;7>b;){for(m[a.gaiaId][b]={},c=0;24>c;)m[a.gaiaId][b][c]=0,c++;b++}}),s.events.forEach(function(a){var b=new Date(a.timestamp);m[a.senderId.gaiaId][6-b.getDay()][b.getHours()]+=1}),o={},p=[];for(d in m){k=participantIdToName[d],n[k]=d,j=[k],i=[k+"_x"];for(e in m[d])for(h in m[d][e])m[d][e][h]>q&&(q=m[d][e][h]),i.push(h),j.push(e);o[j[0]]=i[0],p.push(i),p.push(j)}l=f.scale.sqrt().domain([0,q]).range([0,25]),g.generate({bindto:"#eventSendTime",data:{xs:o,columns:p,type:"scatter"},point:{r:function(a){return l(m[n[a.id]][a.value][a.x])},focus:{expand:{enabled:!1}}},axis:{x:{tick:{format:function(a){return t[a]}}},y:{tick:{format:function(a){return r[a]}}}},tooltip:{contents:function(b){var c=this,d=b[0],e='<table class="c3-tooltip"><tbody><tr><th colspan="2">'+r[d.value]+", "+t[d.x]+"</th></tr>";return a.each(n,function(a,b){var f=m[b][d.value][d.x];0!==f&&(e+='<tr class="c3-tooltip-name-'+a+'"><td class="name"><span style="background-color:'+c.config.data_colors[a]+'"></span>'+a+'</td><td class="value">'+f+"</td></tr>")}),e+="</tbody></table>"}}})}function i(){var a,b,c=s.events.array,e=[],f={},g={},h=[],i=[];for(s.participants.forEach(function(a){f[a.gaiaId]=0,g[a.gaiaId]=0}),a=0;a<c.length;){for(b=[c[a]],a++;a<c.length&&c[a].timestamp-c[a-1].timestamp<36e5;)b.push(c[a]),a++;e.push(b)}e.forEach(function(a){f[a[0].senderId.gaiaId]++,g[a[a.length-1].senderId.gaiaId]++}),s.participants.forEach(function(a){h.push([a.name,f[a.gaiaId]]),i.push([a.name,g[a.gaiaId]])}),d("#initiatorGraph",h),d("#endersGraph",i)}function k(){j("#messagesPerDay",function(a){return a.length})}a("#messageFactoid").css("background-color",c.make_color({golden:!1,value:.5})).append(a('<span class="white-text">').html("A total of <strong>"+f.format(",")(s.events.length)+"</strong> messages exchanged")),b(),e(),h(),i(),k()}function l(){function a(){var a,b,c,d,h,i;a={},b=[];for(c in r)name=participantIdToName[c],h=[name],d=[name+"_x"],i=r[c].group(function(a){var b=new Date(a.timestamp);return b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.toISOString()}),i.forEach(function(a){d.push(new Date(a[0])),h.push(e(a[1].map(function(a){return a.message}).join(" ")).comparative)}),a[h[0]]=d[0],b.push(d),b.push(h);g.generate({bindto:"#sentimentGraph",data:{xs:a,columns:b,type:"spline"},axis:{x:{type:"timeseries",tick:{fit:!0,count:5,format:"%m/%d/%Y"}},y:{tick:{format:f.format(".2f")}}},point:{show:!1},zoom:{enabled:!0,rescale:!0}})}a()}function m(){function b(a){return a.filter(function(b,c){return 0===c||b!==a[c-1]})}function c(a){return matched=a.match(A)||[],(a.match(B)||[]).forEach(function(a){C[a]&&matched.push(D(C[a]))}),b(matched)}function e(){var b,e,g,h,i,j,k=f.scale.category20();for(b in r)id="emojiFrequency_"+generateUuid(),e=a('<div class="col s12 m6">').appendTo("#emojiFrequency_byParticipant").append(a("<h6>").text(participantIdToName[b])),$chart=a("<div>").attr("id",id).appendTo(e),i=new Dict(null,function(){return 0}),g=r[b].map(function(a){return a.message}).join(" "),h=c(g),h.length?(h.forEach(function(a){var b=a.substring(0);i.set(b,i.get(b)+1)}),j=i.map(function(a,b){return[b,a]}).sorted(function(a,b){return b[1]-a[1]}).slice(0,10),d("#"+id,j,{data:{color:function(a,b){return k("object"==typeof b?b.id:b)}},pie:{label:{threshold:0,format:function(a,b,c){return c}}},legend:{show:!1}})):a("#"+id).append(a("<span>").addClass("no-emoji").text("No emoji :("))}a("#emojiNotSupported").toggle(!EMOJI_SUPPORTED),j("#emojiUsage",function(a){var d=a.map(function(a){return a.message}).join(" ");return b(c(d)).length}),e()}function n(){function b(a,b){var c,d={},e=a.find("canvas"),g=window.devicePixelRatio||1,i=new Dict(null,function(){return 0}),j=/^(i|me|my|myself|we|us|our|ours|ourselves|you|your|yours|yourself|yourselves|he|him|his|himself|she|her|hers|herself|it|its|itself|they|them|their|theirs|themselves|what|which|who|whom|whose|this|that|these|those|am|is|are|was|were|be|been|being|have|has|had|having|do|does|did|doing|will|would|should|can|could|ought|i'm|you're|he's|she's|it's|we're|they're|i've|you've|we've|they've|i'd|you'd|he'd|she'd|we'd|they'd|i'll|you'll|he'll|she'll|we'll|they'll|isn't|aren't|wasn't|weren't|hasn't|haven't|hadn't|doesn't|don't|didn't|won't|wouldn't|shan't|shouldn't|can't|cannot|couldn't|mustn't|let's|that's|who's|what's|here's|there's|when's|where's|why's|how's|a|an|the|and|but|if|or|because|as|until|while|of|at|by|for|with|about|against|between|into|through|during|before|after|above|below|to|from|up|upon|down|in|out|on|off|over|under|again|further|then|once|here|there|when|where|why|how|all|any|both|each|few|more|most|other|some|such|no|nor|not|only|own|same|so|than|too|very|say|says|said|shall)$/;e.css({width:a[0].offsetWidth,height:a[0].offsetHeight}),e[0].width=a[0].offsetWidth*g,e[0].height=a[0].offsetHeight*g,c=b.map(function(a){return a.message.match(/[\'\w\-]+/g)||[]}).flatten(),c.forEach(function(a){var b=a.toLowerCase();a&&a.length>2&&!j.test(b)&&(d[b]=a,i.set(b,i.get(b)+1))}),h(e[0],{list:i.map(function(a,b){return[d[b],a]}).sorted(function(a,b){return b[1]-a[1]}).slice(0,1e3),weightFactor:f.scale.linear().domain([0,i.max()]).range([5*g,100*g]),fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif',rotateRatio:.5})}function c(){var c,d,e;for(c in r)d=a('<div class="col s12 m6">').appendTo("#wordCloud_byParticipant").append(a("<h6>").text(participantIdToName[c])),e=a('<div class="word-cloud">').appendTo(d).append("<canvas>"),b(e,r[c])}b(a("#wordCloud_allEvents"),s.events),c()}function o(){a("#csvDownload").click(function(){var a=f.csv.format(s.events.map(function(a){return{sender:participantIdToName[a.senderId.gaiaId],time:new Date(a.timestamp),message:a.message}}));this.href="data:application/octet-stream;charset=utf-8,"+encodeURIComponent(a),this.download=s.participants.map(function(a){return a.name}).join("").replace(/\s*/g,"").substring(0,10)+"_"+s.id.substring(0,5)+".csv"})}var p,q,r,s=i.conversations.get({id:b.id}),t=a(i._conversationTemplate),u=s.participants.map(function(a){return a.name}).join(", ");document.title=u+" | Hangouts Analyzer",i.$container.empty().append(t),a("#conversationTitle").text(u),participantIdToName={},r={},s.participants.forEach(function(a){participantIdToName[a.gaiaId]=a.name,r[a.gaiaId]=[]}),s.events.forEach(function(a){r[a.senderId.gaiaId].push(a)}),p={stats:k,sentiment:l,emoji:m,conversationContent:n,more:o},q={},t.find("ul.tabs").tabs().on("click","a",function(){var a=this.href.split("#").pop();
q[a]||(p[a](),q[a]=!0)}),p.stats(),q.stats=!0}},k={conversation:function(){a(document).find("canvas").one("wordclouddrawn",function(){return!1})}};j[b]&&(a(".loading").show(),k[this.view]&&k[this.view](),this.view=b,setTimeout(function(){a(document).scrollTop(0),j[b](d),a(".loading").fadeOut()},0))},u()}(jQuery,Rlite,Please,IDBStore,sentimentAnalysis,d3,c3,WordCloud,prettySize);
//# sourceMappingURL=index.min.js.map