(function(){var t=this,e=t._,i=Array.prototype,n=Object.prototype,a=Function.prototype,s=i.push,r=i.slice,o=i.concat,l=n.toString,d=n.hasOwnProperty,u=Array.isArray,h=Object.keys,c=a.bind,p=function(t){return t instanceof p?t:this instanceof p?void(this._wrapped=t):new p(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=p),exports._=p):t._=p,p.VERSION="1.7.0";var f=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,a){return t.call(e,i,n,a)};case 4:return function(i,n,a,s){return t.call(e,i,n,a,s)}}return function(){return t.apply(e,arguments)}};p.iteratee=function(t,e,i){return null==t?p.identity:p.isFunction(t)?f(t,e,i):p.isObject(t)?p.matches(t):p.property(t)},p.each=p.forEach=function(t,e,i){if(null==t)return t;e=f(e,i);var n,a=t.length;if(a===+a)for(n=0;n<a;n++)e(t[n],n,t);else{var s=p.keys(t);for(n=0,a=s.length;n<a;n++)e(t[s[n]],s[n],t)}return t},p.map=p.collect=function(t,e,i){if(null==t)return[];e=p.iteratee(e,i);for(var n,a=t.length!==+t.length&&p.keys(t),s=(a||t).length,r=Array(s),o=0;o<s;o++)n=a?a[o]:o,r[o]=e(t[n],n,t);return r};var m="Reduce of empty array with no initial value";p.reduce=p.foldl=p.inject=function(t,e,i,n){null==t&&(t=[]),e=f(e,n,4);var a,s=t.length!==+t.length&&p.keys(t),r=(s||t).length,o=0;if(arguments.length<3){if(!r)throw new TypeError(m);i=t[s?s[o++]:o++]}for(;o<r;o++)i=e(i,t[a=s?s[o]:o],a,t);return i},p.reduceRight=p.foldr=function(t,e,i,n){null==t&&(t=[]),e=f(e,n,4);var a,s=t.length!==+t.length&&p.keys(t),r=(s||t).length;if(arguments.length<3){if(!r)throw new TypeError(m);i=t[s?s[--r]:--r]}for(;r--;)i=e(i,t[a=s?s[r]:r],a,t);return i},p.find=p.detect=function(t,e,i){var n;return e=p.iteratee(e,i),p.some(t,(function(t,i,a){if(e(t,i,a))return n=t,!0})),n},p.filter=p.select=function(t,e,i){var n=[];return null==t||(e=p.iteratee(e,i),p.each(t,(function(t,i,a){e(t,i,a)&&n.push(t)}))),n},p.reject=function(t,e,i){return p.filter(t,p.negate(p.iteratee(e)),i)},p.every=p.all=function(t,e,i){if(null==t)return!0;e=p.iteratee(e,i);var n,a,s=t.length!==+t.length&&p.keys(t),r=(s||t).length;for(n=0;n<r;n++)if(!e(t[a=s?s[n]:n],a,t))return!1;return!0},p.some=p.any=function(t,e,i){if(null==t)return!1;e=p.iteratee(e,i);var n,a,s=t.length!==+t.length&&p.keys(t),r=(s||t).length;for(n=0;n<r;n++)if(e(t[a=s?s[n]:n],a,t))return!0;return!1},p.contains=p.include=function(t,e){return null!=t&&(t.length!==+t.length&&(t=p.values(t)),p.indexOf(t,e)>=0)},p.invoke=function(t,e){var i=r.call(arguments,2),n=p.isFunction(e);return p.map(t,(function(t){return(n?e:t[e]).apply(t,i)}))},p.pluck=function(t,e){return p.map(t,p.property(e))},p.where=function(t,e){return p.filter(t,p.matches(e))},p.findWhere=function(t,e){return p.find(t,p.matches(e))},p.max=function(t,e,i){var n,a,s=-1/0,r=-1/0;if(null==e&&null!=t)for(var o=0,l=(t=t.length===+t.length?t:p.values(t)).length;o<l;o++)(n=t[o])>s&&(s=n);else e=p.iteratee(e,i),p.each(t,(function(t,i,n){((a=e(t,i,n))>r||a===-1/0&&s===-1/0)&&(s=t,r=a)}));return s},p.min=function(t,e,i){var n,a,s=1/0,r=1/0;if(null==e&&null!=t)for(var o=0,l=(t=t.length===+t.length?t:p.values(t)).length;o<l;o++)(n=t[o])<s&&(s=n);else e=p.iteratee(e,i),p.each(t,(function(t,i,n){((a=e(t,i,n))<r||a===1/0&&s===1/0)&&(s=t,r=a)}));return s},p.shuffle=function(t){for(var e,i=t&&t.length===+t.length?t:p.values(t),n=i.length,a=Array(n),s=0;s<n;s++)(e=p.random(0,s))!==s&&(a[s]=a[e]),a[e]=i[s];return a},p.sample=function(t,e,i){return null==e||i?(t.length!==+t.length&&(t=p.values(t)),t[p.random(t.length-1)]):p.shuffle(t).slice(0,Math.max(0,e))},p.sortBy=function(t,e,i){return e=p.iteratee(e,i),p.pluck(p.map(t,(function(t,i,n){return{value:t,index:i,criteria:e(t,i,n)}})).sort((function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index})),"value")};var _=function(t){return function(e,i,n){var a={};return i=p.iteratee(i,n),p.each(e,(function(n,s){var r=i(n,s,e);t(a,n,r)})),a}};p.groupBy=_((function(t,e,i){p.has(t,i)?t[i].push(e):t[i]=[e]})),p.indexBy=_((function(t,e,i){t[i]=e})),p.countBy=_((function(t,e,i){p.has(t,i)?t[i]++:t[i]=1})),p.sortedIndex=function(t,e,i,n){for(var a=(i=p.iteratee(i,n,1))(e),s=0,r=t.length;s<r;){var o=s+r>>>1;i(t[o])<a?s=o+1:r=o}return s},p.toArray=function(t){return t?p.isArray(t)?r.call(t):t.length===+t.length?p.map(t,p.identity):p.values(t):[]},p.size=function(t){return null==t?0:t.length===+t.length?t.length:p.keys(t).length},p.partition=function(t,e,i){e=p.iteratee(e,i);var n=[],a=[];return p.each(t,(function(t,i,s){(e(t,i,s)?n:a).push(t)})),[n,a]},p.first=p.head=p.take=function(t,e,i){if(null!=t)return null==e||i?t[0]:e<0?[]:r.call(t,0,e)},p.initial=function(t,e,i){return r.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},p.last=function(t,e,i){if(null!=t)return null==e||i?t[t.length-1]:r.call(t,Math.max(t.length-e,0))},p.rest=p.tail=p.drop=function(t,e,i){return r.call(t,null==e||i?1:e)},p.compact=function(t){return p.filter(t,p.identity)};var g=function(t,e,i,n){if(e&&p.every(t,p.isArray))return o.apply(n,t);for(var a=0,r=t.length;a<r;a++){var l=t[a];p.isArray(l)||p.isArguments(l)?e?s.apply(n,l):g(l,e,i,n):i||n.push(l)}return n};p.flatten=function(t,e){return g(t,e,!1,[])},p.without=function(t){return p.difference(t,r.call(arguments,1))},p.uniq=p.unique=function(t,e,i,n){if(null==t)return[];p.isBoolean(e)||(n=i,i=e,e=!1),null!=i&&(i=p.iteratee(i,n));for(var a=[],s=[],r=0,o=t.length;r<o;r++){var l=t[r];if(e)r&&s===l||a.push(l),s=l;else if(i){var d=i(l,r,t);p.indexOf(s,d)<0&&(s.push(d),a.push(l))}else p.indexOf(a,l)<0&&a.push(l)}return a},p.union=function(){return p.uniq(g(arguments,!0,!0,[]))},p.intersection=function(t){if(null==t)return[];for(var e=[],i=arguments.length,n=0,a=t.length;n<a;n++){var s=t[n];if(!p.contains(e,s)){for(var r=1;r<i&&p.contains(arguments[r],s);r++);r===i&&e.push(s)}}return e},p.difference=function(t){var e=g(r.call(arguments,1),!0,!0,[]);return p.filter(t,(function(t){return!p.contains(e,t)}))},p.zip=function(t){if(null==t)return[];for(var e=p.max(arguments,"length").length,i=Array(e),n=0;n<e;n++)i[n]=p.pluck(arguments,n);return i},p.object=function(t,e){if(null==t)return{};for(var i={},n=0,a=t.length;n<a;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},p.indexOf=function(t,e,i){if(null==t)return-1;var n=0,a=t.length;if(i){if("number"!=typeof i)return t[n=p.sortedIndex(t,e)]===e?n:-1;n=i<0?Math.max(0,a+i):i}for(;n<a;n++)if(t[n]===e)return n;return-1},p.lastIndexOf=function(t,e,i){if(null==t)return-1;var n=t.length;for("number"==typeof i&&(n=i<0?n+i+1:Math.min(n,i+1));--n>=0;)if(t[n]===e)return n;return-1},p.range=function(t,e,i){arguments.length<=1&&(e=t||0,t=0),i=i||1;for(var n=Math.max(Math.ceil((e-t)/i),0),a=Array(n),s=0;s<n;s++,t+=i)a[s]=t;return a};var v=function(){};p.bind=function(t,e){var i,n;if(c&&t.bind===c)return c.apply(t,r.call(arguments,1));if(!p.isFunction(t))throw new TypeError("Bind must be called on a function");return i=r.call(arguments,2),n=function(){if(!(this instanceof n))return t.apply(e,i.concat(r.call(arguments)));v.prototype=t.prototype;var a=new v;v.prototype=null;var s=t.apply(a,i.concat(r.call(arguments)));return p.isObject(s)?s:a}},p.partial=function(t){var e=r.call(arguments,1);return function(){for(var i=0,n=e.slice(),a=0,s=n.length;a<s;a++)n[a]===p&&(n[a]=arguments[i++]);for(;i<arguments.length;)n.push(arguments[i++]);return t.apply(this,n)}},p.bindAll=function(t){var e,i,n=arguments.length;if(n<=1)throw new Error("bindAll must be passed function names");for(e=1;e<n;e++)t[i=arguments[e]]=p.bind(t[i],t);return t},p.memoize=function(t,e){var i=function(n){var a=i.cache,s=e?e.apply(this,arguments):n;return p.has(a,s)||(a[s]=t.apply(this,arguments)),a[s]};return i.cache={},i},p.delay=function(t,e){var i=r.call(arguments,2);return setTimeout((function(){return t.apply(null,i)}),e)},p.defer=function(t){return p.delay.apply(p,[t,1].concat(r.call(arguments,1)))},p.throttle=function(t,e,i){var n,a,s,r=null,o=0;i||(i={});var l=function(){o=!1===i.leading?0:p.now(),r=null,s=t.apply(n,a),r||(n=a=null)};return function(){var d=p.now();o||!1!==i.leading||(o=d);var u=e-(d-o);return n=this,a=arguments,u<=0||u>e?(clearTimeout(r),r=null,o=d,s=t.apply(n,a),r||(n=a=null)):r||!1===i.trailing||(r=setTimeout(l,u)),s}},p.debounce=function(t,e,i){var n,a,s,r,o,l=function(){var d=p.now()-r;d<e&&d>0?n=setTimeout(l,e-d):(n=null,i||(o=t.apply(s,a),n||(s=a=null)))};return function(){s=this,a=arguments,r=p.now();var d=i&&!n;return n||(n=setTimeout(l,e)),d&&(o=t.apply(s,a),s=a=null),o}},p.wrap=function(t,e){return p.partial(e,t)},p.negate=function(t){return function(){return!t.apply(this,arguments)}},p.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}},p.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},p.before=function(t,e){var i;return function(){return--t>0?i=e.apply(this,arguments):e=null,i}},p.once=p.partial(p.before,2),p.keys=function(t){if(!p.isObject(t))return[];if(h)return h(t);var e=[];for(var i in t)p.has(t,i)&&e.push(i);return e},p.values=function(t){for(var e=p.keys(t),i=e.length,n=Array(i),a=0;a<i;a++)n[a]=t[e[a]];return n},p.pairs=function(t){for(var e=p.keys(t),i=e.length,n=Array(i),a=0;a<i;a++)n[a]=[e[a],t[e[a]]];return n},p.invert=function(t){for(var e={},i=p.keys(t),n=0,a=i.length;n<a;n++)e[t[i[n]]]=i[n];return e},p.functions=p.methods=function(t){var e=[];for(var i in t)p.isFunction(t[i])&&e.push(i);return e.sort()},p.extend=function(t){if(!p.isObject(t))return t;for(var e,i,n=1,a=arguments.length;n<a;n++)for(i in e=arguments[n])d.call(e,i)&&(t[i]=e[i]);return t},p.pick=function(t,e,i){var n,a={};if(null==t)return a;if(p.isFunction(e))for(n in e=f(e,i),t){var s=t[n];e(s,n,t)&&(a[n]=s)}else{var l=o.apply([],r.call(arguments,1));t=new Object(t);for(var d=0,u=l.length;d<u;d++)(n=l[d])in t&&(a[n]=t[n])}return a},p.omit=function(t,e,i){if(p.isFunction(e))e=p.negate(e);else{var n=p.map(o.apply([],r.call(arguments,1)),String);e=function(t,e){return!p.contains(n,e)}}return p.pick(t,e,i)},p.defaults=function(t){if(!p.isObject(t))return t;for(var e=1,i=arguments.length;e<i;e++){var n=arguments[e];for(var a in n)void 0===t[a]&&(t[a]=n[a])}return t},p.clone=function(t){return p.isObject(t)?p.isArray(t)?t.slice():p.extend({},t):t},p.tap=function(t,e){return e(t),t};var y=function(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof p&&(t=t._wrapped),e instanceof p&&(e=e._wrapped);var a=l.call(t);if(a!==l.call(e))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}if("object"!=typeof t||"object"!=typeof e)return!1;for(var s=i.length;s--;)if(i[s]===t)return n[s]===e;var r,o,d=t.constructor,u=e.constructor;if(d!==u&&"constructor"in t&&"constructor"in e&&!(p.isFunction(d)&&d instanceof d&&p.isFunction(u)&&u instanceof u))return!1;if(i.push(t),n.push(e),"[object Array]"===a){if(o=(r=t.length)===e.length)for(;r--&&(o=y(t[r],e[r],i,n)););}else{var h,c=p.keys(t);if(r=c.length,o=p.keys(e).length===r)for(;r--&&(h=c[r],o=p.has(e,h)&&y(t[h],e[h],i,n)););}return i.pop(),n.pop(),o};p.isEqual=function(t,e){return y(t,e,[],[])},p.isEmpty=function(t){if(null==t)return!0;if(p.isArray(t)||p.isString(t)||p.isArguments(t))return 0===t.length;for(var e in t)if(p.has(t,e))return!1;return!0},p.isElement=function(t){return!(!t||1!==t.nodeType)},p.isArray=u||function(t){return"[object Array]"===l.call(t)},p.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},p.each(["Arguments","Function","String","Number","Date","RegExp"],(function(t){p["is"+t]=function(e){return l.call(e)==="[object "+t+"]"}})),p.isArguments(arguments)||(p.isArguments=function(t){return p.has(t,"callee")}),"function"!=typeof/./&&(p.isFunction=function(t){return"function"==typeof t||!1}),p.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},p.isNaN=function(t){return p.isNumber(t)&&t!==+t},p.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===l.call(t)},p.isNull=function(t){return null===t},p.isUndefined=function(t){return void 0===t},p.has=function(t,e){return null!=t&&d.call(t,e)},p.noConflict=function(){return t._=e,this},p.identity=function(t){return t},p.constant=function(t){return function(){return t}},p.noop=function(){},p.property=function(t){return function(e){return e[t]}},p.matches=function(t){var e=p.pairs(t),i=e.length;return function(t){if(null==t)return!i;t=new Object(t);for(var n=0;n<i;n++){var a=e[n],s=a[0];if(a[1]!==t[s]||!(s in t))return!1}return!0}},p.times=function(t,e,i){var n=Array(Math.max(0,t));e=f(e,i,1);for(var a=0;a<t;a++)n[a]=e(a);return n},p.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},p.now=Date.now||function(){return(new Date).getTime()};var M={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},b=p.invert(M),w=function(t){var e=function(e){return t[e]},i="(?:"+p.keys(t).join("|")+")",n=RegExp(i),a=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(a,e):t}};p.escape=w(M),p.unescape=w(b),p.result=function(t,e){if(null!=t){var i=t[e];return p.isFunction(i)?t[e]():i}};var L=0;p.uniqueId=function(t){var e=++L+"";return t?t+e:e},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var k=/(.)^/,D={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},T=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(t){return"\\"+D[t]};p.template=function(t,e,i){!e&&i&&(e=i),e=p.defaults({},e,p.templateSettings);var n=RegExp([(e.escape||k).source,(e.interpolate||k).source,(e.evaluate||k).source].join("|")+"|$","g"),a=0,s="__p+='";t.replace(n,(function(e,i,n,r,o){return s+=t.slice(a,o).replace(T,Y),a=o+e.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),e})),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var r=new Function(e.variable||"obj","_",s)}catch(t){throw t.source=s,t}var o=function(t){return r.call(this,t,p)},l=e.variable||"obj";return o.source="function("+l+"){\n"+s+"}",o},p.chain=function(t){var e=p(t);return e._chain=!0,e};var x=function(t){return this._chain?p(t).chain():t};p.mixin=function(t){p.each(p.functions(t),(function(e){var i=p[e]=t[e];p.prototype[e]=function(){var t=[this._wrapped];return s.apply(t,arguments),x.call(this,i.apply(p,t))}}))},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=i[t];p.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0],x.call(this,i)}})),p.each(["concat","join","slice"],(function(t){var e=i[t];p.prototype[t]=function(){return x.call(this,e.apply(this._wrapped,arguments))}})),p.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],(function(){return p}))}).call(this),function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],(function(i,n,a){t.Backbone=e(t,a,i,n)}));else if("undefined"!=typeof exports){var i=require("underscore");e(t,exports,i)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,(function(t,e,i,n){var a=t.Backbone,s=[],r=s.slice;e.VERSION="1.1.2",e.$=n,e.noConflict=function(){return t.Backbone=a,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o=e.Events={on:function(t,e,i){return d(this,"on",t,[e,i])&&e?(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:i,ctx:i||this}),this):this},once:function(t,e,n){if(!d(this,"once",t,[e,n])||!e)return this;var a=this,s=i.once((function(){a.off(t,s),e.apply(this,arguments)}));return s._callback=e,this.on(t,s,n)},off:function(t,e,n){var a,s,r,o,l,u,h,c;if(!this._events||!d(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(l=0,u=(o=t?[t]:i.keys(this._events)).length;l<u;l++)if(t=o[l],r=this._events[t]){if(this._events[t]=a=[],e||n)for(h=0,c=r.length;h<c;h++)s=r[h],(e&&e!==s.callback&&e!==s.callback._callback||n&&n!==s.context)&&a.push(s);a.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=r.call(arguments,1);if(!d(this,"trigger",t,e))return this;var i=this._events[t],n=this._events.all;return i&&u(i,e),n&&u(n,arguments),this},stopListening:function(t,e,n){var a=this._listeningTo;if(!a)return this;var s=!e&&!n;for(var r in n||"object"!=typeof e||(n=this),t&&((a={})[t._listenId]=t),a)(t=a[r]).off(e,n,this),(s||i.isEmpty(t._events))&&delete this._listeningTo[r];return this}},l=/\s+/,d=function(t,e,i,n){if(!i)return!0;if("object"==typeof i){for(var a in i)t[e].apply(t,[a,i[a]].concat(n));return!1}if(l.test(i)){for(var s=i.split(l),r=0,o=s.length;r<o;r++)t[e].apply(t,[s[r]].concat(n));return!1}return!0},u=function(t,e){var i,n=-1,a=t.length,s=e[0],r=e[1],o=e[2];switch(e.length){case 0:for(;++n<a;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<a;)(i=t[n]).callback.call(i.ctx,s);return;case 2:for(;++n<a;)(i=t[n]).callback.call(i.ctx,s,r);return;case 3:for(;++n<a;)(i=t[n]).callback.call(i.ctx,s,r,o);return;default:for(;++n<a;)(i=t[n]).callback.apply(i.ctx,e);return}};i.each({listenTo:"on",listenToOnce:"once"},(function(t,e){o[e]=function(e,n,a){return(this._listeningTo||(this._listeningTo={}))[e._listenId||(e._listenId=i.uniqueId("l"))]=e,a||"object"!=typeof n||(a=this),e[t](n,a,this),this}})),o.bind=o.on,o.unbind=o.off,i.extend(e,o);var h=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(h.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var a,s,r,o,l,d,u,h;if(null==t)return this;if("object"==typeof t?(s=t,n=e):(s={})[t]=e,n||(n={}),!this._validate(s,n))return!1;for(a in r=n.unset,l=n.silent,o=[],d=this._changing,this._changing=!0,d||(this._previousAttributes=i.clone(this.attributes),this.changed={}),h=this.attributes,u=this._previousAttributes,this.idAttribute in s&&(this.id=s[this.idAttribute]),s)e=s[a],i.isEqual(h[a],e)||o.push(a),i.isEqual(u[a],e)?delete this.changed[a]:this.changed[a]=e,r?delete h[a]:h[a]=e;if(!l){o.length&&(this._pending=n);for(var c=0,p=o.length;c<p;c++)this.trigger("change:"+o[c],this,h[o[c]],n)}if(d)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e,n=!1,a=this._changing?this._previousAttributes:this.attributes;for(var s in t)i.isEqual(a[s],e=t[s])||((n||(n={}))[s]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){void 0===(t=t?i.clone(t):{}).parse&&(t.parse=!0);var e=this,n=t.success;return t.success=function(i){if(!e.set(e.parse(i,t),t))return!1;n&&n(e,i,t),e.trigger("sync",e,i,t)},$(this,t),this.sync("read",this,t)},save:function(t,e,n){var a,s,r,o=this.attributes;if(null==t||"object"==typeof t?(a=t,n=e):(a={})[t]=e,n=i.extend({validate:!0},n),a&&!n.wait){if(!this.set(a,n))return!1}else if(!this._validate(a,n))return!1;a&&n.wait&&(this.attributes=i.extend({},o,a)),void 0===n.parse&&(n.parse=!0);var l=this,d=n.success;return n.success=function(t){l.attributes=o;var e=l.parse(t,n);if(n.wait&&(e=i.extend(a||{},e)),i.isObject(e)&&!l.set(e,n))return!1;d&&d(l,t,n),l.trigger("sync",l,t,n)},$(this,n),"patch"===(s=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=a),r=this.sync(s,this,n),a&&n.wait&&(this.attributes=o),r},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,a=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(i){(t.wait||e.isNew())&&a(),n&&n(e,i,t),e.isNew()||e.trigger("sync",e,i,t)},this.isNew())return t.success(),!1;$(this,t);var s=this.sync("delete",this,t);return t.wait||a(),s},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||F();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1)}});i.each(["keys","values","pairs","invert","pick","omit"],(function(t){h.prototype[t]=function(){var e=r.call(arguments);return e.unshift(this.attributes),i[t].apply(i,e)}}));var c=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,i.extend({silent:!0},e))},p={add:!0,remove:!0,merge:!0},f={add:!0,remove:!1};i.extend(c.prototype,o,{model:h,initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,f))},remove:function(t,e){var n,a,s,r,o=!i.isArray(t);for(e||(e={}),n=0,a=(t=o?[t]:i.clone(t)).length;n<a;n++)(r=t[n]=this.get(t[n]))&&(delete this._byId[r.id],delete this._byId[r.cid],s=this.indexOf(r),this.models.splice(s,1),this.length--,e.silent||(e.index=s,r.trigger("remove",r,this,e)),this._removeReference(r,e));return o?t[0]:t},set:function(t,e){(e=i.defaults({},e,p)).parse&&(t=this.parse(t,e));var n,a,s,r,o,l,d,u=!i.isArray(t);t=u?t?[t]:[]:i.clone(t);var c=e.at,f=this.model,m=this.comparator&&null==c&&!1!==e.sort,_=i.isString(this.comparator)?this.comparator:null,g=[],v=[],y={},M=e.add,b=e.merge,w=e.remove,L=!(m||!M||!w)&&[];for(n=0,a=t.length;n<a;n++){if(s=(o=t[n]||{})instanceof h?r=o:o[f.prototype.idAttribute||"id"],l=this.get(s))w&&(y[l.cid]=!0),b&&(o=o===r?r.attributes:o,e.parse&&(o=l.parse(o,e)),l.set(o,e),m&&!d&&l.hasChanged(_)&&(d=!0)),t[n]=l;else if(M){if(!(r=t[n]=this._prepareModel(o,e)))continue;g.push(r),this._addReference(r,e)}r=l||r,!L||!r.isNew()&&y[r.id]||L.push(r),y[r.id]=!0}if(w){for(n=0,a=this.length;n<a;++n)y[(r=this.models[n]).cid]||v.push(r);v.length&&this.remove(v,e)}if(g.length||L&&L.length)if(m&&(d=!0),this.length+=g.length,null!=c)for(n=0,a=g.length;n<a;n++)this.models.splice(c+n,0,g[n]);else{L&&(this.models.length=0);var k=L||g;for(n=0,a=k.length;n<a;n++)this.models.push(k[n])}if(d&&this.sort({silent:!0}),!e.silent){for(n=0,a=g.length;n<a;n++)(r=g[n]).trigger("add",r,this,e);(d||L&&L.length)&&this.trigger("sort",this,e)}return u?t[0]:t},reset:function(t,e){e||(e={});for(var n=0,a=this.models.length;n<a;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return r.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return i.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"]((function(e){for(var i in t)if(t[i]!==e.get(i))return!1;return!0}))},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){void 0===(t=t?i.clone(t):{}).parse&&(t.parse=!0);var e=t.success,n=this;return t.success=function(i){var a=t.reset?"reset":"set";n[a](i,t),e&&e(n,i,t),n.trigger("sync",n,i,t)},$(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?i.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var n=this,a=e.success;return e.success=function(t,i){e.wait&&n.add(t,e),a&&a(t,i,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof h)return t;(e=e?i.clone(e):{}).collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){("add"!==t&&"remove"!==t||i===this)&&("destroy"===t&&this.remove(e,n),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});i.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],(function(t){c.prototype[t]=function(){var e=r.call(arguments);return e.unshift(this.models),i[t].apply(i,e)}}));i.each(["groupBy","countBy","sortBy","indexBy"],(function(t){c.prototype[t]=function(e,n){var a=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,a,n)}}));var m=e.View=function(t){this.cid=i.uniqueId("view"),t||(t={}),i.extend(this,i.pick(t,g)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},_=/^(\S+)\s*(.*)$/,g=["model","collection","el","id","attributes","className","tagName","events"];i.extend(m.prototype,o,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,i){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],!1!==i&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=i.result(this,"events")))return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(i.isFunction(n)||(n=this[t[e]]),n){var a=e.match(_),s=a[1],r=a[2];n=i.bind(n,this),s+=".delegateEvents"+this.cid,""===r?this.$el.on(s,n):this.$el.on(s,r,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className"));var n=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,a){var s=y[t];i.defaults(a||(a={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var r={type:s,dataType:"json"};if(a.url||(r.url=i.result(n,"url")||F()),null!=a.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(a.attrs||n.toJSON(a))),a.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),a.emulateHTTP&&("PUT"===s||"DELETE"===s||"PATCH"===s)){r.type="POST",a.emulateJSON&&(r.data._method=s);var o=a.beforeSend;a.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),o)return o.apply(this,arguments)}}"GET"===r.type||a.emulateJSON||(r.processData=!1),"PATCH"===r.type&&v&&(r.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=a.xhr=e.ajax(i.extend(r,a));return n.trigger("request",n,l,a),l};var v=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),y={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var M=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},b=/\((.*?)\)/g,w=/(\(\?)?:\w+/g,L=/\*\w+/g,k=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(M.prototype,o,{initialize:function(){},route:function(t,n,a){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(a=n,n=""),a||(a=this[n]);var s=this;return e.history.route(t,(function(i){var r=s._extractParameters(t,i);s.execute(a,r),s.trigger.apply(s,["route:"+n].concat(r)),s.trigger("route",n,r),e.history.trigger("route",s,n,r)})),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(k,"\\$&").replace(b,"(?:$1)?").replace(w,(function(t,e){return e?t:"([^/?]+)"})).replace(L,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,(function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null}))}});var D=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},T=/^[#\/]|\s+$/g,Y=/^\/+|\/+$/g,x=/msie [\w.]+/,S=/\/$/,C=/#.*$/;D.started=!1,i.extend(D.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(S,"");t.indexOf(i)||(t=t.slice(i.length))}else t=this.getHash();return t.replace(T,"")},start:function(t){if(D.started)throw new Error("Backbone.history has already been started");D.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment(),a=document.documentMode,s=x.exec(navigator.userAgent.toLowerCase())&&(!a||a<=7);if(this.root=("/"+this.root+"/").replace(Y,"/"),s&&this._wantsHashChange){var r=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=r.hide().appendTo("body")[0].contentWindow,this.navigate(n)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!s?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&o.hash&&(this.fragment=this.getHash().replace(T,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),D.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return t=this.fragment=this.getFragment(t),i.any(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!D.started)return!1;e&&!0!==e||(e={trigger:!!e});var i=this.root+(t=this.getFragment(t||""));if(t=t.replace(C,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==i&&(i=i.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new D;h.extend=c.extend=M.extend=m.extend=D.extend=function(t,e){var n,a=this;n=t&&i.has(t,"constructor")?t.constructor:function(){return a.apply(this,arguments)},i.extend(n,a,e);var s=function(){this.constructor=n};return s.prototype=a.prototype,n.prototype=new s,t&&i.extend(n.prototype,t),n.__super__=a.prototype,n};var F=function(){throw new Error('A "url" property or function must be specified')},$=function(t,e){var i=e.error;e.error=function(n){i&&i(t,n,e),t.trigger("error",t,n,e)}};return e})),
//! moment.js
//! version : 2.8.3
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
function(t){var e,i,n,a="undefined"!=typeof global?global:this,s=Math.round,r=Object.prototype.hasOwnProperty,o={},l=[],d="undefined"!=typeof module&&module.exports,u=/^\/?Date\((\-?\d+)/i,h=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,c=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,p=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,f=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,m=/\d\d?/,_=/\d{1,3}/,g=/\d{1,4}/,v=/[+\-]?\d{1,6}/,y=/\d+/,M=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,b=/Z|[\+\-]\d\d:?\d\d/gi,w=/T/i,L=/[\+\-]?\d+(\.\d{1,3})?/,k=/\d{1,2}/,D=/\d/,T=/\d\d/,Y=/\d{3}/,x=/\d{4}/,S=/[+-]?\d{6}/,C=/[+-]?\d+/,F=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],j=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],A=/([\+\-]|\d\d)/gi,E=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),W={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},O={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},H={},P={s:45,m:45,h:22,d:26,M:11},U="DDD w W M D d".split(" "),I="M D H h m s w W".split(" "),N={M:function(){return this.month()+1},MMM:function(t){return this.localeData().monthsShort(this,t)},MMMM:function(t){return this.localeData().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.localeData().weekdaysMin(this,t)},ddd:function(t){return this.localeData().weekdaysShort(this,t)},dddd:function(t){return this.localeData().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return nt(this.year()%100,2)},YYYY:function(){return nt(this.year(),4)},YYYYY:function(){return nt(this.year(),5)},YYYYYY:function(){var t=this.year();return(t>=0?"+":"-")+nt(Math.abs(t),6)},gg:function(){return nt(this.weekYear()%100,2)},gggg:function(){return nt(this.weekYear(),4)},ggggg:function(){return nt(this.weekYear(),5)},GG:function(){return nt(this.isoWeekYear()%100,2)},GGGG:function(){return nt(this.isoWeekYear(),4)},GGGGG:function(){return nt(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return ct(this.milliseconds()/100)},SS:function(){return nt(ct(this.milliseconds()/10),2)},SSS:function(){return nt(this.milliseconds(),3)},SSSS:function(){return nt(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return t<0&&(t=-t,e="-"),e+nt(ct(t/60),2)+":"+nt(ct(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return t<0&&(t=-t,e="-"),e+nt(ct(t/60),2)+nt(ct(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},R={},z=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];function V(t,e,i){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:i;default:throw new Error("Implement me")}}function B(t,e){return r.call(t,e)}function q(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function G(t,e){var i=!0;return tt((function(){return i&&(q(),i=!1),e.apply(this,arguments)}),e)}function J(t,e){return function(i){return nt(t.call(this,i),e)}}function Q(t,e){return function(i){return this.localeData().ordinal(t.call(this,i),e)}}for(;U.length;)n=U.pop(),N[n+"o"]=Q(N[n],n);for(;I.length;)n=I.pop(),N[n+n]=J(N[n],2);function Z(){}function X(t,e){!1!==e&&gt(t),et(this,t),this._d=new Date(+t._d)}function K(t){var i=ut(t),n=i.year||0,a=i.quarter||0,s=i.month||0,r=i.week||0,o=i.day||0,l=i.hour||0,d=i.minute||0,u=i.second||0,h=i.millisecond||0;this._milliseconds=+h+1e3*u+6e4*d+36e5*l,this._days=+o+7*r,this._months=+s+3*a+12*n,this._data={},this._locale=e.localeData(),this._bubble()}function tt(t,e){for(var i in e)B(e,i)&&(t[i]=e[i]);return B(e,"toString")&&(t.toString=e.toString),B(e,"valueOf")&&(t.valueOf=e.valueOf),t}function et(t,e){var i,n,a;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=e._pf),void 0!==e._locale&&(t._locale=e._locale),l.length>0)for(i in l)void 0!==(a=e[n=l[i]])&&(t[n]=a);return t}function it(t){return t<0?Math.ceil(t):Math.floor(t)}function nt(t,e,i){for(var n=""+Math.abs(t),a=t>=0;n.length<e;)n="0"+n;return(a?i?"+":"":"-")+n}function at(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function st(t,i){return function(n,a){var s;return null===a||isNaN(+a)||(!function(t,e){R[t]||(q(),R[t]=!0)}(i),s=n,n=a,a=s),n="string"==typeof n?+n:n,rt(this,e.duration(n,a),t),this}}function rt(t,i,n,a){var s=i._milliseconds,r=i._days,o=i._months;a=null==a||a,s&&t._d.setTime(+t._d+s*n),r&&Ut(t,"Date",Pt(t,"Date")+r*n),o&&Ht(t,Pt(t,"Month")+o*n),a&&e.updateOffset(t,r||o)}function ot(t){return"[object Array]"===Object.prototype.toString.call(t)}function lt(t,e,i){var n,a=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),r=0;for(n=0;n<a;n++)(i&&t[n]!==e[n]||!i&&ct(t[n])!==ct(e[n]))&&r++;return r+s}function dt(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=W[t]||O[e]||e}return t}function ut(t){var e,i,n={};for(i in t)B(t,i)&&(e=dt(i))&&(n[e]=t[i]);return n}function ht(i){var n,a;if(0===i.indexOf("week"))n=7,a="day";else{if(0!==i.indexOf("month"))return;n=12,a="month"}e[i]=function(s,r){var o,l,d=e._locale[i],u=[];if("number"==typeof s&&(r=s,s=t),l=function(t){var i=e().utc().set(a,t);return d.call(e._locale,i,s||"")},null!=r)return l(r);for(o=0;o<n;o++)u.push(l(o));return u}}function ct(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=e>=0?Math.floor(e):Math.ceil(e)),i}function pt(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function ft(t,i,n){return Et(e([t,11,31+i-n]),i,n).week}function mt(t){return _t(t)?366:365}function _t(t){return t%4==0&&t%100!=0||t%400==0}function gt(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[1]<0||t._a[1]>11?1:t._a[2]<1||t._a[2]>pt(t._a[0],t._a[1])?2:t._a[3]<0||t._a[3]>23?3:t._a[4]<0||t._a[4]>59?4:t._a[5]<0||t._a[5]>59?5:t._a[6]<0||t._a[6]>999?6:-1,t._pf._overflowDayOfYear&&(e<0||e>2)&&(e=2),t._pf.overflow=e)}function vt(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function yt(t){return t?t.toLowerCase().replace("_","-"):t}function Mt(t){var i=null;if(!o[t]&&d)try{i=e.locale(),require("./locale/"+t),e.locale(i)}catch(t){}return o[t]}function bt(t,i){return i._isUTC?e(t).zone(i._offset||0):e(t).local()}function wt(t,e){return t.isValid()?(e=Lt(e,t.localeData()),H[e]||(H[e]=function(t){var e,i,n,a=t.match(p);for(e=0,i=a.length;e<i;e++)N[a[e]]?a[e]=N[a[e]]:a[e]=(n=a[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(n){var s="";for(e=0;e<i;e++)s+=a[e]instanceof Function?a[e].call(n,t):a[e];return s}}(e)),H[e](t)):t.localeData().invalidDate()}function Lt(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(f.lastIndex=0;i>=0&&f.test(t);)t=t.replace(f,n),f.lastIndex=0,i-=1;return t}function kt(t,e){var i=e._strict;switch(t){case"Q":return D;case"DDDD":return Y;case"YYYY":case"GGGG":case"gggg":return i?x:g;case"Y":case"G":case"g":return C;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?S:v;case"S":if(i)return D;case"SS":if(i)return T;case"SSS":if(i)return Y;case"DDD":return _;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return M;case"a":case"A":return e._locale._meridiemParse;case"X":return L;case"Z":case"ZZ":return b;case"T":return w;case"SSSS":return y;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?T:m;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return m;case"Do":return k;default:return new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,a){return e||i||n||a}))))}}function Dt(t){var e=(t=t||"").match(b)||[],i=((e[e.length-1]||[])+"").match(A)||["-",0,0],n=60*i[1]+ct(i[2]);return"+"===i[0]?-n:n}function Tt(t,i,n){var a,s=n._a;switch(t){case"Q":null!=i&&(s[1]=3*(ct(i)-1));break;case"M":case"MM":null!=i&&(s[1]=ct(i)-1);break;case"MMM":case"MMMM":null!=(a=n._locale.monthsParse(i))?s[1]=a:n._pf.invalidMonth=i;break;case"D":case"DD":null!=i&&(s[2]=ct(i));break;case"Do":null!=i&&(s[2]=ct(parseInt(i,10)));break;case"DDD":case"DDDD":null!=i&&(n._dayOfYear=ct(i));break;case"YY":s[0]=e.parseTwoDigitYear(i);break;case"YYYY":case"YYYYY":case"YYYYYY":s[0]=ct(i);break;case"a":case"A":n._isPm=n._locale.isPM(i);break;case"H":case"HH":case"h":case"hh":s[3]=ct(i);break;case"m":case"mm":s[4]=ct(i);break;case"s":case"ss":s[5]=ct(i);break;case"S":case"SS":case"SSS":case"SSSS":s[6]=ct(1e3*("0."+i));break;case"X":n._d=new Date(1e3*parseFloat(i));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=Dt(i);break;case"dd":case"ddd":case"dddd":null!=(a=n._locale.weekdaysParse(i))?(n._w=n._w||{},n._w.d=a):n._pf.invalidWeekday=i;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),i&&(n._w=n._w||{},n._w[t]=ct(i));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=e.parseTwoDigitYear(i)}}function Yt(t){var i,n,a,s,r,o,l;null!=(i=t._w).GG||null!=i.W||null!=i.E?(r=1,o=4,n=V(i.GG,t._a[0],Et(e(),1,4).year),a=V(i.W,1),s=V(i.E,1)):(r=t._locale._week.dow,o=t._locale._week.doy,n=V(i.gg,t._a[0],Et(e(),r,o).year),a=V(i.w,1),null!=i.d?(s=i.d)<r&&++a:s=null!=i.e?i.e+r:r),l=function(t,e,i,n,a){var s,r=jt(t,0,1).getUTCDay();return{year:(s=7*(e-1)+((i=null!=i?i:a)-a)+(a-(r=0===r?7:r)+(r>n?7:0)-(r<a?7:0))+1)>0?t:t-1,dayOfYear:s>0?s:mt(t-1)+s}}(n,a,s,o,r),t._a[0]=l.year,t._dayOfYear=l.dayOfYear}function xt(t){var e,i,n,a,s=[];if(!t._d){for(n=function(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&Yt(t),t._dayOfYear&&(a=V(t._a[0],n[0]),t._dayOfYear>mt(a)&&(t._pf._overflowDayOfYear=!0),i=jt(a,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];t._d=(t._useUTC?jt:$t).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm)}}function St(t){if(t._f!==e.ISO_8601){t._a=[],t._pf.empty=!0;var i,n,a,s,r,o=""+t._i,l=o.length,d=0;for(a=Lt(t._f,t._locale).match(p)||[],i=0;i<a.length;i++)s=a[i],(n=(o.match(kt(s,t))||[])[0])&&((r=o.substr(0,o.indexOf(n))).length>0&&t._pf.unusedInput.push(r),o=o.slice(o.indexOf(n)+n.length),d+=n.length),N[s]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(s),Tt(s,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=l-d,o.length>0&&t._pf.unusedInput.push(o),t._isPm&&t._a[3]<12&&(t._a[3]+=12),!1===t._isPm&&12===t._a[3]&&(t._a[3]=0),xt(t),gt(t)}else Ct(t)}function Ct(t){var e,i,n=t._i,a=F.exec(n);if(a){for(t._pf.iso=!0,e=0,i=$.length;e<i;e++)if($[e][1].exec(n)){t._f=$[e][0]+(a[6]||" ");break}for(e=0,i=j.length;e<i;e++)if(j[e][1].exec(n)){t._f+=j[e][0];break}n.match(b)&&(t._f+="Z"),St(t)}else t._isValid=!1}function Ft(i){var n,a=i._i;a===t?i._d=new Date:function(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}(a)?i._d=new Date(+a):null!==(n=u.exec(a))?i._d=new Date(+n[1]):"string"==typeof a?function(t){Ct(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t))}(i):ot(a)?(i._a=function(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}(a.slice(0),(function(t){return parseInt(t,10)})),xt(i)):"object"==typeof a?function(t){var e;t._d||(e=ut(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],xt(t))}(i):"number"==typeof a?i._d=new Date(a):e.createFromInputFallback(i)}function $t(t,e,i,n,a,s,r){var o=new Date(t,e,i,n,a,s,r);return t<1970&&o.setFullYear(t),o}function jt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<1970&&e.setUTCFullYear(t),e}function At(t,e,i,n,a){return a.relativeTime(e||1,!!i,t,n)}function Et(t,i,n){var a,s=n-i,r=n-t.day();return r>s&&(r-=7),r<s-7&&(r+=7),a=e(t).add(r,"d"),{week:Math.ceil(a.dayOfYear()/7),year:a.year()}}function Wt(i){var n=i._i,a=i._f;return i._locale=i._locale||e.localeData(i._l),null===n||a===t&&""===n?e.invalid({nullInput:!0}):("string"==typeof n&&(i._i=n=i._locale.preparse(n)),e.isMoment(n)?new X(n,!0):(a?ot(a)?function(t){var e,i,n,a,s;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;a<t._f.length;a++)s=0,e=et({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},e._f=t._f[a],St(e),vt(e)&&(s+=e._pf.charsLeftOver,s+=10*e._pf.unusedTokens.length,e._pf.score=s,(null==n||s<n)&&(n=s,i=e));tt(t,i||e)}(i):St(i):Ft(i),new X(i)))}function Ot(t,i){var n,a;if(1===i.length&&ot(i[0])&&(i=i[0]),!i.length)return e();for(n=i[0],a=1;a<i.length;++a)i[a][t](n)&&(n=i[a]);return n}for(N.DDDD=J(N.DDD,3),tt(Z.prototype,{set:function(t){var e,i;for(i in t)"function"==typeof(e=t[i])?this[i]=e:this["_"+i]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var i,n,a;for(this._monthsParse||(this._monthsParse=[]),i=0;i<12;i++)if(this._monthsParse[i]||(n=e.utc([2e3,i]),a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),this._monthsParse[i].test(t))return i},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var i,n,a;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;i<7;i++)if(this._weekdaysParse[i]||(n=e([2e3,1]).day(i),a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),this._weekdaysParse[i].test(t))return i},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var i=this._calendar[t];return"function"==typeof i?i.apply(e):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,i,n){var a=this._relativeTime[i];return"function"==typeof a?a(t,e,i,n):a.replace(/%d/i,t)},pastFuture:function(t,e){var i=this._relativeTime[t>0?"future":"past"];return"function"==typeof i?i(e):i.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return Et(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),(e=function(e,i,n,a){var s;return"boolean"==typeof n&&(a=n,n=t),(s={})._isAMomentObject=!0,s._i=e,s._f=i,s._l=n,s._strict=a,s._isUTC=!1,s._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},Wt(s)}).suppressDeprecationWarnings=!1,e.createFromInputFallback=G(0,(function(t){t._d=new Date(t._i)})),e.min=function(){var t=[].slice.call(arguments,0);return Ot("isBefore",t)},e.max=function(){var t=[].slice.call(arguments,0);return Ot("isAfter",t)},e.utc=function(e,i,n,a){var s;return"boolean"==typeof n&&(a=n,n=t),(s={})._isAMomentObject=!0,s._useUTC=!0,s._isUTC=!0,s._l=n,s._i=e,s._f=i,s._strict=a,s._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},Wt(s).utc()},e.unix=function(t){return e(1e3*t)},e.duration=function(t,i){var n,a,s,r,o,l,d,u=t,p=null;return e.isDuration(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(u={},i?u[i]=t:u.milliseconds=t):(p=h.exec(t))?(n="-"===p[1]?-1:1,u={y:0,d:ct(p[2])*n,h:ct(p[3])*n,m:ct(p[4])*n,s:ct(p[5])*n,ms:ct(p[6])*n}):(p=c.exec(t))?(n="-"===p[1]?-1:1,u={y:(s=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n})(p[2]),M:s(p[3]),d:s(p[4]),h:s(p[5]),m:s(p[6]),s:s(p[7]),w:s(p[8])}):"object"==typeof u&&("from"in u||"to"in u)&&(o=e(u.from),l=bt(l=e(u.to),o),o.isBefore(l)?d=at(o,l):((d=at(l,o)).milliseconds=-d.milliseconds,d.months=-d.months),(u={}).ms=(r=d).milliseconds,u.M=r.months),a=new K(u),e.isDuration(t)&&B(t,"_locale")&&(a._locale=t._locale),a},e.version="2.8.3",e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.ISO_8601=function(){},e.momentProperties=l,e.updateOffset=function(){},e.relativeTimeThreshold=function(e,i){return P[e]!==t&&(i===t?P[e]:(P[e]=i,!0))},e.lang=G(0,(function(t,i){return e.locale(t,i)})),e.locale=function(t,i){var n;return t&&(n=void 0!==i?e.defineLocale(t,i):e.localeData(t))&&(e.duration._locale=e._locale=n),e._locale._abbr},e.defineLocale=function(t,i){return null!==i?(i.abbr=t,o[t]||(o[t]=new Z),o[t].set(i),e.locale(t),o[t]):(delete o[t],null)},e.langData=G(0,(function(t){return e.localeData(t)})),e.localeData=function(t){var i;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return e._locale;if(!ot(t)){if(i=Mt(t))return i;t=[t]}return function(t){for(var e,i,n,a,s=0;s<t.length;){for(e=(a=yt(t[s]).split("-")).length,i=(i=yt(t[s+1]))?i.split("-"):null;e>0;){if(n=Mt(a.slice(0,e).join("-")))return n;if(i&&i.length>=e&&lt(a,i,!0)>=e-1)break;e--}s++}return null}(t)},e.isMoment=function(t){return t instanceof X||null!=t&&B(t,"_isAMomentObject")},e.isDuration=function(t){return t instanceof K},n=z.length-1;n>=0;--n)ht(z[n]);function Ht(t,e){var i;return"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))||(i=Math.min(t.date(),pt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i)),t}function Pt(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function Ut(t,e,i){return"Month"===e?Ht(t,i):t._d["set"+(t._isUTC?"UTC":"")+e](i)}function It(t,i){return function(n){return null!=n?(Ut(this,t,n),e.updateOffset(this,i),this):Pt(this,t)}}function Nt(t){return 400*t/146097}function Rt(t){return 146097*t/400}function zt(t){e.duration.fn[t]=function(){return this._data[t]}}for(n in e.normalizeUnits=function(t){return dt(t)},e.invalid=function(t){var i=e.utc(NaN);return null!=t?tt(i._pf,t):i._pf.userInvalidated=!0,i},e.parseZone=function(){return e.apply(null,arguments).parseZone()},e.parseTwoDigitYear=function(t){return ct(t)+(ct(t)>68?1900:2e3)},tt(e.fn=X.prototype,{clone:function(){return e(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=e(this).utc();return 0<t.year()&&t.year()<=9999?wt(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):wt(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return vt(this)},isDSTShifted:function(){return!!this._a&&(this.isValid()&&lt(this._a,(this._isUTC?e.utc(this._a):e(this._a)).toArray())>0)},parsingFlags:function(){return tt({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.zone(0,t)},local:function(t){return this._isUTC&&(this.zone(0,t),this._isUTC=!1,t&&this.add(this._dateTzOffset(),"m")),this},format:function(t){var i=wt(this,t||e.defaultFormat);return this.localeData().postformat(i)},add:st(1,"add"),subtract:st(-1,"subtract"),diff:function(t,i,n){var a,s,r,o=bt(t,this),l=6e4*(this.zone()-o.zone());return"year"===(i=dt(i))||"month"===i?(a=432e5*(this.daysInMonth()+o.daysInMonth()),s=12*(this.year()-o.year())+(this.month()-o.month()),r=this-e(this).startOf("month")-(o-e(o).startOf("month")),s+=(r-=6e4*(this.zone()-e(this).startOf("month").zone()-(o.zone()-e(o).startOf("month").zone())))/a,"year"===i&&(s/=12)):(a=this-o,s="second"===i?a/1e3:"minute"===i?a/6e4:"hour"===i?a/36e5:"day"===i?(a-l)/864e5:"week"===i?(a-l)/6048e5:a),n?s:it(s)},from:function(t,i){return e.duration({to:this,from:t}).locale(this.locale()).humanize(!i)},fromNow:function(t){return this.from(e(),t)},calendar:function(t){var i=bt(t||e(),this).startOf("day"),n=this.diff(i,"days",!0),a=n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(a,this))},isLeapYear:function(){return _t(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){if("string"==typeof t)if(isNaN(t)){if("number"!=typeof(t=e.weekdaysParse(t)))return null}else t=parseInt(t,10);return t}(t,this.localeData()),this.add(t-e,"d")):e},month:It("Month",!0),startOf:function(t){switch(t=dt(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=dt(t),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(t,i){return"millisecond"===(i=dt(void 0!==i?i:"millisecond"))?+this>+(t=e.isMoment(t)?t:e(t)):+this.clone().startOf(i)>+e(t).startOf(i)},isBefore:function(t,i){return"millisecond"===(i=dt(void 0!==i?i:"millisecond"))?+this<+(t=e.isMoment(t)?t:e(t)):+this.clone().startOf(i)<+e(t).startOf(i)},isSame:function(t,i){return"millisecond"===(i=dt(i||"millisecond"))?+this==+(t=e.isMoment(t)?t:e(t)):+this.clone().startOf(i)==+bt(t,this).startOf(i)},min:G(0,(function(t){return(t=e.apply(null,arguments))<this?this:t})),max:G(0,(function(t){return(t=e.apply(null,arguments))>this?this:t})),zone:function(t,i){var n,a=this._offset||0;return null==t?this._isUTC?a:this._dateTzOffset():("string"==typeof t&&(t=Dt(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&i&&(n=this._dateTzOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.subtract(n,"m"),a!==t&&(!i||this._changeInProgress?rt(this,e.duration(a-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?e(t).zone():0,(this.zone()-t)%60==0},daysInMonth:function(){return pt(this.year(),this.month())},dayOfYear:function(t){var i=s((e(this).startOf("day")-e(this).startOf("year"))/864e5)+1;return null==t?i:this.add(t-i,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=Et(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=Et(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=Et(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return ft(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return ft(this.year(),t.dow,t.doy)},get:function(t){return this[t=dt(t)]()},set:function(t,e){return"function"==typeof this[t=dt(t)]&&this[t](e),this},locale:function(i){var n;return i===t?this._locale._abbr:(null!=(n=e.localeData(i))&&(this._locale=n),this)},lang:G(0,(function(e){return e===t?this.localeData():this.locale(e)})),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),e.fn.millisecond=e.fn.milliseconds=It("Milliseconds",!1),e.fn.second=e.fn.seconds=It("Seconds",!1),e.fn.minute=e.fn.minutes=It("Minutes",!1),e.fn.hour=e.fn.hours=It("Hours",!0),e.fn.date=It("Date",!0),e.fn.dates=G(0,It("Date",!0)),e.fn.year=It("FullYear",!0),e.fn.years=G(0,It("FullYear",!0)),e.fn.days=e.fn.day,e.fn.months=e.fn.month,e.fn.weeks=e.fn.week,e.fn.isoWeeks=e.fn.isoWeek,e.fn.quarters=e.fn.quarter,e.fn.toJSON=e.fn.toISOString,tt(e.duration.fn=K.prototype,{_bubble:function(){var t,e,i,n=this._milliseconds,a=this._days,s=this._months,r=this._data,o=0;r.milliseconds=n%1e3,t=it(n/1e3),r.seconds=t%60,e=it(t/60),r.minutes=e%60,i=it(e/60),r.hours=i%24,a+=it(i/24),o=it(Nt(a)),a-=it(Rt(o)),s+=it(a/30),a%=30,o+=it(s/12),s%=12,r.days=a,r.months=s,r.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return it(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ct(this._months/12)},humanize:function(t){var i,n,a,r,o,l,d,u,h,c,p,f=(i=this,n=!t,a=this.localeData(),r=e.duration(i).abs(),o=s(r.as("s")),l=s(r.as("m")),d=s(r.as("h")),u=s(r.as("d")),h=s(r.as("M")),c=s(r.as("y")),(p=o<P.s&&["s",o]||1===l&&["m"]||l<P.m&&["mm",l]||1===d&&["h"]||d<P.h&&["hh",d]||1===u&&["d"]||u<P.d&&["dd",u]||1===h&&["M"]||h<P.M&&["MM",h]||1===c&&["y"]||["yy",c])[2]=n,p[3]=+i>0,p[4]=a,At.apply({},p));return t&&(f=this.localeData().pastFuture(+this,f)),this.localeData().postformat(f)},add:function(t,i){var n=e.duration(t,i);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,i){var n=e.duration(t,i);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return this[(t=dt(t)).toLowerCase()+"s"]()},as:function(t){var e,i;if("month"===(t=dt(t))||"year"===t)return e=this._days+this._milliseconds/864e5,i=this._months+12*Nt(e),"month"===t?i:i/12;switch(e=this._days+Rt(this._months/12),t){case"week":return e/7+this._milliseconds/6048e5;case"day":return e+this._milliseconds/864e5;case"hour":return 24*e+this._milliseconds/36e5;case"minute":return 24*e*60+this._milliseconds/6e4;case"second":return 24*e*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*e*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+t)}},lang:e.fn.lang,locale:e.fn.locale,toIsoString:G(0,(function(){return this.toISOString()})),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),i=Math.abs(this.days()),n=Math.abs(this.hours()),a=Math.abs(this.minutes()),s=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(i?i+"D":"")+(n||a||s?"T":"")+(n?n+"H":"")+(a?a+"M":"")+(s?s+"S":""):"P0D"},localeData:function(){return this._locale}}),e.duration.fn.toString=e.duration.fn.toISOString,E)B(E,n)&&zt(n.toLowerCase());function Vt(t){"undefined"==typeof ender&&(i=a.moment,a.moment=t?G(0,e):e)}e.duration.fn.asMilliseconds=function(){return this.as("ms")},e.duration.fn.asSeconds=function(){return this.as("s")},e.duration.fn.asMinutes=function(){return this.as("m")},e.duration.fn.asHours=function(){return this.as("h")},e.duration.fn.asDays=function(){return this.as("d")},e.duration.fn.asWeeks=function(){return this.as("weeks")},e.duration.fn.asMonths=function(){return this.as("M")},e.duration.fn.asYears=function(){return this.as("y")},e.locale("en",{ordinal:function(t){var e=t%10;return t+(1===ct(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),function(t){t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(e),function(t){var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return i[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(e),function(t){var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(t){return function(e,i,s,r){var o=n(e),l=a[t][n(e)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,e)}},r=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];t.defineLocale("ar",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return i[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(e),function(t){var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiem:function(t,e,i){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},ordinal:function(t){if(0===t)return t+"-ıncı";var i=t%10,n=t%100-i,a=t>=100?100:null;return t+(e[i]||e[n]||e[a])},week:{dow:1,doy:7}})}(e),function(t){function e(t,e){var i=t.split("_");return e%10==1&&e%100!=11?i[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?i[1]:i[2]}function i(t,i,n){return"m"===n?i?"хвіліна":"хвіліну":"h"===n?i?"гадзіна":"гадзіну":t+" "+e({mm:i?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:i?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n],+t)}function n(t,e){return{nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative"][t.month()]}function a(t,e){return{nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")}[/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(e)?"accusative":"nominative"][t.day()]}t.defineLocale("be",{months:n,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:a,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:i,mm:i,h:i,hh:i,d:"дзень",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiem:function(t,e,i){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinal:function(t){var e=t%10,i=t%100;return 0===t?t+"-ев":0===i?t+"-ен":i>10&&i<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(e),function(t){var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiem:function(t,e,i){return t<4?"রাত":t<10?"শকাল":t<17?"দুপুর":t<20?"বিকেল":"রাত"},week:{dow:0,doy:6}})}(e),function(t){var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiem:function(t,e,i){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(e),function(e){function i(t,e,i){return t+" "+s({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function n(t){switch(a(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}function a(t){return t>9?a(t%10):t}function s(t,e){return 2===e?r(t):t}function r(e){var i={m:"v",b:"v",d:"z"};return i[e.charAt(0)]===t?e:i[e.charAt(0)]+e.substring(1)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:n},ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4}})}(e),function(t){function e(t,e,i){var n=t+" ";switch(i){case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return n+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return n+=1===t?"dan":"dana";case"MM":return n+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return n+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},ordinal:"%d.",week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:"%dº",week:{dow:1,doy:4}})}(e),function(t){var e="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),i="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function n(t){return t>1&&t<5&&1!=~~(t/10)}function a(t,e,i,a){var s=t+" ";switch(i){case"s":return e||a?"pár sekund":"pár sekundami";case"m":return e?"minuta":a?"minutu":"minutou";case"mm":return e||a?s+(n(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":a?"hodinu":"hodinou";case"hh":return e||a?s+(n(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||a?"den":"dnem";case"dd":return e||a?s+(n(t)?"dny":"dní"):s+"dny";case"M":return e||a?"měsíc":"měsícem";case"MM":return e||a?s+(n(t)?"měsíce":"měsíců"):s+"měsíci";case"y":return e||a?"rok":"rokem";case"yy":return e||a?s+(n(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,monthsParse:function(t,e){var i,n=[];for(i=0;i<12;i++)n[i]=new RegExp("^"+t[i]+"$|^"+e[i]+"$","i");return n}(e,i),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("cv",{months:"кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){return t+(/сехет$/i.exec(t)?"рен":/çул$/i.exec(t)?"тан":"ран")},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinal:"%d-мĕш",week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){function e(t,e,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?a[i][0]:a[i][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm [Uhr]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT",sameElse:"L",nextDay:"[Morgen um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gestern um] LT",lastWeek:"[letzten] dddd [um] LT"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){function e(t,e,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?a[i][0]:a[i][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm [Uhr]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT",sameElse:"L",nextDay:"[Morgen um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gestern um] LT",lastWeek:"[letzten] dddd [um] LT"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,i){return t>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i=this._calendarEl[t],n=e&&e.hours();return"function"==typeof i&&(i=i.apply(e)),i.replace("{}",n%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinal:function(t){return t+"η"},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(e),function(t){t.defineLocale("gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("us",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinal:"%da",week:{dow:1,doy:7}})}(e),function(t){var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return/-MMM-/.test(n)?i[t.month()]:e[t.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:"%dº",week:{dow:1,doy:4}})}(e),function(t){function e(t,e,i,n){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?a[i][2]?a[i][2]:a[i][1]:n?a[i][0]:a[i][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinal:"%d.",week:{dow:1,doy:7}})}(e),function(t){var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiem:function(t,e,i){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return i[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},ordinal:"%dم",week:{dow:6,doy:12}})}(e),function(t){var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),i=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function n(t,e,i,n){var s="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"m":return n?"minuutin":"minuutti";case"mm":s=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":s=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":s=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":s=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":s=n?"vuoden":"vuotta"}return s=a(t,n)+" "+s}function a(t,n){return t<10?n?i[t]:e[t]:t}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){return t+(1===t?"er":"")}})}(e),function(t){t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){return t+(1===t?"er":"")},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return"uns segundos"===t?"nuns segundos":"en "+t},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinal:"%dº",week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t+" שנים"}}})}(e),function(t){var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiem:function(t,e,i){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})}(e),function(t){function e(t,e,i){var n=t+" ";switch(i){case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return n+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return n+=1===t?"dan":"dana";case"MM":return n+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return n+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},ordinal:"%d.",week:{dow:1,doy:7}})}(e),function(t){var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function i(t,e,i,n){var a=t;switch(i){case"s":return n||e?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return a+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" óra":" órája");case"hh":return a+(n||e?" óra":" órája");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return a+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" hónap":" hónapja");case"MM":return a+(n||e?" hónap":" hónapja");case"y":return"egy"+(n||e?" év":" éve");case"yy":return a+(n||e?" év":" éve")}return""}function n(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},ordinal:"%d.",week:{dow:1,doy:7}})}(e),function(t){function e(t,e){return{nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative"][t.month()]}function i(t,e){return"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_")[t.month()]}function n(t,e){return"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_")[t.day()]}t.defineLocale("hy-am",{months:e,monthsShort:i,weekdays:n,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(e),function(t){function e(t){return t%100==11||t%10!=1}function i(t,i,n,a){var s=t+" ";switch(n){case"s":return i||a?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return i?"mínúta":"mínútu";case"mm":return e(t)?s+(i||a?"mínútur":"mínútum"):i?s+"mínúta":s+"mínútu";case"hh":return e(t)?s+(i||a?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return i?"dagur":a?"dag":"degi";case"dd":return e(t)?i?s+"dagar":s+(a?"daga":"dögum"):i?s+"dagur":s+(a?"dag":"degi");case"M":return i?"mánuður":a?"mánuð":"mánuði";case"MM":return e(t)?i?s+"mánuðir":s+(a?"mánuði":"mánuðum"):i?s+"mánuður":s+(a?"mánuð":"mánuði");case"y":return i||a?"ár":"ári";case"yy":return e(t)?s+(i||a?"ár":"árum"):s+(i||a?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:"[lo scorso] dddd [alle] LT",sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:"%dº",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiem:function(t,e,i){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(e),function(t){function e(t,e){return{nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")}[/D[oD] *MMMM?/.test(e)?"accusative":"nominative"][t.month()]}function i(t,e){return{nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")}[/(წინა|შემდეგ)/.test(e)?"accusative":"nominative"][t.day()]}t.defineLocale("ka",{months:e,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:i,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return/(წამი|წუთი|საათი|წელი)/.test(t)?t.replace(/ი$/,"ში"):t+"ში"},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},meridiem:function(t,e,i){return t<12?"오전":"오후"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinal:"%d일",meridiemParse:/(오전|오후)/,isPM:function(t){return"오후"===t}})}(e),function(t){function e(t,e,i,n){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?a[i][0]:a[i][1]}function i(t){return a(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t}function n(t){return a(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t}function a(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return a(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return a(t)}return a(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:i,past:n,s:"e puer Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){var e={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},i="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");function n(t,e,i,n){return e?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"}function a(t,e,i,n){return e?r(i)[0]:n?r(i)[1]:r(i)[2]}function s(t){return t%10==0||t>10&&t<20}function r(t){return e[t].split("_")}function o(t,e,i,n){var o=t+" ";return 1===t?o+a(t,e,i[0],n):e?o+(s(t)?r(i)[1]:r(i)[0]):n?o+r(i)[1]:o+(s(t)?r(i)[1]:r(i)[2])}function l(t,e){var n=-1===e.indexOf("dddd HH:mm"),a=i[t.day()];return n?a:a.substring(0,a.length-2)+"į"}t.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:l,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,m:a,mm:o,h:a,hh:o,d:a,dd:o,M:a,MM:o,y:a,yy:o},ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(e),function(t){var e={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};function i(t,e,i){var n=t.split("_");return i?e%10==1&&11!==e?n[2]:n[3]:e%10==1&&11!==e?n[0]:n[1]}function n(t,n,a){return t+" "+i(e[a],t,n)}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:n,h:"stundu",hh:n,d:"dienu",dd:n,M:"mēnesi",MM:n,y:"gadu",yy:n},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinal:function(t){var e=t%10,i=t%100;return 0===t?t+"-ев":0===i?t+"-ен":i>10&&i<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiem:function(t,e,i){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})}(e),function(t){var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiem:function(t,e,i){return t<4?"रात्री":t<10?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(e),function(t){t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(e),function(t){var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return i[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiem:function(t,e,i){return t<3?"राती":t<10?"बिहान":t<15?"दिउँसो":t<18?"बेलुका":t<20?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})}(e),function(t){var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return/-MMM-/.test(n)?i[t.month()]:e[t.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function a(t,e,i){var a=t+" ";switch(i){case"m":return e?"minuta":"minutę";case"mm":return a+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return a+(n(t)?"godziny":"godzin");case"MM":return a+(n(t)?"miesiące":"miesięcy");case"yy":return a+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return/D MMMM/.test(n)?i[t.month()]:e[t.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:a,y:"rok",yy:a},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinal:"%dº"})}(e),function(t){t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinal:"%dº",week:{dow:1,doy:4}})}(e),function(t){function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(e),function(t){function e(t,e){var i=t.split("_");return e%10==1&&e%100!=11?i[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?i[1]:i[2]}function i(t,i,n){return"m"===n?i?"минута":"минуту":t+" "+e({mm:i?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n],+t)}function n(t,e){return{nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative"][t.month()]}function a(t,e){return{nominative:"янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative"][t.month()]}function s(t,e){return{nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")}[/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/.test(e)?"accusative":"nominative"][t.day()]}t.defineLocale("ru",{months:n,monthsShort:a,weekdays:s,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(){switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:i,mm:i,h:"час",hh:i,d:"день",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:7}})}(e),function(t){var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function a(t,e,i,a){var s=t+" ";switch(i){case"s":return e||a?"pár sekúnd":"pár sekundami";case"m":return e?"minúta":a?"minútu":"minútou";case"mm":return e||a?s+(n(t)?"minúty":"minút"):s+"minútami";case"h":return e?"hodina":a?"hodinu":"hodinou";case"hh":return e||a?s+(n(t)?"hodiny":"hodín"):s+"hodinami";case"d":return e||a?"deň":"dňom";case"dd":return e||a?s+(n(t)?"dni":"dní"):s+"dňami";case"M":return e||a?"mesiac":"mesiacom";case"MM":return e||a?s+(n(t)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return e||a?"rok":"rokom";case"yy":return e||a?s+(n(t)?"roky":"rokov"):s+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,monthsParse:function(t,e){var i,n=[];for(i=0;i<12;i++)n[i]=new RegExp("^"+t[i]+"$|^"+e[i]+"$","i");return n}(e,i),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){function e(t,e,i){var n=t+" ";switch(i){case"m":return e?"ena minuta":"eno minuto";case"mm":return n+=1===t?"minuta":2===t?"minuti":3===t||4===t?"minute":"minut";case"h":return e?"ena ura":"eno uro";case"hh":return n+=1===t?"ura":2===t?"uri":3===t||4===t?"ure":"ur";case"dd":return n+=1===t?"dan":"dni";case"MM":return n+=1===t?"mesec":2===t?"meseca":3===t||4===t?"mesece":"mesecev";case"yy":return n+=1===t?"leto":2===t?"leti":3===t||4===t?"leta":"let"}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:e,mm:e,h:e,hh:e,d:"en dan",dd:e,M:"en mesec",MM:e,y:"eno leto",yy:e},ordinal:"%d.",week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiem:function(t,e,i){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinal:"%d.",week:{dow:1,doy:4}})}(e),function(t){var e={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var a=e.words[n];return 1===n.length?i?a[0]:a[1]:t+" "+e.correctGrammaticalCase(t,a)}};t.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"дан",dd:e.translate,M:"месец",MM:e.translate,y:"годину",yy:e.translate},ordinal:"%d.",week:{dow:1,doy:7}})}(e),function(t){var e={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var a=e.words[n];return 1===n.length?i?a[0]:a[1]:t+" "+e.correctGrammaticalCase(t,a)}};t.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},ordinal:"%d.",week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinal:function(t){return t+"வது"},meridiem:function(t,e,i){return t>=6&&t<=10?" காலை":t>=10&&t<=14?" நண்பகல்":t>=14&&t<=18?" எற்பாடு":t>=18&&t<=20?" மாலை":t>=20&&t<=24?" இரவு":t>=0&&t<=6?" வைகறை":void 0},week:{dow:0,doy:6}})}(e),function(t){t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiem:function(t,e,i){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(e),function(t){t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinal:function(t){return t},week:{dow:1,doy:4}})}(e),function(t){var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t){if(0===t)return t+"'ıncı";var i=t%10,n=t%100-i,a=t>=100?100:null;return t+(e[i]||e[n]||e[a])},week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(e),function(t){t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(e),function(t){function e(t,e){var i=t.split("_");return e%10==1&&e%100!=11?i[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?i[1]:i[2]}function i(t,i,n){return"m"===n?i?"хвилина":"хвилину":"h"===n?i?"година":"годину":t+" "+e({mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n],+t)}function n(t,e){return{nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")}[/D[oD]? *MMMM?/.test(e)?"accusative":"nominative"][t.month()]}function a(t,e){return{nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]}function s(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:n,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:a,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:i,mm:i,h:"годину",hh:i,d:"день",dd:i,M:"місяць",MM:i,y:"рік",yy:i},meridiem:function(t,e,i){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(e),function(t){t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinal:function(t){return t},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,i;return e=t().startOf("week"),i=this.unix()-e.unix()>=604800?"[下]":"[本]",0===this.minutes()?i+"dddAh点整":i+"dddAh点mm"},lastWeek:function(){var e,i;return e=t().startOf("week"),i=this.unix()<e.unix()?"[上]":"[本]",0===this.minutes()?i+"dddAh点整":i+"dddAh点mm"},sameElse:"LL"},ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}})}(e),function(t){t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(t,e,i){var n=100*t+e;return n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})}(e),d?module.exports=e:"function"==typeof define&&define.amd?(define("moment",(function(t,n,s){return s.config&&s.config()&&!0===s.config().noGlobal&&(a.moment=i),e})),Vt(!0)):Vt()}.call(this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Mustache=e()}(this,(function(){"use strict";
/*!
     * mustache.js - Logic-less {{mustache}} templates with JavaScript
     * http://github.com/janl/mustache.js
     */var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)};function i(t){return"function"==typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(t,e){return null!=t&&"object"==typeof t&&e in t}var s=RegExp.prototype.test;var r=/\S/;function o(t){return!function(t,e){return s.call(t,e)}(r,t)}var l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};var d=/\s*/,u=/\s+/,h=/\s*=/,c=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function f(t){this.string=t,this.tail=t,this.pos=0}function m(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function _(){this.cache={}}f.prototype.eos=function(){return""===this.tail},f.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var i=e[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},f.prototype.scanUntil=function(t){var e,i=this.tail.search(t);switch(i){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,i),this.tail=this.tail.substring(i)}return this.pos+=e.length,e},m.prototype.push=function(t){return new m(t,this)},m.prototype.lookup=function(t){var e,n,s,r=this.cache;if(r.hasOwnProperty(t))e=r[t];else{for(var o,l,d,u=this,h=!1;u;){if(t.indexOf(".")>0)for(o=u.view,l=t.split("."),d=0;null!=o&&d<l.length;)d===l.length-1&&(h=a(o,l[d])||(n=o,s=l[d],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(s))),o=o[l[d++]];else o=u.view[t],h=a(u.view,t);if(h){e=o;break}u=u.parent}r[t]=e}return i(e)&&(e=e.call(this.view)),e},_.prototype.clearCache=function(){this.cache={}},_.prototype.parse=function(t,i){var a=this.cache,s=t+":"+(i||g.tags).join(":"),r=a[s];return null==r&&(r=a[s]=function(t,i){if(!t)return[];var a,s,r,l=!1,m=[],_=[],v=[],y=!1,M=!1,b="",w=0;function L(){if(y&&!M)for(;v.length;)delete _[v.pop()];else v=[];y=!1,M=!1}function k(t){if("string"==typeof t&&(t=t.split(u,2)),!e(t)||2!==t.length)throw new Error("Invalid tags: "+t);a=new RegExp(n(t[0])+"\\s*"),s=new RegExp("\\s*"+n(t[1])),r=new RegExp("\\s*"+n("}"+t[1]))}k(i||g.tags);for(var D,T,Y,x,S,C,F=new f(t);!F.eos();){if(D=F.pos,Y=F.scanUntil(a))for(var $=0,j=Y.length;$<j;++$)o(x=Y.charAt($))?(v.push(_.length),b+=x):(M=!0,l=!0,b+=" "),_.push(["text",x,D,D+1]),D+=1,"\n"===x&&(L(),b="",w=0,l=!1);if(!F.scan(a))break;if(y=!0,T=F.scan(p)||"name",F.scan(d),"="===T?(Y=F.scanUntil(h),F.scan(h),F.scanUntil(s)):"{"===T?(Y=F.scanUntil(r),F.scan(c),F.scanUntil(s),T="&"):Y=F.scanUntil(s),!F.scan(s))throw new Error("Unclosed tag at "+F.pos);if(S=">"==T?[T,Y,D,F.pos,b,w,l]:[T,Y,D,F.pos],w++,_.push(S),"#"===T||"^"===T)m.push(S);else if("/"===T){if(!(C=m.pop()))throw new Error('Unopened section "'+Y+'" at '+D);if(C[1]!==Y)throw new Error('Unclosed section "'+C[1]+'" at '+D)}else"name"===T||"{"===T||"&"===T?M=!0:"="===T&&k(Y)}if(L(),C=m.pop())throw new Error('Unclosed section "'+C[1]+'" at '+F.pos);return function(t){for(var e,i=[],n=i,a=[],s=0,r=t.length;s<r;++s)switch((e=t[s])[0]){case"#":case"^":n.push(e),a.push(e),n=e[4]=[];break;case"/":a.pop()[5]=e[2],n=a.length>0?a[a.length-1][4]:i;break;default:n.push(e)}return i}(function(t){for(var e,i,n=[],a=0,s=t.length;a<s;++a)(e=t[a])&&("text"===e[0]&&i&&"text"===i[0]?(i[1]+=e[1],i[3]=e[3]):(n.push(e),i=e));return n}(_))}(t,i)),r},_.prototype.render=function(t,e,i,n){var a=this.parse(t,n),s=e instanceof m?e:new m(e,void 0);return this.renderTokens(a,s,i,t,n)},_.prototype.renderTokens=function(t,e,i,n,a){for(var s,r,o,l="",d=0,u=t.length;d<u;++d)o=void 0,"#"===(r=(s=t[d])[0])?o=this.renderSection(s,e,i,n):"^"===r?o=this.renderInverted(s,e,i,n):">"===r?o=this.renderPartial(s,e,i,a):"&"===r?o=this.unescapedValue(s,e):"name"===r?o=this.escapedValue(s,e):"text"===r&&(o=this.rawValue(s)),void 0!==o&&(l+=o);return l},_.prototype.renderSection=function(t,n,a,s){var r=this,o="",l=n.lookup(t[1]);if(l){if(e(l))for(var d=0,u=l.length;d<u;++d)o+=this.renderTokens(t[4],n.push(l[d]),a,s);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)o+=this.renderTokens(t[4],n.push(l),a,s);else if(i(l)){if("string"!=typeof s)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(n.view,s.slice(t[3],t[5]),(function(t){return r.render(t,n,a)})))&&(o+=l)}else o+=this.renderTokens(t[4],n,a,s);return o}},_.prototype.renderInverted=function(t,i,n,a){var s=i.lookup(t[1]);if(!s||e(s)&&0===s.length)return this.renderTokens(t[4],i,n,a)},_.prototype.indentPartial=function(t,e,i){for(var n=e.replace(/[^ \t]/g,""),a=t.split("\n"),s=0;s<a.length;s++)a[s].length&&(s>0||!i)&&(a[s]=n+a[s]);return a.join("\n")},_.prototype.renderPartial=function(t,e,n,a){if(n){var s=i(n)?n(t[1]):n[t[1]];if(null!=s){var r=t[6],o=t[5],l=t[4],d=s;return 0==o&&l&&(d=this.indentPartial(s,l,r)),this.renderTokens(this.parse(d,a),e,n,d)}}},_.prototype.unescapedValue=function(t,e){var i=e.lookup(t[1]);if(null!=i)return i},_.prototype.escapedValue=function(t,e){var i=e.lookup(t[1]);if(null!=i)return g.escape(i)},_.prototype.rawValue=function(t){return t[1]};var g={name:"mustache.js",version:"3.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,to_html:void 0,Scanner:void 0,Context:void 0,Writer:void 0},v=new _;return g.clearCache=function(){return v.clearCache()},g.parse=function(t,e){return v.parse(t,e)},g.render=function(t,i,n,a){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+((e(s=t)?"array":typeof s)+'" was given as the first argument for mustache#render(template, view, partials)'));var s;return v.render(t,i,n,a)},g.to_html=function(t,e,n,a){var s=g.render(t,e,n);if(!i(a))return s;a(s)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return l[t]}))},g.Scanner=f,g.Context=m,g.Writer=_,g})),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one(t.support.transition.end,(function(){i=!0}));return setTimeout((function(){i||t(n).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}()}))}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){var i=t(this),n=i.attr("data-target");n||(n=(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var a=t(n);function s(){a.trigger("closed.bs.alert").remove()}e&&e.preventDefault(),a.length||(a=i.hasClass("alert")?i:i.parent()),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one(t.support.transition.end,s).emulateTransitionEnd(150):s())};var n=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var n=t(this),a=n.data("bs.alert");a||n.data("bs.alert",a=new i(this)),"string"==typeof e&&a[e].call(n)}))},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.isLoading=!1};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",n=this.$element,a=n.is("input")?"val":"html",s=n.data();e+="Text",s.resetText||n.data("resetText",n[a]()),n[a](s[e]||this.options[e]),setTimeout(t.proxy((function(){"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))}),this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each((function(){var n=t(this),a=n.data("bs.button"),s="object"==typeof i&&i;a||n.data("bs.button",a=new e(this,s)),"toggle"==i?a.toggle():i&&a.setState(i)}))},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api","[data-toggle^=button]",(function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle"),e.preventDefault()}))}(jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},e.prototype.to=function(e){var i=this,n=this.getActiveIndex();if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){i.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(e,i){var n=this.$element.find(".item.active"),a=i||n[e](),s=this.interval,r="next"==e?"left":"right",o="next"==e?"first":"last",l=this;if(!a.length){if(!this.options.wrap)return;a=this.$element.find(".item")[o]()}if(a.hasClass("active"))return this.sliding=!1;var d=t.Event("slide.bs.carousel",{relatedTarget:a[0],direction:r});return this.$element.trigger(d),d.isDefaultPrevented()?void 0:(this.sliding=!0,s&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",(function(){var e=t(l.$indicators.children()[l.getActiveIndex()]);e&&e.addClass("active")}))),t.support.transition&&this.$element.hasClass("slide")?(a.addClass(e),a[0].offsetWidth,n.addClass(r),a.addClass(r),n.one(t.support.transition.end,(function(){a.removeClass([e,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger("slid.bs.carousel")}),0)})).emulateTransitionEnd(1e3*n.css("transition-duration").slice(0,-1))):(n.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),s&&this.cycle(),this)};var i=t.fn.carousel;t.fn.carousel=function(i){return this.each((function(){var n=t(this),a=n.data("bs.carousel"),s=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i),r="string"==typeof i?i:s.slide;a||n.data("bs.carousel",a=new e(this,s)),"number"==typeof i?a.to(i):r?a[r]():s.interval&&a.pause().cycle()}))},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",(function(e){var i,n=t(this),a=t(n.attr("data-target")||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")),s=t.extend({},a.data(),n.data()),r=n.attr("data-slide-to");r&&(s.interval=!1),a.carousel(s),(r=n.attr("data-slide-to"))&&a.data("bs.carousel").to(r),e.preventDefault()})),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var e=t(this);e.carousel(e.data())}))}))}(jQuery),function(t){"use strict";var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=t.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .panel > .in");if(i&&i.length){var n=i.data("bs.collapse");if(n&&n.transitioning)return;i.collapse("hide"),n||i.data("bs.collapse",null)}var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var r=t.camelCase(["scroll",a].join("-"));this.$element.one(t.support.transition.end,t.proxy(s,this)).emulateTransitionEnd(350)[a](this.$element[0][r])}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!t.support.transition)return n.call(this);this.$element[i](0).one(t.support.transition.end,t.proxy(n,this)).emulateTransitionEnd(350)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each((function(){var n=t(this),a=n.data("bs.collapse"),s=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);!a&&s.toggle&&"show"==i&&(i=!i),a||n.data("bs.collapse",a=new e(this,s)),"string"==typeof i&&a[i]()}))},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",(function(e){var i,n=t(this),a=n.attr("data-target")||e.preventDefault()||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),s=t(a),r=s.data("bs.collapse"),o=r?"toggle":n.data(),l=n.attr("data-parent"),d=l&&t(l);r&&r.transitioning||(d&&d.find('[data-toggle=collapse][data-parent="'+l+'"]').not(n).addClass("collapsed"),n[s.hasClass("in")?"addClass":"removeClass"]("collapsed")),s.collapse(o)}))}(jQuery),function(t){"use strict";var e="[data-toggle=dropdown]",i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function n(i){t(".dropdown-backdrop").remove(),t(e).each((function(){var e=a(t(this)),n={relatedTarget:this};e.hasClass("open")&&(e.trigger(i=t.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||e.removeClass("open").trigger("hidden.bs.dropdown",n))}))}function a(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}i.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var s=a(i),r=s.hasClass("open");if(n(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",n);var o={relatedTarget:this};if(s.trigger(e=t.Event("show.bs.dropdown",o)),e.isDefaultPrevented())return;s.toggleClass("open").trigger("shown.bs.dropdown",o),i.focus()}return!1}},i.prototype.keydown=function(i){if(/(38|40|27)/.test(i.keyCode)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=a(n),r=s.hasClass("open");if(!r||r&&27==i.keyCode)return 27==i.which&&s.find(e).focus(),n.click();var o=" li:not(.divider):visible a",l=s.find("[role=menu]"+o+", [role=listbox]"+o);if(l.length){var d=l.index(l.filter(":focus"));38==i.keyCode&&d>0&&d--,40==i.keyCode&&d<l.length-1&&d++,~d||(d=0),l.eq(d).focus()}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),a=n.data("bs.dropdown");a||n.data("bs.dropdown",a=new i(this)),"string"==typeof e&&a[e].call(n)}))},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",e,i.prototype.toggle).on("keydown.bs.dropdown.data-api",e+", [role=menu], [role=listbox]",i.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,i){this.options=i,this.$element=t(e),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},e.prototype.show=function(e){var i=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop((function(){var n=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(document.body),i.$element.show().scrollTop(0),n&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var a=t.Event("shown.bs.modal",{relatedTarget:e});n?i.$element.find(".modal-dialog").one(t.support.transition.end,(function(){i.$element.focus().trigger(a)})).emulateTransitionEnd(300):i.$element.focus().trigger(a)})))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one(t.support.transition.end,t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()}),this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")}))},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=t.support.transition&&i;if(this.$backdrop=t('<div class="modal-backdrop '+i+'" />').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))}),this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var i=t.fn.modal;t.fn.modal=function(i,n){return this.each((function(){var a=t(this),s=a.data("bs.modal"),r=t.extend({},e.DEFAULTS,a.data(),"object"==typeof i&&i);s||a.data("bs.modal",s=new e(this,r)),"string"==typeof i?s[i](n):r.show&&s.show(n)}))},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var i=t(this),n=i.attr("href"),a=t(i.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),s=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},a.data(),i.data());i.is("a")&&e.preventDefault(),a.modal(s,this).one("hide",(function(){i.is(":visible")&&i.focus()}))})),t(document).on("show.bs.modal",".modal",(function(){t(document.body).addClass("modal-open")})).on("hidden.bs.modal",".modal",(function(){t(document.body).removeClass("modal-open")}))}(jQuery),function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n);for(var a=this.options.trigger.split(" "),s=a.length;s--;){var r=a[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var o="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,(function(t,n){i[t]!=n&&(e[t]=n)})),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)},e.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(e),e.isDefaultPrevented())return;var i=this,n=this.tip();this.setContent(),this.options.animation&&n.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,r=s.test(a);r&&(a=a.replace(s,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(a),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var o=this.getPosition(),l=n[0].offsetWidth,d=n[0].offsetHeight;if(r){var u=this.$element.parent(),h=a,c=document.documentElement.scrollTop||document.body.scrollTop,p="body"==this.options.container?window.innerWidth:u.outerWidth(),f="body"==this.options.container?window.innerHeight:u.outerHeight(),m="body"==this.options.container?0:u.offset().left;a="bottom"==a&&o.top+o.height+d-c>f?"top":"top"==a&&o.top-c-d<0?"bottom":"right"==a&&o.right+l>p?"left":"left"==a&&o.left-l<m?"right":a,n.removeClass(h).addClass(a)}var _=this.getCalculatedOffset(a,o,l,d);this.applyPlacement(_,a),this.hoverState=null;var g=function(){i.$element.trigger("shown.bs."+i.type)};t.support.transition&&this.$tip.hasClass("fade")?n.one(t.support.transition.end,g).emulateTransitionEnd(150):g()}},e.prototype.applyPlacement=function(e,i){var n,a=this.tip(),s=a[0].offsetWidth,r=a[0].offsetHeight,o=parseInt(a.css("margin-top"),10),l=parseInt(a.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(l)&&(l=0),e.top=e.top+o,e.left=e.left+l,t.offset.setOffset(a[0],t.extend({using:function(t){a.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),a.addClass("in");var d=a[0].offsetWidth,u=a[0].offsetHeight;if("top"==i&&u!=r&&(n=!0,e.top=e.top+r-u),/bottom|top/.test(i)){var h=0;e.left<0&&(h=-2*e.left,e.left=0,a.offset(e),d=a[0].offsetWidth,u=a[0].offsetHeight),this.replaceArrow(h-s+d,d,"left")}else this.replaceArrow(u-r,u,"top");n&&a.offset(e)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(){var e=this,i=this.tip(),n=t.Event("hide.bs."+this.type);function a(){"in"!=e.hoverState&&i.detach(),e.$element.trigger("hidden.bs."+e.type)}if(this.$element.trigger(n),!n.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?i.one(t.support.transition.end,a).emulateTransitionEnd(150):a(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},e.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=e?t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each((function(){var n=t(this),a=n.data("bs.tooltip"),s="object"==typeof i&&i;(a||"destroy"!=i)&&(a||n.data("bs.tooltip",a=new e(this,s)),"string"==typeof i&&a[i]())}))},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=function(i){return this.each((function(){var n=t(this),a=n.data("bs.popover"),s="object"==typeof i&&i;(a||"destroy"!=i)&&(a||n.data("bs.popover",a=new e(this,s)),"string"==typeof i&&a[i]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";function e(i,n){var a,s=t.proxy(this.process,this);this.$element=t(i).is("body")?t(window):t(i),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",s),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||(a=t(i).attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);var i=this;this.$body.find(this.selector).map((function(){var n=t(this),a=n.data("target")||n.attr("href"),s=/^#./.test(a)&&t(a);return s&&s.length&&s.is(":visible")&&[[s[e]().top+(!t.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),a]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){i.offsets.push(this[0]),i.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),n=this.offsets,a=this.targets,s=this.activeTarget;if(e>=i)return s!=(t=a.last()[0])&&this.activate(t);if(s&&e<=n[0])return s!=(t=a[0])&&this.activate(t);for(t=n.length;t--;)s!=a[t]&&e>=n[t]&&(!n[t+1]||e<=n[t+1])&&this.activate(a[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")};var i=t.fn.scrollspy;t.fn.scrollspy=function(i){return this.each((function(){var n=t(this),a=n.data("bs.scrollspy"),s="object"==typeof i&&i;a||n.data("bs.scrollspy",a=new e(this,s)),"string"==typeof i&&a[i]()}))},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load",(function(){t('[data-spy="scroll"]').each((function(){var e=t(this);e.scrollspy(e.data())}))}))}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var a=i.find(".active:last a")[0],s=t.Event("show.bs.tab",{relatedTarget:a});if(e.trigger(s),!s.isDefaultPrevented()){var r=t(n);this.activate(e.parent("li"),i),this.activate(r,r.parent(),(function(){e.trigger({type:"shown.bs.tab",relatedTarget:a})}))}}},e.prototype.activate=function(e,i,n){var a=i.find("> .active"),s=n&&t.support.transition&&a.hasClass("fade");function r(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}s?a.one(t.support.transition.end,r).emulateTransitionEnd(150):r(),a.removeClass("in")};var i=t.fn.tab;t.fn.tab=function(i){return this.each((function(){var n=t(this),a=n.data("bs.tab");a||n.data("bs.tab",a=new e(this)),"string"==typeof i&&a[i]()}))},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',(function(e){e.preventDefault(),t(this).tab("show")}))}(jQuery),function(t){"use strict";var e=function(i,n){this.options=t.extend({},e.DEFAULTS,n),this.$window=t(window).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=t(document).height(),n=this.$window.scrollTop(),a=this.$element.offset(),s=this.options.offset,r=s.top,o=s.bottom;"top"==this.affixed&&(a.top+=n),"object"!=typeof s&&(o=r=s),"function"==typeof r&&(r=s.top(this.$element)),"function"==typeof o&&(o=s.bottom(this.$element));var l=!(null!=this.unpin&&n+this.unpin<=a.top)&&(null!=o&&a.top+this.$element.height()>=i-o?"bottom":null!=r&&n<=r&&"top");if(this.affixed!==l){this.unpin&&this.$element.css("top","");var d="affix"+(l?"-"+l:""),u=t.Event(d+".bs.affix");this.$element.trigger(u),u.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(d).trigger(t.Event(d.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:i-o-this.$element.height()}))}}};var i=t.fn.affix;t.fn.affix=function(i){return this.each((function(){var n=t(this),a=n.data("bs.affix"),s="object"==typeof i&&i;a||n.data("bs.affix",a=new e(this,s)),"string"==typeof i&&a[i]()}))},t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var e=t(this),i=e.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),e.affix(i)}))}))}(jQuery),function(t){function e(t,e){"function"==typeof t&&(e=t,t={}),t=t||{},D.extend(w,t),delete w.fixLng,w.functions&&(delete w.functions,D.extend(D,t.functions)),"string"==typeof w.ns&&(w.ns={namespaces:[w.ns],defaultNs:w.ns}),"string"==typeof w.fallbackNS&&(w.fallbackNS=[w.fallbackNS]),("string"==typeof w.fallbackLng||"boolean"==typeof w.fallbackLng)&&(w.fallbackLng=[w.fallbackLng]),w.interpolationPrefixEscaped=D.regexEscape(w.interpolationPrefix),w.interpolationSuffixEscaped=D.regexEscape(w.interpolationSuffix),w.lng||(w.lng=D.detectLanguage()),y=D.toLanguages(w.lng),f=y[0],D.log("currentLng set to: "+f),w.useCookie&&D.cookie.read(w.cookieName)!==f&&D.cookie.create(w.cookieName,f,w.cookieExpirationTime,w.cookieDomain),w.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&D.localStorage.setItem("i18next_lng",f);var i,n=d;if(t.fixLng&&((n=function(t,e){return(e=e||{}).lng=e.lng||n.lng,d(t,e)}).lng=f),x.setCurrentLng(f),m&&w.setJqueryExt&&function(){function t(t,e,i){if(0!==e.length){var n,a="text";if(0===e.indexOf("[")){var s=e.split("]");e=s[1],a=s[0].substr(1,s[0].length-1)}if(e.indexOf(";")===e.length-1&&(e=e.substr(0,e.length-2)),"html"===a)n=w.defaultValueFromContent?m.extend({defaultValue:t.html()},i):i,t.html(m.t(e,n));else if("text"===a)n=w.defaultValueFromContent?m.extend({defaultValue:t.text()},i):i,t.text(m.t(e,n));else if("prepend"===a)n=w.defaultValueFromContent?m.extend({defaultValue:t.html()},i):i,t.prepend(m.t(e,n));else if("append"===a)n=w.defaultValueFromContent?m.extend({defaultValue:t.html()},i):i,t.append(m.t(e,n));else if(0===a.indexOf("data-")){var r=a.substr("data-".length);n=w.defaultValueFromContent?m.extend({defaultValue:t.data(r)},i):i;var o=m.t(e,n);t.data(r,o),t.attr(a,o)}else n=w.defaultValueFromContent?m.extend({defaultValue:t.attr(a)},i):i,t.attr(a,m.t(e,n))}}function e(e,i){var n=e.attr(w.selectorAttr);if(n||void 0===n||!1===n||(n=e.text()||e.val()),n){var a=e,s=e.data("i18n-target");if(s&&(a=e.find(s)||e),i||!0!==w.useDataAttrOptions||(i=e.data("i18n-options")),i=i||{},n.indexOf(";")>=0){var r=n.split(";");m.each(r,(function(e,n){""!==n&&t(a,n,i)}))}else t(a,n,i);!0===w.useDataAttrOptions&&e.data("i18n-options",i)}}m.t=m.t||d,m.fn.i18n=function(t){return this.each((function(){e(m(this),t),m(this).find("["+w.selectorAttr+"]").each((function(){e(m(this),t)}))}))}}(),m&&m.Deferred&&(i=m.Deferred()),!w.resStore){var a=D.toLanguages(w.lng);"string"==typeof w.preload&&(w.preload=[w.preload]);for(var s=0,r=w.preload.length;r>s;s++)for(var o=D.toLanguages(w.preload[s]),l=0,u=o.length;u>l;l++)a.indexOf(o[l])<0&&a.push(o[l]);return _.sync.load(a,w,(function(t,a){g=a,M=!0,e&&e(n),i&&i.resolve(n)})),i?i.promise():void 0}return g=w.resStore,M=!0,e&&e(n),i&&i.resolve(n),i?i.promise():void 0}function i(t,e,i,n){"string"!=typeof e?(resource=e,e=w.ns.defaultNs):w.ns.namespaces.indexOf(e)<0&&w.ns.namespaces.push(e),g[t]=g[t]||{},g[t][e]=g[t][e]||{};for(var a=i.split(w.keyseparator),s=0,r=g[t][e];a[s];)s==a.length-1?r[a[s]]=n:(null==r[a[s]]&&(r[a[s]]={}),r=r[a[s]]),s++;w.useLocalStorage&&b._storeLocal(g)}function n(t,e){var i={dynamicLoad:w.dynamicLoad,resGetPath:w.resGetPath,getAsync:w.getAsync,customLoad:w.customLoad,ns:{namespaces:t,defaultNs:""}},n=D.toLanguages(w.lng);"string"==typeof w.preload&&(w.preload=[w.preload]);for(var a=0,s=w.preload.length;s>a;a++)for(var r=D.toLanguages(w.preload[a]),o=0,l=r.length;l>o;o++)n.indexOf(r[o])<0&&n.push(r[o]);for(var d=[],u=0,h=n.length;h>u;u++){var c=!1,p=g[n[u]];if(p)for(var f=0,m=t.length;m>f;f++)p[t[f]]||(c=!0);else c=!0;c&&d.push(n[u])}d.length?_.sync._fetch(d,i,(function(i,n){var a=t.length*d.length;D.each(t,(function(t,i){w.ns.namespaces.indexOf(i)<0&&w.ns.namespaces.push(i),D.each(d,(function(t,s){g[s]=g[s]||{},g[s][i]=n[s][i],0===--a&&e&&(w.useLocalStorage&&_.sync._storeLocal(g),e())}))}))})):e&&e()}function a(t,i,n){return"function"==typeof i?(n=i,i={}):i||(i={}),i.lng=t,e(i,n)}function s(t,e,i,n){if(!t)return t;if(n=n||e,t.indexOf(n.interpolationPrefix||w.interpolationPrefix)<0)return t;var a=n.interpolationPrefix?D.regexEscape(n.interpolationPrefix):w.interpolationPrefixEscaped,r=n.interpolationSuffix?D.regexEscape(n.interpolationSuffix):w.interpolationSuffixEscaped,o="HTML"+r,l=e.replace&&"object"==typeof e.replace?e.replace:e;return D.each(l,(function(e,l){var d=i?i+w.keyseparator+e:e;"object"==typeof l&&null!==l?t=s(t,l,d,n):n.escapeInterpolation||w.escapeInterpolation?t=(t=t.replace(new RegExp([a,d,o].join(""),"g"),D.regexReplacementEscape(l))).replace(new RegExp([a,d,r].join(""),"g"),D.regexReplacementEscape(D.escape(l))):t=t.replace(new RegExp([a,d,r].join(""),"g"),D.regexReplacementEscape(l))})),t}function r(t,e){var i=D.extend({},e);for(delete i.postProcess;-1!=t.indexOf(w.reusePrefix)&&!(++v>w.maxRecursion);){var n=t.lastIndexOf(w.reusePrefix),a=t.indexOf(w.reuseSuffix,n)+w.reuseSuffix.length,s=t.substring(n,a),r=s.replace(w.reusePrefix,"").replace(w.reuseSuffix,"");if(n>=a)return D.error("there is an missing closing in following translation value",t),"";if(-1!=r.indexOf(",")){var o=r.indexOf(",");if(-1!=r.indexOf("{",o)&&-1!=r.indexOf("}",o)){var l=r.indexOf("{",o),d=r.indexOf("}",l)+"}".length;try{i=D.extend(i,JSON.parse(r.substring(l,d))),r=r.substring(0,o)}catch(t){}}}var u=c(r,i);t=t.replace(s,D.regexReplacementEscape(u))}return t}function o(t){return void 0!==t.count&&"string"!=typeof t.count}function l(t,e){var i=u(t,e=e||{}),n=p(t,e);return void 0!==n||n===i}function d(t,e){return e=e||{},M?(v=0,c.apply(null,arguments)):(D.log("i18next not finished initialization. you might have called t function before loading resources finished."),e.defaultValue||"")}function u(t,e){return void 0!==e.defaultValue?e.defaultValue:t}function h(){for(var t=[],e=1;e<arguments.length;e++)t.push(arguments[e]);return{postProcess:"sprintf",sprintf:t}}function c(t,e){if(e&&"object"!=typeof e?"sprintf"===w.shortcutFunction?e=h.apply(null,arguments):"defaultValue"===w.shortcutFunction&&(e={defaultValue:e}):e=e||{},"object"==typeof w.defaultVariables&&(e=D.extend({},w.defaultVariables,e)),null==t||""===t)return"";"number"==typeof t&&(t=String(t)),"string"==typeof t&&(t=[t]);var i=t[0];if(t.length>1)for(var n=0;n<t.length&&!l(i=t[n],e);n++);var a,o,d=u(i,e),c=p(i,e),f=e.lng?D.toLanguages(e.lng,e.fallbackLng):y,m=e.ns||w.ns.defaultNs;i.indexOf(w.nsseparator)>-1&&(m=(a=i.split(w.nsseparator))[0],i=a[1]),void 0===c&&w.sendMissing&&"function"==typeof w.missingKeyHandler&&(e.lng?w.missingKeyHandler(f[0],m,i,d,f):w.missingKeyHandler(w.lng,m,i,d,f)),o="string"==typeof w.postProcess&&""!==w.postProcess?[w.postProcess]:"array"==typeof w.postProcess||"object"==typeof w.postProcess?w.postProcess:[],"string"==typeof e.postProcess&&""!==e.postProcess?o=o.concat([e.postProcess]):("array"==typeof e.postProcess||"object"==typeof e.postProcess)&&(o=o.concat(e.postProcess)),void 0!==c&&o.length&&o.forEach((function(t){S[t]&&(c=S[t](c,i,e))}));var _=d;if(d.indexOf(w.nsseparator)>-1&&(_=(a=d.split(w.nsseparator))[1]),_===i&&w.parseMissingKey&&(d=w.parseMissingKey(d)),void 0===c&&(d=r(d=s(d,e),e),o.length)){var g=u(i,e);o.forEach((function(t){S[t]&&(c=S[t](g,i,e))}))}return void 0!==c?c:d}function p(t,e){var i,n,a=u(t,e=e||{}),l=y;if(!g)return a;if("cimode"===l[0].toLowerCase())return a;if(e.lngs&&(l=e.lngs),e.lng&&(l=D.toLanguages(e.lng,e.fallbackLng),!g[l[0]])){var h=w.getAsync;w.getAsync=!1,_.sync.load(l,w,(function(t,e){D.extend(g,e),w.getAsync=h}))}var f=e.ns||w.ns.defaultNs;if(t.indexOf(w.nsseparator)>-1){var m=t.split(w.nsseparator);f=m[0],t=m[1]}if(function(t){return t.context&&("string"==typeof t.context||"number"==typeof t.context)}(e)&&(delete(i=D.extend({},e)).context,i.defaultValue=w.contextNotFound,(n=d(f+w.nsseparator+t+"_"+e.context,i))!=w.contextNotFound))return s(n,{context:e.context});if(o(e,l[0])){var v;if(delete(i=D.extend({lngs:[l[0]]},e)).count,i._origLng=i._origLng||i.lng||l[0],delete i.lng,i.defaultValue=w.pluralNotFound,x.needsPlural(l[0],e.count)){v=f+w.nsseparator+t+w.pluralSuffix;var M=x.get(l[0],e.count);M>=0?v=v+"_"+M:1===M&&(v=f+w.nsseparator+t)}else v=f+w.nsseparator+t;if((n=d(v,i))!=w.pluralNotFound)return s(n,{count:e.count,interpolationPrefix:e.interpolationPrefix,interpolationSuffix:e.interpolationSuffix});if(!(l.length>1))return i.lng=i._origLng,delete i._origLng,s(n=d(f+w.nsseparator+t,i),{count:e.count,interpolationPrefix:e.interpolationPrefix,interpolationSuffix:e.interpolationSuffix});var b=l.slice();if(b.shift(),(e=D.extend(e,{lngs:b}))._origLng=i._origLng,delete e.lng,(n=d(f+w.nsseparator+t,e))!=w.pluralNotFound)return n}if(function(t){return void 0!==t.indefinite_article&&"string"!=typeof t.indefinite_article&&t.indefinite_article}(e)){var L=D.extend({},e);if(delete L.indefinite_article,L.defaultValue=w.indefiniteNotFound,(n=d(f+w.nsseparator+t+(e.count&&!o(e,l[0])||!e.count?w.indefiniteSuffix:""),L))!=w.indefiniteNotFound)return n}for(var k,T=t.split(w.keyseparator),Y=0,S=l.length;S>Y&&void 0===k;Y++){for(var C=l[Y],F=0,$=g[C]&&g[C][f];T[F];)$=$&&$[T[F]],F++;if(void 0!==$){var j=Object.prototype.toString.apply($);if("string"==typeof $)$=r($=s($,e),e);else if("[object Array]"!==j||w.returnObjectTrees||e.returnObjectTrees){if(null===$&&!0===w.fallbackOnNull)$=void 0;else if(null!==$)if(w.returnObjectTrees||e.returnObjectTrees){if("[object Number]"!==j&&"[object Function]"!==j&&"[object RegExp]"!==j){var A="[object Array]"===j?[]:{};D.each($,(function(i){A[i]=c(f+w.nsseparator+t+w.keyseparator+i,e)})),$=A}}else w.objectTreeKeyHandler&&"function"==typeof w.objectTreeKeyHandler?$=w.objectTreeKeyHandler(t,$,C,f,e):($="key '"+f+":"+t+" ("+C+")' returned an object instead of string.",D.log($))}else $=r($=s($=$.join("\n"),e),e);"string"==typeof $&&""===$.trim()&&!0===w.fallbackOnEmpty&&($=void 0),k=$}}if(void 0===k&&!e.isFallbackLookup&&(!0===w.fallbackToDefaultNS||w.fallbackNS&&w.fallbackNS.length>0)){if(e.isFallbackLookup=!0,w.fallbackNS.length){for(var E=0,W=w.fallbackNS.length;W>E;E++)if((k=p(w.fallbackNS[E]+w.nsseparator+t,e))||""===k&&!1===w.fallbackOnEmpty){if((k.indexOf(w.nsseparator)>-1?k.split(w.nsseparator)[1]:k)!==(a.indexOf(w.nsseparator)>-1?a.split(w.nsseparator)[1]:a))break}}else k=p(t,e);e.isFallbackLookup=!1}return k}Array.prototype.indexOf||(Array.prototype.indexOf=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if(0===i)return-1;var n=0;if(arguments.length>0&&((n=Number(arguments[1]))!=n?n=0:0!=n&&n!=1/0&&n!=-1/0&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=i)return-1;for(var a=n>=0?n:Math.max(i-Math.abs(n),0);i>a;a++)if(a in e&&e[a]===t)return a;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if(0===i)return-1;var n=i;arguments.length>1&&((n=Number(arguments[1]))!=n?n=0:0!=n&&n!=1/0&&n!=-1/0&&(n=(n>0||-1)*Math.floor(Math.abs(n))));for(var a=n>=0?Math.min(n,i-1):i-Math.abs(n);a>=0;a--)if(a in e&&e[a]===t)return a;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var f,m=t.jQuery||t.Zepto,_={},g={},v=0,y=[],M=!1,b={};"undefined"!=typeof module&&module.exports?module.exports=_:(m&&(m.i18n=m.i18n||_),t.i18n=t.i18n||_),b={load:function(t,e,i){e.useLocalStorage?b._loadLocal(t,e,(function(n,a){for(var s=[],r=0,o=t.length;o>r;r++)a[t[r]]||s.push(t[r]);s.length>0?b._fetch(s,e,(function(t,e){D.extend(a,e),b._storeLocal(e),i(null,a)})):i(null,a)})):b._fetch(t,e,(function(t,e){i(null,e)}))},_loadLocal:function(t,e,i){var n={},a=(new Date).getTime();if(window.localStorage){var s=t.length;D.each(t,(function(t,r){var o=D.localStorage.getItem("res_"+r);o&&((o=JSON.parse(o)).i18nStamp&&o.i18nStamp+e.localStorageExpirationTime>a&&(n[r]=o)),0===--s&&i(null,n)}))}},_storeLocal:function(t){if(window.localStorage)for(var e in t)t[e].i18nStamp=(new Date).getTime(),D.localStorage.setItem("res_"+e,JSON.stringify(t[e]))},_fetch:function(t,e,i){var n=e.ns,a={};if(e.dynamicLoad){var r=function(t,e){i(null,e)};if("function"==typeof e.customLoad)e.customLoad(t,n.namespaces,e,r);else{var o=s(e.resGetPath,{lng:t.join("+"),ns:n.namespaces.join("+")});D.ajax({url:o,success:function(t){D.log("loaded: "+o),r(0,t)},error:function(t,e,i){D.log("failed loading: "+o),r()},dataType:"json",async:e.getAsync})}}else{var l,d=n.namespaces.length*t.length;D.each(n.namespaces,(function(n,s){D.each(t,(function(t,n){var r=function(t,e){t&&(l=l||[]).push(t),a[n]=a[n]||{},a[n][s]=e,0===--d&&i(l,a)};"function"==typeof e.customLoad?e.customLoad(n,s,e,r):b._fetchOne(n,s,e,r)}))}))}},_fetchOne:function(t,e,i,n){var a=s(i.resGetPath,{lng:t,ns:e});D.ajax({url:a,success:function(t){D.log("loaded: "+a),n(null,t)},error:function(t,e,i){if(e&&200==e||t&&t.status&&200==t.status)D.error("There is a typo in: "+a);else if(e&&404==e||t&&t.status&&404==t.status)D.log("Does not exist: "+a);else{var s=e||(t&&t.status?t.status:null);D.log(s+" when loading "+a)}n(i,{})},dataType:"json",async:i.getAsync})},postMissing:function(t,e,i,n,a){var r={};r[i]=n;var o=[];if("fallback"===w.sendMissingTo&&!1!==w.fallbackLng[0])for(var l=0;l<w.fallbackLng.length;l++)o.push({lng:w.fallbackLng[l],url:s(w.resPostPath,{lng:w.fallbackLng[l],ns:e})});else if("current"===w.sendMissingTo||"fallback"===w.sendMissingTo&&!1===w.fallbackLng[0])o.push({lng:t,url:s(w.resPostPath,{lng:t,ns:e})});else if("all"===w.sendMissingTo){l=0;for(var d=a.length;d>l;l++)o.push({lng:a[l],url:s(w.resPostPath,{lng:a[l],ns:e})})}for(var u=0,h=o.length;h>u;u++){var c=o[u];D.ajax({url:c.url,type:w.sendType,data:r,success:function(){D.log("posted missing key '"+i+"' to: "+c.url);for(var t=i.split("."),a=0,s=g[c.lng][e];t[a];)s=s[t[a]]=a===t.length-1?n:s[t[a]]||{},a++},error:function(){D.log("failed posting missing key '"+i+"' to: "+c.url)},dataType:"json",async:w.postAsync})}},reload:function(t){g={},a(f,t)}};var w={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:"translation",fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:b.postMissing,shortcutFunction:"sprintf"},L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},k={create:function(t,e,i,n){var a;if(i){var s=new Date;s.setTime(s.getTime()+60*i*1e3),a="; expires="+s.toGMTString()}else a="";n=n?"domain="+n+";":"",document.cookie=t+"="+e+a+";"+n+"path=/"},read:function(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var a=i[n];" "==a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(e))return a.substring(e.length,a.length)}return null},remove:function(t){this.create(t,"",-1)}},D={extend:m?m.extend:function(t,e){if(!e||"function"==typeof e)return t;for(var i in e)t[i]=e[i];return t},deepExtend:function t(e,i){for(var n in i)n in e?t(e[n],i[n]):e[n]=i[n];return e},each:m?m.each:function(t,e,i){var n,a=0,s=t.length,r=void 0===s||"[object Array]"!==Object.prototype.toString.apply(t)||"function"==typeof t;if(i)if(r){for(n in t)if(!1===e.apply(t[n],i))break}else for(;s>a&&!1!==e.apply(t[a++],i););else if(r){for(n in t)if(!1===e.call(t[n],n,t[n]))break}else for(;s>a&&!1!==e.call(t[a],a,t[a++]););return t},ajax:m?m.ajax:"undefined"!=typeof document?function(t){var e=function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var n=t.charCodeAt(i);128>n?e+=String.fromCharCode(n):n>127&&2048>n?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t);var i,n,a,s,r,o,l,d="",u=0;do{s=(i=t.charCodeAt(u++))>>2,r=(3&i)<<4|(n=t.charCodeAt(u++))>>4,o=(15&n)<<2|(a=t.charCodeAt(u++))>>6,l=63&a,isNaN(n)?o=l=64:isNaN(a)&&(l=64),d+=e.charAt(s)+e.charAt(r)+e.charAt(o)+e.charAt(l),i=n=a="",s=r=o=l=""}while(u<t.length);return d},i=function(t,e,n,a){"function"==typeof n&&(a=n,n={}),n.cache=n.cache||!1,n.data=n.data||{},n.headers=n.headers||{},n.jsonp=n.jsonp||!1,n.async=void 0===n.async||n.async;var s,r=function(){for(var t=arguments[0],e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}return t}({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},i.headers,n.headers);if(s="application/json"===r["content-type"]?JSON.stringify(n.data):function(t){if("string"==typeof t)return t;var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return e.join("&")}(n.data),"GET"===t){var o=[];if(s&&(o.push(s),s=null),n.cache||o.push("_="+(new Date).getTime()),n.jsonp&&(o.push("callback="+n.jsonp),o.push("jsonp="+n.jsonp)),(o=o.join("&")).length>1&&(e+=e.indexOf("?")>-1?"&"+o:"?"+o),n.jsonp){var l=document.getElementsByTagName("head")[0],d=document.createElement("script");return d.type="text/javascript",d.src=e,void l.appendChild(d)}}!function(t){if(window.XMLHttpRequest)return t(null,new XMLHttpRequest);if(window.ActiveXObject)try{return t(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(e){return t(null,new ActiveXObject("Microsoft.XMLHTTP"))}t(new Error)}((function(i,o){if(i)return a(i);for(var l in o.open(t,e,n.async),r)r.hasOwnProperty(l)&&o.setRequestHeader(l,r[l]);o.onreadystatechange=function(){if(4===o.readyState){var t=o.responseText||"";if(!a)return;a(o.status,{text:function(){return t},json:function(){try{return JSON.parse(t)}catch(t){return D.error("Can not parse JSON. URL: "+e),{}}}})}},o.send(s)}))};({authBasic:function(t,n){i.headers.Authorization="Basic "+e(t+":"+n)},connect:function(t,e,n){return i("CONNECT",t,e,n)},del:function(t,e,n){return i("DELETE",t,e,n)},get:function(t,e,n){return i("GET",t,e,n)},head:function(t,e,n){return i("HEAD",t,e,n)},headers:function(t){i.headers=t||{}},isAllowed:function(t,e,i){this.options(t,(function(t,n){i(-1!==n.text().indexOf(e))}))},options:function(t,e,n){return i("OPTIONS",t,e,n)},patch:function(t,e,n){return i("PATCH",t,e,n)},post:function(t,e,n){return i("POST",t,e,n)},put:function(t,e,n){return i("PUT",t,e,n)},trace:function(t,e,n){return i("TRACE",t,e,n)}})[t.type?t.type.toLowerCase():"get"](t.url,t,(function(e,i){200===e||0===e&&i.text()?t.success(i.json(),e,null):t.error(i.text(),e,null)}))}:function(){},cookie:"undefined"!=typeof document?k:{create:function(){},read:function(){return null},remove:function(){}},detectLanguage:function(){var t,e=w.lngWhitelist||[],i=[];if("undefined"!=typeof window&&function(){for(var t=window.location.search.substring(1).split("&"),e=0;e<t.length;e++){var n=t[e].indexOf("=");if(n>0)t[e].substring(0,n)==w.detectLngQS&&i.push(t[e].substring(n+1))}}(),w.useCookie&&"undefined"!=typeof document){var n=D.cookie.read(w.cookieName);n&&i.push(n)}if(w.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage&&i.push(D.localStorage.getItem("i18next_lng")),"undefined"!=typeof navigator){if(navigator.languages)for(var a=0;a<navigator.languages.length;a++)i.push(navigator.languages[a]);navigator.userLanguage&&i.push(navigator.userLanguage),navigator.language&&i.push(navigator.language)}return function(){for(var n=0;n<i.length;n++){var a=i[n];if(a.indexOf("-")>-1){var s=a.split("-");a=w.lowerCaseLng?s[0].toLowerCase()+"-"+s[1].toLowerCase():s[0].toLowerCase()+"-"+s[1].toUpperCase()}if(0===e.length||e.indexOf(a)>-1){t=a;break}}}(),t||(t=w.fallbackLng[0]),t},escape:function(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return L[t]})):t},log:function(t){w.debug},error:function(t){},getCountyIndexOfLng:function(t){var e=0;return("nb-NO"===t||"nn-NO"===t||"nb-no"===t||"nn-no"===t)&&(e=1),e},toLanguages:function(t){function e(t){var e=t;if("string"==typeof t&&t.indexOf("-")>-1){var i=t.split("-");e=w.lowerCaseLng?i[0].toLowerCase()+"-"+i[1].toLowerCase():i[0].toLowerCase()+"-"+i[1].toUpperCase()}else e=w.lowerCaseLng?t.toLowerCase():t;return e}var i=this.log,n=[],a=w.lngWhitelist||!1,s=function(t){!a||a.indexOf(t)>-1?n.push(t):i("rejecting non-whitelisted language: "+t)};if("string"==typeof t&&t.indexOf("-")>-1){var r=t.split("-");"unspecific"!==w.load&&s(e(t)),"current"!==w.load&&s(e(r[this.getCountyIndexOfLng(t)]))}else s(e(t));for(var o=0;o<w.fallbackLng.length;o++)-1===n.indexOf(w.fallbackLng[o])&&w.fallbackLng[o]&&n.push(e(w.fallbackLng[o]));return n},regexEscape:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(t){return"string"==typeof t?t.replace(/\$/g,"$$$$"):t},localStorage:{setItem:function(t,e){if(window.localStorage)try{window.localStorage.setItem(t,e)}catch(e){D.log('failed to set value for key "'+t+'" to localStorage.')}},getItem:function(t,e){if(window.localStorage)try{return window.localStorage.getItem(t,e)}catch(e){return void D.log('failed to get value for key "'+t+'" from localStorage.')}}}};D.applyReplacement=s;var T=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],Y={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?1:2)},5:function(t){return Number(0===t?0:1==t?1:2==t?2:t%100>=3&&10>=t%100?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&4>=t?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:7>t?2:11>t?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&20>t?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(10>t%100||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1?0:1)},18:function(t){return Number(1==t?1:2)},19:function(t){return Number(1==t?0:0===t||t%100>1&&11>t%100?1:t%100>10&&20>t%100?2:3)},20:function(t){return Number(1==t?0:0===t||t%100>0&&20>t%100?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)}},x={rules:function(){var t,e={};for(t=T.length;t--;)e[T[t][0]]={name:T[t][1],numbers:T[t][2],plurals:Y[T[t][3]]};return e}(),addRule:function(t,e){x.rules[t]=e},setCurrentLng:function(t){if(!x.currentRule||x.currentRule.lng!==t){var e=t.split("-");x.currentRule={lng:t,rule:x.rules[e[0]]}}},needsPlural:function(t,e){var i,n=t.split("-");return!((i=x.currentRule&&x.currentRule.lng===t?x.currentRule.rule:x.rules[n[D.getCountyIndexOfLng(t)]])&&i.numbers.length<=1)&&1!==this.get(t,e)},get:function(t,e){return function(e,i){var n;if(n=x.currentRule&&x.currentRule.lng===t?x.currentRule.rule:x.rules[e]){var a;a=n.plurals(n.noAbs?i:Math.abs(i));var s=n.numbers[a];return 2===n.numbers.length&&1===n.numbers[0]&&(2===s?s=-1:1===s&&(s=1)),s}return 1===i?"1":"-1"}(t.split("-")[D.getCountyIndexOfLng(t)],e)}},S={},C=function(t,e){S[t]=e},F=function(){function t(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function e(t,e){for(var i=[];e>0;i[--e]=t);return i.join("")}var i=function(){return i.cache.hasOwnProperty(arguments[0])||(i.cache[arguments[0]]=i.parse(arguments[0])),i.format.call(null,i.cache[arguments[0]],arguments)};return i.format=function(i,n){var a,s,r,o,l,d,u,h=1,c=i.length,p="",f=[];for(s=0;c>s;s++)if("string"===(p=t(i[s])))f.push(i[s]);else if("array"===p){if((o=i[s])[2])for(a=n[h],r=0;r<o[2].length;r++){if(!a.hasOwnProperty(o[2][r]))throw F('[sprintf] property "%s" does not exist',o[2][r]);a=a[o[2][r]]}else a=o[1]?n[o[1]]:n[h++];if(/[^s]/.test(o[8])&&"number"!=t(a))throw F("[sprintf] expecting number but found %s",t(a));switch(o[8]){case"b":a=a.toString(2);break;case"c":a=String.fromCharCode(a);break;case"d":a=parseInt(a,10);break;case"e":a=o[7]?a.toExponential(o[7]):a.toExponential();break;case"f":a=o[7]?parseFloat(a).toFixed(o[7]):parseFloat(a);break;case"o":a=a.toString(8);break;case"s":a=(a=String(a))&&o[7]?a.substring(0,o[7]):a;break;case"u":a=Math.abs(a);break;case"x":a=a.toString(16);break;case"X":a=a.toString(16).toUpperCase()}a=/[def]/.test(o[8])&&o[3]&&a>=0?"+"+a:a,d=o[4]?"0"==o[4]?"0":o[4].charAt(1):" ",u=o[6]-String(a).length,l=o[6]?e(d,u):"",f.push(o[5]?a+l:l+a)}return f.join("")},i.cache={},i.parse=function(t){for(var e=t,i=[],n=[],a=0;e;){if(null!==(i=/^[^\x25]+/.exec(e)))n.push(i[0]);else if(null!==(i=/^\x25{2}/.exec(e)))n.push("%");else{if(null===(i=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(e)))throw"[sprintf] huh?";if(i[2]){a|=1;var s=[],r=i[2],o=[];if(null===(o=/^([a-z_][a-z_\d]*)/i.exec(r)))throw"[sprintf] huh?";for(s.push(o[1]);""!==(r=r.substring(o[0].length));)if(null!==(o=/^\.([a-z_][a-z_\d]*)/i.exec(r)))s.push(o[1]);else{if(null===(o=/^\[(\d+)\]/.exec(r)))throw"[sprintf] huh?";s.push(o[1])}i[2]=s}else a|=2;if(3===a)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";n.push(i)}e=e.substring(i[0].length)}return n},i}();C("sprintf",(function(t,e,i){return i.sprintf?"[object Array]"===Object.prototype.toString.apply(i.sprintf)?function(t,e){return e.unshift(t),F.apply(null,e)}(t,i.sprintf):"object"==typeof i.sprintf?F(t,i.sprintf):t:t})),_.init=e,_.setLng=a,_.preload=function(t,i){"string"==typeof t&&(t=[t]);for(var n=0,a=t.length;a>n;n++)w.preload.indexOf(t[n])<0&&w.preload.push(t[n]);return e(i)},_.addResourceBundle=function(t,e,i,n){"string"!=typeof e?(i=e,e=w.ns.defaultNs):w.ns.namespaces.indexOf(e)<0&&w.ns.namespaces.push(e),g[t]=g[t]||{},g[t][e]=g[t][e]||{},n?D.deepExtend(g[t][e],i):D.extend(g[t][e],i),w.useLocalStorage&&b._storeLocal(g)},_.hasResourceBundle=function(t,e){"string"!=typeof e&&(e=w.ns.defaultNs),g[t]=g[t]||{};var i=g[t][e]||{},n=!1;for(var a in i)i.hasOwnProperty(a)&&(n=!0);return n},_.getResourceBundle=function(t,e){return"string"!=typeof e&&(e=w.ns.defaultNs),g[t]=g[t]||{},D.extend({},g[t][e])},_.addResource=i,_.addResources=function(t,e,n){for(var a in"string"!=typeof e?(resource=e,e=w.ns.defaultNs):w.ns.namespaces.indexOf(e)<0&&w.ns.namespaces.push(e),n)"string"==typeof n[a]&&i(t,e,a,n[a])},_.removeResourceBundle=function(t,e){"string"!=typeof e&&(e=w.ns.defaultNs),g[t]=g[t]||{},g[t][e]={},w.useLocalStorage&&b._storeLocal(g)},_.loadNamespace=function(t,e){n([t],e)},_.loadNamespaces=n,_.setDefaultNamespace=function(t){w.ns.defaultNs=t},_.t=d,_.translate=d,_.exists=l,_.detectLanguage=D.detectLanguage,_.pluralExtensions=x,_.sync=b,_.functions=D,_.lng=function(){return f},_.addPostProcessor=C,_.applyReplacement=D.applyReplacement,_.options=w}("undefined"==typeof exports?window:exports),function(){var t,e;e=function(t,e){return t.css({width:e,"max-width":e,"min-width":e})},(t=function(e,i){var n,a,s;return null==i&&(i={}),this.options=$.extend({},t.DEFAULTS,i||{}),this.$element=e,this.$wrapper=$(".wizard-wrapper",this.$element),this.$steps=$(".wizard-steps",this.$wrapper),this.$step_items=$("> li",this.$steps),this.steps_count=this.$step_items.length,this.$content=$(".wizard-content",this.$element),this.current_step=null,this.$current_item=null,this.isFreeze=!1,this.isRtl=$("body").hasClass("right-to-left"),this.resizeStepItems(),0===(n=$("> li.active",this.$steps)).length&&(n=$("> li:first-child",this.$steps)),this.$current_item=n.addClass("active"),this.current_step=n.index()+1,$(n.attr("data-target"),this.$content).css({display:"block"}),this.placeStepItems(),this._setPrevItemStates(this.current_step-1),$(window).on("pa.resize.wizard",(s=this,function(){return $.proxy(s.resizeStepItems,s)(),$.proxy(s.placeStepItems,s)()})),a=this,this.$steps.on("click","> li",(function(){var t;if((t=$(this)).hasClass("completed"))return a.setCurrentStep(t.index()+1)})),this}).DEFAULTS={step_item_min_width:200,onChange:null,onFinish:null},t.prototype.resizeStepItems=function(){var i;return i=this.$element.width()>t.DEFAULTS.step_item_min_width*this.$step_items.length?Math.floor(this.$element.width()/this.$step_items.length):t.DEFAULTS.step_item_min_width,this.$step_items.each((function(){return e($(this),i)}))},t.prototype.placeStepItems=function(){var t,e,i,n,a,s,r;return s=0,n=this.$current_item.position(),i=this.$element.outerWidth(),r=this.$steps.outerWidth(),e=(i-(t=this.$current_item.outerWidth()))/2,this.isRtl?(a=r-n.left-t,i<r&&a>e&&r+(s=-1*a+e)<i&&(s=-1*r+i),this.$steps.css({right:s})):(i<r&&n.left>e&&r+(s=-1*n.left+e)<i&&(s=-1*r+i),this.$steps.css({left:s}))},t.prototype.setCurrentStep=function(t){var e;if(!this.isFreeze)return $(this.$current_item.attr("data-target"),this.$content).css({opacity:1}).animate({opacity:0},200,(e=this,function(){return $(e.$current_item.attr("data-target"),e.$content).attr("style",""),e._clearItemStates(t-1),e.$current_item=e.$step_items.eq(t-1).addClass("active"),e.current_step=t,e._setPrevItemStates(t-1),$(e.$current_item.attr("data-target"),e.$content).css({display:"block",opacity:0}).animate({opacity:1},200,(function(){return e.options.onChange&&$.proxy(e.options.onChange,e)(),e.placeStepItems()}))}))},t.prototype.nextStep=function(){if(!this.isFreeze){if(!(this.current_step>=this.steps_count))return this.$current_item.removeClass("active").addClass("completed"),this.setCurrentStep(this.current_step+1);this.options.onFinish&&$.proxy(this.options.onFinish,this)()}},t.prototype.prevStep=function(){if(!(this.isFreeze||this.current_step<=1))return this.setCurrentStep(this.current_step-1)},t.prototype.currentStep=function(){return this.current_step},t.prototype._clearItemStates=function(t){var e,i,n,a;for(a=[],e=i=t,n=this.steps_count;t<=n?i<n:i>n;e=t<=n?++i:--i)a.push(this.$step_items.eq(e).removeClass("active").removeClass("completed"));return a},t.prototype._setPrevItemStates=function(t){var e,i,n;for(n=[],e=i=0;0<=t?i<t:i>t;e=0<=t?++i:--i)n.push(this.$step_items.eq(e).addClass("completed"));return n},t.prototype.freeze=function(){return this.isFreeze=!0,this.$element.addClass("freeze")},t.prototype.unfreeze=function(){return this.isFreeze=!1,this.$element.removeClass("freeze")},$.fn.pixelWizard=function(e,i){var n,a;return a=void 0,n=this.each((function(){var n,s;if(n=$(this),!$.data(this,"pixelWizard"))return $.data(this,"pixelWizard",new t(n,e));if(e&&"string"==typeof e){if(s=$.data(this,"pixelWizard"),"setCurrentStep"===e)return s.setCurrentStep(i);if("currentStep"===e)return a=s.currentStep();if("nextStep"===e)return s.nextStep();if("prevStep"===e)return s.prevStep();if("freeze"===e)return s.freeze();if("unfreeze"===e)return s.unfreeze();if("resizeSteps"===e)return s.resizeStepItems()}})),void 0===a?n:a},$.fn.pixelWizard.Constructor=t}.call(this),function(){String.prototype.endsWith||(String.prototype.endsWith=function(t){return-1!==this.indexOf(t,this.length-t.length)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i,n,a;if(null==this)throw new TypeError('"this" is null or not defined');for(n=this.length>>>0,e=+e||0,Math.abs(e)===1/0&&(e=0),e<0&&(e+=n)<0&&(e=0),i=a=e;e<=n?a<n:a>n;i=e<=n?++a:--a)if(this[i]===t)return i;return-1}),Function.prototype.bind||(Function.prototype.bind=function(t){var e,i,n,a;if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");return e=Array.prototype.slice.call(arguments,1),a=this,i=function(){return a.apply(this instanceof n&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))},(n=function(){}).prototype=this.prototype,i.prototype=new n,i}),Object.keys||(Object.keys=function(){"use strict";var t,e,i;return i=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),t=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],function(n){var a,s,r,o,l,d,u;if("object"!=typeof n&&("function"!=typeof n||null===n))throw new TypeError("Object.keys called on non-object");for(r=[],o=0,d=n.length;o<d;o++)s=n[o],i.call(n,s)&&r.push(s);if(e)for(l=0,u=t.length;l<u;l++)a=t[l],i.call(n,a)&&r.push(a);return r}}.call(this)),window.getScreenSize=function(t,e){return t.is(":visible")?"small":e.is(":visible")?"tablet":"desktop"},window.elHasClass=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")>-1},window.elRemoveClass=function(t,e){return t.className=(" "+t.className+" ").replace(" "+e+" "," ").trim()}}.call(this),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return $.each(e,(function(){void 0!==t[this.name]?(t[this.name].push||(t[this.name]=[t[this.name]]),t[this.name].push(this.value||"")):t[this.name]=this.value||""})),t};var dateRangePickerSettings=null;function SmartUnLoading(){$WS(".divMessageBox").fadeOut(300,(function(){$WS(this).remove()})),$WS(".LoadingBoxContainer").fadeOut(300,(function(){$WS(this).remove()}))}$.fn.dateRangePickerSettings=function(){if(null===dateRangePickerSettings){var t=[],e=[],i=[];t[$WS.t("Oggi")]=[moment(),moment()],t[$WS.t("Questa settimana")]=[moment().startOf("week"),moment().endOf("week")],t[$WS.t("Settimana prossima")]=[moment().add(1,"week").startOf("week"),moment().add(1,"week").endOf("week")],t[$WS.t("Settimana scorsa")]=[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],t[$WS.t("Questo mese")]=[moment().startOf("month"),moment().endOf("month")],t[$WS.t("Prossimo mese")]=[moment(),moment().add(1,"month")],t[$WS.t("Mese precedente")]=[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],t[$WS.t("Ultimo anno")]=[moment().subtract("year",1),moment()],t[$WS.t("Anno corrente")]=[moment().startOf("year"),moment().endOf("year")],t[$WS.t("Anno prossimo")]=[moment().add("year",1).startOf("year"),moment().add("year",1).endOf("year")],e[$WS.t("Oggi")]=[moment(),moment()],e[$WS.t("Questa settimana")]=[moment().startOf("week"),moment().endOf("week")],e[$WS.t("Prossimo mese")]=[moment(),moment().add(1,"month")],e[$WS.t("Questo mese")]=[moment().startOf("month"),moment().endOf("month")],e[$WS.t("Ultimo mese")]=[moment().subtract(1,"month"),moment()],e[$WS.t("Mese precedente")]=[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],e[$WS.t("Ultimo anno")]=[moment().subtract("year",1),moment()],i[$WS.t("Anno in corso")]=[moment().startOf("year"),moment().endOf("year")],i[$WS.t("Anno successivo")]=[moment().add(1,"year").startOf("year"),moment().add(1,"year").endOf("year")],i[$WS.t("Prossimo mese")]=[moment(),moment().add(1,"month")],i[$WS.t("Prossimi 3 mesi")]=[moment(),moment().add(3,"month")],i[$WS.t("Prossimi 6 mesi")]=[moment(),moment().add(6,"month")],i[$WS.t("Prossimi 9 mesi")]=[moment(),moment().add(9,"month")],i[$WS.t("Prossimi 12 mesi")]=[moment(),moment().add(1,"year")],dateRangePickerSettings={ranges:{default:t,nextMonths:i,past:e},locale:{fromLabel:$WS.t("Data inizio"),toLabel:$WS.t("Data fine"),cancelLabel:$WS.t("Annulla"),applyLabel:$WS.t("Conferma"),weekLabel:$WS.t("S"),customRangeLabel:$WS.t("Periodo"),firstDay:1}}}return dateRangePickerSettings},function(){var t,e;e={is_mobile:!1,resize_delay:400,stored_values_prefix:"pa_",main_menu:{accordion:!0,animation_speed:250,store_state:!0,store_state_key:"mmstate",disable_animation_on:["small"],dropdown_close_delay:300,detect_active:!0,detect_active_predicate:function(t,e){return t===e}},consts:{COLORS:["#71c73e","#77b7c5","#d54848","#6c42e5","#e8e64e","#dd56e6","#ecad3f","#618b9d","#b68b68","#36a766","#3156be","#00b3ff","#646464","#a946e8","#9d9d9d"]}},(t=function(){return this.init=[],this.plugins={},this.settings={},this.localStorageSupported=void 0!==window.Storage,this}).prototype.start=function(t,i){var n;return null==t&&(t=[]),null==i&&(i={}),window.onload=(n=this,function(){var a,s,r,o;for($("html").addClass("pxajs"),t.length>0&&$.merge(n.init,t),n.settings=$.extend(!0,{},e,i||{}),n.settings.is_mobile=/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()),n.settings.is_mobile&&FastClick&&FastClick.attach(document.body,{excludeNode:"^pac-"}),s=0,r=(o=n.init).length;s<r;s++)a=o[s],$.proxy(a,n)();return $(window).trigger("pa.loaded"),$(window).resize()}),this},t.prototype.addInitializer=function(t){return this.init.push(t)},t.prototype.initPlugin=function(t,e){if(this.plugins[t]=e,e.init)return e.init()},t.prototype.storeValue=function(t,e,i){if(null==i&&(i=!1),this.localStorageSupported&&!i)try{return void window.localStorage.setItem(this.settings.stored_values_prefix+t,e)}catch(t){t}return document.cookie=this.settings.stored_values_prefix+t+"="+escape(e)},t.prototype.storeValues=function(t,e){var i,n,a;if(null==e&&(e=!1),this.localStorageSupported&&!e)try{for(i in t)n=t[i],window.localStorage.setItem(this.settings.stored_values_prefix+i,n);return}catch(t){t}for(i in a=[],t)n=t[i],a.push(document.cookie=this.settings.stored_values_prefix+i+"="+escape(n));return a},t.prototype.getStoredValue=function(t,e,i){var n,a,s,r,o,l,d;if(null==e&&(e=!1),null==i&&(i=null),this.localStorageSupported&&!e)try{return window.localStorage.getItem(this.settings.stored_values_prefix+t)||i}catch(t){t}for(l=0,d=(a=document.cookie.split(";")).length;l<d;l++)if(r=(n=a[l]).indexOf("="),s=n.substr(0,r).replace(/^\s+|\s+$/g,""),o=n.substr(r+1).replace(/^\s+|\s+$/g,""),s===this.settings.stored_values_prefix+t)return o;return i},t.prototype.getStoredValues=function(t,e,i){var n,a,s,r,o,l,d,u,h,c,p,f,m,_;for(null==e&&(e=!1),null==i&&(i=null),d={},h=0,f=t.length;h<f;h++)d[r=t[h]]=i;if(this.localStorageSupported&&!e)try{for(c=0,m=t.length;c<m;c++)r=t[c],(l=window.localStorage.getItem(this.settings.stored_values_prefix+r))&&(d[r]=l);return d}catch(t){t}for(p=0,_=(a=document.cookie.split(";")).length;p<_;p++)o=(n=a[p]).indexOf("="),s=n.substr(0,o).replace(/^\s+|\s+$/g,""),u=n.substr(o+1).replace(/^\s+|\s+$/g,""),s===this.settings.stored_values_prefix+r&&(d[r]=u);return d},t.Constructor=t,window.PixelAdmin=new t}.call(this),$WS=jQuery.noConflict(),$=$WS,$WS(document).ajaxError((function(t,e,i){401!=e.status&&403!=e.status||window.location.replace("/")})),$WS(document).ready((function(){$WS("#loading_generale").find(".dismiss").on("click",(function(){WsfUtils.nascondiLoadingGenerale()})),$WS("#customer_data_and_terms_modal a").click((function(t){t.preventDefault();var e=$WS(t.currentTarget).attr("data-legaldoc-code"),i={option:"com_wsinit",task:"start.getWsLegalDocByCode",format:"raw",rand:Math.random(),code:e};jQuery.get("index.php",i,(function(t,e,i){t.success&&(WsfUtils.nascondiLoadingGenerale(),$WS("#terms_and_policy_modal").modal("show"),$WS("#terms_and_policy_modal").find(".modal-body").html(t.doc.text))}))})),$WS("#customer_data_and_terms_modal_internal a").click((function(t){t.preventDefault();var e=$WS(t.currentTarget).attr("data-legaldoc-code"),i={option:"com_wansport",task:"start.getWsLegalDocByCode",format:"raw",rand:Math.random(),code:e};jQuery.get("index.php",i,(function(t,e,i){t.success&&(WsfUtils.nascondiLoadingGenerale(),$WS("#terms_and_policy_modal").modal("show"),$WS("#terms_and_policy_modal").find(".modal-body").html(t.doc.text))}))}))})),function(){var t;t=function(t){var e;return e=null,function(){return e&&clearTimeout(e),e=setTimeout((function(){return e=null,t.call(this)}),PixelAdmin.settings.resize_delay)}},PixelAdmin.addInitializer((function(){var e,i,n,a;return a=null,n=$(window),e=$('<div id="small-screen-width-point" style="position:absolute;top:-10000px;width:10px;height:10px;background:#fff;"></div>'),i=$('<div id="tablet-screen-width-point" style="position:absolute;top:-10000px;width:10px;height:10px;background:#fff;"></div>'),$("body").append(e).append(i),n.on("resize",t((function(){return n.trigger("pa.resize"),e.is(":visible")?("small"!==a&&n.trigger("pa.screen.small"),a="small"):i.is(":visible")?("tablet"!==a&&n.trigger("pa.screen.tablet"),a="tablet"):("desktop"!==a&&n.trigger("pa.screen.desktop"),a="desktop")})))}))}.call(this),function(){"use strict";
/**
     * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
     *
     * @codingstandard ftlabs-jsv2
     * @copyright The Financial Times Limited [All Rights Reserved]
     * @license MIT License (see LICENSE.txt)
     */function t(e,n){var a;if(n=n||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=n.touchBoundary||10,this.layer=e,this.tapDelay=n.tapDelay||200,this.tapTimeout=n.tapTimeout||700,this.excludeNode=n.excludeNode||null,!t.notNeeded(e)){for(var s=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],r=this,o=0,l=s.length;o<l;o++)r[s[o]]=d(r[s[o]],r);i&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,i,n){var a=Node.prototype.removeEventListener;"click"===t?a.call(e,t,i.hijacked||i,n):a.call(e,t,i,n)},e.addEventListener=function(t,i,n){var a=Node.prototype.addEventListener;"click"===t?a.call(e,t,i.hijacked||(i.hijacked=function(t){t.propagationStopped||i(t)}),n):a.call(e,t,i,n)}),"function"==typeof e.onclick&&(a=e.onclick,e.addEventListener("click",(function(t){a(t)}),!1),e.onclick=null)}function d(t,e){return function(){return t.apply(e,arguments)}}}var e=navigator.userAgent.indexOf("Windows Phone")>=0,i=navigator.userAgent.indexOf("Android")>0&&!e,n=/iP(ad|hone|od)/.test(navigator.userAgent)&&!e,a=n&&/OS 4_\d(_\d)?/.test(navigator.userAgent),s=n&&/OS [6-7]_\d/.test(navigator.userAgent),r=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(n&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)||new RegExp(this.excludeNode).test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!i;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var i,n;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),n=e.changedTouches[0],(i=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(t),!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,t.dispatchEvent(i)},t.prototype.determineEventType=function(t){return i&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;n&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,i;if(!(e=t.fastClickScrollParent)||!e.contains(t)){i=t;do{if(i.scrollHeight>i.offsetHeight){e=i,t.fastClickScrollParent=i;break}i=i.parentElement}while(i)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,i,s;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],n){if((s=window.getSelection()).rangeCount&&!s.isCollapsed)return!0;if(!a){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},t.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],i=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>i||Math.abs(e.pageY-this.touchStartY)>i},t.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,r,o,l,d,u=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,r=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,s&&(d=t.changedTouches[0],(u=document.elementFromPoint(d.pageX-window.pageXOffset,d.pageY-window.pageYOffset)||u).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(o=u.tagName.toLowerCase())){if(e=this.findControl(u)){if(this.focus(u),i)return!1;u=e}}else if(this.needsFocus(u))return t.timeStamp-r>100||n&&window.top!==window&&"input"===o?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,t),n&&"select"===o||(this.targetElement=null,t.preventDefault()),!1);return!(!n||a||!(l=u.fastClickScrollParent)||l.fastClickLastScrollTop===l.scrollTop)||(this.needsClick(u)||(t.preventDefault(),this.sendClick(u,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||((e=this.onMouse(t))||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;i&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,n,a;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!i)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(r&&(a=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&a[2]>=3&&(e=document.querySelector("meta[name=viewport]"))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(e=document.querySelector("meta[name=viewport]"))&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},t.attach=function(e,i){return new t(e,i)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define((function(){return t})):"undefined"!=typeof module&&module.exports?(module.exports=t.attach,module.exports.FastClick=t):window.FastClick=t}(),function(t){var e,i,n,a=(i=document.createElement("input"),n="onpaste",i.setAttribute(n,""),("function"==typeof i[n]?"paste":"input")+".mask"),s=navigator.userAgent,r=/iphone/i.test(s),o=/chrome/i.test(s),l=/android/i.test(s);t.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},t.fn.extend({caret:function(t,e){var i;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof t?(e="number"==typeof e?e:t,this.each((function(){this.setSelectionRange?this.setSelectionRange(t,e):this.createTextRange&&((i=this.createTextRange()).collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select())}))):(this[0].setSelectionRange?(t=this[0].selectionStart,e=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),t=0-i.duplicate().moveStart("character",-1e5),e=t+i.text.length),{begin:t,end:e})},unmask:function(){return this.trigger("unmask")},mask:function(i,n){var s,d,u,h,c;return!i&&this.length>0?t(this[0]).data(t.mask.dataName)():(n=t.extend({autoclear:t.mask.autoclear,placeholder:t.mask.placeholder,completed:null},n),s=t.mask.definitions,d=[],u=c=i.length,h=null,t.each(i.split(""),(function(t,e){"?"==e?(c--,u=t):s[e]?(d.push(new RegExp(s[e])),null===h&&(h=d.length-1)):d.push(null)})),this.trigger("unmask").each((function(){function p(t){for(;++t<c&&!d[t];);return t}function f(t,e){var i,a;if(!(0>t)){for(i=t,a=p(e);c>i;i++)if(d[i]){if(!(c>a&&d[i].test(M[a])))break;M[i]=M[a],M[a]=n.placeholder,a=p(a)}g(),y.caret(Math.max(h,t))}}function m(e){var i,a,s,r=e.which,o=y.caret();if(0==r){if(o.begin>=c)return y.val(y.val().substr(0,c)),e.preventDefault(),!1;o.begin==o.end&&(r=y.val().charCodeAt(o.begin-1),o.begin--,o.end--)}e.ctrlKey||e.altKey||e.metaKey||32>r||r&&(0!=o.end-o.begin&&(_(o.begin,o.end),f(o.begin,o.end-1)),i=p(o.begin-1),c>i&&(a=String.fromCharCode(r),d[i].test(a)&&(function(t){var e,i,a,s;for(e=t,i=n.placeholder;c>e;e++)if(d[e]){if(a=p(e),s=M[e],M[e]=i,!(c>a&&d[a].test(s)))break;i=s}}(i),M[i]=a,g(),s=p(i),l?setTimeout(t.proxy(t.fn.caret,y,s),0):y.caret(s),n.completed&&s>=c&&n.completed.call(y))),e.preventDefault())}function _(t,e){var i;for(i=t;e>i&&c>i;i++)d[i]&&(M[i]=n.placeholder)}function g(){y.val(M.join(""))}function v(t){var e,i,a,s=y.val(),r=-1;for(e=0,a=0;c>e;e++)if(d[e]){for(M[e]=n.placeholder;a++<s.length;)if(i=s.charAt(a-1),d[e].test(i)){M[e]=i,r=e;break}if(a>s.length)break}else M[e]===s.charAt(a)&&e!==u&&(a++,r=e);return t?g():u>r+1?n.autoclear||M.join("")===b?(y.val(""),_(0,c)):g():(g(),y.val(y.val().substring(0,r+1))),u?e:h}var y=t(this),M=t.map(i.split(""),(function(t){return"?"!=t?s[t]?n.placeholder:t:void 0})),b=M.join(""),w=y.val();y.data(t.mask.dataName,(function(){return t.map(M,(function(t,e){return d[e]&&t!=n.placeholder?t:null})).join("")})),y.attr("readonly")||y.one("unmask",(function(){y.unbind(".mask").removeData(t.mask.dataName)})).bind("focus.mask",(function(){var t;clearTimeout(e),w=y.val(),t=v(),e=setTimeout((function(){g(),t==i.length?y.caret(0,t):y.caret(t)}),10)})).bind("blur.mask",(function(){v(),y.val()!=w&&y.change()})).bind("keydown.mask",(function(t){var e,i,n,a=t.which;8===a||46===a||r&&127===a?(i=(e=y.caret()).begin,0==(n=e.end)-i&&(i=46!==a?function(t){for(;--t>=0&&!d[t];);return t}(i):n=p(i-1),n=46===a?p(n):n),_(i,n),f(i,n-1),t.preventDefault()):27==a&&(y.val(w),y.caret(0,v()),t.preventDefault())})).bind("keypress.mask",m).bind(a,(function(){setTimeout((function(){var t=v(!0);y.caret(t),n.completed&&t==y.val().length&&n.completed.call(y)}),0)})),o&&l&&y.bind("keyup.mask",m),v()})))}})}(jQuery),function(t,e,i){var n;n=function(n){"use strict";var a,s,r,o,l,d,u,h,c,p,f,m,_,g,v,y,M,b,w,L,k,D,T,Y,x,S,C,F,$,j={},A=0;a=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:i,normalRangeMax:i,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:i,chartRangeMax:i,chartRangeMinX:i,chartRangeMaxX:i,tooltipFormat:new r('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:i,nullColor:i,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:i,chartRangeMin:i,chartRangeClip:!1,colorMap:i,tooltipFormat:new r('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new r('<span style="color: {{color}}">&#9679;</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:i,thresholdValue:0,chartRangeMax:i,chartRangeMin:i,chartRangeClip:!1,tooltipFormat:new r("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:i,tooltipFormat:new r("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new r('<span style="color: {{color}}">&#9679;</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:i,targetColor:"#4a2",chartRangeMax:i,chartRangeMin:i,tooltipFormat:new r("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},s=function(){var t,e;return t=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(t.prototype=n.extend(new arguments[0],arguments[arguments.length-1]),t._super=arguments[0].prototype):t.prototype=arguments[arguments.length-1],arguments.length>2&&((e=Array.prototype.slice.call(arguments,1,-1)).unshift(t.prototype),n.extend.apply(n,e))):t.prototype=arguments[0],t.prototype.cls=t,t},n.SPFormatClass=r=s({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,n){var a,s,r,o,l,d=this,u=t;return this.format.replace(this.fre,(function(){return s=arguments[1],r=arguments[3],(a=d.precre.exec(s))?(l=a[2],s=a[1]):l=!1,(o=u[s])===i?"":r&&e&&e[r]?e[r].get?e[r].get(o)||o:e[r][o]||o:(c(o)&&(o=n.get("numberFormatter")?n.get("numberFormatter")(o):_(o,l,n.get("numberDigitGroupCount"),n.get("numberDigitGroupSep"),n.get("numberDecimalMark"))),o)}))}}),n.spformat=function(t,e){return new r(t,e)},o=function(t,e,i){return t<e?e:t>i?i:t},l=function(t,i){var n;return 2===i?(n=e.floor(t.length/2),t.length%2?t[n]:(t[n-1]+t[n])/2):t.length%2?(n=(t.length*i+i)/4)%1?(t[e.floor(n)]+t[e.floor(n)-1])/2:t[n-1]:(n=(t.length*i+2)/4)%1?(t[e.floor(n)]+t[e.floor(n)-1])/2:t[n-1]},d=function(t){var e;switch(t){case"undefined":t=i;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t==(e=parseFloat(t))&&(t=e)}return t},u=function(t){var e,i=[];for(e=t.length;e--;)i[e]=d(t[e]);return i},h=function(t,e){var i,n,a=[];for(i=0,n=t.length;i<n;i++)t[i]!==e&&a.push(t[i]);return a},c=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},_=function(t,e,i,a,s){var r,o;for(t=(!1===e?parseFloat(t).toString():t.toFixed(e)).split(""),(r=(r=n.inArray(".",t))<0?t.length:r)<t.length&&(t[r]=s),o=r-i;o>0;o-=i)t.splice(o,0,a);return t.join("")},p=function(t,e,i){var n;for(n=e.length;n--;)if((!i||null!==e[n])&&e[n]!==t)return!1;return!0},m=function(t){return n.isArray(t)?t:[t]},f=function(e){var i;t.createStyleSheet?t.createStyleSheet().cssText=e:((i=t.createElement("style")).type="text/css",t.getElementsByTagName("head")[0].appendChild(i),i["string"==typeof t.body.style.WebkitAppearance?"innerText":"innerHTML"]=e)},n.fn.simpledraw=function(e,a,s,r){var o,l;if(s&&(o=this.data("_jqs_vcanvas")))return o;if(!1===n.fn.sparkline.canvas)return!1;if(n.fn.sparkline.canvas===i){var d=t.createElement("canvas");if(d.getContext&&d.getContext("2d"))n.fn.sparkline.canvas=function(t,e,i,n){return new C(t,e,i,n)};else{if(!t.namespaces||t.namespaces.v)return n.fn.sparkline.canvas=!1,!1;t.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),n.fn.sparkline.canvas=function(t,e,i,n){return new F(t,e,i)}}}return e===i&&(e=n(this).innerWidth()),a===i&&(a=n(this).innerHeight()),o=n.fn.sparkline.canvas(e,a,this,r),(l=n(this).data("_jqs_mhandler"))&&l.registerCanvas(o),o},n.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},n.RangeMapClass=g=s({init:function(t){var e,i,n=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&((i=e.split(":"))[0]=0===i[0].length?-1/0:parseFloat(i[0]),i[1]=0===i[1].length?1/0:parseFloat(i[1]),i[2]=t[e],n.push(i));this.map=t,this.rangelist=n||!1},get:function(t){var e,n,a,s=this.rangelist;if((a=this.map[t])!==i)return a;if(s)for(e=s.length;e--;)if((n=s[e])[0]<=t&&n[1]>=t)return n[2];return i}}),n.range_map=function(t){return new g(t)},v=s({init:function(t,e){var i=n(t);this.$el=i,this.options=e,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!e.get("disableTooltips"),this.highlightEnabled=!e.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var e=n(t.canvas);this.canvas=t,this.$canvas=e,e.mouseenter(n.proxy(this.mouseenter,this)),e.mouseleave(n.proxy(this.mouseleave,this)),e.click(n.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=i)},mouseclick:function(t){var e=n.Event("sparklineClick");e.originalEvent=t,e.sparklines=this.splist,this.$el.trigger(e)},mouseenter:function(e){n(t.body).unbind("mousemove.jqs"),n(t.body).bind("mousemove.jqs",n.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new y(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){n(t.body).unbind("mousemove.jqs");var e,i=this.splist,a=i.length,s=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),e=0;e<a;e++)i[e].clearRegionHighlight()&&(s=!0);s&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var t,e,i,a,s=this.splist,r=s.length,o=!1,l=this.$canvas.offset(),d=this.currentPageX-l.left,u=this.currentPageY-l.top;if(this.over){for(e=0;e<r;e++)(i=s[e].setRegionHighlight(this.currentEl,d,u))&&(o=!0);if(o){if((a=n.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(a),this.tooltip){for(t="",e=0;e<r;e++)t+=s[e].getCurrentRegionTooltip();this.tooltip.setContent(t)}this.disableHighlight||this.canvas.render()}null===i&&this.mouseleave()}}}),y=s({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var i,a=e.get("tooltipClassname","jqstooltip"),s=this.sizeStyle;this.container=e.get("tooltipContainer")||t.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),n("#jqssizetip").remove(),n("#jqstooltip").remove(),this.sizetip=n("<div/>",{id:"jqssizetip",style:s,class:a}),this.tooltip=n("<div/>",{id:"jqstooltip",class:a}).appendTo(this.container),i=this.tooltip.offset(),this.offsetLeft=i.left,this.offsetTop=i.top,this.hidden=!0,n(window).unbind("resize.jqs scroll.jqs"),n(window).bind("resize.jqs scroll.jqs",n.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=n(window).scrollTop(),this.scrollLeft=n(window).scrollLeft(),this.scrollRight=this.scrollLeft+n(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){if(!t)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(t,e){if(t===i){if(this.mousex===i)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=i,n(window).unbind("resize.jqs scroll.jqs")}}),n((function(){f('.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}')})),$=[],n.fn.sparkline=function(e,a){return this.each((function(){var s,r,o=new n.fn.sparkline.options(this,a),l=n(this);if(s=function(){var a,s,r,d,u,h,c;"html"===e||e===i?((c=this.getAttribute(o.get("tagValuesAttribute")))!==i&&null!==c||(c=l.html()),a=c.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):a=e,s="auto"===o.get("width")?a.length*o.get("defaultPixelsPerValue"):o.get("width"),"auto"===o.get("height")?o.get("composite")&&n.data(this,"_jqs_vcanvas")||((d=t.createElement("span")).innerHTML="a",l.html(d),r=n(d).innerHeight()||n(d).height(),n(d).remove(),d=null):r=o.get("height"),o.get("disableInteraction")?u=!1:(u=n.data(this,"_jqs_mhandler"))?o.get("composite")||u.reset():(u=new v(this,o),n.data(this,"_jqs_mhandler",u)),!o.get("composite")||n.data(this,"_jqs_vcanvas")?((h=new(n.fn.sparkline[o.get("type")])(this,a,o,s,r)).render(),u&&u.registerSparkline(h)):n.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),n.data(this,"_jqs_errnotify",!0))},n(this).html()&&!o.get("disableHiddenCheck")&&n(this).is(":hidden")||!n(this).parents("body").length){if(!o.get("composite")&&n.data(this,"_jqs_pending"))for(r=$.length;r;r--)$[r-1][0]==this&&$.splice(r-1,1);$.push([this,s]),n.data(this,"_jqs_pending",!0)}else s.call(this)}))},n.fn.sparkline.defaults=a(),n.sparkline_display_visible=function(){var t,e,i,a=[];for(e=0,i=$.length;e<i;e++)t=$[e][0],n(t).is(":visible")&&!n(t).parents().is(":hidden")?($[e][1].call(t),n.data($[e][0],"_jqs_pending",!1),a.push(e)):n(t).closest("html").length||n.data(t,"_jqs_pending")||(n.data($[e][0],"_jqs_pending",!1),a.push(e));for(e=a.length;e;e--)$.splice(a[e-1],1)},n.fn.sparkline.options=s({init:function(t,e){var i,a,s,r;this.userOptions=e=e||{},this.tag=t,this.tagValCache={},s=(a=n.fn.sparkline.defaults).common,this.tagOptionsPrefix=e.enableTagOptions&&(e.tagOptionsPrefix||s.tagOptionsPrefix),i=(r=this.getTagSetting("type"))===j?a[e.type||s.type]:a[r],this.mergedOptions=n.extend({},s,i,e)},getTagSetting:function(t){var e,n,a,s,r=this.tagOptionsPrefix;if(!1===r||r===i)return j;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if((e=this.tag.getAttribute(r+t))===i||null===e)e=j;else if("["===e.substr(0,1))for(n=(e=e.substr(1,e.length-2).split(",")).length;n--;)e[n]=d(e[n].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(a=e.substr(1,e.length-2).split(","),e={},n=a.length;n--;)e[(s=a[n].split(":",2))[0].replace(/(^\s*)|(\s*$)/g,"")]=d(s[1].replace(/(^\s*)|(\s*$)/g,""));else e=d(e);this.tagValCache.key=e}return e},get:function(t,e){var n,a=this.getTagSetting(t);return a!==j?a:(n=this.mergedOptions[t])===i?e:n}}),n.fn.sparkline._base=s({disabled:!1,init:function(t,e,a,s,r){this.el=t,this.$el=n(t),this.values=e,this.options=a,this.width=s,this.height=r,this.currentRegion=i},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,n){var a,s=this.currentRegion,r=!this.options.get("disableHighlight");return e>this.canvasWidth||n>this.canvasHeight||e<0||n<0?null:s!==(a=this.getRegion(t,e,n))&&(s!==i&&r&&this.removeHighlight(),this.currentRegion=a,a!==i&&r&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return this.currentRegion!==i&&(this.removeHighlight(),this.currentRegion=i,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var t,e,a,s,o,l,d,u,h,c,p,f,m,_,g=this.options,v="",y=[];if(this.currentRegion===i)return"";if(t=this.getCurrentRegionFields(),p=g.get("tooltipFormatter"))return p(this,g,t);if(g.get("tooltipChartTitle")&&(v+='<div class="jqs jqstitle">'+g.get("tooltipChartTitle")+"</div>\n"),!(e=this.options.get("tooltipFormat")))return"";if(n.isArray(e)||(e=[e]),n.isArray(t)||(t=[t]),d=this.options.get("tooltipFormatFieldlist"),u=this.options.get("tooltipFormatFieldlistKey"),d&&u){for(h=[],l=t.length;l--;)c=t[l][u],-1!=(_=n.inArray(c,d))&&(h[_]=t[l]);t=h}for(a=e.length,m=t.length,l=0;l<a;l++)for("string"==typeof(f=e[l])&&(f=new r(f)),s=f.fclass||"jqsfield",_=0;_<m;_++)t[_].isNull&&g.get("tooltipSkipNull")||(n.extend(t[_],{prefix:g.get("tooltipPrefix"),suffix:g.get("tooltipSuffix")}),o=f.render(t[_],g.get("tooltipValueLookups"),g),y.push('<div class="'+s+'">'+o+"</div>"));return y.length?v+y.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,i){var n,a,s,r,l=i.get("highlightColor"),d=i.get("highlightLighten");if(l)return l;if(d&&(n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(s=[],a=4===t.length?16:1,r=0;r<3;r++)s[r]=o(e.round(parseInt(n[r+1],16)*a*d),0,255);return"rgb("+s.join(",")+")"}return t}}),M={changeHighlight:function(t){var e,i=this.currentRegion,a=this.target,s=this.regionShapes[i];s&&(e=this.renderRegion(i,t),n.isArray(e)||n.isArray(s)?(a.replaceWithShapes(s,e),this.regionShapes[i]=n.map(e,(function(t){return t.id}))):(a.replaceWithShape(s,e),this.regionShapes[i]=e.id))},render:function(){var t,e,i,a,s=this.values,r=this.target,o=this.regionShapes;if(this.cls._super.render.call(this)){for(i=s.length;i--;)if(t=this.renderRegion(i))if(n.isArray(t)){for(e=[],a=t.length;a--;)t[a].append(),e.push(t[a].id);o[i]=e}else t.append(),o[i]=t.id;else o[i]=null;r.render()}}},n.fn.sparkline.line=b=s(n.fn.sparkline._base,{type:"line",init:function(t,e,i,n,a){b._super.init.call(this,t,e,i,n,a),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,n){var a,s=this.regionMap;for(a=s.length;a--;)if(null!==s[a]&&e>=s[a][0]&&e<=s[a][1])return s[a][2];return i},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,n=this.currentRegion,a=this.target,s=this.vertices[n],r=this.options,o=r.get("spotRadius"),l=r.get("highlightSpotColor"),d=r.get("highlightLineColor");s&&(o&&l&&(t=a.drawCircle(s[0],s[1],o,i,l),this.highlightSpotId=t.id,a.insertAfterShape(this.lastShapeId,t)),d&&(e=a.drawLine(s[0],this.canvasTop,s[0],this.canvasTop+this.canvasHeight,d),this.highlightLineId=e.id,a.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var t,i,n,a,s,r=this.values,o=r.length,l=this.xvalues,d=this.yvalues,u=this.yminmax;for(t=0;t<o;t++)i=r[t],n="string"==typeof r[t],a="object"==typeof r[t]&&r[t]instanceof Array,s=n&&r[t].split(":"),n&&2===s.length?(l.push(Number(s[0])),d.push(Number(s[1])),u.push(Number(s[1]))):a?(l.push(i[0]),d.push(i[1]),u.push(i[1])):(l.push(t),null===r[t]||"null"===r[t]?d.push(null):(d.push(Number(i)),u.push(Number(i))));this.options.get("xvalues")&&(l=this.options.get("xvalues")),this.maxy=this.maxyorg=e.max.apply(e,u),this.miny=this.minyorg=e.min.apply(e,u),this.maxx=e.max.apply(e,l),this.minx=e.min.apply(e,l),this.xvalues=l,this.yvalues=d,this.yminmax=u},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),n=t.get("normalRangeMax");e!==i&&(e<this.miny&&(this.miny=e),n>this.maxy&&(this.maxy=n)),t.get("chartRangeMin")!==i&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),t.get("chartRangeMax")!==i&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),t.get("chartRangeMinX")!==i&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),t.get("chartRangeMaxX")!==i&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,n,a,s,r){var o=this.options.get("normalRangeMin"),l=this.options.get("normalRangeMax"),d=n+e.round(a-a*((l-this.miny)/r)),u=e.round(a*(l-o)/r);this.target.drawRect(t,d,s,u,i,this.options.get("normalRangeColor")).append()},render:function(){var t,a,s,r,o,l,d,u,h,c,p,f,m,_,v,y,M,w,L,k,D,T,Y,x,S=this.options,C=this.target,F=this.canvasWidth,$=this.canvasHeight,j=this.vertices,A=S.get("spotRadius"),E=this.regionMap;if(b._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),T=this.xvalues,Y=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(r=o=0,t=this.maxx-this.minx==0?1:this.maxx-this.minx,a=this.maxy-this.miny==0?1:this.maxy-this.miny,s=this.yvalues.length-1,A&&(F<4*A||$<4*A)&&(A=0),A&&(((k=S.get("highlightSpotColor")&&!S.get("disableInteraction"))||S.get("minSpotColor")||S.get("spotColor")&&Y[s]===this.miny)&&($-=e.ceil(A)),(k||S.get("maxSpotColor")||S.get("spotColor")&&Y[s]===this.maxy)&&($-=e.ceil(A),r+=e.ceil(A)),(k||(S.get("minSpotColor")||S.get("maxSpotColor"))&&(Y[0]===this.miny||Y[0]===this.maxy))&&(o+=e.ceil(A),F-=e.ceil(A)),(k||S.get("spotColor")||S.get("minSpotColor")||S.get("maxSpotColor")&&(Y[s]===this.miny||Y[s]===this.maxy))&&(F-=e.ceil(A))),$--,S.get("normalRangeMin")===i||S.get("drawNormalOnTop")||this.drawNormalRange(o,r,$,F,a),u=[d=[]],m=_=null,v=Y.length,x=0;x<v;x++)h=T[x],p=T[x+1],c=Y[x],_=(f=o+e.round((h-this.minx)*(F/t)))+((x<v-1?o+e.round((p-this.minx)*(F/t)):F)-f)/2,E[x]=[m||0,_,x],m=_,null===c?x&&(null!==Y[x-1]&&(d=[],u.push(d)),j.push(null)):(c<this.miny&&(c=this.miny),c>this.maxy&&(c=this.maxy),d.length||d.push([f,r+$]),l=[f,r+e.round($-$*((c-this.miny)/a))],d.push(l),j.push(l));for(y=[],M=[],w=u.length,x=0;x<w;x++)(d=u[x]).length&&(S.get("fillColor")&&(d.push([d[d.length-1][0],r+$]),M.push(d.slice(0)),d.pop()),d.length>2&&(d[0]=[d[0][0],d[1][1]]),y.push(d));for(w=M.length,x=0;x<w;x++)C.drawShape(M[x],S.get("fillColor"),S.get("fillColor")).append();for(S.get("normalRangeMin")!==i&&S.get("drawNormalOnTop")&&this.drawNormalRange(o,r,$,F,a),w=y.length,x=0;x<w;x++)C.drawShape(y[x],S.get("lineColor"),i,S.get("lineWidth")).append();if(A&&S.get("valueSpots"))for((L=S.get("valueSpots")).get===i&&(L=new g(L)),x=0;x<v;x++)(D=L.get(Y[x]))&&C.drawCircle(o+e.round((T[x]-this.minx)*(F/t)),r+e.round($-$*((Y[x]-this.miny)/a)),A,i,D).append();A&&S.get("spotColor")&&null!==Y[s]&&C.drawCircle(o+e.round((T[T.length-1]-this.minx)*(F/t)),r+e.round($-$*((Y[s]-this.miny)/a)),A,i,S.get("spotColor")).append(),this.maxy!==this.minyorg&&(A&&S.get("minSpotColor")&&(h=T[n.inArray(this.minyorg,Y)],C.drawCircle(o+e.round((h-this.minx)*(F/t)),r+e.round($-$*((this.minyorg-this.miny)/a)),A,i,S.get("minSpotColor")).append()),A&&S.get("maxSpotColor")&&(h=T[n.inArray(this.maxyorg,Y)],C.drawCircle(o+e.round((h-this.minx)*(F/t)),r+e.round($-$*((this.maxyorg-this.miny)/a)),A,i,S.get("maxSpotColor")).append())),this.lastShapeId=C.getLastShapeId(),this.canvasTop=r,C.render()}}}),n.fn.sparkline.bar=w=s(n.fn.sparkline._base,M,{type:"bar",init:function(t,a,s,r,l){var c,p,f,m,_,v,y,M,b,L,k,D,T,Y,x,S,C,F,$,j,A,E=parseInt(s.get("barWidth"),10),W=parseInt(s.get("barSpacing"),10),O=s.get("chartRangeMin"),H=s.get("chartRangeMax"),P=s.get("chartRangeClip"),U=1/0,I=-1/0;for(w._super.init.call(this,t,a,s,r,l),v=0,y=a.length;v<y;v++)((c="string"==typeof(j=a[v])&&j.indexOf(":")>-1)||n.isArray(j))&&(x=!0,c&&(j=a[v]=u(j.split(":"))),j=h(j,null),(p=e.min.apply(e,j))<U&&(U=p),(f=e.max.apply(e,j))>I&&(I=f));this.stacked=x,this.regionShapes={},this.barWidth=E,this.barSpacing=W,this.totalBarWidth=E+W,this.width=r=a.length*E+(a.length-1)*W,this.initTarget(),P&&(T=O===i?-1/0:O,Y=H===i?1/0:H),_=[],m=x?[]:_;var N=[],R=[];for(v=0,y=a.length;v<y;v++)if(x)for(S=a[v],a[v]=$=[],N[v]=0,m[v]=R[v]=0,C=0,F=S.length;C<F;C++)null!==(j=$[C]=P?o(S[C],T,Y):S[C])&&(j>0&&(N[v]+=j),U<0&&I>0?j<0?R[v]+=e.abs(j):m[v]+=j:m[v]+=e.abs(j-(j<0?I:U)),_.push(j));else j=P?o(a[v],T,Y):a[v],null!==(j=a[v]=d(j))&&_.push(j);this.max=D=e.max.apply(e,_),this.min=k=e.min.apply(e,_),this.stackMax=I=x?e.max.apply(e,N):D,this.stackMin=U=x?e.min.apply(e,_):k,s.get("chartRangeMin")!==i&&(s.get("chartRangeClip")||s.get("chartRangeMin")<k)&&(k=s.get("chartRangeMin")),s.get("chartRangeMax")!==i&&(s.get("chartRangeClip")||s.get("chartRangeMax")>D)&&(D=s.get("chartRangeMax")),this.zeroAxis=b=s.get("zeroAxis",!0),L=k<=0&&D>=0&&b?0:0==b||k>0?k:D,this.xaxisOffset=L,M=x?e.max.apply(e,m)+e.max.apply(e,R):D-k,this.canvasHeightEf=b&&k<0?this.canvasHeight-2:this.canvasHeight-1,k<L?(A=((x&&D>=0?I:D)-L)/M*this.canvasHeight)!==e.ceil(A)&&(this.canvasHeightEf-=2,A=e.ceil(A)):A=this.canvasHeight,this.yoffset=A,n.isArray(s.get("colorMap"))?(this.colorMapByIndex=s.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=s.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===i&&(this.colorMapByValue=new g(this.colorMapByValue))),this.range=M},getRegion:function(t,n,a){var s=e.floor(n/this.totalBarWidth);return s<0||s>=this.values.length?i:s},getCurrentRegionFields:function(){var t,e,i=this.currentRegion,n=m(this.values[i]),a=[];for(e=n.length;e--;)t=n[e],a.push({isNull:null===t,value:t,color:this.calcColor(e,t,i),offset:i});return a},calcColor:function(t,e,a){var s,r,o=this.colorMapByIndex,l=this.colorMapByValue,d=this.options;return s=this.stacked?d.get("stackedBarColor"):e<0?d.get("negBarColor"):d.get("barColor"),0===e&&d.get("zeroColor")!==i&&(s=d.get("zeroColor")),l&&(r=l.get(e))?s=r:o&&o.length>a&&(s=o[a]),n.isArray(s)?s[t%s.length]:s},renderRegion:function(t,a){var s,r,o,l,d,u,h,c,f,m,_=this.values[t],g=this.options,v=this.xaxisOffset,y=[],M=this.range,b=this.stacked,w=this.target,L=t*this.totalBarWidth,k=this.canvasHeightEf,D=this.yoffset;if(h=(_=n.isArray(_)?_:[_]).length,c=_[0],l=p(null,_),m=p(v,_,!0),l)return g.get("nullColor")?(o=a?g.get("nullColor"):this.calcHighlightColor(g.get("nullColor"),g),s=D>0?D-1:D,w.drawRect(L,s,this.barWidth-1,0,o,o)):i;for(d=D,u=0;u<h;u++){if(c=_[u],b&&c===v){if(!m||f)continue;f=!0}r=M>0?e.floor(k*(e.abs(c-v)/M))+1:1,c<v||c===v&&0===D?(s=d,d+=r):(s=D-r,D-=r),o=this.calcColor(u,c,t),a&&(o=this.calcHighlightColor(o,g)),y.push(w.drawRect(L,s,this.barWidth-1,r-1,o,o))}return 1===y.length?y[0]:y}}),n.fn.sparkline.tristate=L=s(n.fn.sparkline._base,M,{type:"tristate",init:function(t,e,a,s,r){var o=parseInt(a.get("barWidth"),10),l=parseInt(a.get("barSpacing"),10);L._super.init.call(this,t,e,a,s,r),this.regionShapes={},this.barWidth=o,this.barSpacing=l,this.totalBarWidth=o+l,this.values=n.map(e,Number),this.width=s=e.length*o+(e.length-1)*l,n.isArray(a.get("colorMap"))?(this.colorMapByIndex=a.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=a.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===i&&(this.colorMapByValue=new g(this.colorMapByValue))),this.initTarget()},getRegion:function(t,i,n){return e.floor(i/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===i,value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var i,n=this.values,a=this.options,s=this.colorMapByIndex,r=this.colorMapByValue;return r&&(i=r.get(t))?i:s&&s.length>e?s[e]:n[e]<0?a.get("negBarColor"):n[e]>0?a.get("posBarColor"):a.get("zeroBarColor")},renderRegion:function(t,i){var n,a,s,r,o,l,d=this.values,u=this.options,h=this.target;if(n=h.pixelHeight,s=e.round(n/2),r=t*this.totalBarWidth,d[t]<0?(o=s,a=s-1):d[t]>0?(o=0,a=s-1):(o=s-1,a=2),null!==(l=this.calcColor(d[t],t)))return i&&(l=this.calcHighlightColor(l,u)),h.drawRect(r,o,this.barWidth-1,a-1,l,l)}}),n.fn.sparkline.discrete=k=s(n.fn.sparkline._base,M,{type:"discrete",init:function(t,a,s,r,o){k._super.init.call(this,t,a,s,r,o),this.regionShapes={},this.values=a=n.map(a,Number),this.min=e.min.apply(e,a),this.max=e.max.apply(e,a),this.range=this.max-this.min,this.width=r="auto"===s.get("width")?2*a.length:this.width,this.interval=e.floor(r/a.length),this.itemWidth=r/a.length,s.get("chartRangeMin")!==i&&(s.get("chartRangeClip")||s.get("chartRangeMin")<this.min)&&(this.min=s.get("chartRangeMin")),s.get("chartRangeMax")!==i&&(s.get("chartRangeClip")||s.get("chartRangeMax")>this.max)&&(this.max=s.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===s.get("lineHeight")?e.round(.3*this.canvasHeight):s.get("lineHeight"))},getRegion:function(t,i,n){return e.floor(i/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===i,value:this.values[t],offset:t}},renderRegion:function(t,i){var n,a,s,r,l=this.values,d=this.options,u=this.min,h=this.max,c=this.range,p=this.interval,f=this.target,m=this.canvasHeight,_=this.lineHeight,g=m-_;return a=o(l[t],u,h),r=t*p,n=e.round(g-g*((a-u)/c)),s=d.get("thresholdColor")&&a<d.get("thresholdValue")?d.get("thresholdColor"):d.get("lineColor"),i&&(s=this.calcHighlightColor(s,d)),f.drawLine(r,n,r,n+_,s)}}),n.fn.sparkline.bullet=D=s(n.fn.sparkline._base,{type:"bullet",init:function(t,n,a,s,r){var o,l,d;D._super.init.call(this,t,n,a,s,r),this.values=n=u(n),(d=n.slice())[0]=null===d[0]?d[2]:d[0],d[1]=null===n[1]?d[2]:d[1],o=e.min.apply(e,n),l=e.max.apply(e,n),o=a.get("base")===i?o<0?o:0:a.get("base"),this.min=o,this.max=l,this.range=l-o,this.shapes={},this.valueShapes={},this.regiondata={},this.width=s="auto"===a.get("width")?"4.0em":s,this.target=this.$el.simpledraw(s,r,a.get("composite")),n.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,n){var a=this.target.getShapeAt(t,e,n);return a!==i&&this.shapes[a]!==i?this.shapes[a]:i},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,i=this.currentRegion,n=this.valueShapes[i];switch(delete this.shapes[n],i.substr(0,1)){case"r":e=this.renderRange(i.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[i]=e.id,this.shapes[e.id]=i,this.target.replaceWithShape(n,e)},renderRange:function(t,i){var n=this.values[t],a=e.round(this.canvasWidth*((n-this.min)/this.range)),s=this.options.get("rangeColors")[t-2];return i&&(s=this.calcHighlightColor(s,this.options)),this.target.drawRect(0,0,a-1,this.canvasHeight-1,s,s)},renderPerformance:function(t){var i=this.values[1],n=e.round(this.canvasWidth*((i-this.min)/this.range)),a=this.options.get("performanceColor");return t&&(a=this.calcHighlightColor(a,this.options)),this.target.drawRect(0,e.round(.3*this.canvasHeight),n-1,e.round(.4*this.canvasHeight)-1,a,a)},renderTarget:function(t){var i=this.values[0],n=e.round(this.canvasWidth*((i-this.min)/this.range)-this.options.get("targetWidth")/2),a=e.round(.1*this.canvasHeight),s=this.canvasHeight-2*a,r=this.options.get("targetColor");return t&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(n,a,this.options.get("targetWidth")-1,s-1,r,r)},render:function(){var t,e,i=this.values.length,n=this.target;if(D._super.render.call(this)){for(t=2;t<i;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),n.render()}}}),n.fn.sparkline.pie=T=s(n.fn.sparkline._base,{type:"pie",init:function(t,i,a,s,r){var o,l=0;if(T._super.init.call(this,t,i,a,s,r),this.shapes={},this.valueShapes={},this.values=i=n.map(i,Number),"auto"===a.get("width")&&(this.width=this.height),i.length>0)for(o=i.length;o--;)l+=i[o];this.total=l,this.initTarget(),this.radius=e.floor(e.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,n){var a=this.target.getShapeAt(t,e,n);return a!==i&&this.shapes[a]!==i?this.shapes[a]:i},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===i,value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,i=this.renderSlice(e,t),n=this.valueShapes[e];delete this.shapes[n],this.target.replaceWithShape(n,i),this.valueShapes[e]=i.id,this.shapes[i.id]=e},renderSlice:function(t,n){var a,s,r,o,l,d=this.target,u=this.options,h=this.radius,c=u.get("borderWidth"),p=u.get("offset"),f=2*e.PI,m=this.values,_=this.total,g=p?2*e.PI*(p/360):0;for(o=m.length,r=0;r<o;r++){if(a=g,s=g,_>0&&(s=g+f*(m[r]/_)),t===r)return l=u.get("sliceColors")[r%u.get("sliceColors").length],n&&(l=this.calcHighlightColor(l,u)),d.drawPieSlice(h,h,h-c,a,s,i,l);g=s}},render:function(){var t,n,a=this.target,s=this.values,r=this.options,o=this.radius,l=r.get("borderWidth");if(T._super.render.call(this)){for(l&&a.drawCircle(o,o,e.floor(o-l/2),r.get("borderColor"),i,l).append(),n=s.length;n--;)s[n]&&(t=this.renderSlice(n).append(),this.valueShapes[n]=t.id,this.shapes[t.id]=n);a.render()}}}),n.fn.sparkline.box=Y=s(n.fn.sparkline._base,{type:"box",init:function(t,e,i,a,s){Y._super.init.call(this,t,e,i,a,s),this.values=n.map(e,Number),this.width="auto"===i.get("width")?"4.0em":a,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==i&&t.push({field:"lo",value:this.loutlier}),this.routlier!==i&&t.push({field:"ro",value:this.routlier}),this.lwhisker!==i&&t.push({field:"lw",value:this.lwhisker}),this.rwhisker!==i&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,n,a,s,r,o,d,u,h,c,p,f=this.target,m=this.values,_=m.length,g=this.options,v=this.canvasWidth,y=this.canvasHeight,M=g.get("chartRangeMin")===i?e.min.apply(e,m):g.get("chartRangeMin"),b=g.get("chartRangeMax")===i?e.max.apply(e,m):g.get("chartRangeMax"),w=0;if(Y._super.render.call(this)){if(g.get("raw"))g.get("showOutliers")&&m.length>5?(n=m[0],t=m[1],s=m[2],r=m[3],o=m[4],d=m[5],u=m[6]):(t=m[0],s=m[1],r=m[2],o=m[3],d=m[4]);else if(m.sort((function(t,e){return t-e})),s=l(m,1),r=l(m,2),a=(o=l(m,3))-s,g.get("showOutliers")){for(t=d=i,h=0;h<_;h++)t===i&&m[h]>s-a*g.get("outlierIQR")&&(t=m[h]),m[h]<o+a*g.get("outlierIQR")&&(d=m[h]);n=m[0],u=m[_-1]}else t=m[0],d=m[_-1];this.quartiles=[s,r,o],this.lwhisker=t,this.rwhisker=d,this.loutlier=n,this.routlier=u,p=v/(b-M+1),g.get("showOutliers")&&(w=e.ceil(g.get("spotRadius")),p=(v-=2*e.ceil(g.get("spotRadius")))/(b-M+1),n<t&&f.drawCircle((n-M)*p+w,y/2,g.get("spotRadius"),g.get("outlierLineColor"),g.get("outlierFillColor")).append(),u>d&&f.drawCircle((u-M)*p+w,y/2,g.get("spotRadius"),g.get("outlierLineColor"),g.get("outlierFillColor")).append()),f.drawRect(e.round((s-M)*p+w),e.round(.1*y),e.round((o-s)*p),e.round(.8*y),g.get("boxLineColor"),g.get("boxFillColor")).append(),f.drawLine(e.round((t-M)*p+w),e.round(y/2),e.round((s-M)*p+w),e.round(y/2),g.get("lineColor")).append(),f.drawLine(e.round((t-M)*p+w),e.round(y/4),e.round((t-M)*p+w),e.round(y-y/4),g.get("whiskerColor")).append(),f.drawLine(e.round((d-M)*p+w),e.round(y/2),e.round((o-M)*p+w),e.round(y/2),g.get("lineColor")).append(),f.drawLine(e.round((d-M)*p+w),e.round(y/4),e.round((d-M)*p+w),e.round(y-y/4),g.get("whiskerColor")).append(),f.drawLine(e.round((r-M)*p+w),e.round(.1*y),e.round((r-M)*p+w),e.round(.9*y),g.get("medianColor")).append(),g.get("target")&&(c=e.ceil(g.get("spotRadius")),f.drawLine(e.round((g.get("target")-M)*p+w),e.round(y/2-c),e.round((g.get("target")-M)*p+w),e.round(y/2+c),g.get("targetColor")).append(),f.drawLine(e.round((g.get("target")-M)*p+w-c),e.round(y/2),e.round((g.get("target")-M)*p+w+c),e.round(y/2),g.get("targetColor")).append()),f.render()}}}),x=s({init:function(t,e,i,n){this.target=t,this.id=e,this.type=i,this.args=n},append:function(){return this.target.appendShape(this),this}}),S=s({_pxregex:/(\d+)(px)?\s*$/i,init:function(t,e,i){t&&(this.width=t,this.height=e,this.target=i,this.lastShapeId=null,i[0]&&(i=i[0]),n.data(i,"_jqs_vcanvas",this))},drawLine:function(t,e,i,n,a,s){return this.drawShape([[t,e],[i,n]],a,s)},drawShape:function(t,e,i,n){return this._genShape("Shape",[t,e,i,n])},drawCircle:function(t,e,i,n,a,s){return this._genShape("Circle",[t,e,i,n,a,s])},drawPieSlice:function(t,e,i,n,a,s,r){return this._genShape("PieSlice",[t,e,i,n,a,s,r])},drawRect:function(t,e,i,n,a,s){return this._genShape("Rect",[t,e,i,n,a,s])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(t,e){n(e).html(t)},_calculatePixelDims:function(t,e,i){var a;a=this._pxregex.exec(e),this.pixelHeight=a?a[1]:n(i).height(),a=this._pxregex.exec(t),this.pixelWidth=a?a[1]:n(i).width()},_genShape:function(t,e){var i=A++;return e.unshift(i),new x(this,i,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,i){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),C=s(S,{init:function(e,a,s,r){C._super.init.call(this,e,a,s),this.canvas=t.createElement("canvas"),s[0]&&(s=s[0]),n.data(s,"_jqs_vcanvas",this),n(this.canvas).css({display:"inline-block",width:e,height:a,verticalAlign:"top"}),this._insert(this.canvas,s),this._calculatePixelDims(e,a,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=r,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=i,n(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,n){var a=this.canvas.getContext("2d");return t!==i&&(a.strokeStyle=t),a.lineWidth=n===i?1:n,e!==i&&(a.fillStyle=e),a},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=i},_drawShape:function(t,e,n,a,s){var r,o,l=this._getContext(n,a,s);for(l.beginPath(),l.moveTo(e[0][0]+.5,e[0][1]+.5),r=1,o=e.length;r<o;r++)l.lineTo(e[r][0]+.5,e[r][1]+.5);n!==i&&l.stroke(),a!==i&&l.fill(),this.targetX!==i&&this.targetY!==i&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,n,a,s,r,o,l){var d=this._getContext(r,o,l);d.beginPath(),d.arc(n,a,s,0,2*e.PI,!1),this.targetX!==i&&this.targetY!==i&&d.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),r!==i&&d.stroke(),o!==i&&d.fill()},_drawPieSlice:function(t,e,n,a,s,r,o,l){var d=this._getContext(o,l);d.beginPath(),d.moveTo(e,n),d.arc(e,n,a,s,r,!1),d.lineTo(e,n),d.closePath(),o!==i&&d.stroke(),l&&d.fill(),this.targetX!==i&&this.targetY!==i&&d.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,i,n,a,s,r){return this._drawShape(t,[[e,i],[e+n,i],[e+n,i+a],[e,i+a],[e,i]],s,r)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i,n=this.shapeseq;for(this.shapes[e.id]=e,i=n.length;i--;)n[i]==t&&(n[i]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){var i,n,a,s=this.shapeseq,r={};for(n=t.length;n--;)r[t[n]]=!0;for(n=s.length;n--;)r[i=s[n]]&&(s.splice(n,1),delete this.shapes[i],a=n);for(n=e.length;n--;)s.splice(a,0,e[n].id),this.shapes[e[n].id]=e[n]},insertAfterShape:function(t,e){var i,n=this.shapeseq;for(i=n.length;i--;)if(n[i]===t)return n.splice(i+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){var e,i=this.shapeseq;for(e=i.length;e--;)if(i[e]===t){i.splice(e,1);break}delete this.shapes[t]},getShapeAt:function(t,e,i){return this.targetX=e,this.targetY=i,this.render(),this.currentTargetShapeId},render:function(){var t,e,i=this.shapeseq,n=this.shapes,a=i.length;for(this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),e=0;e<a;e++)this["_draw"+(t=n[i[e]]).type].apply(this,t.args);this.interact||(this.shapes={},this.shapeseq=[])}}),F=s(S,{init:function(e,i,a){var s;F._super.init.call(this,e,i,a),a[0]&&(a=a[0]),n.data(a,"_jqs_vcanvas",this),this.canvas=t.createElement("span"),n(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:i,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,a),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,s='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>',this.canvas.insertAdjacentHTML("beforeEnd",s),this.group=n(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,n,a,s){var r,o,l,d,u,h,c=[];for(h=0,u=e.length;h<u;h++)c[h]=e[h][0]+","+e[h][1];return r=c.splice(0,1),s=s===i?1:s,o=n===i?' stroked="false" ':' strokeWeight="'+s+'px" strokeColor="'+n+'" ',l=a===i?' filled="false"':' fillColor="'+a+'" filled="true" ',d=c[0]===c[c.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+o+l+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+r+" l "+c.join(", ")+" "+d+'e"> </v:shape>'},_drawCircle:function(t,e,n,a,s,r,o){return'<v:oval  id="jqsshape'+t+'" '+(s===i?' stroked="false" ':' strokeWeight="'+o+'px" strokeColor="'+s+'" ')+(r===i?' filled="false"':' fillColor="'+r+'" filled="true" ')+' style="position:absolute;top:'+(n-=a)+"px; left:"+(e-=a)+"px; width:"+2*a+"px; height:"+2*a+'px"></v:oval>'},_drawPieSlice:function(t,n,a,s,r,o,l,d){var u,h,c,p,f,m,_;if(r===o)return"";if(o-r==2*e.PI&&(r=0,o=2*e.PI),h=n+e.round(e.cos(r)*s),c=a+e.round(e.sin(r)*s),p=n+e.round(e.cos(o)*s),f=a+e.round(e.sin(o)*s),h===p&&c===f){if(o-r<e.PI)return"";h=p=n+s,c=f=a}return h===p&&c===f&&o-r<e.PI?"":(u=[n-s,a-s,n+s,a+s,h,c,p,f],m=l===i?' stroked="false" ':' strokeWeight="1px" strokeColor="'+l+'" ',_=d===i?' filled="false"':' fillColor="'+d+'" filled="true" ','<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+m+_+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+n+","+a+" wa "+u.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,i,n,a,s,r){return this._drawShape(t,[[e,i],[e,i+a],[e+n,i+a],[e+n,i],[e,i]],s,r)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i=n("#jqsshape"+t),a=this["_draw"+e.type].apply(this,e.args);i[0].outerHTML=a},replaceWithShapes:function(t,e){var i,a=n("#jqsshape"+t[0]),s="",r=e.length;for(i=0;i<r;i++)s+=this["_draw"+e[i].type].apply(this,e[i].args);for(a[0].outerHTML=s,i=1;i<t.length;i++)n("#jqsshape"+t[i]).remove()},insertAfterShape:function(t,e){var i=n("#jqsshape"+t),a=this["_draw"+e.type].apply(this,e.args);i[0].insertAdjacentHTML("afterEnd",a)},removeShapeId:function(t){var e=n("#jqsshape"+t);this.group.removeChild(e[0])},getShapeAt:function(t,e,i){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})},"function"==typeof define&&define.amd?define(["jquery"],n):jQuery&&!jQuery.fn.sparkline&&n(jQuery)}(document,Math),
/*! X-editable - v1.5.1 
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
function(t){"use strict";var e=function(e,i){this.options=t.extend({},t.fn.editableform.defaults,i),this.$div=t(e),this.options.scope||(this.options.scope=this)};e.prototype={constructor:e,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value),this.input.prerender()},initTemplate:function(){this.$form=t(t.fn.editableform.template)},initButtons:function(){var e=this.$form.find(".editable-buttons");e.append(t.fn.editableform.buttons),"bottom"===this.options.showbuttons&&e.addClass("editable-buttons-bottom")},render:function(){this.$loading=t(t.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),t.when(this.input.render()).then(t.proxy((function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(t.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit((function(t){t.preventDefault()}));else{this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled");var e=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(e),this.$form.submit(t.proxy(this.submit,this))}this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()}),this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var t,e;this.$form?(t=this.$form.outerWidth(),e=this.$form.outerHeight(),t&&this.$loading.width(t),e&&this.$loading.height(e),this.$form.hide()):(t=this.$loading.parent().width())&&this.$loading.width(t),this.$loading.show()},showForm:function(t){this.$loading.hide(),this.$form.show(),!1!==t&&this.input.activate(),this.$div.triggerHandler("show")},error:function(e){var i,n=this.$form.find(".control-group"),a=this.$form.find(".editable-error-block");if(!1===e)n.removeClass(t.fn.editableform.errorGroupClass),a.removeClass(t.fn.editableform.errorBlockClass).empty().hide();else{if(e){i=(""+e).split("\n");for(var s=0;s<i.length;s++)i[s]=t("<div>").text(i[s]).html();e=i.join("<br>")}n.addClass(t.fn.editableform.errorGroupClass),a.addClass(t.fn.editableform.errorBlockClass).html(e).show()}},submit:function(e){e.stopPropagation(),e.preventDefault();var i=this.input.input2value(),n=this.validate(i);if("object"===t.type(n)&&void 0!==n.newValue){if(i=n.newValue,this.input.value2input(i),"string"==typeof n.msg)return this.error(n.msg),void this.showForm()}else if(n)return this.error(n),void this.showForm();if(this.options.savenochange||this.input.value2str(i)!=this.input.value2str(this.value)){var a=this.input.value2submit(i);this.isSaving=!0,t.when(this.save(a)).done(t.proxy((function(t){this.isSaving=!1;var e="function"==typeof this.options.success?this.options.success.call(this.options.scope,t,i):null;return!1===e?(this.error(!1),void this.showForm(!1)):"string"==typeof e?(this.error(e),void this.showForm()):(e&&"object"==typeof e&&e.hasOwnProperty("newValue")&&(i=e.newValue),this.error(!1),this.value=i,void this.$div.triggerHandler("save",{newValue:i,submitValue:a,response:t}))}),this)).fail(t.proxy((function(t){var e;this.isSaving=!1,e="function"==typeof this.options.error?this.options.error.call(this.options.scope,t,i):"string"==typeof t?t:t.responseText||t.statusText||"Unknown error!",this.error(e),this.showForm()}),this))}else this.$div.triggerHandler("nochange")},save:function(e){this.options.pk=t.fn.editableutils.tryParseJson(this.options.pk,!0);var i,n="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk;if(!!("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!=n)))return this.showLoading(),i={name:this.options.name||"",value:e,pk:n},"function"==typeof this.options.params?i=this.options.params.call(this.options.scope,i):(this.options.params=t.fn.editableutils.tryParseJson(this.options.params,!0),t.extend(i,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,i):t.ajax(t.extend({url:this.options.url,data:i,type:"POST"},this.options.ajaxOptions))},validate:function(t){if(void 0===t&&(t=this.value),"function"==typeof this.options.validate)return this.options.validate.call(this.options.scope,t)},option:function(t,e){t in this.options&&(this.options[t]=e),"value"===t&&this.setValue(e)},setValue:function(t,e){this.value=e?this.input.str2value(t):t,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},t.fn.editableform=function(i){var n=arguments;return this.each((function(){var a=t(this),s=a.data("editableform"),r="object"==typeof i&&i;s||a.data("editableform",s=new e(this,r)),"string"==typeof i&&s[i].apply(s,Array.prototype.slice.call(n,1))}))},t.fn.editableform.Constructor=e,t.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},t.fn.editableform.template='<form class="form-inline editableform"><div class="control-group"><div><div class="editable-input"></div><div class="editable-buttons"></div></div><div class="editable-error-block"></div></div></form>',t.fn.editableform.loading='<div class="editableform-loading"></div>',t.fn.editableform.buttons='<button type="submit" class="editable-submit">ok</button><button type="button" class="editable-cancel">cancel</button>',t.fn.editableform.errorGroupClass=null,t.fn.editableform.errorBlockClass="editable-error",t.fn.editableform.engine="jquery"}(window.jQuery),function(t){"use strict";t.fn.editableutils={inherit:function(t,e){var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype},setCursorPosition:function(t,e){if(t.setSelectionRange)t.setSelectionRange(e,e);else if(t.createTextRange){var i=t.createTextRange();i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",e),i.select()}},tryParseJson:function(t,e){if("string"==typeof t&&t.length&&t.match(/^[\{\[].*[\}\]]$/))if(e)try{t=new Function("return "+t)()}catch(t){}finally{return t}else t=new Function("return "+t)();return t},sliceObj:function(e,i,n){var a,s,r={};if(!t.isArray(i)||!i.length)return r;for(var o=0;o<i.length;o++)a=i[o],e.hasOwnProperty(a)&&(r[a]=e[a]),!0!==n&&(s=a.toLowerCase(),e.hasOwnProperty(s)&&(r[a]=e[s]));return r},getConfigData:function(e){var i={};return t.each(e.data(),(function(t,e){("object"!=typeof e||e&&"object"==typeof e&&(e.constructor===Object||e.constructor===Array))&&(i[t]=e)})),i},objectKeys:function(t){if(Object.keys)return Object.keys(t);if(t!==Object(t))throw new TypeError("Object.keys called on a non-object");var e,i=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.push(e);return i},escape:function(e){return t("<div>").text(e).html()},itemsByValue:function(e,i,n){if(!i||null===e)return[];if("function"!=typeof n){var a=n||"value";n=function(t){return t[a]}}var s=t.isArray(e),r=[],o=this;return t.each(i,(function(i,a){if(a.children)r=r.concat(o.itemsByValue(e,a.children,n));else if(s)t.grep(e,(function(t){return t==(a&&"object"==typeof a?n(a):a)})).length&&r.push(a);else{var l=a&&"object"==typeof a?n(a):a;e==l&&r.push(a)}})),r},createInput:function(e){var i,n=e.type;return"date"===n&&("inline"===e.mode?t.fn.editabletypes.datefield?n="datefield":t.fn.editabletypes.dateuifield&&(n="dateuifield"):t.fn.editabletypes.date?n="date":t.fn.editabletypes.dateui&&(n="dateui"),"date"!==n||t.fn.editabletypes.date||(n="combodate")),"datetime"===n&&"inline"===e.mode&&(n="datetimefield"),"wysihtml5"!==n||t.fn.editabletypes[n]||(n="textarea"),"function"==typeof t.fn.editabletypes[n]?new(i=t.fn.editabletypes[n])(this.sliceObj(e,this.objectKeys(i.defaults))):(t.error("Unknown type: "+n),!1)},supportsTransitions:function(){var t=(document.body||document.documentElement).style,e="transition",i=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[e])return!0;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=0;n<i.length;n++)if("string"==typeof t[i[n]+e])return!0;return!1}}}(window.jQuery),function(t){"use strict";var e=function(t,e){this.init(t,e)},i=function(t,e){this.init(t,e)};e.prototype={containerName:null,containerDataName:null,innerCss:null,containerClass:"editable-container editable-popup",defaults:{},init:function(i,n){this.$element=t(i),this.options=t.extend({},t.fn.editableContainer.defaults,n),this.splitOptions(),this.formOptions.scope=this.$element[0],this.initContainer(),this.delayedHide=!1,this.$element.on("destroyed",t.proxy((function(){this.destroy()}),this)),t(document).data("editable-handlers-attached")||(t(document).on("keyup.editable",(function(e){27===e.which&&t(".editable-open").editableContainer("hide")})),t(document).on("click.editable",(function(i){var n,a=t(i.target),s=[".editable-container",".ui-datepicker-header",".datepicker",".modal-backdrop",".bootstrap-wysihtml5-insert-image-modal",".bootstrap-wysihtml5-insert-link-modal"];if(t.contains(document.documentElement,i.target)&&!a.is(document)){for(n=0;n<s.length;n++)if(a.is(s[n])||a.parents(s[n]).length)return;e.prototype.closeOthers(i.target)}})),t(document).data("editable-handlers-attached",!0))},splitOptions:function(){if(this.containerOptions={},this.formOptions={},!t.fn[this.containerName])throw new Error(this.containerName+" not found. Have you included corresponding js file?");for(var e in this.options)e in this.defaults?this.containerOptions[e]=this.options[e]:this.formOptions[e]=this.options[e]},tip:function(){return this.container()?this.container().$tip:null},container:function(){var t;return this.containerDataName&&(t=this.$element.data(this.containerDataName))?t:t=this.$element.data(this.containerName)},call:function(){this.$element[this.containerName].apply(this.$element,arguments)},initContainer:function(){this.call(this.containerOptions)},renderForm:function(){this.$form.editableform(this.formOptions).on({save:t.proxy(this.save,this),nochange:t.proxy((function(){this.hide("nochange")}),this),cancel:t.proxy((function(){this.hide("cancel")}),this),show:t.proxy((function(){this.delayedHide?(this.hide(this.delayedHide.reason),this.delayedHide=!1):this.setPosition()}),this),rendering:t.proxy(this.setPosition,this),resize:t.proxy(this.setPosition,this),rendered:t.proxy((function(){this.$element.triggerHandler("shown",t(this.options.scope).data("editable"))}),this)}).editableform("render")},show:function(e){this.$element.addClass("editable-open"),!1!==e&&this.closeOthers(this.$element[0]),this.innerShow(),this.tip().addClass(this.containerClass),this.$form,this.$form=t("<div>"),this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form),this.renderForm()},hide:function(t){this.tip()&&this.tip().is(":visible")&&this.$element.hasClass("editable-open")&&(this.$form.data("editableform").isSaving?this.delayedHide={reason:t}:(this.delayedHide=!1,this.$element.removeClass("editable-open"),this.innerHide(),this.$element.triggerHandler("hidden",t||"manual")))},innerShow:function(){},innerHide:function(){},toggle:function(t){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(t)},setPosition:function(){},save:function(t,e){this.$element.triggerHandler("save",e),this.hide("save")},option:function(t,e){this.options[t]=e,t in this.containerOptions?(this.containerOptions[t]=e,this.setContainerOption(t,e)):(this.formOptions[t]=e,this.$form&&this.$form.editableform("option",t,e))},setContainerOption:function(t,e){this.call("option",t,e)},destroy:function(){this.hide(),this.innerDestroy(),this.$element.off("destroyed"),this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(e){t(".editable-open").each((function(i,n){if(n!==e&&!t(n).find(e).length){var a=t(n),s=a.data("editableContainer");s&&("cancel"===s.options.onblur?a.data("editableContainer").hide("onblur"):"submit"===s.options.onblur&&a.data("editableContainer").tip().find("form").submit())}}))},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}},t.fn.editableContainer=function(n){var a=arguments;return this.each((function(){var s=t(this),r="editableContainer",o=s.data(r),l="object"==typeof n&&n,d="inline"===l.mode?i:e;o||s.data(r,o=new d(this,l)),"string"==typeof n&&o[n].apply(o,Array.prototype.slice.call(a,1))}))},t.fn.editableContainer.Popup=e,t.fn.editableContainer.Inline=i,t.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"},jQuery.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}}(window.jQuery),function(t){"use strict";t.extend(t.fn.editableContainer.Inline.prototype,t.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=t("<span></span>"),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,t.proxy((function(){this.$element.show(),this.innerDestroy()}),this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.editable.defaults,i,t.fn.editableutils.getConfigData(this.$element)),this.options.selector?this.initLive():this.init(),this.options.highlight&&!t.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};e.prototype={constructor:e,init:function(){var e,i=!1;if(this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=t.fn.editableutils.createInput(this.options),this.input){switch(void 0===this.options.value||null===this.options.value?(this.value=this.input.html2value(t.trim(this.$element.html())),i=!0):(this.options.value=t.fn.editableutils.tryParseJson(this.options.value,!0),"string"==typeof this.options.value?this.value=this.input.str2value(this.options.value):this.value=this.options.value),this.$element.addClass("editable"),"textarea"===this.input.type&&this.$element.addClass("editable-pre-wrapped"),"manual"!==this.options.toggle?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",t.proxy((function(t){if(this.options.disabled||t.preventDefault(),"mouseenter"===this.options.toggle)this.show();else{var e="click"!==this.options.toggle;this.toggle(e)}}),this))):this.$element.attr("tabindex",-1),"function"==typeof this.options.display&&(this.options.autotext="always"),this.options.autotext){case"always":e=!0;break;case"auto":e=!t.trim(this.$element.text()).length&&null!==this.value&&void 0!==this.value&&!i;break;default:e=!1}t.when(!e||this.render()).then(t.proxy((function(){this.options.disabled?this.disable():this.enable(),this.$element.triggerHandler("init",this)}),this))}},initLive:function(){var e=this.options.selector;this.options.selector=!1,this.options.autotext="never",this.$element.on(this.options.toggle+".editable",e,t.proxy((function(e){var i=t(e.target);i.data("editable")||(i.hasClass(this.options.emptyclass)&&i.empty(),i.editable(this.options).trigger(e))}),this))},render:function(t){if(!1!==this.options.display)return this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,t):"function"==typeof this.options.display?this.options.display.call(this.$element[0],this.value,t):this.input.value2html(this.value,this.$element[0])},enable:function(){this.options.disabled=!1,this.$element.removeClass("editable-disabled"),this.handleEmpty(this.isEmpty),"manual"!==this.options.toggle&&"-1"===this.$element.attr("tabindex")&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0,this.hide(),this.$element.addClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(e,i){if(e&&"object"==typeof e)t.each(e,t.proxy((function(e,i){this.option(t.trim(e),i)}),this));else{if(this.options[e]=i,"disabled"===e)return i?this.disable():this.enable();"value"===e&&this.setValue(i),this.container&&this.container.option(e,i),this.input.option&&this.input.option(e,i)}},handleEmpty:function(e){!1!==this.options.display&&(void 0!==e?this.isEmpty=e:"function"==typeof this.input.isEmpty?this.isEmpty=this.input.isEmpty(this.$element):this.isEmpty=""===t.trim(this.$element.html()),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass))},show:function(e){if(!this.options.disabled){if(this.container){if(this.container.tip().is(":visible"))return}else{var i=t.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(i),this.$element.on("save.internal",t.proxy(this.save,this)),this.container=this.$element.data("editableContainer")}this.container.show(e)}},hide:function(){this.container&&this.container.hide()},toggle:function(t){this.container&&this.container.tip().is(":visible")?this.hide():this.show(t)},save:function(t,e){if(this.options.unsavedclass){var i=!1;(i=(i=(i=(i=i||"function"==typeof this.options.url)||!1===this.options.display)||void 0!==e.response)||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(e.newValue))?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass)}if(this.options.highlight){var n=this.$element,a=n.css("background-color");n.css("background-color",this.options.highlight),setTimeout((function(){"transparent"===a&&(a=""),n.css("background-color",a),n.addClass("editable-bg-transition"),setTimeout((function(){n.removeClass("editable-bg-transition")}),1700)}),10)}this.setValue(e.newValue,!1,e.response)},validate:function(){if("function"==typeof this.options.validate)return this.options.validate.call(this,this.value)},setValue:function(e,i,n){this.value=i?this.input.str2value(e):e,this.container&&this.container.option("value",this.value),t.when(this.render(n)).then(t.proxy((function(){this.handleEmpty()}),this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable(),this.container&&this.container.destroy(),this.input.destroy(),"manual"!==this.options.toggle&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable")),this.$element.off("save.internal"),this.$element.removeClass("editable editable-open editable-disabled"),this.$element.removeData("editable")}},t.fn.editable=function(i){var n={},a=arguments,s="editable";switch(i){case"validate":return this.each((function(){var e,i=t(this).data(s);i&&(e=i.validate())&&(n[i.options.name]=e)})),n;case"getValue":return 2===arguments.length&&!0===arguments[1]?n=this.eq(0).data(s).value:this.each((function(){var e=t(this).data(s);e&&void 0!==e.value&&null!==e.value&&(n[e.options.name]=e.input.value2submit(e.value))})),n;case"submit":var r=arguments[1]||{},o=this,l=this.editable("validate");if(t.isEmptyObject(l)){var d={};if(1===o.length){var u=o.data("editable"),h={name:u.options.name||"",value:u.input.value2submit(u.value),pk:"function"==typeof u.options.pk?u.options.pk.call(u.options.scope):u.options.pk};"function"==typeof u.options.params?h=u.options.params.call(u.options.scope,h):(u.options.params=t.fn.editableutils.tryParseJson(u.options.params,!0),t.extend(h,u.options.params)),d={url:u.options.url,data:h,type:"POST"},r.success=r.success||u.options.success,r.error=r.error||u.options.error}else{var c=this.editable("getValue");d={url:r.url,data:c,type:"POST"}}d.success="function"==typeof r.success?function(t){r.success.call(o,t,r)}:t.noop,d.error="function"==typeof r.error?function(){r.error.apply(o,arguments)}:t.noop,r.ajaxOptions&&t.extend(d,r.ajaxOptions),r.data&&t.extend(d.data,r.data),t.ajax(d)}else"function"==typeof r.error&&r.error.call(o,l);return this}return this.each((function(){var n=t(this),r=n.data(s),o="object"==typeof i&&i;o&&o.selector?r=new e(this,o):(r||n.data(s,r=new e(this,o)),"string"==typeof i&&r[i].apply(r,Array.prototype.slice.call(a,1)))}))},t.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(t){"use strict";t.fn.editabletypes={};var e=function(){};e.prototype={init:function(e,i,n){this.type=e,this.options=t.extend({},n,i)},prerender:function(){this.$tpl=t(this.options.tpl),this.$input=this.$tpl,this.$clear=null,this.error=null},render:function(){},value2html:function(e,i){t(i)[this.options.escape?"text":"html"](t.trim(e))},html2value:function(e){return t("<div>").html(e).text()},value2str:function(t){return t},str2value:function(t){return t},value2submit:function(t){return t},value2input:function(t){this.$input.val(t)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(e){return t("<div>").text(e).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(t){void 0!==this.options[t]&&null!==this.options[t]&&this.$input.attr(t,this.options[t])},option:function(t,e){this.options[t]=e}},e.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0},t.extend(t.fn.editabletypes,{abstractinput:e})}(window.jQuery),function(t){"use strict";var e=function(t){};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){var e=t.Deferred();return this.error=null,this.onSourceReady((function(){this.renderList(),e.resolve()}),(function(){this.error=this.options.sourceError,e.resolve()})),e.promise()},html2value:function(t){return null},value2html:function(e,i,n,a){var s=t.Deferred(),r=function(){"function"==typeof n?n.call(i,e,this.sourceData,a):this.value2htmlFinal(e,i),s.resolve()};return null===e?r.call(this):this.onSourceReady(r,(function(){s.resolve()})),s.promise()},onSourceReady:function(e,i){var n;if(t.isFunction(this.options.source)?(n=this.options.source.call(this.options.scope),this.sourceData=null):n=this.options.source,this.options.sourceCache&&t.isArray(this.sourceData))e.call(this);else{try{n=t.fn.editableutils.tryParseJson(n,!1)}catch(t){return void i.call(this)}if("string"==typeof n){if(this.options.sourceCache){var a,s=n;if(t(document).data(s)||t(document).data(s,{}),!1===(a=t(document).data(s)).loading&&a.sourceData)return this.sourceData=a.sourceData,this.doPrepend(),void e.call(this);if(!0===a.loading)return a.callbacks.push(t.proxy((function(){this.sourceData=a.sourceData,this.doPrepend(),e.call(this)}),this)),void a.err_callbacks.push(t.proxy(i,this));a.loading=!0,a.callbacks=[],a.err_callbacks=[]}var r=t.extend({url:n,type:"get",cache:!1,dataType:"json",success:t.proxy((function(n){a&&(a.loading=!1),this.sourceData=this.makeArray(n),t.isArray(this.sourceData)?(a&&(a.sourceData=this.sourceData,t.each(a.callbacks,(function(){this.call()}))),this.doPrepend(),e.call(this)):(i.call(this),a&&t.each(a.err_callbacks,(function(){this.call()})))}),this),error:t.proxy((function(){i.call(this),a&&(a.loading=!1,t.each(a.err_callbacks,(function(){this.call()})))}),this)},this.options.sourceOptions);t.ajax(r)}else this.sourceData=this.makeArray(n),t.isArray(this.sourceData)?(this.doPrepend(),e.call(this)):i.call(this)}},doPrepend:function(){null!==this.options.prepend&&void 0!==this.options.prepend&&(t.isArray(this.prependData)||(t.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=t.fn.editableutils.tryParseJson(this.options.prepend,!0),"string"==typeof this.options.prepend&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),t.isArray(this.prependData)&&t.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData)))},renderList:function(){},value2htmlFinal:function(t,e){},makeArray:function(e){var i,n,a,s,r=[];if(!e||"string"==typeof e)return null;if(t.isArray(e)){s=function(t,e){if(n={value:t,text:e},i++>=2)return!1};for(var o=0;o<e.length;o++)"object"==typeof(a=e[o])?(i=0,t.each(a,s),1===i?r.push(n):i>1&&(a.children&&(a.children=this.makeArray(a.children)),r.push(a))):r.push({value:a,text:a})}else t.each(e,(function(t,e){r.push({value:t,text:e})}));return r},option:function(t,e){this.options[t]=e,"source"===t&&(this.sourceData=null),"prepend"===t&&(this.prependData=null)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0,sourceOptions:null}),t.fn.editabletypes.list=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("text",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),t.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=t('<span class="editable-clear-x"></span>'),this.$input.after(this.$clear).css("padding-right",24).keyup(t.proxy((function(e){if(!~t.inArray(e.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var i=this;this.t=setTimeout((function(){i.toggleClear(e)}),100)}}),this)).parent().css("position","relative"),this.$clear.click(t.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(t){if(this.$clear){var e=this.$input.val().length,i=this.$clear.is(":visible");e&&!i&&this.$clear.show(),!e&&i&&this.$clear.hide()}},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',placeholder:null,clear:!0}),t.fn.editabletypes.text=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("textarea",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown((function(e){e.ctrlKey&&13===e.which&&t(this).closest("form").submit()}))},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:"<textarea></textarea>",inputclass:"input-large",placeholder:null,rows:7}),t.fn.editabletypes.textarea=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("select",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){this.$input.empty();var e=function(i,n){var a;if(t.isArray(n))for(var s=0;s<n.length;s++)a={},n[s].children?(a.label=n[s].text,i.append(e(t("<optgroup>",a),n[s].children))):(a.value=n[s].value,n[s].disabled&&(a.disabled=!0),i.append(t("<option>",a).text(n[s].text)));return i};e(this.$input,this.sourceData),this.setClass(),this.$input.on("keydown.editable",(function(e){13===e.which&&t(this).closest("form").submit()}))},value2htmlFinal:function(e,i){var n="",a=t.fn.editableutils.itemsByValue(e,this.sourceData);a.length&&(n=a[0].text),t.fn.editabletypes.abstractinput.prototype.value2html.call(this,n,i)},autosubmit:function(){this.$input.off("keydown.editable").on("change.editable",(function(){t(this).closest("form").submit()}))}}),e.defaults=t.extend({},t.fn.editabletypes.list.defaults,{tpl:"<select></select>"}),t.fn.editabletypes.select=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("checklist",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){var e;if(this.$tpl.empty(),t.isArray(this.sourceData)){for(var i=0;i<this.sourceData.length;i++)e=t("<label>").append(t("<input>",{type:"checkbox",value:this.sourceData[i].value})).append(t("<span>").text(" "+this.sourceData[i].text)),t("<div>").append(e).appendTo(this.$tpl);this.$input=this.$tpl.find('input[type="checkbox"]'),this.setClass()}},value2str:function(e){return t.isArray(e)?e.sort().join(t.trim(this.options.separator)):""},str2value:function(e){var i,n=null;return"string"==typeof e&&e.length?(i=new RegExp("\\s*"+t.trim(this.options.separator)+"\\s*"),n=e.split(i)):n=t.isArray(e)?e:[e],n},value2input:function(e){this.$input.prop("checked",!1),t.isArray(e)&&e.length&&this.$input.each((function(i,n){var a=t(n);t.each(e,(function(t,e){a.val()==e&&a.prop("checked",!0)}))}))},input2value:function(){var e=[];return this.$input.filter(":checked").each((function(i,n){e.push(t(n).val())})),e},value2htmlFinal:function(e,i){var n=[],a=t.fn.editableutils.itemsByValue(e,this.sourceData),s=this.options.escape;a.length?(t.each(a,(function(e,i){var a=s?t.fn.editableutils.escape(i.text):i.text;n.push(a)})),t(i).html(n.join("<br>"))):t(i).empty()},activate:function(){this.$input.first().focus()},autosubmit:function(){this.$input.on("keydown",(function(e){13===e.which&&t(this).closest("form").submit()}))}}),e.defaults=t.extend({},t.fn.editabletypes.list.defaults,{tpl:'<div class="editable-checklist"></div>',inputclass:null,separator:","}),t.fn.editabletypes.checklist=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("password",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),t.extend(e.prototype,{value2html:function(e,i){e?t(i).text("[hidden]"):t(i).empty()},html2value:function(t){return null}}),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="password">'}),t.fn.editabletypes.password=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("email",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="email">'}),t.fn.editabletypes.email=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("url",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="url">'}),t.fn.editabletypes.url=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("tel",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="tel">'}),t.fn.editabletypes.tel=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("number",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),t.extend(e.prototype,{render:function(){e.superclass.render.call(this),this.setAttr("min"),this.setAttr("max"),this.setAttr("step")},postrender:function(){this.$clear&&this.$clear.css({right:24})}}),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="number">',inputclass:"input-mini",min:null,max:null,step:null}),t.fn.editabletypes.number=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("range",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.number),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.filter("input"),this.setClass(),this.setAttr("min"),this.setAttr("max"),this.setAttr("step"),this.$input.on("input",(function(){t(this).siblings("output").text(t(this).val())}))},activate:function(){this.$input.focus()}}),e.defaults=t.extend({},t.fn.editabletypes.number.defaults,{tpl:'<input type="range"><output style="width: 30px; display: inline-block"></output>',inputclass:"input-medium"}),t.fn.editabletypes.range=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("time",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="time">'}),t.fn.editabletypes.time=e}(window.jQuery),function(t){"use strict";var e=function(i){if(this.init("select2",i,e.defaults),i.select2=i.select2||{},this.sourceData=null,i.placeholder&&(i.select2.placeholder=i.placeholder),!i.select2.tags&&i.source){var n=i.source;t.isFunction(i.source)&&(n=i.source.call(i.scope)),"string"==typeof n?(i.select2.ajax=i.select2.ajax||{},i.select2.ajax.data||(i.select2.ajax.data=function(t){return{query:t}}),i.select2.ajax.results||(i.select2.ajax.results=function(t){return{results:t}}),i.select2.ajax.url=n):(this.sourceData=this.convertSource(n),i.select2.data=this.sourceData)}if(this.options.select2=t.extend({},e.defaults.select2,i.select2),this.isMultiple=this.options.select2.tags||this.options.select2.multiple,this.isRemote="ajax"in this.options.select2,this.idFunc=this.options.select2.id,"function"!=typeof this.idFunc){var a=this.idFunc||"id";this.idFunc=function(t){return t[a]}}this.formatSelection=this.options.select2.formatSelection,"function"!=typeof this.formatSelection&&(this.formatSelection=function(t){return t.text})};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.isRemote&&this.$input.on("select2-loaded",t.proxy((function(t){this.sourceData=t.items.results}),this)),this.isMultiple&&this.$input.on("change",(function(){t(this).closest("form").parent().triggerHandler("resize")}))},value2html:function(i,n){var a,s="",r=this;this.options.select2.tags?a=i:this.sourceData&&(a=t.fn.editableutils.itemsByValue(i,this.sourceData,this.idFunc)),t.isArray(a)?(s=[],t.each(a,(function(t,e){s.push(e&&"object"==typeof e?r.formatSelection(e):e)}))):a&&(s=r.formatSelection(a)),s=t.isArray(s)?s.join(this.options.viewseparator):s,e.superclass.value2html.call(this,s,n)},html2value:function(t){return this.options.select2.tags?this.str2value(t,this.options.viewseparator):null},value2input:function(e){if(t.isArray(e)&&(e=e.join(this.getSeparator())),this.$input.data("select2")?this.$input.val(e).trigger("change",!0):(this.$input.val(e),this.$input.select2(this.options.select2)),this.isRemote&&!this.isMultiple&&!this.options.select2.initSelection){var i=this.options.select2.id,n=this.options.select2.formatSelection;if(!i&&!n){var a=t(this.options.scope);if(!a.data("editable").isEmpty){var s={id:e,text:a.text()};this.$input.select2("data",s)}}}},input2value:function(){return this.$input.select2("val")},str2value:function(e,i){if("string"!=typeof e||!this.isMultiple)return e;var n,a,s;if(i=i||this.getSeparator(),null===e||e.length<1)return null;for(a=0,s=(n=e.split(i)).length;a<s;a+=1)n[a]=t.trim(n[a]);return n},autosubmit:function(){this.$input.on("change",(function(e,i){i||t(this).closest("form").submit()}))},getSeparator:function(){return this.options.select2.separator||t.fn.select2.defaults.separator},convertSource:function(e){if(t.isArray(e)&&e.length&&void 0!==e[0].value)for(var i=0;i<e.length;i++)void 0!==e[i].value&&(e[i].id=e[i].value,delete e[i].value);return e},destroy:function(){this.$input.data("select2")&&this.$input.select2("destroy")}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="hidden">',select2:null,placeholder:null,source:null,viewseparator:", "}),t.fn.editabletypes.select2=e}(window.jQuery),function(t){var e=function(e,i){this.$element=t(e),this.$element.is("input")?(this.options=t.extend({},t.fn.combodate.defaults,i,this.$element.data()),this.init()):t.error("Combodate should be applied to INPUT element")};e.prototype={constructor:e,init:function(){this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]},this.$widget=t('<span class="combodate"></span>').html(this.getTemplate()),this.initCombos(),this.$widget.on("change","select",t.proxy((function(e){this.$element.val(this.getValue()).change(),this.options.smartDays&&(t(e.target).is(".month")||t(e.target).is(".year"))&&this.fillCombo("day")}),this)),this.$widget.find("select").css("width","auto"),this.$element.hide().after(this.$widget),this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var e=this.options.template;return t.each(this.map,(function(t,i){i=i[0];var n=new RegExp(i+"+"),a=i.length>1?i.substring(1,2):i;e=e.replace(n,"{"+a+"}")})),e=e.replace(/ /g,"&nbsp;"),t.each(this.map,(function(t,i){var n=(i=i[0]).length>1?i.substring(1,2):i;e=e.replace("{"+n+"}",'<select class="'+t+'"></select>')})),e},initCombos:function(){for(var t in this.map){var e=this.$widget.find("."+t);this["$"+t]=e.length?e:null,this.fillCombo(t)}},fillCombo:function(t){var e=this["$"+t];if(e){var i=this["fill"+t.charAt(0).toUpperCase()+t.slice(1)](),n=e.val();e.empty();for(var a=0;a<i.length;a++)e.append('<option value="'+i[a][0]+'">'+i[a][1]+"</option>");e.val(n)}},fillCommon:function(t){var e,i=[];if("name"===this.options.firstItem){var n="function"==typeof(e=moment.relativeTime||moment.langData()._relativeTime)[t]?e[t](1,!0,t,!1):e[t];n=n.split(" ").reverse()[0],i.push(["",n])}else"empty"===this.options.firstItem&&i.push(["",""]);return i},fillDay:function(){var t,e,i=this.fillCommon("d"),n=-1!==this.options.template.indexOf("DD"),a=31;if(this.options.smartDays&&this.$month&&this.$year){var s=parseInt(this.$month.val(),10),r=parseInt(this.$year.val(),10);isNaN(s)||isNaN(r)||(a=moment([r,s]).daysInMonth())}for(e=1;e<=a;e++)t=n?this.leadZero(e):e,i.push([e,t]);return i},fillMonth:function(){var t,e,i=this.fillCommon("M"),n=-1!==this.options.template.indexOf("MMMM"),a=-1!==this.options.template.indexOf("MMM"),s=-1!==this.options.template.indexOf("MM");for(e=0;e<=11;e++)t=n?moment().date(1).month(e).format("MMMM"):a?moment().date(1).month(e).format("MMM"):s?this.leadZero(e+1):e+1,i.push([e,t]);return i},fillYear:function(){var t,e,i=[],n=-1!==this.options.template.indexOf("YYYY");for(e=this.options.maxYear;e>=this.options.minYear;e--)t=n?e:(e+"").substring(2),i[this.options.yearDescending?"push":"unshift"]([e,t]);return i=this.fillCommon("y").concat(i)},fillHour:function(){var t,e,i=this.fillCommon("h"),n=-1!==this.options.template.indexOf("h"),a=(this.options.template.indexOf("H"),-1!==this.options.template.toLowerCase().indexOf("hh")),s=n?12:23;for(e=n?1:0;e<=s;e++)t=a?this.leadZero(e):e,i.push([e,t]);return i},fillMinute:function(){var t,e,i=this.fillCommon("m"),n=-1!==this.options.template.indexOf("mm");for(e=0;e<=59;e+=this.options.minuteStep)t=n?this.leadZero(e):e,i.push([e,t]);return i},fillSecond:function(){var t,e,i=this.fillCommon("s"),n=-1!==this.options.template.indexOf("ss");for(e=0;e<=59;e+=this.options.secondStep)t=n?this.leadZero(e):e,i.push([e,t]);return i},fillAmpm:function(){var t=-1!==this.options.template.indexOf("a");this.options.template.indexOf("A");return[["am",t?"am":"AM"],["pm",t?"pm":"PM"]]},getValue:function(e){var i,n={},a=this,s=!1;return t.each(this.map,(function(t,e){if("ampm"!==t){var i="day"===t?1:0;return n[t]=a["$"+t]?parseInt(a["$"+t].val(),10):i,isNaN(n[t])?(s=!0,!1):void 0}})),s?"":(this.$ampm&&(12===n.hour?n.hour="am"===this.$ampm.val()?0:12:n.hour="am"===this.$ampm.val()?n.hour:n.hour+12),i=moment([n.year,n.month,n.day,n.hour,n.minute,n.second]),this.highlight(i),null===(e=void 0===e?this.options.format:e)?i.isValid()?i:null:i.isValid()?i.format(e):"")},setValue:function(e){if(e){var i="string"==typeof e?moment(e,this.options.format):moment(e),n=this,a={};i.isValid()&&(t.each(this.map,(function(t,e){"ampm"!==t&&(a[t]=i[e[1]]())})),this.$ampm&&(a.hour>=12?(a.ampm="pm",a.hour>12&&(a.hour-=12)):(a.ampm="am",0===a.hour&&(a.hour=12))),t.each(a,(function(t,e){n["$"+t]&&("minute"===t&&n.options.minuteStep>1&&n.options.roundTime&&(e=s(n["$"+t],e)),"second"===t&&n.options.secondStep>1&&n.options.roundTime&&(e=s(n["$"+t],e)),n["$"+t].val(e))})),this.options.smartDays&&this.fillCombo("day"),this.$element.val(i.format(this.options.format)).change())}function s(e,i){var n={};return e.children("option").each((function(e,a){var s,r=t(a).attr("value");""!==r&&(s=Math.abs(r-i),(void 0===n.distance||s<n.distance)&&(n={value:r,distance:s}))})),n.value}},highlight:function(t){t.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(t){return t<=9?"0"+t:t},destroy:function(){this.$widget.remove(),this.$element.removeData("combodate").show()}},t.fn.combodate=function(i){var n,a=Array.apply(null,arguments);return a.shift(),"getValue"===i&&this.length&&(n=this.eq(0).data("combodate"))?n.getValue.apply(n,a):this.each((function(){var n=t(this),s=n.data("combodate"),r="object"==typeof i&&i;s||n.data("combodate",s=new e(this,r)),"string"==typeof i&&"function"==typeof s[i]&&s[i].apply(s,a)}))},t.fn.combodate.defaults={format:"DD-MM-YYYY HH:mm",template:"D / MMM / YYYY   H : mm",value:null,minYear:1970,maxYear:2015,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,roundTime:!0,smartDays:!1}}(window.jQuery),function(t){"use strict";var e=function(i){this.init("combodate",i,e.defaults),this.options.viewformat||(this.options.viewformat=this.options.format),i.combodate=t.fn.editableutils.tryParseJson(i.combodate,!0),this.options.combodate=t.extend({},e.defaults.combodate,i.combodate,{format:this.options.format,template:this.options.template})};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.$input.combodate(this.options.combodate),"bs3"===t.fn.editableform.engine&&this.$input.siblings().find("select").addClass("form-control"),this.options.inputclass&&this.$input.siblings().find("select").addClass(this.options.inputclass)},value2html:function(t,i){var n=t?t.format(this.options.viewformat):"";e.superclass.value2html.call(this,n,i)},html2value:function(t){return t?moment(t,this.options.viewformat):null},value2str:function(t){return t?t.format(this.options.format):""},str2value:function(t){return t?moment(t,this.options.format):null},value2submit:function(t){return this.value2str(t)},value2input:function(t){this.$input.combodate("setValue",t)},input2value:function(){return this.$input.combodate("getValue",null)},activate:function(){this.$input.siblings(".combodate").find("select").eq(0).focus()},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',inputclass:null,format:"YYYY-MM-DD",viewformat:null,template:"D / MMM / YYYY",combodate:null}),t.fn.editabletypes.combodate=e}(window.jQuery),function(t){"use strict";var e=t.fn.editableform.Constructor.prototype.initInput;t.extend(t.fn.editableform.Constructor.prototype,{initTemplate:function(){this.$form=t(t.fn.editableform.template),this.$form.find(".control-group").addClass("form-group"),this.$form.find(".editable-error-block").addClass("help-block")},initInput:function(){e.apply(this);var i=null===this.input.options.inputclass||!1===this.input.options.inputclass,n="input-sm",a="text,select,textarea,password,email,url,tel,number,range,time,typeaheadjs".split(",");~t.inArray(this.input.type,a)&&(this.input.$input.addClass("form-control"),i&&(this.input.options.inputclass=n,this.input.$input.addClass(n)));for(var s=this.$form.find(".editable-buttons"),r=i?[n]:this.input.options.inputclass.split(" "),o=0;o<r.length;o++)"input-lg"===r[o].toLowerCase()&&s.find("button").removeClass("btn-sm").addClass("btn-lg")}}),t.fn.editableform.buttons='<button type="submit" class="btn btn-primary btn-sm editable-submit"><i class="glyphicon glyphicon-ok"></i></button><button type="button" class="btn btn-default btn-sm editable-cancel"><i class="glyphicon glyphicon-remove"></i></button>',t.fn.editableform.errorGroupClass="has-error",t.fn.editableform.errorBlockClass=null,t.fn.editableform.engine="bs3"}(window.jQuery),function(t){"use strict";t.extend(t.fn.editableContainer.Popup.prototype,{containerName:"popover",containerDataName:"bs.popover",innerCss:".popover-content",defaults:t.fn.popover.Constructor.DEFAULTS,initContainer:function(){var e;t.extend(this.containerOptions,{trigger:"manual",selector:!1,content:" ",template:this.defaults.template}),this.$element.data("template")&&(e=this.$element.data("template"),this.$element.removeData("template")),this.call(this.containerOptions),e&&this.$element.data("template",e)},innerShow:function(){this.call("show")},innerHide:function(){this.call("hide")},innerDestroy:function(){this.call("destroy")},setContainerOption:function(t,e){this.container().options[t]=e},setPosition:function(){(function(){var t=this.tip(),e="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,n=i.test(e);n&&(e=e.replace(i,"")||"top");var a=this.getPosition(),s=t[0].offsetWidth,r=t[0].offsetHeight;if(n){var o=this.$element.parent(),l=e,d=document.documentElement.scrollTop||document.body.scrollTop,u="body"==this.options.container?window.innerWidth:o.outerWidth(),h="body"==this.options.container?window.innerHeight:o.outerHeight(),c="body"==this.options.container?0:o.offset().left;e="bottom"==e&&a.top+a.height+r-d>h?"top":"top"==e&&a.top-d-r<0?"bottom":"right"==e&&a.right+s>u?"left":"left"==e&&a.left-s<c?"right":e,t.removeClass(l).addClass(e)}var p=this.getCalculatedOffset(e,a,s,r);this.applyPlacement(p,e)}).call(this.container())}})}(window.jQuery),function(t){function e(){return new Date(Date.UTC.apply(Date,arguments))}var i=function(e,i){this._process_options(i),this.element=t(e),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.is(".date")&&this.element.find(".add-on, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=t(h.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right")),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",(function(t,e){return parseInt(e)+1})),this._allow_update=!1,this.setStartDate(this.o.startDate),this.setEndDate(this.o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};i.prototype={constructor:i,_process_options:function(e){this._o=t.extend({},this._o,e);var i=this.o=t.extend({},this._o),n=i.language;switch(u[n]||(n=n.split("-")[0],u[n]||(n=l.language)),i.language=n,i.startView){case 2:case"decade":i.startView=2;break;case 1:case"year":i.startView=1;break;default:i.startView=0}switch(i.minViewMode){case 1:case"months":i.minViewMode=1;break;case 2:case"years":i.minViewMode=2;break;default:i.minViewMode=0}i.startView=Math.max(i.startView,i.minViewMode),i.weekStart%=7,i.weekEnd=(i.weekStart+6)%7;var a=h.parseFormat(i.format);i.startDate!==-1/0&&(i.startDate=h.parseDate(i.startDate,a,i.language)),i.endDate!==1/0&&(i.endDate=h.parseDate(i.endDate,a,i.language)),i.daysOfWeekDisabled=i.daysOfWeekDisabled||[],t.isArray(i.daysOfWeekDisabled)||(i.daysOfWeekDisabled=i.daysOfWeekDisabled.split(/[,\s]*/)),i.daysOfWeekDisabled=t.map(i.daysOfWeekDisabled,(function(t){return parseInt(t,10)}))},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var e,i,n=0;n<t.length;n++)e=t[n][0],i=t[n][1],e.on(i)},_unapplyEvents:function(t){for(var e,i,n=0;n<t.length;n++)e=t[n][0],i=t[n][1],e.off(i)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}],[this.component,{click:t.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:t.proxy(this.show,this)}]],this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{mousedown:t.proxy((function(t){this.element.is(t.target)||this.element.find(t.target).size()||this.picker.is(t.target)||this.picker.find(t.target).size()||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var n=i||this.date,a=new Date(n.getTime()+6e4*n.getTimezoneOffset());this.element.trigger({type:e,date:a,format:t.proxy((function(t){var e=t||this.o.format;return h.formatDate(n,e,this.o.language)}),this)})},show:function(t){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.height=this.component?this.component.outerHeight():this.element.outerHeight(),this.place(),this._attachSecondaryEvents(),t&&t.preventDefault(),this._trigger("show")},hide:function(t){this.isInline||this.picker.is(":visible")&&(this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},getDate:function(){var t=this.getUTCDate();return new Date(t.getTime()+6e4*t.getTimezoneOffset())},getUTCDate:function(){return this.date},setDate:function(t){this.setUTCDate(new Date(t.getTime()-6e4*t.getTimezoneOffset()))},setUTCDate:function(t){this.date=t,this.setValue()},setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t):this.component&&this.element.find("input").val(t)},getFormattedDate:function(t){return void 0===t&&(t=this.o.format),h.formatDate(this.date,t,this.o.language)},setStartDate:function(t){this._process_options({startDate:t}),this.update(),this.updateNavArrows()},setEndDate:function(t){this._process_options({endDate:t}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var e=parseInt(this.element.parents().filter((function(){return"auto"!=t(this).css("z-index")})).first().css("z-index"))+10,i=this.component?this.component.parent().offset():this.element.offset(),n=this.component?this.component.outerHeight(!0):this.element.outerHeight(!0);this.picker.css({top:i.top+n,left:i.left,zIndex:e})}},_allow_update:!0,update:function(){if(this._allow_update){var t,e=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(t=arguments[0],e=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),delete this.element.data().date),this.date=h.parseDate(t,this.o.format,this.o.language),e&&this.setValue(),this.date<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.date>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=new Date(this.date),this.fill()}},fillDow:function(){var t=this.o.weekStart,e="<tr>";if(this.o.calendarWeeks){var i='<th class="cw">&nbsp;</th>';e+=i,this.picker.find(".datepicker-days thead tr:first-child").prepend(i)}for(;t<this.o.weekStart+7;)e+='<th class="dow">'+u[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+u[this.o.language].monthsShort[e++]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),s=this.date.valueOf(),r=new Date;return e.getUTCFullYear()<n||e.getUTCFullYear()==n&&e.getUTCMonth()<a?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()==n&&e.getUTCMonth()>a)&&i.push("new"),this.o.todayHighlight&&e.getUTCFullYear()==r.getFullYear()&&e.getUTCMonth()==r.getMonth()&&e.getUTCDate()==r.getDate()&&i.push("today"),s&&e.valueOf()==s&&i.push("active"),(e.valueOf()<this.o.startDate||e.valueOf()>this.o.endDate||-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled))&&i.push("disabled"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!=t.inArray(e.valueOf(),this.range)&&i.push("selected")),i},fill:function(){var i,n=new Date(this.viewDate),a=n.getUTCFullYear(),s=n.getUTCMonth(),r=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0;this.date&&this.date.valueOf();this.picker.find(".datepicker-days thead th.datepicker-switch").text(u[this.o.language].months[s]+" "+a),this.picker.find("tfoot th.today").text(u[this.o.language].today).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot th.clear").text(u[this.o.language].clear).toggle(!1!==this.o.clearBtn),this.updateNavArrows(),this.fillMonths();var c=e(a,s-1,28,0,0,0,0),p=h.getDaysInMonth(c.getUTCFullYear(),c.getUTCMonth());c.setUTCDate(p),c.setUTCDate(p-(c.getUTCDay()-this.o.weekStart+7)%7);var f=new Date(c);f.setUTCDate(f.getUTCDate()+42),f=f.valueOf();for(var m,_=[];c.valueOf()<f;){if(c.getUTCDay()==this.o.weekStart&&(_.push("<tr>"),this.o.calendarWeeks)){var g=new Date(+c+(this.o.weekStart-c.getUTCDay()-7)%7*864e5),v=new Date(+g+(11-g.getUTCDay())%7*864e5),y=new Date(+(y=e(v.getUTCFullYear(),0,1))+(11-y.getUTCDay())%7*864e5),M=(v-y)/864e5/7+1;_.push('<td class="cw">'+M+"</td>")}(m=this.getClassNames(c)).push("day");var b=this.o.beforeShowDay(c);void 0===b?b={}:"boolean"==typeof b?b={enabled:b}:"string"==typeof b&&(b={classes:b}),!1===b.enabled&&m.push("disabled"),b.classes&&(m=m.concat(b.classes.split(/\s+/))),b.tooltip&&(i=b.tooltip),m=t.unique(m),_.push('<td class="'+m.join(" ")+'"'+(i?' title="'+i+'"':"")+">"+c.getUTCDate()+"</td>"),c.getUTCDay()==this.o.weekEnd&&_.push("</tr>"),c.setUTCDate(c.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(_.join(""));var w=this.date&&this.date.getUTCFullYear(),L=this.picker.find(".datepicker-months").find("th:eq(1)").text(a).end().find("span").removeClass("active");w&&w==a&&L.eq(this.date.getUTCMonth()).addClass("active"),(a<r||a>l)&&L.addClass("disabled"),a==r&&L.slice(0,o).addClass("disabled"),a==l&&L.slice(d+1).addClass("disabled"),_="",a=10*parseInt(a/10,10);var k=this.picker.find(".datepicker-years").find("th:eq(1)").text(a+"-"+(a+9)).end().find("td");a-=1;for(var D=-1;D<11;D++)_+='<span class="year'+(-1==D?" old":10==D?" new":"")+(w==a?" active":"")+(a<r||a>l?" disabled":"")+'">'+a+"</span>",a+=1;k.html(_)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(i){i.preventDefault();var n=t(i.target).closest("span, td, th");if(1==n.length)switch(n[0].nodeName.toLowerCase()){case"th":switch(n[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var a=h.modes[this.viewMode].navStep*("prev"==n[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,a);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,a)}this.fill();break;case"today":var s=new Date;s=e(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0),this.showMode(-2);var r="linked"==this.o.todayBtn?null:"view";this._setDate(s,r);break;case"clear":var o;this.isInput?o=this.element:this.component&&(o=this.element.find("input")),o&&o.val("").change(),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()}break;case"span":if(!n.is(".disabled")){if(this.viewDate.setUTCDate(1),n.is(".month")){var l=1,d=n.parent().find("span").index(n),u=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(d),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(e(u,d,l,0,0,0,0))}else{u=parseInt(n.text(),10)||0,l=1,d=0;this.viewDate.setUTCFullYear(u),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(e(u,d,l,0,0,0,0))}this.showMode(-1),this.fill()}break;case"td":if(n.is(".day")&&!n.is(".disabled")){l=parseInt(n.text(),10)||1,u=this.viewDate.getUTCFullYear(),d=this.viewDate.getUTCMonth();n.is(".old")?0===d?(d=11,u-=1):d-=1:n.is(".new")&&(11==d?(d=0,u+=1):d+=1),this._setDate(e(u,d,l,0,0,0,0))}}},_setDate:function(t,e){var i;e&&"date"!=e||(this.date=new Date(t)),e&&"view"!=e||(this.viewDate=new Date(t)),this.fill(),this.setValue(),this._trigger("changeDate"),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&(i.change(),!this.o.autoclose||e&&"date"!=e||this.hide())},moveMonth:function(t,e){if(!e)return t;var i,n,a=new Date(t.valueOf()),s=a.getUTCDate(),r=a.getUTCMonth(),o=Math.abs(e);if(e=e>0?1:-1,1==o)n=-1==e?function(){return a.getUTCMonth()==r}:function(){return a.getUTCMonth()!=i},i=r+e,a.setUTCMonth(i),(i<0||i>11)&&(i=(i+12)%12);else{for(var l=0;l<o;l++)a=this.moveMonth(a,e);i=a.getUTCMonth(),a.setUTCDate(s),n=function(){return i!=a.getUTCMonth()}}for(;n();)a.setUTCDate(--s),a.setUTCMonth(i);return a},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))27==t.keyCode&&this.show();else{var e,i,n,a,s=!1;switch(t.keyCode){case 27:this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37==t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):t.shiftKey?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):((i=new Date(this.date)).setUTCDate(this.date.getUTCDate()+e),(n=new Date(this.viewDate)).setUTCDate(this.viewDate.getUTCDate()+e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),s=!0);break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38==t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):t.shiftKey?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):((i=new Date(this.date)).setUTCDate(this.date.getUTCDate()+7*e),(n=new Date(this.viewDate)).setUTCDate(this.viewDate.getUTCDate()+7*e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),s=!0);break;case 13:this.hide(),t.preventDefault();break;case 9:this.hide()}if(s)this._trigger("changeDate"),this.isInput?a=this.element:this.component&&(a=this.element.find("input")),a&&a.change()}},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.find(">div").hide().filter(".datepicker-"+h.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var n=function(e,i){this.element=t(e),this.inputs=t.map(i.inputs,(function(t){return t.jquery?t[0]:t})),delete i.inputs,t(this.inputs).datepicker(i).bind("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t(e).data("datepicker")})),this.updateDates()};function a(e,i){var n=t(e).data(),a={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var r in n)i.test(r)&&(a[r.replace(s,(function(t,e){return e.toLowerCase()}))]=n[r]);return a}function s(e){var i={};if(u[e]||(e=e.split("-")[0],u[e])){var n=u[e];return t.each(d,(function(t,e){e in n&&(i[e]=n[e])})),i}}n.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.date})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,i){i.setRange(e)}))},dateUpdated:function(e){var i=t(e.target).data("datepicker").getUTCDate(),n=t.inArray(e.target,this.inputs),a=this.inputs.length;if(-1!=n){if(i<this.dates[n])for(;n>=0&&i<this.dates[n];)this.pickers[n--].setUTCDate(i);else if(i>this.dates[n])for(;n<a&&i>this.dates[n];)this.pickers[n++].setUTCDate(i);this.updateDates()}},remove:function(){t.map(this.pickers,(function(t){t.remove()})),delete this.element.data().datepicker}};var r=t.fn.datepicker,o=t.fn.datepicker=function(e){var r,o=Array.apply(null,arguments);return o.shift(),this.each((function(){var d=t(this),u=d.data("datepicker"),h="object"==typeof e&&e;if(!u){var c=a(this,"date"),p=s(t.extend({},l,c,h).language),f=t.extend({},l,p,c,h);if(d.is(".input-daterange")||f.inputs){var m={inputs:f.inputs||d.find("input").toArray()};d.data("datepicker",u=new n(this,t.extend(f,m)))}else d.data("datepicker",u=new i(this,f))}if("string"==typeof e&&"function"==typeof u[e]&&void 0!==(r=u[e].apply(u,o)))return!1})),void 0!==r?r:this},l=t.fn.datepicker.defaults={autoclose:!1,beforeShowDay:t.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},d=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=i;var u=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},h={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,h.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(n,a,s){if(n instanceof Date)return n;if("string"==typeof a&&(a=h.parseFormat(a)),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(n)){var r,o=/([\-+]\d+)([dmwy])/,l=n.match(/([\-+]\d+)([dmwy])/g);n=new Date;for(var d=0;d<l.length;d++)switch(f=o.exec(l[d]),r=parseInt(f[1]),f[2]){case"d":n.setUTCDate(n.getUTCDate()+r);break;case"m":n=i.prototype.moveMonth.call(i.prototype,n,r);break;case"w":n.setUTCDate(n.getUTCDate()+7*r);break;case"y":n=i.prototype.moveYear.call(i.prototype,n,r)}return e(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),0,0,0)}l=n&&n.match(this.nonpunctuation)||[],n=new Date;var c,p,f,m={},_=["yyyy","yy","M","MM","m","mm","d","dd"],g={yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!=e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};g.M=g.MM=g.mm=g.m,g.dd=g.d,n=e(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0);var v=a.parts.slice();if(l.length!=v.length&&(v=t(v).filter((function(e,i){return-1!==t.inArray(i,_)})).toArray()),l.length==v.length){d=0;for(var y=v.length;d<y;d++){if(c=parseInt(l[d],10),f=v[d],isNaN(c))switch(f){case"MM":p=t(u[s].months).filter((function(){var t=this.slice(0,l[d].length);return t==l[d].slice(0,t.length)})),c=t.inArray(p[0],u[s].months)+1;break;case"M":p=t(u[s].monthsShort).filter((function(){var t=this.slice(0,l[d].length);return t==l[d].slice(0,t.length)})),c=t.inArray(p[0],u[s].monthsShort)+1}m[f]=c}var M;for(d=0;d<_.length;d++)(M=_[d])in m&&!isNaN(m[M])&&g[M](n,m[M])}return n},formatDate:function(e,i,n){"string"==typeof i&&(i=h.parseFormat(i));var a={d:e.getUTCDate(),D:u[n].daysShort[e.getUTCDay()],DD:u[n].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:u[n].monthsShort[e.getUTCMonth()],MM:u[n].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};a.dd=(a.d<10?"0":"")+a.d,a.mm=(a.m<10?"0":"")+a.m;e=[];for(var s=t.extend([],i.separators),r=0,o=i.parts.length;r<=o;r++)s.length&&e.push(s.shift()),e.push(a[i.parts[r]]);return e.join("")},headTemplate:'<thead><tr><th class="prev"><i class="icon-arrow-left"/></th><th colspan="5" class="datepicker-switch"></th><th class="next"><i class="icon-arrow-right"/></th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};h.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+h.headTemplate+"<tbody></tbody>"+h.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+h.headTemplate+h.contTemplate+h.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+h.headTemplate+h.contTemplate+h.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=h,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=r,this},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),o.call(i,"show"))})),t((function(){o.call(t('[data-provide="datepicker-inline"]'))}))}(window.jQuery),function(t){"use strict";t.fn.bdatepicker=t.fn.datepicker.noConflict(),t.fn.datepicker||(t.fn.datepicker=t.fn.bdatepicker);var e=function(t){this.init("date",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{initPicker:function(e,i){this.options.viewformat||(this.options.viewformat=this.options.format),e.datepicker=t.fn.editableutils.tryParseJson(e.datepicker,!0),this.options.datepicker=t.extend({},i.datepicker,e.datepicker,{format:this.options.viewformat}),this.options.datepicker.language=this.options.datepicker.language||"en",this.dpg=t.fn.bdatepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat)},render:function(){this.$input.bdatepicker(this.options.datepicker),this.options.clear&&(this.$clear=t('<a href="#"></a>').html(this.options.clear).click(t.proxy((function(t){t.preventDefault(),t.stopPropagation(),this.clear()}),this)),this.$tpl.parent().append(t('<div class="editable-clear">').append(this.$clear)))},value2html:function(t,i){var n=t?this.dpg.formatDate(t,this.parsedViewFormat,this.options.datepicker.language):"";e.superclass.value2html.call(this,n,i)},html2value:function(t){return this.parseDate(t,this.parsedViewFormat)},value2str:function(t){return t?this.dpg.formatDate(t,this.parsedFormat,this.options.datepicker.language):""},str2value:function(t){return this.parseDate(t,this.parsedFormat)},value2submit:function(t){return this.value2str(t)},value2input:function(t){this.$input.bdatepicker("update",t)},input2value:function(){return this.$input.data("datepicker").date},activate:function(){},clear:function(){this.$input.data("datepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".day",(function(e){if(!t(e.currentTarget).is(".old")&&!t(e.currentTarget).is(".new")){var i=t(this).closest("form");setTimeout((function(){i.submit()}),200)}}))},parseDate:function(t,e){var i=null;return t&&(i=this.dpg.parseDate(t,e,this.options.datepicker.language),"string"==typeof t&&t!==this.dpg.formatDate(i,e,this.options.datepicker.language)&&(i=null)),i}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd",viewformat:null,datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!1},clear:"&times; clear"}),t.fn.editabletypes.date=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datefield",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.date),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.bdatepicker(this.options.datepicker),this.$input.off("focus keydown"),this.$input.keyup(t.proxy((function(){this.$tpl.removeData("date"),this.$tpl.bdatepicker("update")}),this))},value2input:function(t){this.$input.val(t?this.dpg.formatDate(t,this.parsedViewFormat,this.options.datepicker.language):""),this.$tpl.bdatepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.date.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-small",datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!0}}),t.fn.editabletypes.datefield=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datetime",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{initPicker:function(e,i){this.options.viewformat||(this.options.viewformat=this.options.format),e.datetimepicker=t.fn.editableutils.tryParseJson(e.datetimepicker,!0),this.options.datetimepicker=t.extend({},i.datetimepicker,e.datetimepicker,{format:this.options.viewformat}),this.options.datetimepicker.language=this.options.datetimepicker.language||"en",this.dpg=t.fn.datetimepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format,this.options.formatType),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat,this.options.formatType)},render:function(){this.$input.datetimepicker(this.options.datetimepicker),this.$input.on("changeMode",(function(e){var i=t(this).closest("form").parent();setTimeout((function(){i.triggerHandler("resize")}),0)})),this.options.clear&&(this.$clear=t('<a href="#"></a>').html(this.options.clear).click(t.proxy((function(t){t.preventDefault(),t.stopPropagation(),this.clear()}),this)),this.$tpl.parent().append(t('<div class="editable-clear">').append(this.$clear)))},value2html:function(t,i){var n=t?this.dpg.formatDate(this.toUTC(t),this.parsedViewFormat,this.options.datetimepicker.language,this.options.formatType):"";if(!i)return n;e.superclass.value2html.call(this,n,i)},html2value:function(t){var e=this.parseDate(t,this.parsedViewFormat);return e?this.fromUTC(e):null},value2str:function(t){return t?this.dpg.formatDate(this.toUTC(t),this.parsedFormat,this.options.datetimepicker.language,this.options.formatType):""},str2value:function(t){var e=this.parseDate(t,this.parsedFormat);return e?this.fromUTC(e):null},value2submit:function(t){return this.value2str(t)},value2input:function(t){t&&this.$input.data("datetimepicker").setDate(t)},input2value:function(){var t=this.$input.data("datetimepicker");return t.date?t.getDate():null},activate:function(){},clear:function(){this.$input.data("datetimepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".minute",(function(e){var i=t(this).closest("form");setTimeout((function(){i.submit()}),200)}))},toUTC:function(t){return t?new Date(t.valueOf()-6e4*t.getTimezoneOffset()):t},fromUTC:function(t){return t?new Date(t.valueOf()+6e4*t.getTimezoneOffset()):t},parseDate:function(t,e){var i=null;return t&&(i=this.dpg.parseDate(t,e,this.options.datetimepicker.language,this.options.formatType),"string"==typeof t&&t!==this.dpg.formatDate(i,e,this.options.datetimepicker.language,this.options.formatType)&&(i=null)),i}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd hh:ii",formatType:"standard",viewformat:null,datetimepicker:{todayHighlight:!1,autoclose:!1},clear:"&times; clear"}),t.fn.editabletypes.datetime=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datetimefield",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.datetime),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.datetimepicker(this.options.datetimepicker),this.$input.off("focus keydown"),this.$input.keyup(t.proxy((function(){this.$tpl.removeData("date"),this.$tpl.datetimepicker("update")}),this))},value2input:function(t){this.$input.val(this.value2html(t)),this.$tpl.datetimepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.datetime.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-medium",datetimepicker:{todayHighlight:!1,autoclose:!0}}),t.fn.editabletypes.datetimefield=e}(window.jQuery),
/*!
 * jQuery Validation Plugin 1.11.1
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright 2013 Jörn Zaefferer
 * Released under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 */
function(t){t.extend(t.fn,{validate:function(e){if(this.length){var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",(function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)})),this.submit((function(e){function n(){var n;return!i.settings.submitHandler||(i.submitButton&&(n=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&n.remove(),!1)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)}))),i)}e&&e.debug&&window.console},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each((function(){e=e&&i.element(this)})),e},removeAttrs:function(e){var i={},n=this;return t.each(e.split(/\s/),(function(t,e){i[e]=n.attr(e),n.removeAttr(e)})),i},rules:function(e,i){var n=this[0];if(e){var a=t.data(n.form,"validator").settings,s=a.rules,r=t.validator.staticRules(n);switch(e){case"add":t.extend(r,t.validator.normalizeRule(i)),delete r.messages,s[n.name]=r,i.messages&&(a.messages[n.name]=t.extend(a.messages[n.name],i.messages));break;case"remove":if(!i)return delete s[n.name],r;var o={};return t.each(i.split(/\s/),(function(t,e){o[e]=r[e],delete r[e]})),o}}var l=t.validator.normalizeRules(t.extend({},t.validator.classRules(n),t.validator.attributeRules(n),t.validator.dataRules(n),t.validator.staticRules(n)),n);if(l.required){var d=l.required;delete l.required,l=t.extend({required:d},l)}return l}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,(function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),(function(){return i}))})),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t,e){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t,e){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){9===e.which&&""===this.elementValue(t)||(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t,e){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(n):t(e).addClass(i).removeClass(n)},unhighlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(n):t(e).removeClass(i).addClass(n)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),pattern:"Invalid format"},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e=this.groups={};t.each(this.settings.groups,(function(i,n){"string"==typeof n&&(n=n.split(/\s/)),t.each(n,(function(t,n){e[n]=i}))}));var i=this.settings.rules;function n(e){var i=t.data(this[0].form,"validator"),n="on"+e.type.replace(/^validate/,"");i.settings[n]&&i.settings[n].call(i,this[0],e)}t.each(i,(function(e,n){i[e]=t.validator.normalizeRule(n)})),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",n).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",n),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=t(e);var i=!1!==this.check(e);return i?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){for(var i in t.extend(this.errorMap,e),this.errorList=[],e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,(function(t){return!(t.name in e)}))}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e=0;for(var i in t)e++;return e},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,(function(t){return t.element.name===e.name})).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter((function(){return!this.name&&e.settings.debug&&window.console,!(this.name in i||!e.objectLength(t(this).rules()))&&(i[this.name]=!0,!0)}))},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i=t(e).attr("type"),n=t(e).val();return"radio"===i||"checkbox"===i?t("input[name='"+t(e).attr("name")+"']:checked").val():"string"==typeof n?n.replace(/\r/g,""):n},check:function(e){e=this.validationTargetFor(this.clean(e));var i,n=t(e).rules(),a=!1,s=this.elementValue(e);for(var r in n){var o={method:r,parameters:n[r]};try{if("dependency-mismatch"===(i=t.validator.methods[r].call(this,s,e,o.parameters))){a=!0;continue}if(a=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,o),!1}catch(t){throw this.settings.debug&&window.console,t}}if(!a)return this.objectLength(n)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg-"+i.toLowerCase())||e.attributes&&t(e).attr("data-msg-"+i.toLowerCase())},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,i){var n=this.defaultMessage(e,i.method),a=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,i.parameters,e):a.test(n)&&(n=t.validator.format(n.replace(a,"{$1}"),i.parameters)),this.errorList.push({message:n,element:e}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e;for(t=0;this.errorList[t];t++){var i=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map((function(){return this.element}))},showLabel:function(e,i){var n=this.errorsFor(e);n.length?(n.removeClass(this.settings.validClass).addClass(this.settings.errorClass),n.html(i)):(n=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(n=n.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(n).length||(this.settings.errorPlacement?this.settings.errorPlacement(n,t(e)):n.insertAfter(e))),!i&&this.settings.success&&(n.text(""),"string"==typeof this.settings.success?n.addClass(this.settings.success):this.settings.success(n,e)),this.toShow=this.toShow.add(n)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter((function(){return t(this).attr("for")===i}))},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t,e){return t},string:function(e,i){return!!t(e,i.form).length},function:function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},n=t(e).attr("class");return n&&t.each(n.split(" "),(function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])})),i},attributeRules:function(e){var i={},n=t(e),a=n[0].getAttribute("type");for(var s in t.validator.methods){var r;"required"===s?(""===(r=n.get(0).getAttribute(s))&&(r=!0),r=!!r):r=n.attr(s),/min|max/.test(s)&&(null===a||/number|range|text/.test(a))&&(r=Number(r)),r?i[s]=r:a===s&&"range"!==a&&(i[s]=!0)}return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var i,n,a={},s=t(e);for(i in t.validator.methods)void 0!==(n=s.data("rule-"+i.toLowerCase()))&&(a[i]=n);return a},staticRules:function(e){var i={},n=t.data(e.form,"validator");return n.settings.rules&&(i=t.validator.normalizeRule(n.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,(function(n,a){if(!1!==a){if(a.param||a.depends){var s=!0;switch(typeof a.depends){case"string":s=!!t(a.depends,i.form).length;break;case"function":s=a.depends.call(i,i)}s?e[n]=void 0===a.param||a.param:delete e[n]}}else delete e[n]})),t.each(e,(function(n,a){e[n]=t.isFunction(a)?a(i):a})),t.each(["minlength","maxlength"],(function(){e[this]&&(e[this]=Number(e[this]))})),t.each(["rangelength","range"],(function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))})),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),(function(){i[this]=!0})),e=i}return e},addMethod:function(e,i,n){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==n?n:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,n){if(!this.depend(n,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var a=t(i).val();return a&&a.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;for(var i=0,n=0,a=!1,s=(t=t.replace(/\D/g,"")).length-1;s>=0;s--){var r=t.charAt(s);n=parseInt(r,10),a&&(n*=2)>9&&(n-=9),i+=n,a=!a}return i%10==0},minlength:function(e,i,n){var a=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||a>=n},maxlength:function(e,i,n){var a=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||a<=n},rangelength:function(e,i,n){var a=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||a>=n[0]&&a<=n[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},equalTo:function(e,i,n){var a=t(n);return this.settings.onfocusout&&a.unbind(".validate-equalTo").bind("blur.validate-equalTo",(function(){t(i).valid()})),e===a.val()},remote:function(e,i,n){if(this.optional(i))return"dependency-mismatch";var a=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),a.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=a.message,n="string"==typeof n&&{url:n}||n,a.old===e)return a.valid;a.old=e;var s=this;this.startRequest(i);var r={};return r[i.name]=e,t.ajax(t.extend(!0,{url:n,mode:"abort",port:"validate"+i.name,dataType:"json",data:r,success:function(n){s.settings.messages[i.name].remote=a.originalMessage;var r=!0===n||"true"===n;if(r){var o=s.formSubmitted;s.prepareElement(i),s.formSubmitted=o,s.successList.push(i),delete s.invalid[i.name],s.showErrors()}else{var l={},d=n||s.defaultMessage(i,"remote");l[i.name]=a.message=t.isFunction(d)?d(e):d,s.invalid[i.name]=!0,s.showErrors(l)}a.valid=r,s.stopRequest(i,r)}},n)),"pending"}}}),t.format=t.validator.format}(jQuery),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter((function(t,i,n){var a=t.port;"abort"===t.mode&&(e[a]&&e[a].abort(),e[a]=n)}));else{var i=t.ajax;t.ajax=function(n){var a=("mode"in n?n:t.ajaxSettings).mode,s=("port"in n?n:t.ajaxSettings).port;return"abort"===a?(e[s]&&e[s].abort(),e[s]=i.apply(this,arguments),e[s]):i.apply(this,arguments)}}}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,n){return this.bind(i,(function(i){var a=t(i.target);if(a.is(e))return n.apply(a,arguments)}))}})}(jQuery),
/*!
 * jQuery Validation Plugin 1.11.1
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright 2013 Jörn Zaefferer
 * Released under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 */
function(){function t(t){return t.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'"_+=\/\-]*/g,"")}jQuery.validator.addMethod("maxWords",(function(e,i,n){return this.optional(i)||t(e).match(/\b\w+\b/g).length<=n}),jQuery.validator.format("Please enter {0} words or less.")),jQuery.validator.addMethod("minWords",(function(e,i,n){return this.optional(i)||t(e).match(/\b\w+\b/g).length>=n}),jQuery.validator.format("Please enter at least {0} words.")),jQuery.validator.addMethod("rangeWords",(function(e,i,n){var a=t(e),s=/\b\w+\b/g;return this.optional(i)||a.match(s).length>=n[0]&&a.match(s).length<=n[1]}),jQuery.validator.format("Please enter between {0} and {1} words."))}(),jQuery.validator.addMethod("letterswithbasicpunc",(function(t,e){return this.optional(e)||/^[a-z\-.,()'"\s]+$/i.test(t)}),"Letters or punctuation only please"),jQuery.validator.addMethod("alphanumeric",(function(t,e){return this.optional(e)||/^\w+$/i.test(t)}),"Letters, numbers, and underscores only please"),jQuery.validator.addMethod("lettersonly",(function(t,e){return this.optional(e)||/^[a-z]+$/i.test(t)}),"Letters only please"),jQuery.validator.addMethod("nowhitespace",(function(t,e){return this.optional(e)||/^\S+$/i.test(t)}),"No white space please"),jQuery.validator.addMethod("ziprange",(function(t,e){return this.optional(e)||/^90[2-5]\d\{2\}-\d{4}$/.test(t)}),"Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx"),jQuery.validator.addMethod("zipcodeUS",(function(t,e){return this.optional(e)||/\d{5}-\d{4}$|^\d{5}$/.test(t)}),"The specified US ZIP Code is invalid"),jQuery.validator.addMethod("integer",(function(t,e){return this.optional(e)||/^-?\d+$/.test(t)}),"A positive or negative non-decimal number please"),jQuery.validator.addMethod("vinUS",(function(t){if(17!==t.length)return!1;var e,i,n,a,s,r,o=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],l=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],d=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],u=0;for(e=0;e<17;e++){if(a=d[e],n=t.slice(e,e+1),8===e&&(r=n),isNaN(n)){for(i=0;i<o.length;i++)if(n.toUpperCase()===o[i]){n=l[i],n*=a,isNaN(r)&&8===i&&(r=o[i]);break}}else n*=a;u+=n}return 10===(s=u%11)&&(s="X"),s===r}),"The specified vehicle identification number (VIN) is invalid."),jQuery.validator.addMethod("dateITA",(function(t,e){var i=!1;if(/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(t)){var n=t.split("/"),a=parseInt(n[0],10),s=parseInt(n[1],10),r=parseInt(n[2],10),o=new Date(r,s-1,a);i=o.getFullYear()===r&&o.getMonth()===s-1&&o.getDate()===a}else i=!1;return this.optional(e)||i}),"Please enter a correct date"),jQuery.validator.addMethod("iban",(function(t,e){if(this.optional(e))return!0;if(!/^([a-zA-Z0-9]{4} ){2,8}[a-zA-Z0-9]{1,4}|[a-zA-Z0-9]{12,34}$/.test(t))return!1;var i=t.replace(/ /g,"").toUpperCase(),n={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"}[i.substring(0,2)];if(void 0!==n&&!new RegExp("^[A-Z]{2}\\d{2}"+n+"$","").test(i))return!1;for(var a,s=i.substring(4,i.length)+i.substring(0,4),r="",o=!0,l=0;l<s.length;l++)"0"!==(a=s.charAt(l))&&(o=!1),o||(r+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(a));for(var d="",u=0;u<r.length;u++){d=(""+d+r.charAt(u))%97}return 1===d}),"Please specify a valid IBAN"),jQuery.validator.addMethod("dateNL",(function(t,e){return this.optional(e)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(t)}),"Please enter a correct date"),jQuery.validator.addMethod("phoneNL",(function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(t)}),"Please specify a valid phone number."),jQuery.validator.addMethod("mobileNL",(function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(t)}),"Please specify a valid mobile number"),jQuery.validator.addMethod("postalcodeNL",(function(t,e){return this.optional(e)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(t)}),"Please specify a valid postal code"),jQuery.validator.addMethod("bankaccountNL",(function(t,e){if(this.optional(e))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(t))return!1;for(var i=t.replace(/ /g,""),n=0,a=i.length,s=0;s<a;s++){n+=(a-s)*i.substring(s,s+1)}return n%11==0}),"Please specify a valid bank account number"),jQuery.validator.addMethod("giroaccountNL",(function(t,e){return this.optional(e)||/^[0-9]{1,7}$/.test(t)}),"Please specify a valid giro account number"),jQuery.validator.addMethod("bankorgiroaccountNL",(function(t,e){return this.optional(e)||$.validator.methods.bankaccountNL.call(this,t,e)||$.validator.methods.giroaccountNL.call(this,t,e)}),"Please specify a valid bank or giro account number"),jQuery.validator.addMethod("time",(function(t,e){return this.optional(e)||/^([01]\d|2[0-3])(:[0-5]\d){1,2}$/.test(t)}),"Please enter a valid time, between 00:00 and 23:59"),jQuery.validator.addMethod("time12h",(function(t,e){return this.optional(e)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(t)}),"Please enter a valid time in 12-hour am/pm format"),jQuery.validator.addMethod("phoneUS",(function(t,e){return t=t.replace(/\s+/g,""),this.optional(e)||t.length>9&&t.match(/^(\+?1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/)}),"Please specify a valid phone number"),jQuery.validator.addMethod("phoneUK",(function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)}),"Please specify a valid phone number"),jQuery.validator.addMethod("mobileUK",(function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[45789]\d{2}|624)\s?\d{3}\s?\d{3})$/)}),"Please specify a valid mobile number"),jQuery.validator.addMethod("phonesUK",(function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[45789]\d{8}|624\d{6})))$/)}),"Please specify a valid uk phone number"),jQuery.validator.addMethod("postcodeUK",(function(t,e){return this.optional(e)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(t)}),"Please specify a valid UK postcode"),jQuery.validator.addMethod("strippedminlength",(function(t,e,i){return jQuery(t).text().length>=i}),jQuery.validator.format("Please enter at least {0} characters")),jQuery.validator.addMethod("email2",(function(t,e,i){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(t)}),jQuery.validator.messages.email),jQuery.validator.addMethod("url2",(function(t,e,i){return this.optional(e)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)}),jQuery.validator.messages.url),jQuery.validator.addMethod("creditcardtypes",(function(t,e,i){if(/[^0-9\-]+/.test(t))return!1;t=t.replace(/\D/g,"");var n=0;return i.mastercard&&(n|=1),i.visa&&(n|=2),i.amex&&(n|=4),i.dinersclub&&(n|=8),i.enroute&&(n|=16),i.discover&&(n|=32),i.jcb&&(n|=64),i.unknown&&(n|=128),i.all&&(n=255),1&n&&/^(5[12345])/.test(t)||2&n&&/^(4)/.test(t)?16===t.length:4&n&&/^(3[47])/.test(t)?15===t.length:8&n&&/^(3(0[012345]|[68]))/.test(t)?14===t.length:16&n&&/^(2(014|149))/.test(t)?15===t.length:32&n&&/^(6011)/.test(t)||64&n&&/^(3)/.test(t)?16===t.length:64&n&&/^(2131|1800)/.test(t)?15===t.length:!!(128&n)}),"Please enter a valid credit card number."),jQuery.validator.addMethod("ipv4",(function(t,e,i){return this.optional(e)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(t)}),"Please enter a valid IP v4 address."),jQuery.validator.addMethod("ipv6",(function(t,e,i){return this.optional(e)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(t)}),"Please enter a valid IP v6 address."),jQuery.validator.addMethod("pattern",(function(t,e,i){return!!this.optional(e)||("string"==typeof i&&(i=new RegExp("^(?:"+i+")$")),i.test(t))}),$.validator.messages.pattern),jQuery.validator.addMethod("require_from_group",(function(t,e,i){var n=this,a=i[1],s=$(a,e.form).filter((function(){return n.elementValue(this)})).length>=i[0];if(!$(e).data("being_validated")){var r=$(a,e.form);r.data("being_validated",!0),r.valid(),$(e.form).valid(),r.data("being_validated",!1)}return s}),jQuery.format("Please fill at least {0} of these fields.")),jQuery.validator.addMethod("skip_or_fill_minimum",(function(t,e,i){var n=this,a=i[0],s=i[1],r=$(s,e.form).filter((function(){return n.elementValue(this)})).length,o=r>=a||0===r;if(!$(e).data("being_validated")){var l=$(s,e.form);l.data("being_validated",!0),l.valid(),l.data("being_validated",!1)}return o}),jQuery.format("Please either skip these fields or fill at least {0} of them.")),jQuery.validator.addMethod("accept",(function(t,e,i){var n,a="string"==typeof i?i.replace(/\s/g,"").replace(/,/g,"|"):"image/*",s=this.optional(e);if(s)return s;if("file"===$(e).attr("type")&&(a=a.replace(/\*/g,".*"),e.files&&e.files.length))for(n=0;n<e.files.length;n++)if(!e.files[n].type.match(new RegExp(".?("+a+")$","i")))return!1;return!0}),jQuery.format("Please enter a value with a valid mimetype.")),jQuery.validator.addMethod("extension",(function(t,e,i){return i="string"==typeof i?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(e)||t.match(new RegExp(".("+i+")$","i"))}),jQuery.format("Please enter a value with a valid extension.")),function($){$.fn.susedate=function(opts,args){var $this=$(this),curDate=new Date,dayjOb,monthjOb,yearjOb,format;function getValue(){return{day:dayjOb.val(),month:monthjOb.val(),year:yearjOb.val(),toString:function(){return dateToStr(this)}}}function dateToStr(t){return format||(format="dd/mm/yyyy"),format.replace("dd",t.day).replace("mm",t.month).replace("yyyy",t.year)}function setValue(t){if("current"==t)t=new Date;else{var e=t.split("/");t=new Date(e[0]+"/"+e[1]+"/"+e[2])}dayjOb.val(t.getDate()),monthjOb.val(t.getMonth()+1),yearjOb.val(t.getFullYear())}function setMonth(t){monthjOb.val(t)}function setYear(t){yearjOb.val(t)}function setDay(t){dayjOb.val(t)}function checkValue(){return!!(dayjOb&&monthjOb&&yearjOb)&&(0!=dayjOb.val()&&0!=monthjOb.val()&&0!=yearjOb.val())}if($this.find("select").each((function(){$(this).attr("id").indexOf("day")>=0&&(dayjOb=$(this)),$(this).attr("id").indexOf("month")>=0&&(monthjOb=$(this)),$(this).attr("id").indexOf("year")>=0&&(yearjOb=$(this))})),"string"==typeof opts)return!!(dayjOb&&monthjOb&&yearjOb)&&eval(opts)(args);var i18nLabel=$WS.t("Giorno")+" - "+$WS.t("Mese")+" - "+$WS.t("Anno");opts=$.extend({label:i18nLabel,format:"dd-mm-yyyy",fromDate:"1/1/1920",toDate:curDate,value:null},opts),format=opts.format;var fromDate=new Date(opts.fromDate),toDate=new Date(Date.parse(opts.toDate));opts.minYear=fromDate.getFullYear(),opts.minMonth=fromDate.getMonth()+1,opts.minDay=fromDate.getDate(),opts.maxYear=opts.toDate.getFullYear(),opts.maxMonth=toDate.getMonth()+1,opts.maxDay=toDate.getDate();var label={text:opts.label.split("-"),day:function(){return this.text[0]},month:function(){return this.text[1]},year:function(){return this.text[2]}};function genOptions(t,e,i,n){var a=t.val();t.html("");var s=$("<option/>",{value:0}).text(n);t.append(s);for(var r=e;r<=i;r++){var o=$("<option/>",{value:r}).text(r);t.append(o)}a>=e&&a<=i&&t.val(a)}function genDays(t,e,i){var n;switch(e=parseFloat(e),i=parseFloat(i),e){case 1:n=31;break;case 2:n=i%4==0&&(i%100!=0||i%400==0)?29:28;break;case 3:n=31;break;case 4:n=30;break;case 5:n=31;break;case 6:n=30;break;case 7:case 8:n=31;break;case 9:n=30;break;case 10:n=31;break;case 11:n=30;break;case 12:n=31;break;default:n=31}var a=label.day();0!=e||0!=i?opts.minMonth!=opts.maxMonth||opts.minYear!=opts.maxYear?!(opts.minMonth==opts.maxMonth&&opts.minYear!=opts.maxYear&&i!=opts.maxYear||e==opts.minMonth&&e!=opts.maxMonth)?e!=opts.maxMonth||opts.toDate==curDate?genOptions(t,1,n,label.day()):genOptions(t,1,opts.maxDay,a):genOptions(t,opts.minDay,n,a):genOptions(t,opts.minDay,opts.maxDay,a):genOptions(t,1,n,label.day())}function genMonths(t,e){e=e||null;var i=label.month();if(e){if(opts.minYear==opts.maxYear)return void genOptions(t,opts.minMoth,opts.maxMonth,i);if(e==opts.minYear)return void genOptions(t,opts.minMonth,12,i);if(e==opts.maxYear)return void genOptions(t,1,opts.maxMonth,i)}genOptions(t,1,12,i)}function genYears(t){genOptions(t,opts.minYear,opts.maxYear,label.year())}dayjOb=$("<select/>"),monthjOb=$("<select/>"),yearjOb=$("<select/>"),genDays(dayjOb,0,0),genMonths(monthjOb,0),genYears(yearjOb),$this.html(opts.format);var id=Math.round(1e5*Math.random()),dayHtml="<div class='col-xs-12 col-sm-4 select-container'><select id='"+id+"-day' class='form-control select2 input-lg' name='birthdayDay'>"+dayjOb.html()+"</select></div>",monthHtml="<div class='col-xs-12 col-sm-4 select-container'><select id='"+id+"-month' class='form-control select2 input-lg' name='birthdayMonth'>"+monthjOb.html()+"</select></div>",yearHtml="<div class='col-xs-12 col-sm-4 select-container'><select id='"+id+"-year' class='form-control select2 input-lg' name='birthdayYear'>"+yearjOb.html()+"</select></div>";return $this.html($this.html().replace("dd",dayHtml).replace("mm",monthHtml).replace("yyyy",yearHtml)),dayjOb=$this.find("#"+id+"-day"),monthjOb=$this.find("#"+id+"-month"),yearjOb=$this.find("#"+id+"-year"),$this.html($this.find(".select-container")),monthjOb.change((function(){genDays(dayjOb,$(this).val(),yearjOb.val())})),yearjOb.change((function(){genMonths(monthjOb,$(this).val()),genDays(dayjOb,monthjOb.val(),$(this).val())})),null!=opts.value&&("string"==typeof opts.value&&setValue(opts.value),"object"==typeof opts.value&&(setDay(opts.value.day),setMonth(opts.value.month),setYear(opts.value.year))),$(this)}}(jQuery),function(t){function e(){return new Date(Date.UTC.apply(Date,arguments))}var i=function(e,i){var n=this;this.element=t(e),this.container=i.container||"body",this.language=i.language||this.element.data("date-language")||"en",this.language=this.language in a?this.language:"en",this.isRTL=a[this.language].rtl||!1,this.formatType=i.formatType||this.element.data("format-type")||"standard",this.format=s.parseFormat(i.format||this.element.data("date-format")||a[this.language].format||s.getDefaultFormat(this.formatType,"input"),this.formatType),this.isInline=!1,this.isVisible=!1,this.isInput=this.element.is("input"),this.fontAwesome=i.fontAwesome||this.element.data("font-awesome")||!1,this.bootcssVer=i.bootcssVer||(this.isInput?this.element.is(".form-control")?3:2:this.bootcssVer=this.element.is(".input-group")?3:2),this.component=!!this.element.is(".date")&&(3==this.bootcssVer?this.element.find(".input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-calendar, .input-group-addon .glyphicon-calendar, .input-group-addon .fa-calendar, .input-group-addon .fa-clock-o").parent():this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar .fa-calendar .fa-clock-o").parent()),this.componentReset=!!this.element.is(".date")&&(3==this.bootcssVer?this.element.find(".input-group-addon .glyphicon-remove, .input-group-addon .fa-times").parent():this.element.find(".add-on .icon-remove, .add-on .fa-times").parent()),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.linkField=i.linkField||this.element.data("link-field")||!1,this.linkFormat=s.parseFormat(i.linkFormat||this.element.data("link-format")||s.getDefaultFormat(this.formatType,"link"),this.formatType),this.minuteStep=i.minuteStep||this.element.data("minute-step")||5,this.pickerPosition=i.pickerPosition||this.element.data("picker-position")||"bottom-right",this.showMeridian=i.showMeridian||this.element.data("show-meridian")||!1,this.initialDate=i.initialDate||new Date,this.zIndex=i.zIndex||this.element.data("z-index")||void 0,this.icons={leftArrow:this.fontAwesome?"fa-arrow-left":3===this.bootcssVer?"glyphicon-arrow-left":"icon-arrow-left",rightArrow:this.fontAwesome?"fa-arrow-right":3===this.bootcssVer?"glyphicon-arrow-right":"icon-arrow-right"},this.icontype=this.fontAwesome?"fa":"glyphicon",this._attachEvents(),this.formatViewType="datetime","formatViewType"in i?this.formatViewType=i.formatViewType:"formatViewType"in this.element.data()&&(this.formatViewType=this.element.data("formatViewType")),this.minView=0,"minView"in i?this.minView=i.minView:"minView"in this.element.data()&&(this.minView=this.element.data("min-view")),this.minView=s.convertViewMode(this.minView),this.maxView=s.modes.length-1,"maxView"in i?this.maxView=i.maxView:"maxView"in this.element.data()&&(this.maxView=this.element.data("max-view")),this.maxView=s.convertViewMode(this.maxView),this.wheelViewModeNavigation=!1,"wheelViewModeNavigation"in i?this.wheelViewModeNavigation=i.wheelViewModeNavigation:"wheelViewModeNavigation"in this.element.data()&&(this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")),this.wheelViewModeNavigationInverseDirection=!1,"wheelViewModeNavigationInverseDirection"in i?this.wheelViewModeNavigationInverseDirection=i.wheelViewModeNavigationInverseDirection:"wheelViewModeNavigationInverseDirection"in this.element.data()&&(this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")),this.wheelViewModeNavigationDelay=100,"wheelViewModeNavigationDelay"in i?this.wheelViewModeNavigationDelay=i.wheelViewModeNavigationDelay:"wheelViewModeNavigationDelay"in this.element.data()&&(this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")),this.startViewMode=2,"startView"in i?this.startViewMode=i.startView:"startView"in this.element.data()&&(this.startViewMode=this.element.data("start-view")),this.startViewMode=s.convertViewMode(this.startViewMode),this.viewMode=this.startViewMode,this.viewSelect=this.minView,"viewSelect"in i?this.viewSelect=i.viewSelect:"viewSelect"in this.element.data()&&(this.viewSelect=this.element.data("view-select")),this.viewSelect=s.convertViewMode(this.viewSelect),this.forceParse=!0,"forceParse"in i?this.forceParse=i.forceParse:"dateForceParse"in this.element.data()&&(this.forceParse=this.element.data("date-force-parse"));for(var r=3===this.bootcssVer?s.templateV3:s.template;-1!==r.indexOf("{iconType}");)r=r.replace("{iconType}",this.icontype);for(;-1!==r.indexOf("{leftArrow}");)r=r.replace("{leftArrow}",this.icons.leftArrow);for(;-1!==r.indexOf("{rightArrow}");)r=r.replace("{rightArrow}",this.icons.rightArrow);if(this.picker=t(r).appendTo(this.isInline?this.element:this.container).on({click:t.proxy(this.click,this),mousedown:t.proxy(this.mousedown,this)}),this.wheelViewModeNavigation&&t.fn.mousewheel&&this.picker.on({mousewheel:t.proxy(this.mousewheel,this)}),this.isInline?this.picker.addClass("datetimepicker-inline"):this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu"),this.isRTL){this.picker.addClass("datetimepicker-rtl");var o=3===this.bootcssVer?".prev span, .next span":".prev i, .next i";this.picker.find(o).toggleClass(this.icons.leftArrow+" "+this.icons.rightArrow)}t(document).on("mousedown",(function(e){0===t(e.target).closest(".datetimepicker").length&&n.hide()})),this.autoclose=!1,"autoclose"in i?this.autoclose=i.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose")),this.keyboardNavigation=!0,"keyboardNavigation"in i?this.keyboardNavigation=i.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation")),this.todayBtn=i.todayBtn||this.element.data("date-today-btn")||!1,this.todayHighlight=i.todayHighlight||this.element.data("date-today-highlight")||!1,this.weekStart=(i.weekStart||this.element.data("date-weekstart")||a[this.language].weekStart||0)%7,this.weekEnd=(this.weekStart+6)%7,this.startDate=-1/0,this.endDate=1/0,this.daysOfWeekDisabled=[],this.setStartDate(i.startDate||this.element.data("date-startdate")),this.setEndDate(i.endDate||this.element.data("date-enddate")),this.setDaysOfWeekDisabled(i.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled")),this.setMinutesDisabled(i.minutesDisabled||this.element.data("date-minute-disabled")),this.setHoursDisabled(i.hoursDisabled||this.element.data("date-hour-disabled")),this.fillDow(),this.fillMonths(),this.update(),this.showMode(),this.isInline&&this.show()};i.prototype={constructor:i,_events:[],_attachEvents:function(){this._detachEvents(),this.isInput?this._events=[[this.element,{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}]]:this.component&&this.hasInput?(this._events=[[this.element.find("input"),{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}],[this.component,{click:t.proxy(this.show,this)}]],this.componentReset&&this._events.push([this.componentReset,{click:t.proxy(this.reset,this)}])):this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:t.proxy(this.show,this)}]];for(var e,i,n=0;n<this._events.length;n++)e=this._events[n][0],i=this._events[n][1],e.on(i)},_detachEvents:function(){for(var t,e,i=0;i<this._events.length;i++)t=this._events[i][0],e=this._events[i][1],t.off(e);this._events=[]},show:function(e){this.picker.show(),this.height=this.component?this.component.outerHeight():this.element.outerHeight(),this.forceParse&&this.update(),this.place(),t(window).on("resize",t.proxy(this.place,this)),e&&(e.stopPropagation(),e.preventDefault()),this.isVisible=!0,this.element.trigger({type:"show",date:this.date})},hide:function(e){this.isVisible&&(this.isInline||(this.picker.hide(),t(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||t(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.isVisible=!1,this.element.trigger({type:"hide",date:this.date})))},remove:function(){this._detachEvents(),this.picker.remove(),delete this.picker,delete this.element.data().datetimepicker},getDate:function(){var t=this.getUTCDate();return new Date(t.getTime()+6e4*t.getTimezoneOffset())},getUTCDate:function(){return this.date},setDate:function(t){this.setUTCDate(new Date(t.getTime()-6e4*t.getTimezoneOffset()))},setUTCDate:function(t){t>=this.startDate&&t<=this.endDate?(this.date=t,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:t,startDate:this.startDate,endDate:this.endDate})},setFormat:function(t){var e;this.format=s.parseFormat(t,this.formatType),this.isInput?e=this.element:this.component&&(e=this.element.find("input")),e&&e.val()&&this.setValue()},setValue:function(){var e=this.getFormattedDate();this.isInput?this.element.val(e):(this.component&&this.element.find("input").val(e),this.element.data("date",e)),this.linkField&&t("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(t){return null==t&&(t=this.format),s.formatDate(this.date,t,this.language,this.formatType)},setStartDate:function(t){this.startDate=t||-1/0,this.startDate!==-1/0&&(this.startDate=s.parseDate(this.startDate,this.format,this.language,this.formatType)),this.update(),this.updateNavArrows()},setEndDate:function(t){this.endDate=t||1/0,this.endDate!==1/0&&(this.endDate=s.parseDate(this.endDate,this.format,this.language,this.formatType)),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(e){this.daysOfWeekDisabled=e||[],t.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)),this.daysOfWeekDisabled=t.map(this.daysOfWeekDisabled,(function(t){return parseInt(t,10)})),this.update(),this.updateNavArrows()},setMinutesDisabled:function(e){this.minutesDisabled=e||[],t.isArray(this.minutesDisabled)||(this.minutesDisabled=this.minutesDisabled.split(/,\s*/)),this.minutesDisabled=t.map(this.minutesDisabled,(function(t){return parseInt(t,10)})),this.update(),this.updateNavArrows()},setHoursDisabled:function(e){this.hoursDisabled=e||[],t.isArray(this.hoursDisabled)||(this.hoursDisabled=this.hoursDisabled.split(/,\s*/)),this.hoursDisabled=t.map(this.hoursDisabled,(function(t){return parseInt(t,10)})),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){if(!this.zIndex){var e=0;t("div").each((function(){var i=parseInt(t(this).css("zIndex"),10);i>e&&(e=i)})),this.zIndex=e+10}var i,n,a,s;s=this.container instanceof t?this.container.offset():t(this.container).offset(),this.component?(a=(i=this.component.offset()).left,"bottom-left"!=this.pickerPosition&&"top-left"!=this.pickerPosition||(a+=this.component.outerWidth()-this.picker.outerWidth())):a=(i=this.element.offset()).left,a+220>document.body.clientWidth&&(a=document.body.clientWidth-220),n="top-left"==this.pickerPosition||"top-right"==this.pickerPosition?i.top-this.picker.outerHeight():i.top+this.height,a-=s.left,"body"!=this.container&&(n+=document.body.scrollTop),this.picker.css({top:n,left:a,zIndex:this.zIndex})}},update:function(){var t,e=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(t=arguments[0],e=!0):("string"==typeof(t=(this.isInput?this.element.val():this.element.find("input").val())||this.element.data("date")||this.initialDate)||t instanceof String)&&(t=t.replace(/^\s+|\s+$/g,"")),t||(t=new Date,e=!1),this.date=s.parseDate(t,this.format,this.language,this.formatType),e&&this.setValue(),this.date<this.startDate?this.viewDate=new Date(this.startDate):this.date>this.endDate?this.viewDate=new Date(this.endDate):this.viewDate=new Date(this.date),this.fill()},fillDow:function(){for(var t=this.weekStart,e="<tr>";t<this.weekStart+7;)e+='<th class="dow">'+a[this.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datetimepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+a[this.language].monthsShort[e++]+"</span>";this.picker.find(".datetimepicker-months td").html(t)},fill:function(){if(null!=this.date&&null!=this.viewDate){var i=new Date(this.viewDate),n=i.getUTCFullYear(),r=i.getUTCMonth(),o=i.getUTCDate(),l=i.getUTCHours(),d=i.getUTCMinutes(),u=this.startDate!==-1/0?this.startDate.getUTCFullYear():-1/0,h=this.startDate!==-1/0?this.startDate.getUTCMonth()+1:-1/0,c=this.endDate!==1/0?this.endDate.getUTCFullYear():1/0,p=this.endDate!==1/0?this.endDate.getUTCMonth()+1:1/0,f=new e(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),m=new Date;if(this.picker.find(".datetimepicker-days thead th:eq(1)").text(a[this.language].months[r]+" "+n),"time"==this.formatViewType){var _=this.getFormattedDate();this.picker.find(".datetimepicker-hours thead th:eq(1)").text(_),this.picker.find(".datetimepicker-minutes thead th:eq(1)").text(_)}else this.picker.find(".datetimepicker-hours thead th:eq(1)").text(o+" "+a[this.language].months[r]+" "+n),this.picker.find(".datetimepicker-minutes thead th:eq(1)").text(o+" "+a[this.language].months[r]+" "+n);this.picker.find("tfoot th.today").text(a[this.language].today).toggle(!1!==this.todayBtn),this.updateNavArrows(),this.fillMonths();var g=e(n,r-1,28,0,0,0,0),v=s.getDaysInMonth(g.getUTCFullYear(),g.getUTCMonth());g.setUTCDate(v),g.setUTCDate(v-(g.getUTCDay()-this.weekStart+7)%7);var y=new Date(g);y.setUTCDate(y.getUTCDate()+42),y=y.valueOf();for(var M,b=[];g.valueOf()<y;)g.getUTCDay()==this.weekStart&&b.push("<tr>"),M="",g.getUTCFullYear()<n||g.getUTCFullYear()==n&&g.getUTCMonth()<r?M+=" old":(g.getUTCFullYear()>n||g.getUTCFullYear()==n&&g.getUTCMonth()>r)&&(M+=" new"),this.todayHighlight&&g.getUTCFullYear()==m.getFullYear()&&g.getUTCMonth()==m.getMonth()&&g.getUTCDate()==m.getDate()&&(M+=" today"),g.valueOf()==f&&(M+=" active"),(g.valueOf()+864e5<=this.startDate||g.valueOf()>this.endDate||-1!==t.inArray(g.getUTCDay(),this.daysOfWeekDisabled))&&(M+=" disabled"),b.push('<td class="day'+M+'">'+g.getUTCDate()+"</td>"),g.getUTCDay()==this.weekEnd&&b.push("</tr>"),g.setUTCDate(g.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(b.join("")),b=[];for(var w="",L="",k="",D=this.hoursDisabled||[],T=0;T<24;T++){if(-1===D.indexOf(T))M="",(x=e(n,r,o,T)).valueOf()+36e5<=this.startDate||x.valueOf()>this.endDate?M+=" disabled":l==T&&(M+=" active"),this.showMeridian&&2==a[this.language].meridiem.length?((L=T<12?a[this.language].meridiem[0]:a[this.language].meridiem[1])!=k&&(""!=k&&b.push("</fieldset>"),b.push('<fieldset class="hour"><legend>'+L.toUpperCase()+"</legend>")),k=L,w=T%12?T%12:12,b.push('<span class="hour'+M+" hour_"+(T<12?"am":"pm")+'">'+w+"</span>"),23==T&&b.push("</fieldset>")):(w=T+":00",b.push('<span class="hour'+M+'">'+w+"</span>"))}this.picker.find(".datetimepicker-hours td").html(b.join("")),b=[],w="",L="",k="";var Y=this.minutesDisabled||[];for(T=0;T<60;T+=this.minuteStep){var x;if(-1===Y.indexOf(T))M="",(x=e(n,r,o,l,T,0)).valueOf()<this.startDate||x.valueOf()>this.endDate?M+=" disabled":Math.floor(d/this.minuteStep)==Math.floor(T/this.minuteStep)&&(M+=" active"),this.showMeridian&&2==a[this.language].meridiem.length?((L=l<12?a[this.language].meridiem[0]:a[this.language].meridiem[1])!=k&&(""!=k&&b.push("</fieldset>"),b.push('<fieldset class="minute"><legend>'+L.toUpperCase()+"</legend>")),k=L,w=l%12?l%12:12,b.push('<span class="minute'+M+'">'+w+":"+(T<10?"0"+T:T)+"</span>"),59==T&&b.push("</fieldset>")):(w=T+":00",b.push('<span class="minute'+M+'">'+l+":"+(T<10?"0"+T:T)+"</span>"))}this.picker.find(".datetimepicker-minutes td").html(b.join(""));var S=this.date.getUTCFullYear(),C=this.picker.find(".datetimepicker-months").find("th:eq(1)").text(n).end().find("span").removeClass("active");S==n&&C.eq(this.date.getUTCMonth()+2).addClass("active"),(n<u||n>c)&&C.addClass("disabled"),n==u&&C.slice(0,h+1).addClass("disabled"),n==c&&C.slice(p).addClass("disabled"),b="",n=10*parseInt(n/10,10);var F=this.picker.find(".datetimepicker-years").find("th:eq(1)").text(n+"-"+(n+9)).end().find("td");n-=1;for(T=-1;T<11;T++)b+='<span class="year'+(-1==T||10==T?" old":"")+(S==n?" active":"")+(n<u||n>c?" disabled":"")+'">'+n+"</span>",n+=1;F.html(b),this.place()}},updateNavArrows:function(){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth(),n=t.getUTCDate(),a=t.getUTCHours();switch(this.viewMode){case 0:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&n<=this.startDate.getUTCDate()&&a<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&n>=this.endDate.getUTCDate()&&a>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&n<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&n>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(e){if(e.preventDefault(),e.stopPropagation(),!this.wheelPause){this.wheelPause=!0;var i=e.originalEvent.wheelDelta,n=i>0?1:0===i?0:-1;this.wheelViewModeNavigationInverseDirection&&(n=-n),this.showMode(n),setTimeout(t.proxy((function(){this.wheelPause=!1}),this),this.wheelViewModeNavigationDelay)}},click:function(i){i.stopPropagation(),i.preventDefault();var n=t(i.target).closest("span, td, th, legend");if(n.is("."+this.icontype)&&(n=t(n).parent().closest("span, td, th, legend")),1==n.length){if(n.is(".disabled"))return void this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});switch(n[0].nodeName.toLowerCase()){case"th":switch(n[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var a=s.modes[this.viewMode].navStep*("prev"==n[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,a);break;case 1:this.viewDate=this.moveDate(this.viewDate,a);break;case 2:this.viewDate=this.moveMonth(this.viewDate,a);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,a)}this.fill(),this.element.trigger({type:n[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"today":var r=new Date;(r=e(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),0))<this.startDate?r=this.startDate:r>this.endDate&&(r=this.endDate),this.viewMode=this.startViewMode,this.showMode(0),this._setDate(r),this.fill(),this.autoclose&&this.hide()}break;case"span":if(!n.is(".disabled")){var o=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),d=this.viewDate.getUTCDate(),u=this.viewDate.getUTCHours(),h=this.viewDate.getUTCMinutes(),c=this.viewDate.getUTCSeconds();if(n.is(".month")?(this.viewDate.setUTCDate(1),l=n.parent().find("span").index(n),d=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(l),this.element.trigger({type:"changeMonth",date:this.viewDate}),this.viewSelect>=3&&this._setDate(e(o,l,d,u,h,c,0))):n.is(".year")?(this.viewDate.setUTCDate(1),o=parseInt(n.text(),10)||0,this.viewDate.setUTCFullYear(o),this.element.trigger({type:"changeYear",date:this.viewDate}),this.viewSelect>=4&&this._setDate(e(o,l,d,u,h,c,0))):n.is(".hour")?(u=parseInt(n.text(),10)||0,(n.hasClass("hour_am")||n.hasClass("hour_pm"))&&(12==u&&n.hasClass("hour_am")?u=0:12!=u&&n.hasClass("hour_pm")&&(u+=12)),this.viewDate.setUTCHours(u),this.element.trigger({type:"changeHour",date:this.viewDate}),this.viewSelect>=1&&this._setDate(e(o,l,d,u,h,c,0))):n.is(".minute")&&(h=parseInt(n.text().substr(n.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(h),this.element.trigger({type:"changeMinute",date:this.viewDate}),this.viewSelect>=0&&this._setDate(e(o,l,d,u,h,c,0))),0!=this.viewMode){var p=this.viewMode;this.showMode(-1),this.fill(),p==this.viewMode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide()}break;case"td":if(n.is(".day")&&!n.is(".disabled")){d=parseInt(n.text(),10)||1,o=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),u=this.viewDate.getUTCHours(),h=this.viewDate.getUTCMinutes(),c=this.viewDate.getUTCSeconds();n.is(".old")?0===l?(l=11,o-=1):l-=1:n.is(".new")&&(11==l?(l=0,o+=1):l+=1),this.viewDate.setUTCFullYear(o),this.viewDate.setUTCMonth(l,d),this.element.trigger({type:"changeDay",date:this.viewDate}),this.viewSelect>=2&&this._setDate(e(o,l,d,u,h,c,0))}p=this.viewMode;this.showMode(-1),this.fill(),p==this.viewMode&&this.autoclose&&this.hide()}}},_setDate:function(t,e){var i;e&&"date"!=e||(this.date=t),e&&"view"!=e||(this.viewDate=t),this.fill(),this.setValue(),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&(i.change(),this.autoclose),this.element.trigger({type:"changeDate",date:this.date})},moveMinute:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCMinutes(i.getUTCMinutes()+e*this.minuteStep),i},moveHour:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCHours(i.getUTCHours()+e),i},moveDate:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCDate(i.getUTCDate()+e),i},moveMonth:function(t,e){if(!e)return t;var i,n,a=new Date(t.valueOf()),s=a.getUTCDate(),r=a.getUTCMonth(),o=Math.abs(e);if(e=e>0?1:-1,1==o)n=-1==e?function(){return a.getUTCMonth()==r}:function(){return a.getUTCMonth()!=i},i=r+e,a.setUTCMonth(i),(i<0||i>11)&&(i=(i+12)%12);else{for(var l=0;l<o;l++)a=this.moveMonth(a,e);i=a.getUTCMonth(),a.setUTCDate(s),n=function(){return i!=a.getUTCMonth()}}for(;n();)a.setUTCDate(--s),a.setUTCMonth(i);return a},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.startDate&&t<=this.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))27==t.keyCode&&this.show();else{var e,i,n,a,s=!1;switch(t.keyCode){case 27:this.hide(),t.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;e=37==t.keyCode?-1:1,viewMode=this.viewMode,t.ctrlKey?viewMode+=2:t.shiftKey&&(viewMode+=1),4==viewMode?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):3==viewMode?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):2==viewMode?(i=this.moveDate(this.date,e),n=this.moveDate(this.viewDate,e)):1==viewMode?(i=this.moveHour(this.date,e),n=this.moveHour(this.viewDate,e)):0==viewMode&&(i=this.moveMinute(this.date,e),n=this.moveMinute(this.viewDate,e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),s=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;e=38==t.keyCode?-1:1,viewMode=this.viewMode,t.ctrlKey?viewMode+=2:t.shiftKey&&(viewMode+=1),4==viewMode?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):3==viewMode?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):2==viewMode?(i=this.moveDate(this.date,7*e),n=this.moveDate(this.viewDate,7*e)):1==viewMode?this.showMeridian?(i=this.moveHour(this.date,6*e),n=this.moveHour(this.viewDate,6*e)):(i=this.moveHour(this.date,4*e),n=this.moveHour(this.viewDate,4*e)):0==viewMode&&(i=this.moveMinute(this.date,4*e),n=this.moveMinute(this.viewDate,4*e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),s=!0);break;case 13:if(0!=this.viewMode){var r=this.viewMode;this.showMode(-1),this.fill(),r==this.viewMode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide();t.preventDefault();break;case 9:this.hide()}if(s)this.isInput?a=this.element:this.component&&(a=this.element.find("input")),a&&a.change(),this.element.trigger({type:"changeDate",date:this.date})}},showMode:function(t){if(t){var e=Math.max(0,Math.min(s.modes.length-1,this.viewMode+t));e>=this.minView&&e<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:e}),this.viewMode=e)}this.picker.find(">div").hide().filter(".datetimepicker-"+s.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()},reset:function(t){this._setDate(null,"date")},convertViewModeText:function(t){switch(t){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var n=t.fn.datetimepicker;t.fn.datetimepicker=function(e){var n,a=Array.apply(null,arguments);return a.shift(),this.each((function(){var s=t(this),r=s.data("datetimepicker"),o="object"==typeof e&&e;if(r||s.data("datetimepicker",r=new i(this,t.extend({},t.fn.datetimepicker.defaults,o))),"string"==typeof e&&"function"==typeof r[e]&&void 0!==(n=r[e].apply(r,a)))return!1})),void 0!==n?n:this},t.fn.datetimepicker.defaults={},t.fn.datetimepicker.Constructor=i;var a=t.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today"},it:{days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Go","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Oggi"}},s={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,s.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},getDefaultFormat:function(t,e){if("standard"==t)return"input"==e?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if("php"==t)return"input"==e?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.")},validParts:function(t){if("standard"==t)return/hh?|HH?|p|P|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if("php"==t)return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.")},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(t,e){var i=t.replace(this.validParts(e),"\0").split("\0"),n=t.match(this.validParts(e));if(!i||!i.length||!n||0==n.length)throw new Error("Invalid date format.");return{separators:i,parts:n}},parseDate:function(n,s,r,o){if(n instanceof Date){var l=new Date(n.valueOf()-6e4*n.getTimezoneOffset());return l.setMilliseconds(0),l}if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(n)&&(s=this.parseFormat("yyyy-mm-dd",o)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(n)&&(s=this.parseFormat("yyyy-mm-dd hh:ii",o)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(n)&&(s=this.parseFormat("yyyy-mm-dd hh:ii:ss",o)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(n)){var d,u=/([-+]\d+)([dmwy])/,h=n.match(/([-+]\d+)([dmwy])/g);n=new Date;for(var c=0;c<h.length;c++)switch(m=u.exec(h[c]),d=parseInt(m[1]),m[2]){case"d":n.setUTCDate(n.getUTCDate()+d);break;case"m":n=i.prototype.moveMonth.call(i.prototype,n,d);break;case"w":n.setUTCDate(n.getUTCDate()+7*d);break;case"y":n=i.prototype.moveYear.call(i.prototype,n,d)}return e(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),0)}h=n&&n.toString().match(this.nonpunctuation)||[],n=new Date(0,0,0,0,0,0,0);var p,f,m,_={},g=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P"],v={hh:function(t,e){return t.setUTCHours(e)},h:function(t,e){return t.setUTCHours(e)},HH:function(t,e){return t.setUTCHours(12==e?0:e)},H:function(t,e){return t.setUTCHours(12==e?0:e)},ii:function(t,e){return t.setUTCMinutes(e)},i:function(t,e){return t.setUTCMinutes(e)},ss:function(t,e){return t.setUTCSeconds(e)},s:function(t,e){return t.setUTCSeconds(e)},yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!=e;){if(isNaN(t.getUTCMonth()))return t;t.setUTCDate(t.getUTCDate()-1)}return t},d:function(t,e){return t.setUTCDate(e)},p:function(t,e){return t.setUTCHours(1==e?t.getUTCHours()+12:t.getUTCHours())}};if(v.M=v.MM=v.mm=v.m,v.dd=v.d,v.P=v.p,n=e(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds()),h.length==s.parts.length){c=0;for(var y=s.parts.length;c<y;c++){if(p=parseInt(h[c],10),m=s.parts[c],isNaN(p))switch(m){case"MM":f=t(a[r].months).filter((function(){var t=this.slice(0,h[c].length);return t==h[c].slice(0,t.length)})),p=t.inArray(f[0],a[r].months)+1;break;case"M":f=t(a[r].monthsShort).filter((function(){var t=this.slice(0,h[c].length),e=h[c].slice(0,t.length);return t.toLowerCase()==e.toLowerCase()})),p=t.inArray(f[0],a[r].monthsShort)+1;break;case"p":case"P":p=t.inArray(h[c].toLowerCase(),a[r].meridiem)}_[m]=p}var M;for(c=0;c<g.length;c++)(M=g[c])in _&&!isNaN(_[M])&&v[M](n,_[M])}return n},formatDate:function(e,i,n,r){if(null==e)return"";var o;if("standard"==r)o={yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear(),m:e.getUTCMonth()+1,M:a[n].monthsShort[e.getUTCMonth()],MM:a[n].months[e.getUTCMonth()],d:e.getUTCDate(),D:a[n].daysShort[e.getUTCDay()],DD:a[n].days[e.getUTCDay()],p:2==a[n].meridiem.length?a[n].meridiem[e.getUTCHours()<12?0:1]:"",h:e.getUTCHours(),i:e.getUTCMinutes(),s:e.getUTCSeconds()},2==a[n].meridiem.length?o.H=o.h%12==0?12:o.h%12:o.H=o.h,o.HH=(o.H<10?"0":"")+o.H,o.P=o.p.toUpperCase(),o.hh=(o.h<10?"0":"")+o.h,o.ii=(o.i<10?"0":"")+o.i,o.ss=(o.s<10?"0":"")+o.s,o.dd=(o.d<10?"0":"")+o.d,o.mm=(o.m<10?"0":"")+o.m;else{if("php"!=r)throw new Error("Invalid format type.");(o={y:e.getUTCFullYear().toString().substring(2),Y:e.getUTCFullYear(),F:a[n].months[e.getUTCMonth()],M:a[n].monthsShort[e.getUTCMonth()],n:e.getUTCMonth()+1,t:s.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),j:e.getUTCDate(),l:a[n].days[e.getUTCDay()],D:a[n].daysShort[e.getUTCDay()],w:e.getUTCDay(),N:0==e.getUTCDay()?7:e.getUTCDay(),S:e.getUTCDate()%10<=a[n].suffix.length?a[n].suffix[e.getUTCDate()%10-1]:"",a:2==a[n].meridiem.length?a[n].meridiem[e.getUTCHours()<12?0:1]:"",g:e.getUTCHours()%12==0?12:e.getUTCHours()%12,G:e.getUTCHours(),i:e.getUTCMinutes(),s:e.getUTCSeconds()}).m=(o.n<10?"0":"")+o.n,o.d=(o.j<10?"0":"")+o.j,o.A=o.a.toString().toUpperCase(),o.h=(o.g<10?"0":"")+o.g,o.H=(o.G<10?"0":"")+o.G,o.i=(o.i<10?"0":"")+o.i,o.s=(o.s<10?"0":"")+o.s}e=[];for(var l=t.extend([],i.separators),d=0,u=i.parts.length;d<u;d++)l.length&&e.push(l.shift()),e.push(o[i.parts[d]]);return l.length&&e.push(l.shift()),e.join("")},convertViewMode:function(t){switch(t){case 4:case"decade":t=4;break;case 3:case"year":t=3;break;case 2:case"month":t=2;break;case 1:case"day":t=1;break;case 0:case"hour":t=0}return t},headTemplate:'<thead><tr><th class="prev"><i class="{leftArrow}"/></th><th colspan="5" class="switch"></th><th class="next"><i class="{rightArrow}"/></th></tr></thead>',headTemplateV3:'<thead><tr><th class="prev"><span class="{iconType} {leftArrow}"></span> </th><th colspan="5" class="switch"></th><th class="next"><span class="{iconType} {rightArrow}"></span> </th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr></tfoot>'};s.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+s.headTemplate+s.contTemplate+s.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+s.headTemplate+s.contTemplate+s.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+s.headTemplate+"<tbody></tbody>"+s.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+s.headTemplate+s.contTemplate+s.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+s.headTemplate+s.contTemplate+s.footTemplate+"</table></div></div>",s.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+s.headTemplateV3+s.contTemplate+s.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+s.headTemplateV3+s.contTemplate+s.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+s.headTemplateV3+"<tbody></tbody>"+s.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+s.headTemplateV3+s.contTemplate+s.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+s.headTemplateV3+s.contTemplate+s.footTemplate+"</table></div></div>",t.fn.datetimepicker.DPGlobal=s,t.fn.datetimepicker.noConflict=function(){return t.fn.datetimepicker=n,this},t(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',(function(e){var i=t(this);i.data("datetimepicker")||(e.preventDefault(),i.datetimepicker("show"))})),t((function(){t('[data-provide="datetimepicker-inline"]').datetimepicker()}))}(window.jQuery),$WS.sound_path="/templates/wsmanager/sound/",$WS(document).ready((function(){$WS("body").append("<div id='divSmallBoxes'></div>"),$WS("body").append("<div id='divMiniIcons'></div><div id='divbigBoxes'></div>")}));var ExistMsg=0,SmartMSGboxCount=0,PrevTop=0;jQuery,$WS.SmartMessageBox=function(t,e){var i;if(t=$WS.extend({title:"",content:"",NormalButton:void 0,ActiveButton:void 0,buttons:void 0,input:void 0,inputValue:void 0,placeholder:"",options:void 0},t),0==isIE8orlower()){var n=document.createElement("audio");n.setAttribute("src",$WS.sound_path+"messagebox.mp3"),n.addEventListener("load",(function(){n.play()}),!0),n.pause(),n.play()}SmartMSGboxCount+=1,0==ExistMsg&&(ExistMsg=1,$WS("body").append("<div class='divMessageBox animated fadeIn fast' id='MsgBoxBack'></div>"),1==isIE8orlower()&&$WS("#MsgBoxBack").addClass("MessageIE"));var a="",s=0;if(null!=t.input)switch(s=1,t.input=t.input.toLowerCase(),t.input){case"text":t.inputValue="string"===$WS.type(t.inputValue)?t.inputValue.replace(/'/g,"&#x27;"):t.inputValue,a="<input class='form-control' type='"+t.input+"' id='txt"+SmartMSGboxCount+"' placeholder='"+t.placeholder+"' value='"+t.inputValue+"'/><br/><br/>";break;case"password":a="<input class='form-control' type='"+t.input+"' id='txt"+SmartMSGboxCount+"' placeholder='"+t.placeholder+"'/><br/><br/>";break;case"select":if(null==t.options)alert("For this type of input, the options parameter is required.");else{a="<select class='form-control' id='txt"+SmartMSGboxCount+"'>";for(var r=0;r<=t.options.length-1;r++)"["==t.options[r]?o="":"]"==t.options[r]?(l+=1,a+=o="<option>"+o+"</option>"):o+=t.options[r];a+="</select>"}break;default:alert("That type of input is not handled yet")}i="<div class='MessageBoxContainer animated fadeIn fast' id='Msg"+SmartMSGboxCount+"'>",i+="<div class='MessageBoxMiddle'>",i+="<span class='MsgTitle'>"+t.title+"</span class='MsgTitle'>",i+="<p class='pText'>"+t.content+"</p>",i+=a,i+="<div class='MessageBoxButtonSection'>";var o="",l=0;for(null==t.NormalButton&&(t.NormalButton="#232323"),null==t.ActiveButton&&(t.ActiveButton="#ed145b"),r=0;r<=t.buttons.length-1;r++){l+=1;var d=t.buttons[r],u=null,h="btn btn-default btn-sm botTempo";d&&(u=d.tagId?d.tagId:"bot"+l+"-Msg",d.tagClass&&(h+=" "+d.tagClass)),i+=o="<button id='"+u+"' class='"+h+"'> "+d.text+"</button>"}i+="</div>",i+="</div>",i+="</div>",SmartMSGboxCount>1&&($WS(".MessageBoxContainer").hide(),$WS(".MessageBoxContainer").css("z-index",99999)),$WS(".divMessageBox").append(i),1==s&&$WS("#txt"+SmartMSGboxCount).focus(),$WS(".botTempo").hover((function(){$WS(this).attr("id")}),(function(){$WS(this).attr("id")})),$WS(".botTempo").click((function(t){var i=$WS(this).attr("id"),n=i.substr(i.indexOf("-")+1),a=$WS.trim($WS(this).text());if(1==s){if("function"==typeof e){var r=n.replace("Msg",""),o=$WS("#txt"+r).val();e&&e(a,o,t)}}else"function"==typeof e&&e&&e(a,t);$WS("#"+n).addClass("animated fadeOut fast"),0==(SmartMSGboxCount-=1)&&$WS("#MsgBoxBack").removeClass("fadeIn").addClass("fadeOut").delay(300).queue((function(){ExistMsg=0,$WS(this).remove()}))}))};var BigBoxes=0;jQuery,$WS.bigBox=function(t,e){var i;if(!0===(t=$WS.extend({title:"",content:"",icon:void 0,number:void 0,color:void 0,sound:!0,timeout:void 0,colortime:1500,colors:void 0},t)).sound&&0==isIE8orlower()){var n=document.createElement("audio");navigator.userAgent.match("Firefox/")?n.setAttribute("src",$WS.sound_path+"bigbox.ogg"):n.setAttribute("src",$WS.sound_path+"bigbox.mp3"),n.addEventListener("load",(function(){n.play()}),!0),n.pause(),n.play()}i="<div id='bigBox"+(BigBoxes+=1)+"' class='bigBox animated fadeIn fast'><div id='bigBoxColor"+BigBoxes+"'><i class='botClose fa fa-times' id='botClose"+BigBoxes+"'></i>",i+="<span>"+t.title+"</span>",i+="<p>"+t.content+"</p>",i+="<div class='bigboxicon'>",null==t.icon&&(t.icon="fa fa-cloud"),i+="<i class='"+t.icon+"'></i>",i+="</div>",i+="<div class='bigboxnumber'>",null!=t.number&&(i+=t.number),i+="</div></div>",i+="</div>",$WS("#divbigBoxes").append(i),null==t.color&&(t.color="#004d60"),$WS("#bigBox"+BigBoxes).css("background-color",t.color),$WS("#divMiniIcons").append("<div id='miniIcon"+BigBoxes+"' class='cajita animated fadeIn' style='background-color: "+t.color+";'><i class='"+t.icon+"'/></i></div>"),$WS("#miniIcon"+BigBoxes).bind("click",(function(){var t=$WS(this).attr("id"),e=t.replace("miniIcon","bigBox"),i=t.replace("miniIcon","bigBoxColor");$WS(".cajita").each((function(t){var e=$WS(this).attr("id").replace("miniIcon","bigBox");$WS("#"+e).css("z-index",9998)})),$WS("#"+e).css("z-index",9999),$WS("#"+i).removeClass("animated fadeIn").delay(1).queue((function(){$WS(this).show(),$WS(this).addClass("animated fadeIn"),$WS(this).clearQueue()}))}));var a,s=$WS("#botClose"+BigBoxes),r=$WS("#bigBox"+BigBoxes),o=$WS("#miniIcon"+BigBoxes);if(null!=t.colors&&t.colors.length>0&&(s.attr("colorcount","0"),a=setInterval((function(){var e=s.attr("colorcount");s.animate({backgroundColor:t.colors[e].color}),r.animate({backgroundColor:t.colors[e].color}),o.animate({backgroundColor:t.colors[e].color}),e<t.colors.length-1?s.attr("colorcount",1*e+1):s.attr("colorcount",0)}),t.colortime)),s.bind("click",(function(){clearInterval(a),"function"==typeof e&&e&&e();var t=$WS(this).attr("id"),i=t.replace("botClose","bigBox"),n=t.replace("botClose","miniIcon");$WS("#"+i).removeClass("fadeIn fast"),$WS("#"+i).addClass("fadeOut fast").delay(300).queue((function(){$WS(this).clearQueue(),$WS(this).remove()})),$WS("#"+n).removeClass("fadeIn fast"),$WS("#"+n).addClass("fadeOut fast").delay(300).queue((function(){$WS(this).clearQueue(),$WS(this).remove()}))})),null!=t.timeout){var l=BigBoxes;setTimeout((function(){clearInterval(a),$WS("#bigBox"+l).removeClass("fadeIn fast"),$WS("#bigBox"+l).addClass("fadeOut fast").delay(300).queue((function(){$WS(this).clearQueue(),$WS(this).remove()})),$WS("#miniIcon"+l).removeClass("fadeIn fast"),$WS("#miniIcon"+l).addClass("fadeOut fast").delay(300).queue((function(){$WS(this).clearQueue(),$WS(this).remove()}))}),t.timeout)}};var SmallBoxes=0,SmallCount=0,SmallBoxesAnchos=0;function getInternetExplorerVersion(){var t=-1;if("Microsoft Internet Explorer"==navigator.appName){var e=navigator.userAgent;null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))}return t}function checkVersion(){var t="You're not using Windows Internet Explorer.",e=getInternetExplorerVersion();e>-1&&(t=e>=8?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer."),alert(t)}function isIE8orlower(){var t="0",e=getInternetExplorerVersion();return e>-1&&(t=e>=9?0:1),t}jQuery,$WS.smallBox=function(t,e){var i;if(!0===(t=$WS.extend({title:"",content:"",icon:void 0,iconSmall:void 0,sound:!0,color:void 0,timeout:void 0,colortime:1500,colors:void 0,eventClose:void 0,showButtonDoIt:!1,showButtonDismiss:!1,buttonDoItText:"",buttonDismissText:$WS.t("Annulla"),buttonDoItFunction:void 0,buttonDismissFunction:void 0},t)).sound&&0==isIE8orlower()){var n=document.createElement("audio");navigator.userAgent.match("Firefox/")?n.setAttribute("src",$WS.sound_path+"smallbox.ogg"):n.setAttribute("src",$WS.sound_path+"smallbox.mp3"),n.addEventListener("load",(function(){n.play()}),!0),n.pause(),n.play()}i="";var a="",s="smallbox"+(SmallBoxes+=1);a=null==t.iconSmall?"<div class='miniIcono'></div>":"<div class='miniIcono'><i class='miniPic "+t.iconSmall+"'></i></div>";var r="";t.showButtonDoIt||t.showButtonDismiss?(r+="<div class='buttonSection pull-right padding-sm'>",t.showButtonDismiss&&(r+="<a class='btn btn-default rounded no-border' id='btnNotificationDismiss"+SmallBoxes+"'>"+t.buttonDismissText+"</a>"),t.showButtonDoIt&&(r+="<a class='btn btn-success rounded no-border' id='btnNotificationDoIt"+SmallBoxes+"'>"+t.buttonDoItText+"</a>"),r+="</div>"):r="<div class='buttonSection'></div>",i=null==t.icon?"<div id='smallbox"+SmallBoxes+"' class='SmallBox animated fadeInRight fast'><div class='textoFull'><span>"+t.title+"</span><p>"+t.content+"</p></div>"+a+r+"</div>":"<div id='smallbox"+SmallBoxes+"' class='SmallBox animated fadeInRight fast'><div class='foto'><i class='"+t.icon+"'></i></div><div class='textoFoto'><span>"+t.title+"</span><p>"+t.content+"</p></div>"+a+r+"</div>",1==SmallBoxes||0==$WS(".SmallBox").size()?($WS("#divSmallBoxes").append(i),SmallBoxesAnchos=$WS("#smallbox"+SmallBoxes).height()+40):($WS("#divSmallBoxes").append(i),$WS("#smallbox"+SmallBoxes).css("top",SmallBoxesAnchos),SmallBoxesAnchos=SmallBoxesAnchos+$WS("#smallbox"+SmallBoxes).height()+20,$WS(".SmallBox").each((function(t){0==t?($WS(this).css("top",20),heightPrev=$WS(this).height()+40,SmallBoxesAnchos=$WS(this).height()+40):($WS(this).css("top",heightPrev),heightPrev=heightPrev+$WS(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$WS(this).height()+20)})));var o,l=$WS("#smallbox"+SmallBoxes);null==t.color?l.css("background-color","#004d60"):l.css("background-color",t.color),null!=t.colors&&t.colors.length>0&&(l.attr("colorcount","0"),o=setInterval((function(){var e=l.attr("colorcount");l.animate({backgroundColor:t.colors[e].color}),e<t.colors.length-1?l.attr("colorcount",1*e+1):l.attr("colorcount",0)}),t.colortime)),null!=t.timeout&&setTimeout((function(){clearInterval(o);var t=$WS(this).height()+20;$WS("#"+s).css("top"),0!=$WS("#"+s+":hover").length?$WS("#"+s).on("mouseleave",(function(){SmallBoxesAnchos-=t,$WS("#"+s).remove(),"function"==typeof e&&e&&e();var i=0;$WS(".SmallBox").each((function(t){0==t?($WS(this).animate({top:20},300),i=$WS(this).height()+40,SmallBoxesAnchos=$WS(this).height()+40):($WS(this).animate({top:i},350),i=i+$WS(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$WS(this).height()+20)}))})):(clearInterval(o),SmallBoxesAnchos-=t,"function"==typeof e&&e&&e(),$WS("#"+s).removeClass().addClass("SmallBox").animate({opacity:0},300,(function(){$WS(this).remove();var t=0;$WS(".SmallBox").each((function(e){0==e?($WS(this).animate({top:20},300),t=$WS(this).height()+40,SmallBoxesAnchos=$WS(this).height()+40):($WS(this).animate({top:t}),t=t+$WS(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$WS(this).height()+20)}))})))}),t.timeout),t.showButton&&(null!=t.buttonDoItFunction&&$WS("#btnNotificationDoIt"+SmallBoxes).on("click",$WS.proxy((function(e){e.preventDefault(),t.buttonDoItFunction()}),this)),null!=t.buttonDismissFunction?$WS("#btnNotificationDismiss"+SmallBoxes).on("click",$WS.proxy((function(e){e.preventDefault(),t.buttonDismissFunction()}),this)):$WS("#btnNotificationDismiss"+SmallBoxes).on("click",$WS.proxy((function(t){t.preventDefault(),$WS("#"+s).trigger("click")}),this))),$WS("#smallbox"+SmallBoxes).bind("click",(function(){clearInterval(o),"function"==typeof e&&e&&e();var t=$WS(this).height()+20;$WS(this).attr("id"),$WS(this).css("top"),SmallBoxesAnchos-=t,$WS(this).removeClass().addClass("SmallBox").animate({opacity:0},300,(function(){$WS(this).remove();var t=0;$WS(".SmallBox").each((function(e){0==e?($WS(this).animate({top:20},300),t=$WS(this).height()+40,SmallBoxesAnchos=$WS(this).height()+40):($WS(this).animate({top:t},350),t=t+$WS(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$WS(this).height()+20)}))}))}))},function(t){var e=/^\s+/,i=/\s+$/,n=0,a=t.round,s=t.min,r=t.max,o=t.random;function l(o,d){if(d=d||{},(o=o||"")instanceof l)return o;if(!(this instanceof l))return new l(o,d);var u=function(n){var a={r:0,g:0,b:0},o=1,l=null,d=null,u=null,h=!1,c=!1;"string"==typeof n&&(n=function(t){t=t.replace(e,"").replace(i,"").toLowerCase();var n,a=!1;if(T[t])t=T[t],a=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(n=P.rgb.exec(t))return{r:n[1],g:n[2],b:n[3]};if(n=P.rgba.exec(t))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=P.hsl.exec(t))return{h:n[1],s:n[2],l:n[3]};if(n=P.hsla.exec(t))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=P.hsv.exec(t))return{h:n[1],s:n[2],v:n[3]};if(n=P.hsva.exec(t))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=P.hex8.exec(t))return{r:F(n[1]),g:F(n[2]),b:F(n[3]),a:E(n[4]),format:a?"name":"hex8"};if(n=P.hex6.exec(t))return{r:F(n[1]),g:F(n[2]),b:F(n[3]),format:a?"name":"hex"};if(n=P.hex4.exec(t))return{r:F(n[1]+""+n[1]),g:F(n[2]+""+n[2]),b:F(n[3]+""+n[3]),a:E(n[4]+""+n[4]),format:a?"name":"hex8"};if(n=P.hex3.exec(t))return{r:F(n[1]+""+n[1]),g:F(n[2]+""+n[2]),b:F(n[3]+""+n[3]),format:a?"name":"hex"};return!1}(n));"object"==typeof n&&(U(n.r)&&U(n.g)&&U(n.b)?(p=n.r,f=n.g,m=n.b,a={r:255*S(p,255),g:255*S(f,255),b:255*S(m,255)},h=!0,c="%"===String(n.r).substr(-1)?"prgb":"rgb"):U(n.h)&&U(n.s)&&U(n.v)?(l=j(n.s),d=j(n.v),a=function(e,i,n){e=6*S(e,360),i=S(i,100),n=S(n,100);var a=t.floor(e),s=e-a,r=n*(1-i),o=n*(1-s*i),l=n*(1-(1-s)*i),d=a%6;return{r:255*[n,o,r,r,l,n][d],g:255*[l,n,n,o,r,r][d],b:255*[r,r,l,n,n,o][d]}}(n.h,l,d),h=!0,c="hsv"):U(n.h)&&U(n.s)&&U(n.l)&&(l=j(n.s),u=j(n.l),a=function(t,e,i){var n,a,s;function r(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}if(t=S(t,360),e=S(e,100),i=S(i,100),0===e)n=a=s=i;else{var o=i<.5?i*(1+e):i+e-i*e,l=2*i-o;n=r(l,o,t+1/3),a=r(l,o,t),s=r(l,o,t-1/3)}return{r:255*n,g:255*a,b:255*s}}(n.h,l,u),h=!0,c="hsl"),n.hasOwnProperty("a")&&(o=n.a));var p,f,m;return o=x(o),{ok:h,format:n.format||c,r:s(255,r(a.r,0)),g:s(255,r(a.g,0)),b:s(255,r(a.b,0)),a:o}}(o);this._originalInput=o,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=d.format||u.format,this._gradientType=d.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=u.ok,this._tc_id=n++}function d(t,e,i){t=S(t,255),e=S(e,255),i=S(i,255);var n,a,o=r(t,e,i),l=s(t,e,i),d=(o+l)/2;if(o==l)n=a=0;else{var u=o-l;switch(a=d>.5?u/(2-o-l):u/(o+l),o){case t:n=(e-i)/u+(e<i?6:0);break;case e:n=(i-t)/u+2;break;case i:n=(t-e)/u+4}n/=6}return{h:n,s:a,l:d}}function u(t,e,i){t=S(t,255),e=S(e,255),i=S(i,255);var n,a,o=r(t,e,i),l=s(t,e,i),d=o,u=o-l;if(a=0===o?0:u/o,o==l)n=0;else{switch(o){case t:n=(e-i)/u+(e<i?6:0);break;case e:n=(i-t)/u+2;break;case i:n=(t-e)/u+4}n/=6}return{h:n,s:a,v:d}}function h(t,e,i,n){var s=[$(a(t).toString(16)),$(a(e).toString(16)),$(a(i).toString(16))];return n&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function c(t,e,i,n){return[$(A(n)),$(a(t).toString(16)),$(a(e).toString(16)),$(a(i).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var i=l(t).toHsl();return i.s-=e/100,i.s=C(i.s),l(i)}function f(t,e){e=0===e?0:e||10;var i=l(t).toHsl();return i.s+=e/100,i.s=C(i.s),l(i)}function m(t){return l(t).desaturate(100)}function _(t,e){e=0===e?0:e||10;var i=l(t).toHsl();return i.l+=e/100,i.l=C(i.l),l(i)}function g(t,e){e=0===e?0:e||10;var i=l(t).toRgb();return i.r=r(0,s(255,i.r-a(-e/100*255))),i.g=r(0,s(255,i.g-a(-e/100*255))),i.b=r(0,s(255,i.b-a(-e/100*255))),l(i)}function v(t,e){e=0===e?0:e||10;var i=l(t).toHsl();return i.l-=e/100,i.l=C(i.l),l(i)}function y(t,e){var i=l(t).toHsl(),n=(i.h+e)%360;return i.h=n<0?360+n:n,l(i)}function M(t){var e=l(t).toHsl();return e.h=(e.h+180)%360,l(e)}function b(t){var e=l(t).toHsl(),i=e.h;return[l(t),l({h:(i+120)%360,s:e.s,l:e.l}),l({h:(i+240)%360,s:e.s,l:e.l})]}function w(t){var e=l(t).toHsl(),i=e.h;return[l(t),l({h:(i+90)%360,s:e.s,l:e.l}),l({h:(i+180)%360,s:e.s,l:e.l}),l({h:(i+270)%360,s:e.s,l:e.l})]}function L(t){var e=l(t).toHsl(),i=e.h;return[l(t),l({h:(i+72)%360,s:e.s,l:e.l}),l({h:(i+216)%360,s:e.s,l:e.l})]}function k(t,e,i){e=e||6,i=i||30;var n=l(t).toHsl(),a=360/i,s=[l(t)];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,s.push(l(n));return s}function D(t,e){e=e||6;for(var i=l(t).toHsv(),n=i.h,a=i.s,s=i.v,r=[],o=1/e;e--;)r.push(l({h:n,s:a,v:s})),s=(s+o)%1;return r}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,i,n,a=this.toRgb();return e=a.r/255,i=a.g/255,n=a.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:t.pow((i+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=x(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),i=a(100*t.s),n=a(100*t.v);return 1==this._a?"hsv("+e+", "+i+"%, "+n+"%)":"hsva("+e+", "+i+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=d(this._r,this._g,this._b),e=a(360*t.h),i=a(100*t.s),n=a(100*t.l);return 1==this._a?"hsl("+e+", "+i+"%, "+n+"%)":"hsla("+e+", "+i+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,i,n,s){var r=[$(a(t).toString(16)),$(a(e).toString(16)),$(a(i).toString(16)),$(A(n))];if(s&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1))return r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0);return r.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(100*S(this._r,255))+"%",g:a(100*S(this._g,255))+"%",b:a(100*S(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+a(100*S(this._r,255))+"%, "+a(100*S(this._g,255))+"%, "+a(100*S(this._b,255))+"%)":"rgba("+a(100*S(this._r,255))+"%, "+a(100*S(this._g,255))+"%, "+a(100*S(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Y[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+c(this._r,this._g,this._b,this._a),i=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=l(t);i="#"+c(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+i+")"},toString:function(t){var e=!!t;t=t||this._format;var i=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(i=this.toRgbString()),"prgb"===t&&(i=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(i=this.toHexString()),"hex3"===t&&(i=this.toHexString(!0)),"hex4"===t&&(i=this.toHex8String(!0)),"hex8"===t&&(i=this.toHex8String()),"name"===t&&(i=this.toName()),"hsl"===t&&(i=this.toHslString()),"hsv"===t&&(i=this.toHsvString()),i||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return l(this.toString())},_applyModification:function(t,e){var i=t.apply(null,[this].concat([].slice.call(e)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(b,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},l.fromRatio=function(t,e){if("object"==typeof t){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]="a"===n?t[n]:j(t[n]));t=i}return l(t,e)},l.equals=function(t,e){return!(!t||!e)&&l(t).toRgbString()==l(e).toRgbString()},l.random=function(){return l.fromRatio({r:o(),g:o(),b:o()})},l.mix=function(t,e,i){i=0===i?0:i||50;var n=l(t).toRgb(),a=l(e).toRgb(),s=i/100;return l({r:(a.r-n.r)*s+n.r,g:(a.g-n.g)*s+n.g,b:(a.b-n.b)*s+n.b,a:(a.a-n.a)*s+n.a})},l.readability=function(e,i){var n=l(e),a=l(i);return(t.max(n.getLuminance(),a.getLuminance())+.05)/(t.min(n.getLuminance(),a.getLuminance())+.05)},l.isReadable=function(t,e,i){var n,a,s=l.readability(t,e);switch(a=!1,(n=function(t){var e,i;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),i=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==i&&"large"!==i&&(i="small");return{level:e,size:i}}(i)).level+n.size){case"AAsmall":case"AAAlarge":a=s>=4.5;break;case"AAlarge":a=s>=3;break;case"AAAsmall":a=s>=7}return a},l.mostReadable=function(t,e,i){var n,a,s,r,o=null,d=0;a=(i=i||{}).includeFallbackColors,s=i.level,r=i.size;for(var u=0;u<e.length;u++)(n=l.readability(t,e[u]))>d&&(d=n,o=l(e[u]));return l.isReadable(t,o,{level:s,size:r})||!a?o:(i.includeFallbackColors=!1,l.mostReadable(t,["#fff","#000"],i))};var T=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=l.hexNames=function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[t[i]]=i);return e}(T);function x(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function S(e,i){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(e)&&(e="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(e);return e=s(i,r(0,parseFloat(e))),n&&(e=parseInt(e*i,10)/100),t.abs(e-i)<1e-6?1:e%i/parseFloat(i)}function C(t){return s(1,r(0,t))}function F(t){return parseInt(t,16)}function $(t){return 1==t.length?"0"+t:""+t}function j(t){return t<=1&&(t=100*t+"%"),t}function A(e){return t.round(255*parseFloat(e)).toString(16)}function E(t){return F(t)/255}var W,O,H,P=(O="[\\s|\\(]+("+(W="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",H="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",{CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!P.CSS_UNIT.exec(t)}"undefined"!=typeof module&&module.exports?module.exports=l:"function"==typeof define&&define.amd?define((function(){return l})):window.tinycolor=l}(Math),
/*!
 * @preserve
 *
 * Readmore.js jQuery plugin
 * Author: @jed_foster
 * Project home: http://jedfoster.github.io/Readmore.js
 * Licensed under the MIT license
 *
 * Debounce function from http://davidwalsh.name/javascript-debounce-function
 */
function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e="readmore",i={speed:100,collapsedHeight:200,heightMargin:16,moreLink:'<a href="#">Read More</a>',lessLink:'<a href="#">Close</a>',embedCSS:!0,blockCSS:"display: block; width: 100%;",startOpen:!1,blockProcessed:function(){},beforeToggle:function(){},afterToggle:function(){}},n={},a=0;function s(t){var e=t.clone().css({height:"auto",width:t.width(),maxHeight:"none",overflow:"hidden"}).insertAfter(t),i=e.outerHeight(),n=parseInt(e.css({maxHeight:""}).css("max-height").replace(/[^-\d\.]/g,""),10),a=t.data("defaultHeight");e.remove();var s=n||t.data("collapsedHeight")||a;t.data({expandedHeight:i,maxHeight:n,collapsedHeight:s}).css({maxHeight:"none"})}var r,o,l,d,u=(r=function(){t("[data-readmore]").each((function(){var e=t(this),i="true"===e.attr("aria-expanded");s(e),e.css({height:e.data(i?"expandedHeight":"collapsedHeight")})}))},o=100,function(){var t=this,e=arguments,i=function(){d=null,l||r.apply(t,e)},n=l&&!d;clearTimeout(d),d=setTimeout(i,o),n&&r.apply(t,e)});function h(a,s){this.element=a,this.options=t.extend({},i,s),function(t){if(!n[t.selector]){var e=" ";t.embedCSS&&""!==t.blockCSS&&(e+=t.selector+" + [data-readmore-toggle], "+t.selector+"[data-readmore]{"+t.blockCSS+"}"),a=e+=t.selector+"[data-readmore]{transition: height "+t.speed+"ms;overflow: hidden;}",(s=(i=document).createElement("style")).type="text/css",s.styleSheet?s.styleSheet.cssText=a:s.appendChild(i.createTextNode(a)),i.getElementsByTagName("head")[0].appendChild(s),n[t.selector]=!0}var i,a,s}(this.options),this._defaults=i,this._name=e,this.init(),window.addEventListener?(window.addEventListener("load",u),window.addEventListener("resize",u)):(window.attachEvent("load",u),window.attachEvent("resize",u))}h.prototype={init:function(){var e=t(this.element);e.data({defaultHeight:this.options.collapsedHeight,heightMargin:this.options.heightMargin}),s(e);var i=e.data("collapsedHeight"),n=e.data("heightMargin");if(e.outerHeight(!0)<=i+n)return this.options.blockProcessed&&"function"==typeof this.options.blockProcessed&&this.options.blockProcessed(e,!1),!0;var r,o=e.attr("id")||function(t){var e=++a;return String(null===t?"rmjs-":t)+e}(),l=this.options.startOpen?this.options.lessLink:this.options.moreLink;e.attr({"data-readmore":"","aria-expanded":this.options.startOpen,id:o}),e.after(t(l).on("click",(r=this,function(t){r.toggle(this,e[0],t)})).attr({"data-readmore-toggle":o,"aria-controls":o})),this.options.startOpen||e.css({height:i}),this.options.blockProcessed&&"function"==typeof this.options.blockProcessed&&this.options.blockProcessed(e,!0)},toggle:function(e,i,n){n&&n.preventDefault(),e||(e=t('[aria-controls="'+this.element.id+'"]')[0]),i||(i=this.element);var a,s=t(i),r="",o="",l=!1,d=s.data("collapsedHeight");s.height()<=d?(r=s.data("expandedHeight")+"px",o="lessLink",l=!0):(r=d,o="moreLink"),this.options.beforeToggle&&"function"==typeof this.options.beforeToggle&&this.options.beforeToggle(e,s,!l),s.css({height:r}),s.on("transitionend",(a=this,function(){a.options.afterToggle&&"function"==typeof a.options.afterToggle&&a.options.afterToggle(e,s,l),t(this).attr({"aria-expanded":l}).off("transitionend")})),t(e).replaceWith(t(this.options[o]).on("click",function(t){return function(e){t.toggle(this,i,e)}}(this)).attr({"data-readmore-toggle":s.attr("id"),"aria-controls":s.attr("id")}))},destroy:function(){t(this.element).each((function(){var e=t(this);e.attr({"data-readmore":null,"aria-expanded":null}).css({maxHeight:"",height:""}).next("[data-readmore-toggle]").remove(),e.removeData()}))}},t.fn.readmore=function(e){var i=arguments,n=this.selector;return"object"==typeof(e=e||{})?this.each((function(){if(t.data(this,"plugin_readmore")){var i=t.data(this,"plugin_readmore");i.destroy.apply(i)}e.selector=n,t.data(this,"plugin_readmore",new h(this,e))})):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each((function(){var n=t.data(this,"plugin_readmore");n instanceof h&&"function"==typeof n[e]&&n[e].apply(n,Array.prototype.slice.call(i,1))})):void 0}}));