Guest User

app-d8362c82bb

a guest
Apr 21st, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 281.56 KB | None | 0 0
  1. !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=re.type(e);return"function"!==n&&!re.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ge.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return Z.call(t,e)>-1!==n})}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function r(e){var t={};return re.each(e.match(we)||[],function(e,n){t[n]=!0}),t}function o(){X.removeEventListener("DOMContentLoaded",o),e.removeEventListener("load",o),re.ready()}function a(){this.expando=re.expando+a.uid++}function l(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Oe,"-$&").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$e.test(n)?re.parseJSON(n):n)}catch(s){}Se.set(e,t,n)}else n=void 0;return n}function c(e,t,n,i){var s,r=1,o=20,a=i?function(){return i.cur()}:function(){return re.css(e,t,"")},l=a(),c=n&&n[3]||(re.cssNumber[t]?"":"px"),u=(re.cssNumber[t]||"px"!==c&&+l)&&Pe.exec(re.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do r=r||".5",u/=r,re.style(e,t,u+c);while(r!==(r=a()/l)&&1!==r&&--o)}return n&&(u=+u||+l||0,s=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=s)),s}function u(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&re.nodeName(e,t)?re.merge([e],n):n}function h(e,t){for(var n=0,i=e.length;n<i;n++)Te.set(e[n],"globalEval",!t||Te.get(t[n],"globalEval"))}function d(e,t,n,i,s){for(var r,o,a,l,c,d,f=t.createDocumentFragment(),p=[],g=0,m=e.length;g<m;g++)if(r=e[g],r||0===r)if("object"===re.type(r))re.merge(p,r.nodeType?[r]:r);else if(Le.test(r)){for(o=o||f.appendChild(t.createElement("div")),a=(Me.exec(r)||["",""])[1].toLowerCase(),l=De[a]||De._default,o.innerHTML=l[1]+re.htmlPrefilter(r)+l[2],d=l[0];d--;)o=o.lastChild;re.merge(p,o.childNodes),o=f.firstChild,o.textContent=""}else p.push(t.createTextNode(r));for(f.textContent="",g=0;r=p[g++];)if(i&&re.inArray(r,i)>-1)s&&s.push(r);else if(c=re.contains(r.ownerDocument,r),o=u(f.appendChild(r),"script"),c&&h(o),n)for(d=0;r=o[d++];)je.test(r.type||"")&&n.push(r);return f}function f(){return!0}function p(){return!1}function g(){try{return X.activeElement}catch(e){}}function m(e,t,n,i,s,r){var o,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)m(e,a,n,i,t[a],r);return e}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),s===!1)s=p;else if(!s)return e;return 1===r&&(o=s,s=function(e){return re().off(e),o.apply(this,arguments)},s.guid=o.guid||(o.guid=re.guid++)),e.each(function(){re.event.add(this,t,s,i,n)})}function v(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function _(e){var t=Ve.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function b(e,t){var n,i,s,r,o,a,l,c;if(1===t.nodeType){if(Te.hasData(e)&&(r=Te.access(e),o=Te.set(t,r),c=r.events)){delete o.handle,o.events={};for(s in c)for(n=0,i=c[s].length;n<i;n++)re.event.add(t,s,c[s][n])}Se.hasData(e)&&(a=Se.access(e),l=re.extend({},a),Se.set(t,l))}}function w(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ae.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function x(e,t,n,i){t=K.apply([],t);var s,r,o,a,l,c,h=0,f=e.length,p=f-1,g=t[0],m=re.isFunction(g);if(m||f>1&&"string"==typeof g&&!ie.checkClone&&Be.test(g))return e.each(function(s){var r=e.eq(s);m&&(t[0]=g.call(this,s,r.html())),x(r,t,n,i)});if(f&&(s=d(t,e[0].ownerDocument,!1,e,i),r=s.firstChild,1===s.childNodes.length&&(s=r),r||i)){for(o=re.map(u(s,"script"),y),a=o.length;h<f;h++)l=s,h!==p&&(l=re.clone(l,!0,!0),a&&re.merge(o,u(l,"script"))),n.call(e[h],l,h);if(a)for(c=o[o.length-1].ownerDocument,re.map(o,_),h=0;h<a;h++)l=o[h],je.test(l.type||"")&&!Te.access(l,"globalEval")&&re.contains(c,l)&&(l.src?re._evalUrl&&re._evalUrl(l.src):re.globalEval(l.textContent.replace(ze,"")))}return e}function C(e,t,n){for(var i,s=t?re.filter(t,e):e,r=0;null!=(i=s[r]);r++)n||1!==i.nodeType||re.cleanData(u(i)),i.parentNode&&(n&&re.contains(i.ownerDocument,i)&&h(u(i,"script")),i.parentNode.removeChild(i));return e}function k(e,t){var n=re(t.createElement(e)).appendTo(t.body),i=re.css(n[0],"display");return n.detach(),i}function T(e){var t=X,n=Je[e];return n||(n=k(e,t),"none"!==n&&n||(Ue=(Ue||re("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Ue[0].contentDocument,t.write(),t.close(),n=k(e,t),Ue.detach()),Je[e]=n),n}function S(e,t,n){var i,s,r,o,a=e.style;return n=n||Ge(e),o=n?n.getPropertyValue(t)||n[t]:void 0,""!==o&&void 0!==o||re.contains(e.ownerDocument,e)||(o=re.style(e,t)),n&&!ie.pixelMarginRight()&&Xe.test(o)&&Ye.test(t)&&(i=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=s,a.maxWidth=r),void 0!==o?o+"":o}function $(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function O(e){if(e in it)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=nt.length;n--;)if(e=nt[n]+t,e in it)return e}function I(e,t,n){var i=Pe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function P(e,t,n,i,s){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,o=0;r<4;r+=2)"margin"===n&&(o+=re.css(e,n+Ee[r],!0,s)),i?("content"===n&&(o-=re.css(e,"padding"+Ee[r],!0,s)),"margin"!==n&&(o-=re.css(e,"border"+Ee[r]+"Width",!0,s))):(o+=re.css(e,"padding"+Ee[r],!0,s),"padding"!==n&&(o+=re.css(e,"border"+Ee[r]+"Width",!0,s)));return o}function E(e,t,n){var i=!0,s="width"===t?e.offsetWidth:e.offsetHeight,r=Ge(e),o="border-box"===re.css(e,"boxSizing",!1,r);if(s<=0||null==s){if(s=S(e,t,r),(s<0||null==s)&&(s=e.style[t]),Xe.test(s))return s;i=o&&(ie.boxSizingReliable()||s===e.style[t]),s=parseFloat(s)||0}return s+P(e,t,n||(o?"border":"content"),i,r)+"px"}function N(e,t){for(var n,i,s,r=[],o=0,a=e.length;o<a;o++)i=e[o],i.style&&(r[o]=Te.get(i,"olddisplay"),n=i.style.display,t?(r[o]||"none"!==n||(i.style.display=""),""===i.style.display&&Ne(i)&&(r[o]=Te.access(i,"olddisplay",T(i.nodeName)))):(s=Ne(i),"none"===n&&s||Te.set(i,"olddisplay",s?n:re.css(i,"display"))));for(o=0;o<a;o++)i=e[o],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[o]||"":"none"));return e}function A(e,t,n,i,s){return new A.prototype.init(e,t,n,i,s)}function M(){return e.setTimeout(function(){st=void 0}),st=re.now()}function j(e,t){var n,i=0,s={height:e};for(t=t?1:0;i<4;i+=2-t)n=Ee[i],s["margin"+n]=s["padding"+n]=e;return t&&(s.opacity=s.width=e),s}function D(e,t,n){for(var i,s=(q.tweeners[t]||[]).concat(q.tweeners["*"]),r=0,o=s.length;r<o;r++)if(i=s[r].call(n,t,e))return i}function L(e,t,n){var i,s,r,o,a,l,c,u,h=this,d={},f=e.style,p=e.nodeType&&Ne(e),g=Te.get(e,"fxshow");n.queue||(a=re._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,re.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=re.css(e,"display"),u="none"===c?Te.get(e,"olddisplay")||T(e.nodeName):c,"inline"===u&&"none"===re.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in t)if(s=t[i],ot.exec(s)){if(delete t[i],r=r||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!g||void 0===g[i])continue;p=!0}d[i]=g&&g[i]||re.style(e,i)}else c=void 0;if(re.isEmptyObject(d))"inline"===("none"===c?T(e.nodeName):c)&&(f.display=c);else{g?"hidden"in g&&(p=g.hidden):g=Te.access(e,"fxshow",{}),r&&(g.hidden=!p),p?re(e).show():h.done(function(){re(e).hide()}),h.done(function(){var t;Te.remove(e,"fxshow");for(t in d)re.style(e,t,d[t])});for(i in d)o=D(p?g[i]:0,i,h),i in g||(g[i]=o.start,p&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function F(e,t){var n,i,s,r,o;for(n in e)if(i=re.camelCase(n),s=t[i],r=e[n],re.isArray(r)&&(s=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),o=re.cssHooks[i],o&&"expand"in o){r=o.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=s)}else t[i]=s}function q(e,t,n){var i,s,r=0,o=q.prefilters.length,a=re.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=st||M(),n=Math.max(0,c.startTime+c.duration-t),i=n/c.duration||0,r=1-i,o=0,l=c.tweens.length;o<l;o++)c.tweens[o].run(r);return a.notifyWith(e,[c,r,n]),r<1&&l?n:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:re.extend({},t),opts:re.extend(!0,{specialEasing:{},easing:re.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||M(),duration:n.duration,tweens:[],createTween:function(t,n){var i=re.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(s)return this;for(s=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(F(u,c.opts.specialEasing);r<o;r++)if(i=q.prefilters[r].call(c,e,u,c.opts))return re.isFunction(i.stop)&&(re._queueHooks(c.elem,c.opts.queue).stop=re.proxy(i.stop,i)),i;return re.map(u,D,c),re.isFunction(c.opts.start)&&c.opts.start.call(e,c),re.fx.timer(re.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function H(e){return e.getAttribute&&e.getAttribute("class")||""}function W(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,s=0,r=t.toLowerCase().match(we)||[];if(re.isFunction(n))for(;i=r[s++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function R(e,t,n,i){function s(a){var l;return r[a]=!0,re.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}var r={},o=e===St;return s(t.dataTypes[0])||!r["*"]&&s("*")}function B(e,t){var n,i,s=re.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((s[n]?e:i||(i={}))[n]=t[n]);return i&&re.extend(!0,e,i),e}function V(e,t,n){for(var i,s,r,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)r=l[0];else{for(s in n){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}function z(e,t,n,i){var s,r,o,a,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(o=c[l+" "+r]||c["* "+r],!o)for(s in c)if(a=s.split(" "),a[1]===r&&(o=c[l+" "+a[0]]||c["* "+a[0]])){o===!0?o=c[s]:c[s]!==!0&&(r=a[0],u.unshift(a[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}function U(e,t,n,i){var s;if(re.isArray(t))re.each(t,function(t,s){n||Pt.test(e)?i(e,s):U(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,n,i)});else if(n||"object"!==re.type(t))i(e,t);else for(s in t)U(e+"["+s+"]",t[s],n,i)}function J(e){return re.isWindow(e)?e:9===e.nodeType&&e.defaultView}var Y=[],X=e.document,G=Y.slice,K=Y.concat,Q=Y.push,Z=Y.indexOf,ee={},te=ee.toString,ne=ee.hasOwnProperty,ie={},se="2.2.4",re=function(e,t){return new re.fn.init(e,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,le=/-([\da-z])/gi,ce=function(e,t){return t.toUpperCase()};re.fn=re.prototype={jquery:se,constructor:re,selector:"",length:0,toArray:function(){return G.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:G.call(this)},pushStack:function(e){var t=re.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return re.each(this,e)},map:function(e){return this.pushStack(re.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:Q,sort:Y.sort,splice:Y.splice},re.extend=re.fn.extend=function(){var e,t,n,i,s,r,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||re.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=o[t],i=e[t],o!==i&&(c&&i&&(re.isPlainObject(i)||(s=re.isArray(i)))?(s?(s=!1,r=n&&re.isArray(n)?n:[]):r=n&&re.isPlainObject(n)?n:{},o[t]=re.extend(c,r,i)):void 0!==i&&(o[t]=i));return o},re.extend({expando:"jQuery"+(se+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===re.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!re.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==re.type(e)||e.nodeType||re.isWindow(e))return!1;if(e.constructor&&!ne.call(e,"constructor")&&!ne.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||ne.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ee[te.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=re.trim(e),e&&(1===e.indexOf("use strict")?(t=X.createElement("script"),t.text=e,X.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(ae,"ms-").replace(le,ce)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,s=0;if(n(e))for(i=e.length;s<i&&t.call(e[s],s,e[s])!==!1;s++);else for(s in e)if(t.call(e[s],s,e[s])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(oe,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?re.merge(i,"string"==typeof e?[e]:e):Q.call(i,e)),i},inArray:function(e,t,n){return null==t?-1:Z.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,s=e.length;i<n;i++)e[s++]=t[i];return e.length=s,e},grep:function(e,t,n){for(var i,s=[],r=0,o=e.length,a=!n;r<o;r++)i=!t(e[r],r),i!==a&&s.push(e[r]);return s},map:function(e,t,i){var s,r,o=0,a=[];if(n(e))for(s=e.length;o<s;o++)r=t(e[o],o,i),null!=r&&a.push(r);else for(o in e)r=t(e[o],o,i),null!=r&&a.push(r);return K.apply([],a)},guid:1,proxy:function(e,t){var n,i,s;if("string"==typeof t&&(n=e[t],t=e,e=n),re.isFunction(e))return i=G.call(arguments,2),s=function(){return e.apply(t||this,i.concat(G.call(arguments)))},s.guid=e.guid=e.guid||re.guid++,s},now:Date.now,support:ie}),"function"==typeof Symbol&&(re.fn[Symbol.iterator]=Y[Symbol.iterator]),re.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ee["[object "+t+"]"]=t.toLowerCase()});var ue=function(e){function t(e,t,n,i){var s,r,o,a,l,c,h,f,p=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!i&&((t?t.ownerDocument||t:H)!==N&&E(t),t=t||N,M)){if(11!==g&&(c=ve.exec(e)))if(s=c[1]){if(9===g){if(!(o=t.getElementById(s)))return n;if(o.id===s)return n.push(o),n}else if(p&&(o=p.getElementById(s))&&F(t,o)&&o.id===s)return n.push(o),n}else{if(c[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((s=c[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(s)),n}if(w.qsa&&!z[e+" "]&&(!j||!j.test(e))){if(1!==g)p=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(_e,"\\$&"):t.setAttribute("id",a=q),h=T(e),r=h.length,l=de.test(a)?"#"+a:"[id='"+a+"']";r--;)h[r]=l+" "+d(h[r]);f=h.join(","),p=ye.test(e)&&u(t.parentNode)||t}if(f)try{return Q.apply(n,p.querySelectorAll(f)),n}catch(m){}finally{a===q&&t.removeAttribute("id")}}}return $(e.replace(ae,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[q]=!0,e}function s(e){var t=N.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=t}function o(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||J)-(~e.sourceIndex||J);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return i(function(t){return t=+t,i(function(n,i){for(var s,r=e([],n.length,t),o=r.length;o--;)n[s=r[o]]&&(n[s]=!(i[s]=n[s]))})})}function u(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function h(){}function d(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function f(e,t,n){var i=t.dir,s=n&&"parentNode"===i,r=R++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r)}:function(t,n,o){var a,l,c,u=[W,r];if(o){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,o))return!0}else for(;t=t[i];)if(1===t.nodeType||s){if(c=t[q]||(t[q]={}),l=c[t.uniqueID]||(c[t.uniqueID]={}),(a=l[i])&&a[0]===W&&a[1]===r)return u[2]=a[2];if(l[i]=u,u[2]=e(t,n,o))return!0}}}function p(e){return e.length>1?function(t,n,i){for(var s=e.length;s--;)if(!e[s](t,n,i))return!1;return!0}:e[0]}function g(e,n,i){for(var s=0,r=n.length;s<r;s++)t(e,n[s],i);return i}function m(e,t,n,i,s){for(var r,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,s)||(o.push(r),c&&t.push(a)));return o}function v(e,t,n,s,r,o){return s&&!s[q]&&(s=v(s)),r&&!r[q]&&(r=v(r,o)),i(function(i,o,a,l){var c,u,h,d=[],f=[],p=o.length,v=i||g(t||"*",a.nodeType?[a]:a,[]),y=!e||!i&&t?v:m(v,d,e,a,l),_=n?r||(i?e:p||s)?[]:o:y;if(n&&n(y,_,a,l),s)for(c=m(_,f),s(c,[],a,l),u=c.length;u--;)(h=c[u])&&(_[f[u]]=!(y[f[u]]=h));if(i){if(r||e){if(r){for(c=[],u=_.length;u--;)(h=_[u])&&c.push(y[u]=h);r(null,_=[],c,l)}for(u=_.length;u--;)(h=_[u])&&(c=r?ee(i,h):d[u])>-1&&(i[c]=!(o[c]=h))}}else _=m(_===o?_.splice(p,_.length):_),r?r(null,o,_,l):Q.apply(o,_)})}function y(e){for(var t,n,i,s=e.length,r=x.relative[e[0].type],o=r||x.relative[" "],a=r?1:0,l=f(function(e){return e===t},o,!0),c=f(function(e){return ee(t,e)>-1},o,!0),u=[function(e,n,i){var s=!r&&(i||n!==O)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,s}];a<s;a++)if(n=x.relative[e[a].type])u=[f(p(u),n)];else{if(n=x.filter[e[a].type].apply(null,e[a].matches),n[q]){for(i=++a;i<s&&!x.relative[e[i].type];i++);return v(a>1&&p(u),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,a<i&&y(e.slice(a,i)),i<s&&y(e=e.slice(i)),i<s&&d(e))}u.push(n)}return p(u)}function _(e,n){var s=n.length>0,r=e.length>0,o=function(i,o,a,l,c){var u,h,d,f=0,p="0",g=i&&[],v=[],y=O,_=i||r&&x.find.TAG("*",c),b=W+=null==y?1:Math.random()||.1,w=_.length;for(c&&(O=o===N||o||c);p!==w&&null!=(u=_[p]);p++){if(r&&u){for(h=0,o||u.ownerDocument===N||(E(u),a=!M);d=e[h++];)if(d(u,o||N,a)){l.push(u);break}c&&(W=b)}s&&((u=!d&&u)&&f--,i&&g.push(u))}if(f+=p,s&&p!==f){for(h=0;d=n[h++];)d(g,v,o,a);if(i){if(f>0)for(;p--;)g[p]||v[p]||(v[p]=G.call(l));v=m(v)}Q.apply(l,v),c&&!i&&v.length>0&&f+n.length>1&&t.uniqueSort(l)}return c&&(W=b,O=y),g};return s?i(o):o}var b,w,x,C,k,T,S,$,O,I,P,E,N,A,M,j,D,L,F,q="sizzle"+1*new Date,H=e.document,W=0,R=0,B=n(),V=n(),z=n(),U=function(e,t){return e===t&&(P=!0),0},J=1<<31,Y={}.hasOwnProperty,X=[],G=X.pop,K=X.push,Q=X.push,Z=X.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",se="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",re=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+se+")*)|.*)\\)|)",oe=new RegExp(ne+"+","g"),ae=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),he=new RegExp(re),de=new RegExp("^"+ie+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+se),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,_e=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},xe=function(){E()};try{Q.apply(X=Z.call(H.childNodes),H.childNodes),X[H.childNodes.length].nodeType}catch(Ce){Q={apply:X.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}w=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},E=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:H;return i!==N&&9===i.nodeType&&i.documentElement?(N=i,A=N.documentElement,M=!k(N),(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xe,!1):n.attachEvent&&n.attachEvent("onunload",xe)),w.attributes=s(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=s(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(N.getElementsByClassName),w.getById=s(function(e){return A.appendChild(e).id=q,!N.getElementsByName||!N.getElementsByName(q).length}),w.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&M){var n=t.getElementById(e);return n?[n]:[]}},x.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],s=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[s++];)1===n.nodeType&&i.push(n);return i}return r},x.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&M)return t.getElementsByClassName(e)},D=[],j=[],(w.qsa=me.test(N.querySelectorAll))&&(s(function(e){A.appendChild(e).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||j.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+q+"-]").length||j.push("~="),e.querySelectorAll(":checked").length||j.push(":checked"),e.querySelectorAll("a#"+q+"+*").length||j.push(".#.+[+~]")}),s(function(e){var t=N.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&j.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||j.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),j.push(",.*:")})),(w.matchesSelector=me.test(L=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector))&&s(function(e){w.disconnectedMatch=L.call(e,"div"),L.call(e,"[s!='']:x"),D.push("!=",re)}),j=j.length&&new RegExp(j.join("|")),D=D.length&&new RegExp(D.join("|")),t=me.test(A.compareDocumentPosition),F=t||me.test(A.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return P=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===N||e.ownerDocument===H&&F(H,e)?-1:t===N||t.ownerDocument===H&&F(H,t)?1:I?ee(I,e)-ee(I,t):0:4&n?-1:1)}:function(e,t){if(e===t)return P=!0,0;var n,i=0,s=e.parentNode,r=t.parentNode,a=[e],l=[t];if(!s||!r)return e===N?-1:t===N?1:s?-1:r?1:I?ee(I,e)-ee(I,t):0;if(s===r)return o(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?o(a[i],l[i]):a[i]===H?-1:l[i]===H?1:0},N):N},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==N&&E(e),n=n.replace(ue,"='$1']"),w.matchesSelector&&M&&!z[n+" "]&&(!D||!D.test(n))&&(!j||!j.test(n)))try{var i=L.call(e,n);if(i||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(s){}return t(n,N,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==N&&E(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==N&&E(e);var n=x.attrHandle[t.toLowerCase()],i=n&&Y.call(x.attrHandle,t.toLowerCase())?n(e,t,!M):void 0;return void 0!==i?i:w.attributes||!M?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,s=0;if(P=!w.detectDuplicates,I=!w.sortStable&&e.slice(0),e.sort(U),P){for(;t=e[s++];)t===e[s]&&(i=n.push(s));for(;i--;)e.splice(n[i],1)}return I=null,e},C=t.getText=function(e){var t,n="",i=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[i++];)n+=C(t);return n},x=t.selectors={cacheLength:50,createPseudo:i,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&he.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(s){var r=t.attr(s,e);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(oe," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,s){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===s?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,d,f,p,g=r!==o?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,_=!1;if(m){if(r){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&y){for(d=m,h=d[q]||(d[q]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[e]||[],f=c[0]===W&&c[1],_=f&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(_=f=0)||p.pop();)if(1===d.nodeType&&++_&&d===t){u[e]=[W,f,_];break}}else if(y&&(d=t,h=d[q]||(d[q]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[e]||[],f=c[0]===W&&c[1],_=f),_===!1)for(;(d=++f&&d&&d[g]||(_=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++_||(y&&(h=d[q]||(d[q]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),u[e]=[W,_]),d!==t)););return _-=s,_===i||_%i===0&&_/i>=0}}},PSEUDO:function(e,n){var s,r=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[q]?r(n):r.length>1?(s=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,s=r(e,n),o=s.length;o--;)i=ee(e,s[o]),e[i]=!(t[i]=s[o])}):function(e){return r(e,0,s)}):r}},pseudos:{not:i(function(e){var t=[],n=[],s=S(e.replace(ae,"$1"));return s[q]?i(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,i,r){return t[0]=e,s(t,null,r,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:i(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=M?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===A},focus:function(e){return e===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:c(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,T=t.tokenize=function(e,n){var i,s,r,o,a,l,c,u=V[e+" "];if(u)return n?0:u.slice(0);for(a=e,l=[],c=x.preFilter;a;){i&&!(s=le.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),i=!1,(s=ce.exec(a))&&(i=s.shift(),r.push({value:i,type:s[0].replace(ae," ")}),a=a.slice(i.length));for(o in x.filter)!(s=fe[o].exec(a))||c[o]&&!(s=c[o](s))||(i=s.shift(),r.push({value:i,type:o,matches:s}),a=a.slice(i.length));if(!i)break}return n?a.length:a?t.error(e):V(e,l).slice(0)},S=t.compile=function(e,t){var n,i=[],s=[],r=z[e+" "];if(!r){for(t||(t=T(e)),n=t.length;n--;)r=y(t[n]),r[q]?i.push(r):s.push(r);r=z(e,_(s,i)),r.selector=e}return r},$=t.select=function(e,t,n,i){var s,r,o,a,l,c="function"==typeof e&&e,h=!i&&T(e=c.selector||e);if(n=n||[],1===h.length){if(r=h[0]=h[0].slice(0),r.length>2&&"ID"===(o=r[0]).type&&w.getById&&9===t.nodeType&&M&&x.relative[r[1].type]){if(t=(x.find.ID(o.matches[0].replace(be,we),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(s=fe.needsContext.test(e)?0:r.length;s--&&(o=r[s],!x.relative[a=o.type]);)if((l=x.find[a])&&(i=l(o.matches[0].replace(be,we),ye.test(r[0].type)&&u(t.parentNode)||t))){if(r.splice(s,1),e=i.length&&d(r),!e)return Q.apply(n,i),n;break}}return(c||S(e,h))(i,t,!M,n,!t||ye.test(e)&&u(t.parentNode)||t),n},w.sortStable=q.split("").sort(U).join("")===q,w.detectDuplicates=!!P,E(),w.sortDetached=s(function(e){return 1&e.compareDocumentPosition(N.createElement("div"))}),s(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&s(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),s(function(e){return null==e.getAttribute("disabled")})||r(te,function(e,t,n){var i;if(!n)return e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);re.find=ue,re.expr=ue.selectors,re.expr[":"]=re.expr.pseudos,re.uniqueSort=re.unique=ue.uniqueSort,re.text=ue.getText,re.isXMLDoc=ue.isXML,re.contains=ue.contains;var he=function(e,t,n){for(var i=[],s=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&re(e).is(n))break;i.push(e)}return i},de=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},fe=re.expr.match.needsContext,pe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ge=/^.[^:#\[\.,]*$/;re.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?re.find.matchesSelector(i,e)?[i]:[]:re.find.matches(e,re.grep(t,function(e){return 1===e.nodeType}))},re.fn.extend({find:function(e){var t,n=this.length,i=[],s=this;if("string"!=typeof e)return this.pushStack(re(e).filter(function(){for(t=0;t<n;t++)if(re.contains(s[t],this))return!0}));for(t=0;t<n;t++)re.find(e,s[t],i);return i=this.pushStack(n>1?re.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&fe.test(e)?re(e):e||[],!1).length}});var me,ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ye=re.fn.init=function(e,t,n){var i,s;if(!e)return this;if(n=n||me,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ve.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof re?t[0]:t,re.merge(this,re.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:X,!0)),pe.test(i[1])&&re.isPlainObject(t))for(i in t)re.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return s=X.getElementById(i[2]),s&&s.parentNode&&(this.length=1,this[0]=s),this.context=X,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):re.isFunction(e)?void 0!==n.ready?n.ready(e):e(re):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),re.makeArray(e,this))};ye.prototype=re.fn,me=re(X);var _e=/^(?:parents|prev(?:Until|All))/,be={children:!0,contents:!0,next:!0,prev:!0};re.fn.extend({has:function(e){var t=re(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(re.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,s=this.length,r=[],o=fe.test(e)||"string"!=typeof e?re(e,t||this.context):0;i<s;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&re.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?re.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?Z.call(re(e),this[0]):Z.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(re.uniqueSort(re.merge(this.get(),re(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),re.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return he(e,"parentNode")},parentsUntil:function(e,t,n){return he(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return he(e,"nextSibling")},prevAll:function(e){return he(e,"previousSibling")},nextUntil:function(e,t,n){return he(e,"nextSibling",n)},prevUntil:function(e,t,n){return he(e,"previousSibling",n)},siblings:function(e){return de((e.parentNode||{}).firstChild,e)},children:function(e){return de(e.firstChild)},contents:function(e){return e.contentDocument||re.merge([],e.childNodes)}},function(e,t){re.fn[e]=function(n,i){var s=re.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=re.filter(i,s)),this.length>1&&(be[e]||re.uniqueSort(s),_e.test(e)&&s.reverse()),this.pushStack(s)}});var we=/\S+/g;re.Callbacks=function(e){e="string"==typeof e?r(e):re.extend({},e);var t,n,i,s,o=[],a=[],l=-1,c=function(){for(s=e.once,i=t=!0;a.length;l=-1)for(n=a.shift();++l<o.length;)o[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=o.length,n=!1);e.memory||(n=!1),t=!1,s&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(l=o.length-1,a.push(n)),function i(t){re.each(t,function(t,n){re.isFunction(n)?e.unique&&u.has(n)||o.push(n):n&&n.length&&"string"!==re.type(n)&&i(n)})}(arguments),n&&!t&&c()),this},remove:function(){return re.each(arguments,function(e,t){for(var n;(n=re.inArray(t,o,n))>-1;)o.splice(n,1),n<=l&&l--}),this},has:function(e){return e?re.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return s=a=[],n||(o=n=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},re.extend({Deferred:function(e){var t=[["resolve","done",re.Callbacks("once memory"),"resolved"],["reject","fail",re.Callbacks("once memory"),"rejected"],["notify","progress",re.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var e=arguments;return re.Deferred(function(n){re.each(t,function(t,r){var o=re.isFunction(e[t])&&e[t];s[r[1]](function(){var e=o&&o.apply(this,arguments);e&&re.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?re.extend(e,i):i}},s={};return i.pipe=i.then,re.each(t,function(e,r){var o=r[2],a=r[3];i[r[1]]=o.add,a&&o.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),s[r[0]]=function(){return s[r[0]+"With"](this===s?i:this,arguments),this},s[r[0]+"With"]=o.fireWith}),i.promise(s),e&&e.call(s,s),s},when:function(e){var t,n,i,s=0,r=G.call(arguments),o=r.length,a=1!==o||e&&re.isFunction(e.promise)?o:0,l=1===a?e:re.Deferred(),c=function(e,n,i){return function(s){n[e]=this,i[e]=arguments.length>1?G.call(arguments):s,i===t?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(o>1)for(t=new Array(o),n=new Array(o),i=new Array(o);s<o;s++)r[s]&&re.isFunction(r[s].promise)?r[s].promise().progress(c(s,n,t)).done(c(s,i,r)).fail(l.reject):--a;return a||l.resolveWith(i,r),l.promise()}});var xe;re.fn.ready=function(e){return re.ready.promise().done(e),this},re.extend({isReady:!1,readyWait:1,holdReady:function(e){e?re.readyWait++:re.ready(!0)},ready:function(e){(e===!0?--re.readyWait:re.isReady)||(re.isReady=!0,e!==!0&&--re.readyWait>0||(xe.resolveWith(X,[re]),re.fn.triggerHandler&&(re(X).triggerHandler("ready"),re(X).off("ready"))))}}),re.ready.promise=function(t){return xe||(xe=re.Deferred(),"complete"===X.readyState||"loading"!==X.readyState&&!X.documentElement.doScroll?e.setTimeout(re.ready):(X.addEventListener("DOMContentLoaded",o),e.addEventListener("load",o))),xe.promise(t)},re.ready.promise();var Ce=function(e,t,n,i,s,r,o){var a=0,l=e.length,c=null==n;if("object"===re.type(n)){s=!0;for(a in n)Ce(e,t,a,n[a],!0,r,o)}else if(void 0!==i&&(s=!0,re.isFunction(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(re(e),n)})),t))for(;a<l;a++)t(e[a],n,o?i:i.call(e[a],a,t(e[a],n)));return s?e:c?t.call(e):l?t(e[0],n):r},ke=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};a.uid=1,a.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!ke(e))return{};var t=e[this.expando];return t||(t={},ke(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,s=this.cache(e);if("string"==typeof t)s[t]=n;else for(i in t)s[i]=t[i];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,re.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,s,r=e[this.expando];if(void 0!==r){if(void 0===t)this.register(e);else{re.isArray(t)?i=t.concat(t.map(re.camelCase)):(s=re.camelCase(t),t in r?i=[t,s]:(i=s,i=i in r?[i]:i.match(we)||[])),n=i.length;for(;n--;)delete r[i[n]]}(void 0===t||re.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!re.isEmptyObject(t)}};var Te=new a,Se=new a,$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Oe=/[A-Z]/g;re.extend({hasData:function(e){return Se.hasData(e)||Te.hasData(e)},data:function(e,t,n){return Se.access(e,t,n)},removeData:function(e,t){Se.remove(e,t)},_data:function(e,t,n){return Te.access(e,t,n)},_removeData:function(e,t){Te.remove(e,t)}}),re.fn.extend({data:function(e,t){var n,i,s,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(s=Se.get(r),1===r.nodeType&&!Te.get(r,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=re.camelCase(i.slice(5)),l(r,i,s[i])));Te.set(r,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){Se.set(this,e)}):Ce(this,function(t){var n,i;if(r&&void 0===t){if(n=Se.get(r,e)||Se.get(r,e.replace(Oe,"-$&").toLowerCase()),void 0!==n)return n;if(i=re.camelCase(e),n=Se.get(r,i),void 0!==n)return n;if(n=l(r,i,void 0),void 0!==n)return n}else i=re.camelCase(e),this.each(function(){var n=Se.get(this,i);Se.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&Se.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Se.remove(this,e)})}}),re.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Te.get(e,t),n&&(!i||re.isArray(n)?i=Te.access(e,t,re.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=re.queue(e,t),i=n.length,s=n.shift(),r=re._queueHooks(e,t),o=function(){re.dequeue(e,t)};"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===t&&n.unshift("inprogress"),delete r.stop,s.call(e,o,r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Te.get(e,n)||Te.access(e,n,{empty:re.Callbacks("once memory").add(function(){Te.remove(e,[t+"queue",n])})})}}),re.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?re.queue(this[0],e):void 0===t?this:this.each(function(){var n=re.queue(this,e,t);re._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&re.dequeue(this,e)})},dequeue:function(e){return this.each(function(){re.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,s=re.Deferred(),r=this,o=this.length,a=function(){--i||s.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)n=Te.get(r[o],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),s.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Pe=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),Ee=["Top","Right","Bottom","Left"],Ne=function(e,t){return e=t||e,"none"===re.css(e,"display")||!re.contains(e.ownerDocument,e)},Ae=/^(?:checkbox|radio)$/i,Me=/<([\w:-]+)/,je=/^$|\/(?:java|ecma)script/i,De={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};De.optgroup=De.option,De.tbody=De.tfoot=De.colgroup=De.caption=De.thead,De.th=De.td;var Le=/<|&#?\w+;/;!function(){var e=X.createDocumentFragment(),t=e.appendChild(X.createElement("div")),n=X.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ie.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ie.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Fe=/^key/,qe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,He=/^([^.]*)(?:\.(.+)|)/;re.event={global:{},add:function(e,t,n,i,s){var r,o,a,l,c,u,h,d,f,p,g,m=Te.get(e);if(m)for(n.handler&&(r=n,n=r.handler,s=r.selector),n.guid||(n.guid=re.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(t){return"undefined"!=typeof re&&re.event.triggered!==t.type?re.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(we)||[""],c=t.length;c--;)a=He.exec(t[c])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f&&(h=re.event.special[f]||{},f=(s?h.delegateType:h.bindType)||f,h=re.event.special[f]||{},u=re.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&re.expr.match.needsContext.test(s),namespace:p.join(".")},r),(d=l[f])||(d=l[f]=[],d.delegateCount=0,h.setup&&h.setup.call(e,i,p,o)!==!1||e.addEventListener&&e.addEventListener(f,o)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),s?d.splice(d.delegateCount++,0,u):d.push(u),re.event.global[f]=!0)},remove:function(e,t,n,i,s){var r,o,a,l,c,u,h,d,f,p,g,m=Te.hasData(e)&&Te.get(e);if(m&&(l=m.events)){for(t=(t||"").match(we)||[""],c=t.length;c--;)if(a=He.exec(t[c])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f){for(h=re.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,d=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=d.length;r--;)u=d[r],!s&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));o&&!d.length&&(h.teardown&&h.teardown.call(e,p,m.handle)!==!1||re.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)re.event.remove(e,f+t[c],n,i,!0);re.isEmptyObject(l)&&Te.remove(e,"handle events")}},dispatch:function(e){e=re.event.fix(e);var t,n,i,s,r,o=[],a=G.call(arguments),l=(Te.get(this,"events")||{})[e.type]||[],c=re.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(o=re.event.handlers.call(this,e,l),t=0;(s=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=s.elem,n=0;(r=s.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(r.namespace)||(e.handleObj=r,e.data=r.data,i=((re.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,a),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,s,r,o=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(i=[],n=0;n<a;n++)r=t[n],s=r.selector+" ",void 0===i[s]&&(i[s]=r.needsContext?re(s,this).index(l)>-1:re.find(s,this,null,[l]).length),i[s]&&i.push(r);i.length&&o.push({elem:l,handlers:i})}return a<t.length&&o.push({elem:this,handlers:t.slice(a)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,s,r=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||X,i=n.documentElement,s=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||s&&s.scrollLeft||0)-(i&&i.clientLeft||s&&s.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||s&&s.scrollTop||0)-(i&&i.clientTop||s&&s.clientTop||0)),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[re.expando])return e;var t,n,i,s=e.type,r=e,o=this.fixHooks[s];for(o||(this.fixHooks[s]=o=qe.test(s)?this.mouseHooks:Fe.test(s)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,e=new re.Event(r),t=i.length;t--;)n=i[t],e[n]=r[n];return e.target||(e.target=X),3===e.target.nodeType&&(e.target=e.target.parentNode),o.filter?o.filter(e,r):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==g()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===g()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&re.nodeName(this,"input"))return this.click(),!1},_default:function(e){return re.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},re.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},re.Event=function(e,t){return this instanceof re.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?f:p):this.type=e,t&&re.extend(this,t),this.timeStamp=e&&e.timeStamp||re.now(),void(this[re.expando]=!0)):new re.Event(e,t)},re.Event.prototype={constructor:re.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},re.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){re.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,s=e.relatedTarget,r=e.handleObj;return s&&(s===i||re.contains(i,s))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),re.fn.extend({on:function(e,t,n,i){return m(this,e,t,n,i)},one:function(e,t,n,i){return m(this,e,t,n,i,1)},off:function(e,t,n){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,re(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=p),this.each(function(){re.event.remove(this,e,n,t)})}});var We=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Re=/<script|<style|<link/i,Be=/checked\s*(?:[^=]|=\s*.checked.)/i,Ve=/^true\/(.*)/,ze=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;re.extend({htmlPrefilter:function(e){return e.replace(We,"<$1></$2>")},clone:function(e,t,n){var i,s,r,o,a=e.cloneNode(!0),l=re.contains(e.ownerDocument,e);if(!(ie.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||re.isXMLDoc(e)))for(o=u(a),r=u(e),i=0,s=r.length;i<s;i++)w(r[i],o[i]);if(t)if(n)for(r=r||u(e),o=o||u(a),i=0,s=r.length;i<s;i++)b(r[i],o[i]);else b(e,a);return o=u(a,"script"),o.length>0&&h(o,!l&&u(e,"script")),a},cleanData:function(e){for(var t,n,i,s=re.event.special,r=0;void 0!==(n=e[r]);r++)if(ke(n)){if(t=n[Te.expando]){if(t.events)for(i in t.events)s[i]?re.event.remove(n,i):re.removeEvent(n,i,t.handle);n[Te.expando]=void 0}n[Se.expando]&&(n[Se.expando]=void 0)}}}),re.fn.extend({domManip:x,detach:function(e){return C(this,e,!0)},remove:function(e){return C(this,e)},text:function(e){return Ce(this,function(e){return void 0===e?re.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.appendChild(e)}})},prepend:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(re.cleanData(u(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return re.clone(this,e,t)})},html:function(e){return Ce(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!De[(Me.exec(e)||["",""])[1].toLowerCase()]){e=re.htmlPrefilter(e);try{for(;n<i;n++)t=this[n]||{},1===t.nodeType&&(re.cleanData(u(t,!1)),t.innerHTML=e);t=0}catch(s){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return x(this,arguments,function(t){var n=this.parentNode;re.inArray(this,e)<0&&(re.cleanData(u(this)),n&&n.replaceChild(t,this))},e)}}),re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){re.fn[e]=function(e){for(var n,i=[],s=re(e),r=s.length-1,o=0;o<=r;o++)n=o===r?this:this.clone(!0),re(s[o])[t](n),Q.apply(i,n.get());return this.pushStack(i)}});var Ue,Je={HTML:"block",BODY:"block"},Ye=/^margin/,Xe=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),Ge=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ke=function(e,t,n,i){var s,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];s=n.apply(e,i||[]);for(r in t)e.style[r]=o[r];return s},Qe=X.documentElement;!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Qe.appendChild(o);var t=e.getComputedStyle(a);n="1%"!==t.top,r="2px"===t.marginLeft,i="4px"===t.width,a.style.marginRight="50%",s="4px"===t.marginRight,Qe.removeChild(o)}var n,i,s,r,o=X.createElement("div"),a=X.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ie.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),re.extend(ie,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==i&&t(),i},pixelMarginRight:function(){return null==i&&t(),s},reliableMarginLeft:function(){return null==i&&t(),r},reliableMarginRight:function(){var t,n=a.appendChild(X.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Qe.appendChild(o),t=!parseFloat(e.getComputedStyle(n).marginRight),Qe.removeChild(o),a.removeChild(n),t}}))}();var Ze=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"},nt=["Webkit","O","Moz","ms"],it=X.createElement("div").style;re.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=S(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,r,o,a=re.camelCase(t),l=e.style;return t=re.cssProps[a]||(re.cssProps[a]=O(a)||a),o=re.cssHooks[t]||re.cssHooks[a],void 0===n?o&&"get"in o&&void 0!==(s=o.get(e,!1,i))?s:l[t]:(r=typeof n,"string"===r&&(s=Pe.exec(n))&&s[1]&&(n=c(e,t,s),r="number"),null!=n&&n===n&&("number"===r&&(n+=s&&s[3]||(re.cssNumber[a]?"":"px")),ie.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l[t]=n)),void 0)}},css:function(e,t,n,i){var s,r,o,a=re.camelCase(t);return t=re.cssProps[a]||(re.cssProps[a]=O(a)||a),o=re.cssHooks[t]||re.cssHooks[a],o&&"get"in o&&(s=o.get(e,!0,n)),void 0===s&&(s=S(e,t,i)),"normal"===s&&t in tt&&(s=tt[t]),""===n||n?(r=parseFloat(s),n===!0||isFinite(r)?r||0:s):s}}),re.each(["height","width"],function(e,t){re.cssHooks[t]={get:function(e,n,i){if(n)return Ze.test(re.css(e,"display"))&&0===e.offsetWidth?Ke(e,et,function(){return E(e,t,i)}):E(e,t,i)},set:function(e,n,i){var s,r=i&&Ge(e),o=i&&P(e,t,i,"border-box"===re.css(e,"boxSizing",!1,r),r);return o&&(s=Pe.exec(n))&&"px"!==(s[3]||"px")&&(e.style[t]=n,n=re.css(e,t)),I(e,n,o)}}}),re.cssHooks.marginLeft=$(ie.reliableMarginLeft,function(e,t){if(t)return(parseFloat(S(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),re.cssHooks.marginRight=$(ie.reliableMarginRight,function(e,t){if(t)return Ke(e,{display:"inline-block"},S,[e,"marginRight"])}),re.each({margin:"",padding:"",border:"Width"},function(e,t){re.cssHooks[e+t]={expand:function(n){for(var i=0,s={},r="string"==typeof n?n.split(" "):[n];i<4;i++)s[e+Ee[i]+t]=r[i]||r[i-2]||r[0];return s}},Ye.test(e)||(re.cssHooks[e+t].set=I)}),re.fn.extend({css:function(e,t){return Ce(this,function(e,t,n){var i,s,r={},o=0;if(re.isArray(t)){for(i=Ge(e),s=t.length;o<s;o++)r[t[o]]=re.css(e,t[o],!1,i);return r}return void 0!==n?re.style(e,t,n):re.css(e,t)},e,t,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ne(this)?re(this).show():re(this).hide()})}}),re.Tween=A,A.prototype={constructor:A,init:function(e,t,n,i,s,r){this.elem=e,this.prop=n,this.easing=s||re.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(re.cssNumber[n]?"":"px")},cur:function(){var e=A.propHooks[this.prop];return e&&e.get?e.get(this):A.propHooks._default.get(this)},run:function(e){var t,n=A.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):A.propHooks._default.set(this),this}},A.prototype.init.prototype=A.prototype,A.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=re.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[re.cssProps[e.prop]]&&!re.cssHooks[e.prop]?e.elem[e.prop]=e.now:re.style(e.elem,e.prop,e.now+e.unit)}}},A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},re.fx=A.prototype.init,re.fx.step={};var st,rt,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;re.Animation=re.extend(q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return c(n.elem,e,Pe.exec(t),n),n}]},tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.match(we);for(var n,i=0,s=e.length;i<s;i++)n=e[i],q.tweeners[n]=q.tweeners[n]||[],q.tweeners[n].unshift(t)},prefilters:[L],prefilter:function(e,t){t?q.prefilters.unshift(e):q.prefilters.push(e)}}),re.speed=function(e,t,n){var i=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return i.duration=re.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in re.fx.speeds?re.fx.speeds[i.duration]:re.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){re.isFunction(i.old)&&i.old.call(this),i.queue&&re.dequeue(this,i.queue)},i},re.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Ne).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var s=re.isEmptyObject(e),r=re.speed(t,n,i),o=function(){var t=q(this,re.extend({},e),r);(s||Te.get(this,"finish"))&&t.stop(!0)};return o.finish=o,s||r.queue===!1?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,s=null!=e&&e+"queueHooks",r=re.timers,o=Te.get(this);if(s)o[s]&&o[s].stop&&i(o[s]);else for(s in o)o[s]&&o[s].stop&&at.test(s)&&i(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=e&&r[s].queue!==e||(r[s].anim.stop(n),t=!1,r.splice(s,1));!t&&n||re.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Te.get(this),i=n[e+"queue"],s=n[e+"queueHooks"],r=re.timers,o=i?i.length:0;for(n.finish=!0,re.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(e,i,s){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(j(t,!0),e,i,s)}}),re.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),re.timers=[],re.fx.tick=function(){var e,t=0,n=re.timers;for(st=re.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||re.fx.stop(),st=void 0},re.fx.timer=function(e){re.timers.push(e),e()?re.fx.start():re.timers.pop()},re.fx.interval=13,re.fx.start=function(){rt||(rt=e.setInterval(re.fx.tick,re.fx.interval))},re.fx.stop=function(){e.clearInterval(rt),rt=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fn.delay=function(t,n){return t=re.fx?re.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,i){var s=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(s)}})},function(){var e=X.createElement("input"),t=X.createElement("select"),n=t.appendChild(X.createElement("option"));e.type="checkbox",ie.checkOn=""!==e.value,ie.optSelected=n.selected,t.disabled=!0,ie.optDisabled=!n.disabled,e=X.createElement("input"),e.value="t",e.type="radio",ie.radioValue="t"===e.value}();var lt,ct=re.expr.attrHandle;re.fn.extend({attr:function(e,t){return Ce(this,re.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){re.removeAttr(this,e)})}}),re.extend({attr:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof e.getAttribute?re.prop(e,t,n):(1===r&&re.isXMLDoc(e)||(t=t.toLowerCase(),s=re.attrHooks[t]||(re.expr.match.bool.test(t)?lt:void 0)),void 0!==n?null===n?void re.removeAttr(e,t):s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:(e.setAttribute(t,n+""),n):s&&"get"in s&&null!==(i=s.get(e,t))?i:(i=re.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!ie.radioValue&&"radio"===t&&re.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,s=0,r=t&&t.match(we);if(r&&1===e.nodeType)for(;n=r[s++];)i=re.propFix[n]||n,re.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),lt={set:function(e,t,n){return t===!1?re.removeAttr(e,n):e.setAttribute(n,n),n}},re.each(re.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ct[t]||re.find.attr;ct[t]=function(e,t,i){var s,r;return i||(r=ct[t],ct[t]=s,s=null!=n(e,t,i)?t.toLowerCase():null,ct[t]=r),s}});var ut=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;re.fn.extend({prop:function(e,t){return Ce(this,re.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[re.propFix[e]||e]})}}),re.extend({prop:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&re.isXMLDoc(e)||(t=re.propFix[t]||t,s=re.propHooks[t]),void 0!==n?s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:e[t]=n:s&&"get"in s&&null!==(i=s.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=re.find.attr(e,"tabindex");return t?parseInt(t,10):ut.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ie.optSelected||(re.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),re.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){re.propFix[this.toLowerCase()]=this});var dt=/[\t\r\n\f]/g;re.fn.extend({addClass:function(e){var t,n,i,s,r,o,a,l=0;if(re.isFunction(e))return this.each(function(t){re(this).addClass(e.call(this,t,H(this)))});if("string"==typeof e&&e)for(t=e.match(we)||[];n=this[l++];)if(s=H(n),i=1===n.nodeType&&(" "+s+" ").replace(dt," ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=re.trim(i),s!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,s,r,o,a,l=0;if(re.isFunction(e))return this.each(function(t){re(this).removeClass(e.call(this,t,H(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(we)||[];n=this[l++];)if(s=H(n),i=1===n.nodeType&&(" "+s+" ").replace(dt," ")){for(o=0;r=t[o++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a=re.trim(i),s!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):re.isFunction(e)?this.each(function(n){re(this).toggleClass(e.call(this,n,H(this),t),t)}):this.each(function(){var t,i,s,r;if("string"===n)for(i=0,s=re(this),r=e.match(we)||[];t=r[i++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==n||(t=H(this),t&&Te.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Te.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+H(n)+" ").replace(dt," ").indexOf(t)>-1)return!0;return!1}});var ft=/\r/g,pt=/[\x20\t\r\n\f]+/g;re.fn.extend({val:function(e){var t,n,i,s=this[0];{if(arguments.length)return i=re.isFunction(e),this.each(function(n){var s;1===this.nodeType&&(s=i?e.call(this,n,re(this).val()):e,null==s?s="":"number"==typeof s?s+="":re.isArray(s)&&(s=re.map(s,function(e){return null==e?"":e+""})),t=re.valHooks[this.type]||re.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))});if(s)return t=re.valHooks[s.type]||re.valHooks[s.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(s,"value"))?n:(n=s.value,"string"==typeof n?n.replace(ft,""):null==n?"":n)}}}),re.extend({valHooks:{option:{get:function(e){var t=re.find.attr(e,"value");return null!=t?t:re.trim(re.text(e)).replace(pt," ")}},select:{get:function(e){for(var t,n,i=e.options,s=e.selectedIndex,r="select-one"===e.type||s<0,o=r?null:[],a=r?s+1:i.length,l=s<0?a:r?s:0;l<a;l++)if(n=i[l],(n.selected||l===s)&&(ie.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!re.nodeName(n.parentNode,"optgroup"))){if(t=re(n).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var n,i,s=e.options,r=re.makeArray(t),o=s.length;o--;)i=s[o],(i.selected=re.inArray(re.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),re.each(["radio","checkbox"],function(){re.valHooks[this]={set:function(e,t){if(re.isArray(t))return e.checked=re.inArray(re(e).val(),t)>-1}},ie.checkOn||(re.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var gt=/^(?:focusinfocus|focusoutblur)$/;re.extend(re.event,{trigger:function(t,n,i,s){var r,o,a,l,c,u,h,d=[i||X],f=ne.call(t,"type")?t.type:t,p=ne.call(t,"namespace")?t.namespace.split("."):[];if(o=a=i=i||X,3!==i.nodeType&&8!==i.nodeType&&!gt.test(f+re.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),c=f.indexOf(":")<0&&"on"+f,t=t[re.expando]?t:new re.Event(f,"object"==typeof t&&t),t.isTrigger=s?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:re.makeArray(n,[t]),h=re.event.special[f]||{},s||!h.trigger||h.trigger.apply(i,n)!==!1)){if(!s&&!h.noBubble&&!re.isWindow(i)){for(l=h.delegateType||f,gt.test(l+f)||(o=o.parentNode);o;o=o.parentNode)d.push(o),a=o;a===(i.ownerDocument||X)&&d.push(a.defaultView||a.parentWindow||e)}for(r=0;(o=d[r++])&&!t.isPropagationStopped();)t.type=r>1?l:h.bindType||f,u=(Te.get(o,"events")||{})[t.type]&&Te.get(o,"handle"),u&&u.apply(o,n),u=c&&o[c],u&&u.apply&&ke(o)&&(t.result=u.apply(o,n),t.result===!1&&t.preventDefault());return t.type=f,s||t.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),n)!==!1||!ke(i)||c&&re.isFunction(i[f])&&!re.isWindow(i)&&(a=i[c],a&&(i[c]=null),re.event.triggered=f,i[f](),re.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(e,t,n){var i=re.extend(new re.Event,n,{type:e,isSimulated:!0});re.event.trigger(i,null,t)}}),re.fn.extend({trigger:function(e,t){return this.each(function(){re.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return re.event.trigger(e,t,n,!0)}}),re.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){re.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),re.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ie.focusin="onfocusin"in e,ie.focusin||re.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){re.event.simulate(t,e.target,re.event.fix(e))};re.event.special[t]={setup:function(){var i=this.ownerDocument||this,s=Te.access(i,t);s||i.addEventListener(e,n,!0),Te.access(i,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this,s=Te.access(i,t)-1;s?Te.access(i,t,s):(i.removeEventListener(e,n,!0),Te.remove(i,t))}}});var mt=e.location,vt=re.now(),yt=/\?/;re.parseJSON=function(e){return JSON.parse(e+"")},re.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(i){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||re.error("Invalid XML: "+t),n};var _t=/#.*$/,bt=/([?&])_=[^&]*/,wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,xt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ct=/^(?:GET|HEAD)$/,kt=/^\/\//,Tt={},St={},$t="*/".concat("*"),Ot=X.createElement("a");Ot.href=mt.href,re.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mt.href,type:"GET",isLocal:xt.test(mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?B(B(e,re.ajaxSettings),t):B(re.ajaxSettings,e)},ajaxPrefilter:W(Tt),ajaxTransport:W(St),ajax:function(t,n){function i(t,n,i,a){var c,h,y,_,w,C=n;2!==b&&(b=2,l&&e.clearTimeout(l),s=void 0,o=a||"",x.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(_=V(d,x,i)),_=z(d,_,x,c),c?(d.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(re.lastModified[r]=w),w=x.getResponseHeader("etag"),w&&(re.etag[r]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=_.state,h=_.data,y=_.error,c=!y)):(y=C,!t&&C||(C="error",t<0&&(t=0))),x.status=t,x.statusText=(n||C)+"",c?g.resolveWith(f,[h,C,x]):g.rejectWith(f,[x,C,y]),x.statusCode(v),v=void 0,u&&p.trigger(c?"ajaxSuccess":"ajaxError",[x,d,c?h:y]),m.fireWith(f,[x,C]),u&&(p.trigger("ajaxComplete",[x,d]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var s,r,o,a,l,c,u,h,d=re.ajaxSetup({},n),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?re(f):re.event,g=re.Deferred(),m=re.Callbacks("once memory"),v=d.statusCode||{},y={},_={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=wt.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=_[n]=_[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return s&&s.abort(t),i(0,t),this}};if(g.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,d.url=((t||d.url||mt.href)+"").replace(_t,"").replace(kt,mt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=re.trim(d.dataType||"*").toLowerCase().match(we)||[""],null==d.crossDomain){c=X.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Ot.protocol+"//"+Ot.host!=c.protocol+"//"+c.host}catch(C){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=re.param(d.data,d.traditional)),R(Tt,d,n,x),2===b)return x;u=re.event&&d.global,u&&0===re.active++&&re.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ct.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(yt.test(r)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=bt.test(r)?r.replace(bt,"$1_="+vt++):r+(yt.test(r)?"&":"?")+"_="+vt++)),d.ifModified&&(re.lastModified[r]&&x.setRequestHeader("If-Modified-Since",re.lastModified[r]),re.etag[r]&&x.setRequestHeader("If-None-Match",re.etag[r])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+$t+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)x.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(d.beforeSend.call(f,x,d)===!1||2===b))return x.abort();w="abort";for(h in{success:1,error:1,complete:1})x[h](d[h]);if(s=R(St,d,n,x)){if(x.readyState=1,u&&p.trigger("ajaxSend",[x,d]),2===b)return x;d.async&&d.timeout>0&&(l=e.setTimeout(function(){x.abort("timeout")},d.timeout));try{b=1,s.send(y,i)}catch(C){if(!(b<2))throw C;i(-1,C)}}else i(-1,"No Transport");return x},getJSON:function(e,t,n){return re.get(e,t,n,"json")},getScript:function(e,t){return re.get(e,void 0,t,"script")}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,i,s){return re.isFunction(n)&&(s=s||i,i=n,n=void 0),re.ajax(re.extend({url:e,type:t,dataType:s,data:n,success:i},re.isPlainObject(e)&&e))}}),re._evalUrl=function(e){return re.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},re.fn.extend({wrapAll:function(e){var t;return re.isFunction(e)?this.each(function(t){re(this).wrapAll(e.call(this,t))}):(this[0]&&(t=re(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return re.isFunction(e)?this.each(function(t){re(this).wrapInner(e.call(this,t))}):this.each(function(){var t=re(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=re.isFunction(e);return this.each(function(n){re(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()}}),re.expr.filters.hidden=function(e){return!re.expr.filters.visible(e)},re.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var It=/%20/g,Pt=/\[\]$/,Et=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;re.param=function(e,t){var n,i=[],s=function(e,t){t=re.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.jquery&&!re.isPlainObject(e))re.each(e,function(){s(this.name,this.value)});else for(n in e)U(n,e[n],t,s);return i.join("&").replace(It,"+")},re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=re.prop(this,"elements");return e?re.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!re(this).is(":disabled")&&At.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!Ae.test(e))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}}),re.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Mt={0:200,1223:204},jt=re.ajaxSettings.xhr();ie.cors=!!jt&&"withCredentials"in jt,ie.ajax=jt=!!jt,re.ajaxTransport(function(t){var n,i;if(ie.cors||jt&&!t.crossDomain)return{send:function(s,r){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");for(o in s)a.setRequestHeader(o,s[o]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(l){if(n)throw l}},abort:function(){n&&n()}}}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),re.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,s){t=re("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s("error"===e.type?404:200,e.type)}),X.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Dt=[],Lt=/(=)\?(?=&|$)|\?\?/;re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||re.expando+"_"+vt++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(t,n,i){var s,r,o,a=t.jsonp!==!1&&(Lt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=re.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Lt,"$1"+s):t.jsonp!==!1&&(t.url+=(yt.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return o||re.error(s+" was not called"),o[0]},t.dataTypes[0]="json",r=e[s],e[s]=function(){o=arguments},i.always(function(){void 0===r?re(e).removeProp(s):e[s]=r,t[s]&&(t.jsonpCallback=n.jsonpCallback,Dt.push(s)),o&&re.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),re.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||X;var i=pe.exec(e),s=!n&&[];return i?[t.createElement(i[1])]:(i=d([e],t,s),s&&s.length&&re(s).remove(),re.merge([],i.childNodes))};var Ft=re.fn.load;re.fn.load=function(e,t,n){if("string"!=typeof e&&Ft)return Ft.apply(this,arguments);var i,s,r,o=this,a=e.indexOf(" ");return a>-1&&(i=re.trim(e.slice(a)),e=e.slice(0,a)),re.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),o.length>0&&re.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){r=arguments,o.html(i?re("<div>").append(re.parseHTML(e)).find(i):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length},re.offset={setOffset:function(e,t,n){var i,s,r,o,a,l,c,u=re.css(e,"position"),h=re(e),d={};"static"===u&&(e.style.position="relative"),a=h.offset(),r=re.css(e,"top"),l=re.css(e,"left"),c=("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1,c?(i=h.position(),o=i.top,s=i.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),re.isFunction(t)&&(t=t.call(e,n,re.extend({},a))),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+s),"using"in t?t.using.call(e,d):h.css(d)}},re.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,i=this[0],s={top:0,left:0},r=i&&i.ownerDocument;if(r)return t=r.documentElement,re.contains(t,i)?(s=i.getBoundingClientRect(),n=J(r),{top:s.top+n.pageYOffset-t.clientTop,left:s.left+n.pageXOffset-t.clientLeft}):s},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===re.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),re.nodeName(e[0],"html")||(i=e.offset()),i.top+=re.css(e[0],"borderTopWidth",!0),i.left+=re.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-re.css(n,"marginTop",!0),left:t.left-i.left-re.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===re.css(e,"position");)e=e.offsetParent;return e||Qe})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;re.fn[e]=function(i){return Ce(this,function(e,i,s){var r=J(e);return void 0===s?r?r[t]:e[i]:void(r?r.scrollTo(n?r.pageXOffset:s,n?s:r.pageYOffset):e[i]=s)},e,i,arguments.length)}}),re.each(["top","left"],function(e,t){re.cssHooks[t]=$(ie.pixelPosition,function(e,n){if(n)return n=S(e,t),Xe.test(n)?re(e).position()[t]+"px":n})}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){re.fn[i]=function(i,s){var r=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||s===!0?"margin":"border");return Ce(this,function(t,n,i){var s;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===i?re.css(t,n,o):re.style(t,n,i,o)},t,r?i:void 0,r,null)}})}),re.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return re});var qt=e.jQuery,Ht=e.$;return re.noConflict=function(t){return e.$===re&&(e.$=Ht),t&&e.jQuery===re&&(e.jQuery=qt),re},t||(e.jQuery=e.$=re),re});var __slice=Array.prototype.slice;!function(e){var t;return e.fn.sketch=function(){var n,i,s;return i=arguments[0],n=2<=arguments.length?__slice.call(arguments,1):[],this.length>1&&e.error("Sketch.js can only be called on one element at a time."),s=this.data("sketch"),"string"==typeof i&&s?s[i]?"function"==typeof s[i]?s[i].apply(s,n):0===n.length?s[i]:1===n.length?s[i]=n[0]:void 0:e.error("Sketch.js did not recognize the given command."):s?s:(this.data("sketch",new t(this.get(0),i)),this)},t=function(){function t(t,n){this.el=t,this.canvas=e(t),this.context=t.getContext("2d"),this.options=e.extend({toolLinks:!0,defaultTool:"marker",defaultColor:"#441a9a",defaultSize:5},n),this.painting=!1,this.color=this.options.defaultColor,this.size=this.options.defaultSize,this.tool=this.options.defaultTool,this.actions=[],this.action=[],this.canvas.bind("click mousedown mouseup mousemove mouseleave mouseout touchstart touchmove touchend touchcancel",this.onEvent),this.options.toolLinks&&e("body").delegate('a[href="#'+this.canvas.attr("id")+'"]',"click",function(t){var n,i,s,r,o,a,l;for(i=e(this),n=e(i.attr("href")),r=n.data("sketch"),l=["color","size","tool"],o=0,a=l.length;o<a;o++)s=l[o],i.attr("data-"+s)&&r.set(s,e(this).attr("data-"+s));return e(this).attr("data-clear")&&r.clear(),e(this).attr("data-download")&&r.download(e(this).attr("data-download")),!1})}return t.prototype.clear=function(){return this.actions=[],this.redraw()},t.prototype.download=function(e){var t;return e||(e="png"),"jpg"===e&&(e="jpeg"),t="image/"+e,window.open(this.el.toDataURL(t))},t.prototype.set=function(e,t){return this[e]=t,this.canvas.trigger("sketch.change"+e,t)},t.prototype.startPainting=function(){return this.painting=!0,this.action={tool:this.tool,color:this.color,size:parseFloat(this.size),events:[]}},t.prototype.stopPainting=function(){return this.action&&this.actions.push(this.action),this.painting=!1,this.action=null,this.redraw()},t.prototype.onEvent=function(t){return t.originalEvent&&t.originalEvent.targetTouches&&(t.pageX=t.originalEvent.targetTouches[0].pageX,t.pageY=t.originalEvent.targetTouches[0].pageY),e.sketch.tools[e(this).data("sketch").tool].onEvent.call(e(this).data("sketch"),t),t.preventDefault(),!1},t.prototype.redraw=function(){var t;if(this.el.width=this.canvas.width(),this.context=this.el.getContext("2d"),t=this,e.each(this.actions,function(){if(this.tool)return e.sketch.tools[this.tool].draw.call(t,this)}),this.painting&&this.action)return e.sketch.tools[this.action.tool].draw.call(t,this.action)},t}(),e.sketch={tools:{}},e.sketch.tools.marker={onEvent:function(e){switch(e.type){case"mousedown":case"touchstart":this.startPainting();break;case"mouseup":case"mouseout":case"mouseleave":case"touchend":case"touchcancel":this.stopPainting()}if(this.painting)return this.action.events.push({x:e.pageX-this.canvas.offset().left,y:e.pageY-this.canvas.offset().top,event:e.type}),this.redraw()},draw:function(e){var t,n,i,s,r;for(this.context.lineJoin="round",this.context.lineCap="round",this.context.beginPath(),this.context.moveTo(e.events[0].x,e.events[0].y),r=e.events,i=0,s=r.length;i<s;i++)t=r[i],this.context.lineTo(t.x,t.y),n=t;return this.context.strokeStyle=e.color,this.context.lineWidth=e.size,this.context.stroke()}},e.sketch.tools.eraser={onEvent:function(t){return e.sketch.tools.marker.onEvent.call(this,t)},draw:function(t){var n;return n=this.context.globalCompositeOperation,this.context.globalCompositeOperation="copy",t.color="rgba(68,26,154,0)",e.sketch.tools.marker.draw.call(this,t),this.context.globalCompositeOperation=n}}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";function e(t,i,s){if(n(t,i))return void(t[i]=s);if(t._isVue)return void e(t._data,i,s);var r=t.__ob__;if(!r)return void(t[i]=s);if(r.convert(i,s),r.dep.notify(),r.vms)for(var o=r.vms.length;o--;){var a=r.vms[o];a._proxy(i),a._digest()}return s}function t(e,t){if(n(e,t)){delete e[t];var i=e.__ob__;if(!i)return void(e._isVue&&(delete e._data[t],e._digest()));if(i.dep.notify(),i.vms)for(var s=i.vms.length;s--;){var r=i.vms[s];r._unproxy(t),r._digest()}}}function n(e,t){return Pn.call(e,t)}function i(e){return En.test(e)}function s(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function r(e){return null==e?"":e.toString()}function o(e){if("string"!=typeof e)return e;var t=Number(e);return isNaN(t)?e:t}function a(e){return"true"===e||"false"!==e&&e}function l(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function c(e){return e.replace(Nn,u)}function u(e,t){return t?t.toUpperCase():""}function h(e){return e.replace(An,"$1-$2").toLowerCase()}function d(e){return e.replace(Mn,u)}function f(e,t){return function(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function p(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function g(e,t){for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}function m(e){return null!==e&&"object"==typeof e}function v(e){return jn.call(e)===Dn}function y(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}function _(e,t){var n,i,s,r,o,a=function l(){var a=Date.now()-r;a<t&&a>=0?n=setTimeout(l,t-a):(n=null,o=e.apply(s,i),n||(s=i=null))};return function(){return s=this,i=arguments,r=Date.now(),n||(n=setTimeout(a,t)),o}}function b(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function w(e){var t=function n(){if(!n.cancelled)return e.apply(this,arguments)};return t.cancel=function(){t.cancelled=!0},t}function x(e,t){return e==t||!(!m(e)||!m(t))&&JSON.stringify(e)===JSON.stringify(t)}function C(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap=Object.create(null)}function k(){var e,t=si.slice(ui,li).trim();if(t){e={};var n=t.match(vi);e.name=n[0],n.length>1&&(e.args=n.slice(1).map(T))}e&&(ri.filters=ri.filters||[]).push(e),ui=li+1}function T(e){if(yi.test(e))return{value:o(e),dynamic:!1};var t=l(e),n=t===e;return{value:n?e:t,dynamic:n}}function S(e){var t=mi.get(e);if(t)return t;for(si=e,hi=di=!1,fi=pi=gi=0,ui=0,ri={},li=0,ci=si.length;li<ci;li++)if(ai=oi,oi=si.charCodeAt(li),hi)39===oi&&92!==ai&&(hi=!hi);else if(di)34===oi&&92!==ai&&(di=!di);else if(124===oi&&124!==si.charCodeAt(li+1)&&124!==si.charCodeAt(li-1))null==ri.expression?(ui=li+1,ri.expression=si.slice(0,li).trim()):k();else switch(oi){case 34:di=!0;break;case 39:hi=!0;break;case 40:gi++;break;case 41:gi--;break;case 91:pi++;break;case 93:pi--;break;case 123:fi++;break;case 125:fi--}return null==ri.expression?ri.expression=si.slice(0,li).trim():0!==ui&&k(),mi.put(e,ri),ri}function $(e){return e.replace(bi,"\\$&")}function O(){var e=$(Oi.delimiters[0]),t=$(Oi.delimiters[1]),n=$(Oi.unsafeDelimiters[0]),i=$(Oi.unsafeDelimiters[1]);xi=new RegExp(n+"((?:.|\\n)+?)"+i+"|"+e+"((?:.|\\n)+?)"+t,"g"),Ci=new RegExp("^"+n+"((?:.|\\n)+?)"+i+"$"),wi=new C(1e3)}function I(e){wi||O();var t=wi.get(e);if(t)return t;if(!xi.test(e))return null;for(var n,i,s,r,o,a,l=[],c=xi.lastIndex=0;n=xi.exec(e);)i=n.index,i>c&&l.push({value:e.slice(c,i)}),s=Ci.test(n[0]),r=s?n[1]:n[2],o=r.charCodeAt(0),a=42===o,r=a?r.slice(1):r,l.push({tag:!0,value:r.trim(),html:s,oneTime:a}),c=i+n[0].length;return c<e.length&&l.push({value:e.slice(c)}),wi.put(e,l),l}function P(e,t){return e.length>1?e.map(function(e){return E(e,t)}).join("+"):E(e[0],t,!0)}function E(e,t,n){return e.tag?e.oneTime&&t?'"'+t.$eval(e.value)+'"':N(e.value,n):'"'+e.value+'"'}function N(e,t){if(ki.test(e)){var n=S(e);return n.filters?"this._applyFilters("+n.expression+",null,"+JSON.stringify(n.filters)+",false)":"("+e+")"}return t?e:"("+e+")"}function A(e,t,n,i){D(e,1,function(){t.appendChild(e)},n,i)}function M(e,t,n,i){D(e,1,function(){R(e,t)},n,i)}function j(e,t,n){D(e,-1,function(){V(e)},t,n)}function D(e,t,n,i,s){var r=e.__v_trans;if(!r||!r.hooks&&!Gn||!i._isCompiled||i.$parent&&!i.$parent._isCompiled)return n(),void(s&&s());var o=t>0?"enter":"leave";r[o](n,s)}function L(e){if("string"==typeof e){var t=e;e=document.querySelector(e),e||Ii("Cannot find element: "+t)}return e}function F(e){if(!e)return!1;var t=e.ownerDocument.documentElement,n=e.parentNode;return t===e||t===n||!(!n||1!==n.nodeType||!t.contains(n))}function q(e,t){var n=e.getAttribute(t);return null!==n&&e.removeAttribute(t),n}function H(e,t){var n=q(e,":"+t);return null===n&&(n=q(e,"v-bind:"+t)),n}function W(e,t){return e.hasAttribute(t)||e.hasAttribute(":"+t)||e.hasAttribute("v-bind:"+t)}function R(e,t){t.parentNode.insertBefore(e,t)}function B(e,t){t.nextSibling?R(e,t.nextSibling):t.parentNode.appendChild(e)}function V(e){e.parentNode.removeChild(e)}function z(e,t){t.firstChild?R(e,t.firstChild):t.appendChild(e)}function U(e,t){var n=e.parentNode;n&&n.replaceChild(t,e)}function J(e,t,n,i){e.addEventListener(t,n,i)}function Y(e,t,n){e.removeEventListener(t,n)}function X(e){var t=e.className;return"object"==typeof t&&(t=t.baseVal||""),t}function G(e,t){Bn&&!/svg$/.test(e.namespaceURI)?e.className=t:e.setAttribute("class",t)}function K(e,t){if(e.classList)e.classList.add(t);else{var n=" "+X(e)+" ";n.indexOf(" "+t+" ")<0&&G(e,(n+t).trim())}}function Q(e,t){if(e.classList)e.classList.remove(t);else{for(var n=" "+X(e)+" ",i=" "+t+" ";n.indexOf(i)>=0;)n=n.replace(i," ");G(e,n.trim())}e.className||e.removeAttribute("class")}function Z(e,t){var n,i;if(ne(e)&&ae(e.content)&&(e=e.content),e.hasChildNodes())for(ee(e),i=t?document.createDocumentFragment():document.createElement("div");n=e.firstChild;)i.appendChild(n);return i}function ee(e){for(var t;t=e.firstChild,te(t);)e.removeChild(t);for(;t=e.lastChild,te(t);)e.removeChild(t)}function te(e){return e&&(3===e.nodeType&&!e.data.trim()||8===e.nodeType)}function ne(e){return e.tagName&&"template"===e.tagName.toLowerCase()}function ie(e,t){var n=Oi.debug?document.createComment(e):document.createTextNode(t?" ":"");return n.__v_anchor=!0,n}function se(e){if(e.hasAttributes())for(var t=e.attributes,n=0,i=t.length;n<i;n++){var s=t[n].name;if(Ni.test(s))return c(s.replace(Ni,""))}}function re(e,t,n){for(var i;e!==t;)i=e.nextSibling,n(e),e=i;n(t)}function oe(e,t,n,i,s){function r(){if(a++,o&&a>=l.length){for(var e=0;e<l.length;e++)i.appendChild(l[e]);s&&s()}}var o=!1,a=0,l=[];re(e,t,function(e){e===t&&(o=!0),l.push(e),j(e,n,r)})}function ae(e){return e&&11===e.nodeType}function le(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function ce(e,t){var n=e.tagName.toLowerCase(),i=e.hasAttributes();if(Ai.test(n)||Mi.test(n)){if(i)return ue(e,t)}else{if(ve(t,"components",n))return{id:n};var s=i&&ue(e,t);if(s)return s;var r=t._componentNameMap&&t._componentNameMap[n];r?Ii("Unknown custom element: <"+n+"> - did you mean <"+r+">? HTML is case-insensitive, remember to use kebab-case in templates."):ji(e,n)&&Ii("Unknown custom element: <"+n+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.')}}function ue(e,t){var n=e.getAttribute("is");if(null!=n){if(ve(t,"components",n))return e.removeAttribute("is"),{id:n}}else if(n=H(e,"is"),null!=n)return{id:n,dynamic:!0}}function he(t,i){var s,r,o;for(s in i)r=t[s],o=i[s],n(t,s)?m(r)&&m(o)&&he(r,o):e(t,s,o);return t}function de(e,t){var n=Object.create(e||null);return t?g(n,ge(t)):n}function fe(e){if(e.components)for(var t,n=e.components=ge(e.components),i=Object.keys(n),s=e._componentNameMap={},r=0,o=i.length;r<o;r++){var a=i[r];Ai.test(a)||Mi.test(a)?Ii("Do not use built-in or reserved HTML elements as component id: "+a):(s[a.replace(/-/g,"").toLowerCase()]=h(a),t=n[a],v(t)&&(n[a]=kn.extend(t)))}}function pe(e){var t,n,i=e.props;if(Ln(i))for(e.props={},t=i.length;t--;)n=i[t],"string"==typeof n?e.props[n]=null:n.name&&(e.props[n.name]=n);else if(v(i)){var s=Object.keys(i);for(t=s.length;t--;)n=i[s[t]],"function"==typeof n&&(i[s[t]]={type:n})}}function ge(e){if(Ln(e)){for(var t,n={},i=e.length;i--;){t=e[i];var s="function"==typeof t?t.options&&t.options.name||t.id:t.name||t.id;s?n[s]=t:Ii('Array-syntax assets must provide a "name" or "id" field.')}return n}return e}function me(e,t,i){function s(n){var s=Di[n]||Li;o[n]=s(e[n],t[n],i,n)}fe(t),pe(t),t.propsData&&!i&&Ii("propsData can only be used as an instantiation option.");var r,o={};if(t["extends"]&&(e="function"==typeof t["extends"]?me(e,t["extends"].options,i):me(e,t["extends"],i)),t.mixins)for(var a=0,l=t.mixins.length;a<l;a++){var c=t.mixins[a],u=c.prototype instanceof kn?c.options:c;e=me(e,u,i)}for(r in e)s(r);for(r in t)n(e,r)||s(r);return o}function ve(e,t,n,i){if("string"==typeof n){var s,r=e[t],o=r[n]||r[s=c(n)]||r[s.charAt(0).toUpperCase()+s.slice(1)];return i&&!o&&Ii("Failed to resolve "+t.slice(0,-1)+": "+n,e),o}}function ye(){this.id=Fi++,this.subs=[]}function _e(e){Ri=!1,e(),Ri=!0}function be(e){if(this.value=e,this.dep=new ye,y(e,"__ob__",this),Ln(e)){var t=Fn?we:xe;t(e,Hi,Wi),this.observeArray(e)}else this.walk(e)}function we(e,t){e.__proto__=t}function xe(e,t,n){for(var i=0,s=n.length;i<s;i++){var r=n[i];y(e,r,t[r])}}function Ce(e,t){if(e&&"object"==typeof e){var i;return n(e,"__ob__")&&e.__ob__ instanceof be?i=e.__ob__:Ri&&(Ln(e)||v(e))&&Object.isExtensible(e)&&!e._isVue&&(i=new be(e)),i&&t&&i.addVm(t),i}}function ke(e,t,n){var i=new ye,s=Object.getOwnPropertyDescriptor(e,t);if(!s||s.configurable!==!1){var r=s&&s.get,o=s&&s.set,a=Ce(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=r?r.call(e):n;if(ye.target&&(i.depend(),a&&a.dep.depend(),Ln(t)))for(var s,o=0,l=t.length;o<l;o++)s=t[o],s&&s.__ob__&&s.__ob__.dep.depend();return t},set:function(t){var s=r?r.call(e):n;t!==s&&(o?o.call(e,t):n=t,a=Ce(t),i.notify())}})}}function Te(e){e.prototype._init=function(e){e=e||{},this.$el=null,this.$parent=e.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=Vi++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=e._context||this.$parent,this._scope=e._scope,this._frag=e._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),e=this.$options=me(this.constructor.options,e,this),this._updateRef(),this._data={},this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),e.el&&this.$mount(e.el)}}function Se(e){if(void 0===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:case 48:return e;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return t>=97&&t<=122||t>=65&&t<=90?"ident":t>=1&&t<=57?"number":"else"}function $e(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(i(t)?l(t):"*"+t)}function Oe(e){function t(){var t=e[u+1];if(h===ts&&"'"===t||h===ns&&'"'===t)return u++,i="\\"+t,f[Ui](),!0}var n,i,s,r,o,a,l,c=[],u=-1,h=Gi,d=0,f=[];for(f[Ji]=function(){void 0!==s&&(c.push(s),s=void 0)},f[Ui]=function(){void 0===s?s=i:s+=i},f[Yi]=function(){f[Ui](),d++},f[Xi]=function(){if(d>0)d--,h=es,f[Ui]();else{if(d=0,s=$e(s),s===!1)return!1;f[Ji]()}};null!=h;)if(u++,n=e[u],"\\"!==n||!t()){if(r=Se(n),l=rs[h],o=l[r]||l["else"]||ss,o===ss)return;if(h=o[0],a=f[o[1]],a&&(i=o[2],i=void 0===i?n:i,a()===!1))return;if(h===is)return c.raw=e,c}}function Ie(e){var t=zi.get(e);return t||(t=Oe(e),t&&zi.put(e,t)),t}function Pe(e,t){return qe(t).get(e)}function Ee(t,n,i){var s=t;if("string"==typeof n&&(n=Oe(n)),!n||!m(t))return!1;for(var r,o,a=0,l=n.length;a<l;a++)r=t,o=n[a],"*"===o.charAt(0)&&(o=qe(o.slice(1)).get.call(s,s)),a<l-1?(t=t[o],m(t)||(t={},r._isVue&&os(n,r),e(r,o,t))):Ln(t)?t.$set(o,i):o in t?t[o]=i:(t._isVue&&os(n,t),e(t,o,i));return!0}function Ne(){}function Ae(e,t){var n=bs.length;return bs[n]=t?e.replace(ps,"\\n"):e,'"'+n+'"'}function Me(e){var t=e.charAt(0),n=e.slice(1);return us.test(n)?e:(n=n.indexOf('"')>-1?n.replace(ms,je):n,t+"scope."+n)}function je(e,t){return bs[t]}function De(e){ds.test(e)&&Ii("Avoid using reserved keywords in expression: "+e),bs.length=0;var t=e.replace(gs,Ae).replace(fs,"");return t=(" "+t).replace(ys,Me).replace(ms,je),Le(t)}function Le(e){try{return new Function("scope","return "+e+";")}catch(t){return Ii(t.toString().match(/unsafe-eval|CSP/)?"It seems you are using the default build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. Use the CSP-compliant build instead: http://vuejs.org/guide/installation.html#CSP-compliant-build":"Invalid expression. Generated function body: "+e),Ne}}function Fe(e){var t=Ie(e);return t?function(e,n){Ee(e,t,n)}:void Ii("Invalid setter expression: "+e)}function qe(e,t){e=e.trim();var n=ls.get(e);if(n)return t&&!n.set&&(n.set=Fe(n.exp)),n;var i={exp:e};return i.get=He(e)&&e.indexOf("[")<0?Le("scope."+e):De(e),t&&(i.set=Fe(e)),ls.put(e,i),i}function He(e){return vs.test(e)&&!_s.test(e)&&"Math."!==e.slice(0,5)}function We(){xs.length=0,Cs.length=0,ks={},Ts={},Ss=!1}function Re(){for(var e=!0;e;)e=!1,Be(xs),Be(Cs),xs.length?e=!0:(Hn&&Oi.devtools&&Hn.emit("flush"),We())}function Be(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.id;if(ks[i]=null,n.run(),null!=ks[i]&&(Ts[i]=(Ts[i]||0)+1,Ts[i]>Oi._maxUpdateCount)){Ii('You may have an infinite update loop for watcher with expression "'+n.expression+'"',n.vm);break}}e.length=0}function Ve(e){var t=e.id;if(null==ks[t]){var n=e.user?Cs:xs;ks[t]=n.length,n.push(e),Ss||(Ss=!0,ti(Re))}}function ze(e,t,n,i){i&&g(this,i);var s="function"==typeof t;if(this.vm=e,e._watchers.push(this),this.expression=t,this.cb=n,this.id=++$s,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ni,this.newDepIds=new ni,this.prevError=null,s)this.getter=t,this.setter=void 0;else{var r=qe(t,this.twoWay);this.getter=r.get,this.setter=r.set}this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function Ue(e,t){var n=void 0,i=void 0;t||(t=Os,t.clear());var s=Ln(e),r=m(e);if((s||r)&&Object.isExtensible(e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(s)for(n=e.length;n--;)Ue(e[n],t);else if(r)for(i=Object.keys(e),n=i.length;n--;)Ue(e[i[n]],t)}}function Je(e){return ne(e)&&ae(e.content)}function Ye(e,t){var n=t?e:e.trim(),i=Ps.get(n);if(i)return i;var s=document.createDocumentFragment(),r=e.match(As),o=Ms.test(e),a=js.test(e);if(r||o||a){var l=r&&r[1],c=Ns[l]||Ns.efault,u=c[0],h=c[1],d=c[2],f=document.createElement("div");for(f.innerHTML=h+e+d;u--;)f=f.lastChild;for(var p;p=f.firstChild;)s.appendChild(p)}else s.appendChild(document.createTextNode(e));return t||ee(s),Ps.put(n,s),s}function Xe(e){if(Je(e))return Ye(e.innerHTML);if("SCRIPT"===e.tagName)return Ye(e.textContent);for(var t,n=Ge(e),i=document.createDocumentFragment();t=n.firstChild;)i.appendChild(t);return ee(i),i}function Ge(e){if(!e.querySelectorAll)return e.cloneNode();var t,n,i,s=e.cloneNode(!0);if(Ds){var r=s;if(Je(e)&&(e=e.content,r=s.content),n=e.querySelectorAll("template"),n.length)for(i=r.querySelectorAll("template"),t=i.length;t--;)i[t].parentNode.replaceChild(Ge(n[t]),i[t])}if(Ls)if("TEXTAREA"===e.tagName)s.value=e.value;else if(n=e.querySelectorAll("textarea"),n.length)for(i=s.querySelectorAll("textarea"),t=i.length;t--;)i[t].value=n[t].value;return s}function Ke(e,t,n){var i,s;return ae(e)?(ee(e),t?Ge(e):e):("string"==typeof e?n||"#"!==e.charAt(0)?s=Ye(e,n):(s=Es.get(e),s||(i=document.getElementById(e.slice(1)),i&&(s=Xe(i),Es.put(e,s)))):e.nodeType&&(s=Xe(e)),s&&t?Ge(s):s)}function Qe(e,t,n,i,s,r){this.children=[],this.childFrags=[],this.vm=t,this.scope=s,this.inserted=!1,this.parentFrag=r,r&&r.childFrags.push(this),this.unlink=e(t,n,i,s,this);var o=this.single=1===n.childNodes.length&&!n.childNodes[0].__v_anchor;o?(this.node=n.childNodes[0],this.before=Ze,this.remove=et):(this.node=ie("fragment-start"),this.end=ie("fragment-end"),this.frag=n,z(this.node,n),n.appendChild(this.end),this.before=tt,this.remove=nt),this.node.__v_frag=this}function Ze(e,t){this.inserted=!0;var n=t!==!1?M:R;n(this.node,e,this.vm),F(this.node)&&this.callHook(it)}function et(){this.inserted=!1;var e=F(this.node),t=this;this.beforeRemove(),j(this.node,this.vm,function(){e&&t.callHook(st),t.destroy()})}function tt(e,t){this.inserted=!0;var n=this.vm,i=t!==!1?M:R;re(this.node,this.end,function(t){i(t,e,n)}),F(this.node)&&this.callHook(it)}function nt(){this.inserted=!1;var e=this,t=F(this.node);this.beforeRemove(),oe(this.node,this.end,this.vm,this.frag,function(){t&&e.callHook(st),e.destroy()})}function it(e){!e._isAttached&&F(e.$el)&&e._callHook("attached")}function st(e){e._isAttached&&!F(e.$el)&&e._callHook("detached")}function rt(e,t){this.vm=e;var n,i="string"==typeof t;i||ne(t)&&!t.hasAttribute("v-if")?n=Ke(t,!0):(n=document.createDocumentFragment(),n.appendChild(t)),this.template=n;var s,r=e.constructor.cid;if(r>0){var o=r+(i?t:le(t));s=Hs.get(o),s||(s=Dt(n,e.$options,!0),Hs.put(o,s))}else s=Dt(n,e.$options,!0);this.linker=s}function ot(e,t,n){var i=e.node.previousSibling;if(i){for(e=i.__v_frag;!(e&&e.forId===n&&e.inserted||i===t);){if(i=i.previousSibling,!i)return;e=i.__v_frag}return e}}function at(e){var t=e.node;if(e.end)for(;!t.__vue__&&t!==e.end&&t.nextSibling;)t=t.nextSibling;return t.__vue__}function lt(e){for(var t=-1,n=new Array(Math.floor(e));++t<e;)n[t]=t;return n}function ct(e,t,n,i){return i?"$index"===i?e:i.charAt(0).match(/\w/)?Pe(n,i):n[i]:t||n}function ut(e,t,n){for(var i,s,r,o=t?[]:null,a=0,l=e.options.length;a<l;a++)if(i=e.options[a],r=n?i.hasAttribute("selected"):i.selected){if(s=i.hasOwnProperty("_value")?i._value:i.value,!t)return s;o.push(s)}return o}function ht(e,t){for(var n=e.length;n--;)if(x(e[n],t))return n;return-1}function dt(e,t){var n=t.map(function(e){var t=e.charCodeAt(0);return t>47&&t<58?parseInt(e,10):1===e.length&&(t=e.toUpperCase().charCodeAt(0),t>64&&t<91)?t:ar[e]});return n=[].concat.apply([],n),function(t){if(n.indexOf(t.keyCode)>-1)return e.call(this,t)}}function ft(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function pt(e){return function(t){return t.preventDefault(),e.call(this,t)}}function gt(e){return function(t){if(t.target===t.currentTarget)return e.call(this,t)}}function mt(e){if(dr[e])return dr[e];var t=vt(e);return dr[e]=dr[t]=t,t}function vt(e){e=h(e);var t=c(e),n=t.charAt(0).toUpperCase()+t.slice(1);fr||(fr=document.createElement("div"));var i,s=cr.length;if("filter"!==t&&t in fr.style)return{kebab:e,camel:t};for(;s--;)if(i=ur[s]+n,i in fr.style)return{kebab:cr[s]+e,camel:i}}function yt(e){var t=[];if(Ln(e))for(var n=0,i=e.length;n<i;n++){var s=e[n];if(s)if("string"==typeof s)t.push(s);else for(var r in s)s[r]&&t.push(r)}else if(m(e))for(var o in e)e[o]&&t.push(o);return t}function _t(e,t,n){if(t=t.trim(),t.indexOf(" ")===-1)return void n(e,t);for(var i=t.split(/\s+/),s=0,r=i.length;s<r;s++)n(e,i[s])}function bt(e,t,n){function i(){++r>=s?n():e[r].call(t,i)}var s=e.length,r=0;e[0].call(t,i)}function wt(e,t,n){for(var s,r,o,a,l,u,d,f=[],p=Object.keys(t),g=p.length;g--;)if(r=p[g],s=t[r]||Ir,"$data"!==r)if(l=c(r),Pr.test(l)){if(d={name:r,path:l,options:s,mode:Or.ONE_WAY,raw:null},o=h(r),null===(a=H(e,o))&&(null!==(a=H(e,o+".sync"))?d.mode=Or.TWO_WAY:null!==(a=H(e,o+".once"))&&(d.mode=Or.ONE_TIME)),null!==a)d.raw=a,u=S(a),a=u.expression,d.filters=u.filters,i(a)&&!u.filters?d.optimizedLiteral=!0:(d.dynamic=!0,d.mode!==Or.TWO_WAY||Er.test(a)||(d.mode=Or.ONE_WAY,Ii("Cannot bind two-way prop with non-settable parent path: "+a,n))),d.parentPath=a,s.twoWay&&d.mode!==Or.TWO_WAY&&Ii('Prop "'+r+'" expects a two-way binding type.',n);else if(null!==(a=q(e,o)))d.raw=a;else{var m=l.toLowerCase();a=/[A-Z\-]/.test(r)&&(e.getAttribute(m)||e.getAttribute(":"+m)||e.getAttribute("v-bind:"+m)||e.getAttribute(":"+m+".once")||e.getAttribute("v-bind:"+m+".once")||e.getAttribute(":"+m+".sync")||e.getAttribute("v-bind:"+m+".sync")),a?Ii("Possible usage error for prop `"+m+"` - did you mean `"+o+"`? HTML is case-insensitive, remember to use kebab-case for props in templates.",n):s.required&&Ii("Missing required prop: "+r,n)}f.push(d)}else Ii('Invalid prop key: "'+r+'". Prop keys must be valid identifiers.',n);else Ii("Do not use $data as prop.",n);return xt(f)}function xt(e){return function(t,i){t._props={};for(var s,r,c,u,d,f=t.$options.propsData,p=e.length;p--;)if(s=e[p],d=s.raw,r=s.path,c=s.options,t._props[r]=s,f&&n(f,r)&&kt(t,s,f[r]),null===d)kt(t,s,void 0);else if(s.dynamic)s.mode===Or.ONE_TIME?(u=(i||t._context||t).$get(s.parentPath),kt(t,s,u)):t._context?t._bindDir({name:"prop",def:Ar,prop:s},null,null,i):kt(t,s,t.$get(s.parentPath));else if(s.optimizedLiteral){var g=l(d);u=g===d?a(o(d)):g,kt(t,s,u)}else u=c.type===Boolean&&(""===d||d===h(s.name))||d,kt(t,s,u)}}function Ct(e,t,n,i){var s=t.dynamic&&He(t.parentPath),r=n;void 0===r&&(r=St(e,t)),r=Ot(t,r,e);var o=r!==n;$t(t,r,e)||(r=void 0),s&&!o?_e(function(){i(r)}):i(r)}function kt(e,t,n){Ct(e,t,n,function(n){ke(e,t.path,n)})}function Tt(e,t,n){Ct(e,t,n,function(n){e[t.path]=n})}function St(e,t){var i=t.options;if(!n(i,"default"))return i.type!==Boolean&&void 0;var s=i["default"];return m(s)&&Ii('Invalid default value for prop "'+t.name+'": Props with type Object/Array must use a factory function to return the default value.',e),"function"==typeof s&&i.type!==Function?s.call(e):s}function $t(e,t,n){if(!e.options.required&&(null===e.raw||null==t))return!0;var i=e.options,s=i.type,r=!s,o=[];if(s){Ln(s)||(s=[s]);for(var a=0;a<s.length&&!r;a++){var l=It(t,s[a]);o.push(l.expectedType),r=l.valid}}if(!r)return Ii('Invalid prop: type check failed for prop "'+e.name+'". Expected '+o.map(Pt).join(", ")+", got "+Et(t)+".",n),!1;var c=i.validator;return!(c&&!c(t))||(Ii('Invalid prop: custom validator check failed for prop "'+e.name+'".',n),!1)}function Ot(e,t,n){var i=e.options.coerce;return i?"function"==typeof i?i(t):(Ii('Invalid coerce for prop "'+e.name+'": expected function, got '+typeof i+".",n),t):t}function It(e,t){var n,i;return t===String?(i="string",n=typeof e===i):t===Number?(i="number",n=typeof e===i):t===Boolean?(i="boolean",n=typeof e===i):t===Function?(i="function",n=typeof e===i):t===Object?(i="object",n=v(e)):t===Array?(i="array",n=Ln(e)):n=e instanceof t,{valid:n,expectedType:i}}function Pt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"custom type"}function Et(e){return Object.prototype.toString.call(e).slice(8,-1)}function Nt(e){Mr.push(e),jr||(jr=!0,ti(At))}function At(){for(var e=document.documentElement.offsetHeight,t=0;t<Mr.length;t++)Mr[t]();return Mr=[],jr=!1,e}function Mt(e,t,n,i){this.id=t,this.el=e,this.enterClass=n&&n.enterClass||t+"-enter",this.leaveClass=n&&n.leaveClass||t+"-leave",this.hooks=n,this.vm=i,this.pendingCssEvent=this.pendingCssCb=this.cancel=this.pendingJsCb=this.op=this.cb=null,this.justEntered=!1,this.entered=this.left=!1,this.typeCache={},this.type=n&&n.type,this.type&&this.type!==Dr&&this.type!==Lr&&Ii('invalid CSS transition type for transition="'+this.id+'": '+this.type,i);var s=this;["enterNextTick","enterDone","leaveNextTick","leaveDone"].forEach(function(e){s[e]=f(s[e],s)})}function jt(e){if(/svg$/.test(e.namespaceURI)){var t=e.getBoundingClientRect();return!(t.width||t.height)}return!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function Dt(e,t,n){var i=n||!t._asComponent?Bt(e,t):null,s=i&&i.terminal||an(e)||!e.hasChildNodes()?null:Xt(e.childNodes,t);return function(e,t,n,r,o){var a=p(t.childNodes),l=Lt(function(){i&&i(e,t,n,r,o),s&&s(e,a,n,r,o)},e);return qt(e,l)}}function Lt(e,t){var n=t._directives.length;e();var i=t._directives.slice(n);i.sort(Ft);for(var s=0,r=i.length;s<r;s++)i[s]._bind();return i}function Ft(e,t){return e=e.descriptor.def.priority||Gr,t=t.descriptor.def.priority||Gr,e>t?-1:e===t?0:1}function qt(e,t,n,i){function s(s){Ht(e,t,s),n&&i&&Ht(n,i)}return s.dirs=t,s}function Ht(e,t,n){for(var i=t.length;i--;)t[i]._teardown(),n||e._directives.$remove(t[i])}function Wt(e,t,n,i){var s=wt(t,n,e),r=Lt(function(){s(e,i)},e);return qt(e,r)}function Rt(e,t,n){var i,s,r=t._containerAttrs,o=t._replacerAttrs;if(11!==e.nodeType)t._asComponent?(r&&n&&(i=nn(r,n)),o&&(s=nn(o,t))):s=nn(e.attributes,t);else if(r){var a=r.filter(function(e){return e.name.indexOf("_v-")<0&&!Ur.test(e.name)&&"slot"!==e.name}).map(function(e){return'"'+e.name+'"'});if(a.length){var l=a.length>1;Ii("Attribute"+(l?"s ":" ")+a.join(", ")+(l?" are":" is")+" ignored on component <"+t.el.tagName.toLowerCase()+"> because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance")}}return t._containerAttrs=t._replacerAttrs=null,function(e,t,n){var r,o=e._context;o&&i&&(r=Lt(function(){i(o,t,null,n)},o));var a=Lt(function(){s&&s(e,t)},e);return qt(e,a,o,r)}}function Bt(e,t){var n=e.nodeType;return 1!==n||an(e)?3===n&&e.data.trim()?zt(e,t):null:Vt(e,t)}function Vt(e,t){if("TEXTAREA"===e.tagName){var n=I(e.value);n&&(e.setAttribute(":value",P(n)),e.value="")}var i,s=e.hasAttributes(),r=s&&p(e.attributes);return s&&(i=Zt(e,r,t)),i||(i=Kt(e,t)),i||(i=Qt(e,t)),!i&&s&&(i=nn(r,t)),i}function zt(e,t){if(e._skip)return Ut;var n=I(e.wholeText);if(!n)return null;for(var i=e.nextSibling;i&&3===i.nodeType;)i._skip=!0,i=i.nextSibling;for(var s,r,o=document.createDocumentFragment(),a=0,l=n.length;a<l;a++)r=n[a],s=r.tag?Jt(r,t):document.createTextNode(r.value),o.appendChild(s);return Yt(n,o,t)}function Ut(e,t){V(t)}function Jt(e,t){function n(t){if(!e.descriptor){var n=S(e.value);e.descriptor={name:t,def:Tr[t],expression:n.expression,filters:n.filters}}}var i;return e.oneTime?i=document.createTextNode(e.value):e.html?(i=document.createComment("v-html"),n("html")):(i=document.createTextNode(" "),n("text")),i}function Yt(e,t){return function(n,i,s,o){for(var a,l,c,u=t.cloneNode(!0),h=p(u.childNodes),d=0,f=e.length;d<f;d++)a=e[d],l=a.value,a.tag&&(c=h[d],a.oneTime?(l=(o||n).$eval(l),a.html?U(c,Ke(l,!0)):c.data=r(l)):n._bindDir(a.descriptor,c,s,o));U(i,u)}}function Xt(e,t){for(var n,i,s,r=[],o=0,a=e.length;o<a;o++)s=e[o],n=Bt(s,t),i=n&&n.terminal||"SCRIPT"===s.tagName||!s.hasChildNodes()?null:Xt(s.childNodes,t),r.push(n,i);return r.length?Gt(r):null}function Gt(e){return function(t,n,i,s,r){for(var o,a,l,c=0,u=0,h=e.length;c<h;u++){o=n[u],a=e[c++],l=e[c++];var d=p(o.childNodes);a&&a(t,o,i,s,r),l&&l(t,d,i,s,r)}}}function Kt(e,t){var n=e.tagName.toLowerCase();if(!Ai.test(n)){var i=ve(t,"elementDirectives",n);return i?tn(e,n,"",t,i):void 0}}function Qt(e,t){var n=ce(e,t);if(n){var i=se(e),s={name:"component",ref:i,expression:n.id,def:Vr.component,modifiers:{literal:!n.dynamic}},r=function(e,t,n,r,o){i&&ke((r||e).$refs,i,null),e._bindDir(s,t,n,r,o)};return r.terminal=!0,r}}function Zt(e,t,n){if(null!==q(e,"v-pre"))return en;if(e.hasAttribute("v-else")){var i=e.previousElementSibling;if(i&&i.hasAttribute("v-if"))return en}for(var s,r,o,a,l,c,u,h,d,f,p=0,g=t.length;p<g;p++)s=t[p],r=s.name.replace(Yr,""),(l=r.match(Jr))&&(d=ve(n,"directives",l[1]),d&&d.terminal&&(!f||(d.priority||Kr)>f.priority)&&(f=d,u=s.name,a=sn(s.name),o=s.value,c=l[1],h=l[2]));return f?tn(e,c,o,n,f,u,h,a):void 0}function en(){}function tn(e,t,n,i,s,r,o,a){var l=S(n),c={name:t,arg:o,expression:l.expression,filters:l.filters,raw:n,attr:r,modifiers:a,def:s};"for"!==t&&"router-view"!==t||(c.ref=se(e));var u=function(e,t,n,i,s){c.ref&&ke((i||e).$refs,c.ref,null),e._bindDir(c,t,n,i,s)};return u.terminal=!0,u}function nn(e,t){function n(e,t,n){var i=n&&on(n),s=!i&&S(r);g.push({name:e,attr:o,raw:a,def:t,arg:c,modifiers:u,expression:s&&s.expression,filters:s&&s.filters,interp:n,hasOneTime:i})}for(var i,s,r,o,a,l,c,u,h,d,f,p=e.length,g=[];p--;)if(i=e[p],s=o=i.name,r=a=i.value,d=I(r),c=null,u=sn(s),s=s.replace(Yr,""),d)r=P(d),c=s,n("bind",Tr.bind,d),"class"===s&&Array.prototype.some.call(e,function(e){return":class"===e.name||"v-bind:class"===e.name})&&Ii('class="'+a+'": Do not mix mustache interpolation and v-bind for "class" on the same element. Use one or the other.',t);else if(Xr.test(s))u.literal=!zr.test(s),n("transition",Vr.transition);else if(Ur.test(s))c=s.replace(Ur,""),n("on",Tr.on);else if(zr.test(s))l=s.replace(zr,""),"style"===l||"class"===l?n(l,Vr[l]):(c=l,n("bind",Tr.bind));else if(f=s.match(Jr)){if(l=f[1],c=f[2],"else"===l)continue;h=ve(t,"directives",l,!0),h&&n(l,h)}if(g.length)return rn(g)}function sn(e){var t=Object.create(null),n=e.match(Yr);if(n)for(var i=n.length;i--;)t[n[i].slice(1)]=!0;return t}function rn(e){return function(t,n,i,s,r){for(var o=e.length;o--;)t._bindDir(e[o],n,i,s,r)}}function on(e){for(var t=e.length;t--;)if(e[t].oneTime)return!0}function an(e){return"SCRIPT"===e.tagName&&(!e.hasAttribute("type")||"text/javascript"===e.getAttribute("type"))}function ln(e,t){return t&&(t._containerAttrs=un(e)),ne(e)&&(e=Ke(e)),t&&(t._asComponent&&!t.template&&(t.template="<slot></slot>"),t.template&&(t._content=Z(e),e=cn(e,t))),ae(e)&&(z(ie("v-start",!0),e),e.appendChild(ie("v-end",!0))),e}function cn(e,t){var n=t.template,i=Ke(n,!0);if(i){var s=i.firstChild,r=s.tagName&&s.tagName.toLowerCase();return t.replace?(e===document.body&&Ii("You are mounting an instance with a template to <body>. This will replace <body> entirely. You should probably use `replace: false` here."),i.childNodes.length>1||1!==s.nodeType||"component"===r||ve(t,"components",r)||W(s,"is")||ve(t,"elementDirectives",r)||s.hasAttribute("v-for")||s.hasAttribute("v-if")?i:(t._replacerAttrs=un(s),hn(e,s),s)):(e.appendChild(i),e)}Ii("Invalid template option: "+n)}function un(e){if(1===e.nodeType&&e.hasAttributes())return p(e.attributes)}function hn(e,t){for(var n,i,s=e.attributes,r=s.length;r--;)n=s[r].name,i=s[r].value,t.hasAttribute(n)||Qr.test(n)?"class"===n&&!I(i)&&(i=i.trim())&&i.split(/\s+/).forEach(function(e){K(t,e)}):t.setAttribute(n,i)}function dn(e,t){if(t){for(var n,i,s=e._slotContents=Object.create(null),r=0,o=t.children.length;r<o;r++)n=t.children[r],(i=n.getAttribute("slot"))&&(s[i]||(s[i]=[])).push(n),H(n,"slot")&&Ii('The "slot" attribute must be static.',e.$parent);for(i in s)s[i]=fn(s[i],t);if(t.hasChildNodes()){var a=t.childNodes;if(1===a.length&&3===a[0].nodeType&&!a[0].data.trim())return;s["default"]=fn(t.childNodes,t)}}}function fn(e,t){var n=document.createDocumentFragment();e=p(e);for(var i=0,s=e.length;i<s;i++){var r=e[i];!ne(r)||r.hasAttribute("v-if")||r.hasAttribute("v-for")||(t.removeChild(r),r=Ke(r,!0)),n.appendChild(r)}return n}function pn(e){function t(){}function i(e,t){var n=new ze(t,e,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),ye.target&&n.depend(),n.value}}Object.defineProperty(e.prototype,"$data",{get:function(){return this._data},set:function(e){e!==this._data&&this._setData(e)}}),e.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},e.prototype._initProps=function(){var e=this.$options,t=e.el,n=e.props;n&&!t&&Ii("Props will not be compiled if no `el` option is provided at instantiation.",this),t=e.el=L(t),this._propsUnlinkFn=t&&1===t.nodeType&&n?Wt(this,t,n,this._scope):null},e.prototype._initData=function(){var e=this.$options.data,t=this._data=e?e():{};v(t)||(t={},Ii("data functions should return an object.",this));var i,s,r=this._props,o=Object.keys(t);for(i=o.length;i--;)s=o[i],r&&n(r,s)?Ii('Data field "'+s+'" is already defined as a prop. To provide default value for a prop, use the "default" prop option; if you want to pass prop values to an instantiation call, use the "propsData" option.',this):this._proxy(s);Ce(t,this)},e.prototype._setData=function(e){e=e||{};var t=this._data;this._data=e;var i,s,r;for(i=Object.keys(t),r=i.length;r--;)s=i[r],s in e||this._unproxy(s);for(i=Object.keys(e),r=i.length;r--;)s=i[r],n(this,s)||this._proxy(s);t.__ob__.removeVm(this),Ce(e,this),this._digest()},e.prototype._proxy=function(e){if(!s(e)){var t=this;Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return t._data[e]},set:function(n){t._data[e]=n}})}},e.prototype._unproxy=function(e){s(e)||delete this[e]},e.prototype._digest=function(){for(var e=0,t=this._watchers.length;e<t;e++)this._watchers[e].update(!0)},e.prototype._initComputed=function(){var e=this.$options.computed;if(e)for(var n in e){var s=e[n],r={enumerable:!0,configurable:!0};"function"==typeof s?(r.get=i(s,this),r.set=t):(r.get=s.get?s.cache!==!1?i(s.get,this):f(s.get,this):t,r.set=s.set?f(s.set,this):t),Object.defineProperty(this,n,r)}},e.prototype._initMethods=function(){var e=this.$options.methods;if(e)for(var t in e)this[t]=f(e[t],this)},e.prototype._initMeta=function(){var e=this.$options._meta;if(e)for(var t in e)ke(this,t,e[t])}}function gn(e){function t(e,t){for(var n,i,s,r=t.attributes,o=0,a=r.length;o<a;o++)n=r[o].name,eo.test(n)&&(n=n.replace(eo,""),i=r[o].value,He(i)&&(i+=".apply(this, $arguments)"),s=(e._scope||e._context).$eval(i,!0),s._fromParent=!0,e.$on(n.replace(eo),s))}function n(e,t,n){if(n){var s,r,o,a;for(r in n)if(s=n[r],Ln(s))for(o=0,a=s.length;o<a;o++)i(e,t,r,s[o]);else i(e,t,r,s)}}function i(e,t,n,s,r){var o=typeof s;if("function"===o)e[t](n,s,r);else if("string"===o){var a=e.$options.methods,l=a&&a[s];l?e[t](n,l,r):Ii('Unknown method: "'+s+'" when registering callback for '+t+': "'+n+'".',e)}else s&&"object"===o&&i(e,t,n,s.handler,s)}function s(){this._isAttached||(this._isAttached=!0,this.$children.forEach(r))}function r(e){!e._isAttached&&F(e.$el)&&e._callHook("attached")}function o(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(a))}function a(e){e._isAttached&&!F(e.$el)&&e._callHook("detached")}e.prototype._initEvents=function(){var e=this.$options;e._asComponent&&t(this,e.el),n(this,"$on",e.events),n(this,"$watch",e.watch)},e.prototype._initDOMHooks=function(){this.$on("hook:attached",s),this.$on("hook:detached",o)},e.prototype._callHook=function(e){this.$emit("pre-hook:"+e);var t=this.$options[e];if(t)for(var n=0,i=t.length;n<i;n++)t[n].call(this);this.$emit("hook:"+e)}}function mn(){}function vn(e,t,n,i,s,r){this.vm=t,this.el=n,this.descriptor=e,this.name=e.name,this.expression=e.expression,this.arg=e.arg,this.modifiers=e.modifiers,this.filters=e.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=i,this._scope=s,this._frag=r,this.el&&(this.el._vue_directives=this.el._vue_directives||[],this.el._vue_directives.push(this))}function yn(e){e.prototype._updateRef=function(e){var t=this.$options._ref;if(t){var n=(this._scope||this._context).$refs;e?n[t]===this&&(n[t]=null):n[t]=this}},e.prototype._compile=function(e){var t=this.$options,n=e;if(e=ln(e,t),this._initElement(e),1!==e.nodeType||null===q(e,"v-pre")){var i=this._context&&this._context.$options,s=Rt(e,t,i);dn(this,t._content);var r,o=this.constructor;t._linkerCachable&&(r=o.linker,r||(r=o.linker=Dt(e,t)));var a=s(this,e,this._scope),l=r?r(this,e):Dt(e,t)(this,e);this._unlinkFn=function(){a(),l(!0)},t.replace&&U(n,e),this._isCompiled=!0,this._callHook("compiled")}},e.prototype._initElement=function(e){ae(e)?(this._isFragment=!0,this.$el=this._fragmentStart=e.firstChild,this._fragmentEnd=e.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=e):this.$el=e,this.$el.__vue__=this,this._callHook("beforeCompile")},e.prototype._bindDir=function(e,t,n,i,s){this._directives.push(new vn(e,this,t,n,i,s))},e.prototype._destroy=function(e,t){if(this._isBeingDestroyed)return void(t||this._cleanup());var n,i,s=this,r=function(){!n||i||t||s._cleanup()};e&&this.$el&&(i=!0,this.$remove(function(){i=!1,r()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var o,a=this.$parent;for(a&&!a._isBeingDestroyed&&(a.$children.$remove(this),this._updateRef(!0)),o=this.$children.length;o--;)this.$children[o].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),o=this._watchers.length;o--;)this._watchers[o].teardown();this.$el&&(this.$el.__vue__=null),n=!0,r()},e.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data&&this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function _n(e){e.prototype._applyFilters=function(e,t,n,i){var s,r,o,a,l,c,u,h,d;for(c=0,u=n.length;c<u;c++)if(s=n[i?u-c-1:c],r=ve(this.$options,"filters",s.name,!0),r&&(r=i?r.write:r.read||r,"function"==typeof r)){if(o=i?[e,t]:[e],l=i?2:1,s.args)for(h=0,d=s.args.length;h<d;h++)a=s.args[h],o[h+l]=a.dynamic?this.$get(a.value):a.value;e=r.apply(this,o)}return e},e.prototype._resolveComponent=function(t,n){var i;if(i="function"==typeof t?t:ve(this.$options,"components",t,!0))if(i.options)n(i);else if(i.resolved)n(i.resolved);else if(i.requested)i.pendingCallbacks.push(n);else{i.requested=!0;var s=i.pendingCallbacks=[n];i.call(this,function(t){v(t)&&(t=e.extend(t)),i.resolved=t;for(var n=0,r=s.length;n<r;n++)s[n](t)},function(e){Ii("Failed to resolve async component"+("string"==typeof t?": "+t:"")+". "+(e?"\nReason: "+e:""))})}}}function bn(e){function n(e){return JSON.parse(JSON.stringify(e))}e.prototype.$get=function(e,t){var n=qe(e);if(n){if(t){var i=this;return function(){i.$arguments=p(arguments);var e=n.get.call(i,i);return i.$arguments=null,e}}try{return n.get.call(this,this)}catch(s){}}},e.prototype.$set=function(e,t){var n=qe(e,!0);n&&n.set&&n.set.call(this,this,t)},e.prototype.$delete=function(e){t(this._data,e)},e.prototype.$watch=function(e,t,n){var i,s=this;"string"==typeof e&&(i=S(e),e=i.expression);var r=new ze(s,e,t,{deep:n&&n.deep,sync:n&&n.sync,filters:i&&i.filters,user:!n||n.user!==!1});return n&&n.immediate&&t.call(s,r.value),function(){r.teardown()}},e.prototype.$eval=function(e,t){if(to.test(e)){var n=S(e),i=this.$get(n.expression,t);return n.filters?this._applyFilters(i,null,n.filters):i}return this.$get(e,t)},e.prototype.$interpolate=function(e){var t=I(e),n=this;return t?1===t.length?n.$eval(t[0].value)+"":t.map(function(e){return e.tag?n.$eval(e.value):e.value}).join(""):e},e.prototype.$log=function(e){var t=e?Pe(this._data,e):this._data;if(t&&(t=n(t)),!e){var i;for(i in this.$options.computed)t[i]=n(this[i]);if(this._props)for(i in this._props)t[i]=n(this[i])}}}function wn(e){function t(e,t,i,s,r,o){t=n(t);var a=!F(t),l=s===!1||a?r:o,c=!a&&!e._isAttached&&!F(e.$el);return e._isFragment?(re(e._fragmentStart,e._fragmentEnd,function(n){l(n,t,e)}),i&&i()):l(e.$el,t,e,i),c&&e._callHook("attached"),e}function n(e){return"string"==typeof e?document.querySelector(e):e}function i(e,t,n,i){t.appendChild(e),i&&i()}function s(e,t,n,i){R(e,t),i&&i()}function r(e,t,n){V(e),n&&n()}e.prototype.$nextTick=function(e){ti(e,this)},e.prototype.$appendTo=function(e,n,s){return t(this,e,n,s,i,A)},e.prototype.$prependTo=function(e,t,i){return e=n(e),e.hasChildNodes()?this.$before(e.firstChild,t,i):this.$appendTo(e,t,i),this},e.prototype.$before=function(e,n,i){return t(this,e,n,i,s,M)},e.prototype.$after=function(e,t,i){return e=n(e),e.nextSibling?this.$before(e.nextSibling,t,i):this.$appendTo(e.parentNode,t,i),this},e.prototype.$remove=function(e,t){if(!this.$el.parentNode)return e&&e();var n=this._isAttached&&F(this.$el);n||(t=!1);var i=this,s=function(){n&&i._callHook("detached"),e&&e()};if(this._isFragment)oe(this._fragmentStart,this._fragmentEnd,this,this._fragment,s);else{var o=t===!1?r:j;o(this.$el,this,s)}return this}}function xn(e){function t(e,t,i){var s=e.$parent;if(s&&i&&!n.test(t))for(;s;)s._eventsCount[t]=(s._eventsCount[t]||0)+i,s=s.$parent}e.prototype.$on=function(e,n){return(this._events[e]||(this._events[e]=[])).push(n),t(this,e,1),this},e.prototype.$once=function(e,t){function n(){i.$off(e,n),t.apply(this,arguments)}var i=this;return n.fn=t,this.$on(e,n),this},e.prototype.$off=function(e,n){var i;if(!arguments.length){if(this.$parent)for(e in this._events)i=this._events[e],i&&t(this,e,-i.length);return this._events={},this}if(i=this._events[e],!i)return this;if(1===arguments.length)return t(this,e,-i.length),this._events[e]=null,this;for(var s,r=i.length;r--;)if(s=i[r],s===n||s.fn===n){t(this,e,-1),i.splice(r,1);break}return this},e.prototype.$emit=function(e){var t="string"==typeof e;e=t?e:e.name;var n=this._events[e],i=t||!n;if(n){n=n.length>1?p(n):n;var s=t&&n.some(function(e){return e._fromParent});s&&(i=!1);for(var r=p(arguments,1),o=0,a=n.length;o<a;o++){var l=n[o],c=l.apply(this,r);c!==!0||s&&!l._fromParent||(i=!0)}}return i},e.prototype.$broadcast=function(e){var t="string"==typeof e;if(e=t?e:e.name,this._eventsCount[e]){var n=this.$children,i=p(arguments);t&&(i[0]={name:e,source:this});for(var s=0,r=n.length;s<r;s++){var o=n[s],a=o.$emit.apply(o,i);a&&o.$broadcast.apply(o,i)}return this}},e.prototype.$dispatch=function(e){var t=this.$emit.apply(this,arguments);if(t){var n=this.$parent,i=p(arguments);for(i[0]={name:e,source:this};n;)t=n.$emit.apply(n,i),n=t?n.$parent:null;return this}};var n=/^hook:/}function Cn(e){function t(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}e.prototype.$mount=function(e){return this._isCompiled?void Ii("$mount() should be called only once.",this):(e=L(e),e||(e=document.createElement("div")),this._compile(e),this._initDOMHooks(),F(this.$el)?(this._callHook("attached"),t.call(this)):this.$once("hook:attached",t),this)},e.prototype.$destroy=function(e,t){this._destroy(e,t)},e.prototype.$compile=function(e,t,n,i){return Dt(e,this.$options,!0)(this,e,t,n,i)}}function kn(e){this._init(e)}function Tn(e,t,n){return n=n?parseInt(n,10):0,t=o(t),"number"==typeof t?e.slice(n,n+t):e}function Sn(e,t,n){if(e=ro(e),null==t)return e;if("function"==typeof t)return e.filter(t);t=(""+t).toLowerCase();for(var i,s,r,o,a="in"===n?3:2,l=Array.prototype.concat.apply([],p(arguments,a)),c=[],u=0,h=e.length;u<h;u++)if(i=e[u],r=i&&i.$value||i,o=l.length){for(;o--;)if(s=l[o],"$key"===s&&On(i.$key,t)||On(Pe(r,s),t)){c.push(i);break}}else On(i,t)&&c.push(i);return c}function $n(e){function t(e,t,n){var s=i[n];return s&&("$key"!==s&&(m(e)&&"$value"in e&&(e=e.$value),m(t)&&"$value"in t&&(t=t.$value)),e=m(e)?Pe(e,s):e,t=m(t)?Pe(t,s):t),e===t?0:e>t?r:-r}var n=null,i=void 0;e=ro(e);var s=p(arguments,1),r=s[s.length-1];"number"==typeof r?(r=r<0?-1:1,s=s.length>1?s.slice(0,-1):s):r=1;var o=s[0];return o?("function"==typeof o?n=function(e,t){return o(e,t)*r}:(i=Array.prototype.concat.apply([],s),n=function(e,s,r){return r=r||0,r>=i.length-1?t(e,s,r):t(e,s,r)||n(e,s,r+1)}),e.slice().sort(n)):e}function On(e,t){var n;if(v(e)){var i=Object.keys(e);for(n=i.length;n--;)if(On(e[i[n]],t))return!0}else if(Ln(e)){for(n=e.length;n--;)if(On(e[n],t))return!0}else if(null!=e)return e.toString().toLowerCase().indexOf(t)>-1}function In(n){function i(e){return new Function("return function "+d(e)+" (options) { this._init(options) }")()}n.options={directives:Tr,elementDirectives:so,filters:ao,transitions:{},components:{},partials:{},replace:!0},n.util=Bi,n.config=Oi,n.set=e,n["delete"]=t,n.nextTick=ti,n.compiler=Zr,n.FragmentFactory=rt,n.internalDirectives=Vr,n.parsers={path:as,text:Ti,template:Fs,directive:_i,expression:ws},n.cid=0;var s=1;n.extend=function(e){e=e||{};var t=this,n=0===t.cid;if(n&&e._Ctor)return e._Ctor;var r=e.name||t.options.name;/^[a-zA-Z][\w-]*$/.test(r)||(Ii('Invalid component name: "'+r+'". Component names can only contain alphanumeric characaters and the hyphen.'),r=null);var o=i(r||"VueComponent");return o.prototype=Object.create(t.prototype),o.prototype.constructor=o,o.cid=s++,o.options=me(t.options,e),o["super"]=t,o.extend=t.extend,Oi._assetTypes.forEach(function(e){o[e]=t[e]}),r&&(o.options.components[r]=o),n&&(e._Ctor=o),o},n.use=function(e){if(!e.installed){var t=p(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):e.apply(null,t),e.installed=!0,this}},n.mixin=function(e){n.options=me(n.options,e)},Oi._assetTypes.forEach(function(e){n[e]=function(t,i){return i?("component"===e&&(Ai.test(t)||Mi.test(t))&&Ii("Do not use built-in or reserved HTML elements as component id: "+t),"component"===e&&v(i)&&(i.name||(i.name=t),i=n.extend(i)),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}}),g(n.transition,Ei)}var Pn=Object.prototype.hasOwnProperty,En=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Nn=/-(\w)/g,An=/([a-z\d])([A-Z])/g,Mn=/(?:^|[-_\/])(\w)/g,jn=Object.prototype.toString,Dn="[object Object]",Ln=Array.isArray,Fn="__proto__"in{},qn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Hn=qn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Wn=qn&&window.navigator.userAgent.toLowerCase(),Rn=Wn&&Wn.indexOf("trident")>0,Bn=Wn&&Wn.indexOf("msie 9.0")>0,Vn=Wn&&Wn.indexOf("android")>0,zn=Wn&&/(iphone|ipad|ipod|ios)/i.test(Wn),Un=zn&&Wn.match(/os ([\d_]+)/),Jn=Un&&Un[1].split("_"),Yn=Jn&&Number(Jn[0])>=9&&Number(Jn[1])>=3&&!window.indexedDB,Xn=void 0,Gn=void 0,Kn=void 0,Qn=void 0;if(qn&&!Bn){var Zn=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,ei=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Xn=Zn?"WebkitTransition":"transition",Gn=Zn?"webkitTransitionEnd":"transitionend",Kn=ei?"WebkitAnimation":"animation",Qn=ei?"webkitAnimationEnd":"animationend"}var ti=function(){function e(){i=!1;var e=n.slice(0);n=[];for(var t=0;t<e.length;t++)e[t]()}var t,n=[],i=!1;if("undefined"==typeof MutationObserver||Yn){var s=qn?window:"undefined"!=typeof global?global:{};t=s.setImmediate||setTimeout}else{var r=1,o=new MutationObserver(e),a=document.createTextNode(r);o.observe(a,{characterData:!0}),t=function(){r=(r+1)%2,a.data=r}}return function(s,r){var o=r?function(){s.call(r)}:s;n.push(o),i||(i=!0,t(e,0))}}(),ni=void 0;"undefined"!=typeof Set&&Set.toString().match(/native code/)?ni=Set:(ni=function(){this.set=Object.create(null)},ni.prototype.has=function(e){return void 0!==this.set[e]},ni.prototype.add=function(e){this.set[e]=1},ni.prototype.clear=function(){this.set=Object.create(null)});var ii=C.prototype;ii.put=function(e,t){var n,i=this.get(e,!0);return i||(this.size===this.limit&&(n=this.shift()),i={key:e},this._keymap[e]=i,this.tail?(this.tail.newer=i,i.older=this.tail):this.head=i,this.tail=i,this.size++),i.value=t,n},ii.shift=function(){var e=this.head;return e&&(this.head=this.head.newer,this.head.older=void 0,e.newer=e.older=void 0,this._keymap[e.key]=void 0,this.size--),e},ii.get=function(e,t){var n=this._keymap[e];if(void 0!==n)return n===this.tail?t?n:n.value:(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=void 0,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n,t?n:n.value)};var si,ri,oi,ai,li,ci,ui,hi,di,fi,pi,gi,mi=new C(1e3),vi=/[^\s'"]+|'[^']*'|"[^"]*"/g,yi=/^in$|^-?\d+/,_i=Object.freeze({parseDirective:S}),bi=/[-.*+?^${}()|[\]\/\\]/g,wi=void 0,xi=void 0,Ci=void 0,ki=/[^|]\|[^|]/,Ti=Object.freeze({compileRegex:O,parseText:I,tokensToExp:P}),Si=["{{","}}"],$i=["{{{","}}}"],Oi=Object.defineProperties({debug:!1,silent:!1,async:!0,warnExpressionErrors:!0,devtools:!0,_delimitersChanged:!0,_assetTypes:["component","directive","elementDirective","filter","transition","partial"],_propBindingModes:{ONE_WAY:0,TWO_WAY:1,ONE_TIME:2},_maxUpdateCount:100},{delimiters:{get:function(){return Si},set:function(e){Si=e,O()},configurable:!0,enumerable:!0},unsafeDelimiters:{get:function(){return $i},set:function(e){$i=e,O()},configurable:!0,enumerable:!0}}),Ii=void 0,Pi=void 0;!function(){var e="undefined"!=typeof console;Ii=function(t,n){e&&!Oi.silent},Pi=function(e){var t=e._isVue?e.$options.name:e.name;return t?" (found in component: <"+h(t)+">)":""}}();var Ei=Object.freeze({appendWithTransition:A,beforeWithTransition:M,removeWithTransition:j,applyTransition:D}),Ni=/^v-ref:/,Ai=/^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i,Mi=/^(slot|partial|component)$/i,ji=void 0;ji=function(e,t){return t.indexOf("-")>-1?e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:/HTMLUnknownElement/.test(e.toString())&&!/^(data|time|rtc|rb|details|dialog|summary)$/.test(t)};var Di=Oi.optionMergeStrategies=Object.create(null);Di.data=function(e,t,n){return n?e||t?function(){var i="function"==typeof t?t.call(n):t,s="function"==typeof e?e.call(n):void 0;return i?he(i,s):s}:void 0:t?"function"!=typeof t?(Ii('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):e?function(){return he(t.call(this),e.call(this))}:t:e},Di.el=function(e,t,n){if(!n&&t&&"function"!=typeof t)return void Ii('The "el" option should be a function that returns a per-instance value in component definitions.',n);var i=t||e;return n&&"function"==typeof i?i.call(n):i},Di.init=Di.created=Di.ready=Di.attached=Di.detached=Di.beforeCompile=Di.compiled=Di.beforeDestroy=Di.destroyed=Di.activate=function(e,t){return t?e?e.concat(t):Ln(t)?t:[t]:e},Oi._assetTypes.forEach(function(e){Di[e+"s"]=de}),Di.watch=Di.events=function(e,t){if(!t)return e;if(!e)return t;var n={};g(n,e);for(var i in t){var s=n[i],r=t[i];s&&!Ln(s)&&(s=[s]),n[i]=s?s.concat(r):[r]}return n},Di.props=Di.methods=Di.computed=function(e,t){if(!t)return e;if(!e)return t;var n=Object.create(null);return g(n,e),g(n,t),n};var Li=function(e,t){return void 0===t?e:t},Fi=0;ye.target=null,ye.prototype.addSub=function(e){this.subs.push(e)},ye.prototype.removeSub=function(e){this.subs.$remove(e)},ye.prototype.depend=function(){ye.target.addDep(this)},ye.prototype.notify=function(){for(var e=p(this.subs),t=0,n=e.length;t<n;t++)e[t].update()};var qi=Array.prototype,Hi=Object.create(qi);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=qi[e];y(Hi,e,function(){for(var n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];var s,r=t.apply(this,i),o=this.__ob__;switch(e){case"push":s=i;break;case"unshift":s=i;break;case"splice":s=i.slice(2)}return s&&o.observeArray(s),o.dep.notify(),r})}),y(qi,"$set",function(e,t){return e>=this.length&&(this.length=Number(e)+1),this.splice(e,1,t)[0]}),y(qi,"$remove",function(e){if(this.length){var t=b(this,e);return t>-1?this.splice(t,1):void 0}});var Wi=Object.getOwnPropertyNames(Hi),Ri=!0;be.prototype.walk=function(e){for(var t=Object.keys(e),n=0,i=t.length;n<i;n++)this.convert(t[n],e[t[n]])},be.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ce(e[t])},be.prototype.convert=function(e,t){ke(this.value,e,t)},be.prototype.addVm=function(e){(this.vms||(this.vms=[])).push(e)},be.prototype.removeVm=function(e){this.vms.$remove(e)};var Bi=Object.freeze({defineReactive:ke,set:e,del:t,hasOwn:n,isLiteral:i,isReserved:s,_toString:r,toNumber:o,toBoolean:a,stripQuotes:l,camelize:c,hyphenate:h,classify:d,bind:f,toArray:p,extend:g,isObject:m,isPlainObject:v,def:y,debounce:_,indexOf:b,cancellable:w,looseEqual:x,isArray:Ln,hasProto:Fn,inBrowser:qn,devtools:Hn,isIE:Rn,isIE9:Bn,isAndroid:Vn,isIos:zn,iosVersionMatch:Un,iosVersion:Jn,hasMutationObserverBug:Yn,get transitionProp(){return Xn},get transitionEndEvent(){return Gn},get animationProp(){return Kn},get animationEndEvent(){return Qn},nextTick:ti,get _Set(){return ni},query:L,inDoc:F,getAttr:q,getBindAttr:H,hasBindAttr:W,before:R,after:B,remove:V,prepend:z,replace:U,on:J,off:Y,setClass:G,addClass:K,removeClass:Q,extractContent:Z,trimNode:ee,isTemplate:ne,createAnchor:ie,findRef:se,mapNodeRange:re,removeNodeRange:oe,isFragment:ae,getOuterHTML:le,mergeOptions:me,resolveAsset:ve,checkComponentAttr:ce,commonTagRE:Ai,reservedTagRE:Mi,get warn(){return Ii}}),Vi=0,zi=new C(1e3),Ui=0,Ji=1,Yi=2,Xi=3,Gi=0,Ki=1,Qi=2,Zi=3,es=4,ts=5,ns=6,is=7,ss=8,rs=[];rs[Gi]={ws:[Gi],ident:[Zi,Ui],"[":[es],eof:[is]},rs[Ki]={ws:[Ki],".":[Qi],"[":[es],eof:[is]},rs[Qi]={ws:[Qi],ident:[Zi,Ui]},rs[Zi]={ident:[Zi,Ui],0:[Zi,Ui],number:[Zi,Ui],ws:[Ki,Ji],".":[Qi,Ji],"[":[es,Ji],eof:[is,Ji]},rs[es]={"'":[ts,Ui],'"':[ns,Ui],"[":[es,Yi],"]":[Ki,Xi],eof:ss,"else":[es,Ui]},rs[ts]={"'":[es,Ui],eof:ss,"else":[ts,Ui]},rs[ns]={'"':[es,Ui],eof:ss,"else":[ns,Ui]};var os;os=function(e,t){Ii('You are setting a non-existent path "'+e.raw+'" on a vm instance. Consider pre-initializing the property with the "data" option for more reliable reactivity and better performance.',t)};var as=Object.freeze({parsePath:Ie,getPath:Pe,setPath:Ee}),ls=new C(1e3),cs="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",us=new RegExp("^("+cs.replace(/,/g,"\\b|")+"\\b)"),hs="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,protected,static,interface,private,public",ds=new RegExp("^("+hs.replace(/,/g,"\\b|")+"\\b)"),fs=/\s/g,ps=/\n/g,gs=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`)|new |typeof |void /g,ms=/"(\d+)"/g,vs=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,ys=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,_s=/^(?:true|false|null|undefined|Infinity|NaN)$/,bs=[],ws=Object.freeze({parseExpression:qe,isSimplePath:He}),xs=[],Cs=[],ks={},Ts={},Ss=!1,$s=0;ze.prototype.get=function(){this.beforeGet();var e,t=this.scope||this.vm;try{e=this.getter.call(t,t)}catch(n){Oi.warnExpressionErrors&&Ii('Error when evaluating expression "'+this.expression+'": '+n.toString(),this.vm)}return this.deep&&Ue(e),this.preProcess&&(e=this.preProcess(e)),this.filters&&(e=t._applyFilters(e,null,this.filters,!1)),this.postProcess&&(e=this.postProcess(e)),this.afterGet(),e},ze.prototype.set=function(e){var t=this.scope||this.vm;this.filters&&(e=t._applyFilters(e,this.value,this.filters,!0));try{this.setter.call(t,t,e)}catch(n){Oi.warnExpressionErrors&&Ii('Error when evaluating setter "'+this.expression+'": '+n.toString(),this.vm)}var i=t.$forContext;if(i&&i.alias===this.expression){if(i.filters)return void Ii("It seems you are using two-way binding on a v-for alias ("+this.expression+"), and the v-for has filters. This will not work properly. Either remove the filters or use an array of objects and bind to object properties instead.",this.vm);i._withLock(function(){t.$key?i.rawValue[t.$key]=e:i.rawValue.$set(t.$index,e)})}},ze.prototype.beforeGet=function(){ye.target=this},ze.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ze.prototype.afterGet=function(){ye.target=null;for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ze.prototype.update=function(e){this.lazy?this.dirty=!0:this.sync||!Oi.async?this.run():(this.shallow=this.queued?!!e&&this.shallow:!!e,this.queued=!0,Oi.debug&&(this.prevError=new Error("[vue] async stack trace")),Ve(this))},ze.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||(m(e)||this.deep)&&!this.shallow){var t=this.value;this.value=e;var n=this.prevError;if(Oi.debug&&n){this.prevError=null;try{this.cb.call(this.vm,e,t)}catch(i){throw ti(function(){throw n},0),i}}else this.cb.call(this.vm,e,t)}this.queued=this.shallow=!1}},ze.prototype.evaluate=function(){var e=ye.target;this.value=this.get(),this.dirty=!1,ye.target=e},ze.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ze.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||this.vm._watchers.$remove(this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var Os=new ni,Is={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(e){this.el[this.attr]=r(e)}},Ps=new C(1e3),Es=new C(1e3),Ns={efault:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};Ns.td=Ns.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],Ns.option=Ns.optgroup=[1,'<select multiple="multiple">',"</select>"],Ns.thead=Ns.tbody=Ns.colgroup=Ns.caption=Ns.tfoot=[1,"<table>","</table>"],Ns.g=Ns.defs=Ns.symbol=Ns.use=Ns.image=Ns.text=Ns.circle=Ns.ellipse=Ns.line=Ns.path=Ns.polygon=Ns.polyline=Ns.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var As=/<([\w:-]+)/,Ms=/&#?\w+?;/,js=/<!--/,Ds=function(){if(qn){var e=document.createElement("div");return e.innerHTML="<template>1</template>",!e.cloneNode(!0).firstChild.innerHTML}return!1}(),Ls=function(){if(qn){var e=document.createElement("textarea");return e.placeholder="t","t"===e.cloneNode(!0).value}return!1}(),Fs=Object.freeze({cloneNode:Ge,parseTemplate:Ke}),qs={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=ie("v-html"),U(this.el,this.anchor))},update:function(e){e=r(e),this.nodes?this.swap(e):this.el.innerHTML=e},swap:function(e){for(var t=this.nodes.length;t--;)V(this.nodes[t]);var n=Ke(e,!0,!0);this.nodes=p(n.childNodes),R(n,this.anchor)}};Qe.prototype.callHook=function(e){var t,n;for(t=0,n=this.childFrags.length;t<n;t++)this.childFrags[t].callHook(e);for(t=0,n=this.children.length;t<n;t++)e(this.children[t])},Qe.prototype.beforeRemove=function(){var e,t;for(e=0,t=this.childFrags.length;e<t;e++)this.childFrags[e].beforeRemove(!1);for(e=0,t=this.children.length;e<t;e++)this.children[e].$destroy(!1,!0);var n=this.unlink.dirs;for(e=0,t=n.length;e<t;e++)n[e]._watcher&&n[e]._watcher.teardown()},Qe.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.node.__v_frag=null,this.unlink()};var Hs=new C(5e3);rt.prototype.create=function(e,t,n){var i=Ge(this.template);return new Qe(this.linker,this.vm,i,e,t,n)};var Ws=700,Rs=800,Bs=850,Vs=1100,zs=1500,Us=1500,Js=1750,Ys=2100,Xs=2200,Gs=2300,Ks=0,Qs={priority:Xs,terminal:!0,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){var e=this.expression.match(/(.*) (?:in|of) (.*)/);if(e){var t=e[1].match(/\((.*),(.*)\)/);t?(this.iterator=t[1].trim(),this.alias=t[2].trim()):this.alias=e[1].trim(),this.expression=e[2]}if(!this.alias)return void Ii('Invalid v-for expression "'+this.descriptor.raw+'": alias is required.',this.vm);this.id="__v-for__"+ ++Ks;var n=this.el.tagName;this.isOption=("OPTION"===n||"OPTGROUP"===n)&&"SELECT"===this.el.parentNode.tagName,this.start=ie("v-for-start"),this.end=ie("v-for-end"),U(this.el,this.end),R(this.start,this.end),this.cache=Object.create(null),this.factory=new rt(this.vm,this.el)},update:function(e){this.diff(e),this.updateRef(),this.updateModel()},diff:function(e){var t,i,s,r,o,a,l=e[0],c=this.fromObject=m(l)&&n(l,"$key")&&n(l,"$value"),u=this.params.trackBy,h=this.frags,d=this.frags=new Array(e.length),f=this.alias,p=this.iterator,g=this.start,v=this.end,y=F(g),_=!h;for(t=0,i=e.length;t<i;t++)l=e[t],r=c?l.$key:null,o=c?l.$value:l,a=!m(o),s=!_&&this.getCachedFrag(o,t,r),s?(s.reused=!0,s.scope.$index=t,r&&(s.scope.$key=r),p&&(s.scope[p]=null!==r?r:t),(u||c||a)&&_e(function(){s.scope[f]=o})):(s=this.create(o,f,t,r),s.fresh=!_),d[t]=s,_&&s.before(v);if(!_){var b=0,w=h.length-d.length;for(this.vm._vForRemoving=!0,t=0,i=h.length;t<i;t++)s=h[t],s.reused||(this.deleteCachedFrag(s),this.remove(s,b++,w,y));this.vm._vForRemoving=!1,b&&(this.vm._watchers=this.vm._watchers.filter(function(e){return e.active}));var x,C,k,T=0;for(t=0,i=d.length;t<i;t++)s=d[t],x=d[t-1],C=x?x.staggerCb?x.staggerAnchor:x.end||x.node:g,s.reused&&!s.staggerCb?(k=ot(s,g,this.id),k===x||k&&ot(k,g,this.id)===x||this.move(s,C)):this.insert(s,T++,C,y),s.reused=s.fresh=!1}},create:function(e,t,n,i){var s=this._host,r=this._scope||this.vm,o=Object.create(r);o.$refs=Object.create(r.$refs),o.$els=Object.create(r.$els),o.$parent=r,o.$forContext=this,_e(function(){ke(o,t,e)}),ke(o,"$index",n),i?ke(o,"$key",i):o.$key&&y(o,"$key",null),this.iterator&&ke(o,this.iterator,null!==i?i:n);var a=this.factory.create(s,o,this._frag);return a.forId=this.id,this.cacheFrag(e,a,n,i),a},updateRef:function(){var e=this.descriptor.ref;if(e){var t,n=(this._scope||this.vm).$refs;this.fromObject?(t={},this.frags.forEach(function(e){t[e.scope.$key]=at(e)})):t=this.frags.map(at),n[e]=t}},updateModel:function(){if(this.isOption){var e=this.start.parentNode,t=e&&e.__v_model;t&&t.forceUpdate()}},insert:function(e,t,n,i){e.staggerCb&&(e.staggerCb.cancel(),e.staggerCb=null);var s=this.getStagger(e,t,null,"enter");if(i&&s){var r=e.staggerAnchor;r||(r=e.staggerAnchor=ie("stagger-anchor"),r.__v_frag=e),B(r,n);var o=e.staggerCb=w(function(){e.staggerCb=null,e.before(r),V(r)});setTimeout(o,s)}else{var a=n.nextSibling;a||(B(this.end,n),a=this.end),e.before(a)}},remove:function(e,t,n,i){if(e.staggerCb)return e.staggerCb.cancel(),void(e.staggerCb=null);var s=this.getStagger(e,t,n,"leave");if(i&&s){var r=e.staggerCb=w(function(){e.staggerCb=null,e.remove()});setTimeout(r,s)}else e.remove()},move:function(e,t){t.nextSibling||this.end.parentNode.appendChild(this.end),e.before(t.nextSibling,!1)},cacheFrag:function(e,t,i,s){var r,o=this.params.trackBy,a=this.cache,l=!m(e);s||o||l?(r=ct(i,s,e,o),a[r]?"$index"!==o&&this.warnDuplicate(e):a[r]=t):(r=this.id,n(e,r)?null===e[r]?e[r]=t:this.warnDuplicate(e):Object.isExtensible(e)?y(e,r,t):Ii("Frozen v-for objects cannot be automatically tracked, make sure to provide a track-by key.")),t.raw=e},getCachedFrag:function(e,t,n){var i,s=this.params.trackBy,r=!m(e);if(n||s||r){var o=ct(t,n,e,s);i=this.cache[o]}else i=e[this.id];return i&&(i.reused||i.fresh)&&this.warnDuplicate(e),i},deleteCachedFrag:function(e){var t=e.raw,i=this.params.trackBy,s=e.scope,r=s.$index,o=n(s,"$key")&&s.$key,a=!m(t);if(i||o||a){var l=ct(r,o,t,i);this.cache[l]=null}else t[this.id]=null,e.raw=null},getStagger:function(e,t,n,i){i+="Stagger";var s=e.node.__v_trans,r=s&&s.hooks,o=r&&(r[i]||r.stagger);return o?o.call(e,t,n):t*parseInt(this.params[i]||this.params.stagger,10)},_preProcess:function(e){return this.rawValue=e,e},_postProcess:function(e){if(Ln(e))return e;if(v(e)){for(var t,n=Object.keys(e),i=n.length,s=new Array(i);i--;)t=n[i],s[i]={$key:t,$value:e[t]};return s}return"number"!=typeof e||isNaN(e)||(e=lt(e)),e||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var e,t=this.frags.length;t--;)e=this.frags[t],this.deleteCachedFrag(e),e.destroy()}};Qs.warnDuplicate=function(e){Ii('Duplicate value found in v-for="'+this.descriptor.raw+'": '+JSON.stringify(e)+'. Use track-by="$index" if you are expecting duplicate values.',this.vm)};var Zs={priority:Ys,terminal:!0,bind:function(){var e=this.el;if(e.__vue__)Ii('v-if="'+this.expression+'" cannot be used on an instance root element.',this.vm),this.invalid=!0;else{var t=e.nextElementSibling;t&&null!==q(t,"v-else")&&(V(t),this.elseEl=t),this.anchor=ie("v-if"),U(e,this.anchor)}},update:function(e){this.invalid||(e?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.factory||(this.factory=new rt(this.vm,this.el)),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseEl&&!this.elseFrag&&(this.elseFactory||(this.elseFactory=new rt(this.elseEl._context||this.vm,this.elseEl)),this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy(),this.elseFrag&&this.elseFrag.destroy()}},er={bind:function(){var e=this.el.nextElementSibling;e&&null!==q(e,"v-else")&&(this.elseEl=e)},update:function(e){this.apply(this.el,e),this.elseEl&&this.apply(this.elseEl,!e)},apply:function(e,t){function n(){e.style.display=t?"":"none"}F(e)?D(e,t?1:-1,n,this.vm):n()}},tr={bind:function(){var e=this,t=this.el,n="range"===t.type,i=this.params.lazy,s=this.params.number,r=this.params.debounce,a=!1;if(Vn||n||(this.on("compositionstart",function(){a=!0}),this.on("compositionend",function(){a=!1,i||e.listener()})),this.focused=!1,n||i||(this.on("focus",function(){e.focused=!0}),this.on("blur",function(){e.focused=!1,e._frag&&!e._frag.inserted||e.rawListener()})),this.listener=this.rawListener=function(){if(!a&&e._bound){var i=s||n?o(t.value):t.value;e.set(i),ti(function(){e._bound&&!e.focused&&e.update(e._watcher.value)})}},r&&(this.listener=_(this.listener,r)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery){var l=jQuery.fn.on?"on":"bind";jQuery(t)[l]("change",this.rawListener),i||jQuery(t)[l]("input",this.listener)}else this.on("change",this.rawListener),i||this.on("input",this.listener);!i&&Bn&&(this.on("cut",function(){ti(e.listener)}),this.on("keyup",function(t){46!==t.keyCode&&8!==t.keyCode||e.listener()})),(t.hasAttribute("value")||"TEXTAREA"===t.tagName&&t.value.trim())&&(this.afterBind=this.listener)},update:function(e){e=r(e),e!==this.el.value&&(this.el.value=e)},unbind:function(){var e=this.el;if(this.hasjQuery){var t=jQuery.fn.off?"off":"unbind";jQuery(e)[t]("change",this.listener),jQuery(e)[t]("input",this.listener)}}},nr={bind:function(){var e=this,t=this.el;this.getValue=function(){if(t.hasOwnProperty("_value"))return t._value;var n=t.value;return e.params.number&&(n=o(n)),n},this.listener=function(){e.set(e.getValue())},this.on("change",this.listener),t.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(e){this.el.checked=x(e,this.getValue())}},ir={bind:function(){var e=this,t=this,n=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var i=this.multiple=n.hasAttribute("multiple");this.listener=function(){var e=ut(n,i);e=t.params.number?Ln(e)?e.map(o):o(e):e,t.set(e)},this.on("change",this.listener);var s=ut(n,i,!0);(i&&s.length||!i&&null!==s)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",function(){ti(e.forceUpdate)}),F(n)||ti(this.forceUpdate)},update:function(e){var t=this.el;t.selectedIndex=-1;for(var n,i,s=this.multiple&&Ln(e),r=t.options,o=r.length;o--;)n=r[o],i=n.hasOwnProperty("_value")?n._value:n.value,n.selected=s?ht(e,i)>-1:x(e,i)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},sr={bind:function(){function e(){var e=n.checked;return e&&n.hasOwnProperty("_trueValue")?n._trueValue:!e&&n.hasOwnProperty("_falseValue")?n._falseValue:e}var t=this,n=this.el;this.getValue=function(){return n.hasOwnProperty("_value")?n._value:t.params.number?o(n.value):n.value},this.listener=function(){var i=t._watcher.value;if(Ln(i)){var s=t.getValue();n.checked?b(i,s)<0&&i.push(s):i.$remove(s)}else t.set(e())},this.on("change",this.listener),n.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(e){var t=this.el;Ln(e)?t.checked=b(e,this.getValue())>-1:t.hasOwnProperty("_trueValue")?t.checked=x(e,t._trueValue):t.checked=!!e}},rr={text:tr,radio:nr,select:ir,checkbox:sr},or={priority:Rs,twoWay:!0,handlers:rr,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite&&Ii('It seems you are using a read-only filter with v-model="'+this.descriptor.raw+'". You might want to use a two-way filter to ensure correct behavior.',this.vm);var e,t=this.el,n=t.tagName;if("INPUT"===n)e=rr[t.type]||rr.text;else if("SELECT"===n)e=rr.select;else{if("TEXTAREA"!==n)return void Ii("v-model does not support element type: "+n,this.vm);e=rr.text}t.__v_model=this,e.bind.call(this),this.update=e.update,this._unbind=e.unbind},checkFilters:function(){var e=this.filters;if(e)for(var t=e.length;t--;){var n=ve(this.vm.$options,"filters",e[t].name);("function"==typeof n||n.read)&&(this.hasRead=!0),n.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},ar={esc:27,tab:9,enter:13,space:32,"delete":[8,46],up:38,left:37,right:39,down:40},lr={priority:Ws,acceptStatement:!0,keyCodes:ar,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var e=this;this.iframeBind=function(){J(e.el.contentWindow,e.arg,e.handler,e.modifiers.capture)},this.on("load",this.iframeBind)}},update:function(e){if(this.descriptor.raw||(e=function(){}),"function"!=typeof e)return void Ii("v-on:"+this.arg+'="'+this.expression+'" expects a function value, got '+e,this.vm);this.modifiers.stop&&(e=ft(e)),this.modifiers.prevent&&(e=pt(e)),this.modifiers.self&&(e=gt(e));var t=Object.keys(this.modifiers).filter(function(e){return"stop"!==e&&"prevent"!==e&&"self"!==e&&"capture"!==e});t.length&&(e=dt(e,t)),this.reset(),this.handler=e,this.iframeBind?this.iframeBind():J(this.el,this.arg,this.handler,this.modifiers.capture)},reset:function(){var e=this.iframeBind?this.el.contentWindow:this.el;this.handler&&Y(e,this.arg,this.handler)},unbind:function(){this.reset()}},cr=["-webkit-","-moz-","-ms-"],ur=["Webkit","Moz","ms"],hr=/!important;?$/,dr=Object.create(null),fr=null,pr={deep:!0,update:function(e){"string"==typeof e?this.el.style.cssText=e:Ln(e)?this.handleObject(e.reduce(g,{})):this.handleObject(e||{})},handleObject:function(e){var t,n,i=this.cache||(this.cache={});for(t in i)t in e||(this.handleSingle(t,null),delete i[t]);for(t in e)n=e[t],n!==i[t]&&(i[t]=n,this.handleSingle(t,n))},handleSingle:function(e,t){if(e=mt(e))if(null!=t&&(t+=""),t){var n=hr.test(t)?"important":"";n?(Ii("It's probably a bad idea to use !important with inline rules. This feature will be deprecated in a future version of Vue."),t=t.replace(hr,"").trim(),this.el.style.setProperty(e.kebab,t,n)):this.el.style[e.camel]=t}else this.el.style[e.camel]=""}},gr="http://www.w3.org/1999/xlink",mr=/^xlink:/,vr=/^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,yr=/^(?:value|checked|selected|muted)$/,_r=/^(?:draggable|contenteditable|spellcheck)$/,br={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},wr={priority:Bs,bind:function(){var e=this.arg,t=this.el.tagName;e||(this.deep=!0);var n=this.descriptor,i=n.interp;if(i){n.hasOneTime&&(this.expression=P(i,this._scope||this.vm)),(vr.test(e)||"name"===e&&("PARTIAL"===t||"SLOT"===t))&&(Ii(e+'="'+n.raw+'": attribute interpolation is not allowed in Vue.js directives and special attributes.',this.vm),this.el.removeAttribute(e),this.invalid=!0);var s=e+'="'+n.raw+'": ';"src"===e&&Ii(s+'interpolation in "src" attribute will cause a 404 request. Use v-bind:src instead.',this.vm),"style"===e&&Ii(s+'interpolation in "style" attribute will cause the attribute to be discarded in Internet Explorer. Use v-bind:style instead.',this.vm)}},update:function(e){if(!this.invalid){var t=this.arg;this.arg?this.handleSingle(t,e):this.handleObject(e||{})}},handleObject:pr.handleObject,handleSingle:function(e,t){var n=this.el,i=this.descriptor.interp;if(this.modifiers.camel&&(e=c(e)),!i&&yr.test(e)&&e in n){var s="value"===e&&null==t?"":t;n[e]!==s&&(n[e]=s)}var r=br[e];if(!i&&r){n[r]=t;var o=n.__v_model;o&&o.listener()}return"value"===e&&"TEXTAREA"===n.tagName?void n.removeAttribute(e):void(_r.test(e)?n.setAttribute(e,t?"true":"false"):null!=t&&t!==!1?"class"===e?(n.__v_trans&&(t+=" "+n.__v_trans.id+"-transition"),G(n,t)):mr.test(e)?n.setAttributeNS(gr,e,t===!0?"":t):n.setAttribute(e,t===!0?"":t):n.removeAttribute(e))}},xr={priority:zs,bind:function(){if(this.arg){var e=this.id=c(this.arg),t=(this._scope||this.vm).$els;n(t,e)?t[e]=this.el:ke(t,e,this.el)}},unbind:function(){var e=(this._scope||this.vm).$els;e[this.id]===this.el&&(e[this.id]=null)}},Cr={bind:function(){Ii("v-ref:"+this.arg+" must be used on a child component. Found on <"+this.el.tagName.toLowerCase()+">.",this.vm)}},kr={bind:function(){var e=this.el;this.vm.$once("pre-hook:compiled",function(){e.removeAttribute("v-cloak")})}},Tr={text:Is,html:qs,"for":Qs,"if":Zs,show:er,model:or,on:lr,bind:wr,el:xr,ref:Cr,cloak:kr},Sr={deep:!0,update:function(e){e?"string"==typeof e?this.setClass(e.trim().split(/\s+/)):this.setClass(yt(e)):this.cleanup()},setClass:function(e){this.cleanup(e);for(var t=0,n=e.length;t<n;t++){var i=e[t];i&&_t(this.el,i,K)}this.prevKeys=e},cleanup:function(e){var t=this.prevKeys;if(t)for(var n=t.length;n--;){var i=t[n];(!e||e.indexOf(i)<0)&&_t(this.el,i,Q)}}},$r={priority:Us,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__?Ii('cannot mount component "'+this.expression+'" on already mounted element: '+this.el):(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=Z(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=ie("v-component"),U(this.el,this.anchor),this.el.removeAttribute("is"),this.el.removeAttribute(":is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+h(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(e){this.literal||this.setComponent(e)},setComponent:function(e,t){if(this.invalidatePending(),e){var n=this;this.resolveComponent(e,function(){n.mountComponent(t)})}else this.unbuild(!0),this.remove(this.childVM,t),this.childVM=null},resolveComponent:function(e,t){var n=this;this.pendingComponentCb=w(function(i){n.ComponentName=i.options.name||("string"==typeof e?e:null),n.Component=i,t()}),this.vm._resolveComponent(e,this.pendingComponentCb)},mountComponent:function(e){this.unbuild(!0);var t=this,n=this.Component.options.activate,i=this.getCached(),s=this.build();n&&!i?(this.waitingFor=s,bt(n,s,function(){t.waitingFor===s&&(t.waitingFor=null,t.transition(s,e))})):(i&&s._updateRef(),this.transition(s,e))},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(e){var t=this.getCached();if(t)return t;if(this.Component){var n={name:this.ComponentName,el:Ge(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};e&&g(n,e);var i=new this.Component(n);return this.keepAlive&&(this.cache[this.Component.cid]=i),this.el.hasAttribute("transition")&&i._isFragment&&Ii("Transitions will not work on a fragment instance. Template: "+i.$options.template,i),i}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(e){this.waitingFor&&(this.keepAlive||this.waitingFor.$destroy(),this.waitingFor=null);var t=this.childVM;return!t||this.keepAlive?void(t&&(t._inactive=!0,t._updateRef(!0))):void t.$destroy(!1,e)},remove:function(e,t){var n=this.keepAlive;if(e){this.pendingRemovals++,this.pendingRemovalCb=t;var i=this;e.$remove(function(){i.pendingRemovals--,n||e._cleanup(),!i.pendingRemovals&&i.pendingRemovalCb&&(i.pendingRemovalCb(),i.pendingRemovalCb=null)})}else t&&t()},transition:function(e,t){var n=this,i=this.childVM;switch(i&&(i._inactive=!0),e._inactive=!1,this.childVM=e,n.params.transitionMode){case"in-out":e.$before(n.anchor,function(){n.remove(i,t)});break;case"out-in":n.remove(i,function(){e.$before(n.anchor,t)});break;default:n.remove(i),e.$before(n.anchor,t)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var e in this.cache)this.cache[e].$destroy();this.cache=null}}},Or=Oi._propBindingModes,Ir={},Pr=/^[$_a-zA-Z]+[\w$]*$/,Er=/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*|\[[^\[\]]+\])*$/,Nr=Oi._propBindingModes,Ar={bind:function(){var e=this.vm,t=e._context,n=this.descriptor.prop,i=n.path,s=n.parentPath,r=n.mode===Nr.TWO_WAY,o=this.parentWatcher=new ze(t,s,function(t){Tt(e,n,t)},{twoWay:r,filters:n.filters,scope:this._scope});if(kt(e,n,o.value),r){var a=this;e.$once("pre-hook:created",function(){a.childWatcher=new ze(e,i,function(e){o.set(e)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},Mr=[],jr=!1,Dr="transition",Lr="animation",Fr=Xn+"Duration",qr=Kn+"Duration",Hr=qn&&window.requestAnimationFrame,Wr=Hr?function(e){Hr(function(){Hr(e)})}:function(e){setTimeout(e,50)},Rr=Mt.prototype;Rr.enter=function(e,t){this.cancelPending(),this.callHook("beforeEnter"),this.cb=t,K(this.el,this.enterClass),e(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,Nt(this.enterNextTick))},Rr.enterNextTick=function(){var e=this;this.justEntered=!0,Wr(function(){e.justEntered=!1});var t=this.enterDone,n=this.getCssTransitionType(this.enterClass);this.pendingJsCb?n===Dr&&Q(this.el,this.enterClass):n===Dr?(Q(this.el,this.enterClass),this.setupCssCb(Gn,t)):n===Lr?this.setupCssCb(Qn,t):t()},Rr.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,Q(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},Rr.leave=function(e,t){this.cancelPending(),this.callHook("beforeLeave"),this.op=e,this.cb=t,K(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():Nt(this.leaveNextTick)))},Rr.leaveNextTick=function(){var e=this.getCssTransitionType(this.leaveClass);if(e){var t=e===Dr?Gn:Qn;this.setupCssCb(t,this.leaveDone)}else this.leaveDone()},Rr.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),Q(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},Rr.cancelPending=function(){this.op=this.cb=null;var e=!1;this.pendingCssCb&&(e=!0,Y(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(e=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),e&&(Q(this.el,this.enterClass),Q(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},Rr.callHook=function(e){this.hooks&&this.hooks[e]&&this.hooks[e].call(this.vm,this.el)},Rr.callHookWithCb=function(e){var t=this.hooks&&this.hooks[e];t&&(t.length>1&&(this.pendingJsCb=w(this[e+"Done"])),t.call(this.vm,this.el,this.pendingJsCb))},Rr.getCssTransitionType=function(e){if(!(!Gn||document.hidden||this.hooks&&this.hooks.css===!1||jt(this.el))){var t=this.type||this.typeCache[e];if(t)return t;var n=this.el.style,i=window.getComputedStyle(this.el),s=n[Fr]||i[Fr];if(s&&"0s"!==s)t=Dr;else{var r=n[qr]||i[qr];r&&"0s"!==r&&(t=Lr)}return t&&(this.typeCache[e]=t),t}},Rr.setupCssCb=function(e,t){this.pendingCssEvent=e;var n=this,i=this.el,s=this.pendingCssCb=function(r){r.target===i&&(Y(i,e,s),n.pendingCssEvent=n.pendingCssCb=null,!n.pendingJsCb&&t&&t())};J(i,e,s)};var Br={priority:Vs,update:function(e,t){var n=this.el,i=ve(this.vm.$options,"transitions",e);e=e||"v",t=t||"v",n.__v_trans=new Mt(n,e,i,this.vm),Q(n,t+"-transition"),K(n,e+"-transition")}},Vr={style:pr,"class":Sr,component:$r,prop:Ar,transition:Br},zr=/^v-bind:|^:/,Ur=/^v-on:|^@/,Jr=/^v-([^:]+)(?:$|:(.*)$)/,Yr=/\.[^\.]+/g,Xr=/^(v-bind:|:)?transition$/,Gr=1e3,Kr=2e3;en.terminal=!0;var Qr=/[^\w\-:\.]/,Zr=Object.freeze({compile:Dt,compileAndLinkProps:Wt,compileRoot:Rt,transclude:ln,resolveSlots:dn}),eo=/^v-on:|^@/;vn.prototype._bind=function(){var e=this.name,t=this.descriptor;if(("cloak"!==e||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var n=t.attr||"v-"+e;this.el.removeAttribute(n)}var i=t.def;if("function"==typeof i?this.update=i:g(this,i),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(t.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var s=this;this.update?this._update=function(e,t){s._locked||s.update(e,t)}:this._update=mn;var r=this._preProcess?f(this._preProcess,this):null,o=this._postProcess?f(this._postProcess,this):null,a=this._watcher=new ze(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:r,postProcess:o,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},vn.prototype._setupParams=function(){if(this.params){var e=this.params;this.params=Object.create(null);for(var t,n,i,s=e.length;s--;)t=h(e[s]),i=c(t),n=H(this.el,t),null!=n?this._setupParamWatcher(i,n):(n=q(this.el,t),null!=n&&(this.params[i]=""===n||n))}},vn.prototype._setupParamWatcher=function(e,t){var n=this,i=!1,s=(this._scope||this.vm).$watch(t,function(t,s){if(n.params[e]=t,i){var r=n.paramWatchers&&n.paramWatchers[e];r&&r.call(n,t,s)}else i=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(s)},vn.prototype._checkStatement=function(){var e=this.expression;if(e&&this.acceptStatement&&!He(e)){var t=qe(e).get,n=this._scope||this.vm,i=function(e){n.$event=e,t.call(n,n),n.$event=null};return this.filters&&(i=n._applyFilters(i,null,this.filters)),this.update(i),!0}},vn.prototype.set=function(e){this.twoWay?this._withLock(function(){this._watcher.set(e)}):Ii("Directive.set() can only be used inside twoWaydirectives.")},vn.prototype._withLock=function(e){var t=this;t._locked=!0,e.call(t),ti(function(){t._locked=!1})},vn.prototype.on=function(e,t,n){J(this.el,e,t,n),(this._listeners||(this._listeners=[])).push([e,t])},vn.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var e,t=this._listeners;if(t)for(e=t.length;e--;)Y(this.el,t[e][0],t[e][1]);var n=this._paramUnwatchFns;if(n)for(e=n.length;e--;)n[e]();this.el&&this.el._vue_directives.$remove(this),this.vm=this.el=this._watcher=this._listeners=null}};var to=/[^|]\|[^|]/;Te(kn),pn(kn),gn(kn),yn(kn),_n(kn),bn(kn),wn(kn),xn(kn),Cn(kn);var no={priority:Gs,params:["name"],bind:function(){var e=this.params.name||"default",t=this.vm._slotContents&&this.vm._slotContents[e];t&&t.hasChildNodes()?this.compile(t.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(e,t,n){if(e&&t){if(this.el.hasChildNodes()&&1===e.childNodes.length&&1===e.childNodes[0].nodeType&&e.childNodes[0].hasAttribute("v-if")){var i=document.createElement("template");i.setAttribute("v-else",""),i.innerHTML=this.el.innerHTML,i._context=this.vm,e.appendChild(i)}var s=n?n._scope:this._scope;this.unlink=t.$compile(e,n,s,this._frag)}e?U(this.el,e):V(this.el)},fallback:function(){this.compile(Z(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},io={priority:Js,params:["name"],paramWatchers:{name:function(e){Zs.remove.call(this),e&&this.insert(e)}},bind:function(){this.anchor=ie("v-partial"),U(this.el,this.anchor),this.insert(this.params.name)},insert:function(e){var t=ve(this.vm.$options,"partials",e,!0);t&&(this.factory=new rt(this.vm,t),Zs.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},so={slot:no,partial:io},ro=Qs._postProcess,oo=/(\d{3})(?=\d)/g,ao={orderBy:$n,filterBy:Sn,limitBy:Tn,json:{read:function(e,t){return"string"==typeof e?e:JSON.stringify(e,null,arguments.length>1?t:2)},write:function(e){try{return JSON.parse(e)}catch(t){return e}}},capitalize:function(e){return e||0===e?(e=e.toString(),e.charAt(0).toUpperCase()+e.slice(1)):""},uppercase:function(e){return e||0===e?e.toString().toUpperCase():""},lowercase:function(e){return e||0===e?e.toString().toLowerCase():""},currency:function(e,t,n){if(e=parseFloat(e),!isFinite(e)||!e&&0!==e)return"";t=null!=t?t:"$",n=null!=n?n:2;var i=Math.abs(e).toFixed(n),s=n?i.slice(0,-1-n):i,r=s.length%3,o=r>0?s.slice(0,r)+(s.length>3?",":""):"",a=n?i.slice(-1-n):"",l=e<0?"-":"";return l+t+o+s.slice(r).replace(oo,"$1,")+a},pluralize:function(e){var t=p(arguments,1),n=t.length;if(n>1){var i=e%10-1;return i in t?t[i]:t[n-1]}return t[0]+(1===e?"":"s")},debounce:function(e,t){if(e)return t||(t=300),_(e,t)}};return In(kn),kn.version="1.0.26",setTimeout(function(){Oi.devtools&&(Hn?Hn.emit("init",kn):qn&&/Chrome\/\d+/.test(window.navigator.userAgent))},0),kn}),!function(){"use strict";function e(){var e={parent:document.body,version:"1.0.11",defaultOkLabel:"Ok",okLabel:"Ok",defaultCancelLabel:"Cancel",cancelLabel:"Cancel",defaultMaxLogItems:2,maxLogItems:2,promptValue:"",promptPlaceholder:"",closeLogOnClick:!1,closeLogOnClickDefault:!1,delay:5e3,defaultDelay:5e3,logContainerClass:"alertify-logs",logContainerDefaultClass:"alertify-logs",dialogs:{buttons:{holder:"<nav>{{buttons}}</nav>",ok:"<button class='ok' tabindex='1'>{{ok}}</button>",cancel:"<button class='cancel' tabindex='2'>{{cancel}}</button>"},input:"<input type='text'>",message:"<p class='msg'>{{message}}</p>",log:"<div class='{{class}}'>{{message}}</div>"},defaultDialogs:{buttons:{holder:"<nav>{{buttons}}</nav>",ok:"<button class='ok' tabindex='1'>{{ok}}</button>",cancel:"<button class='cancel' tabindex='2'>{{cancel}}</button>"},input:"<input type='text'>",message:"<p class='msg'>{{message}}</p>",log:"<div class='{{class}}'>{{message}}</div>"},build:function(e){var t=this.dialogs.buttons.ok,n="<div class='dialog'><div>"+this.dialogs.message.replace("{{message}}",e.message);return"confirm"!==e.type&&"prompt"!==e.type||(t=this.dialogs.buttons.cancel+this.dialogs.buttons.ok),"prompt"===e.type&&(n+=this.dialogs.input),n=(n+this.dialogs.buttons.holder+"</div></div>").replace("{{buttons}}",t).replace("{{ok}}",this.okLabel).replace("{{cancel}}",this.cancelLabel)},setCloseLogOnClick:function(e){this.closeLogOnClick=!!e},close:function(e,t){this.closeLogOnClick&&e.addEventListener("click",function(){n(e)}),t=t&&!isNaN(+t)?+t:this.delay,0>t?n(e):t>0&&setTimeout(function(){n(e)},t)},dialog:function(e,t,n,i){return this.setup({type:t,message:e,onOkay:n,onCancel:i})},log:function(e,t,n){var i=document.querySelectorAll(".alertify-logs > div");if(i){var s=i.length-this.maxLogItems;if(s>=0)for(var r=0,o=s+1;o>r;r++)this.close(i[r],-1)}this.notify(e,t,n)},setLogPosition:function(e){this.logContainerClass="alertify-logs "+e},setupLogContainer:function(){var e=document.querySelector(".alertify-logs"),t=this.logContainerClass;return e||(e=document.createElement("div"),e.className=t,this.parent.appendChild(e)),e.className!==t&&(e.className=t),e},notify:function(t,n,i){var s=this.setupLogContainer(),r=document.createElement("div");r.className=n||"default",e.logTemplateMethod?r.innerHTML=e.logTemplateMethod(t):r.innerHTML=t,"function"==typeof i&&r.addEventListener("click",i),s.appendChild(r),setTimeout(function(){r.className+=" show"},10),this.close(r,this.delay)},setup:function(e){function t(t){"function"!=typeof t&&(t=function(){}),s&&s.addEventListener("click",function(s){e.onOkay&&"function"==typeof e.onOkay&&(o?e.onOkay(o.value,s):e.onOkay(s)),t(o?{buttonClicked:"ok",inputValue:o.value,event:s}:{buttonClicked:"ok",event:s}),n(i)}),r&&r.addEventListener("click",function(s){e.onCancel&&"function"==typeof e.onCancel&&e.onCancel(s),t({buttonClicked:"cancel",event:s}),n(i)}),o&&o.addEventListener("keyup",function(e){13===e.which&&s.click()})}var i=document.createElement("div");i.className="alertify hide",i.innerHTML=this.build(e);var s=i.querySelector(".ok"),r=i.querySelector(".cancel"),o=i.querySelector("input"),a=i.querySelector("label");o&&("string"==typeof this.promptPlaceholder&&(a?a.textContent=this.promptPlaceholder:o.placeholder=this.promptPlaceholder),"string"==typeof this.promptValue&&(o.value=this.promptValue));var l;return"function"==typeof Promise?l=new Promise(t):t(),this.parent.appendChild(i),setTimeout(function(){i.classList.remove("hide"),o&&e.type&&"prompt"===e.type?(o.select(),o.focus()):s&&s.focus()},100),l},okBtn:function(e){return this.okLabel=e,this},setDelay:function(e){return e=e||0,this.delay=isNaN(e)?this.defaultDelay:parseInt(e,10),this},cancelBtn:function(e){return this.cancelLabel=e,this},setMaxLogItems:function(e){this.maxLogItems=parseInt(e||this.defaultMaxLogItems)},theme:function(e){switch(e.toLowerCase()){case"bootstrap":this.dialogs.buttons.ok="<button class='ok btn btn-primary' tabindex='1'>{{ok}}</button>",this.dialogs.buttons.cancel="<button class='cancel btn btn-default' tabindex='2'>{{cancel}}</button>",this.dialogs.input="<input type='text' class='form-control'>";break;case"purecss":this.dialogs.buttons.ok="<button class='ok pure-button' tabindex='1'>{{ok}}</button>",this.dialogs.buttons.cancel="<button class='cancel pure-button' tabindex='2'>{{cancel}}</button>";break;case"mdl":case"material-design-light":this.dialogs.buttons.ok="<button class='ok mdl-button mdl-js-button mdl-js-ripple-effect' tabindex='1'>{{ok}}</button>",this.dialogs.buttons.cancel="<button class='cancel mdl-button mdl-js-button mdl-js-ripple-effect' tabindex='2'>{{cancel}}</button>",this.dialogs.input="<div class='mdl-textfield mdl-js-textfield'><input class='mdl-textfield__input'><label class='md-textfield__label'></label></div>";break;case"angular-material":this.dialogs.buttons.ok="<button class='ok md-primary md-button' tabindex='1'>{{ok}}</button>",this.dialogs.buttons.cancel="<button class='cancel md-button' tabindex='2'>{{cancel}}</button>",this.dialogs.input="<div layout='column'><md-input-container md-no-float><input type='text'></md-input-container></div>";break;case"default":default:this.dialogs.buttons.ok=this.defaultDialogs.buttons.ok,this.dialogs.buttons.cancel=this.defaultDialogs.buttons.cancel,this.dialogs.input=this.defaultDialogs.input}},reset:function(){this.parent=document.body,this.theme("default"),this.okBtn(this.defaultOkLabel),this.cancelBtn(this.defaultCancelLabel),this.setMaxLogItems(),this.promptValue="",this.promptPlaceholder="",this.delay=this.defaultDelay,this.setCloseLogOnClick(this.closeLogOnClickDefault),this.setLogPosition("bottom left"),this.logTemplateMethod=null},injectCSS:function(){if(!document.querySelector("#alertifyCSS")){var e=document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",t.id="alertifyCSS",t.innerHTML=".alertify-logs>*{padding:12px 24px;color:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.2);border-radius:1px}.alertify-logs>*,.alertify-logs>.default{background:rgba(0,0,0,.8)}.alertify-logs>.error{background:rgba(244,67,54,.8)}.alertify-logs>.success{background:rgba(76,175,80,.9)}.alertify{position:fixed;background-color:rgba(0,0,0,.3);left:0;right:0;top:0;bottom:0;width:100%;height:100%;z-index:1}.alertify.hide{opacity:0;pointer-events:none}.alertify,.alertify.show{box-sizing:border-box;transition:all .33s cubic-bezier(.25,.8,.25,1)}.alertify,.alertify *{box-sizing:border-box}.alertify .dialog{padding:12px}.alertify .alert,.alertify .dialog{width:100%;margin:0 auto;position:relative;top:50%;transform:translateY(-50%)}.alertify .alert>*,.alertify .dialog>*{width:400px;max-width:95%;margin:0 auto;text-align:center;padding:12px;background:#fff;box-shadow:0 2px 4px -1px rgba(0,0,0,.14),0 4px 5px 0 rgba(0,0,0,.098),0 1px 10px 0 rgba(0,0,0,.084)}.alertify .alert .msg,.alertify .dialog .msg{padding:12px;margin-bottom:12px;margin:0;text-align:left}.alertify .alert input:not(.form-control),.alertify .dialog input:not(.form-control){margin-bottom:15px;width:100%;font-size:100%;padding:12px}.alertify .alert input:not(.form-control):focus,.alertify .dialog input:not(.form-control):focus{outline-offset:-2px}.alertify .alert nav,.alertify .dialog nav{text-align:right}.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button),.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button){background:transparent;box-sizing:border-box;color:rgba(0,0,0,.87);position:relative;outline:0;border:0;display:inline-block;-ms-flex-align:center;-ms-grid-row-align:center;align-items:center;padding:0 6px;margin:6px 8px;line-height:36px;min-height:36px;white-space:nowrap;min-width:88px;text-align:center;text-transform:uppercase;font-size:14px;text-decoration:none;cursor:pointer;border:1px solid transparent;border-radius:2px}.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):active,.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):hover,.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):active,.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):hover{background-color:rgba(0,0,0,.05)}.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):focus,.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):focus{border:1px solid rgba(0,0,0,.1)}.alertify .alert nav button.btn,.alertify .dialog nav button.btn{margin:6px 4px}.alertify-logs{position:fixed;z-index:1}.alertify-logs.bottom,.alertify-logs:not(.top){bottom:16px}.alertify-logs.left,.alertify-logs:not(.right){left:16px}.alertify-logs.left>*,.alertify-logs:not(.right)>*{float:left;transform:translateZ(0);height:auto}.alertify-logs.left>.show,.alertify-logs:not(.right)>.show{left:0}.alertify-logs.left>*,.alertify-logs.left>.hide,.alertify-logs:not(.right)>*,.alertify-logs:not(.right)>.hide{left:-110%}.alertify-logs.right{right:16px}.alertify-logs.right>*{float:right;transform:translateZ(0)}.alertify-logs.right>.show{right:0;opacity:1}.alertify-logs.right>*,.alertify-logs.right>.hide{right:-110%;opacity:0}.alertify-logs.top{top:0}.alertify-logs>*{box-sizing:border-box;transition:all .4s cubic-bezier(.25,.8,.25,1);position:relative;clear:both;backface-visibility:hidden;perspective:1000;max-height:0;margin:0;padding:0;overflow:hidden;opacity:0;pointer-events:none}.alertify-logs>.show{margin-top:12px;opacity:1;max-height:1000px;padding:12px;pointer-events:auto}",e.insertBefore(t,e.firstChild)}},removeCSS:function(){var e=document.querySelector("#alertifyCSS");e&&e.parentNode&&e.parentNode.removeChild(e)}};return e.injectCSS(),{_$$alertify:e,parent:function(t){e.parent=t},reset:function(){return e.reset(),this},alert:function(t,n,i){return e.dialog(t,"alert",n,i)||this},confirm:function(t,n,i){return e.dialog(t,"confirm",n,i)||this},prompt:function(t,n,i){return e.dialog(t,"prompt",n,i)||this},log:function(t,n){return e.log(t,"default",n),this},theme:function(t){return e.theme(t),this},success:function(t,n){return e.log(t,"success",n),this},error:function(t,n){return e.log(t,"error",n),this},cancelBtn:function(t){return e.cancelBtn(t),this},okBtn:function(t){return e.okBtn(t),this},delay:function(t){return e.setDelay(t),this},placeholder:function(t){return e.promptPlaceholder=t,this},defaultValue:function(t){return e.promptValue=t,this},maxLogItems:function(t){return e.setMaxLogItems(t),this},closeLogOnClick:function(t){return e.setCloseLogOnClick(!!t),this},logPosition:function(t){return e.setLogPosition(t||""),this},setLogTemplate:function(t){return e.logTemplateMethod=t,this},clearLogs:function(){return e.setupLogContainer().innerHTML="",this},version:e.version}}var t=500,n=function(e){if(e){var n=function(){e&&e.parentNode&&e.parentNode.removeChild(e)};e.classList.remove("show"),e.classList.add("hide"),e.addEventListener("transitionend",n),setTimeout(n,t)}};if("undefined"!=typeof module&&module&&module.exports){module.exports=function(){return new e};var i=new e;for(var s in i)module.exports[s]=i[s]}else"function"==typeof define&&define.amd?define(function(){return new e}):window.alertify=new e}(),function(){var e,t,n,i,s,r={}.hasOwnProperty,o=function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};i=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,s,r,o;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:this.escapeExpression(e.label),title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),r=e.childNodes,o=[],i=0,s=r.length;i<s;i++)n=r[i],o.push(this.add_option(n,t,e.disabled));return o},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:n===!0?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e.prototype.escapeExpression=function(e){var t,n;return null==e||e===!1?"":/[\&\<\>\"\'\`]/.test(e)?(t={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},n=/&(?!\w+;)|[\<\>\"\'\`]/g,e.replace(n,function(e){return t[e]||"&amp;"})):e},e}(),i.select_to_array=function(e){var t,n,s,r,o;for(n=new i,o=e.childNodes,s=0,r=o.length;s<r;s++)t=o[s],n.add_node(t);return n.parsed},t=function(){function e(t,n){this.form_field=t,this.options=null!=n?n:{},e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){var e=this;return this.click_test_action=function(t){return e.test_active_click(t)},this.activate_action=function(t){return e.activate_field(t)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+e.group_label+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},e.prototype.input_blur=function(e){var t=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return t.blur_test()},100)},e.prototype.results_option_build=function(e){var t,n,i,s,r,o,a;for(t="",s=0,a=this.results_data,r=0,o=a.length;r<o&&(n=a[r],i="",i=n.group?this.result_add_group(n):this.result_add_option(n),""!==i&&(s++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(s>=this.max_shown_results));r++);return t},e.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),n=document.createElement("li"),n.className=t.join(" "),n.style.cssText=e.style,n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.search_text,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&e.active_options>0?(t=[],t.push("group-result"),e.classes&&t.push(e.classes),n=document.createElement("li"),n.className=t.join(" "),n.innerHTML=e.search_text,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,n,i,s;for(i=this.results_data,s=[],t=0,n=i.length;t<n;t++)e=i[t],e.selected?s.push(e.selected=!1):s.push(void 0);return s},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(){var e,t,n,i,s,r,o,a,l,c,u,h;for(this.no_results_clear(),i=0,r=this.get_search_text(),e=r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),l=new RegExp(e,"i"),n=this.get_search_regex(e),h=this.results_data,c=0,u=h.length;c<u;c++)t=h[c],t.search_match=!1,s=null,this.include_option_in_results(t)&&(t.group&&(t.group_match=!1,t.active_options=0),null!=t.group_array_index&&this.results_data[t.group_array_index]&&(s=this.results_data[t.group_array_index],0===s.active_options&&s.search_match&&(i+=1),s.active_options+=1),t.search_text=t.group?t.label:t.html,t.group&&!this.group_search||(t.search_match=this.search_string_match(t.search_text,n),t.search_match&&!t.group&&(i+=1),t.search_match?(r.length&&(o=t.search_text.search(l),a=t.search_text.substr(0,o+r.length)+"</em>"+t.search_text.substr(o+r.length),t.search_text=a.substr(0,o)+"<em>"+a.substr(o)),null!=s&&(s.group_match=!0)):null!=t.group_array_index&&this.results_data[t.group_array_index].search_match&&(t.search_match=!0)));return this.result_clear_highlight(),i<1&&r.length?(this.update_results_content(""),this.no_results(r)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,n;return t=this.search_contains?"":"^",n=this.case_sensitive_search?"":"i",new RegExp(t+e,n)},e.prototype.search_string_match=function(e,t){var n,i,s,r;if(t.test(e))return!0;if(this.enable_split_word_search&&(e.indexOf(" ")>=0||0===e.indexOf("["))&&(i=e.replace(/\[|\]/g,"").split(" "),i.length))for(s=0,r=i.length;s<r;s++)if(n=i[s],t.test(n))return!0},e.prototype.choices_count=function(){var e,t,n,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,i=this.form_field.options,t=0,n=i.length;t<n;t++)e=i[t],e.selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keyup_checker=function(e){var t,n;switch(t=null!=(n=e.which)?n:e.keyCode,this.search_field_scale(),t){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(e.preventDefault(),this.results_showing)return this.result_select(e);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:case 18:break;default:return this.results_search()}},e.prototype.clipboard_event_checker=function(e){var t=this;return setTimeout(function(){return t.results_search()},50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:(t=document.createElement("div"),t.appendChild(e),t.innerHTML)},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),e=jQuery,e.fn.extend({chosen:function(i){return t.browser_is_supported()?this.each(function(t){var s,r;return s=e(this),r=s.data("chosen"),"destroy"===i?void(r instanceof n&&r.destroy()):void(r instanceof n||s.data("chosen",new n(this,i)))}):this}}),n=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return o(n,t),n.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},n.prototype.set_up_html=function(){var t,n;return t=["chosen-container"],t.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),n={"class":t.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",n),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){var e=this;return this.container.bind("touchstart.chosen",function(t){return e.container_mousedown(t),t.preventDefault()}),this.container.bind("touchend.chosen",function(t){return e.container_mouseup(t),t.preventDefault()}),this.container.bind("mousedown.chosen",function(t){e.container_mousedown(t)}),this.container.bind("mouseup.chosen",function(t){e.container_mouseup(t)}),this.container.bind("mouseenter.chosen",function(t){e.mouse_enter(t)}),this.container.bind("mouseleave.chosen",function(t){e.mouse_leave(t)}),this.search_results.bind("mouseup.chosen",function(t){e.search_results_mouseup(t)}),this.search_results.bind("mouseover.chosen",function(t){e.search_results_mouseover(t)}),this.search_results.bind("mouseout.chosen",function(t){e.search_results_mouseout(t)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(t){e.search_results_mousewheel(t)}),this.search_results.bind("touchstart.chosen",function(t){e.search_results_touchstart(t)}),this.search_results.bind("touchmove.chosen",function(t){e.search_results_touchmove(t)}),this.search_results.bind("touchend.chosen",function(t){e.search_results_touchend(t)}),this.form_field_jq.bind("chosen:updated.chosen",function(t){e.results_update_field(t)}),this.form_field_jq.bind("chosen:activate.chosen",function(t){e.activate_field(t)}),this.form_field_jq.bind("chosen:open.chosen",function(t){e.container_mousedown(t)}),this.form_field_jq.bind("chosen:close.chosen",function(t){e.input_blur(t)}),this.search_field.bind("blur.chosen",function(t){e.input_blur(t)}),this.search_field.bind("keyup.chosen",function(t){e.keyup_checker(t)}),this.search_field.bind("keydown.chosen",function(t){e.keydown_checker(t)}),this.search_field.bind("focus.chosen",function(t){e.input_focus(t)}),this.search_field.bind("cut.chosen",function(t){e.clipboard_event_checker(t)}),this.search_field.bind("paste.chosen",function(t){e.clipboard_event_checker(t)}),this.is_multiple?this.search_choices.bind("click.chosen",function(t){e.choices_click(t)}):this.container.bind("click.chosen",function(e){e.preventDefault()})},n.prototype.destroy=function(){return e(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},n.prototype.container_mousedown=function(t){if(!this.is_disabled&&(t&&"mousedown"===t.type&&!this.results_showing&&t.preventDefault(),null==t||!e(t.target).hasClass("search-choice-close")))return this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},n.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},n.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t=40*t),this.search_results.scrollTop(t+this.search_results.scrollTop())},n.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return e(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},n.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(t){var n;return n=e(t.target).closest(".chosen-container"),n.length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(e){var t,n,i,s,r;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),r=this.search_results.scrollTop(),s=i+r,n=this.result_highlight.position().top+this.search_results.scrollTop(),t=n+this.result_highlight.outerHeight(),t>=s)return this.search_results.scrollTop(t-i>0?t-i:0);if(n<r)return this.search_results.scrollTop(n)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(e){return this.search_results.html(e)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},n.prototype.set_label_behavior=function(){var t=this;if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.bind("click.chosen",function(e){return t.is_multiple?t.container_mousedown(e):t.activate_field()})},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first(),n.length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},n.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},n.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result"))return this.result_clear_highlight()},n.prototype.choice_build=function(t){var n,i,s=this;return n=e("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?n.addClass("search-choice-disabled"):(i=e("<a />",{"class":"search-choice-close","data-option-array-index":t.array_index}),i.bind("click.chosen",function(e){return s.choice_destroy_link_click(e)}),n.append(i)),this.search_container.before(n)},n.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},n.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),n=this.results_data[t[0].getAttribute("data-option-array-index")],n.selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),(e.metaKey||e.ctrlKey)&&this.is_multiple||this.results_hide(),this.show_search_field_default(),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},n.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_text=function(){return e("<div/>").text(e.trim(this.search_field.val())).html()},n.prototype.winnow_results_set_highlight=function(){var e,t;if(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),e=t.length?t.first():this.search_results.find(".active-result").first(),null!=e)return this.result_do_highlight(e)},n.prototype.no_results=function(t){var n;return n=e('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),n.find("span").first().html(t),this.search_results.append(n),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result"),e.length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last(),e.length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.keydown_checker=function(e){var t,n;switch(t=null!=(n=e.which)?n:e.keyCode,this.search_field_scale(),8!==t&&this.pending_backstroke&&this.clear_backstroke(),t){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},n.prototype.search_field_scale=function(){var t,n,i,s,r,o,a,l,c;if(this.is_multiple){for(i=0,a=0,r="position:absolute; left: -1000px; top: -1000px; display:none;",o=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],l=0,c=o.length;l<c;l++)s=o[l],r+=s+":"+this.search_field.css(s)+";";return t=e("<div />",{style:r}),t.text(this.search_field.val()),e("body").append(t),a=t.width()+25,t.remove(),n=this.container.outerWidth(),a>n-10&&(a=n-10),this.search_field.css({width:a+"px"})}},n}(t)}.call(this),function(e){var t={init:function(n){var i=e.extend({items:1,itemsOnPage:1,pages:0,displayedPages:5,edges:2,currentPage:0,hrefTextPrefix:"#page-",hrefTextSuffix:"",prevText:"Prev",nextText:"Next",ellipseText:"&hellip;",ellipsePageSet:!0,cssStyle:"light-theme",listStyle:"",labelMap:[],selectOnClick:!0,nextAtFront:!1,invertPageOrder:!1,useStartEdge:!0,useEndEdge:!0,onPageClick:function(e,t){},onInit:function(){}},n||{}),s=this;return i.pages=i.pages?i.pages:Math.ceil(i.items/i.itemsOnPage)?Math.ceil(i.items/i.itemsOnPage):1,i.currentPage?i.currentPage=i.currentPage-1:i.currentPage=i.invertPageOrder?i.pages-1:0,i.halfDisplayed=i.displayedPages/2,this.each(function(){s.addClass(i.cssStyle+" simple-pagination").data("pagination",i),t._draw.call(s)}),i.onInit(),this},selectPage:function(e){return t._selectPage.call(this,e-1),this},prevPage:function(){var e=this.data("pagination");return e.invertPageOrder?e.currentPage<e.pages-1&&t._selectPage.call(this,e.currentPage+1):e.currentPage>0&&t._selectPage.call(this,e.currentPage-1),this},nextPage:function(){var e=this.data("pagination");return e.invertPageOrder?e.currentPage>0&&t._selectPage.call(this,e.currentPage-1):e.currentPage<e.pages-1&&t._selectPage.call(this,e.currentPage+1),this},getPagesCount:function(){return this.data("pagination").pages},setPagesCount:function(e){this.data("pagination").pages=e},getCurrentPage:function(){return this.data("pagination").currentPage+1},destroy:function(){return this.empty(),this},drawPage:function(e){var n=this.data("pagination");return n.currentPage=e-1,this.data("pagination",n),t._draw.call(this),this},redraw:function(){return t._draw.call(this),this},disable:function(){var e=this.data("pagination");return e.disabled=!0,this.data("pagination",e),t._draw.call(this),this},enable:function(){var e=this.data("pagination");return e.disabled=!1,this.data("pagination",e),t._draw.call(this),this},updateItems:function(e){var n=this.data("pagination");n.items=e,n.pages=t._getPages(n),this.data("pagination",n),t._draw.call(this)},updateItemsOnPage:function(e){var n=this.data("pagination");return n.itemsOnPage=e,n.pages=t._getPages(n),this.data("pagination",n),t._selectPage.call(this,0),this},getItemsOnPage:function(){return this.data("pagination").itemsOnPage},_draw:function(){var n,i,s=this.data("pagination"),r=t._getInterval(s);t.destroy.call(this),i="function"==typeof this.prop?this.prop("tagName"):this.attr("tagName");var o="UL"===i?this:e("<ul"+(s.listStyle?' class="'+s.listStyle+'"':"")+"></ul>").appendTo(this);if(s.prevText&&t._appendItem.call(this,s.invertPageOrder?s.currentPage+1:s.currentPage-1,{text:s.prevText,classes:"prev"}),s.nextText&&s.nextAtFront&&t._appendItem.call(this,s.invertPageOrder?s.currentPage-1:s.currentPage+1,{text:s.nextText,classes:"next"}),s.invertPageOrder){if(r.end<s.pages&&s.edges>0){if(s.useStartEdge){var a=Math.max(s.pages-s.edges,r.end);for(n=s.pages-1;n>=a;n--)t._appendItem.call(this,n)}s.pages-s.edges>r.end&&s.pages-s.edges-r.end!=1?o.append('<li class="disabled"><span class="ellipse">'+s.ellipseText+"</span></li>"):s.pages-s.edges-r.end==1&&t._appendItem.call(this,r.end)}}else if(r.start>0&&s.edges>0){if(s.useStartEdge){var l=Math.min(s.edges,r.start);for(n=0;n<l;n++)t._appendItem.call(this,n)}s.edges<r.start&&r.start-s.edges!=1?o.append('<li class="disabled"><span class="ellipse">'+s.ellipseText+"</span></li>"):r.start-s.edges==1&&t._appendItem.call(this,s.edges)}if(s.invertPageOrder)for(n=r.end-1;n>=r.start;n--)t._appendItem.call(this,n);else for(n=r.start;n<r.end;n++)t._appendItem.call(this,n);if(s.invertPageOrder){if(r.start>0&&s.edges>0&&(s.edges<r.start&&r.start-s.edges!=1?o.append('<li class="disabled"><span class="ellipse">'+s.ellipseText+"</span></li>"):r.start-s.edges==1&&t._appendItem.call(this,s.edges),s.useEndEdge)){var l=Math.min(s.edges,r.start);for(n=l-1;n>=0;n--)t._appendItem.call(this,n)}}else if(r.end<s.pages&&s.edges>0&&(s.pages-s.edges>r.end&&s.pages-s.edges-r.end!=1?o.append('<li class="disabled"><span class="ellipse">'+s.ellipseText+"</span></li>"):s.pages-s.edges-r.end==1&&t._appendItem.call(this,r.end),s.useEndEdge)){var a=Math.max(s.pages-s.edges,r.end);for(n=a;n<s.pages;n++)t._appendItem.call(this,n)}s.nextText&&!s.nextAtFront&&t._appendItem.call(this,s.invertPageOrder?s.currentPage-1:s.currentPage+1,{text:s.nextText,classes:"next"}),s.ellipsePageSet&&!s.disabled&&t._ellipseClick.call(this,o)},_getPages:function(e){var t=Math.ceil(e.items/e.itemsOnPage);return t||1},_getInterval:function(e){return{start:Math.ceil(e.currentPage>e.halfDisplayed?Math.max(Math.min(e.currentPage-e.halfDisplayed,e.pages-e.displayedPages),0):0),end:Math.ceil(e.currentPage>e.halfDisplayed?Math.min(e.currentPage+e.halfDisplayed,e.pages):Math.min(e.displayedPages,e.pages))}},_appendItem:function(n,i){var s,r,o=this,a=o.data("pagination"),l=e("<li></li>"),c=o.find("ul");n=n<0?0:n<a.pages?n:a.pages-1,s={text:n+1,classes:""},a.labelMap.length&&a.labelMap[n]&&(s.text=a.labelMap[n]),s=e.extend(s,i||{}),n==a.currentPage||a.disabled?(a.disabled||"prev"===s.classes||"next"===s.classes?l.addClass("disabled"):l.addClass("active"),r=e('<span class="current">'+s.text+"</span>")):(r=e('<a href="'+a.hrefTextPrefix+(n+1)+a.hrefTextSuffix+'" class="page-link">'+s.text+"</a>"),r.click(function(e){return t._selectPage.call(o,n,e)})),s.classes&&r.addClass(s.classes),l.append(r),c.length?c.append(l):o.append(l)},_selectPage:function(e,n){var i=this.data("pagination");return i.currentPage=e,i.selectOnClick&&t._draw.call(this),i.onPageClick(e+1,n)},_ellipseClick:function(n){var i=this,s=this.data("pagination"),r=n.find(".ellipse");r.addClass("clickable").parent().removeClass("disabled"),r.click(function(n){if(!s.disable){var o=e(this),a=(parseInt(o.parent().prev().text(),10)||0)+1;o.html('<input type="number" min="1" max="'+s.pages+'" step="1" value="'+a+'">').find("input").focus().click(function(e){e.stopPropagation()}).keyup(function(n){var o=e(this).val();13===n.which&&""!==o?o>0&&o<=s.pages&&t._selectPage.call(i,o-1):27===n.which&&r.empty().html(s.ellipseText)}).bind("blur",function(n){var o=e(this).val();return""!==o&&t._selectPage.call(i,o-1),r.empty().html(s.ellipseText),!1})}return!1})}};e.fn.pagination=function(n){return t[n]&&"_"!=n.charAt(0)?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("Method "+n+" does not exist on jQuery.pagination"):t.init.apply(this,arguments)}}(jQuery),!function(e,t){"use strict";var n={item:3,autoWidth:!1,slideMove:1,slideMargin:10,addClass:"",mode:"slide",useCSS:!0,cssEasing:"ease",easing:"linear",speed:400,auto:!1,pauseOnHover:!1,loop:!1,slideEndAnimation:!0,pause:2e3,keyPress:!1,controls:!0,prevHtml:"",nextHtml:"",rtl:!1,adaptiveHeight:!1,vertical:!1,verticalHeight:500,vThumbWidth:100,thumbItem:10,pager:!0,gallery:!1,galleryMargin:5,thumbMargin:5,currentPagerPosition:"middle",enableTouch:!0,enableDrag:!0,freeMove:!0,swipeThreshold:40,responsive:[],onBeforeStart:function(e){},onSliderLoad:function(e){},onBeforeSlide:function(e,t){},onAfterSlide:function(e,t){},onBeforeNextSlide:function(e,t){},onBeforePrevSlide:function(e,t){}};e.fn.lightSlider=function(t){if(0===this.length)return this;if(this.length>1)return this.each(function(){e(this).lightSlider(t)}),this;var i={},s=e.extend(!0,{},n,t),r={},o=this;i.$el=this,"fade"===s.mode&&(s.vertical=!1);var a=o.children(),l=e(window).width(),c=null,u=null,h=0,d=0,f=!1,p=0,g="",m=0,v=s.vertical===!0?"height":"width",y=s.vertical===!0?"margin-bottom":"margin-right",_=0,b=0,w=0,x=0,C=null,k="ontouchstart"in document.documentElement,T={};return T.chbreakpoint=function(){if(l=e(window).width(),s.responsive.length){var t;if(s.autoWidth===!1&&(t=s.item),l<s.responsive[0].breakpoint)for(var n=0;n<s.responsive.length;n++)l<s.responsive[n].breakpoint&&(c=s.responsive[n].breakpoint,u=s.responsive[n]);if("undefined"!=typeof u&&null!==u)for(var i in u.settings)u.settings.hasOwnProperty(i)&&(("undefined"==typeof r[i]||null===r[i])&&(r[i]=s[i]),s[i]=u.settings[i]);if(!e.isEmptyObject(r)&&l>s.responsive[0].breakpoint)for(var o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);s.autoWidth===!1&&_>0&&w>0&&t!==s.item&&(m=Math.round(_/((w+s.slideMargin)*s.slideMove)))}},T.calSW=function(){s.autoWidth===!1&&(w=(p-(s.item*s.slideMargin-s.slideMargin))/s.item)},T.calWidth=function(e){var t=e===!0?g.find(".lslide").length:a.length;if(s.autoWidth===!1)d=t*(w+s.slideMargin);else{d=0;for(var n=0;t>n;n++)d+=parseInt(a.eq(n).width())+s.slideMargin}return d},i={doCss:function(){var e=function(){for(var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,n=0;n<e.length;n++)if(e[n]in t.style)return!0};return!(!s.useCSS||!e())},keyPress:function(){s.keyPress&&e(document).on("keyup.lightslider",function(t){e(":focus").is("input, textarea")||(t.preventDefault?t.preventDefault():t.returnValue=!1,37===t.keyCode?o.goToPrevSlide():39===t.keyCode&&o.goToNextSlide())})},controls:function(){s.controls&&(o.after('<div class="lSAction"><a class="lSPrev">'+s.prevHtml+'</a><a class="lSNext">'+s.nextHtml+"</a></div>"),s.autoWidth?T.calWidth(!1)<p&&g.find(".lSAction").hide():h<=s.item&&g.find(".lSAction").hide(),g.find(".lSAction a").on("click",function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,"lSPrev"===e(this).attr("class")?o.goToPrevSlide():o.goToNextSlide(),!1}))},initialStyle:function(){var e=this;"fade"===s.mode&&(s.autoWidth=!1,s.slideEndAnimation=!1),s.auto&&(s.slideEndAnimation=!1),s.autoWidth&&(s.slideMove=1,s.item=1),s.loop&&(s.slideMove=1,s.freeMove=!1),s.onBeforeStart.call(this,o),T.chbreakpoint(),o.addClass("lightSlider").wrap('<div class="lSSlideOuter '+s.addClass+'"><div class="lSSlideWrapper"></div></div>'),g=o.parent(".lSSlideWrapper"),s.rtl===!0&&g.parent().addClass("lSrtl"),s.vertical?(g.parent().addClass("vertical"),p=s.verticalHeight,g.css("height",p+"px")):p=o.outerWidth(),a.addClass("lslide"),s.loop===!0&&"slide"===s.mode&&(T.calSW(),T.clone=function(){if(T.calWidth(!0)>p){for(var t=0,n=0,i=0;i<a.length&&(t+=parseInt(o.find(".lslide").eq(i).width())+s.slideMargin,n++,!(t>=p+s.slideMargin));i++);var r=s.autoWidth===!0?n:s.item;if(r<o.find(".clone.left").length)for(var l=0;l<o.find(".clone.left").length-r;l++)a.eq(l).remove();if(r<o.find(".clone.right").length)for(var c=a.length-1;c>a.length-1-o.find(".clone.right").length;c--)m--,a.eq(c).remove();for(var u=o.find(".clone.right").length;r>u;u++)o.find(".lslide").eq(u).clone().removeClass("lslide").addClass("clone right").appendTo(o),m++;for(var h=o.find(".lslide").length-o.find(".clone.left").length;h>o.find(".lslide").length-r;h--)o.find(".lslide").eq(h-1).clone().removeClass("lslide").addClass("clone left").prependTo(o);a=o.children()}else a.hasClass("clone")&&(o.find(".clone").remove(),e.move(o,0))},T.clone()),T.sSW=function(){h=a.length,s.rtl===!0&&s.vertical===!1&&(y="margin-left"),s.autoWidth===!1&&a.css(v,w+"px"),a.css(y,s.slideMargin+"px"),d=T.calWidth(!1),o.css(v,d+"px"),s.loop===!0&&"slide"===s.mode&&f===!1&&(m=o.find(".clone.left").length)},T.calL=function(){a=o.children(),h=a.length},this.doCss()&&g.addClass("usingCss"),T.calL(),"slide"===s.mode?(T.calSW(),T.sSW(),s.loop===!0&&(_=e.slideValue(),this.move(o,_)),s.vertical===!1&&this.setHeight(o,!1)):(this.setHeight(o,!0),o.addClass("lSFade"),this.doCss()||(a.fadeOut(0),a.eq(m).fadeIn(0))),s.loop===!0&&"slide"===s.mode?a.eq(m).addClass("active"):a.first().addClass("active");},pager:function(){var e=this;if(T.createPager=function(){x=(p-(s.thumbItem*s.thumbMargin-s.thumbMargin))/s.thumbItem;var t=g.find(".lslide"),n=g.find(".lslide").length,i=0,r="",a=0;for(i=0;n>i;i++){"slide"===s.mode&&(s.autoWidth?a+=(parseInt(t.eq(i).width())+s.slideMargin)*s.slideMove:a=i*(w+s.slideMargin)*s.slideMove);var l=t.eq(i*s.slideMove).attr("data-thumb");if(r+=s.gallery===!0?'<li style="width:100%;'+v+":"+x+"px;"+y+":"+s.thumbMargin+'px"><a href="#"><img src="'+l+'" /></a></li>':'<li><a href="#">'+(i+1)+"</a></li>","slide"===s.mode&&a>=d-p-s.slideMargin){i+=1;var c=2;s.autoWidth&&(r+='<li><a href="#">'+(i+1)+"</a></li>",c=1),c>i?(r=null,g.parent().addClass("noPager")):g.parent().removeClass("noPager");break}}var u=g.parent();u.find(".lSPager").html(r),s.gallery===!0&&(s.vertical===!0&&u.find(".lSPager").css("width",s.vThumbWidth+"px"),b=i*(s.thumbMargin+x)+.5,u.find(".lSPager").css({property:b+"px","transition-duration":s.speed+"ms"}),s.vertical===!0&&g.parent().css("padding-right",s.vThumbWidth+s.galleryMargin+"px"),u.find(".lSPager").css(v,b+"px"));var h=u.find(".lSPager").find("li");h.first().addClass("active"),h.on("click",function(){return s.loop===!0&&"slide"===s.mode?m+=h.index(this)-u.find(".lSPager").find("li.active").index():m=h.index(this),o.mode(!1),s.gallery===!0&&e.slideThumb(),!1})},s.pager){var t="lSpg";s.gallery&&(t="lSGallery"),g.after('<ul class="lSPager '+t+'"></ul>');var n=s.vertical?"margin-left":"margin-top";g.parent().find(".lSPager").css(n,s.galleryMargin+"px"),T.createPager()}setTimeout(function(){T.init()},0)},setHeight:function(e,t){var n=null,i=this;n=s.loop?e.children(".lslide ").first():e.children().first();var r=function(){var i=n.outerHeight(),s=0,r=i;t&&(i=0,s=100*r/p),e.css({height:i+"px","padding-bottom":s+"%"})};r(),n.find("img").length?n.find("img")[0].complete?(r(),C||i.auto()):n.find("img").on("load",function(){setTimeout(function(){r(),C||i.auto()},100)}):C||i.auto()},active:function(e,t){this.doCss()&&"fade"===s.mode&&g.addClass("on");var n=0;if(m*s.slideMove<h){e.removeClass("active"),this.doCss()||"fade"!==s.mode||t!==!1||e.fadeOut(s.speed),n=t===!0?m:m*s.slideMove;var i,r;t===!0&&(i=e.length,r=i-1,n+1>=i&&(n=r)),s.loop===!0&&"slide"===s.mode&&(n=t===!0?m-o.find(".clone.left").length:m*s.slideMove,t===!0&&(i=e.length,r=i-1,n+1===i?n=r:n+1>i&&(n=0))),this.doCss()||"fade"!==s.mode||t!==!1||e.eq(n).fadeIn(s.speed),e.eq(n).addClass("active")}else e.removeClass("active"),e.eq(e.length-1).addClass("active"),this.doCss()||"fade"!==s.mode||t!==!1||(e.fadeOut(s.speed),e.eq(n).fadeIn(s.speed))},move:function(e,t){s.rtl===!0&&(t=-t),this.doCss()?e.css(s.vertical===!0?{transform:"translate3d(0px, "+-t+"px, 0px)","-webkit-transform":"translate3d(0px, "+-t+"px, 0px)"}:{transform:"translate3d("+-t+"px, 0px, 0px)","-webkit-transform":"translate3d("+-t+"px, 0px, 0px)"}):s.vertical===!0?e.css("position","relative").animate({top:-t+"px"},s.speed,s.easing):e.css("position","relative").animate({left:-t+"px"},s.speed,s.easing);var n=g.parent().find(".lSPager").find("li");this.active(n,!0)},fade:function(){this.active(a,!1);var e=g.parent().find(".lSPager").find("li");this.active(e,!0)},slide:function(){var e=this;T.calSlide=function(){d>p&&(_=e.slideValue(),e.active(a,!1),_>d-p-s.slideMargin?_=d-p-s.slideMargin:0>_&&(_=0),e.move(o,_),s.loop===!0&&"slide"===s.mode&&(m>=h-o.find(".clone.left").length/s.slideMove&&e.resetSlide(o.find(".clone.left").length),0===m&&e.resetSlide(g.find(".lslide").length)))},T.calSlide()},resetSlide:function(e){var t=this;g.find(".lSAction a").addClass("disabled"),setTimeout(function(){m=e,g.css("transition-duration","0ms"),_=t.slideValue(),t.active(a,!1),i.move(o,_),setTimeout(function(){g.css("transition-duration",s.speed+"ms"),g.find(".lSAction a").removeClass("disabled")},50)},s.speed+100)},slideValue:function(){var e=0;if(s.autoWidth===!1)e=m*(w+s.slideMargin)*s.slideMove;else{e=0;for(var t=0;m>t;t++)e+=parseInt(a.eq(t).width())+s.slideMargin}return e},slideThumb:function(){var e;switch(s.currentPagerPosition){case"left":e=0;break;case"middle":e=p/2-x/2;break;case"right":e=p-x}var t=m-o.find(".clone.left").length,n=g.parent().find(".lSPager");"slide"===s.mode&&s.loop===!0&&(t>=n.children().length?t=0:0>t&&(t=n.children().length));var i=t*(x+s.thumbMargin)-e;i+p>b&&(i=b-p-s.thumbMargin),0>i&&(i=0),this.move(n,i)},auto:function(){s.auto&&(clearInterval(C),C=setInterval(function(){o.goToNextSlide()},s.pause))},pauseOnHover:function(){var t=this;s.auto&&s.pauseOnHover&&(g.on("mouseenter",function(){e(this).addClass("ls-hover"),o.pause(),s.auto=!0}),g.on("mouseleave",function(){e(this).removeClass("ls-hover"),g.find(".lightSlider").hasClass("lsGrabbing")||t.auto()}))},touchMove:function(e,t){if(g.css("transition-duration","0ms"),"slide"===s.mode){var n=e-t,i=_-n;if(i>=d-p-s.slideMargin)if(s.freeMove===!1)i=d-p-s.slideMargin;else{var r=d-p-s.slideMargin;i=r+(i-r)/5}else 0>i&&(s.freeMove===!1?i=0:i/=5);this.move(o,i)}},touchEnd:function(e){if(g.css("transition-duration",s.speed+"ms"),"slide"===s.mode){var t=!1,n=!0;_-=e,_>d-p-s.slideMargin?(_=d-p-s.slideMargin,s.autoWidth===!1&&(t=!0)):0>_&&(_=0);var i=function(e){var n=0;if(t||e&&(n=1),s.autoWidth)for(var i=0,r=0;r<a.length&&(i+=parseInt(a.eq(r).width())+s.slideMargin,m=r+n,!(i>=_));r++);else{var o=_/((w+s.slideMargin)*s.slideMove);m=parseInt(o)+n,_>=d-p-s.slideMargin&&o%1!==0&&m++}};e>=s.swipeThreshold?(i(!1),n=!1):e<=-s.swipeThreshold&&(i(!0),n=!1),o.mode(n),this.slideThumb()}else e>=s.swipeThreshold?o.goToPrevSlide():e<=-s.swipeThreshold&&o.goToNextSlide()},enableDrag:function(){var t=this;if(!k){var n=0,i=0,r=!1;g.find(".lightSlider").addClass("lsGrab"),g.on("mousedown",function(t){return!(p>d&&0!==d)&&void("lSPrev"!==e(t.target).attr("class")&&"lSNext"!==e(t.target).attr("class")&&(n=s.vertical===!0?t.pageY:t.pageX,r=!0,t.preventDefault?t.preventDefault():t.returnValue=!1,g.scrollLeft+=1,g.scrollLeft-=1,g.find(".lightSlider").removeClass("lsGrab").addClass("lsGrabbing"),clearInterval(C)))}),e(window).on("mousemove",function(e){r&&(i=s.vertical===!0?e.pageY:e.pageX,t.touchMove(i,n))}),e(window).on("mouseup",function(o){if(r){g.find(".lightSlider").removeClass("lsGrabbing").addClass("lsGrab"),r=!1,i=s.vertical===!0?o.pageY:o.pageX;var a=i-n;Math.abs(a)>=s.swipeThreshold&&e(window).on("click.ls",function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopImmediatePropagation(),t.stopPropagation(),e(window).off("click.ls")}),t.touchEnd(a)}})}},enableTouch:function(){var e=this;if(k){var t={},n={};g.on("touchstart",function(e){n=e.originalEvent.targetTouches[0],t.pageX=e.originalEvent.targetTouches[0].pageX,t.pageY=e.originalEvent.targetTouches[0].pageY,clearInterval(C)}),g.on("touchmove",function(i){if(p>d&&0!==d)return!1;var r=i.originalEvent;n=r.targetTouches[0];var o=Math.abs(n.pageX-t.pageX),a=Math.abs(n.pageY-t.pageY);s.vertical===!0?(3*a>o&&i.preventDefault(),e.touchMove(n.pageY,t.pageY)):(3*o>a&&i.preventDefault(),e.touchMove(n.pageX,t.pageX))}),g.on("touchend",function(){if(p>d&&0!==d)return!1;var i;i=s.vertical===!0?n.pageY-t.pageY:n.pageX-t.pageX,e.touchEnd(i)})}},build:function(){var t=this;t.initialStyle(),this.doCss()&&(s.enableTouch===!0&&t.enableTouch(),s.enableDrag===!0&&t.enableDrag()),e(window).on("focus",function(){t.auto()}),e(window).on("blur",function(){clearInterval(C)}),t.pager(),t.pauseOnHover(),t.controls(),t.keyPress()}},i.build(),T.init=function(){T.chbreakpoint(),s.vertical===!0?(p=s.item>1?s.verticalHeight:a.outerHeight(),g.css("height",p+"px")):p=g.outerWidth(),s.loop===!0&&"slide"===s.mode&&T.clone(),T.calL(),"slide"===s.mode&&o.removeClass("lSSlide"),"slide"===s.mode&&(T.calSW(),T.sSW()),setTimeout(function(){"slide"===s.mode&&o.addClass("lSSlide")},1e3),s.pager&&T.createPager(),s.adaptiveHeight===!0&&s.vertical===!1&&o.css("height",a.eq(m).outerHeight(!0)),s.adaptiveHeight===!1&&("slide"===s.mode?s.vertical===!1?i.setHeight(o,!1):i.auto():i.setHeight(o,!0)),s.gallery===!0&&i.slideThumb(),"slide"===s.mode&&i.slide(),s.autoWidth===!1?a.length<=s.item?g.find(".lSAction").hide():g.find(".lSAction").show():T.calWidth(!1)<p&&0!==d?g.find(".lSAction").hide():g.find(".lSAction").show()},o.goToPrevSlide=function(){if(m>0)s.onBeforePrevSlide.call(this,o,m),m--,o.mode(!1),s.gallery===!0&&i.slideThumb();else if(s.loop===!0){if(s.onBeforePrevSlide.call(this,o,m),"fade"===s.mode){var e=h-1;m=parseInt(e/s.slideMove)}o.mode(!1),s.gallery===!0&&i.slideThumb()}else s.slideEndAnimation===!0&&(o.addClass("leftEnd"),setTimeout(function(){o.removeClass("leftEnd")},400))},o.goToNextSlide=function(){var e=!0;if("slide"===s.mode){var t=i.slideValue();e=t<d-p-s.slideMargin}m*s.slideMove<h-s.slideMove&&e?(s.onBeforeNextSlide.call(this,o,m),m++,o.mode(!1),s.gallery===!0&&i.slideThumb()):s.loop===!0?(s.onBeforeNextSlide.call(this,o,m),m=0,o.mode(!1),s.gallery===!0&&i.slideThumb()):s.slideEndAnimation===!0&&(o.addClass("rightEnd"),setTimeout(function(){o.removeClass("rightEnd")},400))},o.mode=function(e){s.adaptiveHeight===!0&&s.vertical===!1&&o.css("height",a.eq(m).outerHeight(!0)),f===!1&&("slide"===s.mode?i.doCss()&&(o.addClass("lSSlide"),""!==s.speed&&g.css("transition-duration",s.speed+"ms"),""!==s.cssEasing&&g.css("transition-timing-function",s.cssEasing)):i.doCss()&&(""!==s.speed&&o.css("transition-duration",s.speed+"ms"),""!==s.cssEasing&&o.css("transition-timing-function",s.cssEasing))),e||s.onBeforeSlide.call(this,o,m),"slide"===s.mode?i.slide():i.fade(),g.hasClass("ls-hover")||i.auto(),setTimeout(function(){e||s.onAfterSlide.call(this,o,m)},s.speed),f=!0},o.play=function(){o.goToNextSlide(),s.auto=!0,i.auto()},o.pause=function(){s.auto=!1,clearInterval(C)},o.refresh=function(){T.init()},o.getCurrentSlideCount=function(){var e=m;if(s.loop){var t=g.find(".lslide").length,n=o.find(".clone.left").length;e=n-1>=m?t+(m-n):m>=t+n?m-t-n:m-n}return e+1},o.getTotalSlideCount=function(){return g.find(".lslide").length},o.goToSlide=function(e){m=s.loop?e+o.find(".clone.left").length-1:e,o.mode(!1),s.gallery===!0&&i.slideThumb()},o.destroy=function(){o.lightSlider&&(o.goToPrevSlide=function(){},o.goToNextSlide=function(){},o.mode=function(){},o.play=function(){},o.pause=function(){},o.refresh=function(){},o.getCurrentSlideCount=function(){},o.getTotalSlideCount=function(){},o.goToSlide=function(){},o.lightSlider=null,T={init:function(){}},o.parent().parent().find(".lSAction, .lSPager").remove(),o.removeClass("lightSlider lSFade lSSlide lsGrab lsGrabbing leftEnd right").removeAttr("style").unwrap().unwrap(),o.children().removeAttr("style"),a.removeClass("lslide active"),o.find(".clone").remove(),a=null,C=null,f=!1,m=0)},setTimeout(function(){s.onSliderLoad.call(this,o)},10),e(window).on("resize orientationchange",function(e){setTimeout(function(){e.preventDefault?e.preventDefault():e.returnValue=!1,T.init()},200)}),this}}(jQuery),Vue.directive("chosen",{twoWay:!0,bind:function(){return this.vm.$nextTick(function(e){return function(){return $(e.el).chosen({disable_search:!0,inherit_select_classes:!0}).change(function(t){var n,i,s,r,o;if(e.el.hasAttribute("multiple")){for(o=[],r=e.el.selectedOptions,n=0,i=r.length;n<i;n++)s=r[n],o.push(s.value);return e.set(o)}return e.set(e.el.value)})}}(this))},update:function(e,t){return $(this.el).trigger("chosen:updated")}}),Vue.filter("two_digits",function(e){return e.toString().length<=1?"0"+e.toString():e.toString()});var helpers={showError:function(e){alertify.delay(0).closeLogOnClick(!0).error(e)},showSuccess:function(e){alertify.success(e)}};!function(e){e.fn.imgLoad=function(t){return this.each(function(){t&&(this.complete||e(this).height()>0?t.apply(this):e(this).on("load",function(){t.apply(this)}))})}}(jQuery),Vue.component("createCase",{template:"#create-case-template",data:function(){return{items:[],casesItems:[],allPages:[],casesAllPages:[],selectedItems:[],sortKey:"name",sortOrder:-1,selectKey:"name",selectedOrder:-1,weaponType:"",skinType:"",searchKeyword:"",page:1,pageCases:1,pageCount:0,casesPageCount:0,caseName:"",caseId:-1,loading:!1,casesLoading:!1,totalOdds:0,calculating:!1,calculated:!1,calculatedPrice:0,creatingCase:!1,slider:null}},ready:function(){var e=this;e.getItems(!0),e.getCases(!0),$(document).ready(function(){e.slider=$("#light-slider").lightSlider({item:7,pager:!1,onSliderLoad:function(){$("#lightSlider").removeClass("hidden")},controls:!1,slideMargin:0,responsive:[{breakpoint:768,settings:{item:6}},{breakpoint:650,settings:{item:5}},{breakpoint:550,settings:{item:4}},{breakpoint:450,settings:{item:3}},{breakpoint:350,settings:{item:2}}]})})},methods:{changeSort:function(e){var t=this;t.sortKey=e,t.sortOrder*=-1,t.getItems(!0)},changeSelectSort:function(e){var t=this;t.selectKey=e,t.selectedOrder*=-1},sortBySelectOrder:function(){var e=sorts[category];return values.sort(function(t,n){return t=e.indexOf(t.id),n=e.indexOf(n.id),t-n})},getItems:function(e){var t=this;if(t.loading)return!1;t.loading=!0;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/create-case/skins",data:{page:t.page,search:t.searchKeyword,sortOrder:1==t.sortOrder?"desc":"asc",sortKey:t.sortKey,weaponType:t.weaponType,_token:n},method:"GET",success:function(n){t.items=n.items,t.pageCount=n.pageCount,t.loading=!1,e&&(t.allPages=[],t.page=1,$(document.getElementById("pagination-wrapper")).pagination({items:24*t.pageCount,itemsOnPage:24,edges:1,prevText:"&laquo;",nextText:"&raquo;",onPageClick:function(e,n){t.onPageClick(e,n)}})),t.allPages[t.page]=n.items},error:function(e){t.loading=!1,alertify.error(e.responseJSON.message)}})},getCases:function(e){var t=this;if(t.casesLoading)return!1;t.casesLoading=!0;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/create-case/skins",data:{page:t.pageCases,search:"",sortOrder:"asc",sortKey:"name",weaponType:"drakemoon-cases",_token:n},method:"GET",success:function(n){t.casesItems=n.items,t.casesPageCount=n.pageCount,t.casesLoading=!1,e&&(t.casesAllPages=[],t.pageCases=1,$(document.getElementById("pagination-wrapper-cases")).pagination({items:24*t.casesPageCount,itemsOnPage:24,edges:1,prevText:"&laquo;",nextText:"&raquo;",onPageClick:function(e,n){t.onPageCasesClick(e,n)}})),t.casesAllPages[t.pageCases]=n.items},error:function(e){t.casesLoading=!1,alertify.error(e.responseJSON.message)}})},isInArray:function(e){for(var t=this,n=0;t.selectedItems.length>n;n++)if(t.selectedItems[n].id===e)return!0;return!1},onPageClick:function(e,t){var n=this;n.page=e,e in n.allPages?n.items=n.allPages[e]:n.getItems(!1,!1)},onPageCasesClick:function(e,t){var n=this;n.pageCases=e,e in n.casesAllPages?n.casesItems=n.casesAllPages[e]:n.getCases(!1)},addItem:function(e){for(var t=this,n=!1,i=-1,s=0;t.selectedItems.length>s;s++)t.selectedItems[s].id==e.id&&(n=!0,i=s);n?t.selectedItems.splice(i,1):!n&&t.selectedItems.length<=19&&(e.odds="",t.selectedItems.push(e)),t.calculateOdds(e.id,null)},calculateOdds:function(e,t){var n=this;n.totalOdds=0;for(var i=0;n.selectedItems.length>i;i++)n.selectedItems[i].id==e&&(n.selectedItems[i].odds=null!=t?parseFloat(t.target.value):parseInt("")),n.totalOdds+=isNaN(n.selectedItems[i].odds)?0:n.selectedItems[i].odds;n.totalOdds=n.totalOdds.toFixed(1),n.calculated=!1},prepareSelectedItemsForCalculation:function(){for(var e=this,t=[],n=0;e.selectedItems.length>n;n++)t.push({id:e.selectedItems[n].id,odds:e.selectedItems[n].odds});return JSON.stringify(t)},moveSliderLeft:function(){var e=this;e.slider.goToPrevSlide()},moveSliderRight:function(){var e=this;e.slider.goToNextSlide()},calculateCasePrice:function(){var e=this;if(e.calculating)return!1;e.calculating=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/create-case/calculate-price",data:{items:e.prepareSelectedItemsForCalculation(),_token:t},method:"POST",success:function(t){e.calculatedPrice=t.price,e.calculated=!0,e.calculating=!1},error:function(t){e.calculating=!1,alertify.error(t.responseJSON.message)}})},createCase:function(){var e=this;if(e.creatingCase)return!1;e.creatingCase=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/create-case",data:{items:e.prepareSelectedItemsForCalculation(),caseName:e.caseName,caseImage:e.caseId,_token:t},method:"POST",success:function(t){e.calculated=!1,e.creatingCase=!1,e.selectedItems=[],e.caseName="",window.location=t.url},error:function(t){e.creatingCase=!1,alertify.error(t.responseJSON.message)}})}},watch:{caseName:function(e,t){var n=this;e.length>14&&(n.caseName=t)},weaponType:function(){var e=this;e.page=1,e.getItems(!0)},searchKeyword:function(){var e=this;e.page=1,e.getItems(!0)},selectedItems:function(){var e=this;e.calculated=!1}}}),Vue.component("indexCases",{template:"#index-case-template",ready:function(){var e=this;e.handleResize(),window.addEventListener("menuChange",e.handleResize),$(".cases-if-wrapper .js-calc-height-index .case-column:first-child img").imgLoad(function(){e.resizeFunction()})},methods:{handleResize:function(){var e=this;e.resizeFunction(),setTimeout(e.resizeFunction,400)},resizeFunction:function(){var e=$(".js-calc-height-index").find(".case-column:first-child").height(),t=$(".js-calc-height-index").parent().find("h2"),n=t.innerHeight();t.hasClass("margin-top-10")&&(n+=10),$(".cases-if-wrapper").height(e+n)}}});var listCases=Vue.extend({template:"#index-cases-template",data:function(){return{loading:!1,items:[],allPages:[],searchKeyword:"",page:1,pageCount:0,viewName:"",modal:!1,deleteName:"",deleteId:"",deleting:!1}},ready:function(){var e=this;e.viewName=e.$parent.homeView,e.getItems(!0)},methods:{getItems:function(e){var t=this;if(t.loading)return!1;t.loading=!0;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/index/cases",data:{page:t.page,search:t.searchKeyword,homeView:t.$parent.homeView,_token:n},method:"GET",success:function(n){t.items=n.items,t.pageCount=n.pageCount,t.loading=!1,e&&(t.allPages=[],t.page=1,$(document.getElementById("pagination-wrapper")).pagination({items:24*t.pageCount,itemsOnPage:24,edges:1,prevText:"&laquo;",nextText:"&raquo;",onPageClick:function(e,n){t.onPageClick(e,n)}})),t.allPages[t.page]=n.items},error:function(e){t.loading=!1,alertify.error(e.responseJSON.message)}})},onPageClick:function(e,t){var n=this;n.page=e,e in n.allPages?n.items=n.allPages[e]:n.getItems(!1,!1)},tryToDelete:function(e,t){var n=this;n.deleteName=e,n.deleteId=t,n.modal=!0},deleteCase:function(){var e=this;if(e.deleting)return!1;e.deleting=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/create-case/delete",data:{id:e.deleteId,_token:t},method:"POST",success:function(t){e.deleting=!1,e.modal=!1,alertify.success(t.message),e.getItems(!0)},error:function(t){e.deleting=!1,alertify.error(t.responseJSON.message)}})}},watch:{searchKeyword:function(){var e=this;e.page=1,e.getItems(!0)}}}),weeksTop=Vue.extend({template:"#weeks-top-template",data:function(){return{loading:!0,items:[]}},ready:function(){var e=this;e.getItems(),e.handleResize(),window.addEventListener("menuChange",e.handleResize)},methods:{handleResize:function(){var e=this;e.resizeFunction(),setTimeout(e.resizeFunction,400)},resizeFunction:function(){$(".cases-if-wrapper").find(".js-calc-height").each(function(){var e=$(this).find(".case-column:first-child").height(),t=$(".js-calc-height").parent().find("h2"),n=t.innerHeight();t.hasClass("margin-top-10")&&(n+=10),$(this).parent().height(e+n)})},getItems:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/index/cases",data:{homeView:e.$parent.homeView,_token:t},method:"GET",success:function(t){e.items=t.original,e.loading=!1,e.handleResize()},error:function(t){e.loading=!1,alertify.error(t.responseJSON.message)}})}}});if(Vue.component("newCases",listCases),Vue.component("24HoursTop",listCases),Vue.component("48HoursTop",listCases),Vue.component("7DayTop",weeksTop),Vue.component("yourCases",listCases),$("#provably-fair-page").length)var serverSeedList=Vue.extend({template:"#server-seed-list",data:function(){return{items:0,loading:!0,pageCount:0,page:0,allPages:[]}},ready:function(){this.getList(!0)},methods:{getList:function(e){var t=this,n=$('meta[name="csrf_token"]').attr("content");t.loading=!0,$.ajax({method:"GET",url:"/api/provably-fair/seeds",data:{_token:n,page:t.page}}).success(function(n){t.items=n.seeds,t.pageCount=n.pageCount,t.loading=!1,e&&(t.allPages[t.page]=n.seeds,$(".pagination-wrapper").pagination({items:10*t.pageCount,itemsOnPage:10,edges:1,prevText:"&laquo;",nextText:"&raquo;",onPageClick:function(e,n){t.onPageClick(e,n)}}))}).error(function(e){t.loading=!1,helpers.showError(e.responseJSON.message)})},onPageClick:function(e,t){var n=this;n.page=e,e in n.allPages?n.items=n.allPages[e]:(n.allPages=[],n.getList(!1))}}}),usersLastWins=Vue.extend({template:"#last-10-wins",data:function(){return{items:[],loaded:!1,loading:!0}},methods:{getItems:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");e.loading=!0,$.ajax({method:"GET",url:"/api/provably-fair/last-games",data:{_token:t}}).success(function(t){e.items=t.items,e.loading=!1}).error(function(t){e.loading=!1,helpers.showError(t.responseJSON.message)})}},events:{loadItems:function(){this.loaded||(this.loaded=!0,this.loading=!0,this.getItems())}}}),calculateProvableFair=Vue.extend({template:"#prob-fair-calculator",data:function(){return{loading:!1,serverSeed:"",caseNumber:"",date:"",showModal:!1,item:[]}},methods:{getCalculatedSeed:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");e.loading=!0,$.ajax({method:"POST",url:"/api/provably-fair/calculator",data:{_token:t,serverSeed:e.serverSeed,caseNumber:e.caseNumber,date:e.date}}).success(function(t){e.loading=!1,e.showModal=!0,e.item=t}).error(function(t){e.loading=!1,$.each(t.responseJSON,function(e,t){helpers.showError(t)})})}}}),provablyFair=new Vue({el:"#provably-fair",data:{activeTab:1},ready:function(){},methods:{changeTab:function(){var e=this;e.activeTab=2,e.$broadcast("loadItems")}},components:{serverSeedList:serverSeedList,usersLastWins:usersLastWins,calculateProvableFair:calculateProvableFair}});if(Vue.component("openCasesPage",{template:"#case-open-template",props:["diamonds"],data:function(){return{showWonModal:!1,convertToCoinsLoading:[],convertAllToCoinsLoading:!1,cases:null,spinning:!1,inPlay:!1,opening:!1,finished:!1,showSellModal:!1,animStart:[0,0,0,0,0],isMoving:!1,tf:[0,0,0,0,0],vi:[0,0,0,0,0],wobble:0,skinWidth:130,numberOfSkins:0,slider_width:0,caseID:0,"case":0,error:"",loading:!0,winInfo:[],steamOfferId:0,numberOfCases:1,showProvablyFairModal:!1,numberOfWinnings:0,items:[],diamondCount:0}},computed:{diamondCount:function(){var e=this;return e.diamonds*e.numberOfCases}},ready:function(){for(var e=this,t=$(document.getElementById("box-page")).find(".roulette-inner"),n=0;n<t.length;n++)t.each(function(){for(var e=0;e<11;e++)t.eq(n).append(t.eq(n).find(".skins:nth-child("+e+")").clone())});e.$on("menu-change",function(t){if(e.inPlay)for(var n=$(document.getElementById("box-page")).find(".roulette-inner"),i=0;i<n.length;i++){var s=n.eq(i).css("transform").split(",")[4];t?n.eq(i).css("transform","translate("+(parseFloat(s)+90)+"px, 0px)"):n.eq(i).css("transform","translate("+(parseFloat(s)-90)+"px, 0px)")}})},methods:{convertToBalance:function(e){var t=this;if(t.convertToCoinsLoading.indexOf(e)==-1){t.convertToCoinsLoading.push(e);var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/winning/single/to/balance",data:{winning:e,_token:n}}).success(function(n){0==t.winInfo.length&&(t.showWonModal=!1);for(var i=[],s=0;s<t.winInfo.length;s++)t.winInfo[s].id!=e&&i.push(t.winInfo[s]);t.winInfo=i;for(var r=[],s=0;s<t.convertToCoinsLoading.length;s++)t.convertToCoinsLoading[s]!=e&&r.push(t.convertToCoinsLoading[s]);t.convertToCoinsLoading=r,0==t.winInfo.length&&(t.showWonModal=!1),$(".js-balance").html(n.balance.toFixed(2)),helpers.showSuccess(n.message)}).error(function(e){helpers.showError(e.responseJSON.message),t.isMoving=!1,t.$parent.allowMenuChanges=!0})}},playSound:function(e){var t=null!=localStorage.getItem("sound")?localStorage.getItem("sound"):1;1==t&&$(document.getElementById(e))[0].play()},viewSlider:function(e,t){var n=this,i=$("#skins-roulette .roulette-inner").eq(t);n.slider_width=n.skinWidth*(i.find(".skins").length-10),e=-((e+n.slider_width-n.sliderWidth/2)%n.slider_width),i.css("transform","translate("+e+"px, 0px)")},renderRoll:function(e,t,n,i){var s=this,r=Math.log(.999),o=(new Date).getTime()-n;o>e&&(o=e);var a=t*(Math.pow(.999,o)-1)/r;s.viewSlider(a,i),o<e?requestAnimationFrame(function(){s.renderRoll(e,t,n,i)}):(s.isMoving=!1,s.$parent.allowMenuChanges=!0,s.inPlay=!0,null!=s.winInfo&&setTimeout(function(){s.showWonModal=!0},500))},getVi:function(e){var t=Math.log(.999);return.01-e*t},getTf:function(e){var t=Math.log(.999);return(Math.log(.01)-Math.log(e))/t},spin:function(e,t,n){var i=this,s=$("#skins-roulette"),r=t;i.sliderWidth=s.width(),i.numberOfSkins=r.find(".skins").length-10,i.slider_width=i.skinWidth*i.numberOfSkins;var o=0,a=0,l=Math.floor(i.wobble*(o-a+1)+a);i.wobble=0;var c=e*i.skinWidth+i.skinWidth/2+l;c+=5*i.slider_width,r.css("transform","translate(0px, 0px)"),i.animStart[n]=(new Date).getTime(),i.vi[n]=i.getVi(c),i.tf[n]=i.getTf(i.vi[n]),setTimeout(function(){},i.tf[n]),i.renderRoll(i.tf[n],i.vi[n],i.animStart[n],n)},tryAgain:function(){this.showWonModal=!1,this.openCase()},freeSpin:function(e){var t=this;if(1!=t.isMoving){t.isMoving=!0,t.$parent.allowMenuChanges=!1,t.winInfo=null;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/cases/test-open",data:{case_id:t["case"],numberOfCases:t.numberOfCases,_token:n}}).success(function(e){t.numberOfCases=e.item_id.length>t.numberOfCases?e.item_id.length:t.numberOfCases;for(var n=$(document.getElementById("box-page")).find(".roulette-inner"),i=0;i<e.item_id.length;i++){var s=null;n.eq(i).find(".skins").each(function(t){parseInt(n.eq(i).find(".skins").eq(t).find(".preview-wrapper").attr("data-id"))==parseInt(e.item_id[i])&&null==s&&(s=t)}),t.spin(s,n.eq(i),i)}t.playSound("audio-roll")}).error(function(e){helpers.showError(e.responseJSON.message),t.isMoving=!1,t.$parent.allowMenuChanges=!0})}},displayWinning:function(e){var t=this;1==e&&(t.showSellModal=!0)},sellAll:function(){var e=this;if(e.convertAllToCoinsLoading)return!1;e.convertAllToCoinsLoading=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/winning/all/to/balance/",data:{_token:t}}).success(function(e){helpers.showSuccess(e.message),window.location.reload()}).error(function(t){e.convertAllToCoinsLoading=!1,helpers.showError(t.responseJSON.message)})},openCase:function(){var e=this,t=$(".js-open-case");if(e.playSound("audio-buy"),1!=e.isMoving){e.isMoving=!0,e.$parent.allowMenuChanges=!1,t.addClass("loading");var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/cases/open",data:{case_id:e["case"],numberOfCases:e.numberOfCases,_token:n}}).success(function(n){e.winInfo=n.winInfo,e.numberOfCases=n.winInfo.length>e.numberOfCases?n.winInfo.length:e.numberOfCases,$(".js-balance").html(n.balance.toFixed(2));var i=$(document.getElementById("box-page")).find(".roulette-inner");n.winInfo.length>1&&ga("send","event","cases","multiple");for(var s=0;s<n.winInfo.length;s++){ga("send","event","case_"+e["case"],"opened");var r=null;i.eq(s).find(".skins").each(function(e){parseInt(i.eq(s).find(".skins").eq(e).find(".preview-wrapper").attr("data-id"))==parseInt(n.winInfo[s].item_id)&&null==r&&(r=e)}),e.spin(r,i.eq(s),s)}t.removeClass("loading"),e.playSound("audio-roll"),e.numberOfWinnings=n.winInfo.length}).error(function(t){void 0!=t.responseJSON.message[0].message?(helpers.showError(t.responseJSON.message[0].message),e.displayWinning(t.responseJSON.message[0].winnings)):helpers.showError(t.responseJSON.message),e.isMoving=!1,e.$parent.allowMenuChanges=!0})}},showWinningNumbers:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");return e.items.length>0?(e.showProvablyFairModal=!0,!1):(e.loading=!0,e.showProvablyFairModal=!0,void $.ajax({method:"GET",url:"/api/provably-fair/winning-numbers",data:{_token:t,"case":e["case"]}}).success(function(t){e.loading=!1,e.items=t.items}).error(function(t){e.loading=!1,helpers.showError(t.responseJSON.message)}))}},components:{winningComment:{template:"#winning-comment",props:["id","epic"],data:function(){return{comment:"",charsLeft:27,loading:!1,opened:!1,submitted:!1}},ready:function(){var e=this;e.epic=1==e.epic,e.opened=!!e.epic},methods:{postNewComment:function(){var e=this;if(e.loading)return!1;e.loading=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/comments/comment",data:{_token:t,winning:e.id,message:e.comment}}).success(function(t){e.loading=!1,e.submitted=!0}).error(function(t){e.loading=!1,helpers.showError(t.responseJSON.message)})}},watch:{comment:function(e,t){var n=this;n.charsLeft=27-e.length}}}}}),Vue.component("weeklyTopPlayers",{template:"#weekly-top-100-template",data:function(){return{loading:!1,items:[],date:"",position:-1,dateRange:""}},ready:function(){var e=this;e.getItems()},methods:{getItems:function(){var e=this;if(e.loading)return!1;e.loading=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"/api/weekly-top-100",data:{date:e.dateRange,_token:t},method:"GET",success:function(t){e.items=t.players,e.date=t.date,e.position=t.position,e.loading=!1},error:function(t){e.loading=!1,alertify.error(t.responseJSON.message)}})}},watch:{dateRange:function(){var e=this;e.getItems()}}}),Vue.component("countdown-weekly",{template:"#countdown-weekly-template",ready:function(){var e=this;e.doCalculation(),window.setInterval(function(){e.doCalculation()},1e3)},props:{date:{type:Number,coerce:function(e){return Math.trunc(Date.parse(e)/1e3)}}},data:function(){return{now:Math.trunc((new Date).getTime()/1e3),ended:!1,endDate:""}},methods:{doCalculation:function(){var e=this;if(e.now=Math.trunc((new Date).getTime()/1e3),e.date-e.now<=0){e.ended=!0;var t=new Date(1e3*e.date);e.endDate=t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()}}},computed:{minutes:function(){return Math.trunc((this.date-this.now)/60)%60},hours:function(){return Math.trunc((this.date-this.now)/60/60)%24},days:function(){return Math.trunc((this.date-this.now)/60/60/24)}}}),Vue.component("freeCoins",{template:"#free-coins-template",data:function(){return{affID:"",loadingSubmit:!1,showSuccess:!1}},methods:{submitAffID:function(e){e.preventDefault();var t=this;if(!t.loadingSubmit){t.loadingSubmit=!0;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/affiliate/referral",data:{aff_id:t.affID,_token:n}}).success(function(e){t.showSuccess=!0,$(".js-balance").empty().append(e.balance.toFixed(2)),helpers.showSuccess(e.message)}).error(function(e){helpers.showError(e.responseJSON.message),t.loadingSubmit=!1})}}}}),Vue.component("winningsTabsController",{template:"#winnings-tab-controller-template",data:function(){return{currentView:"winningsPage"}}}),Vue.component("winningsPage",{template:"#winnings-page-template",data:function(){return{showTradeUrl:!1,tradeUpdateLoading:!1,traderUrl:"",selectedItems:[],selectedItemsCount:0,itemsValue:0,toBalanceLoading:!1,acceptLoading:!1,showAcceptModal:!1,withdrawLoading:!1,tradeUrl:"",ws:""}},ready:function(){function e(){var n,i=this;i.ws=new WebSocket(global_settings.node_offers_url+"?userId="+global_settings.steam_user_id+"&channel=withdrawal"),i.ws.onopen=function(){i.backoff.reset()},i.ws.onclose=function(){i.backoff.execute(function(){n&&clearInterval(n),i.ws.close(),e.call(i)})},i.ws.onmessage=function(e){var n=JSON.parse(e.data);if("steam-status"==n.type){var i=n.data;i.is_error?(helpers.showError(i.error),t.withdrawLoading=!1,t.showAcceptModal=!1,t.acceptLoading=!1):3!==i.status&&0==t.showAcceptModal?(t.showAcceptModal=!0,t.tradeUrl=i.trade_url):3===i.status&&location.reload()}},i.ws.onerror=function(e){setTimeout(function(){i.ws.close();},100)}}var t=this;this.hide="",this.backoff=function(){function e(){s=1}function t(e){i=setTimeout(function(){i&&clearTimeout(i),s++,e()},n(s))}function n(e){return Math.floor(1e3*Math.min(30,Math.pow(2,e)-1))}var i,s=1;return{reset:e,execute:t}}(),("WebSocket"in window||"MozWebSocket"in window)&&e.call(this)},computed:{user_has_trade_url:function(){return global_settings.user_has_trade_url}},methods:{toBalance:function(){var e=this;if(!e.toBalanceLoading&&!e.withdrawLoading){var t=$('meta[name="csrf_token"]').attr("content");e.toBalanceLoading=!0,$.ajax({method:"POST",url:"/api/winning/to/balance",data:{selectedItems:JSON.stringify(e.selectedItems),_token:t}}).success(function(e){helpers.showSuccess(e.message),window.location.reload()}).error(function(t){helpers.showError(t.responseJSON.message),e.toBalanceLoading=!1})}},withdrawItems:function(){var e=this;if(!e.withdrawLoading&&!e.toBalanceLoading){var t=$('meta[name="csrf_token"]').attr("content");e.withdrawLoading=!0,$.ajax({method:"POST",url:"/api/create-offer",data:{items:JSON.stringify(e.selectedItems),_token:t}}).error(function(t){helpers.showError(t.responseJSON.message),e.withdrawLoading=!1,e.showAcceptModal=!1,e.acceptLoading=!1})}},selectAll:function(e){var t=this;e.preventDefault(),t.selectedItems=[],t.selectedItemsCount=0,t.itemsValue=0,$(".skin-wrapper").each(function(e,n){var i=$(n).attr("data-id"),s=parseFloat($(n).attr("data-price"));t.addItem(i,s)})},isInArray:function(e){var t=this;return t.selectedItems.indexOf(e)>-1},addItem:function(e,t){var n=this,i=n.selectedItems.indexOf(e);i==-1?(n.selectedItems.push(e),n.selectedItemsCount+=1,n.itemsValue+=parseFloat(t)):(n.selectedItems.splice(i,1),n.selectedItemsCount-=1,n.itemsValue-=parseFloat(t))},updateTradeUrl:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");e.tradeUpdateLoading||(e.tradeUpdateLoading=!0,$.ajax({method:"POST",url:"/api/steam-user/update-steam-trade-url/",data:{trade_url:e.traderUrl,_token:t}}).success(function(t){e.tradeUpdateLoading=!1,helpers.showSuccess(t),$(".js-show").removeClass("js-show"),e.showTradeUrl=!1,""==e.traderUrl?global_settings.user_has_trade_url=!1:global_settings.user_has_trade_url=!0}).error(function(t){helpers.showError(t.responseJSON.message),e.tradeUpdateLoading=!1}))}},components:{giftCards:{template:"#gift-cards-template",props:["prices"],data:function(){return{loading:null,showModal:!1,couponCode:"",couponAmount:""}},methods:{getThis:function(e){var t=this;if(null==t.loading){t.loading=e,t.couponAmount=t.prices[e];var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/get/gift",data:{_token:n,amount:t.prices[e]}}).success(function(e){t.loading=null,t.couponCode=e.coupon,t.showModal=!0,$(".js-balance").empty().append(e.balance.toFixed(2))}).error(function(e){t.loading=null,helpers.showError(e.responseJSON.message)})}}}}}}),Vue.component("chestsPage",{template:"#chests-page-template",data:function(){return{showTradeUrl:!1,tradeUpdateLoading:!1,traderUrl:"",selectedItems:[],selectedItemsCount:0,itemsValue:0,toBalanceLoading:!1,acceptLoading:!1,showAcceptModal:!1,withdrawLoading:!1,tradeUrl:"",ws:""}},ready:function(){function e(){var n,i=this;i.ws=new WebSocket(global_settings.node_offers_url+"?userId="+global_settings.steam_user_id+"&channel=withdrawal"),i.ws.onopen=function(){i.backoff.reset()},i.ws.onclose=function(){i.backoff.execute(function(){n&&clearInterval(n),i.ws.close(),e.call(i)})},i.ws.onmessage=function(e){var n=JSON.parse(e.data);if("steam-status"==n.type){var i=n.data;i.is_error?(helpers.showError(i.error),t.withdrawLoading=!1,t.showAcceptModal=!1,t.acceptLoading=!1):3!==i.status&&0==t.showAcceptModal?(t.showAcceptModal=!0,t.tradeUrl=i.trade_url):3===i.status&&location.reload()}},i.ws.onerror=function(e){setTimeout(function(){i.ws.close()},100)}}var t=this;this.hide="",this.backoff=function(){function e(){s=1}function t(e){i=setTimeout(function(){i&&clearTimeout(i),s++,e()},n(s))}function n(e){return Math.floor(1e3*Math.min(30,Math.pow(2,e)-1))}var i,s=1;return{reset:e,execute:t}}(),("WebSocket"in window||"MozWebSocket"in window)&&e.call(this)},computed:{user_has_trade_url:function(){return global_settings.user_has_trade_url}},methods:{toBalance:function(){var e=this;if(!e.toBalanceLoading&&!e.withdrawLoading){var t=$('meta[name="csrf_token"]').attr("content");e.toBalanceLoading=!0,$.ajax({method:"POST",url:"/api/drake-clash/sell",data:{winning:e.selectedItems,_token:t}}).success(function(e){helpers.showSuccess(e.message),window.location.reload()}).error(function(t){helpers.showError(t.responseJSON.message),e.toBalanceLoading=!1})}},withdrawItems:function(){var e=this;if(!e.withdrawLoading&&!e.toBalanceLoading){var t=$('meta[name="csrf_token"]').attr("content");e.withdrawLoading=!0,$.ajax({method:"POST",url:"/api/create-offer",data:{items:JSON.stringify(e.selectedItems),_token:t}}).error(function(t){helpers.showError(t.responseJSON.message),e.withdrawLoading=!1,e.showAcceptModal=!1,e.acceptLoading=!1})}},selectAll:function(e){var t=this;e.preventDefault(),t.selectedItems=[],t.selectedItemsCount=0,t.itemsValue=0,$(".skin-wrapper").each(function(e,n){var i=$(n).attr("data-id"),s=parseFloat($(n).attr("data-price"));t.addItem(i,s)})},isInArray:function(e){var t=this;return t.selectedItems.indexOf(e)>-1},addItem:function(e,t){var n=this,i=n.selectedItems.indexOf(e);i==-1?(n.selectedItems.push(e),n.selectedItemsCount+=1,n.itemsValue+=parseFloat(t)):(n.selectedItems.splice(i,1),n.selectedItemsCount-=1,n.itemsValue-=parseFloat(t))},updateTradeUrl:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");e.tradeUpdateLoading||(e.tradeUpdateLoading=!0,$.ajax({method:"POST",url:"/api/steam-user/update-steam-trade-url/",data:{trade_url:e.traderUrl,_token:t}}).success(function(t){e.tradeUpdateLoading=!1,helpers.showSuccess(t),$(".js-show").removeClass("js-show"),e.showTradeUrl=!1,""==e.traderUrl?global_settings.user_has_trade_url=!1:global_settings.user_has_trade_url=!0}).error(function(t){helpers.showError(t.responseJSON.message),e.tradeUpdateLoading=!1}))}},components:{giftCards:{template:"#gift-cards-template",props:["prices"],data:function(){return{loading:null,showModal:!1,couponCode:"",couponAmount:""}},methods:{getThis:function(e){var t=this;if(null==t.loading){t.loading=e,t.couponAmount=t.prices[e];var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/get/gift",data:{_token:n,amount:t.prices[e]}}).success(function(e){t.loading=null,t.couponCode=e.coupon,t.showModal=!0,$(".js-balance").empty().append(e.balance.toFixed(2))}).error(function(e){t.loading=null,helpers.showError(e.responseJSON.message)})}}}}}}),$("#support-page").length)var c=new Vue({el:"#support-page",data:{cases:null,stage:1,question:0,recaptchaSubmitSupport:null},ready:function(){},methods:{moveToTheNextStage:function(e){var t=this;$('[class^="form-stage-"]',t.$el).addClass("hide"),e.removeClass("hide"),e.find(".chosen-select").chosen({disable_search:!0})},validateEmail:function(e){var t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)},submitForm:function(e){e.preventDefault()},onButtonNextClick:function(e){var t=this,n=$(e.currentTarget),i=n.attr("data-next-stage"),s=$(".form-stage-1",t.$el).find(".chosen-select option:selected").val(),r=$(".form-stage-"+i,t.$el);if(2!=i||""!=s){if(2==i&&""!=s&&(r.find(".form-substage-"+s).removeClass("hide"),t.moveToTheNextStage(r)),3==i){var o=!1;switch(parseInt(s)){case 1:var a=$("input[name=support_lost]"),l=a.val(),c=$('textarea[name="support_additional_info"]'),u=c.val();if(""==l){a.addClass("error");break}if(a.removeClass("error"),""==u){c.addClass("error");break}c.removeClass("error"),o=!0,t.moveToTheNextStage(r);break;case 2:var h=$("input[name=support_2_error_message]"),d=h.val(),c=$('textarea[name="support_2_additional_info"]'),u=c.val();if(""==d){h.addClass("error");break}if(h.removeClass("error"),""==u){c.addClass("error");break}c.removeClass("error"),o=!0,t.moveToTheNextStage(r);break;case 5:var h=$("input[name=support_5_headline]"),d=h.val(),c=$('textarea[name="support_5_message"]'),u=c.val();if(""==d){h.addClass("error");break}if(h.removeClass("error"),""==u){c.addClass("error");break}c.removeClass("error"),o=!0,t.moveToTheNextStage(r)}$("#recaptchaSubmitSupport").length&&o&&(t.recaptchaSubmitSupport=grecaptcha.render("recaptchaSubmitSupport",{sitekey:"6LdtkygTAAAAAEEMvSnSMGPv4x6eoyqVXbWYmi4O",theme:"light"}))}if(4==i){var f=$("input[name=support_email]"),p=f.val();grecaptcha.getResponse(t.recaptchaRemindPassword);if(!t.validateEmail(p))return void f.addClass("error");f.removeClass("error"),$("input[data-next-stage=4]").addClass("loading"),$.ajax({method:"POST",url:"/support",data:$("#suppport-form").serialize()}).success(function(e){t.moveToTheNextStage(r)}).error(function(e){helpers.showError(e.responseJSON.message),vm.isMoving=!1})}}}}});Vue.filter("orderWeekTotal",function(e){return parseFloat(e)}),Vue.component("affiliateTabsController",{template:"#affiliates-tab-controller-template",data:function(){return{currentView:"affiliates"}}}),Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e},Vue.component("affiliates",{template:"#affiliates-page-template",data:function(){return{mainAff:[],activeTab:1,affID:"",ajaxLoading:!1,collectingCoins:!1,weekLoaded:!1,allTimeLoaded:!1,sortKey:"people",reverse:-1,AsortKey:"people",Areverse:-1,MsortKey:"name",Mreverse:1}},ready:function(){var e=this;e.animateCircle(),$.getJSON("/my-affiliates").done(function(t){e.mainAff=t.items}).fail(function(e){helpers.showWarning(e.responseJSON[0].message)})},methods:{dateToYMD:function(e){var t=e.getDate(),n=e.getMonth()+1,i=e.getFullYear();return""+i+"-"+(n<=9?"0"+n:n)+"-"+(t<=9?"0"+t:t)},sortBy:function(e,t){t.preventDefault();var n=this;n.reverse*=-1,n.sortKey=e},AsortBy:function(e,t){t.preventDefault();var n=this;n.Areverse*=-1,n.AsortKey=e},animateCircle:function(){var e=$(".progress-text").data("new-progress");$(".progress-circle-prog").css({"stroke-dasharray":e+" 999"})},copyUrl:function(){var e=$(".js-copy-id-url").attr("href");prompt("Press Ctrl + C, then Enter to copy to clipboard",e)},MsortBy:function(e,t){t.preventDefault();var n=this;n.Mreverse*=-1,n.MsortKey=e},collectCoins:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");return!e.collectingCoins&&(e.collectingCoins=!0,void $.ajax({method:"POST",url:"/api/affiliate/collect/coins",data:{_token:t}}).success(function(t){e.collectingCoins=!1,$(".js-balance").empty().append(t.balance.toFixed(2)),$(".js-coins-to-collect").empty().append("0"),helpers.showSuccess(t.message)}).error(function(t){helpers.showError(t.responseJSON.message),e.collectingCoins=!1}))},saveNewID:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");return!e.ajaxLoading&&(e.ajaxLoading=!0,void $.ajax({method:"POST",url:"/api/steam-user/update-affiliate-name",data:{_token:t,newID:e.affID}}).success(function(t){e.ajaxLoading=!1,helpers.showSuccess(t.message),$("input[name=current-aff-id]").attr("disabled","disabled")}).error(function(t){helpers.showError(t.responseJSON.message),e.ajaxLoading=!1}))}}}),Vue.component("caseStats",{template:"#your-case-stats-template",data:function(){return{sortKey:"name",sortOrder:-1,items:[],allPages:[],page:1,pageCount:0,loading:!1,collectingCoins:!1}},ready:function(){var e=this;e.getItems(!0)},methods:{collectCoins:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");return!e.collectingCoins&&(e.collectingCoins=!0,void $.ajax({method:"POST",url:"/api/create-case/collect-coins",data:{_token:t}}).success(function(t){e.collectingCoins=!1,$(".js-balance").empty().append(t.balance.toFixed(2)),$(".js-coins-to-collect").empty().append("0"),helpers.showSuccess(t.message)}).error(function(t){helpers.showError(t.responseJSON.message),e.collectingCoins=!1}))},changeSort:function(e){var t=this;t.sortKey=e,t.sortOrder*=-1,t.getItems(!0)},getItems:function(e){var t=this;if(t.loading)return!1;t.loading=!0;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"api/create-case/stats",data:{page:t.page,sortOrder:1==t.sortOrder?"desc":"asc",sortKey:t.sortKey,_token:n},method:"GET",success:function(n){t.items=n.items,t.pageCount=n.pageCount,t.loading=!1,e&&(t.allPages=[],t.page=1,$(document.getElementById("pagination-wrapper")).pagination({items:24*t.pageCount,itemsOnPage:24,edges:1,prevText:"&laquo;",nextText:"&raquo;",onPageClick:function(e,n){t.onPageClick(e,n)}})),t.allPages[t.page]=n.items},error:function(e){t.loading=!1,alertify.error(e.responseJSON.message)}})},onPageClick:function(e,t){var n=this;n.page=e,e in n.allPages?n.items=n.allPages[e]:n.getItems(!1,!1)}}}),Vue.component("drakeclashIndex",{template:"#drakeclash-index",props:["diamonds","diamondsDate","startingChests"],data:function(){return{showOpenChestModal:!1,finished:!1,isMoving:!1,items:[],winInfo:{},animStart:0,tf:0,vi:0,wobble:0,skinWidth:135,slider_width:0,caseID:0,"case":0,currentChest:{name:"",img:""},chests:[],userDiamonds:0,date:null,currentDate:Math.trunc((new Date).getTime()/1e3),minutes:0,seconds:0,hours:0,ended:!1,interval:null,balance:0}},filters:{itemName:function(e){return e.indexOf("|")<0?e:e.slice(0,e.indexOf("|")-1)},skinName:function(e){return e.indexOf("|")<0?e:e.slice(e.indexOf("|")+1,e.length)}},ready:function(){var e=this;e.userDiamonds=e.diamonds,e.date=Math.trunc(Date.parse(e.diamondsDate)/1e3),e.chests=JSON.parse(e.startingChests),e.doCalculation(),window.setInterval(function(){e.doCalculation()},1e3),e.$on("menu-change",function(t){if(e.inPlay)for(var n=$(document.getElementById("box-page")).find(".roulette-inner"),i=0;i<n.length;i++){var s=n.eq(i).css("transform").split(",")[4];t?n.eq(i).css("transform","translate("+(parseFloat(s)+90)+"px, 0px)"):n.eq(i).css("transform","translate("+(parseFloat(s)-90)+"px, 0px)")}})},computed:{btnConfirm:function(){var e=this;return!e.isMoving&&e.finished},hours:function(){var e=this;return Math.trunc((e.date-e.currentDate)/60/60)%24},minutes:function(){var e=this;return Math.trunc((e.date-e.currentDate)/60)%60},seconds:function(){var e=this;return Math.trunc(e.date-e.currentDate)%60},progress:function(){var e=this,t=(3600*global_settings.clash_claim_hours-e.date+e.currentDate)/(3600*global_settings.clash_claim_hours)*100;return t>100?100:t}},methods:{playSound:function(e){var t=null!=localStorage.getItem("sound")?localStorage.getItem("sound"):1;1==t&&$(document.getElementById(e))[0].play()},claimCoins:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/drake-clash/claim",data:{_token:t}}).success(function(t){e.userDiamonds=t.diamonds,e.date=Math.trunc(Date.parse(t.date)/1e3)}).error(function(e){helpers.showError(e.responseJSON.message)})},doCalculation:function(){var e=this;e.currentDate=Math.trunc((new Date).getTime()/1e3),e.date-e.currentDate<=0&&(e.ended=!0)},confirmAndContinueClicked:function(){var e=this;!e.isMoving&&e.finished&&(e.showOpenChestModal=!1)},sellForClicked:function(){var e=this,t="",n=null;"chest"==e.winInfo.type?(t="/api/drake-clash/sell",n=[],n.push(e.winInfo.winId)):(t="/api/winning/single/to/balance",n=e.winInfo.winId);var i=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:t,data:{winning:n,_token:i}}).success(function(t){"chest"==e.winInfo.type?e.userDiamonds=t.diamonds:$(".js-balance").html(t.balance.toFixed(2)),e.showOpenChestModal=!1,helpers.showSuccess(t.message)}).error(function(e){helpers.showError(e.responseJSON.message)})},tryAgainClicked:function(){var e=this;e.showOpenChestModal=!1,e.clickedChest(e.currentChest.id)},clickedChest:function(e){var t=this;if(t.currentChest=t.chests[e-1],1!=t.isMoving){t.isMoving=!0,t.$parent.allowMenuChanges=!1;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"GET",url:"/api/drake-clash/open",data:{case_id:e,_token:n}}).success(function(e){t.showOpenChestModal=!0,t.inPlay=!0,t.finished=!1,t.userDiamonds=e.diamonds,t.items=e.items,t.items=t.items.concat(t.items),t.items=t.items.concat(t.items),t.items.push(t.items[0]),t.items.push(t.items[1]),t.items.push(t.items[2]),t.winInfo=e.winInfo,t.winInfo.winId=e.winId;for(var n=null,i=0;i<t.items.length;i++)t.items[i].id==parseInt(e.winInfo.id)&&null==n&&(n=i);t.interval=setInterval(function(){var e=$("#chest-roulette").width();e>0&&t.spin(n,0)},16)}).error(function(e){helpers.showError(e.responseJSON.message),t.isMoving=!1,t.$parent.allowMenuChanges=!0})}},spin:function(e){var t=this;window.clearInterval(t.interval),t.sliderWidth=$("#chest-roulette").width();var n=$("#roulette-inner");t.numberOfSkins=n.find(".skins").length-3,t.slider_width=t.skinWidth*t.numberOfSkins;var i=e*t.skinWidth+t.skinWidth/2+5;i+=t.slider_width,t.animStart=(new Date).getTime(),t.vi=t.getVi(i),t.tf=t.getTf(t.vi),t.renderRoll(t.tf,t.vi,t.animStart)},viewSlider:function(e){var t=this,n=$("#chest-roulette .roulette-inner").eq(0);t.slider_width=t.skinWidth*(n.find(".skins").length-3),e=-((e+t.slider_width-t.sliderWidth/2)%t.slider_width),n.css("transform","translate("+e+"px, 0px)")},renderRoll:function(e,t,n){var i=this,s=Math.log(.999),r=(new Date).getTime()-n;r>e&&(r=e);var o=t*(Math.pow(.999,r)-1)/s;i.viewSlider(o),r<e?requestAnimationFrame(function(){i.renderRoll(e,t,n)}):(i.isMoving=!1,i.$parent.allowMenuChanges=!0,i.inPlay=!0,i.finished=!0)},getVi:function(e){var t=Math.log(.999);return.01-e*t},getTf:function(e){var t=Math.log(.999);return(Math.log(.01)-Math.log(e))/t}}}),Vue.component("drakeclash-top-players",{template:"#drakeclash-top-100-template",data:function(){return{loading:!1,items:[],date:"",position:"-",dateRange:"",amount:-1}},ready:function(){var e=this;e.getItems()},methods:{getItems:function(){var e=this;if(e.loading)return!1;e.loading=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({url:"api/drake-clash/topPlayers",data:{date:e.dateRange,_token:t},method:"GET",success:function(t){e.items=t.players,e.date=t.date,e.position=t.position,e.amount=t.amount,e.loading=!1},error:function(t){e.loading=!1,alertify.error(t.responseJSON.message)}})}},watch:{dateRange:function(){var e=this;e.getItems()}}}),Vue.component("tradeUp",{template:"#trade-up-template",name:"trade-up",props:["text","minAmount"],data:function(){return{items:[],selectedItems:[],allPages:[],indexes:[],loading:!1,contractSignModal:!1,contractResultModal:!1,progress:0,sum:0,pageCount:0,page:1,loadingWin:!1,winInfo:{},idToSearch:0,interval:null}},ready:function(){var e=this;$("#simple_sketch").sketch(),e.getItems(!0)},filters:{itemName:function(e){return e.slice(0,e.indexOf("|")-1)},skinName:function(e){return e.slice(e.indexOf("|")+1,e.indexOf("("))},skinWear:function(e){return e.slice(e.indexOf("("),1+e.indexOf(")"))}},methods:{refresh:function(){var e=this;e.page=1,e.getItems(!0),e.loading=!0,e.interval=setInterval(function(){e.loading||e.checkItems()},16)},checkItems:function(){var e=this;clearInterval(e.interval);for(var t=0;t<e.indexes.length;t++)e.idToSearch=e.indexes[t],"undefined"==typeof e.items.find(e.findItemIndex)&&e.deselectItem(e.selectedItems.find(e.findItemIndex))},getItems:function(e){var t=this;t.loading=!0;var n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"GET",url:"/api/trade-up/items?page="+t.page,data:{_token:n}}).success(function(n){t.loading=!1,t.items=n.items,t.pageCount=n.total_pages,e&&(t.allPages=[],t.page=1,$(document.getElementById("pagination-wrapper")).pagination({items:16*t.pageCount,itemsOnPage:16,edges:1,prevText:"&laquo;",nextText:"&raquo;",onPageClick:function(e,n){t.onPageClick(e,n)}})),t.allPages[t.page]=n.items}).error(function(e){t.loading=!1,helpers.showError(e.responseJSON.message)})},contractSignCheck:function(){var e=this;e.progress>=3&&(e.sum<.3?helpers.showError(e.text+e.minAmount):e.contractSignModal=!0)},onPageClick:function(e,t){var n=this;n.page=e,e in n.allPages?n.items=n.allPages[e]:n.getItems(!1,!1)},selectItem:function(e){var t=this;t.indexes.indexOf(e.id)==-1&&t.selectedItems.length<10&&(t.selectedItems.push(e),t.indexes.push(e.id),t.progress++,t.sum+=parseFloat(e.price))},deselectItem:function(e){var t=this,n=t.selectedItems.indexOf(e);n!==-1&&(t.selectedItems.splice(n,1),t.indexes.splice(t.indexes.indexOf(e.id),1),t.progress--,t.sum-=parseFloat(e.price))},selectAll:function(){var e=this;e.selectedItems.splice(0,e.selectedItems.length),e.sum=0,e.progress=0,e.indexes.splice(0,e.indexes.length);for(var t=e.items.length>10?10:e.items.length,n=0;n<t;n++)e.selectItem(e.items[n])},findItemIndex:function(e){return e.id==this.idToSearch},playSound:function(e){var t=null!=localStorage.getItem("sound")?localStorage.getItem("sound"):1;1==t&&$(document.getElementById(e))[0].play()},signContract:function(){var e=this;e.loadingWin=!0;var t=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/trade-up/trade",data:{selectedItems:e.indexes,_token:t}}).success(function(t){ga("send","event","tradeUp","signed"),e.winInfo=t.reward,e.contractSignModal=!1,e.contractResultModal=!0,e.playSound("audio-trade-up-gears");for(var n=0;n<e.indexes.length;n++)e.idToSearch=e.indexes[n],e.items.splice(e.items.find(e.findItemIndex),1);e.indexes.splice(0,e.indexes.length),e.selectedItems.splice(0,e.selectedItems.length),e.progress=0,e.sum=0,e.loadingWin=!1}).error(function(t){e.loadingWin=!1,helpers.showError(t.responseJSON.message)})},closeResultModal:function(){var e=this;e.contractResultModal=!1,e.refresh()},convertToBalance:function(e){var t=this,n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/winning/single/to/balance",data:{winning:e,_token:n}}).success(function(e){t.contractResultModal=!1,$(".js-balance").html(e.balance.toFixed(2)),helpers.showSuccess(e.message),t.closeResultModal()}).error(function(e){t.contractResultModal=!1,helpers.showError(e.responseJSON.message)})},convertToTradeUp:function(e){var t=this,n=$('meta[name="csrf_token"]').attr("content");$.ajax({method:"POST",url:"/api/winning/single/to/trade-up",data:{winning:e,_token:n}}).success(function(e){t.contractResultModal=!1,helpers.showSuccess(e.message)}).error(function(e){t.contractResultModal=!1,helpers.showError(e.responseJSON.message)})}}});var common=new Vue({el:"#page",data:{count:0,addFundsModal:!1,fundsLoading:!1,socket:null,currentTradesView:"payment-options",userAgreementModal:!0,homeView:"indexCases",imageBase:global_settings.image_base,showAcceptTradeOffer:!1,tradeUrl:"",acceptLoading:!1,minimizedMenu:"1"==localStorage.getItem("menuState"),numberOfItems:18,secretCode:"",wsDeposits:"",allowMenuChanges:!0},ready:function(){function e(){function e(){s=1}function t(e){i=setTimeout(function(){i&&clearTimeout(i),s++,e()},n(s))}function n(e){return Math.floor(1e3*Math.min(30,Math.pow(2,e)-1))}var i,s=1;return{reset:e,execute:t}}function t(e,n,i){var s,r=this;r.ws=new WebSocket(e+"?userId="+global_settings.steam_user_id+"&channel="+i),r.ws.onmessage=n,r.ws.onopen=function(){r.backoff.reset()},r.ws.onclose=function(){r.backoff.execute(function(){s&&clearInterval(s),r.ws.close(),t.call(r,e,n,i)})},r.ws.onerror=function(e){setTimeout(function(){r.ws.close()},100)}}function n(e){var t=JSON.parse(e.data);switch(t[0]){case"socket-users-count":common.count=t[1];break;case"case-opened":common.broadcastData(t[1]);break;case"comment":common.broadcastComment(t[1])}}var i=this;$(".hide-on-load",i.$el).toggleClass("hide-on-load"),window.addEventListener("resize",i.handleResize),i.handleResize();var s=null!=localStorage.getItem("sound")?localStorage.getItem("sound"):1;s==-1&&$("#sound-controls a").addClass("inactive"),this.wsCommon={backoff:e()},this.wsDeposits={backoff:e()},("WebSocket"in window||"MozWebSocket"in window)&&(t.call(this.wsCommon,global_settings.node_url,n,"game"),t.call(this.wsDeposits,global_settings.node_deposit_url,function(){},"deposit"))},methods:{changeMenuState:function(){var e=this;e.allowMenuChanges&&(e.minimizedMenu?(e.minimizedMenu=!1,localStorage.setItem("menuState","0")):(e.minimizedMenu=!0,localStorage.setItem("menuState","1")),e.handleResize(!0),e.$broadcast("menu-change",e.minimizedMenu))},broadcastComment:function(e){this.$broadcast("newComment",e)},broadcastData:function(e){this.$broadcast("broadcast",e)},openBonusModal:function(){this.$broadcast("openBonusModal")},playSound:function(e){var t=null!=localStorage.getItem("sound")?localStorage.getItem("sound"):1;1==t&&$(document.getElementById(e))[0].play()},changeSound:function(e){var t=null!=localStorage.getItem("sound")?localStorage.getItem("sound"):1;t*=-1,localStorage.setItem("sound",t),$(e.currentTarget).toggleClass("inactive")},closeAddFunds:function(){var e=this;e.addFundsModal=!1,e.currentTradesView="payment-options"},handleResize:function(e){var t=this,n=document.documentElement.clientWidth;n<700&&e!==!0&&(t.minimizedMenu=!0,localStorage.setItem("menuState","1"));var i=t.minimizedMenu?30:190;t.numberOfItems=Math.floor((n-i-50-115)/95),window.dispatchEvent(new Event("menuChange"))}},components:{latestWins:{template:"#latest-wins-template",props:["items"],created:function(){var e=this;this.$on("broadcast",function(t){setTimeout(function(){e.items.push(t)},7e3)})}},welcomeBackBonus:{template:"#welcome-back-modal",data:function(){return{showBonusModal:!0}}},drakements:{template:"#drakements-template",data:function(){return{voting:[],items:[],show:!0,loading:!0,imageBase:global_settings.image_base}},ready:function(){var e=this;e.getItems(),e.$on("newComment",function(t){e.loading||e.items.splice(4,0,t)})},methods:{getItems:function(){var e=this;$.ajax({url:"/api/get/comments",method:"GET",success:function(t){e.loading=!1,e.items=t.items},error:function(t){e.loading=!1,e.show=!1,alertify.error(t.responseJSON.message)}})},voteUp:function(e){var t=this,n=t.voting.indexOf(e);if(n>-1)return!1;var i=$('meta[name="csrf_token"]').attr("content");t.voting.push(e),$.ajax({method:"POST",url:"/api/comments/vote",data:{_token:i,commentId:e}}).success(function(n){var i=t.voting.indexOf(e);i>-1&&t.voting.splice(i,1);for(var s=0;s<t.items.length;s++)if(t.items[s].id==e){t.items[s].votes+=n.votes;break}helpers.showSuccess(n.message)}).error(function(n){var i=t.voting.indexOf(e);i>-1&&t.voting.splice(i,1),helpers.showError(n.responseJSON.message)})}}},paymentOptions:{template:"#payment-options-template",props:["paymentTypes","requiresPhone","smsOperators","initialTradeUrl"],data:function(){return{paymentProvider:"",paymentType:"",tradeUrl:"",loading:!1,fundsAmount:"",fundPromo:"",bonus:0,bonusAmounts:[]}},ready:function(){var e=this;e.bonusAmounts=JSON.parse(bonusAmounts),e.paymentTypes=JSON.parse(e.paymentTypes),e.requiresPhone=JSON.parse(e.requiresPhone),e.smsOperators=JSON.parse(e.smsOperators)},methods:{updateTradeUrl:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");e.loading||(e.loading=!0,$.ajax({method:"POST",url:"/api/steam-user/update-steam-trade-url/",data:{trade_url:e.traderUrl,_token:t}}).success(function(t){e.loading=!1,e.initialTradeUrl=e.tradeUrl,helpers.showSuccess(t)}).error(function(t){helpers.showError(t.responseJSON.message),e.loading=!1}))},findBonusPercent:function(e){var t=this,n=!1;return 1!=global_settings.payment_bonus?(t.bonus=0,!1):($.each(t.bonusAmounts,function(i,s){try{e>=s.ranges&&e<t.bonusAmounts[i+1].ranges&&(t.bonus=s.bonus,n=!0)}catch(r){}i==t.bonusAmounts.length-1&&e>=s.ranges&&(t.bonus=s.bonus,n=!0)}),void(n||(t.bonus=0)))},openBonusModal:function(){var e=this;e.$parent.currentTradesView="payment-options",e.$parent.addFundsModal=!1,e.$parent.openBonusModal()}},watch:{paymentType:function(e){var t=this;t.requiresPhone.indexOf(t.paymentType)!=-1&&$(".chosen-select").chosen({disable_search:!0})},paymentProvider:function(e){var t=this;"lokibay"==e&&(t.$parent.currentTradesView="depositWithSkins")},fundsAmount:function(e){var t=this;t.findBonusPercent(e)}}},depositWithSkins:{template:"#deposit-with-skins-template",props:["cashoutPercent"],data:function(){return{page:1,totalPages:1,items:[],allPages:[],loading:!0,pageCount:1,selectedItems:[],itemsValue:0,order:1,sortBy:"price",loadingSell:!1,offerIo:"",traderUrl:"",showTradeUrl:!1,tradeUpdateLoading:!1}},ready:function(){var e=this;e.getItems(!0,!0)},computed:{user_has_trade_url:function(){return global_settings.user_has_trade_url}},methods:{updateTradeUrl:function(){var e=this,t=$('meta[name="csrf_token"]').attr("content");e.tradeUpdateLoading||(e.tradeUpdateLoading=!0,$.ajax({method:"POST",url:"/api/steam-user/update-steam-trade-url/",data:{trade_url:e.traderUrl,_token:t}}).success(function(t){e.tradeUpdateLoading=!1,helpers.showSuccess(t),$(".js-show").removeClass("js-show"),e.showTradeUrl=!1,""==e.traderUrl?global_settings.user_has_trade_url=!1:global_settings.user_has_trade_url=!0}).error(function(t){helpers.showError(t.responseJSON.message),e.tradeUpdateLoading=!1}))},getItems:function(e,t){var n=this;n.loading=!0;var i=e?"/api/steam-user/renew-inventory":"/api/steam-user/get-inventory";n.page=e?1:n.page,$.ajax({url:i,data:{page:n.page,order:1==n.order?"desc":"asc",sortBy:n.sortBy},method:"GET",success:function(e){n.items=e.items,n.pageCount=e.page_count,n.loading=!1,t&&(n.allPages=[],$(document.getElementById("pagination-wrapper-deposit")).pagination({items:36*n.pageCount,itemsOnPage:36,edges:1,prevText:"&laquo;",nextText:"&raquo;",onPageClick:function(e,t){n.onPageClick(e,t)}})),n.allPages[n.page]=e.items},error:function(e){n.loading=!1,alertify.error(e.responseJSON.message)}})},getRandomOrnament:function(){var e=Math.floor(7*Math.random()+1);return e},isInArray:function(e){var t=this;return t.selectedItems.indexOf(e)>-1},addItem:function(e,t){var n=this,i=n.selectedItems.indexOf(e);i==-1&&100!=e&&n.selectedItems.length<36?(n.selectedItems.push(e),n.itemsValue+=parseFloat(t)):100!=e&&i!=-1&&(n.selectedItems.splice(i,1),n.itemsValue-=parseFloat(t))},selectAll:function(){var e=this;e.selectedItems=[],e.itemsValue=0,$.each(e.items,function(t){e.selectedItems.length<36&&100!=e.items[t].id&&e.addItem(e.items[t].id,e.items[t].price)})},onPageClick:function(e,t){var n=this;n.page=e,e in n.allPages?n.items=n.allPages[e]:n.getItems(!1,!1)},changeSort:function(e){var t=this;t.sortBy=e,t.order*=-1,t.getItems(!1,!1)},sellSkins:function(){var e=this;if(!e.loadingSell){var t=$('meta[name="csrf_token"]').attr("content");e.loadingSell=!0,$.ajax({method:"POST",url:"/api/deposit-offer",data:{items:JSON.stringify(e.selectedItems),_token:t},success:function(t){var n=e.$parent.wsDeposits.ws;n.onmessage=function(t){var n=JSON.parse(t.data);if("steam-status"==n.type){var i=n.data;i.is_error?(alertify.error(i.error),e.loadingSell=!1,e.$parent.showAcceptTradeOffer=!1,e.$parent.closeAddFunds()):3!==i.status?(ga("send","event","depositSkins","depositSkins"),e.$parent.showAcceptTradeOffer=!0,e.$parent.tradeUrl=i.trade_url,e.$parent.secretCode=i.secret_code,e.$parent.addFundsModal=!1,e.loadingSell=!1):3===i.status&&(ga("require","ecommerce"),ga("ecommerce:addTransaction",{id:i.steam_offer_id,revenue:i.offer_price,shipping:"0",tax:"0",currency:"EUR"}),ga("ecommerce:send"),location.reload())}}},error:function(t){alertify.error(t.responseJSON.message),e.loadingSell=!1}})}}}},seeDepositBonus:{template:"#see-deposit-bonuses",data:function(){return{items:[],modal:!1,loading:!1,bonusAmounts:JSON.parse(bonusAmounts)}},ready:function(){var e=this;e.$on("openBonusModal",function(){e.modal=!0})},methods:{closeModal:function(){var e=this;e.modal=!1,e.$parent.addFundsModal=!0}}}}});
Add Comment
Please, Sign In to add comment